@topwrite/reader 1.0.41-alpha.0 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var e,t,r,n,o,i,a={1837:(e,t,r)=>{"use strict";r.d(t,{l_:()=>n.l_,fy:()=>n.fy,De:()=>n.De,$B:()=>n.$B,ql:()=>vr,cu:()=>Da,IA:()=>Ca,fH:()=>co,$q:()=>n.$q,aC:()=>n.aC,Wp:()=>es,UG:()=>ks,Hn:()=>N,Sy:()=>ls,ER:()=>n.ER,oI:()=>n.oI,Lj:()=>n.Lj,q4:()=>Bs,rK:()=>n.rK,US:()=>_s,W3:()=>os,nC:()=>Pa,vJ:()=>At,WA:()=>Ia,iv:()=>ut,Em:()=>Yo,vU:()=>Zo,He:()=>Is,Ak:()=>us,oe:()=>n.oe,V5:()=>Rs,CB:()=>n.CB,F4:()=>Dt,_f:()=>_a,j0:()=>W(),JH:()=>n.JH,FB:()=>n.FB,YB:()=>n.YB,WY:()=>n.WY,zo:()=>Ct,ol:()=>is,r5:()=>ba,UK:()=>Ea,bd:()=>Za,r3:()=>wa,CQ:()=>Ra,Nr:()=>Fs,jr:()=>Cs,zX:()=>Mi,Rs:()=>js,y1:()=>fa,cw:()=>qo,mP:()=>Ja,tT:()=>ss,D2:()=>Os,D9:()=>Ds,v9:()=>as,CM:()=>cs,LU:()=>Ba,TC:()=>$a,fB:()=>Ps});var n=r(3440),o=r(4760),i=r(4246),a=r(7363),s=r.n(a),c=r(4649),u=r(189);function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var f="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function m(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(l(1));return r(m)(e,t)}if("function"!=typeof e)throw new Error(l(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function h(){if(c)throw new Error(l(3));return i}function g(e){if("function"!=typeof e)throw new Error(l(4));if(c)throw new Error(l(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(l(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!d(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if(c)throw new Error(l(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(l(10));o=e,y({type:p.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(l(11));function r(){e.next&&e.next(h())}return r(),{unsubscribe:t(r)}}})[f]=function(){return this},e}return y({type:p.INIT}),(n={dispatch:y,subscribe:g,getState:h,replaceReducer:v})[f]=b,n}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(l(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=g.apply(void 0,i)(r.dispatch),(0,u.Z)((0,u.Z)({},r),{},{dispatch:n})}}}var v=r(8907),b=r(2611),E=s().createContext(null);var w=function(e){e()},x=function(){return w};var S={notify:function(){},get:function(){return[]}};function k(e,t){var r,n=S;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=x(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:function(){return n}};return a}var A="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const D=function(e){var t=e.store,r=e.context,n=e.children,o=(0,a.useMemo)((function(){var e=k(t);return{store:t,subscription:e}}),[t]),i=(0,a.useMemo)((function(){return t.getState()}),[t]);A((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var c=r||E;return s().createElement(c.Provider,{value:o},n)};var C=r(5839),F=r.n(C);r(9272);r(5773);function P(){return(0,a.useContext)(E)}var O=function(e,t){return e===t};function T(e){void 0===e&&(e=E);var t=e===E?P:function(){return(0,a.useContext)(e)};return function(e,r){void 0===r&&(r=O);var n=t(),o=function(e,t,r,n){var o,i=(0,a.useReducer)((function(e){return e+1}),0)[1],s=(0,a.useMemo)((function(){return k(r,n)}),[r,n]),c=(0,a.useRef)(),u=(0,a.useRef)(),l=(0,a.useRef)(),f=(0,a.useRef)(),h=r.getState();try{if(e!==u.current||h!==l.current||c.current){var p=e(h);o=void 0!==f.current&&t(p,f.current)?f.current:p}else o=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return A((function(){u.current=e,l.current=h,f.current=o,c.current=void 0})),A((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=u.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){c.current=e}i()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,a.useDebugValue)(o),o}}var j,I=T(),_=r(1533);j=_.unstable_batchedUpdates,w=j;const R="TYPE_SET_STATE",B="TYPE_GET_STATE";function L(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class N{constructor(){(0,c.Z)(this,"initialState",void 0),(0,c.Z)(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:B,payload:{models:t}}}setState(e){return{type:R,payload:{fn:e}}}dispatch(e){}}function M(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}(0,v.Fl)(!1);const H=(e,t,r)=>{for(let n of e)t=n(t,r);return t},z=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,b.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=L(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=H(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let n,i;if(t.value instanceof Promise)try{n=await t.value}catch(e){i=e}else if(M(t.value))try{n=await p(t.value)}catch(e){i=e}else{let e=t.value,i=e.payload;switch(e.type){case B:const e=c();n=i.models.length>0?i.models.length>1?i.models.map((t=>e[t])):e[i.models[0]]:e;break;case R:let t="".concat(a,"/@@").concat(++l);o[t]=i.fn,s({type:t,name:r}),delete o[t]}}t=i?await e.throw(i):await e.next(n)}return t.value};await p(h)}}}}const l=function(e,t){return(0,v.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,v.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||g,h=m(r(l),a,f(y(...n))),{getState:p}=h;for(let[e,t]of Object.entries(i))s[e]=z(t,h);for(let t in c)c[t].call(e[t],s[t],p()[t]);return h.actions=s,h}const $=(0,a.createContext)({actions:{}});function q(e){let{store:t,children:r}=e;return(0,i.jsx)($.Provider,{value:{actions:t.actions},children:(0,i.jsx)(D,{store:t,children:r})})}function V(e,t){return"string"==typeof e||Array.isArray(e)?I((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):I(e,t)}var G=r(6051),W=r.n(G),Q=r(8891),K=r(669),Z=r(2348),Y=r(4445),X=r.n(Y);const J=function(e){function t(e,n,c,u,h){for(var p,d,m,g,E,x=0,S=0,k=0,A=0,D=0,j=0,_=m=p=0,B=0,L=0,N=0,M=0,H=c.length,z=H-1,U="",$="",q="",V="";B<H;){if(d=c.charCodeAt(B),B===z&&0!==S+A+k+x&&(0!==S&&(d=47===S?10:47),A=k=x=0,H++,z++),0===S+A+k+x){if(B===z&&(0<L&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(B)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,M=++B;B<H;){switch(d=c.charCodeAt(B)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(B+1)){case 42:case 47:e:{for(_=B+1;_<z;++_)switch(c.charCodeAt(_)){case 47:if(42===d&&42===c.charCodeAt(_-1)&&B+2!==_){B=_+1;break e}break;case 10:if(47===d){B=_+1;break e}}B=_}}break;case 91:d++;case 40:d++;case 34:case 39:for(;B++<z&&c.charCodeAt(B)!==d;);}if(0===m)break;B++}if(m=c.substring(M,B),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=T}if(M=(m=t(n,L,m,d,h+1)).length,0<I&&(E=s(3,m,L=r(T,U,N),n,F,C,M,d,h,u),U=L.join(""),void 0!==E&&0===(M=(m=E.trim()).length)&&(d=0,m="")),0<M)switch(d){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,N),m,u,h+1);q+=m,m=N=L=_=p=0,U="",d=c.charCodeAt(++B);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(f,""):U).trim()).length))switch(0===_&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(M=(U=U.replace(" ",":")).length),0<I&&void 0!==(E=s(1,U,n,e,F,C,$.length,u,h,u))&&0===(M=(U=E.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(B);break}default:58!==U.charCodeAt(M-1)&&($+=o(U,p,d,U.charCodeAt(2)))}N=L=_=p=0,U="",d=c.charCodeAt(++B)}}switch(d){case 13:case 10:47===S?S=0:0===1+p&&107!==u&&0<U.length&&(L=1,U+="\0"),0<I*R&&s(0,U,n,e,F,C,$.length,u,h,u),C=1,F++;break;case 59:case 125:if(0===S+A+k+x){C++;break}default:switch(C++,g=c.charAt(B),d){case 9:case 32:if(0===A+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+S+x&&(L=N=1,g="\f"+g);break;case 108:if(0===A+S+x+P&&0<_)switch(B-_){case 2:112===D&&58===c.charCodeAt(B-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===A+S+x&&(_=B);break;case 44:0===S+k+A+x&&(L=1,g+="\r");break;case 34:case 39:0===S&&(A=A===d?0:0===A?d:A);break;case 91:0===A+S+k&&x++;break;case 93:0===A+S+k&&x--;break;case 41:0===A+S+x&&k--;break;case 40:if(0===A+S+x){if(0===p)if(2*D+3*j==533);else p=1;k++}break;case 64:0===S+k+A+x+_+m&&(m=1);break;case 42:case 47:if(!(0<A+x+k))switch(S){case 0:switch(2*d+3*c.charCodeAt(B+1)){case 235:S=47;break;case 220:M=B,S=42}break;case 42:47===d&&42===D&&M+2!==B&&(33===c.charCodeAt(M+2)&&($+=c.substring(M,B+1)),g="",S=0)}}0===S&&(U+=g)}j=D,D=d,B++}if(0<(M=$.length)){if(L=n,0<I&&(void 0!==(E=s(2,$,L,e,F,C,M,u,h,u))&&0===($=E).length))return V+$+q;if($=L.join(",")+"{"+$+"}",0!=O*P){switch(2!==O||i($,2)||(P=0),P){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}P=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===O||2===O&&i(c,1)?"-webkit-"+c+c:c}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(E,"tb");break;case 232:c=a.replace(E,"tb-rl");break;case 220:c=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),_(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<I;++h)switch(f=j[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(_=null,e?"function"!=typeof e?O=1:(O=2,_=e):O=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=s(-1,r,n,n,F,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(T,n,r,0,0);return 0<I&&(void 0!==(o=s(-2,i,n,n,F,C,i.length,0,0,0))&&(i=o)),"",P=0,C=F=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,C=1,F=1,P=0,O=1,T=[],j=[],I=0,_=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:I=j.length=0;break;default:if("function"==typeof t)j[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const ee={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var te=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const re=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return te.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ne=r(7061);function oe(){return(oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ie=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},ae=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Z.typeOf)(e)},se=Object.freeze([]),ce=Object.freeze({});function ue(e){return"function"==typeof e}function le(e){return e.displayName||e.name||"Component"}function fe(e){return e&&"string"==typeof e.styledComponentId}var he=void 0!==ne&&(ne.env.REACT_APP_SC_ATTR||ne.env.SC_ATTR)||"data-styled",pe="undefined"!=typeof window&&"HTMLElement"in window,de=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==ne&&void 0!==ne.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==ne.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==ne.env.REACT_APP_SC_DISABLE_SPEEDY&&ne.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==ne&&void 0!==ne.env.SC_DISABLE_SPEEDY&&""!==ne.env.SC_DISABLE_SPEEDY&&("false"!==ne.env.SC_DISABLE_SPEEDY&&ne.env.SC_DISABLE_SPEEDY)),me={};function ge(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var ye=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&ge(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),ve=new Map,be=new Map,Ee=1,we=function(e){if(ve.has(e))return ve.get(e);for(;be.has(Ee);)Ee++;var t=Ee++;return ve.set(e,t),be.set(t,e),t},xe=function(e){return be.get(e)},Se=function(e,t){t>=Ee&&(Ee=t+1),ve.set(e,t),be.set(t,e)},ke="style["+he+'][data-styled-version="5.3.5"]',Ae=new RegExp("^"+he+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),De=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ce=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Ae);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Se(u,c),De(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Fe=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Pe=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(he))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(he,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Fe();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Oe=function(){function e(e){var t=this.element=Pe(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}ge(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Te=function(){function e(e){var t=this.element=Pe(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),je=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ie=pe,_e={isServer:!pe,useCSSOMInjection:!de},Re=function(){function e(e,t,r){void 0===e&&(e=ce),void 0===t&&(t={}),this.options=oe({},_e,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&&Ie&&(Ie=!1,function(e){for(var t=document.querySelectorAll(ke),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(he)&&(Ce(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return we(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(oe({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new je(o):n?new Oe(o):new Te(o),new ye(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(we(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(we(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(we(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=xe(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=he+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Be=/(a)(d)/gi,Le=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ne(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Le(t%52)+r;return(Le(t%52)+r).replace(Be,"$1-$2")}var Me=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},He=function(e){return Me(5381,e)};function ze(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ue(r)&&!fe(r))return!1}return!0}var Ue=He("5.3.5"),$e=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ze(e),this.componentId=t,this.baseHash=Me(Ue,t),this.baseStyle=r,Re.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=st(this.rules,e,t,r).join(""),a=Ne(Me(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=Me(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=st(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=Me(u,d+f),l+=d}}if(l){var m=Ne(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),qe=/^\s*\/\/.*$/gm,Ve=[":","[",".","#"];function Ge(e){var t,r,n,o,i=void 0===e?ce:e,a=i.options,s=void 0===a?ce:a,c=i.plugins,u=void 0===c?se:c,l=new J(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==Ve.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace(qe,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||ge(15),Me(e,t.name)}),5381).toString():"",d}var We=s().createContext(),Qe=(We.Consumer,s().createContext()),Ke=(Qe.Consumer,new Re),Ze=Ge();function Ye(){return(0,a.useContext)(We)||Ke}function Xe(){return(0,a.useContext)(Qe)||Ze}function Je(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=Ye(),i=(0,a.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,a.useMemo)((function(){return Ge({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,a.useEffect)((function(){X()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),s().createElement(We.Provider,{value:i},s().createElement(Qe.Provider,{value:c},e.children))}var et=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ze);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return ge(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ze),this.name+e.hash},e}(),tt=/([A-Z])/,rt=/([A-Z])/g,nt=/^ms-/,ot=function(e){return"-"+e.toLowerCase()};function it(e){return tt.test(e)?e.replace(rt,ot).replace(nt,"-ms-"):e}var at=function(e){return null==e||!1===e||""===e};function st(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=st(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return at(e)?"":fe(e)?"."+e.styledComponentId:ue(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:st(e(t),t,r,n):e instanceof et?r?(e.inject(r,n),e.getName(n)):e:ae(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!at(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ue(t[a])?i.push(it(a)+":",t[a],";"):ae(t[a])?i.push.apply(i,e(t[a],a)):i.push(it(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in ee?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var ct=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ut(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return ue(e)||ae(e)?ct(st(ie(se,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:ct(st(ie(e,r)))}new Set;var lt=function(e,t,r){return void 0===r&&(r=ce),e.theme!==r.theme&&e.theme||t||r.theme},ft=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ht=/(^-|-$)/g;function pt(e){return e.replace(ft,"-").replace(ht,"")}var dt=function(e){return Ne(He(e)>>>0)};function mt(e){return"string"==typeof e&&!0}var gt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},yt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function vt(e,t,r){var n=e[r];gt(t)&&gt(n)?bt(n,t):e[r]=t}function bt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(gt(a))for(var s in a)yt(s)&&vt(e,a[s],s)}return e}var Et=s().createContext();Et.Consumer;var wt={};function xt(e,t,r){var n=fe(e),o=!mt(e),i=t.attrs,c=void 0===i?se:i,u=t.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":pt(e);wt[r]=(wt[r]||0)+1;var n=r+"-"+dt("5.3.5"+r+wt[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,f=t.displayName,h=void 0===f?function(e){return mt(e)?"styled."+e:"Styled("+le(e)+")"}(e):f,p=t.displayName&&t.componentId?pt(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new $e(r,p,n?e.componentStyle:void 0),v=y.isStatic&&0===c.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=ce);var n=oe({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in ue(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(lt(t,(0,a.useContext)(Et),s)||ce,t,o),p=h[0],d=h[1],m=function(e,t,r,n){var o=Ye(),i=Xe();return t?e.generateAndInjectStyles(ce,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,p),g=r,y=d.$as||t.$as||d.as||t.as||f,v=mt(y),b=d!==t?oe({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(u?u(w,re,y):!v||re(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=oe({},t.style,{},d.style)),E.className=Array.prototype.concat(c,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,a.createElement)(y,E)}(g,e,t,v)};return b.displayName=h,(g=s().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=h,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):se,g.styledComponentId=p,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(mt(e)?e:pt(le(e)));return xt(e,oe({},o,{attrs:d,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?bt({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},o&&F()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var St=function(e){return function e(t,r,n){if(void 0===n&&(n=ce),!(0,Z.isValidElementType)(r))return ge(1,String(r));var o=function(){return t(r,n,ut.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,oe({},n,{},o))},o.attrs=function(o){return e(t,r,oe({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(xt,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){St[e]=St(e)}));var kt=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ze(e),Re.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(st(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Re.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function At(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=ut.apply(void 0,[e].concat(r)),i="sc-global-"+dt(JSON.stringify(o)),c=new kt(o,i);function u(e){var t=Ye(),r=Xe(),n=(0,a.useContext)(Et),o=(0,a.useRef)(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,n,r),(0,a.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return c.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,me,r,o);else{var i=oe({},t,{theme:lt(t,n,u.defaultProps)});c.renderStyles(e,i,r,o)}}return s().memo(u)}function Dt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=ut.apply(void 0,[e].concat(r)).join(""),i=dt(o);return new et(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Fe();return"<style "+[r&&'nonce="'+r+'"',he+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?ge(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return ge(2);var r=((t={})[he]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Fe();return n&&(r.nonce=n),[s().createElement("style",oe({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Re({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?ge(2):s().createElement(Je,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return ge(3)}}();const Ct=St;var Ft=r(3615),Pt=r.n(Ft),Ot=r(4335),Tt=r.n(Ot),jt=r(3996),It=r.n(jt);function _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Rt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bt(e,t)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var Nt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Mt={rel:["amphtml","canonical","alternate"]},Ht={type:["application/ld+json"]},zt={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Ut=Object.keys(Nt).map((function(e){return Nt[e]})),$t={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},qt=Object.keys($t).reduce((function(e,t){return e[$t[t]]=t,e}),{}),Vt=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Gt=function(e){var t=Vt(e,Nt.TITLE),r=Vt(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=Vt(e,"defaultTitle");return t||n||void 0},Wt=function(e){return Vt(e,"onChangeClientState")||function(){}},Qt=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return _t({},e,t)}),{})},Kt=function(e,t){return t.filter((function(e){return void 0!==e[Nt.BASE]})).map((function(e){return e[Nt.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},Zt=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===c&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=_t({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},Yt=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},Xt=function(e){return Array.isArray(e)?e.join(""):e},Jt=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},er=[Nt.NOSCRIPT,Nt.SCRIPT,Nt.STYLE],tr=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},rr=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},nr=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[$t[r]||r]=e[r],t}),t)},or=function(e,t){return t.map((function(t,r){var n,o=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=$t[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]})),s().createElement(e,o)}))},ir=function(e,t,r){switch(e){case Nt.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,o=nr(r,n),[s().createElement(Nt.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=rr(r),i=Xt(t);return o?"<"+e+' data-rh="true" '+o+">"+tr(i,n)+"</"+e+">":"<"+e+' data-rh="true">'+tr(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return nr(t)},toString:function(){return rr(t)}};default:return{toComponent:function(){return or(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+tr(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===er.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},ar=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,c=void 0===s?"":s,u=e.titleAttributes,l=e.linkTags,f=e.metaTags,h=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,o=Jt(e.metaTags,zt),i=Jt(t,Mt),a=Jt(r,Ht);return{priorityMethods:{toComponent:function(){return[].concat(or(Nt.META,o.priority),or(Nt.LINK,i.priority),or(Nt.SCRIPT,a.priority))},toString:function(){return ir(Nt.META,o.priority,n)+" "+ir(Nt.LINK,i.priority,n)+" "+ir(Nt.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=d.priorityMethods,l=d.linkTags,f=d.metaTags,h=d.scriptTags}return{priority:p,base:ir(Nt.BASE,t,n),bodyAttributes:ir("bodyAttributes",r,n),htmlAttributes:ir("htmlAttributes",o,n),link:ir(Nt.LINK,l,n),meta:ir(Nt.META,f,n),noscript:ir(Nt.NOSCRIPT,i,n),script:ir(Nt.SCRIPT,h,n),style:ir(Nt.STYLE,a,n),title:ir(Nt.TITLE,{title:c,titleAttributes:u},n)}},sr=s().createContext({}),cr=Pt().shape({setHelmet:Pt().func,helmetInstances:Pt().shape({get:Pt().func,add:Pt().func,remove:Pt().func})}),ur="undefined"!=typeof document,lr=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=ar({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return Rt(t,e),t.prototype.render=function(){return s().createElement(sr.Provider,{value:this.value},this.props.children)},t}(a.Component);lr.canUseDOM=ur,lr.propTypes={context:Pt().shape({helmet:Pt().shape()}),children:Pt().node.isRequired},lr.defaultProps={context:{}},lr.displayName="HelmetProvider";var fr=function(e,t){var r,n=document.head||document.querySelector(Nt.HEAD),o=n.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?n.innerHTML=t.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(o,void 0===t[o]?"":t[o]));n.setAttribute("data-rh","true"),i.some((function(e,t){return r=t,n.isEqualNode(e)}))?i.splice(r,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},hr=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s+=1){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},pr=function(e,t){var r=e.baseTag,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;hr(Nt.BODY,e.bodyAttributes),hr(Nt.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=Xt(e)),hr(Nt.TITLE,t)}(l,f);var h={baseTag:fr(Nt.BASE,r),linkTags:fr(Nt.LINK,o),metaTags:fr(Nt.META,i),noscriptTags:fr(Nt.NOSCRIPT,a),scriptTags:fr(Nt.SCRIPT,c),styleTags:fr(Nt.STYLE,u)},p={},d={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(d[e]=h[e].oldTags)})),t&&t(),s(e,p,d)},dr=null,mr=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}Rt(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!X()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,o=null,i=(e=r.helmetInstances.get().map((function(e){var t=_t({},e.props);return delete t.context,t})),{baseTag:Kt(["href"],e),bodyAttributes:Qt("bodyAttributes",e),defer:Vt(e,"defer"),encode:Vt(e,"encodeSpecialCharacters"),htmlAttributes:Qt("htmlAttributes",e),linkTags:Zt(Nt.LINK,["rel","href"],e),metaTags:Zt(Nt.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Zt(Nt.NOSCRIPT,["innerHTML"],e),onChangeClientState:Wt(e),scriptTags:Zt(Nt.SCRIPT,["src","innerHTML"],e),styleTags:Zt(Nt.STYLE,["cssText"],e),title:Gt(e),titleAttributes:Qt("titleAttributes",e),prioritizeSeoTags:Yt(e,"prioritizeSeoTags")});lr.canUseDOM?(t=i,dr&&cancelAnimationFrame(dr),t.defer?dr=requestAnimationFrame((function(){pr(t,(function(){dr=null}))})):(pr(t),dr=null)):ar&&(o=ar(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(a.Component);mr.propTypes={context:cr.isRequired},mr.displayName="HelmetDispatcher";var gr=["children"],yr=["children"],vr=function(e){function t(){return e.apply(this,arguments)||this}Rt(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!Tt()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Nt.SCRIPT:case Nt.NOSCRIPT:return{innerHTML:t};case Nt.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return _t({},n,((t={})[r.type]=[].concat(n[r.type]||[],[_t({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case Nt.TITLE:return _t({},o,((t={})[n.type]=a,t.titleAttributes=_t({},i),t));case Nt.BODY:return _t({},o,{bodyAttributes:_t({},i)});case Nt.HTML:return _t({},o,{htmlAttributes:_t({},i)});default:return _t({},o,((r={})[n.type]=_t({},i),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=_t({},t);return Object.keys(e).forEach((function(t){var n;r=_t({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return It()(Ut.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Ut.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),It()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return s().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=Lt(o,gr),s=Object.keys(a).reduce((function(e,t){return e[qt[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(e,i),c){case Nt.FRAGMENT:t=r.mapChildrenToProps(i,t);break;case Nt.LINK:case Nt.META:case Nt.NOSCRIPT:case Nt.SCRIPT:case Nt.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=_t({},Lt(e,yr));return t&&(r=this.mapChildrenToProps(t,r)),s().createElement(sr.Consumer,null,(function(e){return s().createElement(mr,_t({},r,{context:e}))}))},t}(a.Component);vr.propTypes={base:Pt().object,bodyAttributes:Pt().object,children:Pt().oneOfType([Pt().arrayOf(Pt().node),Pt().node]),defaultTitle:Pt().string,defer:Pt().bool,encodeSpecialCharacters:Pt().bool,htmlAttributes:Pt().object,link:Pt().arrayOf(Pt().object),meta:Pt().arrayOf(Pt().object),noscript:Pt().arrayOf(Pt().object),onChangeClientState:Pt().func,script:Pt().arrayOf(Pt().object),style:Pt().arrayOf(Pt().object),title:Pt().string,titleAttributes:Pt().object,titleTemplate:Pt().string,prioritizeSeoTags:Pt().bool},vr.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},vr.displayName="Helmet";var br=function(e,t){return br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},br(e,t)};function Er(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}br(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var wr=function(){return wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wr.apply(this,arguments)};function xr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function Sr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var kr,Ar,Dr;Object.create;function Cr(e){return e.type===Ar.literal}function Fr(e){return e.type===Ar.argument}function Pr(e){return e.type===Ar.number}function Or(e){return e.type===Ar.date}function Tr(e){return e.type===Ar.time}function jr(e){return e.type===Ar.select}function Ir(e){return e.type===Ar.plural}function _r(e){return e.type===Ar.pound}function Rr(e){return e.type===Ar.tag}function Br(e){return!(!e||"object"!=typeof e||e.type!==Dr.number)}function Lr(e){return!(!e||"object"!=typeof e||e.type!==Dr.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(kr||(kr={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Ar||(Ar={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Dr||(Dr={}));var Nr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Mr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Hr(e){var t={};return e.replace(Mr,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var zr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ur=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$r=/^(@+)?(\+|#+)?[rs]?$/g,qr=/(\*)(0+)|(#+)(0+)|(0+)/g,Vr=/^(0+)$/;function Gr(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace($r,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Wr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Qr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Vr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Kr(e){var t=Wr(e);return t||{}}function Zr(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=wr(wr(wr({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return wr(wr({},e),Kr(t))}),{}));continue;case"engineering":t=wr(wr(wr({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return wr(wr({},e),Kr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(qr,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Vr.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Ur.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ur,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=wr(wr({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=wr(wr({},t),Gr(i)))}else if($r.test(o.stem))t=wr(wr({},t),Gr(o.stem));else{var a=Wr(o.stem);a&&(t=wr(wr({},t),a));var s=Qr(o.stem);s&&(t=wr(wr({},t),s))}}return t}var Yr,Xr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function Jr(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Xr[r||""]||Xr[n||""]||Xr["".concat(n,"-001")]||Xr["001"])[0]}var en=new RegExp("^".concat(Nr.source,"*")),tn=new RegExp("".concat(Nr.source,"*$"));function rn(e,t){return{start:e,end:t}}var nn=!!String.prototype.startsWith,on=!!String.fromCodePoint,an=!!Object.fromEntries,sn=!!String.prototype.codePointAt,cn=!!String.prototype.trimStart,un=!!String.prototype.trimEnd,ln=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fn=!0;try{fn="a"===(null===(Yr=bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yr?void 0:Yr[0])}catch(le){fn=!1}var hn,pn=nn?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},dn=on?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},mn=an?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},gn=sn?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},yn=cn?function(e){return e.trimStart()}:function(e){return e.replace(en,"")},vn=un?function(e){return e.trimEnd()}:function(e){return e.replace(tn,"")};function bn(e,t){return new RegExp(e,t)}if(fn){var En=bn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hn=function(e,t){var r;return En.lastIndex=t,null!==(r=En.exec(e)[1])&&void 0!==r?r:""}}else hn=function(e,t){for(var r=[];;){var n=gn(e,t);if(void 0===n||kn(n)||An(n))break;r.push(n),t+=n>=65536?2:1}return dn.apply(void 0,r)};var wn=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(kr.UNMATCHED_CLOSING_TAG,rn(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&xn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Ar.pound,location:rn(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ar.literal,value:"<".concat(n,"/>"),location:rn(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xn(this.char()))return this.error(kr.INVALID_TAG,rn(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(kr.UNMATCHED_CLOSING_TAG,rn(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ar.tag,value:n,children:i,location:rn(r,this.clonePosition())},err:null}:this.error(kr.INVALID_TAG,rn(a,this.clonePosition())))}return this.error(kr.UNCLOSED_TAG,rn(r,this.clonePosition()))}return this.error(kr.INVALID_TAG,rn(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Sn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=rn(r,this.clonePosition());return{val:{type:Ar.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(xn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return dn.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),dn(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(kr.EXPECT_ARGUMENT_CLOSING_BRACE,rn(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(kr.EMPTY_ARGUMENT,rn(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(kr.MALFORMED_ARGUMENT,rn(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(kr.EXPECT_ARGUMENT_CLOSING_BRACE,rn(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ar.argument,value:n,location:rn(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(kr.EXPECT_ARGUMENT_CLOSING_BRACE,rn(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(kr.MALFORMED_ARGUMENT,rn(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=hn(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:rn(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(kr.EXPECT_ARGUMENT_TYPE,rn(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=vn(y.val)).length)return this.error(kr.EXPECT_ARGUMENT_STYLE,rn(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:rn(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=rn(n,this.clonePosition());if(c&&pn(null==c?void 0:c.style,"::",0)){var f=yn(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?y:{val:{type:Ar.number,value:r,location:l,style:y.val},err:null};if(0===f.length)return this.error(kr.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=Jr(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:Dr.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Hr(h):{}};return{val:{type:"date"===a?Ar.date:Ar.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Ar.number:"date"===a?Ar.date:Ar.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(kr.EXPECT_SELECT_ARGUMENT_OPTIONS,rn(d,wr({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(kr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,rn(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(kr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,kr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=rn(n,this.clonePosition());return"select"===a?{val:{type:Ar.select,value:r,options:mn(b.val),location:E},err:null}:{val:{type:Ar.plural,value:r,options:mn(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(kr.INVALID_ARGUMENT_TYPE,rn(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(kr.EXPECT_ARGUMENT_CLOSING_BRACE,rn(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(kr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,rn(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(zr).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(kr.INVALID_NUMBER_SKELETON,t)}return{val:{type:Dr.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Zr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(kr.EXPECT_PLURAL_ARGUMENT_SELECTOR,kr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=rn(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?kr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:kr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?kr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:kr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,rn(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:rn(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?kr.EXPECT_SELECT_ARGUMENT_SELECTOR:kr.EXPECT_PLURAL_ARGUMENT_SELECTOR,rn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(kr.MISSING_OTHER_CLAUSE,rn(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=rn(n,this.clonePosition());return o?ln(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=gn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&kn(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function xn(e){return e>=97&&e<=122||e>=65&&e<=90}function Sn(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function kn(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function An(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Dn(e){e.forEach((function(e){if(delete e.location,jr(e)||Ir(e))for(var t in e.options)delete e.options[t].location,Dn(e.options[t].value);else Pr(e)&&Br(e.style)||(Or(e)||Tr(e))&&Lr(e.style)?delete e.style.location:Rr(e)&&Dn(e.children)}))}function Cn(e,t){void 0===t&&(t={}),t=wr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new wn(e,t).parse();if(r.err){var n=SyntaxError(kr[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Dn(r.val),r.val}function Fn(e,t){var r=t&&t.cache?t.cache:Bn,n=t&&t.serializer?t.serializer:In;return(t&&t.strategy?t.strategy:jn)(e,{cache:r,serializer:n})}function Pn(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function On(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Tn(e,t,r,n,o){return r.bind(t,e,n,o)}function jn(e,t){return Tn(e,this,1===e.length?Pn:On,t.cache.create(),t.serializer)}var In=function(){return JSON.stringify(arguments)};function _n(){this.cache=Object.create(null)}_n.prototype.get=function(e){return this.cache[e]},_n.prototype.set=function(e,t){this.cache[e]=t};var Rn,Bn={create:function(){return new _n}},Ln={variadic:function(e,t){return Tn(e,this,On,t.cache.create(),t.serializer)},monadic:function(e,t){return Tn(e,this,Pn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Rn||(Rn={}));var Nn,Mn=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return Er(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hn=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Rn.INVALID_VALUE,o)||this}return Er(t,e),t}(Mn),zn=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Rn.INVALID_VALUE,n)||this}return Er(t,e),t}(Mn),Un=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Rn.MISSING_VALUE,r)||this}return Er(t,e),t}(Mn);function $n(e){return"function"==typeof e}function qn(e,t,r,n,o,i,a){if(1===e.length&&Cr(e[0]))return[{type:Nn.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Cr(l))s.push({type:Nn.literal,value:l.value});else if(_r(l))"number"==typeof i&&s.push({type:Nn.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new Un(f,a);var h=o[f];if(Fr(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Nn.literal:Nn.object,value:h});else if(Or(l)){var p="string"==typeof l.style?n.date[l.style]:Lr(l.style)?l.style.parsedOptions:void 0;s.push({type:Nn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Tr(l)){p="string"==typeof l.style?n.time[l.style]:Lr(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Nn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Pr(l)){(p="string"==typeof l.style?n.number[l.style]:Br(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:Nn.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(Rr(l)){var d=l.children,m=l.value,g=o[m];if(!$n(g))throw new zn(m,"function",a);var y=g(qn(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?Nn.literal:Nn.object,value:e}})))}if(jr(l)){if(!(v=l.options[h]||l.options.other))throw new Hn(l.value,h,Object.keys(l.options),a);s.push.apply(s,qn(v.value,t,r,n,o))}else if(Ir(l)){var v;if(!(v=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new Mn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Rn.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new Hn(l.value,h,Object.keys(l.options),a);s.push.apply(s,qn(v.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Nn.literal&&t.type===Nn.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function Vn(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?wr(wr(wr({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=wr(wr({},o[t]),i[t]||{}),e}),{})):o),r}),wr({},e)):e}function Gn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Nn||(Nn={}));var Wn,Qn=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Nn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return qn(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Vn(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Sr([void 0],t,!1)))}),{cache:Gn(i.number),strategy:Ln.variadic}),getDateTimeFormat:Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Sr([void 0],t,!1)))}),{cache:Gn(i.dateTime),strategy:Ln.variadic}),getPluralRules:Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Sr([void 0],t,!1)))}),{cache:Gn(i.pluralRules),strategy:Ln.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Cn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Wn||(Wn={}));var Kn=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return Er(t,e),t}(Error),Zn=function(e){function t(t,r){return e.call(this,Wn.UNSUPPORTED_FORMATTER,t,r)||this}return Er(t,e),t}(Kn),Yn=function(e){function t(t,r){return e.call(this,Wn.INVALID_CONFIG,t,r)||this}return Er(t,e),t}(Kn),Xn=function(e){function t(t,r){return e.call(this,Wn.MISSING_DATA,t,r)||this}return Er(t,e),t}(Kn),Jn=function(e){function t(t,r,n){return e.call(this,Wn.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return Er(t,e),t}(Kn),eo=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,o)||this;return i.descriptor=n,i}return Er(t,e),t}(Jn),to=function(e){function t(t,r){var n=e.call(this,Wn.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return Er(t,e),t}(Kn);function ro(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var no={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function oo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function io(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new Zn("No ".concat(t," format named: ").concat(r)))}var ao=a.createContext(null),so=(ao.Consumer,ao.Provider),co=ao;function uo(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function lo(e){uo(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var fo=wr(wr({},no),{textComponent:a.Fragment});function ho(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=wr({timeZone:t},e[n]),r}),{})}function po(e,t){return Object.keys(wr(wr({},e),t)).reduce((function(r,n){return r[n]=wr(wr({},e[n]||{}),t[n]||{}),r}),{})}function mo(e,t){if(!t)return e;var r=Qn.formats;return wr(wr(wr({},r),e),{date:po(ho(r.date,t),ho(e.date||{},t)),time:po(ho(r.time,t),ho(e.time||{},t))})}function go(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;uo(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===Ar.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=wr(wr({},p),n||{}),a=mo(a,h),u=mo(u,h),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new to(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new eo('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,wr({formatters:t},o||{})).format(n)}catch(e){f(new eo('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new eo('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var yo=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function vo(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&io(o,"number",a,i)||{};return t(n,ro(r,yo,s))}function bo(e,t,r,n){void 0===n&&(n={});try{return vo(e,t,n).format(r)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function Eo(e,t,r,n){void 0===n&&(n={});try{return vo(e,t,n).formatToParts(r)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting number.",t))}return[]}var wo=["numeric","style"];function xo(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Mn('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Rn.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&io(o,"relative",a,i)||{};return t(n,ro(r,wo,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Jn("Error formatting relative time.",e.locale,t))}return String(r)}var So=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function ko(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=wr(wr({},s&&{timeZone:s}),c&&io(i,t,c,a)),l=ro(n,So,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=wr(wr({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Ao(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return ko(e,"date",t,a).format(s)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Do(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return ko(e,"time",t,a).format(s)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Co(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=ro(s,So,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(e){l(new Kn(Wn.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Fo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return ko(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Po(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return ko(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Kn(Wn.FORMAT_ERROR,"Error formatting time.",t))}return[]}var Oo=["localeMatcher","type"];function To(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new Mn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Rn.MISSING_INTL_API));var a=ro(n,Oo);try{return t(o,a).select(r)}catch(e){i(new Jn("Error formatting plural.",o,e))}return"other"}var jo=["localeMatcher","type","style"],Io=Date.now();function _o(e,t,r,n){void 0===n&&(n={});var o=Ro(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function Ro(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new Mn('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Rn.MISSING_INTL_API));var a=ro(n,jo);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(Io,"_").concat(e,"_").concat(Io)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:wr(wr({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Kn(Wn.FORMAT_ERROR,"Error formatting list.",e))}return r}var Bo=["localeMatcher","style","type","fallback"];function Lo(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Mn('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Rn.MISSING_INTL_API));var a=ro(n,Bo);try{return t(o,a).of(r)}catch(e){i(new Kn(Wn.FORMAT_ERROR,"Error formatting display name.",e))}}function No(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Mo(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Sr([void 0],t,!1)))}),{cache:oo(e.dateTime),strategy:Ln.variadic}),i=Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Sr([void 0],t,!1)))}),{cache:oo(e.number),strategy:Ln.variadic}),a=Fn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Sr([void 0],t,!1)))}),{cache:oo(e.pluralRules),strategy:Ln.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Fn((function(e,t,r,n){return new Qn(e,t,r,wr({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:oo(e.message),strategy:Ln.variadic}),getRelativeTimeFormat:Fn((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,Sr([void 0],e,!1)))}),{cache:oo(e.relativeTime),strategy:Ln.variadic}),getPluralRules:a,getListFormat:Fn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,Sr([void 0],e,!1)))}),{cache:oo(e.list),strategy:Ln.variadic}),getDisplayNames:Fn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,Sr([void 0],e,!1)))}),{cache:oo(e.displayNames),strategy:Ln.variadic})}}(t),n=wr(wr({},no),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Xn('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Xn('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Yn('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),No(n),wr(wr({},n),{formatters:r,formatNumber:bo.bind(null,n,r.getNumberFormat),formatNumberToParts:Eo.bind(null,n,r.getNumberFormat),formatRelativeTime:xo.bind(null,n,r.getRelativeTimeFormat),formatDate:Ao.bind(null,n,r.getDateTimeFormat),formatDateToParts:Fo.bind(null,n,r.getDateTimeFormat),formatTime:Do.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Co.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Po.bind(null,n,r.getDateTimeFormat),formatPlural:To.bind(null,n,r.getPluralRules),formatMessage:go.bind(null,n,r),$t:go.bind(null,n,r),formatList:_o.bind(null,n,r.getListFormat),formatListToParts:Ro.bind(null,n,r.getListFormat),formatDisplayName:Lo.bind(null,n,r.getDisplayNames)})}function Ho(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function zo(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=$n(o)?(n=o,function(e){return n(a.Children.toArray(e))}):o,t}),{}):e}var Uo=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=zo(n),c=go.apply(void 0,Sr([e,t,r,s],o,!1));return Array.isArray(c)?a.Children.toArray(c):c},$o=function(e,t){var r=e.defaultRichTextElements,n=xr(e,["defaultRichTextElements"]),o=zo(r),i=Mo(wr(wr(wr({},fo),n),{defaultRichTextElements:o}),t);return wr(wr({},i),{formatMessage:Uo.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:$o(Ho(t.props),t.cache),prevConfig:Ho(t.props)},t}Er(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=Ho(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:$o(o,n),prevConfig:o}},t.prototype.render=function(){return lo(this.state.intl),a.createElement(so,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=fo}(a.PureComponent);function qo(){var e=a.useContext(co);return lo(e),e}var Vo,Go;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Vo||(Vo={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Go||(Go={}));var Wo=function(e){var t=qo(),r=e.value,n=e.children,o=xr(e,["value","children"]);return n(t.formatNumberToParts(r,o))};Wo.displayName="FormattedNumberParts";function Qo(e){var t=function(t){var r=qo(),n=t.value,o=t.children,i=xr(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=Go[e],t}function Ko(e){var t=function(t){var r=qo(),n=t.value,o=t.children,i=xr(t,["value","children"]),s=r[e](n,i);if("function"==typeof o)return o(s);var c=r.textComponent||a.Fragment;return a.createElement(c,null,s)};return t.displayName=Vo[e],t}function Zo(e){return e}function Yo(e){return e}Wo.displayName="FormattedNumberParts";Ko("formatDate"),Ko("formatTime"),Ko("formatNumber"),Ko("formatList"),Ko("formatDisplayName"),Qo("formatDate"),Qo("formatTime");var Xo=r(5969),Jo=r(8717),ei=r(213);const ti=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var o=(0,ei.convert)(t),i=n?-1:1;!function e(a,s,c){var u,l="object"==typeof a&&null!==a?a:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(u?"<"+u+">":"")+")"}));return f;function f(){var u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,null,[])()};function ri(e){return new RegExp("^("+e+")$","i")}const ni=new Xo;function oi(e,t,r){const n=r.skip&&ri(r.skip),o=(0,ei.convert)(r.parents||(t=>t===e)),i=[];let a,s,c;var u,l,f;return ni.reset(),l=function(e,u,l){const f=(0,Jo.B)(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=ni.slug(h||f);if(o(l)){if(null!==u&&t&&!a&&t.test(f))return a=u+1,void(c=e);null!==u&&c&&!s&&e.depth<=c.depth&&(s=u),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||i.push({depth:e.depth,children:e.children,id:p})}},"function"==typeof(u="heading")&&"function"!=typeof l&&(f=l,l=u,u=null),ti(e,u,(function(e,t){var r=t[t.length-1];return l(e,r?r.children.indexOf(e):null,r)}),f),{index:a||-1,endIndex:a?s||e.children.length:-1,map:i}}var ii=r(229);function ai(e,t){const{ordered:r=!1,tight:n=!1,prefix:o=null}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)si(e[s],i,{ordered:r,tight:n,prefix:o});return i}function si(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:ci(e.children)}]}]});else if(t.children.length>0)si(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),si(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,si(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,si(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function ci(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(ui(e[r]));return t}function ui(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return ci(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(ii(!0,{},n),{children:ci(e.children)})}const{position:t,...r}=e;return ii(!0,{},r)}var li=r(3428);const fi=new Xo;function hi(){return e=>{fi.reset(),(0,li.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?fi.slug(String(n),!0):fi.slug((0,Jo.B)(e)),t.id=n,r.id=n}))}}var pi=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n};const di=gi("start"),mi=gi("end");function gi(e){return function(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const yi={}.hasOwnProperty;function vi(e){return String(e||"").toUpperCase()}const bi={}.hasOwnProperty;function Ei(e,t){const r=t.data||{};return"value"in t&&!(bi.call(r,"hName")||bi.call(r,"hProperties")||bi.call(r,"hChildren"))?e.augment(t,pi("text",t.value)):e(t,"div",Si(e,t))}function wi(e,t,r){const n=t&&t.type;let o;if(!n)throw new Error("Expected node, got `"+t+"`");return o=bi.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?xi:e.unknownHandler,("function"==typeof o?o:Ei)(e,t,r)}function xi(e,t){return"children"in t?{...t,children:Si(e,t)}:t}function Si(e,t){const r=[];if("children"in t){const n=t.children;let o=-1;for(;++o<n.length;){const i=wi(e,n[o],t);if(i){if(o&&"break"===n[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?r.push(...i):r.push(i)}}}return r}var ki=r(488);const Ai={'"':"quot","&":"amp","<":"lt",">":"gt"};function Di(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Ai[e]+";"}))}(function(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&(0,ki.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,ki.asciiAlphanumeric)(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function Ci(e,t){const r=[];let n=-1;for(t&&r.push(pi("text","\n"));++n<e.length;)n&&r.push(pi("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(pi("text","\n")),r}function Fi(e,t){const r=String(t.identifier),n=Di(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i;-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,i=e.footnoteOrder.length):(e.footnoteCounts[r]++,i=o+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[pi("text",String(i))])])}var Pi=r(4651);function Oi(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return pi("text","!["+t.alt+n);const o=Si(e,t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(pi("text","["));const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push(pi("text",n)),o}function Ti(e){const t=e.spread;return null==t?e.children.length>1:t}function ji(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const Ii={blockquote:function(e,t){return e(t,"blockquote",Ci(Si(e,t),!0))},break:function(e,t){return[e(t,"br"),pi("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};n&&(o.className=["language-"+n]);const i=e(t,"code",o,[pi("text",r)]);return t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])},delete:function(e,t){return e(t,"del",Si(e,t))},emphasis:function(e,t){return e(t,"em",Si(e,t))},footnoteReference:Fi,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const o=String(n);return r[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Fi(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Si(e,t))},html:function(e,t){return e.dangerous?e.augment(t,pi("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Oi(e,t);const n={src:Pi(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:Pi(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[pi("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Oi(e,t);const n={href:Pi(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,Si(e,t))},link:function(e,t){const r={href:Pi(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,Si(e,t))},listItem:function(e,t,r){const n=Si(e,t),o=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Ti(r[n]);return Boolean(t)}(r):Ti(t),i={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(pi("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(pi("text","\n")),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];return!c||!o&&"tagName"in c&&"p"===c.tagName||a.push(pi("text","\n")),e(t,"li",i,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",o=Si(e,t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<o.length;){const e=o[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Ci(o,!0))},paragraph:function(e,t){return e(t,"p",Si(e,t))},root:function(e,t){return e.augment(t,pi("root",Ci(Si(e,t))))},strong:function(e,t){return e(t,"strong",Si(e,t))},table:function(e,t){const r=t.children;let n=-1;const o=t.align||[],i=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td",c=[];let u=-1;const l=t.align?o.length:a.length;for(;++u<l;){const t=a[u];c.push(e(t,s,{align:o[u]},t?Si(e,t):[]))}i[n]=e(r[n],"tr",Ci(c,!0))}return e(t,"table",Ci([e(i[0].position,"thead",Ci([i[0]],!0))].concat(i[1]?e({start:di(i[1]),end:mi(i[i.length-1])},"tbody",Ci(i.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,pi("text",function(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(ji(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(ji(t.slice(o),o>0,!1)),i.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:_i,yaml:_i,definition:_i,footnoteDefinition:_i};function _i(){return null}const Ri={}.hasOwnProperty;function Bi(e,t){const r=t||{},n=r.allowDangerousHtml||!1,o={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return(0,li.visit)(e,"definition",(e=>{const r=vi(e.identifier);r&&!yi.call(t,r)&&(t[r]=e)})),function(e){const r=vi(e);return r&&yi.call(t,r)?t[r]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.augment=i,a.handlers={...Ii,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,li.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Ri.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:di(n),end:mi(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),i(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}function Li(e,t){const r=Bi(e,t),n=wi(r,e,null),o=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const o=Si(e,n),i=String(n.identifier),a=Di(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Ci(o,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[pi("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Ci(r,!0)},{type:"text",value:"\n"}]}}(r);return o&&n.children.push(pi("text","\n"),o),Array.isArray(n)?{type:"root",children:n}:n}var Ni=r(4799);const Mi=function(e,t,r,n){const o=a.useRef(r),i=a.useRef(n);a.useEffect((()=>{o.current=r,i.current=n})),a.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(...e){n||o.current.apply(this,e)}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])};
1
+ (()=>{var e,t,r,n,o,i,a={1837:(e,t,r)=>{"use strict";r.d(t,{l_:()=>n.l_,fy:()=>n.fy,De:()=>n.De,$B:()=>n.$B,ql:()=>br,cu:()=>Ca,IA:()=>Fa,fH:()=>uo,$q:()=>n.$q,aC:()=>n.aC,Wp:()=>Ja,UG:()=>Ss,Hn:()=>N,Sy:()=>us,ER:()=>n.ER,oI:()=>n.oI,Lj:()=>n.Lj,q4:()=>Rs,rK:()=>n.rK,US:()=>Is,W3:()=>ns,nC:()=>Oa,vJ:()=>Dt,WA:()=>Ia,iv:()=>lt,Em:()=>Xo,vU:()=>Yo,He:()=>js,Ak:()=>cs,oe:()=>n.oe,V5:()=>_s,CB:()=>n.CB,F4:()=>Ct,_f:()=>_a,j0:()=>W(),JH:()=>n.JH,FB:()=>n.FB,YB:()=>n.YB,WY:()=>n.WY,zo:()=>Ft,ol:()=>os,r5:()=>Ea,UK:()=>wa,bd:()=>Ka,r3:()=>xa,CQ:()=>Ra,Nr:()=>Cs,jr:()=>Ds,zX:()=>Hi,Rs:()=>Ts,y1:()=>ha,cw:()=>Vo,mP:()=>Xa,tT:()=>as,D2:()=>Ps,D9:()=>As,v9:()=>is,CM:()=>ss,LU:()=>Ba,TC:()=>Ua,fB:()=>Fs});var n=r(3440),o=r(4760),i=r(4246),a=r(7363),s=r.n(a),c=r(4649),u=r(189);function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var f="function"==typeof Symbol&&Symbol.observable||"@@observable",h=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+h(),REPLACE:"@@redux/REPLACE"+h(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+h()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function m(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(l(1));return r(m)(e,t)}if("function"!=typeof e)throw new Error(l(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function h(){if(c)throw new Error(l(3));return i}function g(e){if("function"!=typeof e)throw new Error(l(4));if(c)throw new Error(l(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(l(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),a=null}}}function y(e){if(!d(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if(c)throw new Error(l(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}function v(e){if("function"!=typeof e)throw new Error(l(10));o=e,y({type:p.REPLACE})}function b(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(l(11));function r(){e.next&&e.next(h())}return r(),{unsubscribe:t(r)}}})[f]=function(){return this},e}return y({type:p.INIT}),(n={dispatch:y,subscribe:g,getState:h,replaceReducer:v})[f]=b,n}function g(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(l(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=g.apply(void 0,i)(r.dispatch),(0,u.Z)((0,u.Z)({},r),{},{dispatch:n})}}}var v=r(8907),b=r(2611),E=s().createContext(null);var w=function(e){e()},x=function(){return w};var S={notify:function(){},get:function(){return[]}};function k(e,t){var r,n=S;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){var e=x(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=S)},getListeners:function(){return n}};return a}var A="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;const D=function(e){var t=e.store,r=e.context,n=e.children,o=(0,a.useMemo)((function(){var e=k(t);return{store:t,subscription:e}}),[t]),i=(0,a.useMemo)((function(){return t.getState()}),[t]);A((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var c=r||E;return s().createElement(c.Provider,{value:o},n)};var C=r(5839),F=r.n(C);r(9272);r(5773);function P(){return(0,a.useContext)(E)}var O=function(e,t){return e===t};function T(e){void 0===e&&(e=E);var t=e===E?P:function(){return(0,a.useContext)(e)};return function(e,r){void 0===r&&(r=O);var n=t(),o=function(e,t,r,n){var o,i=(0,a.useReducer)((function(e){return e+1}),0)[1],s=(0,a.useMemo)((function(){return k(r,n)}),[r,n]),c=(0,a.useRef)(),u=(0,a.useRef)(),l=(0,a.useRef)(),f=(0,a.useRef)(),h=r.getState();try{if(e!==u.current||h!==l.current||c.current){var p=e(h);o=void 0!==f.current&&t(p,f.current)?f.current:p}else o=f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return A((function(){u.current=e,l.current=h,f.current=o,c.current=void 0})),A((function(){function e(){try{var e=r.getState();if(e===l.current)return;var n=u.current(e);if(t(n,f.current))return;f.current=n,l.current=e}catch(e){c.current=e}i()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[r,s]),o}(e,r,n.store,n.subscription);return(0,a.useDebugValue)(o),o}}var j,I=T(),_=r(1533);j=_.unstable_batchedUpdates,w=j;const R="TYPE_SET_STATE",B="TYPE_GET_STATE";function L(e){const t=Object.getPrototypeOf(e);return Object.getOwnPropertyNames(t).filter((e=>!["constructor","onAction","subscription"].includes(e)&&"function"==typeof t[e]&&!e.startsWith("_")))}class N{constructor(){(0,c.Z)(this,"initialState",void 0),(0,c.Z)(this,"state",void 0)}*getState(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return yield{type:B,payload:{models:t}}}setState(e){return{type:R,payload:{fn:e}}}dispatch(e){}}function M(e){return e&&"function"==typeof e.next&&"function"==typeof e.throw}(0,v.Fl)(!1);const H=(e,t,r)=>{for(let n of e)t=n(t,r);return t},z=(e,t)=>{for(let r in e){let n=e[r];e[r]=function(){let e=n(...arguments);if("function"==typeof e)return e(t)}}return e};function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const o={},i={},a={},s={},c={},u={};for(const r in e){const n=e[r];void 0!==n.initialState?"function"==typeof n.initialState?a[r]=n.initialState(t[r],t):a[r]=(0,b.merge)(n.initialState,t[r]):a[r]=t[r],i[r]={},n.onAction&&(u[r]=(e,t)=>n.onAction(e,t,s[r])),n.subscription&&(c[r]=n.subscription),n.dispatch=function(e){if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s[r][e](...n)}};const l=L(n);for(let e of l){const t=Object.getPrototypeOf(n)[e],a="".concat(r,"/").concat(e);i[r][e]=function(){for(var e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return async e=>{const{dispatch:s,getState:c}=e;let l=0;const f=Object.entries(u).filter((e=>{let[t]=e;return t!==r})).map((e=>{let[,t]=e;return t}));let h=H(f,t.bind(n),a)(...i);const p=async e=>{let t=await e.next();for(;!t.done;){let n,i;if(t.value instanceof Promise)try{n=await t.value}catch(e){i=e}else if(M(t.value))try{n=await p(t.value)}catch(e){i=e}else{let e=t.value,i=e.payload;switch(e.type){case B:const e=c();n=i.models.length>0?i.models.length>1?i.models.map((t=>e[t])):e[i.models[0]]:e;break;case R:let t="".concat(a,"/@@").concat(++l);o[t]=i.fn,s({type:t,name:r}),delete o[t]}}t=i?await e.throw(i):await e.next(n)}return t.value};await p(h)}}}}const l=function(e,t){return(0,v.Uy)(e,(e=>{t.name&&o[t.type]&&("function"==typeof o[t.type]?e[t.name]=(0,v.Uy)(e[t.name],o[t.type]):e[t.name]=o[t.type])}))},f=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||g,h=m(r(l),a,f(y(...n))),{getState:p}=h;for(let[e,t]of Object.entries(i))s[e]=z(t,h);for(let t in c)c[t].call(e[t],s[t],p()[t]);return h.actions=s,h}const $=(0,a.createContext)({actions:{}});function q(e){let{store:t,children:r}=e;return(0,i.jsx)($.Provider,{value:{actions:t.actions},children:(0,i.jsx)(D,{store:t,children:r})})}function V(e,t){return"string"==typeof e||Array.isArray(e)?I((t=>Array.isArray(e)?e:Array(e).reduce(((e,t)=>e[t]),t)),t):I(e,t)}var G=r(6051),W=r.n(G),Q=r(8891),K=r(669),Z=r(2348),Y=r(4445),X=r.n(Y);const J=function(e){function t(e,n,c,u,h){for(var p,d,m,g,E,x=0,S=0,k=0,A=0,D=0,j=0,_=m=p=0,B=0,L=0,N=0,M=0,H=c.length,z=H-1,U="",$="",q="",V="";B<H;){if(d=c.charCodeAt(B),B===z&&0!==S+A+k+x&&(0!==S&&(d=47===S?10:47),A=k=x=0,H++,z++),0===S+A+k+x){if(B===z&&(0<L&&(U=U.replace(f,"")),0<U.trim().length)){switch(d){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(B)}d=59}switch(d){case 123:for(p=(U=U.trim()).charCodeAt(0),m=1,M=++B;B<H;){switch(d=c.charCodeAt(B)){case 123:m++;break;case 125:m--;break;case 47:switch(d=c.charCodeAt(B+1)){case 42:case 47:e:{for(_=B+1;_<z;++_)switch(c.charCodeAt(_)){case 47:if(42===d&&42===c.charCodeAt(_-1)&&B+2!==_){B=_+1;break e}break;case 10:if(47===d){B=_+1;break e}}B=_}}break;case 91:d++;case 40:d++;case 34:case 39:for(;B++<z&&c.charCodeAt(B)!==d;);}if(0===m)break;B++}if(m=c.substring(M,B),0===p&&(p=(U=U.replace(l,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(U=U.replace(f,"")),d=U.charCodeAt(1)){case 100:case 109:case 115:case 45:L=n;break;default:L=T}if(M=(m=t(n,L,m,d,h+1)).length,0<I&&(E=s(3,m,L=r(T,U,N),n,F,C,M,d,h,u),U=L.join(""),void 0!==E&&0===(M=(m=E.trim()).length)&&(d=0,m="")),0<M)switch(d){case 115:U=U.replace(w,a);case 100:case 109:case 45:m=U+"{"+m+"}";break;case 107:m=(U=U.replace(y,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=U+m,112===u&&($+=m,m="")}else m=""}else m=t(n,r(n,U,N),m,u,h+1);q+=m,m=N=L=_=p=0,U="",d=c.charCodeAt(++B);break;case 125:case 59:if(1<(M=(U=(0<L?U.replace(f,""):U).trim()).length))switch(0===_&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(M=(U=U.replace(" ",":")).length),0<I&&void 0!==(E=s(1,U,n,e,F,C,$.length,u,h,u))&&0===(M=(U=E.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),d=U.charCodeAt(1),p){case 0:break;case 64:if(105===d||99===d){V+=U+c.charAt(B);break}default:58!==U.charCodeAt(M-1)&&($+=o(U,p,d,U.charCodeAt(2)))}N=L=_=p=0,U="",d=c.charCodeAt(++B)}}switch(d){case 13:case 10:47===S?S=0:0===1+p&&107!==u&&0<U.length&&(L=1,U+="\0"),0<I*R&&s(0,U,n,e,F,C,$.length,u,h,u),C=1,F++;break;case 59:case 125:if(0===S+A+k+x){C++;break}default:switch(C++,g=c.charAt(B),d){case 9:case 32:if(0===A+x+S)switch(D){case 44:case 58:case 9:case 32:g="";break;default:32!==d&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===A+S+x&&(L=N=1,g="\f"+g);break;case 108:if(0===A+S+x+P&&0<_)switch(B-_){case 2:112===D&&58===c.charCodeAt(B-3)&&(P=D);case 8:111===j&&(P=j)}break;case 58:0===A+S+x&&(_=B);break;case 44:0===S+k+A+x&&(L=1,g+="\r");break;case 34:case 39:0===S&&(A=A===d?0:0===A?d:A);break;case 91:0===A+S+k&&x++;break;case 93:0===A+S+k&&x--;break;case 41:0===A+S+x&&k--;break;case 40:if(0===A+S+x){if(0===p)if(2*D+3*j==533);else p=1;k++}break;case 64:0===S+k+A+x+_+m&&(m=1);break;case 42:case 47:if(!(0<A+x+k))switch(S){case 0:switch(2*d+3*c.charCodeAt(B+1)){case 235:S=47;break;case 220:M=B,S=42}break;case 42:47===d&&42===D&&M+2!==B&&(33===c.charCodeAt(M+2)&&($+=c.substring(M,B+1)),g="",S=0)}}0===S&&(U+=g)}j=D,D=d,B++}if(0<(M=$.length)){if(L=n,0<I&&(void 0!==(E=s(2,$,L,e,F,C,M,u,h,u))&&0===($=E).length))return V+$+q;if($=L.join(",")+"{"+$+"}",0!=O*P){switch(2!==O||i($,2)||(P=0),P){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(v,"::-webkit-input-$1")+$.replace(v,"::-moz-$1")+$.replace(v,":-ms-input-$1")+$}P=0}}return V+$+q}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var u=0;u<a;++u)t[c++]=n(e[u]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===O||2===O&&i(c,1)?"-webkit-"+c+c:c}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(D,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(E,"tb");break;case 232:c=a.replace(E,"tb-rl");break;case 220:c=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),_(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,c,l){for(var f,h=0,p=t;h<I;++h)switch(f=j[h].call(u,e,p,r,n,o,i,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(_=null,e?"function"!=typeof e?O=1:(O=2,_=e):O=0),c}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=s(-1,r,n,n,F,C,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(T,n,r,0,0);return 0<I&&(void 0!==(o=s(-2,i,n,n,F,C,i.length,0,0,0))&&(i=o)),"",P=0,C=F=1,i}var l=/^\0+/g,f=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,d=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,S=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,C=1,F=1,P=0,O=1,T=[],j=[],I=0,_=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:I=j.length=0;break;default:if("function"==typeof t)j[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};const ee={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const te=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}};var re=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const ne=te((function(e){return re.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var oe=r(7061);function ie(){return(ie=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ae=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},se=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Z.typeOf)(e)},ce=Object.freeze([]),ue=Object.freeze({});function le(e){return"function"==typeof e}function fe(e){return e.displayName||e.name||"Component"}function he(e){return e&&"string"==typeof e.styledComponentId}var pe=void 0!==oe&&(oe.env.REACT_APP_SC_ATTR||oe.env.SC_ATTR)||"data-styled",de="undefined"!=typeof window&&"HTMLElement"in window,me=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==oe&&void 0!==oe.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==oe.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==oe.env.REACT_APP_SC_DISABLE_SPEEDY&&oe.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==oe&&void 0!==oe.env.SC_DISABLE_SPEEDY&&""!==oe.env.SC_DISABLE_SPEEDY&&("false"!==oe.env.SC_DISABLE_SPEEDY&&oe.env.SC_DISABLE_SPEEDY)),ge={};function ye(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var ve=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&ye(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),be=new Map,Ee=new Map,we=1,xe=function(e){if(be.has(e))return be.get(e);for(;Ee.has(we);)we++;var t=we++;return be.set(e,t),Ee.set(t,e),t},Se=function(e){return Ee.get(e)},ke=function(e,t){t>=we&&(we=t+1),be.set(e,t),Ee.set(t,e)},Ae="style["+pe+'][data-styled-version="5.3.5"]',De=new RegExp("^"+pe+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Ce=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Fe=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(De);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(ke(u,c),Ce(e,u,s[3]),e.getTag().insertRules(c,n)),n.length=0}else n.push(a)}}},Pe=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Oe=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(pe))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(pe,"active"),n.setAttribute("data-styled-version","5.3.5");var a=Pe();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Te=function(){function e(e){var t=this.element=Oe(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}ye(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),je=function(){function e(e){var t=this.element=Oe(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ie=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),_e=de,Re={isServer:!de,useCSSOMInjection:!me},Be=function(){function e(e,t,r){void 0===e&&(e=ue),void 0===t&&(t={}),this.options=ie({},Re,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&de&&_e&&(_e=!1,function(e){for(var t=document.querySelectorAll(Ae),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(pe)&&(Fe(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return xe(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(ie({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Ie(o):n?new Te(o):new je(o),new ve(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(xe(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(xe(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(xe(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=Se(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=pe+".g"+o+'[id="'+i+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),n+=""+s+c+'{content:"'+u+'"}/*!sc*/\n'}}}return n}(this)},e}(),Le=/(a)(d)/gi,Ne=function(e){return String.fromCharCode(e+(e>25?39:97))};function Me(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ne(t%52)+r;return(Ne(t%52)+r).replace(Le,"$1-$2")}var He=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ze=function(e){return He(5381,e)};function Ue(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(le(r)&&!he(r))return!1}return!0}var $e=ze("5.3.5"),qe=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ue(e),this.componentId=t,this.baseHash=He($e,t),this.baseStyle=r,Be.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=ct(this.rules,e,t,r).join(""),a=Me(He(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,u=He(this.baseHash,r.hash),l="",f=0;f<c;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var p=ct(h,e,t,r),d=Array.isArray(p)?p.join(""):p;u=He(u,d+f),l+=d}}if(l){var m=Me(u>>>0);if(!t.hasNameForId(n,m)){var g=r(l,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Ve=/^\s*\/\/.*$/gm,Ge=[":","[",".","#"];function We(e){var t,r,n,o,i=void 0===e?ue:e,a=i.options,s=void 0===a?ue:a,c=i.plugins,u=void 0===c?ce:c,l=new J(s),f=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,n,i){return 0===n&&-1!==Ge.indexOf(i[r.length])||i.match(o)?e:"."+t};function d(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Ve,""),u=i&&a?a+" "+i+" { "+c+" }":c;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),l(a||!i?"":i,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,p))},h,function(e){if(-2===e){var t=f;return f=[],t}}])),d.hash=u.length?u.reduce((function(e,t){return t.name||ye(15),He(e,t.name)}),5381).toString():"",d}var Qe=s().createContext(),Ke=(Qe.Consumer,s().createContext()),Ze=(Ke.Consumer,new Be),Ye=We();function Xe(){return(0,a.useContext)(Qe)||Ze}function Je(){return(0,a.useContext)(Ke)||Ye}function et(e){var t=(0,a.useState)(e.stylisPlugins),r=t[0],n=t[1],o=Xe(),i=(0,a.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,a.useMemo)((function(){return We({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,a.useEffect)((function(){X()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),s().createElement(Qe.Provider,{value:i},s().createElement(Ke.Provider,{value:c},e.children))}var tt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ye);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return ye(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ye),this.name+e.hash},e}(),rt=/([A-Z])/,nt=/([A-Z])/g,ot=/^ms-/,it=function(e){return"-"+e.toLowerCase()};function at(e){return rt.test(e)?e.replace(nt,it).replace(ot,"-ms-"):e}var st=function(e){return null==e||!1===e||""===e};function ct(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=ct(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return st(e)?"":he(e)?"."+e.styledComponentId:le(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ct(e(t),t,r,n):e instanceof tt?r?(e.inject(r,n),e.getName(n)):e:se(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!st(t[a])&&(Array.isArray(t[a])&&t[a].isCss||le(t[a])?i.push(at(a)+":",t[a],";"):se(t[a])?i.push.apply(i,e(t[a],a)):i.push(at(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in ee?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var c}var ut=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function lt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return le(e)||se(e)?ut(ct(ae(ce,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:ut(ct(ae(e,r)))}new Set;var ft=function(e,t,r){return void 0===r&&(r=ue),e.theme!==r.theme&&e.theme||t||r.theme},ht=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pt=/(^-|-$)/g;function dt(e){return e.replace(ht,"-").replace(pt,"")}var mt=function(e){return Me(ze(e)>>>0)};function gt(e){return"string"==typeof e&&!0}var yt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},vt=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function bt(e,t,r){var n=e[r];yt(t)&&yt(n)?Et(n,t):e[r]=t}function Et(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(yt(a))for(var s in a)vt(s)&&bt(e,a[s],s)}return e}var wt=s().createContext();wt.Consumer;var xt={};function St(e,t,r){var n=he(e),o=!gt(e),i=t.attrs,c=void 0===i?ce:i,u=t.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":dt(e);xt[r]=(xt[r]||0)+1;var n=r+"-"+mt("5.3.5"+r+xt[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):u,f=t.displayName,h=void 0===f?function(e){return gt(e)?"styled."+e:"Styled("+fe(e)+")"}(e):f,p=t.displayName&&t.componentId?dt(t.displayName)+"-"+t.componentId:t.componentId||l,d=n&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new qe(r,p,n?e.componentStyle:void 0),v=y.isStatic&&0===c.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.shouldForwardProp,l=e.styledComponentId,f=e.target,h=function(e,t,r){void 0===e&&(e=ue);var n=ie({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in le(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(ft(t,(0,a.useContext)(wt),s)||ue,t,o),p=h[0],d=h[1],m=function(e,t,r,n){var o=Xe(),i=Je();return t?e.generateAndInjectStyles(ue,o,i):e.generateAndInjectStyles(r,o,i)}(i,n,p),g=r,y=d.$as||t.$as||d.as||t.as||f,v=gt(y),b=d!==t?ie({},t,{},d):t,E={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?E.as=b[w]:(u?u(w,ne,y):!v||ne(w))&&(E[w]=b[w]));return t.style&&d.style!==t.style&&(E.style=ie({},t.style,{},d.style)),E.className=Array.prototype.concat(c,l,m!==l?m:null,t.className,d.className).filter(Boolean).join(" "),E.ref=g,(0,a.createElement)(y,E)}(g,e,t,v)};return b.displayName=h,(g=s().forwardRef(b)).attrs=d,g.componentStyle=y,g.displayName=h,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ce,g.styledComponentId=p,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(gt(e)?e:dt(fe(e)));return St(e,ie({},o,{attrs:d,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Et({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},o&&F()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var kt=function(e){return function e(t,r,n){if(void 0===n&&(n=ue),!(0,Z.isValidElementType)(r))return ye(1,String(r));var o=function(){return t(r,n,lt.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,ie({},n,{},o))},o.attrs=function(o){return e(t,r,ie({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(St,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){kt[e]=kt(e)}));var At=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ue(e),Be.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(ct(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&Be.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Dt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=lt.apply(void 0,[e].concat(r)),i="sc-global-"+mt(JSON.stringify(o)),c=new At(o,i);function u(e){var t=Xe(),r=Je(),n=(0,a.useContext)(wt),o=(0,a.useRef)(t.allocateGSInstance(i)).current;return t.server&&l(o,e,t,n,r),(0,a.useLayoutEffect)((function(){if(!t.server)return l(o,e,t,n,r),function(){return c.removeStyles(o,t)}}),[o,e,t,n,r]),null}function l(e,t,r,n,o){if(c.isStatic)c.renderStyles(e,ge,r,o);else{var i=ie({},t,{theme:ft(t,n,u.defaultProps)});c.renderStyles(e,i,r,o)}}return s().memo(u)}function Ct(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=lt.apply(void 0,[e].concat(r)).join(""),i=mt(o);return new tt(i,o)}!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Pe();return"<style "+[r&&'nonce="'+r+'"',pe+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?ye(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return ye(2);var r=((t={})[pe]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Pe();return n&&(r.nonce=n),[s().createElement("style",ie({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Be({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?ye(2):s().createElement(et,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return ye(3)}}();const Ft=kt;var Pt=r(3615),Ot=r.n(Pt),Tt=r(4335),jt=r.n(Tt),It=r(3996),_t=r.n(It);function Rt(){return(Rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lt(e,t)}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}var Mt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Ht={rel:["amphtml","canonical","alternate"]},zt={type:["application/ld+json"]},Ut={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},$t=Object.keys(Mt).map((function(e){return Mt[e]})),qt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Vt=Object.keys(qt).reduce((function(e,t){return e[qt[t]]=t,e}),{}),Gt=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},Wt=function(e){var t=Gt(e,Mt.TITLE),r=Gt(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=Gt(e,"defaultTitle");return t||n||void 0},Qt=function(e){return Gt(e,"onChangeClientState")||function(){}},Kt=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Rt({},e,t)}),{})},Zt=function(e,t){return t.filter((function(e){return void 0!==e[Mt.BASE]})).map((function(e){return e[Mt.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==e.indexOf(i)&&r[i])return t.concat(r)}return t}),[])},Yt=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var o={};r.filter((function(e){for(var r,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===c&&"stylesheet"===e[c].toLowerCase()||(r=c),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var u=e[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=Rt({},n[s],o[s]);n[s]=c}return e}),[]).reverse()},Xt=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},Jt=function(e){return Array.isArray(e)?e.join(""):e},er=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},tr=[Mt.NOSCRIPT,Mt.SCRIPT,Mt.STYLE],rr=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},nr=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},or=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[qt[r]||r]=e[r],t}),t)},ir=function(e,t){return t.map((function(t,r){var n,o=((n={key:r})["data-rh"]=!0,n);return Object.keys(t).forEach((function(e){var r=qt[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]})),s().createElement(e,o)}))},ar=function(e,t,r){switch(e){case Mt.TITLE:return{toComponent:function(){return r=t.titleAttributes,(n={key:e=t.title})["data-rh"]=!0,o=or(r,n),[s().createElement(Mt.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=nr(r),i=Jt(t);return o?"<"+e+' data-rh="true" '+o+">"+rr(i,n)+"</"+e+">":"<"+e+' data-rh="true">'+rr(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return or(t)},toString:function(){return nr(t)}};default:return{toComponent:function(){return ir(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+rr(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===tr.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,r)}}}},sr=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,c=void 0===s?"":s,u=e.titleAttributes,l=e.linkTags,f=e.metaTags,h=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var d=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,o=er(e.metaTags,Ut),i=er(t,Ht),a=er(r,zt);return{priorityMethods:{toComponent:function(){return[].concat(ir(Mt.META,o.priority),ir(Mt.LINK,i.priority),ir(Mt.SCRIPT,a.priority))},toString:function(){return ar(Mt.META,o.priority,n)+" "+ar(Mt.LINK,i.priority,n)+" "+ar(Mt.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=d.priorityMethods,l=d.linkTags,f=d.metaTags,h=d.scriptTags}return{priority:p,base:ar(Mt.BASE,t,n),bodyAttributes:ar("bodyAttributes",r,n),htmlAttributes:ar("htmlAttributes",o,n),link:ar(Mt.LINK,l,n),meta:ar(Mt.META,f,n),noscript:ar(Mt.NOSCRIPT,i,n),script:ar(Mt.SCRIPT,h,n),style:ar(Mt.STYLE,a,n),title:ar(Mt.TITLE,{title:c,titleAttributes:u},n)}},cr=s().createContext({}),ur=Ot().shape({setHelmet:Ot().func,helmetInstances:Ot().shape({get:Ot().func,add:Ot().func,remove:Ot().func})}),lr="undefined"!=typeof document,fr=function(e){function t(r){var n;return(n=e.call(this,r)||this).instances=[],n.value={setHelmet:function(e){n.props.context.helmet=e},helmetInstances:{get:function(){return n.instances},add:function(e){n.instances.push(e)},remove:function(e){var t=n.instances.indexOf(e);n.instances.splice(t,1)}}},t.canUseDOM||(r.context.helmet=sr({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n}return Bt(t,e),t.prototype.render=function(){return s().createElement(cr.Provider,{value:this.value},this.props.children)},t}(a.Component);fr.canUseDOM=lr,fr.propTypes={context:Ot().shape({helmet:Ot().shape()}),children:Ot().node.isRequired},fr.defaultProps={context:{}},fr.displayName="HelmetProvider";var hr=function(e,t){var r,n=document.head||document.querySelector(Mt.HEAD),o=n.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?n.innerHTML=t.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(o,void 0===t[o]?"":t[o]));n.setAttribute("data-rh","true"),i.some((function(e,t){return r=t,n.isEqualNode(e)}))?i.splice(r,1):a.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:a}},pr=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s+=1){var c=a[s],u=t[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},dr=function(e,t){var r=e.baseTag,n=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,l=e.title,f=e.titleAttributes;pr(Mt.BODY,e.bodyAttributes),pr(Mt.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=Jt(e)),pr(Mt.TITLE,t)}(l,f);var h={baseTag:hr(Mt.BASE,r),linkTags:hr(Mt.LINK,o),metaTags:hr(Mt.META,i),noscriptTags:hr(Mt.NOSCRIPT,a),scriptTags:hr(Mt.SCRIPT,c),styleTags:hr(Mt.STYLE,u)},p={},d={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(d[e]=h[e].oldTags)})),t&&t(),s(e,p,d)},mr=null,gr=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}Bt(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!X()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,o=null,i=(e=r.helmetInstances.get().map((function(e){var t=Rt({},e.props);return delete t.context,t})),{baseTag:Zt(["href"],e),bodyAttributes:Kt("bodyAttributes",e),defer:Gt(e,"defer"),encode:Gt(e,"encodeSpecialCharacters"),htmlAttributes:Kt("htmlAttributes",e),linkTags:Yt(Mt.LINK,["rel","href"],e),metaTags:Yt(Mt.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Yt(Mt.NOSCRIPT,["innerHTML"],e),onChangeClientState:Qt(e),scriptTags:Yt(Mt.SCRIPT,["src","innerHTML"],e),styleTags:Yt(Mt.STYLE,["cssText"],e),title:Wt(e),titleAttributes:Kt("titleAttributes",e),prioritizeSeoTags:Xt(e,"prioritizeSeoTags")});fr.canUseDOM?(t=i,mr&&cancelAnimationFrame(mr),t.defer?mr=requestAnimationFrame((function(){dr(t,(function(){mr=null}))})):(dr(t),mr=null)):sr&&(o=sr(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(a.Component);gr.propTypes={context:ur.isRequired},gr.displayName="HelmetDispatcher";var yr=["children"],vr=["children"],br=function(e){function t(){return e.apply(this,arguments)||this}Bt(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!jt()(this.props,e)},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case Mt.SCRIPT:case Mt.NOSCRIPT:return{innerHTML:t};case Mt.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return Rt({},n,((t={})[r.type]=[].concat(n[r.type]||[],[Rt({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case Mt.TITLE:return Rt({},o,((t={})[n.type]=a,t.titleAttributes=Rt({},i),t));case Mt.BODY:return Rt({},o,{bodyAttributes:Rt({},i)});case Mt.HTML:return Rt({},o,{htmlAttributes:Rt({},i)});default:return Rt({},o,((r={})[n.type]=Rt({},i),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=Rt({},t);return Object.keys(e).forEach((function(t){var n;r=Rt({},r,((n={})[t]=e[t],n))})),r},r.warnOnInvalidChildren=function(e,t){return _t()($t.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+$t.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),_t()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,n={};return s().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=Nt(o,yr),s=Object.keys(a).reduce((function(e,t){return e[Vt[t]||t]=a[t],e}),{}),c=e.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(e,i),c){case Mt.FRAGMENT:t=r.mapChildrenToProps(i,t);break;case Mt.LINK:case Mt.META:case Mt.NOSCRIPT:case Mt.SCRIPT:case Mt.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,t)},r.render=function(){var e=this.props,t=e.children,r=Rt({},Nt(e,vr));return t&&(r=this.mapChildrenToProps(t,r)),s().createElement(cr.Consumer,null,(function(e){return s().createElement(gr,Rt({},r,{context:e}))}))},t}(a.Component);br.propTypes={base:Ot().object,bodyAttributes:Ot().object,children:Ot().oneOfType([Ot().arrayOf(Ot().node),Ot().node]),defaultTitle:Ot().string,defer:Ot().bool,encodeSpecialCharacters:Ot().bool,htmlAttributes:Ot().object,link:Ot().arrayOf(Ot().object),meta:Ot().arrayOf(Ot().object),noscript:Ot().arrayOf(Ot().object),onChangeClientState:Ot().func,script:Ot().arrayOf(Ot().object),style:Ot().arrayOf(Ot().object),title:Ot().string,titleAttributes:Ot().object,titleTemplate:Ot().string,prioritizeSeoTags:Ot().bool},br.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},br.displayName="Helmet";var Er=function(e,t){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Er(e,t)};function wr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Er(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var xr=function(){return xr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xr.apply(this,arguments)};function Sr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function kr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var Ar,Dr,Cr;Object.create;function Fr(e){return e.type===Dr.literal}function Pr(e){return e.type===Dr.argument}function Or(e){return e.type===Dr.number}function Tr(e){return e.type===Dr.date}function jr(e){return e.type===Dr.time}function Ir(e){return e.type===Dr.select}function _r(e){return e.type===Dr.plural}function Rr(e){return e.type===Dr.pound}function Br(e){return e.type===Dr.tag}function Lr(e){return!(!e||"object"!=typeof e||e.type!==Cr.number)}function Nr(e){return!(!e||"object"!=typeof e||e.type!==Cr.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Ar||(Ar={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Dr||(Dr={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Cr||(Cr={}));var Mr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Hr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function zr(e){var t={};return e.replace(Hr,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Ur=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var $r=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qr=/^(@+)?(\+|#+)?[rs]?$/g,Vr=/(\*)(0+)|(#+)(0+)|(0+)/g,Gr=/^(0+)$/;function Wr(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(qr,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function Qr(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Kr(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Gr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zr(e){var t=Qr(e);return t||{}}function Yr(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=xr(xr(xr({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return xr(xr({},e),Zr(t))}),{}));continue;case"engineering":t=xr(xr(xr({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return xr(xr({},e),Zr(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Vr,(function(e,r,n,o,i,a){if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Gr.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if($r.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace($r,(function(e,r,n,o,i,a){return"*"===n?t.minimumFractionDigits=r.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var i=o.options[0];"w"===i?t=xr(xr({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=xr(xr({},t),Wr(i)))}else if(qr.test(o.stem))t=xr(xr({},t),Wr(o.stem));else{var a=Qr(o.stem);a&&(t=xr(xr({},t),a));var s=Kr(o.stem);s&&(t=xr(xr({},t),s))}}return t}var Xr,Jr={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function en(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Jr[r||""]||Jr[n||""]||Jr["".concat(n,"-001")]||Jr["001"])[0]}var tn=new RegExp("^".concat(Mr.source,"*")),rn=new RegExp("".concat(Mr.source,"*$"));function nn(e,t){return{start:e,end:t}}var on=!!String.prototype.startsWith,an=!!String.fromCodePoint,sn=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,ln=!!String.prototype.trimEnd,fn=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},hn=!0;try{hn="a"===(null===(Xr=En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Xr?void 0:Xr[0])}catch(fe){hn=!1}var pn,dn=on?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},mn=an?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",o=e.length,i=0;o>i;){if((r=e[i++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},gn=sn?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t},yn=cn?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,o=e.charCodeAt(t);return o<55296||o>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?o:n-56320+(o-55296<<10)+65536}},vn=un?function(e){return e.trimStart()}:function(e){return e.replace(tn,"")},bn=ln?function(e){return e.trimEnd()}:function(e){return e.replace(rn,"")};function En(e,t){return new RegExp(e,t)}if(hn){var wn=En("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pn=function(e,t){var r;return wn.lastIndex=t,null!==(r=wn.exec(e)[1])&&void 0!==r?r:""}}else pn=function(e,t){for(var r=[];;){var n=yn(e,t);if(void 0===n||An(n)||Dn(n))break;r.push(n),t+=n>=65536?2:1}return mn.apply(void 0,r)};var xn=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Ar.UNMATCHED_CLOSING_TAG,nn(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Sn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{var a=this.clonePosition();this.bump(),n.push({type:Dr.pound,location:nn(a,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Dr.literal,value:"<".concat(n,"/>"),location:nn(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Sn(this.char()))return this.error(Ar.INVALID_TAG,nn(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(Ar.UNMATCHED_CLOSING_TAG,nn(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Dr.tag,value:n,children:i,location:nn(r,this.clonePosition())},err:null}:this.error(Ar.INVALID_TAG,nn(a,this.clonePosition())))}return this.error(Ar.UNCLOSED_TAG,nn(r,this.clonePosition()))}return this.error(Ar.INVALID_TAG,nn(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&kn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var i=this.tryParseUnquoted(e,t);if(i)n+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var s=nn(r,this.clonePosition());return{val:{type:Dr.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return mn.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),mn(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ar.EXPECT_ARGUMENT_CLOSING_BRACE,nn(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ar.EMPTY_ARGUMENT,nn(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Ar.MALFORMED_ARGUMENT,nn(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ar.EXPECT_ARGUMENT_CLOSING_BRACE,nn(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Dr.argument,value:n,location:nn(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ar.EXPECT_ARGUMENT_CLOSING_BRACE,nn(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Ar.MALFORMED_ARGUMENT,nn(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=pn(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:nn(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(Ar.EXPECT_ARGUMENT_TYPE,nn(i,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=bn(y.val)).length)return this.error(Ar.EXPECT_ARGUMENT_STYLE,nn(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:nn(u,this.clonePosition())}}if((v=this.tryParseArgumentClose(n)).err)return v;var l=nn(n,this.clonePosition());if(c&&dn(null==c?void 0:c.style,"::",0)){var f=vn(c.style.slice(2));if("number"===a)return(y=this.parseNumberSkeletonFromString(f,c.styleLocation)).err?y:{val:{type:Dr.number,value:r,location:l,style:y.val},err:null};if(0===f.length)return this.error(Ar.EXPECT_DATE_TIME_SKELETON,l);var h=f;this.locale&&(h=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if("j"===o){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(1&i),s=i<2?1:3+(i>>1),c=en(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=c+r}else r+="J"===o?"H":o}return r}(f,this.locale));var p={type:Cr.dateTime,pattern:h,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?zr(h):{}};return{val:{type:"date"===a?Dr.date:Dr.time,value:r,location:l,style:p},err:null}}return{val:{type:"number"===a?Dr.number:"date"===a?Dr.date:Dr.time,value:r,location:l,style:null!==(o=null==c?void 0:c.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ar.EXPECT_SELECT_ARGUMENT_OPTIONS,nn(d,xr({},d)));this.bumpSpace();var m=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===m.value){if(!this.bumpIf(":"))return this.error(Ar.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,nn(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(Ar.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ar.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),m=this.parseIdentifierIfPossible(),g=y.val}var v,b=this.tryParsePluralOrSelectOptions(e,a,t,m);if(b.err)return b;if((v=this.tryParseArgumentClose(n)).err)return v;var E=nn(n,this.clonePosition());return"select"===a?{val:{type:Dr.select,value:r,options:gn(b.val),location:E},err:null}:{val:{type:Dr.plural,value:r,options:gn(b.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:E},err:null};default:return this.error(Ar.INVALID_ARGUMENT_TYPE,nn(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Ar.EXPECT_ARGUMENT_CLOSING_BRACE,nn(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ar.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,nn(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ur).filter((function(e){return e.length>0})),r=[],n=0,o=t;n<o.length;n++){var i=o[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),c=0,u=s;c<u.length;c++)if(0===u[c].length)throw new Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(Ar.INVALID_NUMBER_SKELETON,t)}return{val:{type:Cr.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?Yr(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var o,i=!1,a=[],s=new Set,c=n.value,u=n.location;;){if(0===c.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(Ar.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ar.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=nn(l,this.clonePosition()),c=this.message.slice(l.offset,this.offset())}if(s.has(c))return this.error("select"===t?Ar.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ar.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(i=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Ar.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ar.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,nn(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var d=this.tryParseArgumentClose(h);if(d.err)return d;a.push([c,{value:p.val,location:nn(h,this.clonePosition())}]),s.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===a.length?this.error("select"===t?Ar.EXPECT_SELECT_ARGUMENT_SELECTOR:Ar.EXPECT_PLURAL_ARGUMENT_SELECTOR,nn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Ar.MISSING_OTHER_CLAUSE,nn(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=nn(n,this.clonePosition());return o?fn(i*=r)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=yn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(dn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&An(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Sn(e){return e>=97&&e<=122||e>=65&&e<=90}function kn(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function An(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Dn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Cn(e){e.forEach((function(e){if(delete e.location,Ir(e)||_r(e))for(var t in e.options)delete e.options[t].location,Cn(e.options[t].value);else Or(e)&&Lr(e.style)||(Tr(e)||jr(e))&&Nr(e.style)?delete e.style.location:Br(e)&&Cn(e.children)}))}function Fn(e,t){void 0===t&&(t={}),t=xr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new xn(e,t).parse();if(r.err){var n=SyntaxError(Ar[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Cn(r.val),r.val}function Pn(e,t){var r=t&&t.cache?t.cache:Ln,n=t&&t.serializer?t.serializer:_n;return(t&&t.strategy?t.strategy:In)(e,{cache:r,serializer:n})}function On(e,t,r,n){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(o);return void 0===i&&(i=e.call(this,n),t.set(o,i)),i}function Tn(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function jn(e,t,r,n,o){return r.bind(t,e,n,o)}function In(e,t){return jn(e,this,1===e.length?On:Tn,t.cache.create(),t.serializer)}var _n=function(){return JSON.stringify(arguments)};function Rn(){this.cache=Object.create(null)}Rn.prototype.get=function(e){return this.cache[e]},Rn.prototype.set=function(e,t){this.cache[e]=t};var Bn,Ln={create:function(){return new Rn}},Nn={variadic:function(e,t){return jn(e,this,Tn,t.cache.create(),t.serializer)},monadic:function(e,t){return jn(e,this,On,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Bn||(Bn={}));var Mn,Hn=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.code=r,o.originalMessage=n,o}return wr(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),zn=function(e){function t(t,r,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Bn.INVALID_VALUE,o)||this}return wr(t,e),t}(Hn),Un=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Bn.INVALID_VALUE,n)||this}return wr(t,e),t}(Hn),$n=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Bn.MISSING_VALUE,r)||this}return wr(t,e),t}(Hn);function qn(e){return"function"==typeof e}function Vn(e,t,r,n,o,i,a){if(1===e.length&&Fr(e[0]))return[{type:Mn.literal,value:e[0].value}];for(var s=[],c=0,u=e;c<u.length;c++){var l=u[c];if(Fr(l))s.push({type:Mn.literal,value:l.value});else if(Rr(l))"number"==typeof i&&s.push({type:Mn.literal,value:r.getNumberFormat(t).format(i)});else{var f=l.value;if(!o||!(f in o))throw new $n(f,a);var h=o[f];if(Pr(l))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Mn.literal:Mn.object,value:h});else if(Tr(l)){var p="string"==typeof l.style?n.date[l.style]:Nr(l.style)?l.style.parsedOptions:void 0;s.push({type:Mn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(jr(l)){p="string"==typeof l.style?n.time[l.style]:Nr(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:Mn.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Or(l)){(p="string"==typeof l.style?n.number[l.style]:Lr(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),s.push({type:Mn.literal,value:r.getNumberFormat(t,p).format(h)})}else{if(Br(l)){var d=l.children,m=l.value,g=o[m];if(!qn(g))throw new Un(m,"function",a);var y=g(Vn(d,t,r,n,o,i).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(e){return{type:"string"==typeof e?Mn.literal:Mn.object,value:e}})))}if(Ir(l)){if(!(v=l.options[h]||l.options.other))throw new zn(l.value,h,Object.keys(l.options),a);s.push.apply(s,Vn(v.value,t,r,n,o))}else if(_r(l)){var v;if(!(v=l.options["=".concat(h)])){if(!Intl.PluralRules)throw new Hn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Bn.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:l.pluralType}).select(h-(l.offset||0));v=l.options[b]||l.options.other}if(!v)throw new zn(l.value,h,Object.keys(l.options),a);s.push.apply(s,Vn(v.value,t,r,n,o,h-(l.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===Mn.literal&&t.type===Mn.literal?r.value+=t.value:e.push(t),e}),[])}(s)}function Gn(e,t){return t?Object.keys(e).reduce((function(r,n){var o,i;return r[n]=(o=e[n],(i=t[n])?xr(xr(xr({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=xr(xr({},o[t]),i[t]||{}),e}),{})):o),r}),xr({},e)):e}function Wn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Mn||(Mn={}));var Qn,Kn=function(){function e(t,r,n,o){var i,a=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===Mn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Vn(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Gn(e.formats,n),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,kr([void 0],t,!1)))}),{cache:Wn(i.number),strategy:Nn.variadic}),getDateTimeFormat:Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,kr([void 0],t,!1)))}),{cache:Wn(i.dateTime),strategy:Nn.variadic}),getPluralRules:Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,kr([void 0],t,!1)))}),{cache:Wn(i.pluralRules),strategy:Nn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},e.__parse=Fn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Qn||(Qn={}));var Zn=function(e){function t(r,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return(i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return wr(t,e),t}(Error),Yn=function(e){function t(t,r){return e.call(this,Qn.UNSUPPORTED_FORMATTER,t,r)||this}return wr(t,e),t}(Zn),Xn=function(e){function t(t,r){return e.call(this,Qn.INVALID_CONFIG,t,r)||this}return wr(t,e),t}(Zn),Jn=function(e){function t(t,r){return e.call(this,Qn.MISSING_DATA,t,r)||this}return wr(t,e),t}(Zn),eo=function(e){function t(t,r,n){return e.call(this,Qn.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),n)||this}return wr(t,e),t}(Zn),to=function(e){function t(t,r,n,o){var i=e.call(this,"".concat(t," \nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description," \n"),r,o)||this;return i.descriptor=n,i}return wr(t,e),t}(eo),ro=function(e){function t(t,r){var n=e.call(this,Qn.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return n.descriptor=t,n}return wr(t,e),t}(Zn);function no(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var oo={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function io(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function ao(e,t,r,n){var o,i=e&&e[t];if(i&&(o=i[r]),o)return o;n(new Yn("No ".concat(t," format named: ").concat(r)))}var so=a.createContext(null),co=(so.Consumer,so.Provider),uo=so;function lo(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function fo(e){lo(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var ho=xr(xr({},oo),{textComponent:a.Fragment});function po(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=xr({timeZone:t},e[n]),r}),{})}function mo(e,t){return Object.keys(xr(xr({},e),t)).reduce((function(r,n){return r[n]=xr(xr({},e[n]||{}),t[n]||{}),r}),{})}function go(e,t){if(!t)return e;var r=Kn.formats;return xr(xr(xr({},r),e),{date:mo(po(r.date,t),po(e.date||{},t)),time:mo(po(r.time,t),po(e.time||{},t))})}function yo(e,t,r,n,o){var i=e.locale,a=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.fallbackOnEmptyString,f=e.onError,h=e.timeZone,p=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,m=r.defaultMessage;lo(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(y)&&1===y.length&&y[0].type===Dr.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!p)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=xr(xr({},p),n||{}),a=go(a,h),u=go(u,h),!y){if(!1===l&&""===y)return y;if((!m||i&&i.toLowerCase()!==c.toLowerCase())&&f(new ro(r,i)),m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){return f(new to('Error formatting default message for: "'.concat(g,'", rendering default message verbatim'),i,r,e)),"string"==typeof m?m:g}return g}try{return t.getMessageFormat(y,i,a,xr({formatters:t},o||{})).format(n)}catch(e){f(new to('Error formatting message: "'.concat(g,'", using ').concat(m?"default message":"id"," as fallback."),i,r,e))}if(m)try{return t.getMessageFormat(m,c,u,o).format(n)}catch(e){f(new to('Error formatting the default message for: "'.concat(g,'", rendering message verbatim'),i,r,e))}return"string"==typeof y?y:"string"==typeof m?m:g}var vo=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function bo(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=a&&ao(o,"number",a,i)||{};return t(n,no(r,vo,s))}function Eo(e,t,r,n){void 0===n&&(n={});try{return bo(e,t,n).format(r)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function wo(e,t,r,n){void 0===n&&(n={});try{return bo(e,t,n).formatToParts(r)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting number.",t))}return[]}var xo=["numeric","style"];function So(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new Hn('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Bn.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,i=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&ao(o,"relative",a,i)||{};return t(n,no(r,xo,s))}(e,t,o).format(r,n)}catch(t){e.onError(new eo("Error formatting relative time.",e.locale,t))}return String(r)}var ko=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Ao(e,t,r,n){var o=e.locale,i=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=xr(xr({},s&&{timeZone:s}),c&&ao(i,t,c,a)),l=no(n,ko,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=xr(xr({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Do(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ao(e,"date",t,a).format(s)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Co(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ao(e,"time",t,a).format(s)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Fo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=r[2],s=void 0===a?{}:a,c=e.timeZone,u=e.locale,l=e.onError,f=no(s,ko,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,i)}catch(e){l(new Zn(Qn.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Po(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ao(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Oo(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],i=r[1],a=void 0===i?{}:i,s="string"==typeof o?new Date(o||0):o;try{return Ao(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Zn(Qn.FORMAT_ERROR,"Error formatting time.",t))}return[]}var To=["localeMatcher","type"];function jo(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.PluralRules||i(new Hn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Bn.MISSING_INTL_API));var a=no(n,To);try{return t(o,a).select(r)}catch(e){i(new eo("Error formatting plural.",o,e))}return"other"}var Io=["localeMatcher","type","style"],_o=Date.now();function Ro(e,t,r,n){void 0===n&&(n={});var o=Bo(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function Bo(e,t,r,n){var o=e.locale,i=e.onError;void 0===n&&(n={}),Intl.ListFormat||i(new Hn('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Bn.MISSING_INTL_API));var a=no(n,Io);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(_o,"_").concat(e,"_").concat(_o)}(t);return s[r]=e,r}return String(e)}));return t(o,a).formatToParts(c).map((function(e){return"literal"===e.type?e:xr(xr({},e),{value:s[e.value]||e.value})}))}catch(e){i(new Zn(Qn.FORMAT_ERROR,"Error formatting list.",e))}return r}var Lo=["localeMatcher","style","type","fallback"];function No(e,t,r,n){var o=e.locale,i=e.onError;Intl.DisplayNames||i(new Hn('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Bn.MISSING_INTL_API));var a=no(n,Lo);try{return t(o,a).of(r)}catch(e){i(new Zn(Qn.FORMAT_ERROR,"Error formatting display name.",e))}}function Mo(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Ho(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,kr([void 0],t,!1)))}),{cache:io(e.dateTime),strategy:Nn.variadic}),i=Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,kr([void 0],t,!1)))}),{cache:io(e.number),strategy:Nn.variadic}),a=Pn((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,kr([void 0],t,!1)))}),{cache:io(e.pluralRules),strategy:Nn.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Pn((function(e,t,r,n){return new Kn(e,t,r,xr({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},n||{}))}),{cache:io(e.message),strategy:Nn.variadic}),getRelativeTimeFormat:Pn((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,kr([void 0],e,!1)))}),{cache:io(e.relativeTime),strategy:Nn.variadic}),getPluralRules:a,getListFormat:Pn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,kr([void 0],e,!1)))}),{cache:io(e.list),strategy:Nn.variadic}),getDisplayNames:Pn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,kr([void 0],e,!1)))}),{cache:io(e.displayNames),strategy:Nn.variadic})}}(t),n=xr(xr({},oo),e),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new Jn('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new Jn('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Xn('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Mo(n),xr(xr({},n),{formatters:r,formatNumber:Eo.bind(null,n,r.getNumberFormat),formatNumberToParts:wo.bind(null,n,r.getNumberFormat),formatRelativeTime:So.bind(null,n,r.getRelativeTimeFormat),formatDate:Do.bind(null,n,r.getDateTimeFormat),formatDateToParts:Po.bind(null,n,r.getDateTimeFormat),formatTime:Co.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Fo.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Oo.bind(null,n,r.getDateTimeFormat),formatPlural:jo.bind(null,n,r.getPluralRules),formatMessage:yo.bind(null,n,r),$t:yo.bind(null,n,r),formatList:Ro.bind(null,n,r.getListFormat),formatListToParts:Bo.bind(null,n,r.getListFormat),formatDisplayName:No.bind(null,n,r.getDisplayNames)})}function zo(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Uo(e){return e?Object.keys(e).reduce((function(t,r){var n,o=e[r];return t[r]=qn(o)?(n=o,function(e){return n(a.Children.toArray(e))}):o,t}),{}):e}var $o=function(e,t,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=Uo(n),c=yo.apply(void 0,kr([e,t,r,s],o,!1));return Array.isArray(c)?a.Children.toArray(c):c},qo=function(e,t){var r=e.defaultRichTextElements,n=Sr(e,["defaultRichTextElements"]),o=Uo(r),i=Ho(xr(xr(xr({},ho),n),{defaultRichTextElements:o}),t);return xr(xr({},i),{formatMessage:$o.bind(null,{locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o},i.formatters)})};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:qo(zo(t.props),t.cache),prevConfig:zo(t.props)},t}wr(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=zo(e);return function(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}(r,o)?null:{intl:qo(o,n),prevConfig:o}},t.prototype.render=function(){return fo(this.state.intl),a.createElement(co,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=ho}(a.PureComponent);function Vo(){var e=a.useContext(uo);return fo(e),e}var Go,Wo;!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(Go||(Go={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(Wo||(Wo={}));var Qo=function(e){var t=Vo(),r=e.value,n=e.children,o=Sr(e,["value","children"]);return n(t.formatNumberToParts(r,o))};Qo.displayName="FormattedNumberParts";function Ko(e){var t=function(t){var r=Vo(),n=t.value,o=t.children,i=Sr(t,["value","children"]),a="string"==typeof n?new Date(n||0):n;return o("formatDate"===e?r.formatDateToParts(a,i):r.formatTimeToParts(a,i))};return t.displayName=Wo[e],t}function Zo(e){var t=function(t){var r=Vo(),n=t.value,o=t.children,i=Sr(t,["value","children"]),s=r[e](n,i);if("function"==typeof o)return o(s);var c=r.textComponent||a.Fragment;return a.createElement(c,null,s)};return t.displayName=Go[e],t}function Yo(e){return e}function Xo(e){return e}Qo.displayName="FormattedNumberParts";Zo("formatDate"),Zo("formatTime"),Zo("formatNumber"),Zo("formatList"),Zo("formatDisplayName"),Ko("formatDate"),Ko("formatTime");var Jo=r(5969),ei=r(8717),ti=r(213);const ri=function(e,t,r,n){"function"==typeof t&&"function"!=typeof r&&(n=r,r=t,t=null);var o=(0,ti.convert)(t),i=n?-1:1;!function e(a,s,c){var u,l="object"==typeof a&&null!==a?a:{};"string"==typeof l.type&&(u="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(f,"name",{value:"node ("+l.type+(u?"<"+u+">":"")+")"}));return f;function f(){var u,l,f,h=[];if((!t||o(a,s,c[c.length-1]||null))&&(h=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(r(a,c)),false===h[0]))return h;if(a.children&&"skip"!==h[0])for(l=(n?a.children.length:-1)+i,f=c.concat(a);l>-1&&l<a.children.length;){if(u=e(a.children[l],l,f)(),false===u[0])return u;l="number"==typeof u[1]?u[1]:l+i}return h}}(e,null,[])()};function ni(e){return new RegExp("^("+e+")$","i")}const oi=new Jo;function ii(e,t,r){const n=r.skip&&ni(r.skip),o=(0,ti.convert)(r.parents||(t=>t===e)),i=[];let a,s,c;var u,l,f;return oi.reset(),l=function(e,u,l){const f=(0,ei.B)(e,{includeImageAlt:!1}),h=e.data&&e.data.hProperties&&e.data.hProperties.id,p=oi.slug(h||f);if(o(l)){if(null!==u&&t&&!a&&t.test(f))return a=u+1,void(c=e);null!==u&&c&&!s&&e.depth<=c.depth&&(s=u),!s&&t||r.maxDepth&&!(e.depth<=r.maxDepth)||n&&n.test(f)||i.push({depth:e.depth,children:e.children,id:p})}},"function"==typeof(u="heading")&&"function"!=typeof l&&(f=l,l=u,u=null),ri(e,u,(function(e,t){var r=t[t.length-1];return l(e,r?r.children.indexOf(e):null,r)}),f),{index:a||-1,endIndex:a?s||e.children.length:-1,map:i}}var ai=r(229);function si(e,t){const{ordered:r=!1,tight:n=!1,prefix:o=null}=t,i={type:"list",ordered:r,spread:!1,children:[]};let a=Number.POSITIVE_INFINITY,s=-1;for(;++s<e.length;)e[s].depth<a&&(a=e[s].depth);for(s=-1;++s<e.length;)e[s].depth-=a-1;for(s=-1;++s<e.length;)ci(e[s],i,{ordered:r,tight:n,prefix:o});return i}function ci(e,t,r){let n=-1;if("list"===t.type)if(1===e.depth)t.children.push({type:"listItem",spread:!1,children:[{type:"paragraph",children:[{type:"link",title:null,url:"#"+(r.prefix||"")+e.id,children:ui(e.children)}]}]});else if(t.children.length>0)ci(e,t.children[t.children.length-1],r);else{const n={type:"listItem",spread:!1,children:[]};t.children.push(n),ci(e,n,r)}else if(t.children[t.children.length-1]&&"list"===t.children[t.children.length-1].type)e.depth--,ci(e,t.children[t.children.length-1],r);else{const n={type:"list",ordered:r.ordered,spread:!1,children:[]};t.children.push(n),e.depth--,ci(e,n,r)}if("list"!==t.type||r.tight)t.spread=!r.tight;else for(t.spread=!1;++n<t.children.length;)if(t.children[n].children.length>1){t.spread=!0;break}}function ui(e){let t=[],r=-1;if(e)for(;++r<e.length;)t=t.concat(li(e[r]));return t}function li(e){if("link"===e.type||"linkReference"===e.type||"footnote"===e.type||"footnoteReference"===e.type)return ui(e.children);if("children"in e){const{children:t,position:r,...n}=e;return Object.assign(ai(!0,{},n),{children:ui(e.children)})}const{position:t,...r}=e;return ai(!0,{},r)}var fi=r(3428);const hi=new Jo;function pi(){return e=>{hi.reset(),(0,fi.visit)(e,"heading",(e=>{const t=e.data||(e.data={}),r=t.hProperties||(t.hProperties={});let n=r.id;n=n?hi.slug(String(n),!0):hi.slug((0,ei.B)(e)),t.id=n,r.id=n}))}}var di=function(e,t,r){var n={type:String(e)};return null!=r||"string"!=typeof t&&!Array.isArray(t)?Object.assign(n,t):r=t,Array.isArray(r)?n.children=r:null!=r&&(n.value=String(r)),n};const mi=yi("start"),gi=yi("end");function yi(e){return function(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}const vi={}.hasOwnProperty;function bi(e){return String(e||"").toUpperCase()}const Ei={}.hasOwnProperty;function wi(e,t){const r=t.data||{};return"value"in t&&!(Ei.call(r,"hName")||Ei.call(r,"hProperties")||Ei.call(r,"hChildren"))?e.augment(t,di("text",t.value)):e(t,"div",ki(e,t))}function xi(e,t,r){const n=t&&t.type;let o;if(!n)throw new Error("Expected node, got `"+t+"`");return o=Ei.call(e.handlers,n)?e.handlers[n]:e.passThrough&&e.passThrough.includes(n)?Si:e.unknownHandler,("function"==typeof o?o:wi)(e,t,r)}function Si(e,t){return"children"in t?{...t,children:ki(e,t)}:t}function ki(e,t){const r=[];if("children"in t){const n=t.children;let o=-1;for(;++o<n.length;){const i=xi(e,n[o],t);if(i){if(o&&"break"===n[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?r.push(...i):r.push(i)}}}return r}var Ai=r(488);const Di={'"':"quot","&":"amp","<":"lt",">":"gt"};function Ci(e,t){const r=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+Di[e]+";"}))}(function(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&(0,Ai.asciiAlphanumeric)(e.charCodeAt(r+1))&&(0,Ai.asciiAlphanumeric)(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function Fi(e,t){const r=[];let n=-1;for(t&&r.push(di("text","\n"));++n<e.length;)n&&r.push(di("text","\n")),r.push(e[n]);return t&&e.length>0&&r.push(di("text","\n")),r}function Pi(e,t){const r=String(t.identifier),n=Ci(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let i;-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,i=e.footnoteOrder.length):(e.footnoteCounts[r]++,i=o+1);const a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+n,id:e.clobberPrefix+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[di("text",String(i))])])}var Oi=r(4651);function Ti(e,t){const r=t.referenceType;let n="]";if("collapsed"===r?n+="[]":"full"===r&&(n+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return di("text","!["+t.alt+n);const o=ki(e,t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(di("text","["));const a=o[o.length-1];return a&&"text"===a.type?a.value+=n:o.push(di("text",n)),o}function ji(e){const t=e.spread;return null==t?e.children.length>1:t}function Ii(e,t,r){let n=0,o=e.length;if(t){let t=e.codePointAt(n);for(;9===t||32===t;)n++,t=e.codePointAt(n)}if(r){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}const _i={blockquote:function(e,t){return e(t,"blockquote",Fi(ki(e,t),!0))},break:function(e,t){return[e(t,"br"),di("text","\n")]},code:function(e,t){const r=t.value?t.value+"\n":"",n=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};n&&(o.className=["language-"+n]);const i=e(t,"code",o,[di("text",r)]);return t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])},delete:function(e,t){return e(t,"del",ki(e,t))},emphasis:function(e,t){return e(t,"em",ki(e,t))},footnoteReference:Pi,footnote:function(e,t){const r=e.footnoteById;let n=1;for(;n in r;)n++;const o=String(n);return r[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Pi(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,ki(e,t))},html:function(e,t){return e.dangerous?e.augment(t,di("raw",t.value)):null},imageReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Ti(e,t);const n={src:Oi(r.url||""),alt:t.alt};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"img",n)},image:function(e,t){const r={src:Oi(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"img",r)},inlineCode:function(e,t){return e(t,"code",[di("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const r=e.definition(t.identifier);if(!r)return Ti(e,t);const n={href:Oi(r.url||"")};return null!==r.title&&void 0!==r.title&&(n.title=r.title),e(t,"a",n,ki(e,t))},link:function(e,t){const r={href:Oi(t.url)};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(t,"a",r,ki(e,t))},listItem:function(e,t,r){const n=ki(e,t),o=r?function(e){let t=e.spread;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=ji(r[n]);return Boolean(t)}(r):ji(t),i={},a=[];if("boolean"==typeof t.checked){let r;n[0]&&"element"===n[0].type&&"p"===n[0].tagName?r=n[0]:(r=e(null,"p",[]),n.unshift(r)),r.children.length>0&&r.children.unshift(di("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),i.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const e=n[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(di("text","\n")),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const c=n[n.length-1];return!c||!o&&"tagName"in c&&"p"===c.tagName||a.push(di("text","\n")),e(t,"li",i,a)},list:function(e,t){const r={},n=t.ordered?"ol":"ul",o=ki(e,t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(r.start=t.start);++i<o.length;){const e=o[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}return e(t,n,r,Fi(o,!0))},paragraph:function(e,t){return e(t,"p",ki(e,t))},root:function(e,t){return e.augment(t,di("root",Fi(ki(e,t))))},strong:function(e,t){return e(t,"strong",ki(e,t))},table:function(e,t){const r=t.children;let n=-1;const o=t.align||[],i=[];for(;++n<r.length;){const a=r[n].children,s=0===n?"th":"td",c=[];let u=-1;const l=t.align?o.length:a.length;for(;++u<l;){const t=a[u];c.push(e(t,s,{align:o[u]},t?ki(e,t):[]))}i[n]=e(r[n],"tr",Fi(c,!0))}return e(t,"table",Fi([e(i[0].position,"thead",Fi([i[0]],!0))].concat(i[1]?e({start:mi(i[1]),end:gi(i[i.length-1])},"tbody",Fi(i.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,di("text",function(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),o=0;const i=[];for(;n;)i.push(Ii(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(Ii(t.slice(o),o>0,!1)),i.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:Ri,yaml:Ri,definition:Ri,footnoteDefinition:Ri};function Ri(){return null}const Bi={}.hasOwnProperty;function Li(e,t){const r=t||{},n=r.allowDangerousHtml||!1,o={};return a.dangerous=n,a.clobberPrefix=void 0===r.clobberPrefix||null===r.clobberPrefix?"user-content-":r.clobberPrefix,a.footnoteLabel=r.footnoteLabel||"Footnotes",a.footnoteBackLabel=r.footnoteBackLabel||"Back to content",a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return(0,fi.visit)(e,"definition",(e=>{const r=bi(e.identifier);r&&!vi.call(t,r)&&(t[r]=e)})),function(e){const r=bi(e);return r&&vi.call(t,r)?t[r]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.augment=i,a.handlers={..._i,...r.handlers},a.unknownHandler=r.unknownHandler,a.passThrough=r.passThrough,(0,fi.visit)(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Bi.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const r=e.data;r.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=r.hName),"element"===t.type&&r.hProperties&&(t.properties={...t.properties,...r.hProperties}),"children"in t&&t.children&&r.hChildren&&(t.children=r.hChildren)}if(e){const n="type"in e?e:{position:e};(r=n)&&r.position&&r.position.start&&r.position.start.line&&r.position.start.column&&r.position.end&&r.position.end.line&&r.position.end.column&&(t.position={start:mi(n),end:gi(n)})}var r;return t}function a(e,t,r,n){return Array.isArray(r)&&(n=r,r={}),i(e,{type:"element",tagName:t,properties:r||{},children:n||[]})}}function Ni(e,t){const r=Li(e,t),n=xi(r,e,null),o=function(e){let t=-1;const r=[];for(;++t<e.footnoteOrder.length;){const n=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!n)continue;const o=ki(e,n),i=String(n.identifier),a=Ci(i.toLowerCase());let s=0;const c=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...c)}else o.push(...c);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:Fi(o,!0)};n.position&&(l.position=n.position),r.push(l)}return 0===r.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[di("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Fi(r,!0)},{type:"text",value:"\n"}]}}(r);return o&&n.children.push(di("text","\n"),o),Array.isArray(n)?{type:"root",children:n}:n}var Mi=r(4799);const Hi=function(e,t,r,n){const o=a.useRef(r),i=a.useRef(n);a.useEffect((()=>{o.current=r,i.current=n})),a.useEffect((()=>{const r=e&&"current"in e?e.current:e;if(!r)return;let n=0;function a(...e){n||o.current.apply(this,e)}r.addEventListener(t,a);const s=i.current;return()=>{n=1,r.removeEventListener(t,a),s&&s()}}),[e,t])};
2
2
  /**!
3
3
  * hotkeys-js v3.9.3
4
4
  * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
@@ -7,7 +7,7 @@
7
7
  * http://jaywcjlove.github.io/hotkeys
8
8
  * Licensed under the MIT license
9
9
  */
10
- var Hi="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function zi(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function Ui(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function $i(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var qi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Hi?173:189,"=":Hi?61:187,";":Hi?59:186,"'":222,"[":219,"]":221,"\\":220},Vi={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Gi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Wi={16:!1,18:!1,17:!1,91:!1},Qi={},Ki=1;Ki<20;Ki++)qi["f".concat(Ki)]=111+Ki;var Zi=[],Yi=!1,Xi="all",Ji=[],ea=function(e){return qi[e.toLowerCase()]||Vi[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ta(e){Xi=e||"all"}function ra(){return Xi||"all"}var na=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;$i(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":ea(a);if(Qi[s]){r||(r=ra());var c=o>1?Ui(Vi,t):[];Qi[s]=Qi[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function oa(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Wi)Object.prototype.hasOwnProperty.call(Wi,i)&&(!Wi[i]&&t.mods.indexOf(+i)>-1||Wi[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Wi[16]||Wi[18]||Wi[17]||Wi[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ia(e,t){var r=Qi["*"],n=e.keyCode||e.which||e.charCode;if(aa.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Zi.indexOf(n)&&229!==n&&Zi.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Gi[t];e[t]&&-1===Zi.indexOf(r)?Zi.push(r):!e[t]&&Zi.indexOf(r)>-1?Zi.splice(Zi.indexOf(r),1):"metaKey"===t&&e[t]&&3===Zi.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Zi=Zi.slice(Zi.indexOf(r))))})),n in Wi){for(var o in Wi[n]=!0,Vi)Vi[o]===n&&(aa[o]=!0);if(!r)return}for(var i in Wi)Object.prototype.hasOwnProperty.call(Wi,i)&&(Wi[i]=e[Gi[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Zi.indexOf(17)&&Zi.push(17),-1===Zi.indexOf(18)&&Zi.push(18),Wi[17]=!0,Wi[18]=!0);var a=ra();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&oa(e,r[s],a,t);if(n in Qi)for(var c=0;c<Qi[n].length;c++)if(("keydown"===e.type&&Qi[n][c].keydown||"keyup"===e.type&&Qi[n][c].keyup)&&Qi[n][c].key){for(var u=Qi[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(ea(f[p]));h.sort().join("")===Zi.sort().join("")&&oa(e,u,a,t)}}}function aa(e,t,r){Zi=[];var n=$i(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=Ui(Vi,e)),(e="*"===(e=e[e.length-1])?"*":ea(e))in Qi||(Qi[e]=[]),Qi[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return Ji.indexOf(e)>-1}(a)&&window&&(Ji.push(a),zi(a,"keydown",(function(e){ia(e,a)}),f),Yi||(Yi=!0,zi(window,"focus",(function(){Zi=[]}),f)),zi(a,"keyup",(function(e){ia(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Zi.indexOf(t);if(r>=0&&Zi.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Zi.splice(0,Zi.length),93!==t&&224!==t||(t=91),t in Wi)for(var n in Wi[t]=!1,Vi)Vi[n]===t&&(aa[n]=!1)}(e)}),f))}var sa={setScope:ta,getScope:ra,deleteScope:function(e,t){var r,n;for(var o in e||(e=ra()),Qi)if(Object.prototype.hasOwnProperty.call(Qi,o))for(r=Qi[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;ra()===e&&ta(t||"all")},getPressedKeyCodes:function(){return Zi.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=ea(e)),-1!==Zi.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Qi).forEach((function(r){var n=Qi[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&na(e)}));else if("object"==typeof e)e.key&&na(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),na({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Qi).forEach((function(e){return delete Qi[e]}))},keyMap:qi,modifier:Vi,modifierMap:Gi};for(var ca in sa)Object.prototype.hasOwnProperty.call(sa,ca)&&(aa[ca]=sa[ca]);if("undefined"!=typeof window){var ua=window.hotkeys;aa.noConflict=function(e){return e&&window.hotkeys===aa&&(window.hotkeys=ua),aa},window.hotkeys=aa}aa.filter=function(){return!0};var la=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function fa(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,s=o.filter,c=o.keyup,u=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,h=o.enabled,p=void 0===h||h,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,a.useRef)(null),y=(0,a.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(la(e,["INPUT","TEXTAREA","SELECT"])&&!la(e,i)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,i,s].concat(n):[g,i,s]);return(0,a.useEffect)((function(){if(p)return c&&!0!==u&&(r.keydown=!1),aa(e,r||{},y),function(){return aa.unbind(e,y)};aa.unbind(e,y)}),[y,e,p]),g}aa.isPressed;function ha(){return ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ha.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var pa="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,da={status:"not-requested",loading:!1,result:void 0,error:void 0},ma={status:"loading",loading:!0,result:void 0,error:void 0},ga=function(){},ya={initialState:function(e){return e&&e.executeOnMount?ma:da},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return ma},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ga,onError:ga},va=function(e,t,r){var n,o=function(e){return ha({},ya,{},e)}(r),i=(0,a.useState)(null),s=i[0],c=i[1],u=function(e){var t=(0,a.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,a.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,a.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,a.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),c=(0,a.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),u=n,l=(0,a.useCallback)((function(e){return u(ha({},r,{},e))}),[r,u]);return{value:r,set:u,merge:l,reset:o,setLoading:i,setResult:s,setError:c}}(o),l=(n=(0,a.useRef)(!1),(0,a.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,a.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),h=function(e){return l()&&f.is(e)},p=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(c(r),i instanceof Promise)return f.set(i),u.setLoading(),i.then((function(e){h(i)&&u.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){h(i)&&u.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return u.setResult(a),Promise.resolve(a)},d=!l();return(0,a.useEffect)((function(){d?o.executeOnMount&&p.apply(void 0,t):o.executeOnUpdate&&p.apply(void 0,t)}),t),ha({},u.value,{set:u.set,merge:u.merge,reset:u.reset,execute:p,currentPromise:f.get(),currentParams:s})};function ba(e,t,r){return va(e,t,r)}var Ea=function(e,t){return va(e,[],ha({},t,{executeOnMount:!1,executeOnUpdate:!1}))},wa=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,s=e.isEnd,c=(t=n,r=(0,a.useRef)(t),pa((function(){r.current=t})),function(){return r.current}),u=(0,a.useState)(!1),l=u[0],f=u[1],h=(0,a.useRef)(0),p=Ea((function(){try{var e=c();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===p.status)throw new Error("Can't fetch more, because we are already fetching more!");h.current=h.current+1;var t=h.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===c().status&&e.result===c().result,a=h.current===t;return o&&a&&(n.merge({result:i(n.result,r)}),s(r)&&f(!0)),r}))}catch(e){return Promise.reject(e)}})),d="success"!==n.status;return(0,a.useEffect)((function(){d&&(p.reset(),f(!1))}),[d]),{canFetchMore:"success"===n.status&&"loading"!==p.status,loading:p.loading,status:p.status,fetchMore:p.execute,isEnd:l}};window.TopWritePlugins={};class xa extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=o.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function Sa(e){let{component:t,defaultComponent:r=a.Fragment,props:n,children:o=null}=e;return null===t?null:(0,i.jsx)(a.Suspense,{fallback:null,children:(0,i.jsx)(t,{props:n,Component:r,children:o})})}customElements.define("t-attachment",xa);class ka extends a.Component{constructor(){super(...arguments),(0,c.Z)(this,"state",{hasError:!1})}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?null:this.props.children}}var Aa=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>{return t=e.Component,e=>(0,i.jsx)(ka,{children:(0,i.jsx)(t,{...e},"WrappedComponent")});var t}));function Da(e){let{props:t,role:r,component:n}=e;const o=n?(0,a.createElement)(n,t):null,s=V("components");return(0,a.useMemo)((()=>Aa(s,r)),[s,r]).reduce(((e,r)=>(0,i.jsx)(Sa,{defaultComponent:n,component:r,props:t,children:e})),o)}function Ca(e){let{props:t,component:r,role:n}=e;const o=V("components"),s=(0,a.useMemo)((()=>Aa(o,n)),[o,n]);return(0,i.jsx)(i.Fragment,{children:s.map(((e,n)=>(0,i.jsx)(Sa,{defaultComponent:r,component:e,props:t},n)))})}async function Fa(e){let t="topwrite-plugin-".concat(e.name);if(!W().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await W()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Pa(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}const Oa="localStorage";function Ta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa;if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const ja={get:()=>null,set:()=>{},del:()=>{}},Ia=(e,t)=>{const r=Ta(null==t?void 0:t.persistence);return null===r?ja:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function _a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa;const t=Ta(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function Ra(){const e=V("book");if(!e)throw new Error("book object not initialized");return e}function Ba(){const{config:e}=Ra();return e.getValue("themeConfig")}const La="light",Na="dark";function Ma(e){document.documentElement.setAttribute("data-theme",e)}const Ha=e=>{const t=Ra(),r=(0,a.useMemo)((()=>Ia("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Ba(),[o,i]=(0,a.useState)((()=>{const e=(e=>e===Na?Na:La)(r.get()||n);return Ma(e),e}));(0,a.useEffect)((()=>{Ma(o)}),[o]);const s=(0,a.useCallback)((()=>{i(La),r.set(La)}),[r]),c=(0,a.useCallback)((()=>{i(Na),r.set(Na)}),[r]);return{isDarkTheme:o===Na,setLightTheme:s,setDarkTheme:c}},za=(0,a.createContext)(void 0);function Ua(e){let{children:t,context:r}=e;const{isDarkTheme:n,setLightTheme:o,setDarkTheme:a}=Ha(r);return(0,i.jsx)(za.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:a},children:t})}function $a(){const e=(0,a.useContext)(za);return null==e?{isDarkTheme:!1,setLightTheme:b.noop,setDarkTheme:b.noop}:e}var qa;function Va(){const{primaryColor:e}=Ba();return(0,i.jsx)(Ga,{primaryColor:e})}const Ga=At(qa||(qa=(0,K.Z)(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e");const Wa=new class extends N{constructor(){super(...arguments),(0,c.Z)(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}};const Qa=new class extends N{};var Ka=Object.freeze({__proto__:null,components:Wa,options:Qa});function Za(e,t,r){const n="function"==typeof t;n||(r=t),(0,a.useEffect)((()=>{let r;const o=e();return Promise.resolve(o).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Ya(e){return e.__esModule&&e.default?e.default:e}const Xa=(0,a.createContext)(void 0),Ja=()=>{const e=(0,a.useContext)(Xa);if(void 0===e)throw new Error("useIntlContext must be used within a Layout component");return e},es=e=>{let{localize:t,children:r}=e;const{addMessages:n}=Ja(),[o,s]=(0,a.useState)(!0);return Za((async()=>{s(!0),await n(t),s(!1)}),[t]),o?null:(0,i.jsx)(i.Fragment,{children:r})},ts=e=>{let{children:t}=e;const{locale:r,messages:n}=Ja(),o=(0,a.useMemo)((()=>$o({locale:r,messages:n,defaultLocale:"en"},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}})),[r,n]);return(0,i.jsx)(so,{value:o,children:t})},rs=e=>{let{children:t,locale:r,messages:n}=e;const[o,s]=(0,a.useState)(n);return(0,i.jsx)(Xa.Provider,{value:{locale:r,messages:o,addMessages:async e=>{s({...o,...Ya(await e(r))})}},children:(0,i.jsx)(ts,{children:t})})};class ns{constructor(e,t,r){(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"book",void 0),(0,c.Z)(this,"models",{...Ka}),(0,c.Z)(this,"components",[]),(0,c.Z)(this,"activates",[]),(0,c.Z)(this,"plugins",[]),(0,c.Z)(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Pa(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=navigator.language,r=await this.loadMessages(t,e),n=U(this.models,{book:this.book,components:this.components,...this.initialState}),o=e=>{let{children:t}=e;return(0,i.jsx)(i.Fragment,{children:t})},a=e=>{let{children:t}=e;const r=(0,i.jsx)(Da,{role:"activate:".concat(this.name),props:{children:t,name:this.name},component:o});return this.activates.reduce(((e,t)=>{const r=t(this.name);return void 0!==r?r:e}),r)};return e=>{let{children:o}=e;return(0,i.jsx)(q,{store:n,children:(0,i.jsx)(lr,{children:(0,i.jsxs)(Ua,{context:this.name,children:[(0,i.jsx)(Va,{}),(0,i.jsx)(rs,{locale:t,messages:r,children:(0,i.jsx)(a,{children:o})})]})})})}}async loadMessages(e,t){return await this.plugins.reduce((async(t,r)=>{const n=Ya(await t);return r.localize?Object.assign({},n,Ya(await r.localize(e))):n}),t(e))}}async function os(e,t,r,o,i,a){const s=await async function(e,t){let r=[];if(t){const o=(0,n.NC)(t);try{r=await o.getInstalled(e),r=r.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}))}catch{}}try{const e=sessionStorage.getItem("PLUGIN_DEV"),t=Q.parse(window.location.search);if("dev"in t||e){const o=t.dev||e||8080;try{const e=(await n.WY.get("http://localhost:".concat(o,"/meta"),{raxConfig:{retry:0}})).data;r=r.filter((t=>t.name!==e.name&&!("theme"===e.type&&"theme"===t.type))),window.TopWritePlugins[e.name]&&delete window.TopWritePlugins[e.name],r.unshift(e),sessionStorage.setItem("PLUGIN_DEV",String(o))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}}catch{}const o=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta})),i=o.some((e=>"theme"===e.type)),a=Object.keys(window.TopWritePlugins),s=[];for(let e of r)e.disabled||a.includes(e.name)||i&&"theme"===e.type||s.push(Fa(e));return await Promise.all(s),o.push(...r),window.TopWritePluginsMeta=o,Object.values(window.TopWritePlugins||{})}(t,a),c=new ns(e,t,o);return c.registerModels(r),await c.registerPlugins(s),await c.createApp(i)}function is(e){return function(e){const{actions:t}=(0,a.useContext)($);return e?t[e]:t}(e)}function as(e){return V(e)}function ss(e){return[as(e),is(e)]}function cs(e){const t=(0,a.useRef)(null),[r,n]=(0,a.useState)(e);(0,a.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]);return[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function us(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class ls{constructor(e){let{name:t,meta:r,models:n={},components:o={},activate:i,register:a,localize:s,config:u}=e;(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"config",void 0),(0,c.Z)(this,"localize",void 0),(0,c.Z)(this,"models",void 0),(0,c.Z)(this,"components",void 0),(0,c.Z)(this,"activate",void 0),(0,c.Z)(this,"register",void 0),(0,c.Z)(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=o,this.activate=i,this.register=a,this.localize=s,this.config=u}}const fs=(0,ei.convert)("root"),hs=(0,ei.convert)("element"),ps=(0,ei.convert)("text");function ds(e){return e.filter((e=>!(ps(e)&&"\n"===e.value)))}function ms(e,t,r){const n=t.properties,o=t.tagName,i={...n};r.prefix&&(r.key++,i.key=r.prefix+r.key);const a=[],s=ds(t.children),c=s?s.length:0;let u=-1;for(;++u<c;){const t=s[u];hs(t)?a.push(ms(e,t,r)):ps(t)&&a.push(t.value)}return e.call(t,o,i,a.length>0?a:void 0)}function gs(e,t){let{extensions:r=[],creator:n=s().createElement}=t;const o={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},Si(e,t)),leafDirective:(e,t)=>e({},"leafDirective",{name:t.name,attributes:t.attributes},Si(e,t)),containerDirective(e,t){"children"in t||(t.children=[]);let r=!1;for(const e of t.children){var n;if(null!==(n=e.data)&&void 0!==n&&n.directiveLabel){r=!0;break}}return r||t.children.unshift({type:"paragraph",children:[{type:"text",value:""}]}),e({},"containerDirective",{name:t.name,attributes:t.attributes},Si(e,t))},heading(e,t){const r=e(t,"heading",Si(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},i=Li(e,o);if(fs(i))return ds(i.children).map(((e,t)=>hs(e)?ms(n,e,{key:0,prefix:"h-".concat(t,"-")}):ps(e)?e.value:void 0));if(!hs(i))throw new Error("Expected root or element, not `"+(i&&i.type||i)+"`");return ms(n,i,{key:0,prefix:"h-"})}const ys=e=>{let{value:t}=e;return(0,i.jsx)("pre",{children:(0,i.jsx)("code",{children:t})})},vs=e=>{let{value:t}=e;return(0,i.jsx)("code",{children:t})};const bs=["video","audio"];function Es(e){let{depth:t=5,...r}=e;return(0,a.createElement)("h".concat(t),r)}const ws={"x-inline":function(e){const{name:t,value:r}=e;return(0,i.jsx)(Da,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:vs})},"x-block":function(e){const{name:t,value:r,parameter:n}=e;return(0,i.jsx)(Da,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:ys})},textDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;let a=o[t],s="html:".concat(t);return customElements.get("t-".concat(t))?a=a||"t-".concat(t):bs.includes(t)||(a=void 0,s="directive:".concat(t)),(0,i.jsx)(Da,{role:s,props:{...r,children:n},component:a})},containerDirective:function(e){let{name:t,attributes:r,children:n,components:o={}}=e,s=o[t],c="html:".concat(t);const[u,...l]=a.Children.toArray(n),f={children:l,label:u,...r};return customElements.get("t-".concat(t))?s=s||"t-".concat(t):bs.includes(t)||(s=void 0,c="directive:".concat(t)),(0,i.jsx)(Da,{role:c,props:f,component:s})},leafDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;let a=o[t],s="html:".concat(t);return customElements.get("t-".concat(t))?a=a||"t-".concat(t):bs.includes(t)||(a=void 0,s="directive:".concat(t)),(0,i.jsx)(Da,{role:s,props:{...r,children:n},component:a})},heading:function(e){let{components:t={},...r}=e;return(0,i.jsx)(Da,{role:"html:heading",props:r,component:t.heading||Es})}};var xs;const Ss=e=>{let{tagName:t,components:r={},...n}=e;return ws[t]?(0,a.createElement)(ws[t],{...n,components:r}):Ni.includes(t)?(0,i.jsx)(Da,{role:"html:".concat(t),props:n,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function ks(e){let{as:t=a.Fragment,children:r,components:o={},aside:s=!0,header:c,footer:u,css:l,sectionAs:f,...h}=e;const p=(0,a.useMemo)((()=>(0,n.JH)().use(hi).freeze()),[]),[d,m]=(0,a.useMemo)((()=>{try{const e=p.data("toHastExtensions"),t=p.runSync(p.parse(r));let n=null;if(s){const r=function(e,t){const r=t||{},n=r.heading?ri(r.heading):null,o=oi(e,n,r);return{index:n?o.index:null,endIndex:n?o.endIndex:null,map:o.map.length>0?ai(o.map,r):null}}(t).map;r&&(n=gs(r,{extensions:e}))}const i=gs(t,{extensions:e,creator:(e,t,r)=>(0,a.createElement)(Ss,{...t,tagName:e,components:o},r)});return[i,n]}catch(e){return console.log(e),[null,null]}}),[r,s,p]);return(0,a.createElement)(t,h,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("article",{children:[c,(0,i.jsx)(As,{$css:l,as:f,children:d}),u]}),m&&(0,i.jsx)("aside",{children:m})]}))}const As=Ct.section(xs||(xs=(0,K.Z)(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table, audio, video {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.task-list-item {\n list-style: none;\n position: relative;\n\n input[type=checkbox] {\n position: absolute;\n left: -1.5em;\n top: 0.5em;\n width: 1em;\n height: 1em;\n }\n }\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n\n &[align='center'] {\n text-align: center;\n }\n\n &[align='right'] {\n text-align: right;\n }\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n display: block;\n width: 100%;\n }\n\n audio {\n display: block;\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.$css));function Ds(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}function Cs(e){const t=(0,a.useRef)(e);(0,a.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function Fs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.debounce)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Ps(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.throttle)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.throttle)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Os(){return V("options")}const Ts=new EventTarget;function js(){return Ts}function Is(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;if("string"==typeof e){e=(new DOMParser).parseFromString(e,"text/html")}const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var _s=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function Rs(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Bs="1.0.0"},7007:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,f=60120,h=60115,p=60116,d=60121,m=60122,g=60117,y=60129,v=60131;
10
+ var zi="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ui(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),(function(){r(window.event)}))}function $i(e,t){for(var r=t.slice(0,t.length-1),n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function qi(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}for(var Vi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":zi?173:189,"=":zi?61:187,";":zi?59:186,"'":222,"[":219,"]":221,"\\":220},Gi={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Wi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Qi={16:!1,18:!1,17:!1,91:!1},Ki={},Zi=1;Zi<20;Zi++)Vi["f".concat(Zi)]=111+Zi;var Yi=[],Xi=!1,Ji="all",ea=[],ta=function(e){return Vi[e.toLowerCase()]||Gi[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ra(e){Ji=e||"all"}function na(){return Ji||"all"}var oa=function(e){var t=e.key,r=e.scope,n=e.method,o=e.splitKey,i=void 0===o?"+":o;qi(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":ta(a);if(Ki[s]){r||(r=na());var c=o>1?$i(Gi,t):[];Ki[s]=Ki[s].filter((function(e){return!((!n||e.method===n)&&e.scope===r&&function(e,t){for(var r=e.length>=t.length?e:t,n=e.length>=t.length?t:e,o=!0,i=0;i<r.length;i++)-1===n.indexOf(r[i])&&(o=!1);return o}(e.mods,c))}))}}))};function ia(e,t,r,n){var o;if(t.element===n&&(t.scope===r||"all"===t.scope)){for(var i in o=t.mods.length>0,Qi)Object.prototype.hasOwnProperty.call(Qi,i)&&(!Qi[i]&&t.mods.indexOf(+i)>-1||Qi[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Qi[16]||Qi[18]||Qi[17]||Qi[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function aa(e,t){var r=Ki["*"],n=e.keyCode||e.which||e.charCode;if(sa.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Yi.indexOf(n)&&229!==n&&Yi.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var r=Wi[t];e[t]&&-1===Yi.indexOf(r)?Yi.push(r):!e[t]&&Yi.indexOf(r)>-1?Yi.splice(Yi.indexOf(r),1):"metaKey"===t&&e[t]&&3===Yi.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Yi=Yi.slice(Yi.indexOf(r))))})),n in Qi){for(var o in Qi[n]=!0,Gi)Gi[o]===n&&(sa[o]=!0);if(!r)return}for(var i in Qi)Object.prototype.hasOwnProperty.call(Qi,i)&&(Qi[i]=e[Wi[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Yi.indexOf(17)&&Yi.push(17),-1===Yi.indexOf(18)&&Yi.push(18),Qi[17]=!0,Qi[18]=!0);var a=na();if(r)for(var s=0;s<r.length;s++)r[s].scope===a&&("keydown"===e.type&&r[s].keydown||"keyup"===e.type&&r[s].keyup)&&ia(e,r[s],a,t);if(n in Ki)for(var c=0;c<Ki[n].length;c++)if(("keydown"===e.type&&Ki[n][c].keydown||"keyup"===e.type&&Ki[n][c].keyup)&&Ki[n][c].key){for(var u=Ki[n][c],l=u.splitKey,f=u.key.split(l),h=[],p=0;p<f.length;p++)h.push(ta(f[p]));h.sort().join("")===Yi.sort().join("")&&ia(e,u,a,t)}}}function sa(e,t,r){Yi=[];var n=qi(e),o=[],i="all",a=document,s=0,c=!1,u=!0,l="+",f=!1;for(void 0===r&&"function"==typeof t&&(r=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(u=t.keydown),void 0!==t.capture&&(f=t.capture),"string"==typeof t.splitKey&&(l=t.splitKey)),"string"==typeof t&&(i=t);s<n.length;s++)o=[],(e=n[s].split(l)).length>1&&(o=$i(Gi,e)),(e="*"===(e=e[e.length-1])?"*":ta(e))in Ki||(Ki[e]=[]),Ki[e].push({keyup:c,keydown:u,scope:i,mods:o,shortcut:n[s],method:r,key:n[s],splitKey:l,element:a});void 0!==a&&!function(e){return ea.indexOf(e)>-1}(a)&&window&&(ea.push(a),Ui(a,"keydown",(function(e){aa(e,a)}),f),Xi||(Xi=!0,Ui(window,"focus",(function(){Yi=[]}),f)),Ui(a,"keyup",(function(e){aa(e,a),function(e){var t=e.keyCode||e.which||e.charCode,r=Yi.indexOf(t);if(r>=0&&Yi.splice(r,1),e.key&&"meta"===e.key.toLowerCase()&&Yi.splice(0,Yi.length),93!==t&&224!==t||(t=91),t in Qi)for(var n in Qi[t]=!1,Gi)Gi[n]===t&&(sa[n]=!1)}(e)}),f))}var ca={setScope:ra,getScope:na,deleteScope:function(e,t){var r,n;for(var o in e||(e=na()),Ki)if(Object.prototype.hasOwnProperty.call(Ki,o))for(r=Ki[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1):n++;na()===e&&ra(t||"all")},getPressedKeyCodes:function(){return Yi.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=ta(e)),-1!==Yi.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,r=t.tagName,n=!0;return!t.isContentEditable&&("INPUT"!==r&&"TEXTAREA"!==r&&"SELECT"!==r||t.readOnly)||(n=!1),n},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(Ki).forEach((function(r){var n=Ki[r].find((function(r){return r.scope===t&&r.shortcut===e}));n&&n.method&&n.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&oa(e)}));else if("object"==typeof e)e.key&&oa(e);else if("string"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r[0],i=r[1];"function"==typeof o&&(i=o,o=""),oa({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Ki).forEach((function(e){return delete Ki[e]}))},keyMap:Vi,modifier:Gi,modifierMap:Wi};for(var ua in ca)Object.prototype.hasOwnProperty.call(ca,ua)&&(sa[ua]=ca[ua]);if("undefined"!=typeof window){var la=window.hotkeys;sa.noConflict=function(e){return e&&window.hotkeys===sa&&(window.hotkeys=la),sa},window.hotkeys=sa}sa.filter=function(){return!0};var fa=function(e,t){var r=e.target,n=r&&r.tagName;return Boolean(n&&t&&t.includes(n))};function ha(e,t,r,n){r instanceof Array&&(n=r,r=void 0);var o=r||{},i=o.enableOnTags,s=o.filter,c=o.keyup,u=o.keydown,l=o.filterPreventDefault,f=void 0===l||l,h=o.enabled,p=void 0===h||h,d=o.enableOnContentEditable,m=void 0!==d&&d,g=(0,a.useRef)(null),y=(0,a.useCallback)((function(e,r){var n;return s&&!s(e)?!f:!!(fa(e,["INPUT","TEXTAREA","SELECT"])&&!fa(e,i)||null!=(n=e.target)&&n.isContentEditable&&!m)||(null===g.current||document.activeElement===g.current)&&(t(e,r),!0)}),n?[g,i,s].concat(n):[g,i,s]);return(0,a.useEffect)((function(){if(p)return c&&!0!==u&&(r.keydown=!1),sa(e,r||{},y),function(){return sa.unbind(e,y)};sa.unbind(e,y)}),[y,e,p]),g}sa.isPressed;function pa(){return pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pa.apply(this,arguments)}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var da="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect,ma={status:"not-requested",loading:!1,result:void 0,error:void 0},ga={status:"loading",loading:!0,result:void 0,error:void 0},ya=function(){},va={initialState:function(e){return e&&e.executeOnMount?ga:ma},executeOnMount:!0,executeOnUpdate:!0,setLoading:function(e){return ga},setResult:function(e,t){return{status:"success",loading:!1,result:e,error:void 0}},setError:function(e,t){return{status:"error",loading:!1,result:void 0,error:e}},onSuccess:ya,onError:ya},ba=function(e,t,r){var n,o=function(e){return pa({},va,{},e)}(r),i=(0,a.useState)(null),s=i[0],c=i[1],u=function(e){var t=(0,a.useState)((function(){return e.initialState(e)})),r=t[0],n=t[1],o=(0,a.useCallback)((function(){return n(e.initialState(e))}),[n,e]),i=(0,a.useCallback)((function(){return n(e.setLoading(r))}),[r,n]),s=(0,a.useCallback)((function(t){return n(e.setResult(t,r))}),[r,n]),c=(0,a.useCallback)((function(t){return n(e.setError(t,r))}),[r,n]),u=n,l=(0,a.useCallback)((function(e){return u(pa({},r,{},e))}),[r,u]);return{value:r,set:u,merge:l,reset:o,setLoading:i,setResult:s,setError:c}}(o),l=(n=(0,a.useRef)(!1),(0,a.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[]),function(){return n.current}),f=function(){var e=(0,a.useRef)(null);return{set:function(t){return e.current=t},get:function(){return e.current},is:function(t){return e.current===t}}}(),h=function(e){return l()&&f.is(e)},p=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=e.apply(void 0,r);if(c(r),i instanceof Promise)return f.set(i),u.setLoading(),i.then((function(e){h(i)&&u.setResult(e),o.onSuccess(e,{isCurrent:function(){return f.is(i)}})}),(function(e){h(i)&&u.setError(e),o.onError(e,{isCurrent:function(){return f.is(i)}})})),i;var a=i;return u.setResult(a),Promise.resolve(a)},d=!l();return(0,a.useEffect)((function(){d?o.executeOnMount&&p.apply(void 0,t):o.executeOnUpdate&&p.apply(void 0,t)}),t),pa({},u.value,{set:u.set,merge:u.merge,reset:u.reset,execute:p,currentPromise:f.get(),currentParams:s})};function Ea(e,t,r){return ba(e,t,r)}var wa=function(e,t){return ba(e,[],pa({},t,{executeOnMount:!1,executeOnUpdate:!1}))},xa=function(e){var t,r,n=e.value,o=e.fetchMore,i=e.merge,s=e.isEnd,c=(t=n,r=(0,a.useRef)(t),da((function(){r.current=t})),function(){return r.current}),u=(0,a.useState)(!1),l=u[0],f=u[1],h=(0,a.useRef)(0),p=wa((function(){try{var e=c();if("success"!==e.status)throw new Error("Can't fetch more if the original fetch is not a success");if("loading"===p.status)throw new Error("Can't fetch more, because we are already fetching more!");h.current=h.current+1;var t=h.current;return Promise.resolve(o(e.result)).then((function(r){var o=e.status===c().status&&e.result===c().result,a=h.current===t;return o&&a&&(n.merge({result:i(n.result,r)}),s(r)&&f(!0)),r}))}catch(e){return Promise.reject(e)}})),d="success"!==n.status;return(0,a.useEffect)((function(){d&&(p.reset(),f(!1))}),[d]),{canFetchMore:"success"===n.status&&"loading"!==p.status,loading:p.loading,status:p.status,fetchMore:p.execute,isEnd:l}};window.TopWritePlugins={};class Sa extends HTMLElement{connectedCallback(){this.addEventListener("click",(e=>{if(e.preventDefault(),!this.isContentEditable){const e=this.attributes.getNamedItem("src");let t=null==e?void 0:e.value;if(t){let e=document.createElement("a");e.download=this.textContent||"",e.style.display="none",e.target="_blank",e.href=o.resolve(location.href,t),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}}))}}function ka(e){let{component:t,defaultComponent:r=a.Fragment,props:n,children:o=null}=e;return null===t?null:(0,i.jsx)(a.Suspense,{fallback:null,children:(0,i.jsx)(t,{props:n,Component:r,children:o})})}customElements.define("t-attachment",Sa);class Aa extends a.Component{constructor(){super(...arguments),(0,c.Z)(this,"state",{hasError:!1})}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?null:this.props.children}}var Da=(e,t)=>e.filter((e=>{let{descriptor:r}=e;return t===r.role})).sort(((e,t)=>{let{descriptor:{priority:r=0}}=e,{descriptor:{priority:n=0}}=t;return r-n})).map((e=>{return t=e.Component,e=>(0,i.jsx)(Aa,{children:(0,i.jsx)(t,{...e},"WrappedComponent")});var t}));function Ca(e){let{props:t,role:r,component:n}=e;const o=n?(0,a.createElement)(n,t):null,s=V("components");return(0,a.useMemo)((()=>Da(s,r)),[s,r]).reduce(((e,r)=>(0,i.jsx)(ka,{defaultComponent:n,component:r,props:t,children:e})),o)}function Fa(e){let{props:t,component:r,role:n}=e;const o=V("components"),s=(0,a.useMemo)((()=>Da(o,n)),[o,n]);return(0,i.jsx)(i.Fragment,{children:s.map(((e,n)=>(0,i.jsx)(ka,{defaultComponent:r,component:e,props:t},n)))})}async function Pa(e){let t="topwrite-plugin-".concat(e.name);if(!W().isDefined(t)){let r="".concat(e.host,"/").concat(e.main);try{await W()(r,t,{returnPromise:!0})}catch{console.warn("插件".concat(e.name,"加载失败"))}}}function Oa(e,t){let r;return r=t instanceof Array?{Component:t[0],descriptor:{role:e,...t[1]}}:{Component:t,descriptor:{role:e}},r}function Ta(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";if("undefined"==typeof window)throw new Error("Browser storage is not available on NodeJS / TopWrite SSR process");if("none"===e)return null;try{return window[e]}catch(e){return null}}const ja={get:()=>null,set:()=>{},del:()=>{}},Ia=(e,t)=>{const r=Ta(null==t?void 0:t.persistence);return null===r?ja:{get:()=>r.getItem(e),set:t=>r.setItem(e,t),del:()=>r.removeItem(e)}};function _a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage";const t=Ta(e);if(!t)return[];const r=[];for(let e=0;e<t.length;e+=1){const n=t.key(e);null!==n&&r.push(n)}return r}function Ra(){const e=V("book");if(!e)throw new Error("book object not initialized");return e}function Ba(){const{config:e}=Ra();return e.getValue("themeConfig")}const La="light",Na="dark";function Ma(e){document.documentElement.setAttribute("data-theme",e)}const Ha=(0,a.createContext)(void 0);function za(e){let{children:t,context:r}=e;const{isDarkTheme:n,setLightTheme:o,setDarkTheme:s}=(e=>{const t=Ra(),r=(0,a.useMemo)((()=>Ia("".concat(e,".").concat(t.id,".theme"))),[t.id,e]),{defaultMode:n}=Ba(),[o,i]=(0,a.useState)((()=>{const e=(e=>e===Na?Na:La)(r.get()||n);return Ma(e),e}));(0,a.useEffect)((()=>{Ma(o)}),[o]);const s=(0,a.useCallback)((()=>{i(La),r.set(La)}),[r]),c=(0,a.useCallback)((()=>{i(Na),r.set(Na)}),[r]);return{isDarkTheme:o===Na,setLightTheme:s,setDarkTheme:c}})(r);return(0,i.jsx)(Ha.Provider,{value:{isDarkTheme:n,setLightTheme:o,setDarkTheme:s},children:t})}function Ua(){const e=(0,a.useContext)(Ha);return null==e?{isDarkTheme:!1,setLightTheme:b.noop,setDarkTheme:b.noop}:e}var $a;function qa(){const{primaryColor:e}=Ba();return(0,i.jsx)(Va,{primaryColor:e})}const Va=Dt($a||($a=(0,K.Z)(["\n :root {\n --ttw-primary-color: ",";\n }\n\n //TODO 转移到异步加载\n //附件\n t-attachment {\n color: var(--ttw-primary-color);\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n overflow: hidden;\n padding: 0 4px;\n vertical-align: bottom;\n margin: 0 1px;\n\n &:before {\n content: '';\n width: 18px;\n height: 18px;\n background-color: var(--ttw-primary-color);\n mask: url(\"",'") no-repeat center;\n margin-right: 4px;\n }\n\n &:after {\n content: "(" attr(size) ")";\n margin-left: 4px;\n display: none;\n }\n\n &[size]:after {\n display: inline;\n }\n\n &:hover {\n background: rgba(0, 0, 0, .1);\n }\n\n &:read-write {\n cursor: text;\n }\n }\n'])),(e=>e.primaryColor),"data:image/svg+xml,%3csvg t='1642406480574' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2254' width='16' height='16'%3e %3cpath d='M874.666667 467.2c-10.666667-10.666667-29.866667-12.8-42.666667 0l-343.466667 341.333333c-74.666667 74.666667-198.4 74.666667-275.2 0-36.266667-36.266667-57.6-85.333333-57.6-136.533333s19.2-100.266667 57.6-136.533333L556.8 192c46.933333-46.933333 121.6-46.933333 168.533333 0 23.466667 23.466667 34.133333 53.333333 34.133334 83.2 0 32-12.8 61.866667-34.133334 83.2L384 704c-17.066667 17.066667-44.8 17.066667-64 0-8.533333-8.533333-12.8-19.2-12.8-32s4.266667-23.466667 12.8-32l317.866667-315.733333c10.666667-10.666667 12.8-29.866667 0-42.666667-10.666667-12.8-29.866667-12.8-42.666667 0L277.333333 597.333333c-19.2 19.2-29.866667 46.933333-29.866666 74.666667S258.133333 725.333333 277.333333 746.666667c40.533333 40.533333 106.666667 40.533333 147.2 0L768 403.2c34.133333-34.133333 53.333333-78.933333 53.333333-125.866667s-19.2-93.866667-53.333333-125.866666a178.986667 178.986667 0 0 0-253.866667 0l-341.333333 341.333333c-46.933333 46.933333-74.666667 110.933333-74.666667 179.2s25.6 132.266667 74.666667 179.2c49.066667 49.066667 115.2 74.666667 179.2 74.666667s130.133333-25.6 179.2-74.666667l343.466667-341.333333c10.666667-12.8 10.666667-32 0-42.666667z' p-id='2255'%3e%3c/path%3e%3c/svg%3e"),Ga=new class extends N{constructor(){super(...arguments),(0,c.Z)(this,"initialState",[])}*register(e){yield this.setState((t=>t.push(e)))}},Wa=new class extends N{};var Qa=Object.freeze({__proto__:null,components:Ga,options:Wa});function Ka(e,t,r){const n="function"==typeof t;n||(r=t),(0,a.useEffect)((()=>{let r;const o=e();return Promise.resolve(o).then((e=>{r=e})),()=>{n&&t(r)}}),r)}function Za(e){return e.__esModule&&e.default?e.default:e}const Ya=(0,a.createContext)(void 0),Xa=()=>{const e=(0,a.useContext)(Ya);if(void 0===e)throw new Error("useIntlContext must be used within a Layout component");return e},Ja=e=>{let{localize:t,children:r}=e;const{addMessages:n}=Xa(),[o,s]=(0,a.useState)(!0);return Ka((async()=>{s(!0),await n(t),s(!1)}),[t]),o?null:(0,i.jsx)(i.Fragment,{children:r})},es=e=>{let{children:t}=e;const{locale:r,messages:n}=Xa(),o=(0,a.useMemo)((()=>qo({locale:r,messages:n,defaultLocale:"en"},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}})),[r,n]);return(0,i.jsx)(co,{value:o,children:t})},ts=e=>{let{children:t,locale:r,messages:n}=e;const[o,s]=(0,a.useState)(n);return(0,i.jsx)(Ya.Provider,{value:{locale:r,messages:o,addMessages:async e=>{s({...o,...Za(await e(r))})}},children:(0,i.jsx)(es,{children:t})})};class rs{constructor(e,t,r){(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"book",void 0),(0,c.Z)(this,"models",{...Qa}),(0,c.Z)(this,"components",[]),(0,c.Z)(this,"activates",[]),(0,c.Z)(this,"plugins",[]),(0,c.Z)(this,"initialState",void 0),this.name=e,this.book=t,this.initialState=r}registerComponents(e,t){for(let[r,n]of Object.entries(e))n&&("plugin:setting"===r&&t&&(r="plugin:setting:".concat(t)),this.components.push(Oa(r,n)))}registerModels(e,t){for(const[r,n]of Object.entries(e))t?this.models["@".concat(t,"@").concat(r)]=n:this.models[r]=n}async registerPlugins(e){this.plugins=e;for(const t of e)try{this.registerComponents(t.components,t.name),this.registerModels(t.models,t.name),t.activate&&this.activates.push(t.activate),t.register&&await t.register(this.name,this.book)}catch(e){console.log(e)}}async createApp(e){const t=navigator.language,r=await this.loadMessages(t,e),n=U(this.models,{book:this.book,components:this.components,...this.initialState}),o=e=>{let{children:t}=e;return(0,i.jsx)(i.Fragment,{children:t})},a=e=>{let{children:t}=e;const r=(0,i.jsx)(Ca,{role:"activate:".concat(this.name),props:{children:t,name:this.name},component:o});return this.activates.reduce(((e,t)=>{const r=t(this.name);return void 0!==r?r:e}),r)};return e=>{let{children:o}=e;return(0,i.jsx)(q,{store:n,children:(0,i.jsx)(fr,{children:(0,i.jsxs)(za,{context:this.name,children:[(0,i.jsx)(qa,{}),(0,i.jsx)(ts,{locale:t,messages:r,children:(0,i.jsx)(a,{children:o})})]})})})}}async loadMessages(e,t){return await this.plugins.reduce((async(t,r)=>{const n=Za(await t);return r.localize?Object.assign({},n,Za(await r.localize(e))):n}),t(e))}}async function ns(e,t,r,o,i,a){const s=await async function(e,t){let r=[];if(t){const o=(0,n.NC)(t);try{r=await o.getInstalled(e),r=r.filter((e=>{var t;return!(null!==(t=window.TopWritePlugins[e.name])&&void 0!==t&&t.meta)}))}catch{}}try{const e=sessionStorage.getItem("PLUGIN_DEV"),t=Q.parse(window.location.search);if("dev"in t||e){const o=t.dev||e||8080;try{const e=(await n.WY.get("http://localhost:".concat(o,"/meta"),{raxConfig:{retry:0}})).data;r=r.filter((t=>t.name!==e.name&&!("theme"===e.type&&"theme"===t.type))),window.TopWritePlugins[e.name]&&delete window.TopWritePlugins[e.name],r.unshift(e),sessionStorage.setItem("PLUGIN_DEV",String(o))}catch(e){console.warn(e),sessionStorage.removeItem("PLUGIN_DEV")}}}catch{}const o=Object.entries(window.TopWritePlugins).filter((e=>{let[,t]=e;return!!t.meta})).map((e=>{let[,t]=e;return t.meta})),i=o.some((e=>"theme"===e.type)),a=Object.keys(window.TopWritePlugins),s=[];for(let e of r)e.disabled||a.includes(e.name)||i&&"theme"===e.type||s.push(Pa(e));return await Promise.all(s),o.push(...r),window.TopWritePluginsMeta=o,Object.values(window.TopWritePlugins||{})}(t,a),c=new rs(e,t,o);return c.registerModels(r),await c.registerPlugins(s),await c.createApp(i)}function os(e){return function(e){const{actions:t}=(0,a.useContext)($);return e?t[e]:t}(e)}function is(e){return V(e)}function as(e){return[is(e),os(e)]}function ss(e){const t=(0,a.useRef)(null),[r,n]=(0,a.useState)(e);return(0,a.useEffect)((()=>{t.current&&(t.current(),t.current=null)}),[r]),[r,(e,r)=>{t.current="function"==typeof r?r:null,n(e)}]}function cs(){const e=document.currentScript;if(!e)throw new Error("Automatic publicPath is not supported in this browser");return e.src.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}class us{constructor(e){let{name:t,meta:r,models:n={},components:o={},activate:i,register:a,localize:s,config:u}=e;(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"config",void 0),(0,c.Z)(this,"localize",void 0),(0,c.Z)(this,"models",void 0),(0,c.Z)(this,"components",void 0),(0,c.Z)(this,"activate",void 0),(0,c.Z)(this,"register",void 0),(0,c.Z)(this,"meta",void 0),this.name=t,this.meta=r,this.models=n,this.components=o,this.activate=i,this.register=a,this.localize=s,this.config=u}}const ls=(0,ti.convert)("root"),fs=(0,ti.convert)("element"),hs=(0,ti.convert)("text");function ps(e){return e.filter((e=>!(hs(e)&&"\n"===e.value)))}function ds(e,t,r){const n=t.properties,o=t.tagName,i={...n};r.prefix&&(r.key++,i.key=r.prefix+r.key);const a=[],s=ps(t.children),c=s?s.length:0;let u=-1;for(;++u<c;){const t=s[u];fs(t)?a.push(ds(e,t,r)):hs(t)&&a.push(t.value)}return e.call(t,o,i,a.length>0?a:void 0)}function ms(e,t){let{extensions:r=[],creator:n=s().createElement}=t;const o={allowDangerousHtml:!1,handlers:{...r.reduce(((e,t)=>Object.assign(e,t)),{}),textDirective:(e,t)=>e({},"textDirective",{name:t.name,attributes:t.attributes},ki(e,t)),leafDirective:(e,t)=>e({},"leafDirective",{name:t.name,attributes:t.attributes},ki(e,t)),containerDirective(e,t){"children"in t||(t.children=[]);let r=!1;for(const e of t.children){var n;if(null!==(n=e.data)&&void 0!==n&&n.directiveLabel){r=!0;break}}return r||t.children.unshift({type:"paragraph",children:[{type:"text",value:""}]}),e({},"containerDirective",{name:t.name,attributes:t.attributes},ki(e,t))},heading(e,t){const r=e(t,"heading",ki(e,t));return r.properties={...r.properties,depth:t.depth},r}},unknownHandler:()=>null},i=Ni(e,o);if(ls(i))return ps(i.children).map(((e,t)=>fs(e)?ds(n,e,{key:0,prefix:"h-".concat(t,"-")}):hs(e)?e.value:void 0));if(!fs(i))throw new Error("Expected root or element, not `"+(i&&i.type||i)+"`");return ds(n,i,{key:0,prefix:"h-"})}const gs=e=>{let{value:t}=e;return(0,i.jsx)("pre",{children:(0,i.jsx)("code",{children:t})})},ys=e=>{let{value:t}=e;return(0,i.jsx)("code",{children:t})},vs=["video","audio"];function bs(e){let{depth:t=5,...r}=e;return(0,a.createElement)("h".concat(t),r)}const Es={"x-inline":function(e){const{name:t,value:r}=e;return(0,i.jsx)(Ca,{role:"inline:".concat(t),props:{type:"inline",name:t,value:r},component:ys})},"x-block":function(e){const{name:t,value:r,parameter:n}=e;return(0,i.jsx)(Ca,{role:"block:".concat(t),props:{type:"block",name:t,parameter:n,value:r},component:gs})},textDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;let a=o[t],s="html:".concat(t);return customElements.get("t-".concat(t))?a=a||"t-".concat(t):vs.includes(t)||(a=void 0,s="directive:".concat(t)),(0,i.jsx)(Ca,{role:s,props:{...r,children:n},component:a})},containerDirective:function(e){let{name:t,attributes:r,children:n,components:o={}}=e,s=o[t],c="html:".concat(t);const[u,...l]=a.Children.toArray(n),f={children:l,label:u,...r};return customElements.get("t-".concat(t))?s=s||"t-".concat(t):vs.includes(t)||(s=void 0,c="directive:".concat(t)),(0,i.jsx)(Ca,{role:c,props:f,component:s})},leafDirective:function(e){const{name:t,attributes:r,children:n,components:o={}}=e;let a=o[t],s="html:".concat(t);return customElements.get("t-".concat(t))?a=a||"t-".concat(t):vs.includes(t)||(a=void 0,s="directive:".concat(t)),(0,i.jsx)(Ca,{role:s,props:{...r,children:n},component:a})},heading:function(e){let{components:t={},...r}=e;return(0,i.jsx)(Ca,{role:"html:heading",props:r,component:t.heading||bs})}};var ws;const xs=e=>{let{tagName:t,components:r={},...n}=e;return Es[t]?(0,a.createElement)(Es[t],{...n,components:r}):Mi.includes(t)?(0,i.jsx)(Ca,{role:"html:".concat(t),props:n,component:r[t]||t}):(console.warn("unknown tagName: ".concat(t)),null)};function Ss(e){let{as:t=a.Fragment,children:r,components:o={},aside:s=!0,header:c,footer:u,css:l,sectionAs:f,...h}=e;const p=(0,a.useMemo)((()=>(0,n.JH)().use(pi).freeze()),[]),[d,m]=(0,a.useMemo)((()=>{try{const e=p.data("toHastExtensions"),t=p.runSync(p.parse(r));let n=null;if(s){const r=function(e,t){const r=t||{},n=r.heading?ni(r.heading):null,o=ii(e,n,r);return{index:n?o.index:null,endIndex:n?o.endIndex:null,map:o.map.length>0?si(o.map,r):null}}(t).map;r&&(n=ms(r,{extensions:e}))}const i=ms(t,{extensions:e,creator:(e,t,r)=>(0,a.createElement)(xs,{...t,tagName:e,components:o},r)});return[i,n]}catch(e){return console.log(e),[null,null]}}),[r,s,p]);return(0,a.createElement)(t,h,(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("article",{children:[c,(0,i.jsx)(ks,{$css:l,as:f,children:d}),u]}),m&&(0,i.jsx)("aside",{children:m})]}))}const ks=Ft.section(ws||(ws=(0,K.Z)(["\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.2;\n word-wrap: break-word;\n\n & > *:first-child {\n margin-top: 0 !important;\n }\n\n & > *:last-child {\n margin-bottom: 0 !important;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, table, audio, video {\n margin: 1em 0;\n line-height: 1.2;\n padding: 0;\n\n &:last-child {\n margin-bottom: 0 !important;\n }\n\n &:first-child {\n margin-top: 0 !important;\n }\n }\n\n p {\n margin: 0;\n line-height: 2;\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: normal;\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n h1 {\n font-size: 2em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee;\n padding-bottom: .5em;\n }\n\n h2 {\n padding-bottom: .4em;\n font-size: 1.3em;\n line-height: 1.2;\n border-bottom: 1px solid #eeeeee\n }\n\n h3 {\n font-size: 1.2em;\n line-height: 1.2;\n }\n\n h4 {\n font-size: 1.1em;\n line-height: 1.2;\n }\n\n h5 {\n font-size: 1em;\n line-height: 1.2;\n }\n\n hr {\n border: 0;\n border-bottom: 1px solid #eeeeee;\n margin-bottom: 0.5em;\n }\n\n ul {\n padding-left: 2em;\n\n ul {\n margin: 0;\n }\n }\n\n ol {\n padding-left: 2em;\n }\n\n li {\n line-height: 2;\n\n &.task-list-item {\n list-style: none;\n position: relative;\n\n input[type=checkbox] {\n position: absolute;\n left: -1.5em;\n top: 0.5em;\n width: 1em;\n height: 1em;\n }\n }\n\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n code {\n display: inline-block;\n border-radius: 4px;\n padding: .2em .4em;\n background-color: #f7f7f7;\n word-break: break-all;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n white-space: pre;\n line-height: 1.3;\n margin: -.2em .4em;\n }\n\n pre {\n padding: 1.05em;\n overflow: auto;\n line-height: 1.45;\n background-color: #f7f7f7;\n border: 0;\n border-radius: 3px;\n font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;\n }\n\n\n pre > code {\n display: inline;\n max-width: 100%;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n tab-size: 4;\n }\n\n p {\n &.align-right {\n text-align: right;\n }\n\n &.align-center {\n text-align: center;\n }\n }\n\n table {\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n line-height: 1.8;\n border-spacing: 0;\n\n th {\n text-align: left;\n\n &[align='center'] {\n text-align: center;\n }\n\n &[align='right'] {\n text-align: right;\n }\n }\n\n th, td {\n border: 1px solid #e0e0e0;\n padding: 3px 12px;\n height: 34px;\n }\n\n tr:hover td {\n background-color: #f1f1f1;\n }\n }\n\n img {\n max-width: 100%;\n display: inline-block;\n padding: 3px;\n vertical-align: middle;\n }\n\n a {\n text-decoration: none;\n color: var(--ttw-primary-color);\n\n &:hover {\n text-decoration: underline;\n }\n }\n\n blockquote {\n padding: 5px 5px 5px 15px;\n color: #777777;\n border-left: 4px solid #dddddd;\n\n &.info {\n border-left-color: #5bc0de;\n color: #5bc0de;\n background-color: #f4f8fa;\n }\n\n &.warning {\n background-color: #fcf8f2;\n border-color: #f0ad4e;\n color: #f0ad4e;\n }\n\n &.danger {\n color: #d9534f;\n background-color: #fdf7f7;\n border-color: #d9534f;\n }\n\n &.success {\n background-color: #f3f8f3;\n border-color: #50af51;\n color: #50af51;\n }\n }\n\n video {\n display: block;\n width: 100%;\n }\n\n audio {\n display: block;\n width: 100%;\n }\n\n html[data-theme=dark] & {\n code {\n background-color: #333437;\n }\n\n pre {\n background-color: #333437;\n }\n\n h1, h2, hr {\n border-color: #404040;\n }\n\n th, td {\n border-color: #404040;\n }\n\n tr:hover td {\n background-color: #333437;\n }\n }\n\n ","\n"])),(e=>e.$css));function As(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}function Ds(e){const t=(0,a.useRef)(e);(0,a.useEffect)((()=>(document.title=e,()=>{document.title=t.current})),[e])}function Cs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.debounce)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.debounce)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Fs(e,t,r){const n=(0,a.useRef)(e),o=(0,a.useRef)((0,b.throttle)(e,t,r));return(0,a.useEffect)((()=>{n.current=e})),(0,a.useEffect)((()=>{o.current=(0,b.throttle)((function(){n.current(...arguments)}),t,r)}),[t,r]),o.current}function Ps(){return V("options")}const Os=new EventTarget;function Ts(){return Os}function js(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.document;"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/html"));const t=e.querySelector('script[type="application/payload+json"]');if(t)try{return JSON.parse(t.innerHTML)}catch{return{}}}var Is=Object.freeze({__proto__:null,encode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return window.btoa(unescape(encodeURIComponent(e)))}catch(e){if(t)throw e;return""}},decode:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return"";try{return decodeURIComponent(escape(window.atob(e)))}catch(e){if(t)throw e;return""}}});function _s(){return"undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}const Rs="1.0.0"},7007:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,f=60120,h=60115,p=60116,d=60121,m=60122,g=60117,y=60129,v=60131;
11
11
  /** @license React v17.0.2
12
12
  * react-is.production.min.js
13
13
  *
@@ -15,7 +15,7 @@ var Hi="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf(
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),u=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case h:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===y||e===i||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),o=r(4174),i=r(6725),a=r(6287),s=r(7425),c=r(907),u=r(3085),l=r(7265),f=r(4382),h=r(469),p=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),k=r(7504),A=r(1559),D=r(3428),C=r(2848),F=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(7327),I=r(8056),_=r(213),R=r(4206),B=r(1311),L=r(4678);function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=N(o),H=N(i),z=N(a),U=N(s),$=N(l),q=N(f),V=N(h),G=N(b),W=N(T),Q=N(j),K=N(R),Z=N(B),Y=N(L);class X{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}X.style=".topwrite/style.css",X.logo="logo.png",X.readme="README.md";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return H.default.encrypt(e,t).toString()}function te(e,t){try{return H.default.decrypt(e,t).toString(z.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,o,i,a,s)=>(n.isEqual(e,t)&&(delete i[a],n.isEmpty(i)&&function(e,t){const r=[];let o=e;for(let e=0;e<t.length-1;e++)r.push(o),o=o[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(o.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,o,i,a)=>(this.key&&e&&!J(t)&&i&&a&&n.set(i,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const o=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});o.addKeyword("encrypt",{validate:(e,t,o,i,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const i=o.compile(t);if(!i(e))for(const t of i.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class oe extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ie{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new ie(this.data.slice(0,1))}getParent(){return new ie(this.data.slice(0,-1))}createChild(e){return new ie(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ie(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:o=[],metadata:i}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=o,this.level=new ie,this.metadata=i}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:n.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new ie,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:n.isEmpty(e)?void 0:e}}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.metadata)}}const ce={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,o,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function o(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,i)(t):f(t)}function i(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?A.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function o(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),k.factoryLabel.call(n,e,o,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){o=n.events[a][1];break}function s(e){return o._balanced=!0,r(e)}function c(r){return r===y.codes.leftParenthesis?e.attempt(ce,t,i?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ue,t,i?e.attempt(le,t,s):s)(r):i?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),o?o._inactive?s(t):(i=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:o.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),c):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const he=(e,t,r,n)=>{const o=d.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};he.peek=d.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,o,g.types.whitespace)}return r(t)};function o(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):s(t)}function i(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me={name:"blankLine",tokenize:(e,t,r)=>{let n;const o=t=>t===n?(e.consume(t),o):(e.exit("blankLineSequence"),i(t)),i=a=>a===n?(e.enter("blankLineSequence"),o(a)):S.markdownSpace(a)?P.factorySpace(e,i,g.types.whitespace)(a):a===y.codes.eof||S.markdownLineEnding(a)?(e.exit("blankLine"),t(a)):r(a);return t=>(G.default(t===y.codes.caret,"expected `^`"),e.enter("blankLine"),n=t,i(t))}},ge=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ve=u.unified().use($.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(q.default).use(V.default).use(I.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const o={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,o)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:p.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const o=C.paragraph(e,t,r,n);return pe(e.align)+o},heading:(e,t,r,n)=>F.heading(e,t,r,n).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=c.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const o=O.blockquote(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[y.codes.caret]:me}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&ge(e).match(ye))return r.children.splice(t,1),[D.SKIP,t]}))}}));function be(e){const t=[];for(const r of e.children){const e=r.children,n=c.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const o=ge(n);if(!o)continue;const i=decodeURI(n.url);if(i&&i.match(/[\\:*?"<>|]/))continue;let a={title:o,ref:i};if(e.length>1){const t=e[e.length-1];_.is(t,"list")&&(a.children=be(t))}t.push(a)}return t}const Ee=ve();class we{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}hasMetadata(){let e=!1;return this.getArticle((t=>!!e||!n.isEmpty(t.metadata)&&(e=!0,!0)),(t=>(n.isEmpty(t.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ie(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new we(e.map((e=>se.createFormObject(e))),!0)}static createFromText(e){const t=function(e){const t=Ee.parse(e),r=[];let n;for(const e of t.children)if(_.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:ge(e).trim()}),_.is(e,"list")){const t=be(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new we(t.map((e=>se.createFormObject(e))))}static create(e){return"object"==typeof e?we.createFromObject(e):we.createFromText(e)}}we.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class xe{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.filter((e=>!e.builtin||this.preset&&this.preset[e.name]))}}t.YB=void 0;class Se{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new Se(e,t,r)}}const ke=/^(?:\w+:)?\/\/(\S+)$/,Ae=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,De=/^[^\s\.]+\.\S{2,}$/;Z.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=X,t.De=oe,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=U.default.posix.relative(U.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return U.default.posix.join(U.default.posix.dirname(this.path),e)}},t.$q=Se,t.aC=ie,t.ER=we,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new xe(e)},t.oe=J,t.CB=function(e){const t=e.match(ke);if(!t)return!1;const r=t[1];return!!r&&(Ae.test(r)||De.test(r))},t.JH=ve,t.FB=function(e){return Y.default(e).toString()}},4174:(e,t,r)=>{"use strict";var n=r(1251),o=r(29),i=r(4390),a=r(8969),s=r(6440),c=r(8506),u=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var o=r(t);!0!==r.$async&&(this.errors=r.errors);return o},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&S(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var h=r(7587);y.prototype.addKeyword=h.add,y.prototype.getKeyword=h.get,y.prototype.removeKeyword=h.remove,y.prototype.validateKeyword=h.validate;var p=r(24);y.ValidationError=p.Validation,y.MissingRefError=p.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:k,warn:k,error:k};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var o=t[n];o.meta||r&&!r.test(n)||(e._cache.del(o.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function k(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{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,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],o=r[2],i=r[3],s=r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:l,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:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),o=r(5117),i=r(24),a=r(6440),s=r(805),c=o.ucs2length,u=r(6471),l=i.Validation;function f(e,t,r){var n=p.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(e,t,r){for(var n=0;n<this._compilations.length;n++){var o=this._compilations[n];if(o.schema==e&&o.root==t&&o.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var E=this,w=this._opts,x=[void 0],S={},k=[],A={},D=[],C={},F=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var I=R(t,r,p,b);O.validate=I;var _=O.callValidate;return _&&(_.schema=I.schema,_.errors=null,_.refs=I.refs,_.refVal=I.refVal,_.root=I.root,_.$async=I.$async,w.sourceCode&&(_.source=I.source)),I}finally{h.call(this,t,r,b)}function R(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,h);var b,A=!0===t.$async,C=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:j,validate:s,util:o,resolve:n,resolveRef:B,usePattern:M,useDefault:H,useCustomRule:z,opts:w,formats:T,logger:E.logger,self:E});C=v(x,g)+v(k,d)+v(D,m)+v(F,y)+C,w.processCode&&(C=w.processCode(C,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",C)(E,j,T,r,x,D,F,u,c,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",C),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=p?b:a,A&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:C,patterns:k,defaults:D}),b}function B(t,o,i){o=n.url(t,o);var a,s,c=S[o];if(void 0!==c)return N(a=x[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return N(a=r.refVal[u],s=L(o,a))}s=L(o);var l=n.call(E,R,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,p,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(o,l),N(l,s);!function(e){delete S[e]}(o)}function L(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=A[e];return void 0===t&&(t=A[e]=k.length,k[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=C[t];return void 0===r&&(r=C[t]=D.length,D[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==E._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+o.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+E.errorsText(i.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(u)s=u.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=F.length;return F[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),o=r(6471),i=r(5117),a=r(8969),s=r(5127);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=v(r),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=E(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==E(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=w(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=E,c.fullPath=y,c.url=w,c.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==p&&(g+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=u._refs[d];if("string"==typeof y&&(y=u._refs[y]),y&&y.schema){if(!o(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=g}r[t]=m,a[t]=g}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=w(t,c)),r.$ref)){var l=w(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),o=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(i+=c(m(p)),s+=" && "+i)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=p?"<":">",v=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+i,x="exclType"+i,S="exclIsNumber"+i,k="' + "+(C="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+E+"; ",o+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+i)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var A;b=d;(A=A||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var D=o;o=A.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=E,h=g)}else{k=y;if((S="number"==typeof m)&&h){var C="'"+k+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[p?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,u=e.errSchemaPath+"/"+d,v+="="):(w=!1,k+="="));C="'"+k+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(A=A||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+C+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+k+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";D=o;return o=A.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",o+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var g=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},206:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],p.schema=E,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";p.dataPathArr[g]=m;var x=e.validate(p);p.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,k="";if(m&&S.$data){E="keywordValidate"+a;var A=S.validateSchema;i+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,c,e.schema,e)))return;o="validate.schema"+u,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",C="i"+a,F="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=D+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&S.$data&&(k+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",A&&(k+="}",i+=" "+p+" = "+x+".validateSchema("+o+"); if ("+p+") { ")),y)S.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);k="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var I=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,i+=" "+I}else{(L=L||[]).push(i),i="",i+=" "+E+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===S.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",B=i+=" , "+_+" , "+R+" , rootData ) ";i=L.pop(),!1===S.errors?(i+=" "+p+" = ",P&&(i+="await "),i+=B+"; "):i+=P?" var "+(D="customErrors"+a)+" = null; try { "+p+" = await "+B+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+p+" = "+B+"; "}if(S.modifying&&(i+=" if ("+_+") "+h+" = "+_+"["+R+"];"),i+=""+k,S.valid)f&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===S.valid?(i+=" !",i+=v?""+T:""+p):i+=" "+!S.valid+" ",i+=") { ",n=w.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var N=i;i=L.pop(),!e.compositeRule&&f?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?S.errors?"full"!=S.errors&&(i+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } "):!1===S.errors?i+=" "+M+" ":(i+=" if ("+d+" == errors) { "+M+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===S.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } else { "+M+" } "),i+=" } ",f&&(i+=" else { ")}return i}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+o+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),u){n+=" && ( ";var x=b;if(x)for(var S=-1,k=x.length-1;S<k;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(_=l+(I=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:I)+") ) "}n+=")) { ";var A="missing"+o,D="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,A,!0):E+" + "+A);var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var F=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var I=e.util.getProperty(O),_=(D=e.util.escapeQuotes(O),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+_+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=E;var R=h.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",h.schema=v,h.schemaPath=s+e.util.getProperty(w),h.errSchemaPath=c+"/"+e.util.escapeFragment(w),n+=" "+e.validate(h)+" ",h.baseId=R,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(g="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+o)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return u&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(y||v){var E;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,y?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+o,y=p.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=w,u&&(d+="}",n+=" else { ")}var k=a;if(k)for(var A,D=-1,C=k.length-1;D<C;)if(A=k[D+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var F=l+"["+D+"]";p.schema=A,p.schemaPath=s+"["+D+"]",p.errSchemaPath=c+"/"+D,p.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),p.dataPathArr[y]=D;var P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){p.schema=E,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,y="prevValid"+o,v="passingSchemas"+o;n+="var "+h+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,g="idx"+o,y=h.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+o,E=Object.keys(a||{}).filter(I),w=e.schema.patternProperties||{},x=Object.keys(w).filter(I),S=e.schema.additionalProperties,k=E.length||x.length,A=!1===S,D="object"==typeof S&&Object.keys(S).length,C=e.opts.removeAdditional,F=A||D||C,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function I(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),F){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",k){if(n+=" var isAdditional"+o+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var _=E;if(_)for(var R=-1,B=_.length-1;R<B;)K=_[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var L=x;if(L)for(var N=-1,M=L.length-1;N<M;)ie=L[N+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==C)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(C)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(D)if("failing"==C){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[y]=m;var G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}k&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Z=-1,Y=Q.length-1;Z<Y;){var X=a[K=Q[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(K),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(h);if(h.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,V);var te=V}else{te=v;n+=" var "+v+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(x.length){var oe=x;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=w[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,g="i"+o,y="' + "+d+" + '",v="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var k=e.validate(h);h.baseId=w,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,x)+" ":n+=" var "+v+" = "+x+"; "+k+" ",e.compositeRule=h.compositeRule=S,n+=" if (!"+p+") { for (var "+g+"=startErrs"+o+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,o="validate"):(n=!0===e.root.schema.$async,o="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+y+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(h||d.length){var E=e.errorPath,w=h||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { "+f+" = "+l+"["+p+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A=d;if(A)for(var D=-1,C=A.length-1;D<C;){T=A[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:_)+") ) "}n+=") { ";var F;S="' + "+(P="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { if ("+l+"["+p+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,I=O.length-1;j<I;){T=O[j+=1];var _=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else u&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");o+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var y=y||[];y.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;o=y.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,x);var A=e.RULES.types[x];if(k||S||!0===A||A&&!Y(A)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",k){var C="dataType"+u,F="coerced"+u;n+=" var "+C+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var P=k;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var I=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+F+"; ",l||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+F+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}");else{var _=e.RULES;if(_)for(var R=-1,B=_.length-1;R<B;)if(Y(A=_[R+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){f=e.schema.properties;var L=Object.keys(f);if(L)for(var N,M=-1,H=L.length-1;M<H;){if(void 0!==($=f[N=L[M+=1]]).default){var z=m+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==A.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){T=-1;for(var $,q=U.length-1;T<q;)if(void 0!==($=U[T+=1]).default){z=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=A.rules;if(V)for(var G,W=-1,Q=V.length-1;W<Q;)if(X(G=V[W+=1])){var K=G.code(e,G.keyword,A.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),A.type&&(n+=" } ",x&&x===A.type&&!k)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(o?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(5554),i=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,o=0;o<n.length;o++)if(n[o].keyword==e){n.splice(o,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,a,s=r(1404).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,p=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);i=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function k(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function A(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,o,i,a){var s,c=arguments.length;if(0===c)s="Failed";else if(1===c)o=t,t=void 0;else{if(!1===w){w=!0;var u=n.emitWarning?n.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(i="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:a||e};void 0!==o&&(l.message=o);var f=new p(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=p,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E();a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])}))};function F(e,t,r,n,o,i){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new C(e,o),c=new C(t,o,e),u=new p({actual:s,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}k({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var a=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===i&&E(),s.forEach((function(o){"string"==typeof e[o]&&y(t[o])&&t[o].test(e[o])||F(e,t,o,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function I(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===S){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function _(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];I.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},c(e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&f(o,r.prototype),o},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(1323).inspect,m=r(1404).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,r){var o="",i="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var x=l[l.length-1],k=f[f.length-1];x===k&&(h++<2?s="\n ".concat(x).concat(s):o=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],k=f[f.length-1];var A=Math.max(l.length,f.length);if(0===A){var D=u.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(E).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var C=0,F=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(h=0;h<A;h++){var O=h-a;if(l.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(f[h-2]),C++),i+="\n ".concat(f[h-1]),C++),a=h,o+="\n".concat(b,"-").concat(E," ").concat(f[h]),C++;else if(f.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(l[h]),C++;else{var T=f[h],j=l[h],I=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);I&&g(T,",")&&T.slice(0,-1)===j&&(I=!1,j+=","),I?(O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(j),o+="\n".concat(b,"-").concat(E," ").concat(T),C+=2):(i+=o,o="",1!==O&&0!==h||(i+="\n ".concat(j),C++))}if(C>20&&h<A-2)return"".concat(F).concat(P,"\n").concat(i,"\n").concat(y,"...").concat(E).concat(o,"\n")+"".concat(y,"...").concat(E)}return"".concat(F).concat(c?P:"","\n").concat(i).concat(o).concat(s).concat(d)}var A=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var o=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=a(this,h(t).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===p(u)&&null!==u&&"object"===p(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=x(u),l=x(l)),"deepStrictEqual"===i||"strictEqual"===i)r=a(this,h(t).call(this,k(u,l,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=w[i],g=S(u).split("\n");if("notStrictEqual"===i&&"object"===p(u)&&null!==u&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,h(t).call(this,"".concat(d," ").concat(g[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var A=S(u),D="",C=w[i];"notDeepEqual"===i||"notEqual"===i?(A="".concat(w[i],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(D="".concat(S(l)),A.length>512&&(A="".concat(A.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===i||"equal"===i?A="".concat(C,"\n\n").concat(A,"\n\nshould equal\n\n"):D=" ".concat(i," ").concat(D)),r=a(this,h(t).call(this,"".concat(A).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!o,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(r),c),r.stack,r.name="AssertionError",a(r)}var r,c,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],c&&i(r.prototype,c),u&&i(r,u),t}(c(Error));e.exports=A},1404:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,c,u={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),c=o(this,i(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);u[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,u;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(1323));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=u},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},c=Object.is?Object.is:r(3822),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,k=m.isNumberObject,A=m.isStringObject,D=m.isBooleanObject,C=m.isBigIntObject,F=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
18
+ */if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),c=b("react.context"),u=b("react.forward_ref"),l=b("react.suspense"),f=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),d=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),y=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case l:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case h:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===y||e===i||e===l||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===u||e.$$typeof===g||e.$$typeof===d||e[0]===m)},t.typeOf=E},2348:(e,t,r)=>{"use strict";e.exports=r(7007)},3440:(e,t,r)=>{"use strict";var n=r(2611),o=r(4174),i=r(6725),a=r(6287),s=r(7425),c=r(907),u=r(3085),l=r(7265),f=r(4382),h=r(469),p=r(9762),d=r(8627),m=r(9531),g=r(58),y=r(7605),v=r(480),b=r(9619),E=r(2493),w=r(6096),x=r(917),S=r(488),k=r(7504),A=r(1559),D=r(3428),C=r(2848),F=r(6156),P=r(4014),O=r(2268),T=r(9715),j=r(7327),I=r(8056),_=r(213),R=r(4206),B=r(1311),L=r(4678);function N(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var M=N(o),H=N(i),z=N(a),U=N(s),$=N(l),q=N(f),V=N(h),G=N(b),W=N(T),Q=N(j),K=N(R),Z=N(B),Y=N(L);class X{constructor(e,t,r){this.id=void 0,this.summary=void 0,this._config=void 0,this.id=e,this.summary=r,this.config=t}get config(){return this._config}set config(e){e.setKey(this.id+":config"),this._config=e}}X.style=".topwrite/style.css",X.logo="logo.png",X.readme="README.md";function J(e){return"string"==typeof e&&e.startsWith("@encrypted:")}function ee(e,t){return H.default.encrypt(e,t).toString()}function te(e,t){try{return H.default.decrypt(e,t).toString(z.default)}catch{return""}}var re=Object.freeze({__proto__:null,encrypt:ee,decrypt:te});class ne{constructor(e,t,r){this.key=void 0,this.values=void 0,this.schema=void 0,this.values=e,this.schema=t,this.key=r}setKey(e){this.key=e}getValues(){return this.values}setValues(e){const t=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0}).compile(this.schema);if(!t(e=n.cloneDeep(e)))for(const r of t.errors)e=n.omit(e,r.dataPath.substr(1).split("/"));this.values=e}getValue(e,t){return n.get(this.values,e,t)}setValue(e,t){return n.set(this.values,e,t)}toObject(){const e=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});e.removeKeyword("default"),e.addKeyword("default",{validate:(e,t,r,o,i,a,s)=>(n.isEqual(e,t)&&(delete i[a],n.isEmpty(i)&&function(e,t){const r=[];let o=e;for(let e=0;e<t.length-1;e++)r.push(o),o=o[t[e]];for(let e=t.length-2;e>=0;e--)n.isEmpty(r[e][t[e]])&&delete r[e][t[e]]}(s,n.toPath(o.substr(1)))),!0),modifying:!0,errors:!1}),e.addKeyword("encrypt",{validate:(e,t,r,o,i,a)=>(this.key&&e&&!J(t)&&i&&a&&n.set(i,a,"@encrypted:"+ee(t,this.key)),!0),modifying:!0,errors:!1});const t=e.compile(this.schema),r=n.cloneDeep(this.values);return t(r),r}static createFromObject(e,t,r){const o=new M.default({removeAdditional:!0,useDefaults:!0,allErrors:!0});o.addKeyword("encrypt",{validate:(e,t,o,i,a,s)=>(r&&e&&J(t)&&a&&s&&n.set(a,s,te(t.substr(11),r)),!0),modifying:!0,errors:!1});const i=o.compile(t);if(!i(e))for(const t of i.errors)e=n.omit(e,t.dataPath.substr(1).split("/"));return new this(e,t,r)}}class oe extends ne{constructor(){super(...arguments),this.pluginsConfig={},this.presetPlugins={}}setPresetPlugins(e){this.presetPlugins=e}getPlugins(){return Array.from(new Set([...this.getValue("plugins"),...Object.keys(this.presetPlugins)]))}getPluginConfig(e,t){if(!this.pluginsConfig[e]){const r=this.presetPlugins[e]?this.presetPlugins[e]:this.getValue(["pluginsConfig",e],{});this.pluginsConfig[e]=ne.createFromObject(n.cloneDeep(r),t,this.key+":"+e)}return this.pluginsConfig[e]}setPluginConfig(e,t){const r=t.toObject();n.isEmpty(r)?n.unset(this.values,["pluginsConfig",e]):this.setValue(["pluginsConfig",e],r),delete this.pluginsConfig[e]}static createFromObject(e){return super.createFromObject(e,oe.schema)}}oe.file="book.json",oe.schema={title:"TopWrite Configuration",type:"object",properties:{root:{type:"string",title:"Path from the root folder containing the book's content"},title:{type:"string",title:"Title of the book"},author:{type:"object",title:"attr of the author",properties:{name:{type:"string"},email:{type:"string"},home:{type:"string"}}},theme:{type:"string",title:"Name of the theme",default:"default"},themeConfig:{type:"object",title:"Configuration for theme",properties:{defaultMode:{type:"string",title:"Default mode form theme",default:"light"},primaryColor:{type:"string",title:"Primary Color form theme",default:"#3c60ff"}},default:{}},plugins:{type:"array",items:{type:"string"},default:[]},pluginsConfig:{type:"object",title:"Configuration for plugins",default:{}},pdf:{type:"object",title:"PDF specific configurations",properties:{fontFamily:{type:"string",default:"Microsoft Yahei",title:"Font family for the PDF output"},margin:{type:"object",title:"Margins (unit: pt)",properties:{right:{type:"integer",title:"Right Margin",minimum:0,maximum:100,default:30},left:{type:"integer",title:"Left Margin",minimum:0,maximum:100,default:30},top:{type:"integer",title:"Top Margin",minimum:0,maximum:100,default:40},bottom:{type:"integer",title:"Bottom Margin",minimum:0,maximum:100,default:40}},default:{}},paperSize:{type:"string",enum:["a0","a1","a2","a3","a4","a5","a6","b0","b1","b2","b3","b4","b5","b6","legal","letter"],default:"a4",title:"Paper size for the PDF"},chapterMark:{type:"string",enum:["pagebreak","rule","both","none"],default:"pagebreak",title:"How to mark detected chapters"},pageBreaksBefore:{type:"string",default:"/",title:'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"'},pageNumbers:{type:"boolean",default:!0,title:"Add page numbers to the bottom of every page"}},default:{}}},required:[]};class ie{constructor(e){void 0===e&&(e=[]),this.data=void 0,this.data="string"==typeof e?e.split(".").map((e=>parseInt(e,10))):e}getRoot(){return new ie(this.data.slice(0,1))}getParent(){return new ie(this.data.slice(0,-1))}createChild(e){return new ie(this.data.concat(e))}isDescendant(e){return e.toString().startsWith(this.toString()+".")}getNext(){const e=[...this.data];return e[e.length-1]++,new ie(e)}getDepth(){return this.data.length-1}eq(e){return this.toString()===e.toString()}getLeafIndex(){return this.data[this.data.length-1]-1}toString(e){return e?this.data.slice(e.data.length).join("."):this.data.join(".")}static compare(e,t){for(let r=0;r<Math.max(e.data.length,t.data.length);r++){let n=e.data[r]||0,o=t.data[r]||0;if(n>o)return 1;if(o>n)return-1}return 0}}class ae{constructor(e){let{title:t,ref:r,path:n,children:o=[],metadata:i}=e;this.level=void 0,this.title=void 0,this.ref=void 0,this.path=void 0,this.children=void 0,this.metadata=void 0,this.hasPath=!1,this.title=t,this.ref=r,n?(this.hasPath=!0,this.path=n):this.path=s.posix.format({...s.posix.parse(this.ref),ext:".html",base:""}),this.children=o,this.level=new ie,this.metadata=i}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getRef(){return this.ref}getPath(){return this.path}getArticles(){return this.children}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}getDepth(){return this.getLevel().getDepth()}createChildLevel(){return this.level.createChild(this.children.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.children.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.children.map((function(e){return e.toObject()}));return{title:this.title,ref:this.ref,path:this.hasPath?this.path:void 0,metadata:this.metadata,children:n.isEmpty(e)?void 0:e}}static findArticle(e,t){return e.getArticles().reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}static createFromObject(e){var t;const r=null==(t=e.children)?void 0:t.map((e=>ae.createFromObject(e)));return new ae({...e,children:r})}}class se{constructor(e,t,r){void 0===t&&(t=[]),this.level=void 0,this.title=void 0,this.articles=void 0,this.metadata=void 0,this.level=new ie,this.title=e,this.articles=t,this.metadata=r}getMetadata(e,t){return this.metadata?n.get(this.metadata,e,t):t}getLevel(){return this.level}getTitle(){return this.title}getArticles(){return this.articles}getFirstArticle(){return ae.findArticle(this,(()=>!0))}getDescendants(){const e=[];return ae.findArticle(this,(t=>(e.push(t),!1))),e}createChildLevel(){return this.level.createChild(this.articles.length+1)}indexLevels(e){e?this.level=e:e=this.level;for(const[t,r]of this.articles.entries())r.indexLevels(e.createChild(t+1))}toObject(){const e=this.articles.map((function(e){return e.toObject()}));return{title:this.title,metadata:this.metadata,articles:n.isEmpty(e)?void 0:e}}static createFormObject(e){var t;return new se(e.title,null==(t=e.articles)?void 0:t.map((e=>ae.createFromObject(e))),e.metadata)}}const ce={tokenize:function(e,t,r){function n(t){return t===y.codes.rightParenthesis?f(t):x.factoryDestination(e,o,r,g.types.resourceDestination,g.types.resourceDestinationLiteral,g.types.resourceDestinationLiteralMarker,g.types.resourceDestinationRaw,g.types.resourceDestinationString,v.constants.linkResourceDestinationBalanceMax)(t)}function o(t){return S.markdownLineEndingOrSpace(t)?w.factoryWhitespace(e,i)(t):f(t)}function i(t){return t===y.codes.quotationMark||t===y.codes.apostrophe||t===y.codes.leftParenthesis?A.factoryTitle(e,w.factoryWhitespace(e,a),r,g.types.resourceTitle,g.types.resourceTitleMarker,g.types.resourceTitleString)(t):a(t)}function a(t){return t===y.codes.equalsTo?(e.enter("resourceSize"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),s):f(t)}function s(t){return t===y.codes.lowercaseX?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),u):t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeWidth"),e.enter(g.types.chunkString,{contentType:"string"}),c(t))}function c(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):t===y.codes.lowercaseX?(e.exit(g.types.chunkString),e.exit("resourceSizeWidth"),e.enter("resourceSizeMarker"),e.consume(t),e.exit("resourceSizeMarker"),u):(e.consume(t),c)}function u(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.enter("resourceSizeHeight"),e.enter(g.types.chunkString,{contentType:"string"}),l(t))}function l(t){return t===y.codes.rightParenthesis||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("resourceSizeHeight"),e.exit("resourceSize"),w.factoryWhitespace(e,f)(t)):(e.consume(t),l)}function f(n){return n===y.codes.rightParenthesis?(e.enter(g.types.resourceMarker),e.consume(n),e.exit(g.types.resourceMarker),e.exit(g.types.resource),t):r(n)}return function(t){return e.enter(g.types.resource),e.enter(g.types.resourceMarker),e.consume(t),e.exit(g.types.resourceMarker),w.factoryWhitespace(e,n)}}},ue={tokenize:function(e,t,r){const n=this;function o(e){return n.parser.defined.includes(E.normalizeIdentifier(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}return function(t){return G.default.strictEqual(t,y.codes.leftSquareBracket,"expected left bracket"),k.factoryLabel.call(n,e,o,r,g.types.reference,g.types.referenceMarker,g.types.referenceString)(t)}}},le={tokenize:function(e,t,r){function n(n){return 93===n?(e.enter(g.types.referenceMarker),e.consume(n),e.exit(g.types.referenceMarker),e.exit(g.types.reference),t):r(n)}return function(t){return e.enter(g.types.reference),e.enter(g.types.referenceMarker),e.consume(t),e.exit(g.types.referenceMarker),n}}};var fe={name:"labelEnd",tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if((n.events[a][1].type===g.types.labelImage||n.events[a][1].type===g.types.labelLink)&&!n.events[a][1]._balanced){o=n.events[a][1];break}function s(e){return o._balanced=!0,r(e)}function c(r){return r===y.codes.leftParenthesis?e.attempt(ce,t,i?t:s)(r):r===y.codes.leftSquareBracket?e.attempt(ue,t,i?e.attempt(le,t,s):s)(r):i?t(r):s(r)}return function(t){return G.default(t===y.codes.rightSquareBracket,"expected `]`"),o?o._inactive?s(t):(i=n.parser.defined.indexOf(E.normalizeIdentifier(n.sliceSerialize({start:o.end,end:n.now()})))>-1,e.enter(g.types.labelEnd),e.enter(g.types.labelMarker),e.consume(t),e.exit(g.types.labelMarker),e.exit(g.types.labelEnd),c):r(t)}},resolveTo:m.labelEnd.resolveTo,resolveAll:m.labelEnd.resolveAll};const he=(e,t,r,n)=>{const o=d.image(e,t,r,n);return e.width||e.height?o.replace(/\)$/," ="+(e.width||"")+(e.height?"x"+e.height:"")+")"):o};he.peek=d.image.peek;const pe=e=>{let t;switch(e){case"right":t="--: ";break;case"center":t=":-: ";break;default:t=""}return t},de={name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(t===y.codes.greaterThan){const r=n.containerState;return G.default(r,"expected `containerState` to be defined in container"),r.open||(e.enter(g.types.blockQuote,{_container:!0}),r.open=!0),e.enter(g.types.blockQuotePrefix),e.enter(g.types.blockQuoteMarker),e.consume(t),e.exit(g.types.blockQuoteMarker),P.factorySpace(e,o,g.types.whitespace)}return r(t)};function o(t){return t===y.codes.leftSquareBracket?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),i):s(t)}function i(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.enter("blockQuoteType"),e.enter(g.types.chunkString,{contentType:"string"}),a(t))}function a(t){return t===y.codes.rightSquareBracket||S.markdownLineEndingOrSpace(t)?(e.exit(g.types.chunkString),e.exit("blockQuoteType"),e.enter("blockQuoteTypeMarker"),e.consume(t),e.exit("blockQuoteTypeMarker"),s):(e.consume(t),a)}function s(r){return S.markdownSpace(r)?(e.enter(g.types.blockQuotePrefixWhitespace),e.consume(r),e.exit(g.types.blockQuotePrefixWhitespace),e.exit(g.types.blockQuotePrefix),t):(e.exit(g.types.blockQuotePrefix),t(r))}},continuation:{tokenize:function(e,t,r){return P.factorySpace(e,e.attempt(de,t,r),g.types.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:v.constants.tabSize)}},exit:m.blockQuote.exit},me={name:"blankLine",tokenize:(e,t,r)=>{let n;const o=t=>t===n?(e.consume(t),o):(e.exit("blankLineSequence"),i(t)),i=a=>a===n?(e.enter("blankLineSequence"),o(a)):S.markdownSpace(a)?P.factorySpace(e,i,g.types.whitespace)(a):a===y.codes.eof||S.markdownLineEnding(a)?(e.exit("blankLine"),t(a)):r(a);return t=>(G.default(t===y.codes.caret,"expected `^`"),e.enter("blankLine"),n=t,i(t))}},ge=function(e,t){void 0===t&&(t="text");let r="";return D.visit(e,t,(function(e){r+=e.value})),r},ye=/^\[toc(?:=(\d)(?:,(\d))?)?]$/im,ve=u.unified().use($.default).use((function(){const e=this.data();e.micromarkExtensions=[],e.fromMarkdownExtensions=[],e.toMarkdownExtensions=[],e.toHastExtensions=[]})).use(Q.default).use(W.default,["yaml"]).use(q.default).use(V.default).use(I.remarkHeadingId).use((function(){return this.data().toHastExtensions.push({xBlock:(e,t)=>e({},"x-block",{name:t.name,value:t.value,parameter:t.parameter}),xInline:(e,t)=>e({},"x-inline",{name:t.name,value:t.value})}),function(e){D.visit(e,((e,t,r)=>{if(null!==t&&null!==r)if((e=>"code"===e.type)(e)&&e.lang){const n=/\[([\w-_]+)(:([\w-_]+))?]/g.exec(e.lang);if(n){const o={type:"xBlock",name:n[1],parameter:n[3]||"",value:e.value,position:e.position};r.children.splice(t,1,o)}}else if((e=>"inlineCode"===e.type)(e)){const n=/^([^\s]+)\s(.*?)\s\1$/.exec(e.value);if(n){const o={type:"xInline",name:n[1],value:n[2],position:e.position};r.children.splice(t,1,o)}}}))}})).use((function(){const e=this.data();e.micromarkExtensions.push({text:{[y.codes.rightSquareBracket]:fe}}),e.fromMarkdownExtensions.push({enter:{resourceSizeWidth:function(){this.buffer()},resourceSizeHeight:function(){this.buffer()}},exit:{resourceSizeWidth:function(){const e=this.resume();this.stack[this.stack.length-1].width=e},resourceSizeHeight:function(){const e=this.resume();this.stack[this.stack.length-1].height=e}}}),e.toMarkdownExtensions.push({handlers:{image:he}}),e.toHastExtensions.push({image:(e,t)=>{const r={src:p.encode(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),r.width=t.width,r.height=t.height,e(t,"img",r)}})})).use((function(){return this.data().toMarkdownExtensions.push({handlers:{paragraph:(e,t,r,n)=>{const o=C.paragraph(e,t,r,n);return pe(e.align)+o},heading:(e,t,r,n)=>F.heading(e,t,r,n).replace(/^#+\s/,"$&"+pe(e.align))}}),function(e){D.visit(e,((e,t,r)=>{if((e=>"paragraph"===e.type||"heading"===e.type)(e)){const t=c.select("text",e);if(t){const n=t.value;n.startsWith("--: ")?e.align="right":n.startsWith(":-: ")?e.align="center":n.startsWith(":-- ")&&(e.align="left"),e.align&&(t.value=n.substr(4),r&&"listItem"===r.type?r.data={...r.data,hProperties:{className:"align-"+e.align}}:e.data={...e.data,hProperties:{className:"align-"+e.align}})}}}))}})).use((function(){const e=this.data();return e.toMarkdownExtensions.push({handlers:{blockquote:(e,t,r,n)=>{const o=O.blockquote(e,t,r,n);return e.variant?o.replace(/(^|\s+)>\s/,"$1> ["+e.variant+"] "):o}}}),e.micromarkExtensions.push({document:{[y.codes.greaterThan]:de}}),e.fromMarkdownExtensions.push({enter:{blockQuoteType:function(){this.buffer()}},exit:{blockQuoteType:function(){const e=this.resume();this.stack[this.stack.length-1].variant=e}}}),function(e){D.visit(e,"blockquote",(e=>{e.variant&&(e.data={...e.data,hProperties:{className:e.variant}})}))}})).use((function(){const e=this.data();e.toHastExtensions.push({blankLine:e=>e({},"p",[e({},"br")])}),e.micromarkExtensions.push({flow:{[y.codes.caret]:me}}),e.toMarkdownExtensions.push({handlers:{blankLine:()=>"^"}}),e.fromMarkdownExtensions.push({enter:{blankLine:function(e){this.enter({type:"blankLine"},e)}},exit:{blankLine:function(e){this.exit(e)}}})})).use((function(){return function(e){D.visit(e,((e,t,r)=>{if(r&&"root"===r.type&&null!==t&&ge(e).match(ye))return r.children.splice(t,1),[D.SKIP,t]}))}}));function be(e){const t=[];for(const r of e.children){const e=r.children,n=c.select("paragraph:first-child>*",r);if(!n||!n.url)continue;const o=ge(n);if(!o)continue;const i=decodeURI(n.url);if(i&&i.match(/[\\:*?"<>|]/))continue;let a={title:o,ref:i};if(e.length>1){const t=e[e.length-1];_.is(t,"list")&&(a.children=be(t))}t.push(a)}return t}const Ee=ve();class we{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.parts=void 0,this.json=void 0,this.parts=e,this.json=t,this.indexLevels()}hasMetadata(){let e=!1;return this.getArticle((t=>!!e||!n.isEmpty(t.metadata)&&(e=!0,!0)),(t=>(n.isEmpty(t.metadata)||(e=!0),!0))),e}isJson(){return this.json}getParts(){return this.parts}getPart(e){return this.parts[e]}getLastPart(){return this.parts[this.parts.length-1]}getArticles(){const e=[];return this.getArticle((t=>(e.push(t),!1))),e}getArticle(e,t){return this.parts.reduce(((r,n)=>r||(!t||t(n)?ae.findArticle(n,e):void 0)),void 0)}getArticlePart(e){const t=e.getLevel().getRoot();return this.getByLevel(t)}getFirstPath(){const e=this.getArticle((e=>!!e.getPath()));if(e)return e.getPath()}getByLevel(e){const t=t=>t.getLevel().eq(e);return this.parts.reduce(((e,r)=>e||(t(r)?r:ae.findArticle(r,t))),void 0)}getFirstArticle(){return this.getArticle((()=>!0))}getNextArticle(e){const t=e instanceof ae?e.getLevel():e;let r=!1;return this.getArticle((e=>!!r||(r=e.getLevel()==t,!1)))}getPrevArticle(e){const t=e instanceof ae?e.getLevel():e;let r;return this.getArticle((e=>e.getLevel()==t||(r=e,!1))),r}getParent(e){const t=(e instanceof ae?e.getLevel():e).getParent();if(t)return this.getByLevel(t)}indexLevels(){for(const[e,t]of this.parts.entries()){const r=new ie(String(e+1));t.indexLevels(r)}}isSinglePart(){return 1===this.parts.length&&!this.parts[0].title}isEmpty(){return this.isSinglePart()?0===this.parts[0].articles.length:0===this.parts.length}toObject(){return this.parts.map((function(e){return e.toObject()}))}static createFromObject(e){return new we(e.map((e=>se.createFormObject(e))),!0)}static createFromText(e){const t=function(e){const t=Ee.parse(e),r=[];let n;for(const e of t.children)if(_.is(e,"heading")&&[2,3].includes(e.depth)&&(n&&r.push(n),n={title:ge(e).trim()}),_.is(e,"list")){const t=be(e);n?n.articles=(n.articles||[]).concat(t):n={title:"",articles:t}}return n?r.push(n):r.push({title:""}),r}(e);return new we(t.map((e=>se.createFormObject(e))))}static create(e){return"object"==typeof e?we.createFromObject(e):we.createFromText(e)}}we.file={json:"SUMMARY.json",markdown:"SUMMARY.md"};class xe{constructor(e){let{host:t,preset:r}=e;this.host=void 0,this.preset=void 0,this.host=t,this.preset=r}getBuyUrl(e,t){return this.host+"/api/buy?book="+e.id+"&plugin="+t.name}async bought(e,t){try{return await K.default.get(this.host+"/api/bought?book="+e.id+"&plugin="+t.name),!0}catch{return!1}}async queryPlugins(e){let{page:t=1,...r}=e;const{data:n}=await K.default.get(this.host+"/api/query",{params:{...r,page:t}});return n}async getInstalled(e){const{config:t}=e,r=["theme-"+t.getValue("theme"),...t.getValue("plugins")];this.preset&&(r.push(...Object.keys(this.preset)),t.setPresetPlugins(this.preset));const{data:n}=await K.default.get(this.host+"/api/installed",{params:{book:e.id,plugins:r.join(",")}}).catch((e=>{throw new Error("Plugins Check Failed:"+e.message)}));return n.flatMap((e=>{var t,r;return!e.builtin||null!=(t=this.preset)&&t[e.name]?(e.preset=!(null==(r=this.preset)||!r[e.name]),[e]):[]}))}}t.YB=void 0;class Se{constructor(e,t,r){this.flatColors=["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e","#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50","#f1c40f","#e67e22","#e74c3c","#f39c12","#d35400","#c0392b"],this.letter=void 0,this.size=void 0,this.canvas=void 0,this.letter=e,this.size=t,this.canvas=r,this.generate()}toDataUrl(){return this.canvas.toDataURL()}generate(){const e=this.canvas.getContext("2d");if(!e)throw new Error("getContext failed");const t=this.size/10;e.beginPath(),e.arc(this.size-t,this.size-t,t,0,Math.PI/2),e.lineTo(t,this.size),e.arc(t,this.size-t,t,Math.PI/2,Math.PI),e.lineTo(0,t),e.arc(t,t,t,Math.PI,3*Math.PI/2),e.lineTo(this.size-t,0),e.arc(this.size-t,t,t,3*Math.PI/2,2*Math.PI),e.lineTo(this.size,this.size-t),e.closePath();const r=this.letter[0].toUpperCase();e.fillStyle=this.flatColors[r.charCodeAt(0)%this.flatColors.length],e.fill(),e.restore(),e.font=Math.round(this.size/2)+"px Roboto",e.textAlign="center",e.fillStyle="#FFFFFF",e.fillText(this.letter[0].toUpperCase(),this.size/2,this.size/1.5)}static create(e,t,r){return r||(r=function(e){const t=window.document.createElement("canvas");return t.width=e,t.height=e,t}(t)),new Se(e,t,r)}}const ke=/^(?:\w+:)?\/\/(\S+)$/,Ae=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,De=/^[^\s\.]+\.\S{2,}$/;Z.default.attach(),K.default.defaults.maxContentLength=1/0,K.default.defaults.maxBodyLength=1/0,Object.defineProperty(t,"WY",{enumerable:!0,get:function(){return K.default}}),t.l_=ne,t.fy=X,t.De=oe,t.$B=class{constructor(e){let{path:t,content:r,meta:n={}}=e;this.path=void 0,this.content=void 0,this.meta=void 0,this.path=t,this.content=r,this.meta=n}getMeta(e,t){return n.get(this.meta,e,t)}relative(e){const t="/"===e.slice(-1);return(e=U.default.posix.relative(U.default.posix.dirname(this.path),e)||".")+(t?"/":"")}resolve(e){return U.default.posix.join(U.default.posix.dirname(this.path),e)}},t.$q=Se,t.aC=ie,t.ER=we,t.oI=ae,t.Lj=se,t.rK=re,t.NC=function(e){return t.YB=new xe(e)},t.oe=J,t.CB=function(e){const t=e.match(ke);if(!t)return!1;const r=t[1];return!!r&&(Ae.test(r)||De.test(r))},t.JH=ve,t.FB=function(e){return Y.default(e).toString()}},4174:(e,t,r)=>{"use strict";var n=r(1251),o=r(29),i=r(4390),a=r(8969),s=r(6440),c=r(8506),u=r(1077),l=r(3244),f=r(5117);e.exports=y,y.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var o=r(t);!0!==r.$async&&(this.errors=r.errors);return o},y.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},y.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,r,n);return this}var a=this._getId(e);if(void 0!==a&&"string"!=typeof a)throw new Error("schema id must be string");return S(this,t=o.normalizeId(t||a)),this._schemas[t]=this._addSchema(e,r,n,!0),this},y.prototype.addMetaSchema=function(e,t,r){return this.addSchema(e,t,r,!0),this},y.prototype.validateSchema=function(e,t){var r=e.$schema;if(void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(!(r=r||this._opts.defaultMeta||function(e){var t=e._opts.meta;return e._opts.defaultMeta="object"==typeof t?e._getId(t)||t:e.getSchema(d)?d:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var n=this.validate(r,e);if(!n&&t){var o="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(o);this.logger.error(o)}return n},y.prototype.getSchema=function(e){var t=v(this,e);switch(typeof t){case"object":return t.validate||this._compile(t);case"string":return this.getSchema(t);case"undefined":return function(e,t){var r=o.schema.call(e,{schema:{}},t);if(r){var i=r.schema,s=r.root,c=r.baseId,u=n.call(e,i,s,void 0,c);return e._fragments[t]=new a({ref:t,fragment:!0,schema:i,root:s,baseId:c,validate:u}),u}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return b(this,this._schemas,e),b(this,this._refs,e),this;switch(typeof e){case"undefined":return b(this,this._schemas),b(this,this._refs),this._cache.clear(),this;case"string":var t=v(this,e);return t&&this._cache.del(t.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var r=this._opts.serialize,n=r?r(e):e;this._cache.del(n);var i=this._getId(e);i&&(i=o.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this},y.prototype.addFormat=function(e,t){"string"==typeof t&&(t=new RegExp(t));return this._formats[e]=t,this},y.prototype.errorsText=function(e,t){if(!(e=e||this.errors))return"No errors";for(var r=void 0===(t=t||{}).separator?", ":t.separator,n=void 0===t.dataVar?"data":t.dataVar,o="",i=0;i<e.length;i++){var a=e[i];a&&(o+=n+a.dataPath+" "+a.message+r)}return o.slice(0,-r.length)},y.prototype._addSchema=function(e,t,r,n){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var i=this._opts.serialize,s=i?i(e):e,c=this._cache.get(s);if(c)return c;n=n||!1!==this._opts.addUsedSchema;var u=o.normalizeId(this._getId(e));u&&n&&S(this,u);var l,f=!1!==this._opts.validateSchema&&!t;f&&!(l=u&&u==o.normalizeId(e.$schema))&&this.validateSchema(e,!0);var h=o.ids.call(this,e),p=new a({id:u,schema:e,localRefs:h,cacheKey:s,meta:r});"#"!=u[0]&&n&&(this._refs[u]=p);this._cache.put(s,p),f&&l&&this.validateSchema(e,!0);return p},y.prototype._compile=function(e,t){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=t||i,!0===e.schema.$async&&(i.$async=!0),i;var r,o;e.compiling=!0,e.meta&&(r=this._opts,this._opts=this._metaOpts);try{o=n.call(this,e.schema,t,e.localRefs)}catch(t){throw delete e.validate,t}finally{e.compiling=!1,e.meta&&(this._opts=r)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var t=e.validate,r=t.apply(this,arguments);return i.errors=t.errors,r}},y.prototype.compileAsync=r(1101);var h=r(7587);y.prototype.addKeyword=h.add,y.prototype.getKeyword=h.get,y.prototype.removeKeyword=h.remove,y.prototype.validateKeyword=h.validate;var p=r(24);y.ValidationError=p.Validation,y.MissingRefError=p.MissingRef,y.$dataMetaSchema=l;var d="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],g=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=f.copy(e)||{},function(e){var t=e._opts.logger;if(!1===t)e.logger={log:k,warn:k,error:k};else{if(void 0===t&&(t=console),!("object"==typeof t&&t.log&&t.warn&&t.error))throw new Error("logger must implement log, warn and error methods");e.logger=t}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=c(e.format),this._cache=e.cache||new i,this._loadingSchemas={},this._compilations=[],this.RULES=u(),this._getId=function(e){switch(e.schemaId){case"auto":return x;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var t=f.copy(e._opts),r=0;r<m.length;r++)delete t[m[r]];return t}(this),e.formats&&function(e){for(var t in e._opts.formats){var r=e._opts.formats[t];e.addFormat(t,r)}}(this),e.keywords&&function(e){for(var t in e._opts.keywords){var r=e._opts.keywords[t];e.addKeyword(t,r)}}(this),function(e){var t;e._opts.$data&&(t=r(3633),e.addMetaSchema(t,t.$id,!0));if(!1===e._opts.meta)return;var n=r(4222);e._opts.$data&&(n=l(n,g));e.addMetaSchema(n,d,!0),e._refs["http://json-schema.org/schema"]=d}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var t=e._opts.schemas;if(!t)return;if(Array.isArray(t))e.addSchema(t);else for(var r in t)e.addSchema(t[r],r)}(this)}function v(e,t){return t=o.normalizeId(t),e._schemas[t]||e._refs[t]||e._fragments[t]}function b(e,t,r){for(var n in t){var o=t[n];o.meta||r&&!r.test(n)||(e._cache.del(o.cacheKey),delete t[n])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function x(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,t){if(e._schemas[t]||e._refs[t])throw new Error('schema with key or id "'+t+'" already exists')}function k(){}},4390:e=>{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},1101:(e,t,r)=>{"use strict";var n=r(24).MissingRef;e.exports=function e(t,r,o){var i=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(o=r,r=void 0);var a=s(t).then((function(){var e=i._addSchema(t,void 0,r);return e.validate||c(e)}));o&&a.then((function(e){o(null,e)}),o);return a;function s(t){var r=t.$schema;return r&&!i.getSchema(r)?e.call(i,{$ref:r},!0):Promise.resolve()}function c(e){try{return i._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(u(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var o=i._loadingSchemas[n];o||(o=i._loadingSchemas[n]=i._opts.loadSchema(n)).then(a,a);return o.then((function(e){if(!u(n))return s(e).then((function(){u(n)||i.addSchema(e,n,void 0,r)}))})).then((function(){return c(e)}));function a(){delete i._loadingSchemas[n]}function u(e){return i._refs[e]||i._schemas[e]}}(t);throw t}}}},24:(e,t,r)=>{"use strict";var n=r(29);function o(e,t,r){this.message=r||o.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function i(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:i((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:i(o)},o.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},8506:(e,t,r)=>{"use strict";var n=r(5117),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{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,c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,h=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(o);if(!t)return!1;var r=+t[1],n=+t[2],a=+t[3];return n>=1&&n<=12&&a>=1&&a<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:i[n])}function y(e,t){var r=e.match(a);if(!r)return!1;var n=r[1],o=r[2],i=r[3],s=r[5];return(n<=23&&o<=59&&i<=59||23==n&&59==o&&60==i)&&(!t||s)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:l,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:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d},m.full={date:g,time:y,"date-time":function(e){var t=e.split(v);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&c.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":u,url:l,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:f,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":d};var v=/t|\s/i;var b=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},1251:(e,t,r)=>{"use strict";var n=r(29),o=r(5117),i=r(24),a=r(6440),s=r(805),c=o.ucs2length,u=r(6471),l=i.Validation;function f(e,t,r){var n=p.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function h(e,t,r){var n=p.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function p(e,t,r){for(var n=0;n<this._compilations.length;n++){var o=this._compilations[n];if(o.schema==e&&o.root==t&&o.baseId==r)return n}return-1}function d(e,t){return"var pattern"+e+" = new RegExp("+o.toQuotedString(t[e])+");"}function m(e){return"var default"+e+" = defaults["+e+"];"}function g(e,t){return void 0===t[e]?"":"var refVal"+e+" = refVal["+e+"];"}function y(e){return"var customRule"+e+" = customRules["+e+"];"}function v(e,t){if(!e.length)return"";for(var r="",n=0;n<e.length;n++)r+=t(n,e);return r}e.exports=function e(t,r,p,b){var E=this,w=this._opts,x=[void 0],S={},k=[],A={},D=[],C={},F=[];r=r||{schema:t,refVal:x,refs:S};var P=f.call(this,t,r,b),O=this._compilations[P.index];if(P.compiling)return O.callValidate=function e(){var t=O.validate,r=t.apply(this,arguments);return e.errors=t.errors,r};var T=this._formats,j=this.RULES;try{var I=R(t,r,p,b);O.validate=I;var _=O.callValidate;return _&&(_.schema=I.schema,_.errors=null,_.refs=I.refs,_.refVal=I.refVal,_.root=I.root,_.$async=I.$async,w.sourceCode&&(_.source=I.source)),I}finally{h.call(this,t,r,b)}function R(t,a,f,h){var p=!a||a&&a.schema==t;if(a.schema!=r.schema)return e.call(E,t,a,f,h);var b,A=!0===t.$async,C=s({isTop:!0,schema:t,isRoot:p,baseId:h,root:a,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:j,validate:s,util:o,resolve:n,resolveRef:B,usePattern:M,useDefault:H,useCustomRule:z,opts:w,formats:T,logger:E.logger,self:E});C=v(x,g)+v(k,d)+v(D,m)+v(F,y)+C,w.processCode&&(C=w.processCode(C,t));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",C)(E,j,T,r,x,D,F,u,c,l),x[0]=b}catch(e){throw E.logger.error("Error compiling schema, function code:",C),e}return b.schema=t,b.errors=null,b.refs=S,b.refVal=x,b.root=p?b:a,A&&(b.$async=!0),!0===w.sourceCode&&(b.source={code:C,patterns:k,defaults:D}),b}function B(t,o,i){o=n.url(t,o);var a,s,c=S[o];if(void 0!==c)return N(a=x[c],s="refVal["+c+"]");if(!i&&r.refs){var u=r.refs[o];if(void 0!==u)return N(a=r.refVal[u],s=L(o,a))}s=L(o);var l=n.call(E,R,r,o);if(void 0===l){var f=p&&p[o];f&&(l=n.inlineRef(f,w.inlineRefs)?f:e.call(E,f,r,p,t))}if(void 0!==l)return function(e,t){var r=S[e];x[r]=t}(o,l),N(l,s);!function(e){delete S[e]}(o)}function L(e,t){var r=x.length;return x[r]=t,S[e]=r,"refVal"+r}function N(e,t){return"object"==typeof e||"boolean"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&!!e.$async}}function M(e){var t=A[e];return void 0===t&&(t=A[e]=k.length,k[t]=e),"pattern"+t}function H(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return o.toQuotedString(e);case"object":if(null===e)return"null";var t=a(e),r=C[t];return void 0===r&&(r=C[t]=D.length,D[r]=e),"default"+r}}function z(e,t,r,n){if(!1!==E._opts.validateSchema){var o=e.definition.dependencies;if(o&&!o.every((function(e){return Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have all required keywords: "+o.join(","));var i=e.definition.validateSchema;if(i)if(!i(t)){var a="keyword schema is invalid: "+E.errorsText(i.errors);if("log"!=E._opts.validateSchema)throw new Error(a);E.logger.error(a)}}var s,c=e.definition.compile,u=e.definition.inline,l=e.definition.macro;if(c)s=c.call(E,t,r,n);else if(l)s=l.call(E,t,r,n),!1!==w.validateSchema&&E.validateSchema(s,!0);else if(u)s=u.call(E,n,e.keyword,t,r);else if(!(s=e.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var f=F.length;return F[f]=s,{code:"customRule"+f,validate:s}}}},29:(e,t,r)=>{"use strict";var n=r(2371),o=r(6471),i=r(5117),a=r(8969),s=r(5127);function c(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return c.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof a)return d(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var o,i,s,l=u.call(this,t,r);return l&&(o=l.schema,t=l.root,s=l.baseId),o instanceof a?i=o.validate||e.call(this,o.schema,t,void 0,s):void 0!==o&&(i=d(o,this._opts.inlineRefs)?o:e.call(this,o,t,void 0,s)),i}function u(e,t){var r=n.parse(t),o=v(r),i=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||o!==i){var s=E(o),c=this._refs[s];if("string"==typeof c)return l.call(this,e,c,r);if(c instanceof a)c.validate||this._compile(c),e=c;else{if(!((c=this._schemas[s])instanceof a))return;if(c.validate||this._compile(c),s==E(t))return{schema:c,root:e,baseId:i};e=c}if(!e.schema)return;i=y(this._getId(e.schema))}return h.call(this,r,i,e.schema,e)}function l(e,t,r){var n=u.call(this,e,t);if(n){var o=n.schema,i=n.baseId;e=n.root;var a=this._getId(o);return a&&(i=w(i,a)),h.call(this,r,i,o,e)}}e.exports=c,c.normalizeId=E,c.fullPath=y,c.url=w,c.ids=function(e){var t=E(this._getId(e)),r={"":t},a={"":y(t,!1)},c={},u=this;return s(e,{allKeys:!0},(function(e,t,s,l,f,h,p){if(""!==t){var d=u._getId(e),m=r[l],g=a[l]+"/"+f;if(void 0!==p&&(g+="/"+("number"==typeof p?p:i.escapeFragment(p))),"string"==typeof d){d=m=E(m?n.resolve(m,d):d);var y=u._refs[d];if("string"==typeof y&&(y=u._refs[y]),y&&y.schema){if(!o(e,y.schema))throw new Error('id "'+d+'" resolves to more than one schema')}else if(d!=E(g))if("#"==d[0]){if(c[d]&&!o(e,c[d]))throw new Error('id "'+d+'" resolves to more than one schema');c[d]=e}else u._refs[d]=g}r[t]=m,a[t]=g}})),c},c.inlineRef=d,c.schema=u;var f=i.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var o=e.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(r=r[s=i.unescapeFragment(s)]))break;var c;if(!f[s]&&((c=this._getId(r))&&(t=w(t,c)),r.$ref)){var l=w(t,r.$ref),h=u.call(this,n,l);h&&(r=h.schema,n=h.root,t=h.baseId)}}}return void 0!==r&&r!==n.schema?{schema:r,root:n,baseId:t}:void 0}}var p=i.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,t){return!1!==t&&(void 0===t||!0===t?m(e):t?g(e)<=t:void 0)}function m(e){var t;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(t=e[r])&&!m(t))return!1}else for(var n in e){if("$ref"==n)return!1;if("object"==typeof(t=e[n])&&!m(t))return!1}return!0}function g(e){var t,r=0;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if("object"==typeof(t=e[n])&&(r+=g(t)),r==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(p[o])r++;else if("object"==typeof(t=e[o])&&(r+=g(t)+1),r==1/0)return 1/0}return r}function y(e,t){return!1!==t&&(e=E(e)),v(n.parse(e))}function v(e){return n.serialize(e).split("#")[0]+"#"}var b=/#\/?$/;function E(e){return e?e.replace(b,""):""}function w(e,t){return t=E(t),n.resolve(e,t)}},1077:(e,t,r)=>{"use strict";var n=r(9784),o=r(5117).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=o(t),e.types=o(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var o;if("object"==typeof r){var i=Object.keys(r)[0];o=r[i],r=i,o.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:o}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=o(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},8969:(e,t,r)=>{"use strict";var n=r(5117);e.exports=function(e){n.copy(e,this)}},7959:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,o=0;o<n;)r++,(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<n&&56320==(64512&(t=e.charCodeAt(o)))&&o++;return r}},5117:(e,t,r)=>{"use strict";function n(e,t,r,n){var o=n?" !== ":" === ",i=n?" || ":" && ",a=n?"!":"",s=n?"":"!";switch(e){case"null":return t+o+"null";case"array":return a+"Array.isArray("+t+")";case"object":return"("+a+t+i+"typeof "+t+o+'"object"'+i+s+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+o+'"number"'+i+s+"("+t+" % 1)"+i+t+o+t+(r?i+a+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+o+'"'+e+'"'+(r?i+a+"isFinite("+t+")":"")+")";default:return"typeof "+t+o+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var o="",a=i(e);for(var s in a.array&&a.object&&(o=a.null?"(":"(!"+t+" || ",o+="typeof "+t+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)o+=(o?" && ":"")+n(s,t,r,!0);return o},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++){var i=t[n];(o[i]||"array"===e&&"array"===i)&&(r[r.length]=i)}if(r.length)return r}else{if(o[t])return[t];if("array"===e&&"array"===t)return["array"]}},toHash:i,getProperty:c,escapeQuotes:u,equal:r(6471),ucs2length:r(7959),varOccurences:function(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0},varReplace:function(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")},schemaHasRules:function(e,t){if("boolean"==typeof e)return!e;for(var r in e)if(t[r])return!0},schemaHasRulesExcept:function(e,t,r){if("boolean"==typeof e)return!e&&"not"!=r;for(var n in e)if(n!=r&&t[n])return!0},schemaUnknownRules:function(e,t){if("boolean"==typeof e)return;for(var r in e)if(!t[r])return r},toQuotedString:l,getPathExpr:function(e,t,r,n){return p(e,r?"'/' + "+t+(n?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):n?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'")},getPath:function(e,t,r){var n=l(r?"/"+d(t):c(t));return p(e,n)},getData:function(e,t,r){var n,o,i,a;if(""===e)return"rootData";if("/"==e[0]){if(!f.test(e))throw new Error("Invalid JSON-pointer: "+e);o=e,i="rootData"}else{if(!(a=e.match(h)))throw new Error("Invalid JSON-pointer: "+e);if(n=+a[1],"#"==(o=a[2])){if(n>=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(i="data"+(t-n||""),!o)return i}for(var s=i,u=o.split("/"),l=0;l<u.length;l++){var p=u[l];p&&(i+=c(m(p)),s+=" && "+i)}return s},unescapeFragment:function(e){return m(decodeURIComponent(e))},unescapeJsonPointer:m,escapeFragment:function(e){return encodeURIComponent(d(e))},escapeJsonPointer:d};var o=i(["string","number","integer","boolean","null"]);function i(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return t}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function c(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+u(e)+"']"}function u(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function l(e){return"'"+u(e)+"'"}var f=/^\/(?:[^~]|~0|~1)*$/,h=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function p(e,t){return'""'==e?t:(e+" + "+t).replace(/([^\\])' \+ '/g,"$1")}function d(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function m(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},3244:e=>{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o,i=r[n].split("/"),a=e;for(o=1;o<i.length;o++)a=a[i[o]];for(o=0;o<t.length;o++){var s=t[o],c=a[s];c&&(a[s]={anyOf:[c,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}},6152:(e,t,r)=>{"use strict";var n=r(4222);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},1510:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s;var p="maximum"==t,d=p?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[d],g=e.opts.$data&&m&&m.$data,y=p?"<":">",v=p?">":"<",b=void 0;if(!h&&"number"!=typeof s&&void 0!==s)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(d+" must be number or boolean");if(g){var E=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+i,x="exclType"+i,S="exclIsNumber"+i,k="' + "+(C="op"+i)+" + '";o+=" var schemaExcl"+i+" = "+E+"; ",o+=" var "+w+"; var "+x+" = typeof "+(E="schemaExcl"+i)+"; if ("+x+" != 'boolean' && "+x+" != 'undefined' && "+x+" != 'number') { ";var A;b=d;(A=A||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",!1!==e.opts.messages&&(o+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var D=o;o=A.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+x+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+E+" "+y+"= "+n+") ? "+f+" "+v+"= "+E+" : "+f+" "+v+" "+n+" ) : ( ("+w+" = "+E+" === true) ? "+f+" "+v+"= "+n+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { var op"+i+" = "+w+" ? '"+y+"' : '"+y+"='; ",void 0===s&&(b=d,u=e.errSchemaPath+"/"+d,n=E,h=g)}else{k=y;if((S="number"==typeof m)&&h){var C="'"+k+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+f+" "+v+"= "+m+" : "+f+" "+v+" "+n+" ) || "+f+" !== "+f+") { "}else{S&&void 0===s?(w=!0,b=d,u=e.errSchemaPath+"/"+d,n=m,v+="="):(S&&(n=Math[p?"min":"max"](m,s)),m===(!S||n)?(w=!0,b=d,u=e.errSchemaPath+"/"+d,v+="="):(w=!1,k+="="));C="'"+k+"'";o+=" if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+" "+v+" "+n+" || "+f+" !== "+f+") { "}}b=b||t,(A=A||[]).push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+C+", limit: "+n+", exclusive: "+w+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be "+k+" ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";D=o;return o=A.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+D+"]); ":o+=" validate.errors = ["+D+"]; return false; ":o+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { "),o}},1978:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" "+f+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},6179:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");var p="maxLength"==t?">":"<";o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?o+=" "+f+".length ":o+=" ucs2length("+f+") ",o+=" "+p+" "+n+") { ";var d=t,m=m||[];m.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var g=o;return o=m.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+g+"]); ":o+=" validate.errors = ["+g+"]; return false; ":o+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},206:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),o+=" Object.keys("+f+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var p=t,d=d||[];d.push(o),o="",!1!==e.createErrors?(o+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"fewer",o+=" than ",o+=h?"' + "+n+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var m=o;return o=d.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+m+"]); ":o+=" validate.errors = ["+m+"]; return false; ":o+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},3137:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),a=e.errSchemaPath+"/"+t,s=!e.opts.allErrors,c=e.util.copy(e),u="";c.level++;var l="valid"+c.level,f=c.baseId,h=!0,p=o;if(p)for(var d,m=-1,g=p.length-1;m<g;)d=p[m+=1],(e.opts.strictKeywords?"object"==typeof d&&Object.keys(d).length>0||!1===d:e.util.schemaHasRules(d,e.RULES.all))&&(h=!1,c.schema=d,c.schemaPath=i+"["+m+"]",c.errSchemaPath=a+"/"+m,n+=" "+e.validate(c)+" ",c.baseId=f,s&&(n+=" if ("+l+") { ",u+="}"));return s&&(n+=h?" if (true) { ":" "+u.slice(0,-1)+" "),n}},3229:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=a.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=p.baseId;n+=" var "+h+" = errors; var "+f+" = false; ";var v=e.compositeRule;e.compositeRule=p.compositeRule=!0;var b=a;if(b)for(var E,w=-1,x=b.length-1;w<x;)E=b[w+=1],p.schema=E,p.schemaPath=s+"["+w+"]",p.errSchemaPath=c+"/"+w,n+=" "+e.validate(p)+" ",p.baseId=y,n+=" "+f+" = "+f+" || "+m+"; if (!"+f+") { ",d+="}";e.compositeRule=p.compositeRule=v,n+=" "+d+" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else u&&(n+=" if (true) { ");return n}},3159:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.schema[t],i=e.errSchemaPath+"/"+t,a=(e.opts.allErrors,e.util.toQuotedString(o));return!0===e.opts.$comment?n+=" console.log("+a+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+a+", "+e.util.toQuotedString(i)+", validate.root.schema);"),n}},2267:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; "),h||(n+=" var schema"+o+" = validate.schema"+s+";"),n+="var "+f+" = equal("+l+", schema"+o+"); if (!"+f+") { ";var p=p||[];p.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValue: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var d=n;return n=p.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+d+"]); ":n+=" validate.errors = ["+d+"]; return false; ":n+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},9629:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m="i"+o,g=p.dataLevel=e.dataLevel+1,y="data"+g,v=e.baseId,b=e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+h+" = errors;var "+f+";",b){var E=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+d+" = false; for (var "+m+" = 0; "+m+" < "+l+".length; "+m+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var w=l+"["+m+"]";p.dataPathArr[g]=m;var x=e.validate(p);p.baseId=v,e.util.varOccurences(x,y)<2?n+=" "+e.util.varReplace(x,y,w)+" ":n+=" var "+y+" = "+w+"; "+x+" ",n+=" if ("+d+") break; } ",e.compositeRule=p.compositeRule=E,n+=" if (!"+d+") {"}else n+=" if ("+l+".length == 0) {";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;return n=S.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},5554:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,f=!e.opts.allErrors,h="data"+(s||""),p="valid"+a,d="errs__"+a,m=e.opts.$data&&c&&c.$data;m?(i+=" var schema"+a+" = "+e.util.getData(c.$data,s,e.dataPathArr)+"; ",o="schema"+a):o=c;var g,y,v,b,E,w=this,x="definition"+a,S=w.definition,k="";if(m&&S.$data){E="keywordValidate"+a;var A=S.validateSchema;i+=" var "+x+" = RULES.custom['"+t+"'].definition; var "+E+" = "+x+".validate;"}else{if(!(b=e.useCustomRule(w,c,e.schema,e)))return;o="validate.schema"+u,E=b.code,g=S.compile,y=S.inline,v=S.macro}var D=E+".errors",C="i"+a,F="ruleErr"+a,P=S.async;if(P&&!e.async)throw new Error("async keyword in sync schema");if(y||v||(i+=D+" = null;"),i+="var "+d+" = errors;var "+p+";",m&&S.$data&&(k+="}",i+=" if ("+o+" === undefined) { "+p+" = true; } else { ",A&&(k+="}",i+=" "+p+" = "+x+".validateSchema("+o+"); if ("+p+") { ")),y)S.statements?i+=" "+b.validate+" ":i+=" "+p+" = "+b.validate+"; ";else if(v){var O=e.util.copy(e);k="";O.level++;var T="valid"+O.level;O.schema=b.validate,O.schemaPath="";var j=e.compositeRule;e.compositeRule=O.compositeRule=!0;var I=e.validate(O).replace(/validate\.schema/g,E);e.compositeRule=O.compositeRule=j,i+=" "+I}else{(L=L||[]).push(i),i="",i+=" "+E+".call( ",e.opts.passContext?i+="this":i+="self",g||!1===S.schema?i+=" , "+h+" ":i+=" , "+o+" , "+h+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var _=s?"data"+(s-1||""):"parentData",R=s?e.dataPathArr[s]:"parentDataProperty",B=i+=" , "+_+" , "+R+" , rootData ) ";i=L.pop(),!1===S.errors?(i+=" "+p+" = ",P&&(i+="await "),i+=B+"; "):i+=P?" var "+(D="customErrors"+a)+" = null; try { "+p+" = await "+B+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+D+" = e.errors; else throw e; } ":" "+D+" = null; "+p+" = "+B+"; "}if(S.modifying&&(i+=" if ("+_+") "+h+" = "+_+"["+R+"];"),i+=""+k,S.valid)f&&(i+=" if (true) { ");else{var L;i+=" if ( ",void 0===S.valid?(i+=" !",i+=v?""+T:""+p):i+=" "+!S.valid+" ",i+=") { ",n=w.keyword,(L=L||[]).push(i),i="",(L=L||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var N=i;i=L.pop(),!e.compositeRule&&f?e.async?i+=" throw new ValidationError(["+N+"]); ":i+=" validate.errors = ["+N+"]; return false; ":i+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=i;i=L.pop(),y?S.errors?"full"!=S.errors&&(i+=" for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } "):!1===S.errors?i+=" "+M+" ":(i+=" if ("+d+" == errors) { "+M+" } else { for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+F+".schemaPath === undefined) { "+F+'.schemaPath = "'+l+'"; } ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } "):v?(i+=" var err = ",!1!==e.createErrors?(i+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { keyword: '"+w.keyword+"' } ",!1!==e.opts.messages&&(i+=" , message: 'should pass \""+w.keyword+"\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&f&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):!1===S.errors?i+=" "+M+" ":(i+=" if (Array.isArray("+D+")) { if (vErrors === null) vErrors = "+D+"; else vErrors = vErrors.concat("+D+"); errors = vErrors.length; for (var "+C+"="+d+"; "+C+"<errors; "+C+"++) { var "+F+" = vErrors["+C+"]; if ("+F+".dataPath === undefined) "+F+".dataPath = (dataPath || '') + "+e.errorPath+"; "+F+'.schemaPath = "'+l+'"; ',e.opts.verbose&&(i+=" "+F+".schema = "+o+"; "+F+".data = "+h+"; "),i+=" } } else { "+M+" } "),i+=" } ",f&&(i+=" else { ")}return i}},1915:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m={},g={},y=e.opts.ownProperties;for(w in a)if("__proto__"!=w){var v=a[w],b=Array.isArray(v)?g:m;b[w]=v}n+="var "+f+" = errors;";var E=e.errorPath;for(var w in n+="var missing"+o+";",g)if((b=g[w]).length){if(n+=" if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),u){n+=" && ( ";var x=b;if(x)for(var S=-1,k=x.length-1;S<k;){O=x[S+=1],S&&(n+=" || "),n+=" ( ( "+(_=l+(I=e.util.getProperty(O)))+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?O:I)+") ) "}n+=")) { ";var A="missing"+o,D="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,A,!0):E+" + "+A);var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var F=n;n=C.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var P=b;if(P)for(var O,T=-1,j=P.length-1;T<j;){O=P[T+=1];var I=e.util.getProperty(O),_=(D=e.util.escapeQuotes(O),l+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,O,e.opts.jsonPointers)),n+=" if ( "+_+" === undefined ",y&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(O)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { property: '"+e.util.escapeQuotes(w)+"', missingProperty: '"+D+"', depsCount: "+b.length+", deps: '"+e.util.escapeQuotes(1==b.length?b[0]:b.join(", "))+"' } ",!1!==e.opts.messages&&(n+=" , message: 'should have ",1==b.length?n+="property "+e.util.escapeQuotes(b[0]):n+="properties "+e.util.escapeQuotes(b.join(", ")),n+=" when property "+e.util.escapeQuotes(w)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",u&&(p+="}",n+=" else { ")}e.errorPath=E;var R=h.baseId;for(var w in m){v=m[w];(e.opts.strictKeywords?"object"==typeof v&&Object.keys(v).length>0||!1===v:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+d+" = true; if ( "+l+e.util.getProperty(w)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(w)+"') "),n+=") { ",h.schema=v,h.schemaPath=s+e.util.getProperty(w),h.errSchemaPath=c+"/"+e.util.escapeFragment(w),n+=" "+e.validate(h)+" ",h.baseId=R,n+=" } ",u&&(n+=" if ("+d+") { ",p+="}"))}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="i"+o,d="schema"+o;h||(n+=" var "+d+" = validate.schema"+s+";"),n+="var "+f+";",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=f+" = false;for (var "+p+"=0; "+p+"<"+d+".length; "+p+"++) if (equal("+l+", "+d+"["+p+"])) { "+f+" = true; break; }",h&&(n+=" } "),n+=" if (!"+f+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+o+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",u&&(n+=" else { "),n}},22:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||"");if(!1===e.opts.format)return u&&(n+=" if (true) { "),n;var f,h=e.opts.$data&&a&&a.$data;h?(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ",f="schema"+o):f=a;var p=e.opts.unknownFormats,d=Array.isArray(p);if(h){n+=" var "+(m="format"+o)+" = formats["+f+"]; var "+(g="isObject"+o)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+o)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+o+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (","ignore"!=p&&(n+=" ("+f+" && !"+m+" ",d&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+o+" ? await "+m+"("+l+") : "+m+"("+l+")) ":n+=" "+m+"("+l+") ",n+=" : "+m+".test("+l+"))))) {"}else{var m;if(!(m=e.formats[a])){if("ignore"==p)return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(n+=" if (true) { "),n;if(d&&p.indexOf(a)>=0)return u&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var v=!0===m.async;m=m.validate}if(y!=r)return u&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(a)+".validate")+"("+l+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(a);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+l+") ":" "+b+".test("+l+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ",n+=h?""+f:""+e.util.toQuotedString(a),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=h?"' + "+f+" + '":""+e.util.escapeQuotes(a),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=h?"validate.schema"+s:""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var w=n;return n=E.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u&&(n+=" else { "),n}},220:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e);p.level++;var d="valid"+p.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),v=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=p.baseId;if(y||v){var E;p.createErrors=!1,p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" var "+h+" = errors; var "+f+" = true; ";var w=e.compositeRule;e.compositeRule=p.compositeRule=!0,n+=" "+e.validate(p)+" ",p.baseId=b,p.createErrors=!0,n+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=w,y?(n+=" if ("+d+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'then'; ":E="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+d+") { ",v&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(p)+" ",p.baseId=b,n+=" "+f+" = "+d+"; ",y&&v?n+=" var "+(E="ifClause"+o)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",u&&(n+=" else { ")}else u&&(n+=" if (true) { ");return n}},9784:(e,t,r)=>{"use strict";e.exports={$ref:r(1618),allOf:r(3137),anyOf:r(3229),$comment:r(3159),const:r(2267),contains:r(9629),dependencies:r(1915),enum:r(734),format:r(22),if:r(220),items:r(4787),maximum:r(1510),minimum:r(1510),maxItems:r(1978),minItems:r(1978),maxLength:r(6179),minLength:r(6179),maxProperties:r(206),minProperties:r(206),multipleOf:r(7086),not:r(4734),oneOf:r(3942),pattern:r(8741),properties:r(1221),propertyNames:r(1874),required:r(6262),uniqueItems:r(7392),validate:r(805)}},4787:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g="i"+o,y=p.dataLevel=e.dataLevel+1,v="data"+y,b=e.baseId;if(n+="var "+h+" = errors;var "+f+";",Array.isArray(a)){var E=e.schema.additionalItems;if(!1===E){n+=" "+f+" = "+l+".length <= "+a.length+"; ";var w=c;c=e.errSchemaPath+"/additionalItems",n+=" if (!"+f+") { ";var x=x||[];x.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+a.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var S=n;n=x.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c=w,u&&(d+="}",n+=" else { ")}var k=a;if(k)for(var A,D=-1,C=k.length-1;D<C;)if(A=k[D+=1],e.opts.strictKeywords?"object"==typeof A&&Object.keys(A).length>0||!1===A:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+m+" = true; if ("+l+".length > "+D+") { ";var F=l+"["+D+"]";p.schema=A,p.schemaPath=s+"["+D+"]",p.errSchemaPath=c+"/"+D,p.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),p.dataPathArr[y]=D;var P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",n+=" } ",u&&(n+=" if ("+m+") { ",d+="}")}if("object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))){p.schema=E,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+l+".length > "+a.length+") { for (var "+g+" = "+a.length+"; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" } } ",u&&(n+=" if ("+m+") { ",d+="}")}}else if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){p.schema=a,p.schemaPath=s,p.errSchemaPath=c,n+=" for (var "+g+" = 0; "+g+" < "+l+".length; "+g+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);F=l+"["+g+"]";p.dataPathArr[y]=g;P=e.validate(p);p.baseId=b,e.util.varOccurences(P,v)<2?n+=" "+e.util.varReplace(P,v,F)+" ":n+=" var "+v+" = "+F+"; "+P+" ",u&&(n+=" if (!"+m+") break; "),n+=" }"}return u&&(n+=" "+d+" if ("+h+" == errors) {"),n}},7086:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;if(h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,!h&&"number"!=typeof s)throw new Error(t+" must be number");o+="var division"+i+";if (",h&&(o+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),o+=" (division"+i+" = "+f+" / "+n+", ",e.opts.multipleOfPrecision?o+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":o+=" division"+i+" !== parseInt(division"+i+") ",o+=" ) ",h&&(o+=" ) "),o+=" ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(o+=" , message: 'should be multiple of ",o+=h?"' + "+n:n+"'"),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},4734:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c,n+=" var "+f+" = errors; ";var d,m=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(d=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+e.validate(h)+" ",h.createErrors=!0,d&&(h.opts.allErrors=d),e.compositeRule=h.compositeRule=m,n+=" if ("+p+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ");return n}},3942:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h="errs__"+o,p=e.util.copy(e),d="";p.level++;var m="valid"+p.level,g=p.baseId,y="prevValid"+o,v="passingSchemas"+o;n+="var "+h+" = errors , "+y+" = false , "+f+" = false , "+v+" = null; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var E=a;if(E)for(var w,x=-1,S=E.length-1;x<S;)w=E[x+=1],(e.opts.strictKeywords?"object"==typeof w&&Object.keys(w).length>0||!1===w:e.util.schemaHasRules(w,e.RULES.all))?(p.schema=w,p.schemaPath=s+"["+x+"]",p.errSchemaPath=c+"/"+x,n+=" "+e.validate(p)+" ",p.baseId=g):n+=" var "+m+" = true; ",x&&(n+=" if ("+m+" && "+y+") { "+f+" = false; "+v+" = ["+v+", "+x+"]; } else { ",d+="}"),n+=" if ("+m+") { "+f+" = "+y+" = true; "+v+" = "+x+"; }";return e.compositeRule=p.compositeRule=b,n+=d+"if (!"+f+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+v+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},8741:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h=e.opts.$data&&s&&s.$data;h?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,o+="if ( ",h&&(o+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),o+=" !"+(h?"(new RegExp("+n+"))":e.usePattern(s))+".test("+f+") ) { ";var p=p||[];p.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",o+=h?""+n:""+e.util.toQuotedString(s),o+=" } ",!1!==e.opts.messages&&(o+=" , message: 'should match pattern \"",o+=h?"' + "+n+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=h?"validate.schema"+c:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var d=o;return o=p.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+d+"]); ":o+=" validate.errors = ["+d+"]; return false; ":o+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",l&&(o+=" else { "),o}},1221:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e),p="";h.level++;var d="valid"+h.level,m="key"+o,g="idx"+o,y=h.dataLevel=e.dataLevel+1,v="data"+y,b="dataProperties"+o,E=Object.keys(a||{}).filter(I),w=e.schema.patternProperties||{},x=Object.keys(w).filter(I),S=e.schema.additionalProperties,k=E.length||x.length,A=!1===S,D="object"==typeof S&&Object.keys(S).length,C=e.opts.removeAdditional,F=A||D||C,P=e.opts.ownProperties,O=e.baseId,T=e.schema.required;if(T&&(!e.opts.$data||!T.$data)&&T.length<e.opts.loopRequired)var j=e.util.toHash(T);function I(e){return"__proto__"!==e}if(n+="var "+f+" = errors;var "+d+" = true;",P&&(n+=" var "+b+" = undefined;"),F){if(n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",k){if(n+=" var isAdditional"+o+" = !(false ",E.length)if(E.length>8)n+=" || validate.schema"+s+".hasOwnProperty("+m+") ";else{var _=E;if(_)for(var R=-1,B=_.length-1;R<B;)K=_[R+=1],n+=" || "+m+" == "+e.util.toQuotedString(K)+" "}if(x.length){var L=x;if(L)for(var N=-1,M=L.length-1;N<M;)ie=L[N+=1],n+=" || "+e.usePattern(ie)+".test("+m+") "}n+=" ); if (isAdditional"+o+") { "}if("all"==C)n+=" delete "+l+"["+m+"]; ";else{var H=e.errorPath,z="' + "+m+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers)),A)if(C)n+=" delete "+l+"["+m+"]; ";else{n+=" "+d+" = false; ";var U=c;c=e.errSchemaPath+"/additionalProperties",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { additionalProperty: '"+z+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var $=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,u&&(n+=" break; ")}else if(D)if("failing"==C){n+=" var "+f+" = errors; ";var q=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var V=l+"["+m+"]";h.dataPathArr[y]=m;var G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",n+=" if (!"+d+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+l+"["+m+"]; } ",e.compositeRule=h.compositeRule=q}else{h.schema=S,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; ")}e.errorPath=H}k&&(n+=" } "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}var W=e.opts.useDefaults&&!e.compositeRule;if(E.length){var Q=E;if(Q)for(var K,Z=-1,Y=Q.length-1;Z<Y;){var X=a[K=Q[Z+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){var J=e.util.getProperty(K),ee=(V=l+J,W&&void 0!==X.default);h.schema=X,h.schemaPath=s+J,h.errSchemaPath=c+"/"+e.util.escapeFragment(K),h.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),h.dataPathArr[y]=e.util.toQuotedString(K);G=e.validate(h);if(h.baseId=O,e.util.varOccurences(G,v)<2){G=e.util.varReplace(G,v,V);var te=V}else{te=v;n+=" var "+v+" = "+V+"; "}if(ee)n+=" "+G+" ";else{if(j&&j[K]){n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = false; ";H=e.errorPath,U=c;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,K,e.opts.jsonPointers)),c=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";$=n;n=re.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c=U,e.errorPath=H,n+=" } else { "}else u?(n+=" if ( "+te+" === undefined ",P&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+d+" = true; } else { "):(n+=" if ("+te+" !== undefined ",P&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+G+" } "}}u&&(n+=" if ("+d+") { ",p+="}")}}if(x.length){var oe=x;if(oe)for(var ie,ae=-1,se=oe.length-1;ae<se;){X=w[ie=oe[ae+=1]];if(e.opts.strictKeywords?"object"==typeof X&&Object.keys(X).length>0||!1===X:e.util.schemaHasRules(X,e.RULES.all)){h.schema=X,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ie),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ie),n+=P?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+l+") { ",n+=" if ("+e.usePattern(ie)+".test("+m+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);V=l+"["+m+"]";h.dataPathArr[y]=m;G=e.validate(h);h.baseId=O,e.util.varOccurences(G,v)<2?n+=" "+e.util.varReplace(G,v,V)+" ":n+=" var "+v+" = "+V+"; "+G+" ",u&&(n+=" if (!"+d+") break; "),n+=" } ",u&&(n+=" else "+d+" = true; "),n+=" } ",u&&(n+=" if ("+d+") { ",p+="}")}}}return u&&(n+=" "+p+" if ("+f+" == errors) {"),n}},1874:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="errs__"+o,h=e.util.copy(e);h.level++;var p="valid"+h.level;if(n+="var "+f+" = errors;",e.opts.strictKeywords?"object"==typeof a&&Object.keys(a).length>0||!1===a:e.util.schemaHasRules(a,e.RULES.all)){h.schema=a,h.schemaPath=s,h.errSchemaPath=c;var d="key"+o,m="idx"+o,g="i"+o,y="' + "+d+" + '",v="data"+(h.dataLevel=e.dataLevel+1),b="dataProperties"+o,E=e.opts.ownProperties,w=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+l+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+d+" = "+b+"["+m+"]; ":" for (var "+d+" in "+l+") { ",n+=" var startErrs"+o+" = errors; ";var x=d,S=e.compositeRule;e.compositeRule=h.compositeRule=!0;var k=e.validate(h);h.baseId=w,e.util.varOccurences(k,v)<2?n+=" "+e.util.varReplace(k,v,x)+" ":n+=" var "+v+" = "+x+"; "+k+" ",e.compositeRule=h.compositeRule=S,n+=" if (!"+p+") { for (var "+g+"=startErrs"+o+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+d+"; } var err = ",!1!==e.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { propertyName: '"+y+"' } ",!1!==e.opts.messages&&(n+=" , message: 'property name \\'"+y+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),u&&(n+=" break; "),n+=" } }"}return u&&(n+=" if ("+f+" == errors) {"),n}},1618:e=>{"use strict";e.exports=function(e,t,r){var n,o,i=" ",a=e.level,s=e.dataLevel,c=e.schema[t],u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(s||""),h="valid"+a;if("#"==c||"#/"==c)e.isRoot?(n=e.async,o="validate"):(n=!0===e.root.schema.$async,o="root.refVal[0]");else{var p=e.resolveRef(e.baseId,c,e.isRoot);if(void 0===p){var d=e.MissingRefError.message(e.baseId,c);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",!1!==e.opts.messages&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var m=i;i=v.pop(),!e.compositeRule&&l?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(i+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,c,d);e.logger.warn(d),l&&(i+=" if (true) { ")}}else if(p.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=p.schema,g.schemaPath="",g.errSchemaPath=c,i+=" "+e.validate(g).replace(/validate\.schema/g,p.code)+" ",l&&(i+=" if ("+y+") { ")}else n=!0===p.$async||e.async&&!1!==p.$async,o=p.code}if(o){var v;(v=v||[]).push(i),i="",e.opts.passContext?i+=" "+o+".call(this, ":i+=" "+o+"( ",i+=" "+f+", (dataPath || '')",'""'!=e.errorPath&&(i+=" + "+e.errorPath);var b=i+=" , "+(s?"data"+(s-1||""):"parentData")+" , "+(s?e.dataPathArr[s]:"parentDataProperty")+", rootData) ";if(i=v.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(i+=" var "+h+"; "),i+=" try { await "+b+"; ",l&&(i+=" "+h+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(i+=" "+h+" = false; "),i+=" } ",l&&(i+=" if ("+h+") { ")}else i+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",l&&(i+=" else { ")}return i}},6262:e=>{"use strict";e.exports=function(e,t,r){var n=" ",o=e.level,i=e.dataLevel,a=e.schema[t],s=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,l="data"+(i||""),f="valid"+o,h=e.opts.$data&&a&&a.$data;h&&(n+=" var schema"+o+" = "+e.util.getData(a.$data,i,e.dataPathArr)+"; ");var p="schema"+o;if(!h)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var d=[],m=a;if(m)for(var g,y=-1,v=m.length-1;y<v;){g=m[y+=1];var b=e.schema.properties[g];b&&(e.opts.strictKeywords?"object"==typeof b&&Object.keys(b).length>0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(d[d.length]=g)}}else d=a;if(h||d.length){var E=e.errorPath,w=h||d.length>=e.opts.loopRequired,x=e.opts.ownProperties;if(u)if(n+=" var missing"+o+"; ",w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),n+=" var "+f+" = true; ",h&&(n+=" if (schema"+o+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+o+")) "+f+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { "+f+" = "+l+"["+p+"["+D+"]] !== undefined ",x&&(n+=" && Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+="; if (!"+f+") break; } ",h&&(n+=" } "),n+=" if (!"+f+") { ",(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";var k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A=d;if(A)for(var D=-1,C=A.length-1;D<C;){T=A[D+=1],D&&(n+=" || "),n+=" ( ( "+(R=l+(_=e.util.getProperty(T)))+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:_)+") ) "}n+=") { ";var F;S="' + "+(P="missing"+o)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(E,P,!0):E+" + "+P),(F=F||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ";k=n;n=F.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+k+"]); ":n+=" validate.errors = ["+k+"]; return false; ":n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){h||(n+=" var "+p+" = validate.schema"+s+"; ");var P;S="' + "+(P="schema"+o+"["+(D="i"+o)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,P,e.opts.jsonPointers)),h&&(n+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),n+=" for (var "+D+" = 0; "+D+" < "+p+".length; "+D+"++) { if ("+l+"["+p+"["+D+"]] === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", "+p+"["+D+"]) "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+=" } ")}else{var O=d;if(O)for(var T,j=-1,I=O.length-1;j<I;){T=O[j+=1];var _=e.util.getProperty(T),R=(S=e.util.escapeQuotes(T),l+_);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(E,T,e.opts.jsonPointers)),n+=" if ( "+R+" === undefined ",x&&(n+=" || ! Object.prototype.hasOwnProperty.call("+l+", '"+e.util.escapeQuotes(T)+"') "),n+=") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+S+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+S+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=E}else u&&(n+=" if (true) {");return n}},7392:e=>{"use strict";e.exports=function(e,t,r){var n,o=" ",i=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,l=!e.opts.allErrors,f="data"+(a||""),h="valid"+i,p=e.opts.$data&&s&&s.$data;if(p?(o+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",n="schema"+i):n=s,(s||p)&&!1!==e.opts.uniqueItems){p&&(o+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),o+=" var i = "+f+".length , "+h+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,m=Array.isArray(d);if(!d||"object"==d||"array"==d||m&&(d.indexOf("object")>=0||d.indexOf("array")>=0))o+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+f+"[i], "+f+"[j])) { "+h+" = false; break outer; } } } ";else{o+=" var itemIndices = {}, item; for (;i--;) { var item = "+f+"[i]; ";var g="checkDataType"+(m?"s":"");o+=" if ("+e.util[g](d,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(o+=" if (typeof item == 'string') item = '\"' + item; "),o+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}o+=" } ",p&&(o+=" } "),o+=" if (!"+h+") { ";var y=y||[];y.push(o),o="",!1!==e.createErrors?(o+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=p?"validate.schema"+c:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),o+=" } "):o+=" {} ";var v=o;o=y.pop(),!e.compositeRule&&l?e.async?o+=" throw new ValidationError(["+v+"]); ":o+=" validate.errors = ["+v+"]; return false; ":o+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",l&&(o+=" else { ")}else l&&(o+=" if (true) { ");return o}},805:e=>{"use strict";e.exports=function(e,t,r){var n="",o=!0===e.schema.$async,i=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(n+=" var validate = ",o&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!i&&!e.schema.$ref){t="false schema";var u=e.level,l=e.dataLevel,f=e.schema[t],h=e.schemaPath+e.util.getProperty(t),p=e.errSchemaPath+"/"+t,d=!e.opts.allErrors,m="data"+(l||""),g="valid"+u;if(!1===e.schema){e.isTop?d=!0:n+=" var "+g+" = false; ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=o?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var v=e.isTop;u=e.level=0,l=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{u=e.level,m="data"+((l=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),o&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+u+" = errors;"}g="valid"+u,d=!e.opts.allErrors;var E="",w="",x=e.schema.type,S=Array.isArray(x);if(x&&e.opts.nullable&&!0===e.schema.nullable&&(S?-1==x.indexOf("null")&&(x=x.concat("null")):"null"!=x&&(x=[x,"null"],S=!0)),S&&1==x.length&&(x=x[0],S=!1),e.schema.$ref&&i){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(i=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),x){if(e.opts.coerceTypes)var k=e.util.coerceToTypes(e.opts.coerceTypes,x);var A=e.RULES.types[x];if(k||S||!0===A||A&&!Y(A)){h=e.schemaPath+".type",p=e.errSchemaPath+"/type",h=e.schemaPath+".type",p=e.errSchemaPath+"/type";var D=S?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[D](x,m,e.opts.strictNumbers,!0)+") { ",k){var C="dataType"+u,F="coerced"+u;n+=" var "+C+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+C+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var P=k;if(P)for(var O,T=-1,j=P.length-1;T<j;)"string"==(O=P[T+=1])?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==O||"integer"==O?(n+=" else if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==O&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==O?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==O?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==O&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var I=l?"data"+(l-1||""):"parentData";n+=" "+m+" = "+F+"; ",l||(n+="if ("+I+" !== undefined)"),n+=" "+I+"["+(l?e.dataPathArr[l]:"parentDataProperty")+"] = "+F+"; } "}else{(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!i)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",d&&(n+=" } if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}");else{var _=e.RULES;if(_)for(var R=-1,B=_.length-1;R<B;)if(Y(A=_[R+=1])){if(A.type&&(n+=" if ("+e.util.checkDataType(A.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==A.type&&e.schema.properties){f=e.schema.properties;var L=Object.keys(f);if(L)for(var N,M=-1,H=L.length-1;M<H;){if(void 0!==($=f[N=L[M+=1]]).default){var z=m+e.util.getProperty(N);if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}else if("array"==A.type&&Array.isArray(e.schema.items)){var U=e.schema.items;if(U){T=-1;for(var $,q=U.length-1;T<q;)if(void 0!==($=U[T+=1]).default){z=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){b="default is ignored for: "+z;if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}}else n+=" if ("+z+" === undefined ","empty"==e.opts.useDefaults&&(n+=" || "+z+" === null || "+z+" === '' "),n+=" ) "+z+" = ","shared"==e.opts.useDefaults?n+=" "+e.useDefault($.default)+" ":n+=" "+JSON.stringify($.default)+" ",n+="; "}}}var V=A.rules;if(V)for(var G,W=-1,Q=V.length-1;W<Q;)if(X(G=V[W+=1])){var K=G.code(e,G.keyword,A.type);K&&(n+=" "+K+" ",d&&(E+="}"))}if(d&&(n+=" "+E+" ",E=""),A.type&&(n+=" } ",x&&x===A.type&&!k)){n+=" else { ";var Z;h=e.schemaPath+".type",p=e.errSchemaPath+"/type";(Z=Z||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",n+=S?""+x.join(","):""+x,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=S?""+x.join(","):""+x,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";y=n;n=Z.pop(),!e.compositeRule&&d?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}d&&(n+=" if (errors === ",n+=v?"0":"errs_"+u,n+=") { ",w+="}")}}function Y(e){for(var t=e.rules,r=0;r<t.length;r++)if(X(t[r]))return!0}function X(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var r=t.implements,n=0;n<r.length;n++)if(void 0!==e.schema[r[n]])return!0}(t)}return d&&(n+=" "+w+" "),v?(o?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+g+" = errors === errs_"+u+";",n}},7587:(e,t,r)=>{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,o=r(5554),i=r(6152);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var i=t.type;if(Array.isArray(i))for(var a=0;a<i.length;a++)c(e,i[a],t);else c(e,i,t);var s=t.metaSchema;s&&(t.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),t.validateSchema=this.compile(s,!0))}function c(e,t,n){for(var i,a=0;a<r.length;a++){var s=r[a];if(s.type==t){i=s;break}}i||(i={type:t,rules:[]},r.push(i));var c={keyword:e,definition:n,custom:!0,code:o,implements:n.implements};i.rules.push(c),r.custom[e]=c}return r.keywords[e]=r.all[e]=!0,this},get:function(e){var t=this.RULES.custom[e];return t?t.definition:this.RULES.keywords[e]||!1},remove:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e],delete t.custom[e];for(var r=0;r<t.length;r++)for(var n=t[r].rules,o=0;o<n.length;o++)if(n[o].keyword==e){n.splice(o,1);break}return this},validate:function e(t,r){e.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(i,!0);if(n(t))return!0;if(e.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}}},9619:(e,t,r)=>{"use strict";var n=r(7061);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i,a,s=r(1404).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,h=s.ERR_MISSING_ARGS,p=r(7366),d=r(1323).inspect,m=r(1323).types,g=m.isPromise,y=m.isRegExp,v=Object.assign?Object.assign:r(2098).assign,b=Object.is?Object.is:r(3822);new Map;function E(){var e=r(118);i=e.isDeepEqual,a=e.isDeepStrictEqual}var w=!1,x=e.exports=D,S={};function k(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function A(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new p({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[D,t.length].concat(t))}x.fail=function e(t,r,o,i,a){var s,c=arguments.length;if(0===c)s="Failed";else if(1===c)o=t,t=void 0;else{if(!1===w){w=!0;var u=n.emitWarning?n.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===c&&(i="!=")}if(o instanceof Error)throw o;var l={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:a||e};void 0!==o&&(l.message=o);var f=new p(l);throw s&&(f.message=s,f.generatedMessage=!0),f},x.AssertionError=p,x.ok=D,x.equal=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),i(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&E();a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new h("actual","expected");b(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&y(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])}))};function F(e,t,r,n,o,i){if(!(r in e)||!a(e[r],t[r])){if(!n){var s=new C(e,o),c=new C(t,o,e),u=new p({actual:s,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=e,u.expected=t,u.operator=i.name,u}k({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}function P(e,t,r,n){if("function"!=typeof t){if(y(t))return t.test(e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==o(e)||null===e){var a=new p({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new l("error",t,"may not be an empty object");return void 0===i&&E(),s.forEach((function(o){"string"==typeof e[o]&&y(t[o])&&t[o].test(e[o])||F(e,t,o,r,s,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return S}function T(e){return g(e)||null!==e&&"object"===o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function j(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!T(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function I(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===o(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==o(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(t===S){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!P(t,r,n,e))throw t}function _(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||P(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function R(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];A.apply(void 0,[R,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];I.apply(void 0,[e,O(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return I.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];_.apply(void 0,[e,O(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j(t).then((function(t){return _.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===o(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=d(t);var n=new p({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=n.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},x.strict=v(R,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},7366:(e,t,r)=>{"use strict";var n=r(7061);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},c(e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e,t,r){return l=u()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&f(o,r.prototype),o},l.apply(null,arguments)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}var d=r(1323).inspect,m=r(1404).codes.ERR_INVALID_ARG_TYPE;function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var y="",v="",b="",E="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,r){var o="",i="",a=0,s="",c=!1,u=S(e),l=u.split("\n"),f=S(t).split("\n"),h=0,d="";if("strictEqual"===r&&"object"===p(e)&&"object"===p(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var m=l[0].length+f[0].length;if(m<=10){if(!("object"===p(e)&&null!==e||"object"===p(t)&&null!==t||0===e&&0===t))return"".concat(w[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r){if(m<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][h]===f[0][h];)h++;h>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}}for(var x=l[l.length-1],k=f[f.length-1];x===k&&(h++<2?s="\n ".concat(x).concat(s):o=x,l.pop(),f.pop(),0!==l.length&&0!==f.length);)x=l[l.length-1],k=f[f.length-1];var A=Math.max(l.length,f.length);if(0===A){var D=u.split("\n");if(D.length>30)for(D[26]="".concat(y,"...").concat(E);D.length>27;)D.pop();return"".concat(w.notIdentical,"\n\n").concat(D.join("\n"),"\n")}h>3&&(s="\n".concat(y,"...").concat(E).concat(s),c=!0),""!==o&&(s="\n ".concat(o).concat(s),o="");var C=0,F=w[r]+"\n".concat(v,"+ actual").concat(E," ").concat(b,"- expected").concat(E),P=" ".concat(y,"...").concat(E," Lines skipped");for(h=0;h<A;h++){var O=h-a;if(l.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(f[h-2]),C++),i+="\n ".concat(f[h-1]),C++),a=h,o+="\n".concat(b,"-").concat(E," ").concat(f[h]),C++;else if(f.length<h+1)O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(l[h]),C++;else{var T=f[h],j=l[h],I=j!==T&&(!g(j,",")||j.slice(0,-1)!==T);I&&g(T,",")&&T.slice(0,-1)===j&&(I=!1,j+=","),I?(O>1&&h>2&&(O>4?(i+="\n".concat(y,"...").concat(E),c=!0):O>3&&(i+="\n ".concat(l[h-2]),C++),i+="\n ".concat(l[h-1]),C++),a=h,i+="\n".concat(v,"+").concat(E," ").concat(j),o+="\n".concat(b,"-").concat(E," ").concat(T),C+=2):(i+=o,o="",1!==O&&0!==h||(i+="\n ".concat(j),C++))}if(C>20&&h<A-2)return"".concat(F).concat(P,"\n").concat(i,"\n").concat(y,"...").concat(E).concat(o,"\n")+"".concat(y,"...").concat(E)}return"".concat(F).concat(c?P:"","\n").concat(i).concat(o).concat(s).concat(d)}var A=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==p(e)||null===e)throw new m("options","Object",e);var o=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,l=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=o)r=a(this,h(t).call(this,String(o)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(y="",v="",E="",b=""):(y="",v="",E="",b="")),"object"===p(u)&&null!==u&&"object"===p(l)&&null!==l&&"stack"in u&&u instanceof Error&&"stack"in l&&l instanceof Error&&(u=x(u),l=x(l)),"deepStrictEqual"===i||"strictEqual"===i)r=a(this,h(t).call(this,k(u,l,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=w[i],g=S(u).split("\n");if("notStrictEqual"===i&&"object"===p(u)&&null!==u&&(d=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(y,"...").concat(E);g.length>27;)g.pop();r=1===g.length?a(this,h(t).call(this,"".concat(d," ").concat(g[0]))):a(this,h(t).call(this,"".concat(d,"\n\n").concat(g.join("\n"),"\n")))}else{var A=S(u),D="",C=w[i];"notDeepEqual"===i||"notEqual"===i?(A="".concat(w[i],"\n\n").concat(A)).length>1024&&(A="".concat(A.slice(0,1021),"...")):(D="".concat(S(l)),A.length>512&&(A="".concat(A.slice(0,509),"...")),D.length>512&&(D="".concat(D.slice(0,509),"...")),"deepEqual"===i||"equal"===i?A="".concat(C,"\n\n").concat(A,"\n\nshould equal\n\n"):D=" ".concat(i," ").concat(D)),r=a(this,h(t).call(this,"".concat(A).concat(D)))}return Error.stackTraceLimit=f,r.generatedMessage=!o,Object.defineProperty(s(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=l,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(r),c),r.stack,r.name="AssertionError",a(r)}var r,c,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],c&&i(r.prototype,c),u&&i(r,u),t}(c(Error));e.exports=A},1404:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,c,u={};function l(e,t,r){r||(r=Error);var n=function(r){function n(r,a,s){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),c=o(this,i(n).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,s))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,r),n}(r);u[e]=n}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,u;if(void 0===s&&(s=r(9619)),s("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))u="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";u='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return u+=". Received type ".concat(n(o))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=r(1323));var o=c.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===s&&(s=r(9619)),s(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=u},118:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},c=Object.is?Object.is:r(3822),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4866);function f(e){return e.call.bind(e)}var h=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),d=f(Object.prototype.toString),m=r(1323).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,v=m.isDate,b=m.isMap,E=m.isRegExp,w=m.isSet,x=m.isNativeError,S=m.isBoxedPrimitive,k=m.isNumberObject,A=m.isStringObject,D=m.isBooleanObject,C=m.isBigIntObject,F=m.isSymbolObject,P=m.isFloat32Array,O=m.isFloat64Array;function T(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function j(e){return Object.keys(e).filter(T).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
19
19
  /*!
20
20
  * The buffer module from node.js, for the browser.
21
21
  *