@factorialco/fcode-react-forms 1.0.0 → 2.0.0
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/data/index.d.ts +0 -3
- package/dist/fcode-form.cjs.js +54 -54
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +2473 -2466
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +67 -67
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/hooks/use-form-specs.d.ts +1 -1
- package/dist/hooks/use-submit-form.d.ts +1 -1
- package/dist/services/fcode.d.ts +2 -2
- package/dist/types.d.ts +13 -1
- package/package.json +1 -1
- package/dist/data/embed-form-options-with-i18n.d.ts +0 -3
- package/dist/data/fcode-form-specs-with-i18n.d.ts +0 -3
- package/dist/data/schema-with-i18n.d.ts +0 -3
package/dist/fcode-form.umd.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n1(e,t){return e1(e)||t1(e,t)||a1(e,t)||r1()}function a1(e,t){if(e){if(typeof e=="string")return Tp(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tp(e,t):void 0}}const Pp=Object.entries,Ip=Object.setPrototypeOf,i1=Object.isFrozen,s1=Object.getPrototypeOf,o1=Object.getOwnPropertyDescriptor;let Zt=Object.freeze,Qt=Object.seal,li=Object.create,Np=typeof Reflect<"u"&&Reflect,Tc=Np.apply,Pc=Np.construct;Zt||(Zt=function(t){return t}),Qt||(Qt=function(t){return t}),Tc||(Tc=function(t,r){for(var a=arguments.length,i=new Array(a>2?a-2:0),n=2;n<a;n++)i[n-2]=arguments[n];return t.apply(r,i)}),Pc||(Pc=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return new t(...a)});const ci=Rt(Array.prototype.forEach),l1=Rt(Array.prototype.lastIndexOf),Dp=Rt(Array.prototype.pop),ui=Rt(Array.prototype.push),c1=Rt(Array.prototype.splice),Jn=Array.isArray,ts=Rt(String.prototype.toLowerCase),Ic=Rt(String.prototype.toString),Fp=Rt(String.prototype.match),rs=Rt(String.prototype.replace),Mp=Rt(String.prototype.indexOf),u1=Rt(String.prototype.trim),f1=Rt(Number.prototype.toString),d1=Rt(Boolean.prototype.toString),jp=typeof BigInt>"u"?null:Rt(BigInt.prototype.toString),Lp=typeof Symbol>"u"?null:Rt(Symbol.prototype.toString),Wt=Rt(Object.prototype.hasOwnProperty),ns=Rt(Object.prototype.toString),Kt=Rt(RegExp.prototype.test),Ta=p1(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return Tc(e,t,a)}}function p1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Pc(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ts;if(Ip&&Ip(e,null),!Jn(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(i1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function m1(e){for(let t=0;t<e.length;t++)Wt(e,t)||(e[t]=null);return e}function or(e){const t=li(null);for(const a of Pp(e)){var r=n1(a,2);const i=r[0],n=r[1];Wt(e,i)&&(Jn(n)?t[i]=m1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=or(n):t[i]=n)}return t}function h1(e){switch(typeof e){case"string":return e;case"number":return f1(e);case"boolean":return d1(e);case"bigint":return jp?jp(e):"0";case"symbol":return Lp?Lp(e):"Symbol()";case"undefined":return ns(e);case"function":case"object":{if(e===null)return ns(e);const t=e,r=hn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:ns(a)}return ns(e)}default:return ns(e)}}function hn(e,t){for(;e!==null;){const a=o1(e,t);if(a){if(a.get)return Rt(a.get);if(typeof a.value=="function")return Rt(a.value)}e=s1(e)}function r(){return null}return r}function g1(e){try{return Kt(e,""),!0}catch{return!1}}const Rp=Zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nc=Zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dc=Zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),y1=Zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fc=Zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),v1=Zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qp=Zt(["#text"]),zp=Zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Mc=Zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$p=Zt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mo=Zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),b1=Qt(/{{[\w\W]*|^[\w\W]*}}/g),k1=Qt(/<%[\w\W]*|^[\w\W]*%>/g),w1=Qt(/\${[\w\W]*/g),S1=Qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),E1=Qt(/^aria-[\-\w]+$/),Up=Qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),C1=Qt(/^(?:\w+script|data):/i),A1=Qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_1=Qt(/^html$/i),O1=Qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Bp=Qt(/<[/\w!]/g),Vp=Qt(/<[/\w]/g),x1=Qt(/<\/no(script|embed|frames)/i),T1=Qt(/\/>/i),Or={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},P1=function(){return typeof window>"u"?null:window},I1=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(a=r.getAttribute(i));const n="dompurify"+(a?"#"+a:"");try{return t.createPolicy(n,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Hp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Yn=function(t,r,a,i){return Wt(t,r)&&Jn(t[r])?Ze(i.base?or(i.base):{},t[r],i.transform):a};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P1();const t=fe=>Wp(fe);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Or.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const a=r,i=a.currentScript;e.DocumentFragment;const n=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,p=o.prototype,d=hn(p,"cloneNode"),h=hn(p,"remove"),k=hn(p,"nextSibling"),v=hn(p,"childNodes"),y=hn(p,"parentNode"),b=hn(p,"shadowRoot"),w=hn(p,"attributes"),E=s&&s.prototype?hn(s.prototype,"nodeType"):null,m=s&&s.prototype?hn(s.prototype,"nodeName"):null;if(typeof n=="function"){const fe=r.createElement("template");fe.content&&fe.content.ownerDocument&&(r=fe.content.ownerDocument)}let g,S="",A,x=!1,O=0;const C=function(){if(O>0)throw Ta('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_=function(R){C(),O++;try{return g.createHTML(R)}finally{O--}},F=function(R){C(),O++;try{return g.createScriptURL(R)}finally{O--}},I=function(){return x||(A=I1(f,i),x=!0),A},j=r,$=j.implementation,Y=j.createNodeIterator,Z=j.createDocumentFragment,ie=j.getElementsByTagName,P=a.importNode;let M=Hp();t.isSupported=typeof Pp=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=b1,T=k1,N=w1,L=S1,B=E1,V=C1,K=A1,J=O1;let Q=Up,q=null;const z=Ze({},[...Rp,...Nc,...Dc,...Fc,...qp]);let W=null;const G=Ze({},[...zp,...Mc,...$p,...mo]);let te=Object.seal(li(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,pe=null;const ve=Object.seal(li(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,Se=!0,De=!1,he=!0,Le=!1,We=!0,ke=!1,ee=!1,re=null,ne=null,we=!1,me=!1,at=!1,Re=!1,Ge=!0,Ct=!1;const It="user-content-";let it=!0,wt=!1,st={},Gt=null;const Jr=Ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ot=null;const Pn=Ze({},["audio","video","img","source","image","track"]);let Aa=null;const Yr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xr="http://www.w3.org/1998/Math/MathML",Fr="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let Lt=jt,Sr=!1,In=null;const Hn=Ze({},[Xr,Fr,jt],Ic),Er=Zt(["mi","mo","mn","ms","mtext"]);let so=Ze({},Er);const kc=Zt(["annotation-xml"]);let Nn=Ze({},kc);const mr=Ze({},["title","style","font","a","script"]);let Zr=null;const wp=["application/xhtml+xml","text/html"],Sp="text/html";let xt=null,_a=null;const wc=r.createElement("form"),oo=function(R){return R instanceof RegExp||R instanceof Function},ai=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_a&&_a===R)return;(!R||typeof R!="object")&&(R={}),R=or(R),Zr=wp.indexOf(R.PARSER_MEDIA_TYPE)===-1?Sp:R.PARSER_MEDIA_TYPE,xt=Zr==="application/xhtml+xml"?Ic:ts,q=Yn(R,"ALLOWED_TAGS",z,{transform:xt}),W=Yn(R,"ALLOWED_ATTR",G,{transform:xt}),In=Yn(R,"ALLOWED_NAMESPACES",Hn,{transform:Ic}),Aa=Yn(R,"ADD_URI_SAFE_ATTR",Yr,{transform:xt,base:Yr}),Ot=Yn(R,"ADD_DATA_URI_TAGS",Pn,{transform:xt,base:Pn}),Gt=Yn(R,"FORBID_CONTENTS",Jr,{transform:xt}),ae=Yn(R,"FORBID_TAGS",or({}),{transform:xt}),pe=Yn(R,"FORBID_ATTR",or({}),{transform:xt}),st=Wt(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?or(R.USE_PROFILES):R.USE_PROFILES:!1,Ae=R.ALLOW_ARIA_ATTR!==!1,Se=R.ALLOW_DATA_ATTR!==!1,De=R.ALLOW_UNKNOWN_PROTOCOLS||!1,he=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=R.SAFE_FOR_TEMPLATES||!1,We=R.SAFE_FOR_XML!==!1,ke=R.WHOLE_DOCUMENT||!1,me=R.RETURN_DOM||!1,at=R.RETURN_DOM_FRAGMENT||!1,Re=R.RETURN_TRUSTED_TYPE||!1,we=R.FORCE_BODY||!1,Ge=R.SANITIZE_DOM!==!1,Ct=R.SANITIZE_NAMED_PROPS||!1,it=R.KEEP_CONTENT!==!1,wt=R.IN_PLACE||!1,Q=g1(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:Up,Lt=typeof R.NAMESPACE=="string"?R.NAMESPACE:jt,so=Wt(R,"MATHML_TEXT_INTEGRATION_POINTS")&&R.MATHML_TEXT_INTEGRATION_POINTS&&typeof R.MATHML_TEXT_INTEGRATION_POINTS=="object"?or(R.MATHML_TEXT_INTEGRATION_POINTS):Ze({},Er),Nn=Wt(R,"HTML_INTEGRATION_POINTS")&&R.HTML_INTEGRATION_POINTS&&typeof R.HTML_INTEGRATION_POINTS=="object"?or(R.HTML_INTEGRATION_POINTS):Ze({},kc);const X=Wt(R,"CUSTOM_ELEMENT_HANDLING")&&R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING=="object"?or(R.CUSTOM_ELEMENT_HANDLING):li(null);if(te=li(null),Wt(X,"tagNameCheck")&&oo(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Wt(X,"attributeNameCheck")&&oo(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Wt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Qt(te),Le&&(Se=!1),at&&(me=!0),st&&(q=Ze({},qp),W=li(null),st.html===!0&&(Ze(q,Rp),Ze(W,zp)),st.svg===!0&&(Ze(q,Nc),Ze(W,Mc),Ze(W,mo)),st.svgFilters===!0&&(Ze(q,Dc),Ze(W,Mc),Ze(W,mo)),st.mathMl===!0&&(Ze(q,Fc),Ze(W,$p),Ze(W,mo))),ve.tagCheck=null,ve.attributeCheck=null,Wt(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?ve.tagCheck=R.ADD_TAGS:Jn(R.ADD_TAGS)&&(q===z&&(q=or(q)),Ze(q,R.ADD_TAGS,xt))),Wt(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?ve.attributeCheck=R.ADD_ATTR:Jn(R.ADD_ATTR)&&(W===G&&(W=or(W)),Ze(W,R.ADD_ATTR,xt))),Wt(R,"ADD_URI_SAFE_ATTR")&&Jn(R.ADD_URI_SAFE_ATTR)&&Ze(Aa,R.ADD_URI_SAFE_ATTR,xt),Wt(R,"FORBID_CONTENTS")&&Jn(R.FORBID_CONTENTS)&&(Gt===Jr&&(Gt=or(Gt)),Ze(Gt,R.FORBID_CONTENTS,xt)),Wt(R,"ADD_FORBID_CONTENTS")&&Jn(R.ADD_FORBID_CONTENTS)&&(Gt===Jr&&(Gt=or(Gt)),Ze(Gt,R.ADD_FORBID_CONTENTS,xt)),it&&(q["#text"]=!0),ke&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=R.TRUSTED_TYPES_POLICY;try{S=_("")}catch(ge){throw g=le,ge}}else R.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=_("")));Zt&&Zt(R),_a=R},Sc=Ze({},[...Nc,...Dc,...y1]),Ec=Ze({},[...Fc,...v1]),Cc=function(R,X,le){return X.namespaceURI===jt?R==="svg":X.namespaceURI===Xr?R==="svg"&&(le==="annotation-xml"||so[le]):!!Sc[R]},Ep=function(R,X,le){return X.namespaceURI===jt?R==="math":X.namespaceURI===Fr?R==="math"&&Nn[le]:!!Ec[R]},Cp=function(R,X,le){return X.namespaceURI===Fr&&!Nn[le]||X.namespaceURI===Xr&&!so[le]?!1:!Ec[R]&&(mr[R]||!Sc[R])},Ap=function(R){let X=y(R);(!X||!X.tagName)&&(X={namespaceURI:Lt,tagName:"template"});const le=ts(R.tagName),ge=ts(X.tagName);return In[R.namespaceURI]?R.namespaceURI===Fr?Cc(le,X,ge):R.namespaceURI===Xr?Ep(le,X,ge):R.namespaceURI===jt?Cp(le,X,ge):!!(Zr==="application/xhtml+xml"&&In[R.namespaceURI]):!1},Cr=function(R){ui(t.removed,{element:R});try{y(R).removeChild(R)}catch{if(h(R),!y(R))throw Ta("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},hr=function(R){Oa(R);const X=v(R);if(X){const ge=[];ci(X,Ee=>{ui(ge,Ee)}),ci(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(R);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],xe=Ee&&Ee.name;if(typeof xe=="string")try{R.removeAttribute(xe)}catch{}}},Dn=function(R,X){try{ui(t.removed,{attribute:X.getAttributeNode(R),from:X})}catch{ui(t.removed,{attribute:null,from:X})}if(X.removeAttribute(R),R==="is")if(me||at)try{Cr(X)}catch{}else try{X.setAttribute(R,"")}catch{}},Ac=function(R){const X=w(R);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||W[xt(Ee)]))try{R.removeAttribute(Ee)}catch{}}},Oa=function(R){const X=[R];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===Or.element&&Ac(le);const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},lo=function(R){if(!We)return;const X=[R];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===Or.processingInstruction||ge===Or.comment&&Kt(Vp,le.data)){try{h(le)}catch{}continue}if(ge===Or.element){const xe=le,Nt=xt(m?m(le):le.nodeName);try{xe.hasAttribute&&xe.hasAttribute("patchsrc")&&xe.removeAttribute("patchsrc"),xe.hasAttribute&&xe.hasAttribute("for")&&Nt!=="label"&&Nt!=="output"&&xe.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},co=function(R){let X=null,le=null;if(we)R="<remove></remove>"+R;else{const xe=Fp(R,/^[\r\n\t ]+/);le=xe&&xe[0]}Zr==="application/xhtml+xml"&&Lt===jt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ge=g?_(R):R;if(Lt===jt)try{X=new u().parseFromString(ge,Zr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Lt,"template",null);try{X.documentElement.innerHTML=Sr?S:ge}catch{}}const Ee=X.body||X.documentElement;return R&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Lt===jt?ie.call(X,ke?"html":"body")[0]:ke?X.documentElement:Ee},Xi=function(R){return Y.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ii=function(R){return R=rs(R,U," "),R=rs(R,T," "),R=rs(R,N," "),R},Zi=function(R){var X;R.normalize();const le=Y.call(R.ownerDocument||R,R,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=ii(ge.data),ge=le.nextNode();const Ee=(X=R.querySelectorAll)===null||X===void 0?void 0:X.call(R,"template");Ee&&ci(Ee,xe=>{xa(xe.content)&&Zi(xe.content)})},Wn=function(R){const X=m?m(R):null;return typeof X!="string"||xt(X)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==w(R)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==E(R)||R.childNodes!==v(R)},xa=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return E(R)===Or.documentFragment}catch{return!1}},Kn=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return typeof E(R)=="number"}catch{return!1}};function Ar(fe,R,X){fe.length!==0&&ci(fe,le=>{le.call(t,R,X,_a)})}const _c=function(R,X){return!!(We&&R.hasChildNodes()&&!Kn(R.firstElementChild)&&Kt(Bp,R.textContent)&&Kt(Bp,R.innerHTML)||We&&R.namespaceURI===jt&&X==="style"&&Kn(R.firstElementChild)||R.nodeType===Or.processingInstruction||We&&R.nodeType===Or.comment&&Kt(Vp,R.data))},Oc=function(R,X){if(!ae[X]&&pn(X)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(it&&!Gt[X]){const le=y(R),ge=v(R);if(ge&&le){const Ee=ge.length;for(let xe=Ee-1;xe>=0;--xe){const Nt=wt?ge[xe]:d(ge[xe],!0);le.insertBefore(Nt,k(R))}}}return Cr(R),!0},si=function(R,X){if(Ar(M.beforeSanitizeElements,R,null),R!==X&&y(R)===null)return!0;if(Wn(R))return Cr(R),!0;const le=xt(m?m(R):R.nodeName);if(Ar(M.uponSanitizeElement,R,{tagName:le,allowedTags:q}),R!==X&&y(R)===null)return!0;if(_c(R,le))return Cr(R),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=Oc(R,le);return Ee===!1&&Ar(M.afterSanitizeElements,R,null),Ee}if((E?E(R):R.nodeType)===Or.element&&!Ap(R)||(le==="noscript"||le==="noembed"||le==="noframes")&&Kt(x1,R.innerHTML))return Cr(R),!0;if(Le&&R.nodeType===Or.text){const Ee=ii(R.textContent);R.textContent!==Ee&&(ui(t.removed,{element:R.cloneNode()}),R.textContent=Ee)}return Ar(M.afterSanitizeElements,R,null),!1},Qi=function(R,X,le){if(pe[X]||We&&X==="patchsrc"||We&&X==="for"&&R!=="label"&&R!=="output"||Ge&&(X==="id"||X==="name")&&(le in r||le in wc))return!1;const ge=W[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,R);if(!(Se&&Kt(L,X))){if(!(Ae&&Kt(B,X))){if(ge){if(!Aa[X]){if(!Kt(Q,rs(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&R!=="script"&&Mp(le,"data:")===0&&Ot[R])){if(!(De&&!Kt(V,rs(le,K,"")))){if(le)return!1}}}}}else if(!(pn(R)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,R)||te.tagNameCheck instanceof Function&&te.tagNameCheck(R))&&(te.attributeNameCheck instanceof RegExp&&Kt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,R))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Jt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pn=function(R){return!Jt[ts(R)]&&Kt(J,R)},uo=function(R,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(R,X)){case"TrustedHTML":return _(ge);case"TrustedScriptURL":return F(ge)}return ge},xc=function(R,X,le,ge){try{le?R.setAttributeNS(le,X,ge):R.setAttribute(X,ge),Wn(R)?Cr(R):Dp(t.removed)}catch{Dn(X,R)}},es=function(R){Ar(M.beforeSanitizeAttributes,R,null);const X=R.attributes;if(!X||Wn(R))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let ge=X.length;const Ee=xt(R.nodeName);for(;ge--;){const xe=X[ge],Nt=xe.name,Yt=xe.namespaceURI,Mr=xe.value,sr=xt(Nt),_r=Mr;let Xt=Nt==="value"?_r:u1(_r);if(le.attrName=sr,le.attrValue=Xt,le.keepAttr=!0,le.forceKeepAttr=void 0,Ar(M.uponSanitizeAttribute,R,le),Xt=le.attrValue,Ct&&(sr==="id"||sr==="name")&&Mp(Xt,It)!==0&&(Dn(Nt,R),Xt=It+Xt),We&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){Dn(Nt,R);continue}if(sr==="attributename"&&Fp(Xt,"href")){Dn(Nt,R);continue}if(!le.forceKeepAttr){if(!le.keepAttr){Dn(Nt,R);continue}if(!he&&Kt(T1,Xt)){Dn(Nt,R);continue}if(Le&&(Xt=ii(Xt)),!Qi(Ee,sr,Xt)){Dn(Nt,R);continue}Xt=uo(Ee,sr,Yt,Xt),Xt!==_r&&xc(R,Nt,Yt,Xt)}}Ar(M.afterSanitizeAttributes,R,null)},mn=function(R){let X=null;const le=Xi(R);for(Ar(M.beforeSanitizeShadowDOM,R,null);X=le.nextNode();)if(Ar(M.uponSanitizeShadowNode,X,null),si(X,R),es(X),xa(X.content)&&mn(X.content),(E?E(X):X.nodeType)===Or.element){const Ee=b(X);xa(Ee)&&(Gn(Ee),mn(Ee))}Ar(M.afterSanitizeShadowDOM,R,null)},Gn=function(R){const X=[{node:R,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){mn(le.shadow);continue}const ge=le.node,xe=(E?E(ge):ge.nodeType)===Or.element,Nt=v(ge);if(Nt)for(let Yt=Nt.length-1;Yt>=0;--Yt)X.push({node:Nt[Yt],shadow:null});if(xe){const Yt=m?m(ge):null;if(typeof Yt=="string"&&xt(Yt)==="template"){const Mr=ge.content;xa(Mr)&&X.push({node:Mr,shadow:null})}}if(xe){const Yt=b(ge);xa(Yt)&&X.push({node:null,shadow:Yt},{node:Yt,shadow:null})}}};return t.sanitize=function(fe){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(Sr=!fe,Sr&&(fe="<!-->"),typeof fe!="string"&&!Kn(fe)&&(fe=h1(fe),typeof fe!="string"))throw Ta("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,W=ne):ai(R),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(q=or(q)),M.uponSanitizeAttribute.length>0&&(W=or(W)),t.removed=[];const xe=wt&&typeof fe!="string"&&Kn(fe);if(xe){lo(fe);const sr=m?m(fe):fe.nodeName;if(typeof sr=="string"){const _r=xt(sr);if(!q[_r]||ae[_r])throw hr(fe),Ta("root node is forbidden and cannot be sanitized in-place")}if(Wn(fe))throw hr(fe),Ta("root node is clobbered and cannot be sanitized in-place");try{Gn(fe)}catch(_r){throw hr(fe),_r}}else if(Kn(fe))X=co("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===Or.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Gn(le);else{if(!me&&!Le&&!ke&&fe.indexOf("<")===-1)return g&&Re?_(fe):fe;if(X=co(fe),!X)return me?null:Re?S:""}X&&we&&Cr(X.firstChild);const Nt=xe?fe:X,Yt=Xi(Nt);try{for(;ge=Yt.nextNode();)si(ge,Nt),es(ge),xa(ge.content)&&mn(ge.content)}catch(sr){throw xe&&(hr(fe),ci(t.removed,_r=>{_r.element&&Oa(_r.element)})),sr}if(xe)return ci(t.removed,sr=>{sr.element&&Oa(sr.element)}),Le&&Zi(fe),fe;if(me){if(Le&&Zi(X),at)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(W.shadowroot||W.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Mr=ke?X.outerHTML:X.innerHTML;return ke&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(_1,X.ownerDocument.doctype.name)&&(Mr="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
-
`+
|
|
1
|
+
(function(st,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],D):(st=typeof globalThis<"u"?globalThis:st||self,D(st.FcodeForm={},st.jsxRuntime,st.React,st.ReactDOM))})(this,(function(st,D,H,ps){"use strict";var Kq=Object.defineProperty;var Gq=(st,D,H)=>D in st?Kq(st,D,{enumerable:!0,configurable:!0,writable:!0,value:H}):st[D]=H;var gr=(st,D,H)=>Gq(st,typeof D!="symbol"?D+"":D,H);function Q0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Fn=Q0(H),Op=(e,t,r)=>`${e}/api/${t}/forms/${r}`,xp=()=>Math.random().toString(36).substring(2,10),e1=e=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e);/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */function Tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function t1(e){if(Array.isArray(e))return e}function r1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,n,o,s=[],c=!0,l=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(c=(a=n.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function n1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a1(e,t){return t1(e)||r1(e,t)||i1(e,t)||n1()}function i1(e,t){if(e){if(typeof e=="string")return Tp(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tp(e,t):void 0}}const Pp=Object.entries,Ip=Object.setPrototypeOf,o1=Object.isFrozen,s1=Object.getPrototypeOf,l1=Object.getOwnPropertyDescriptor;let Zt=Object.freeze,Qt=Object.seal,li=Object.create,Np=typeof Reflect<"u"&&Reflect,Tc=Np.apply,Pc=Np.construct;Zt||(Zt=function(t){return t}),Qt||(Qt=function(t){return t}),Tc||(Tc=function(t,r){for(var a=arguments.length,i=new Array(a>2?a-2:0),n=2;n<a;n++)i[n-2]=arguments[n];return t.apply(r,i)}),Pc||(Pc=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return new t(...a)});const ci=Rt(Array.prototype.forEach),c1=Rt(Array.prototype.lastIndexOf),Dp=Rt(Array.prototype.pop),ui=Rt(Array.prototype.push),u1=Rt(Array.prototype.splice),Jn=Array.isArray,to=Rt(String.prototype.toLowerCase),Ic=Rt(String.prototype.toString),Fp=Rt(String.prototype.match),ro=Rt(String.prototype.replace),Mp=Rt(String.prototype.indexOf),f1=Rt(String.prototype.trim),d1=Rt(Number.prototype.toString),p1=Rt(Boolean.prototype.toString),jp=typeof BigInt>"u"?null:Rt(BigInt.prototype.toString),Lp=typeof Symbol>"u"?null:Rt(Symbol.prototype.toString),Wt=Rt(Object.prototype.hasOwnProperty),no=Rt(Object.prototype.toString),Kt=Rt(RegExp.prototype.test),Ta=m1(TypeError);function Rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return Tc(e,t,a)}}function m1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Pc(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:to;if(Ip&&Ip(e,null),!Jn(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(o1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function h1(e){for(let t=0;t<e.length;t++)Wt(e,t)||(e[t]=null);return e}function sr(e){const t=li(null);for(const a of Pp(e)){var r=a1(a,2);const i=r[0],n=r[1];Wt(e,i)&&(Jn(n)?t[i]=h1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=sr(n):t[i]=n)}return t}function g1(e){switch(typeof e){case"string":return e;case"number":return d1(e);case"boolean":return p1(e);case"bigint":return jp?jp(e):"0";case"symbol":return Lp?Lp(e):"Symbol()";case"undefined":return no(e);case"function":case"object":{if(e===null)return no(e);const t=e,r=hn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:no(a)}return no(e)}default:return no(e)}}function hn(e,t){for(;e!==null;){const a=l1(e,t);if(a){if(a.get)return Rt(a.get);if(typeof a.value=="function")return Rt(a.value)}e=s1(e)}function r(){return null}return r}function y1(e){try{return Kt(e,""),!0}catch{return!1}}const Rp=Zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Nc=Zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dc=Zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),v1=Zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Fc=Zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),b1=Zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qp=Zt(["#text"]),zp=Zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Mc=Zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$p=Zt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ms=Zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k1=Qt(/{{[\w\W]*|^[\w\W]*}}/g),w1=Qt(/<%[\w\W]*|^[\w\W]*%>/g),S1=Qt(/\${[\w\W]*/g),E1=Qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),C1=Qt(/^aria-[\-\w]+$/),Up=Qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),A1=Qt(/^(?:\w+script|data):/i),_1=Qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),O1=Qt(/^html$/i),x1=Qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Bp=Qt(/<[/\w!]/g),Vp=Qt(/<[/\w]/g),T1=Qt(/<\/no(script|embed|frames)/i),P1=Qt(/\/>/i),_r={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},I1=function(){return typeof window>"u"?null:window},N1=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(a=r.getAttribute(i));const n="dompurify"+(a?"#"+a:"");try{return t.createPolicy(n,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},Hp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Yn=function(t,r,a,i){return Wt(t,r)&&Jn(t[r])?Ze(i.base?sr(i.base):{},t[r],i.transform):a};function Wp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I1();const t=fe=>Wp(fe);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==_r.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const a=r,i=a.currentScript;e.DocumentFragment;const n=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,p=s.prototype,d=hn(p,"cloneNode"),h=hn(p,"remove"),k=hn(p,"nextSibling"),v=hn(p,"childNodes"),y=hn(p,"parentNode"),b=hn(p,"shadowRoot"),w=hn(p,"attributes"),E=o&&o.prototype?hn(o.prototype,"nodeType"):null,m=o&&o.prototype?hn(o.prototype,"nodeName"):null;if(typeof n=="function"){const fe=r.createElement("template");fe.content&&fe.content.ownerDocument&&(r=fe.content.ownerDocument)}let g,S="",A,x=!1,O=0;const C=function(){if(O>0)throw Ta('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_=function(R){C(),O++;try{return g.createHTML(R)}finally{O--}},F=function(R){C(),O++;try{return g.createScriptURL(R)}finally{O--}},I=function(){return x||(A=N1(f,i),x=!0),A},j=r,$=j.implementation,Y=j.createNodeIterator,Z=j.createDocumentFragment,ie=j.getElementsByTagName,P=a.importNode;let M=Hp();t.isSupported=typeof Pp=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=k1,T=w1,N=S1,L=E1,B=C1,V=A1,K=_1,J=x1;let Q=Up,q=null;const z=Ze({},[...Rp,...Nc,...Dc,...Fc,...qp]);let W=null;const G=Ze({},[...zp,...Mc,...$p,...ms]);let te=Object.seal(li(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,pe=null;const ve=Object.seal(li(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,Se=!0,De=!1,he=!0,Le=!1,We=!0,ke=!1,ee=!1,re=null,ne=null,we=!1,me=!1,at=!1,Re=!1,Ge=!0,Ct=!1;const It="user-content-";let it=!0,wt=!1,ot={},Gt=null;const Jr=Ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ot=null;const Pn=Ze({},["audio","video","img","source","image","track"]);let Aa=null;const Yr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xr="http://www.w3.org/1998/Math/MathML",Dr="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml";let Lt=jt,wr=!1,In=null;const Hn=Ze({},[Xr,Dr,jt],Ic),Sr=Zt(["mi","mo","mn","ms","mtext"]);let ss=Ze({},Sr);const kc=Zt(["annotation-xml"]);let Nn=Ze({},kc);const mr=Ze({},["title","style","font","a","script"]);let Zr=null;const wp=["application/xhtml+xml","text/html"],Sp="text/html";let xt=null,_a=null;const wc=r.createElement("form"),ls=function(R){return R instanceof RegExp||R instanceof Function},ai=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(_a&&_a===R)return;(!R||typeof R!="object")&&(R={}),R=sr(R),Zr=wp.indexOf(R.PARSER_MEDIA_TYPE)===-1?Sp:R.PARSER_MEDIA_TYPE,xt=Zr==="application/xhtml+xml"?Ic:to,q=Yn(R,"ALLOWED_TAGS",z,{transform:xt}),W=Yn(R,"ALLOWED_ATTR",G,{transform:xt}),In=Yn(R,"ALLOWED_NAMESPACES",Hn,{transform:Ic}),Aa=Yn(R,"ADD_URI_SAFE_ATTR",Yr,{transform:xt,base:Yr}),Ot=Yn(R,"ADD_DATA_URI_TAGS",Pn,{transform:xt,base:Pn}),Gt=Yn(R,"FORBID_CONTENTS",Jr,{transform:xt}),ae=Yn(R,"FORBID_TAGS",sr({}),{transform:xt}),pe=Yn(R,"FORBID_ATTR",sr({}),{transform:xt}),ot=Wt(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?sr(R.USE_PROFILES):R.USE_PROFILES:!1,Ae=R.ALLOW_ARIA_ATTR!==!1,Se=R.ALLOW_DATA_ATTR!==!1,De=R.ALLOW_UNKNOWN_PROTOCOLS||!1,he=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Le=R.SAFE_FOR_TEMPLATES||!1,We=R.SAFE_FOR_XML!==!1,ke=R.WHOLE_DOCUMENT||!1,me=R.RETURN_DOM||!1,at=R.RETURN_DOM_FRAGMENT||!1,Re=R.RETURN_TRUSTED_TYPE||!1,we=R.FORCE_BODY||!1,Ge=R.SANITIZE_DOM!==!1,Ct=R.SANITIZE_NAMED_PROPS||!1,it=R.KEEP_CONTENT!==!1,wt=R.IN_PLACE||!1,Q=y1(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:Up,Lt=typeof R.NAMESPACE=="string"?R.NAMESPACE:jt,ss=Wt(R,"MATHML_TEXT_INTEGRATION_POINTS")&&R.MATHML_TEXT_INTEGRATION_POINTS&&typeof R.MATHML_TEXT_INTEGRATION_POINTS=="object"?sr(R.MATHML_TEXT_INTEGRATION_POINTS):Ze({},Sr),Nn=Wt(R,"HTML_INTEGRATION_POINTS")&&R.HTML_INTEGRATION_POINTS&&typeof R.HTML_INTEGRATION_POINTS=="object"?sr(R.HTML_INTEGRATION_POINTS):Ze({},kc);const X=Wt(R,"CUSTOM_ELEMENT_HANDLING")&&R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING=="object"?sr(R.CUSTOM_ELEMENT_HANDLING):li(null);if(te=li(null),Wt(X,"tagNameCheck")&&ls(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Wt(X,"attributeNameCheck")&&ls(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Wt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Qt(te),Le&&(Se=!1),at&&(me=!0),ot&&(q=Ze({},qp),W=li(null),ot.html===!0&&(Ze(q,Rp),Ze(W,zp)),ot.svg===!0&&(Ze(q,Nc),Ze(W,Mc),Ze(W,ms)),ot.svgFilters===!0&&(Ze(q,Dc),Ze(W,Mc),Ze(W,ms)),ot.mathMl===!0&&(Ze(q,Fc),Ze(W,$p),Ze(W,ms))),ve.tagCheck=null,ve.attributeCheck=null,Wt(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?ve.tagCheck=R.ADD_TAGS:Jn(R.ADD_TAGS)&&(q===z&&(q=sr(q)),Ze(q,R.ADD_TAGS,xt))),Wt(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?ve.attributeCheck=R.ADD_ATTR:Jn(R.ADD_ATTR)&&(W===G&&(W=sr(W)),Ze(W,R.ADD_ATTR,xt))),Wt(R,"ADD_URI_SAFE_ATTR")&&Jn(R.ADD_URI_SAFE_ATTR)&&Ze(Aa,R.ADD_URI_SAFE_ATTR,xt),Wt(R,"FORBID_CONTENTS")&&Jn(R.FORBID_CONTENTS)&&(Gt===Jr&&(Gt=sr(Gt)),Ze(Gt,R.FORBID_CONTENTS,xt)),Wt(R,"ADD_FORBID_CONTENTS")&&Jn(R.ADD_FORBID_CONTENTS)&&(Gt===Jr&&(Gt=sr(Gt)),Ze(Gt,R.ADD_FORBID_CONTENTS,xt)),it&&(q["#text"]=!0),ke&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=R.TRUSTED_TYPES_POLICY;try{S=_("")}catch(ge){throw g=le,ge}}else R.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=_("")));Zt&&Zt(R),_a=R},Sc=Ze({},[...Nc,...Dc,...v1]),Ec=Ze({},[...Fc,...b1]),Cc=function(R,X,le){return X.namespaceURI===jt?R==="svg":X.namespaceURI===Xr?R==="svg"&&(le==="annotation-xml"||ss[le]):!!Sc[R]},Ep=function(R,X,le){return X.namespaceURI===jt?R==="math":X.namespaceURI===Dr?R==="math"&&Nn[le]:!!Ec[R]},Cp=function(R,X,le){return X.namespaceURI===Dr&&!Nn[le]||X.namespaceURI===Xr&&!ss[le]?!1:!Ec[R]&&(mr[R]||!Sc[R])},Ap=function(R){let X=y(R);(!X||!X.tagName)&&(X={namespaceURI:Lt,tagName:"template"});const le=to(R.tagName),ge=to(X.tagName);return In[R.namespaceURI]?R.namespaceURI===Dr?Cc(le,X,ge):R.namespaceURI===Xr?Ep(le,X,ge):R.namespaceURI===jt?Cp(le,X,ge):!!(Zr==="application/xhtml+xml"&&In[R.namespaceURI]):!1},Er=function(R){ui(t.removed,{element:R});try{y(R).removeChild(R)}catch{if(h(R),!y(R))throw Ta("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},hr=function(R){Oa(R);const X=v(R);if(X){const ge=[];ci(X,Ee=>{ui(ge,Ee)}),ci(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(R);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],xe=Ee&&Ee.name;if(typeof xe=="string")try{R.removeAttribute(xe)}catch{}}},Dn=function(R,X){try{ui(t.removed,{attribute:X.getAttributeNode(R),from:X})}catch{ui(t.removed,{attribute:null,from:X})}if(X.removeAttribute(R),R==="is")if(me||at)try{Er(X)}catch{}else try{X.setAttribute(R,"")}catch{}},Ac=function(R){const X=w(R);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||W[xt(Ee)]))try{R.removeAttribute(Ee)}catch{}}},Oa=function(R){const X=[R];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===_r.element&&Ac(le);const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},cs=function(R){if(!We)return;const X=[R];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===_r.processingInstruction||ge===_r.comment&&Kt(Vp,le.data)){try{h(le)}catch{}continue}if(ge===_r.element){const xe=le,Nt=xt(m?m(le):le.nodeName);try{xe.hasAttribute&&xe.hasAttribute("patchsrc")&&xe.removeAttribute("patchsrc"),xe.hasAttribute&&xe.hasAttribute("for")&&Nt!=="label"&&Nt!=="output"&&xe.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let xe=Ee.length-1;xe>=0;--xe)X.push(Ee[xe])}},us=function(R){let X=null,le=null;if(we)R="<remove></remove>"+R;else{const xe=Fp(R,/^[\r\n\t ]+/);le=xe&&xe[0]}Zr==="application/xhtml+xml"&&Lt===jt&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const ge=g?_(R):R;if(Lt===jt)try{X=new u().parseFromString(ge,Zr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Lt,"template",null);try{X.documentElement.innerHTML=wr?S:ge}catch{}}const Ee=X.body||X.documentElement;return R&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Lt===jt?ie.call(X,ke?"html":"body")[0]:ke?X.documentElement:Ee},Xi=function(R){return Y.call(R.ownerDocument||R,R,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ii=function(R){return R=ro(R,U," "),R=ro(R,T," "),R=ro(R,N," "),R},Zi=function(R){var X;R.normalize();const le=Y.call(R.ownerDocument||R,R,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=ii(ge.data),ge=le.nextNode();const Ee=(X=R.querySelectorAll)===null||X===void 0?void 0:X.call(R,"template");Ee&&ci(Ee,xe=>{xa(xe.content)&&Zi(xe.content)})},Wn=function(R){const X=m?m(R):null;return typeof X!="string"||xt(X)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==w(R)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==E(R)||R.childNodes!==v(R)},xa=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return E(R)===_r.documentFragment}catch{return!1}},Kn=function(R){if(!E||typeof R!="object"||R===null)return!1;try{return typeof E(R)=="number"}catch{return!1}};function Cr(fe,R,X){fe.length!==0&&ci(fe,le=>{le.call(t,R,X,_a)})}const _c=function(R,X){return!!(We&&R.hasChildNodes()&&!Kn(R.firstElementChild)&&Kt(Bp,R.textContent)&&Kt(Bp,R.innerHTML)||We&&R.namespaceURI===jt&&X==="style"&&Kn(R.firstElementChild)||R.nodeType===_r.processingInstruction||We&&R.nodeType===_r.comment&&Kt(Vp,R.data))},Oc=function(R,X){if(!ae[X]&&pn(X)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(it&&!Gt[X]){const le=y(R),ge=v(R);if(ge&&le){const Ee=ge.length;for(let xe=Ee-1;xe>=0;--xe){const Nt=wt?ge[xe]:d(ge[xe],!0);le.insertBefore(Nt,k(R))}}}return Er(R),!0},oi=function(R,X){if(Cr(M.beforeSanitizeElements,R,null),R!==X&&y(R)===null)return!0;if(Wn(R))return Er(R),!0;const le=xt(m?m(R):R.nodeName);if(Cr(M.uponSanitizeElement,R,{tagName:le,allowedTags:q}),R!==X&&y(R)===null)return!0;if(_c(R,le))return Er(R),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=Oc(R,le);return Ee===!1&&Cr(M.afterSanitizeElements,R,null),Ee}if((E?E(R):R.nodeType)===_r.element&&!Ap(R)||(le==="noscript"||le==="noembed"||le==="noframes")&&Kt(T1,R.innerHTML))return Er(R),!0;if(Le&&R.nodeType===_r.text){const Ee=ii(R.textContent);R.textContent!==Ee&&(ui(t.removed,{element:R.cloneNode()}),R.textContent=Ee)}return Cr(M.afterSanitizeElements,R,null),!1},Qi=function(R,X,le){if(pe[X]||We&&X==="patchsrc"||We&&X==="for"&&R!=="label"&&R!=="output"||Ge&&(X==="id"||X==="name")&&(le in r||le in wc))return!1;const ge=W[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,R);if(!(Se&&Kt(L,X))){if(!(Ae&&Kt(B,X))){if(ge){if(!Aa[X]){if(!Kt(Q,ro(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&R!=="script"&&Mp(le,"data:")===0&&Ot[R])){if(!(De&&!Kt(V,ro(le,K,"")))){if(le)return!1}}}}}else if(!(pn(R)&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,R)||te.tagNameCheck instanceof Function&&te.tagNameCheck(R))&&(te.attributeNameCheck instanceof RegExp&&Kt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,R))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Kt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Jt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pn=function(R){return!Jt[to(R)]&&Kt(J,R)},fs=function(R,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(R,X)){case"TrustedHTML":return _(ge);case"TrustedScriptURL":return F(ge)}return ge},xc=function(R,X,le,ge){try{le?R.setAttributeNS(le,X,ge):R.setAttribute(X,ge),Wn(R)?Er(R):Dp(t.removed)}catch{Dn(X,R)}},eo=function(R){Cr(M.beforeSanitizeAttributes,R,null);const X=R.attributes;if(!X||Wn(R))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let ge=X.length;const Ee=xt(R.nodeName);for(;ge--;){const xe=X[ge],Nt=xe.name,Yt=xe.namespaceURI,Fr=xe.value,or=xt(Nt),Ar=Fr;let Xt=Nt==="value"?Ar:f1(Ar);if(le.attrName=or,le.attrValue=Xt,le.keepAttr=!0,le.forceKeepAttr=void 0,Cr(M.uponSanitizeAttribute,R,le),Xt=le.attrValue,Ct&&(or==="id"||or==="name")&&Mp(Xt,It)!==0&&(Dn(Nt,R),Xt=It+Xt),We&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Xt)){Dn(Nt,R);continue}if(or==="attributename"&&Fp(Xt,"href")){Dn(Nt,R);continue}if(!le.forceKeepAttr){if(!le.keepAttr){Dn(Nt,R);continue}if(!he&&Kt(P1,Xt)){Dn(Nt,R);continue}if(Le&&(Xt=ii(Xt)),!Qi(Ee,or,Xt)){Dn(Nt,R);continue}Xt=fs(Ee,or,Yt,Xt),Xt!==Ar&&xc(R,Nt,Yt,Xt)}}Cr(M.afterSanitizeAttributes,R,null)},mn=function(R){let X=null;const le=Xi(R);for(Cr(M.beforeSanitizeShadowDOM,R,null);X=le.nextNode();)if(Cr(M.uponSanitizeShadowNode,X,null),oi(X,R),eo(X),xa(X.content)&&mn(X.content),(E?E(X):X.nodeType)===_r.element){const Ee=b(X);xa(Ee)&&(Gn(Ee),mn(Ee))}Cr(M.afterSanitizeShadowDOM,R,null)},Gn=function(R){const X=[{node:R,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){mn(le.shadow);continue}const ge=le.node,xe=(E?E(ge):ge.nodeType)===_r.element,Nt=v(ge);if(Nt)for(let Yt=Nt.length-1;Yt>=0;--Yt)X.push({node:Nt[Yt],shadow:null});if(xe){const Yt=m?m(ge):null;if(typeof Yt=="string"&&xt(Yt)==="template"){const Fr=ge.content;xa(Fr)&&X.push({node:Fr,shadow:null})}}if(xe){const Yt=b(ge);xa(Yt)&&X.push({node:null,shadow:Yt},{node:Yt,shadow:null})}}};return t.sanitize=function(fe){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(wr=!fe,wr&&(fe="<!-->"),typeof fe!="string"&&!Kn(fe)&&(fe=g1(fe),typeof fe!="string"))throw Ta("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,W=ne):ai(R),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(q=sr(q)),M.uponSanitizeAttribute.length>0&&(W=sr(W)),t.removed=[];const xe=wt&&typeof fe!="string"&&Kn(fe);if(xe){cs(fe);const or=m?m(fe):fe.nodeName;if(typeof or=="string"){const Ar=xt(or);if(!q[Ar]||ae[Ar])throw hr(fe),Ta("root node is forbidden and cannot be sanitized in-place")}if(Wn(fe))throw hr(fe),Ta("root node is clobbered and cannot be sanitized in-place");try{Gn(fe)}catch(Ar){throw hr(fe),Ar}}else if(Kn(fe))X=us("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===_r.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Gn(le);else{if(!me&&!Le&&!ke&&fe.indexOf("<")===-1)return g&&Re?_(fe):fe;if(X=us(fe),!X)return me?null:Re?S:""}X&&we&&Er(X.firstChild);const Nt=xe?fe:X,Yt=Xi(Nt);try{for(;ge=Yt.nextNode();)oi(ge,Nt),eo(ge),xa(ge.content)&&mn(ge.content)}catch(or){throw xe&&(hr(fe),ci(t.removed,Ar=>{Ar.element&&Oa(Ar.element)})),or}if(xe)return ci(t.removed,or=>{or.element&&Oa(or.element)}),Le&&Zi(fe),fe;if(me){if(Le&&Zi(X),at)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(W.shadowroot||W.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Fr=ke?X.outerHTML:X.innerHTML;return ke&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Kt(O1,X.ownerDocument.doctype.name)&&(Fr="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
+
`+Fr),Le&&(Fr=ii(Fr)),g&&Re?_(Fr):Fr},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ai(fe),ee=!0,re=q,ne=W},t.clearConfig=function(){_a=null,ee=!1,re=null,ne=null,g=A,S=""},t.isValidAttribute=function(fe,R,X){_a||ai({});const le=xt(fe),ge=xt(R);return Qi(le,ge,X)},t.addHook=function(fe,R){typeof R=="function"&&Wt(M,fe)&&ui(M[fe],R)},t.removeHook=function(fe,R){if(Wt(M,fe)){if(R!==void 0){const X=c1(M[fe],R);return X===-1?void 0:u1(M[fe],X,1)[0]}return Dp(M[fe])}},t.removeHooks=function(fe){Wt(M,fe)&&(M[fe]=[])},t.removeAllHooks=function(){M=Hp()},t}var hs=Wp();const D1=["script","iframe","object","embed","base","form"],F1=["srcdoc","formaction"];hs.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noreferrer")});const M1=(e,t)=>hs.removed.length>0||t===""&&e.trim()!=="";function jc(e){const t=hs.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:D1,FORBID_ATTR:F1,ADD_ATTR:["target"]});return M1(e,t)&&console.warn("Factorial Code forms: removed unsafe HTML while rendering authored content. Scripts, event handlers and javascript: URLs are not executed — use the onSuccess/onNextStep/onError callbacks for behaviour.",hs.removed),t}const j1="Fcode-Version-Tag",L1="Fcode-Locale",Kp=e=>e?{[j1]:e}:{},Gp=e=>e?{[L1]:e}:{},R1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const o={...t,...Kp(i),...Gp(n)},s=await fetch(Op(e,r,a),{cache:"force-cache",...Object.keys(o).length>0&&{headers:o}}),c=await s.json();if(s.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(s.ok)return c;throw c},q1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,z1=e=>{const t=q1.exec(e);if(!t)return null;const[,r="application/octet-stream",a="file",i]=t,o=e.includes(";base64,")?Uint8Array.from(atob(i),s=>s.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(i));return{mime:r,name:a,blob:new Blob([o],{type:r})}},$1=e=>{const t={...e},r=[];for(const[a,i]of Object.entries(e))if(i instanceof File)r.push({key:a,file:i}),delete t[a];else if(typeof i=="string"&&i.startsWith("data:")){const n=z1(i);n&&(r.push({key:a,file:new File([n.blob],n.name,{type:n.mime})}),delete t[a])}return{sanitized:t,files:r}},U1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,locale:o,formData:s})=>{const{sanitized:c,files:l}=$1(s),u=Op(e,r,a),f={"Fcode-Async":n?"true":"false"},p=Kp(i),d=Gp(o);let h;if(l.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(c));for(const{key:b,file:w}of l)v.append(b,w,w.name);const y={...t,...f,...p,...d};delete y["Content-Type"],delete y["content-type"],h=await fetch(u,{headers:y,method:"POST",body:v})}else h=await fetch(u,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(s)});let k={};try{const v=await h.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(h.ok)return k;throw k},B1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:o=!1})=>{const[s,c]=H.useState(!1),[l,u]=H.useState(void 0),[f,p]=H.useState(void 0),[d,h]=H.useState(void 0),k=H.useCallback(()=>{c(!1),u(void 0),h(void 0),p(void 0)},[]);return[H.useCallback(async y=>{try{p(y),c(!0);const b=await U1({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:o,formData:y});return c(!1),u(b),b}catch(b){throw h(b),c(!1),b}},[e,t,r,a,i,n,o]),{loading:s,results:l,error:d,formData:f,reset:k}]},V1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const[o,s]=H.useState(!0),[c,l]=H.useState(),[u,f]=H.useState(),p=JSON.stringify(t??null),d=H.useMemo(()=>t,[p]);return H.useEffect(()=>{let h=!1;return s(!0),f(void 0),R1({hostUrl:e,headers:d,team:r,processId:a,processVersion:i,locale:n}).then(k=>{h||l(k)}).catch(k=>{h||f(k)}).finally(()=>{h||s(!1)}),()=>{h=!0}},[e,d,r,a,i,n]),{loading:o,formSpecs:c,error:u}},H1=e=>e1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),W1=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},K1=e=>{if(W1(e))return;const t=document.createElement("link");return t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),t},G1=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function J1({stylesheets:e}){H.useEffect(()=>{const t=e.map(r=>H1(r)?K1(r):G1(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Jp(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:a,themeStylesheet:i}=e,n=H.useMemo(()=>{if(t)return[t];if(a==="none")return[];const o=[`${r}/styles.css`];return i?o.push(i):a&&o.push(`${r}/styles-theme-${a}.css`),o},[t,r,a,i]);J1({stylesheets:n})}function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},gs.apply(null,arguments)}function Yp(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Lc(e,t)}function Xp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}function gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ys={exports:{}},vs={exports:{}},ut={};/** @license React v16.13.1
|
|
4
4
|
* react-is.production.min.js
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Zp;function Y1(){if(Zp)return ut;Zp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(m){if(typeof m=="object"&&m!==null){var g=m.$$typeof;switch(g){case t:switch(m=m.type,m){case c:case l:case a:case n:case i:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case u:case h:case d:case o:return m;default:return g}}case r:return g}}}function E(m){return w(m)===l}return ut.AsyncMode=c,ut.ConcurrentMode=l,ut.ContextConsumer=s,ut.ContextProvider=o,ut.Element=t,ut.ForwardRef=u,ut.Fragment=a,ut.Lazy=h,ut.Memo=d,ut.Portal=r,ut.Profiler=n,ut.StrictMode=i,ut.Suspense=f,ut.isAsyncMode=function(m){return E(m)||w(m)===c},ut.isConcurrentMode=E,ut.isContextConsumer=function(m){return w(m)===s},ut.isContextProvider=function(m){return w(m)===o},ut.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ut.isForwardRef=function(m){return w(m)===u},ut.isFragment=function(m){return w(m)===a},ut.isLazy=function(m){return w(m)===h},ut.isMemo=function(m){return w(m)===d},ut.isPortal=function(m){return w(m)===r},ut.isProfiler=function(m){return w(m)===n},ut.isStrictMode=function(m){return w(m)===i},ut.isSuspense=function(m){return w(m)===f},ut.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===a||m===l||m===n||m===i||m===f||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===d||m.$$typeof===o||m.$$typeof===s||m.$$typeof===u||m.$$typeof===v||m.$$typeof===y||m.$$typeof===b||m.$$typeof===k)},ut.typeOf=w,ut}var ft={};/** @license React v16.13.1
|
|
11
11
|
* react-is.development.js
|
|
12
12
|
*
|
|
13
13
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Qp;function X1(){return Qp||(Qp=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(z){return typeof z=="string"||typeof z=="function"||z===a||z===l||z===n||z===i||z===f||z===p||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===d||z.$$typeof===o||z.$$typeof===s||z.$$typeof===u||z.$$typeof===v||z.$$typeof===y||z.$$typeof===b||z.$$typeof===k)}function E(z){if(typeof z=="object"&&z!==null){var W=z.$$typeof;switch(W){case t:var G=z.type;switch(G){case c:case l:case a:case n:case i:case f:return G;default:var te=G&&G.$$typeof;switch(te){case s:case u:case h:case d:case o:return te;default:return W}}case r:return W}}}var m=c,g=l,S=s,A=o,x=t,O=u,C=a,_=h,F=d,I=r,j=n,$=i,Y=f,Z=!1;function ie(z){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(z)||E(z)===c}function P(z){return E(z)===l}function M(z){return E(z)===s}function U(z){return E(z)===o}function T(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function N(z){return E(z)===u}function L(z){return E(z)===a}function B(z){return E(z)===h}function V(z){return E(z)===d}function K(z){return E(z)===r}function J(z){return E(z)===n}function Q(z){return E(z)===i}function q(z){return E(z)===f}ft.AsyncMode=m,ft.ConcurrentMode=g,ft.ContextConsumer=S,ft.ContextProvider=A,ft.Element=x,ft.ForwardRef=O,ft.Fragment=C,ft.Lazy=_,ft.Memo=F,ft.Portal=I,ft.Profiler=j,ft.StrictMode=$,ft.Suspense=Y,ft.isAsyncMode=ie,ft.isConcurrentMode=P,ft.isContextConsumer=M,ft.isContextProvider=U,ft.isElement=T,ft.isForwardRef=N,ft.isFragment=L,ft.isLazy=B,ft.isMemo=V,ft.isPortal=K,ft.isProfiler=J,ft.isStrictMode=Q,ft.isSuspense=q,ft.isValidElementType=w,ft.typeOf=E})()),ft}var em;function tm(){return em||(em=1,process.env.NODE_ENV==="production"?vs.exports=Y1():vs.exports=X1()),vs.exports}/*
|
|
18
18
|
object-assign
|
|
19
19
|
(c) Sindre Sorhus
|
|
20
20
|
@license MIT
|
|
21
|
-
*/var Rc,
|
|
22
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,r);if(z)return z}return null}return v(M)}function I(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(I);if(P===null||o(P))return!0;var M=f(P);if(M){var U=M.call(P),T;if(M!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var N=T.value;if(N&&!I(N[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function $(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function Y(P){if(typeof P>"u"||P===null)return""+P;var M=$(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Z(P){var M=Y(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ie(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,om;function Q1(){if(om)return Vc;om=1;var e=zc();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(s,o,c,l,u,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}a.isRequired=a;function i(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Vc}var lm;function ew(){if(lm)return yo.exports;if(lm=1,process.env.NODE_ENV!=="production"){var e=em(),t=!0;yo.exports=Z1()(e.isElement,t)}else yo.exports=Q1()();return yo.exports}var tw=ew();const Ie=gn(tw);function rw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nw(e,t){e.classList?e.classList.add(t):rw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function cm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function aw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=cm(e.className,t):e.setAttribute("class",cm(e.className&&e.className.baseVal||"",t))}const um={disabled:!1};var iw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,sw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const fm=H.createContext(null);var dm=function(t){return t.scrollTop},as="unmounted",Pa="exited",Ia="entering",fi="entered",Hc="exiting",yn=(function(e){Yp(t,e);function t(a,i){var n;n=e.call(this,a,i)||this;var s=i,o=s&&!s.isMounting?a.enter:a.appear,c;return n.appearStatus=null,a.in?o?(c=Pa,n.appearStatus=Ia):c=fi:a.unmountOnExit||a.mountOnEnter?c=as:c=Pa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===as?{status:Pa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ia&&s!==fi&&(n=Ia):(s===Ia||s===fi)&&(n=Hc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,o;return n=s=o=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===Ia){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:po.findDOMNode(this);s&&dm(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pa&&this.setState({status:as})},r.performEnter=function(i){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[po.findDOMNode(this),o],l=c[0],u=c[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||um.disabled){this.safeSetState({status:fi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Ia},function(){n.props.onEntering(l,u),n.onTransitionEnd(p,function(){n.safeSetState({status:fi},function(){n.props.onEntered(l,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:po.findDOMNode(this);if(!n||um.disabled){this.safeSetState({status:Pa},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Hc},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Pa},function(){i.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:po.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===as)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=Jp(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(fm.Provider,{value:null},typeof s=="function"?s(i,o):H.cloneElement(H.Children.only(s),o))},t})(H.Component);yn.contextType=fm,yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,a,i,n){var s=e[t];return Ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,a,i,n)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=iw;t.addEndListener||(r=r.isRequired);for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return r.apply(void 0,[t].concat(i))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function di(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:di,onEntering:di,onEntered:di,onExit:di,onExiting:di,onExited:di},yn.UNMOUNTED=as,yn.EXITED=Pa,yn.ENTERING=Ia,yn.ENTERED=fi,yn.EXITING=Hc;var ow=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return nw(t,a)})},Wc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return aw(t,a)})},Kc=(function(e){Yp(t,e);function t(){for(var a,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return a=e.call.apply(e,[this].concat(n))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1];a.removeClasses(u,"exit"),a.addClass(u,f?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(o,c)},a.onEntering=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1],p=f?"appear":"enter";a.addClass(u,p,"active"),a.props.onEntering&&a.props.onEntering(o,c)},a.onEntered=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1],p=f?"appear":"enter";a.removeClasses(u,p),a.addClass(u,p,"done"),a.props.onEntered&&a.props.onEntered(o,c)},a.onExit=function(o){var c=a.resolveArguments(o),l=c[0];a.removeClasses(l,"appear"),a.removeClasses(l,"enter"),a.addClass(l,"exit","base"),a.props.onExit&&a.props.onExit(o)},a.onExiting=function(o){var c=a.resolveArguments(o),l=c[0];a.addClass(l,"exit","active"),a.props.onExiting&&a.props.onExiting(o)},a.onExited=function(o){var c=a.resolveArguments(o),l=c[0];a.removeClasses(l,"exit"),a.addClass(l,"exit","done"),a.props.onExited&&a.props.onExited(o)},a.resolveArguments=function(o,c){return a.props.nodeRef?[a.props.nodeRef.current,o]:[o,c]},a.getClassNames=function(o){var c=a.props.classNames,l=typeof c=="string",u=l&&c?c+"-":"",f=l?""+u+o:c[o],p=l?f+"-active":c[o+"Active"],d=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:d}},a}var r=t.prototype;return r.addClass=function(i,n,s){var o=this.getClassNames(n)[s+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;n==="appear"&&s==="done"&&l&&(o+=" "+l),s==="active"&&i&&dm(i),o&&(this.appliedClasses[n][s]=o,ow(i,o))},r.removeClasses=function(i,n){var s=this.appliedClasses[n],o=s.base,c=s.active,l=s.done;this.appliedClasses[n]={},o&&Wc(i,o),c&&Wc(i,c),l&&Wc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=Jp(i,["classNames"]);return H.createElement(yn,go({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(H.Component);Kc.defaultProps={classNames:""},Kc.propTypes=process.env.NODE_ENV!=="production"?go({},yn.propTypes,{classNames:sw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const lw=Kc,pm=({active:e,children:t,content:r,disabled:a})=>{const i=H.useRef(null);return a?D.jsx(D.Fragment,{children:t}):D.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,D.jsx(lw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:D.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:D.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[D.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:D.jsx("svg",{viewBox:"25 25 50 50",children:D.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&D.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},cw=["first","second"],mm=()=>D.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[D.jsx("div",{className:"fcode-form-skeleton-title"}),D.jsx("div",{className:"fcode-form-skeleton-description"}),cw.map(e=>D.jsxs("div",{className:"fcode-form-skeleton-group",children:[D.jsx("div",{className:"fcode-form-skeleton-label"}),D.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),D.jsx("div",{className:"fcode-form-skeleton-button"})]});mm.displayName="FormSkeleton";const Gc=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},uw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=jc(r)},fw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},dw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),Gc("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),uw(e,t),t.redirect&&fw(t.redirect)},pw=(e,t)=>{Gc("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},mw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),Gc("fcode-forms-on-submit-error",{formId:e,error:t});let r="There has been an error submitting the form";try{const i=JSON.parse(t.message);i.errorMessage&&(r=i.errorMessage)}catch{}const a=document.getElementById(e);!a||!a.parentElement||(a.parentElement.innerHTML=`<p class="fcode-form-error-message">${jc(r)}</p>`)},hw="The form couldn't be loaded",gw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:hw},hm=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=hm(e[t]);break}return e},yw=e=>{let t={};return e.fields&&(t={...hm(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
21
|
+
*/var Rc,rm;function Z1(){if(rm)return Rc;rm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function i(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rc=i()?Object.assign:function(n,o){for(var s,c=a(n),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(c[f]=s[f]);if(e){l=e(s);for(var p=0;p<l.length;p++)r.call(s,l[p])&&(c[l[p]]=s[l[p]])}}return c},Rc}var qc,nm;function zc(){if(nm)return qc;nm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qc=e,qc}var $c,am;function im(){return am||(am=1,$c=Function.call.bind(Object.prototype.hasOwnProperty)),$c}var Uc,om;function Q1(){if(om)return Uc;om=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zc(),r={},a=im();e=function(n){var o="Warning: "+n;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(n,o,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in n)if(a(n,u)){var f;try{if(typeof n[u]!="function"){var p=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=n[u](o,u,c,s,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var d=l?l():"";e("Failed "+s+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Uc=i,Uc}var Bc,sm;function ew(){if(sm)return Bc;sm=1;var e=tm(),t=Z1(),r=zc(),a=im(),i=Q1(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return Bc=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(P){var M=P&&(l&&P[l]||P[u]);if(typeof M=="function")return M}var p="<<anonymous>>",d={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:w,element:E(),elementType:m(),instanceOf:g,node:O(),objectOf:A,oneOf:S,oneOfType:x,shape:_,exact:F};function h(P,M){return P===M?P!==0||1/P===1/M:P!==P&&M!==M}function k(P,M){this.message=P,this.data=M&&typeof M=="object"?M:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var M={},U=0;function T(L,B,V,K,J,Q,q){if(K=K||p,Q=Q||V,q!==r){if(c){var z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=K+":"+V;!M[W]&&U<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[W]=!0,U++)}}return B[V]==null?L?B[V]===null?new k("The "+J+" `"+Q+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new k("The "+J+" `"+Q+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:P(B,V,K,J,Q)}var N=T.bind(null,!1);return N.isRequired=T.bind(null,!0),N}function y(P){function M(U,T,N,L,B,V){var K=U[T],J=$(K);if(J!==P){var Q=Y(K);return new k("Invalid "+L+" `"+B+"` of type "+("`"+Q+"` supplied to `"+N+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(M)}function b(){return v(o)}function w(P){function M(U,T,N,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var V=U[T];if(!Array.isArray(V)){var K=$(V);return new k("Invalid "+L+" `"+B+"` of type "+("`"+K+"` supplied to `"+N+"`, expected an array."))}for(var J=0;J<V.length;J++){var Q=P(V,J,N,L,B+"["+J+"]",r);if(Q instanceof Error)return Q}return null}return v(M)}function E(){function P(M,U,T,N,L){var B=M[U];if(!s(B)){var V=$(B);return new k("Invalid "+N+" `"+L+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return v(P)}function m(){function P(M,U,T,N,L){var B=M[U];if(!e.isValidElementType(B)){var V=$(B);return new k("Invalid "+N+" `"+L+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return v(P)}function g(P){function M(U,T,N,L,B){if(!(U[T]instanceof P)){var V=P.name||p,K=ie(U[T]);return new k("Invalid "+L+" `"+B+"` of type "+("`"+K+"` supplied to `"+N+"`, expected ")+("instance of `"+V+"`."))}return null}return v(M)}function S(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),o;function M(U,T,N,L,B){for(var V=U[T],K=0;K<P.length;K++)if(h(V,P[K]))return null;var J=JSON.stringify(P,function(q,z){var W=Y(z);return W==="symbol"?String(z):z});return new k("Invalid "+L+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+N+"`, expected one of "+J+"."))}return v(M)}function A(P){function M(U,T,N,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+L+" `"+B+"` of type "+("`"+K+"` supplied to `"+N+"`, expected an object."));for(var J in V)if(a(V,J)){var Q=P(V,J,N,L,B+"."+J,r);if(Q instanceof Error)return Q}return null}return v(M)}function x(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var M=0;M<P.length;M++){var U=P[M];if(typeof U!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(U)+" at index "+M+"."),o}function T(N,L,B,V,K){for(var J=[],Q=0;Q<P.length;Q++){var q=P[Q],z=q(N,L,B,V,K,r);if(z==null)return null;z.data&&a(z.data,"expectedType")&&J.push(z.data.expectedType)}var W=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new k("Invalid "+V+" `"+K+"` supplied to "+("`"+B+"`"+W+"."))}return v(T)}function O(){function P(M,U,T,N,L){return I(M[U])?null:new k("Invalid "+N+" `"+L+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return v(P)}function C(P,M,U,T,N){return new k((P||"React class")+": "+M+" type `"+U+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function _(P){function M(U,T,N,L,B){var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+K+"` "+("supplied to `"+N+"`, expected `object`."));for(var J in P){var Q=P[J];if(typeof Q!="function")return C(N,L,B,J,Y(Q));var q=Q(V,J,N,L,B+"."+J,r);if(q)return q}return null}return v(M)}function F(P){function M(U,T,N,L,B){var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+K+"` "+("supplied to `"+N+"`, expected `object`."));var J=t({},U[T],P);for(var Q in J){var q=P[Q];if(a(P,Q)&&typeof q!="function")return C(N,L,B,Q,Y(q));if(!q)return new k("Invalid "+L+" `"+B+"` key `"+Q+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(U[T],null," ")+`
|
|
22
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,r);if(z)return z}return null}return v(M)}function I(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(I);if(P===null||s(P))return!0;var M=f(P);if(M){var U=M.call(P),T;if(M!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var N=T.value;if(N&&!I(N[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function $(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function Y(P){if(typeof P>"u"||P===null)return""+P;var M=$(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Z(P){var M=Y(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function ie(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,lm;function tw(){if(lm)return Vc;lm=1;var e=zc();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(o,s,c,l,u,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}a.isRequired=a;function i(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Vc}var cm;function rw(){if(cm)return ys.exports;if(cm=1,process.env.NODE_ENV!=="production"){var e=tm(),t=!0;ys.exports=ew()(e.isElement,t)}else ys.exports=tw()();return ys.exports}var nw=rw();const Ie=gn(nw);function aw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function iw(e,t){e.classList?e.classList.add(t):aw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function um(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ow(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=um(e.className,t):e.setAttribute("class",um(e.className&&e.className.baseVal||"",t))}const fm={disabled:!1};var sw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,lw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const dm=H.createContext(null);var pm=function(t){return t.scrollTop},ao="unmounted",Pa="exited",Ia="entering",fi="entered",Hc="exiting",yn=(function(e){Xp(t,e);function t(a,i){var n;n=e.call(this,a,i)||this;var o=i,s=o&&!o.isMounting?a.enter:a.appear,c;return n.appearStatus=null,a.in?s?(c=Pa,n.appearStatus=Ia):c=fi:a.unmountOnExit||a.mountOnEnter?c=ao:c=Pa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var o=i.in;return o&&n.status===ao?{status:Pa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Ia&&o!==fi&&(n=Ia):(o===Ia||o===fi)&&(n=Hc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,o,s;return n=o=s=i,i!=null&&typeof i!="number"&&(n=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:n,enter:o,appear:s}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===Ia){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ps.findDOMNode(this);o&&pm(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pa&&this.setState({status:ao})},r.performEnter=function(i){var n=this,o=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[ps.findDOMNode(this),s],l=c[0],u=c[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!i&&!o||fm.disabled){this.safeSetState({status:fi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:Ia},function(){n.props.onEntering(l,u),n.onTransitionEnd(p,function(){n.safeSetState({status:fi},function(){n.props.onEntered(l,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:ps.findDOMNode(this);if(!n||fm.disabled){this.safeSetState({status:Pa},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Hc},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pa},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,n.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:ps.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ao)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var s=Yp(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(dm.Provider,{value:null},typeof o=="function"?o(i,s):H.cloneElement(H.Children.only(o),s))},t})(H.Component);yn.contextType=dm,yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,a,i,n){var o=e[t];return Ie.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,a,i,n)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=sw;t.addEndListener||(r=r.isRequired);for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return r.apply(void 0,[t].concat(i))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function di(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:di,onEntering:di,onEntered:di,onExit:di,onExiting:di,onExited:di},yn.UNMOUNTED=ao,yn.EXITED=Pa,yn.ENTERING=Ia,yn.ENTERED=fi,yn.EXITING=Hc;var cw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return iw(t,a)})},Wc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return ow(t,a)})},Kc=(function(e){Xp(t,e);function t(){for(var a,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return a=e.call.apply(e,[this].concat(n))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1];a.removeClasses(u,"exit"),a.addClass(u,f?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(s,c)},a.onEntering=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1],p=f?"appear":"enter";a.addClass(u,p,"active"),a.props.onEntering&&a.props.onEntering(s,c)},a.onEntered=function(s,c){var l=a.resolveArguments(s,c),u=l[0],f=l[1],p=f?"appear":"enter";a.removeClasses(u,p),a.addClass(u,p,"done"),a.props.onEntered&&a.props.onEntered(s,c)},a.onExit=function(s){var c=a.resolveArguments(s),l=c[0];a.removeClasses(l,"appear"),a.removeClasses(l,"enter"),a.addClass(l,"exit","base"),a.props.onExit&&a.props.onExit(s)},a.onExiting=function(s){var c=a.resolveArguments(s),l=c[0];a.addClass(l,"exit","active"),a.props.onExiting&&a.props.onExiting(s)},a.onExited=function(s){var c=a.resolveArguments(s),l=c[0];a.removeClasses(l,"exit"),a.addClass(l,"exit","done"),a.props.onExited&&a.props.onExited(s)},a.resolveArguments=function(s,c){return a.props.nodeRef?[a.props.nodeRef.current,s]:[s,c]},a.getClassNames=function(s){var c=a.props.classNames,l=typeof c=="string",u=l&&c?c+"-":"",f=l?""+u+s:c[s],p=l?f+"-active":c[s+"Active"],d=l?f+"-done":c[s+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:d}},a}var r=t.prototype;return r.addClass=function(i,n,o){var s=this.getClassNames(n)[o+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;n==="appear"&&o==="done"&&l&&(s+=" "+l),o==="active"&&i&&pm(i),s&&(this.appliedClasses[n][o]=s,cw(i,s))},r.removeClasses=function(i,n){var o=this.appliedClasses[n],s=o.base,c=o.active,l=o.done;this.appliedClasses[n]={},s&&Wc(i,s),c&&Wc(i,c),l&&Wc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=Yp(i,["classNames"]);return H.createElement(yn,gs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(H.Component);Kc.defaultProps={classNames:""},Kc.propTypes=process.env.NODE_ENV!=="production"?gs({},yn.propTypes,{classNames:lw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const uw=Kc,mm=({active:e,children:t,content:r,disabled:a})=>{const i=H.useRef(null);return a?D.jsx(D.Fragment,{children:t}):D.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,D.jsx(uw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:D.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:D.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[D.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:D.jsx("svg",{viewBox:"25 25 50 50",children:D.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&D.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},fw=["first","second"],hm=()=>D.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[D.jsx("div",{className:"fcode-form-skeleton-title"}),D.jsx("div",{className:"fcode-form-skeleton-description"}),fw.map(e=>D.jsxs("div",{className:"fcode-form-skeleton-group",children:[D.jsx("div",{className:"fcode-form-skeleton-label"}),D.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),D.jsx("div",{className:"fcode-form-skeleton-button"})]});hm.displayName="FormSkeleton";const Gc=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},dw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=jc(r)},pw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},mw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),Gc("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),dw(e,t),t.redirect&&pw(t.redirect)},hw=(e,t)=>{Gc("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},gw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),Gc("fcode-forms-on-submit-error",{formId:e,error:t});let r="There has been an error submitting the form";try{const i=JSON.parse(t.message);i.errorMessage&&(r=i.errorMessage)}catch{}const a=document.getElementById(e);!a||!a.parentElement||(a.parentElement.innerHTML=`<p class="fcode-form-error-message">${jc(r)}</p>`)},yw="The form couldn't be loaded",vw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:yw},gm=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=gm(e[t]);break}return e},bw=e=>{let t={};return e.fields&&(t={...gm(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
23
23
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
24
24
|
* http://github.com/janl/mustache.js
|
|
25
|
-
*/var
|
|
26
|
-
`&&(u(),c="",l=0,r=!1);if(!k.scan(f))break;if(
|
|
27
|
-
`),
|
|
28
|
-
`)},lr.prototype.renderPartial=function(t,r,a,i){if(a){var n=this.getConfigTags(i),
|
|
25
|
+
*/var kw=Object.prototype.toString,pi=Array.isArray||function(t){return kw.call(t)==="[object Array]"};function Jc(e){return typeof e=="function"}function ww(e){return pi(e)?"array":typeof e}function Yc(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ym(e,t){return e!=null&&typeof e=="object"&&t in e}function Sw(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Ew=RegExp.prototype.test;function Cw(e,t){return Ew.call(e,t)}var Aw=/\S/;function _w(e){return!Cw(Aw,e)}var Ow={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function xw(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Ow[r]})}var Tw=/\s*/,Pw=/\s+/,vm=/\s*=/,Iw=/\s*\}/,Nw=/#|\^|\/|>|\{|&|=|!/;function Dw(e,t){if(!e)return[];var r=!1,a=[],i=[],n=[],o=!1,s=!1,c="",l=0;function u(){if(o&&!s)for(;n.length;)delete i[n.pop()];else n=[];o=!1,s=!1}var f,p,d;function h(A){if(typeof A=="string"&&(A=A.split(Pw,2)),!pi(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(Yc(A[0])+"\\s*"),p=new RegExp("\\s*"+Yc(A[1])),d=new RegExp("\\s*"+Yc("}"+A[1]))}h(t||Mr.tags);for(var k=new io(e),v,y,b,w,E,m;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var g=0,S=b.length;g<S;++g)w=b.charAt(g),_w(w)?(n.push(i.length),c+=w):(s=!0,r=!0,c+=" "),i.push(["text",w,v,v+1]),v+=1,w===`
|
|
26
|
+
`&&(u(),c="",l=0,r=!1);if(!k.scan(f))break;if(o=!0,y=k.scan(Nw)||"name",k.scan(Tw),y==="="?(b=k.scanUntil(vm),k.scan(vm),k.scanUntil(p)):y==="{"?(b=k.scanUntil(d),k.scan(Iw),k.scanUntil(p),y="&"):b=k.scanUntil(p),!k.scan(p))throw new Error("Unclosed tag at "+k.pos);if(y==">"?E=[y,b,v,k.pos,c,l,r]:E=[y,b,v,k.pos],l++,i.push(E),y==="#"||y==="^")a.push(E);else if(y==="/"){if(m=a.pop(),!m)throw new Error('Unopened section "'+b+'" at '+v);if(m[1]!==b)throw new Error('Unclosed section "'+m[1]+'" at '+v)}else y==="name"||y==="{"||y==="&"?s=!0:y==="="&&h(b)}if(u(),m=a.pop(),m)throw new Error('Unclosed section "'+m[1]+'" at '+k.pos);return Mw(Fw(i))}function Fw(e){for(var t=[],r,a,i=0,n=e.length;i<n;++i)r=e[i],r&&(r[0]==="text"&&a&&a[0]==="text"?(a[1]+=r[1],a[3]=r[3]):(t.push(r),a=r));return t}function Mw(e){for(var t=[],r=t,a=[],i,n,o=0,s=e.length;o<s;++o)switch(i=e[o],i[0]){case"#":case"^":r.push(i),a.push(i),r=i[4]=[];break;case"/":n=a.pop(),n[5]=i[2],r=a.length>0?a[a.length-1][4]:t;break;default:r.push(i)}return t}function io(e){this.string=e,this.tail=e,this.pos=0}io.prototype.eos=function(){return this.tail===""},io.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var a=r[0];return this.tail=this.tail.substring(a.length),this.pos+=a.length,a},io.prototype.scanUntil=function(t){var r=this.tail.search(t),a;switch(r){case-1:a=this.tail,this.tail="";break;case 0:a="";break;default:a=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=a.length,a};function mi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}mi.prototype.push=function(t){return new mi(t,this)},mi.prototype.lookup=function(t){var r=this.cache,a;if(r.hasOwnProperty(t))a=r[t];else{for(var i=this,n,o,s,c=!1;i;){if(t.indexOf(".")>0)for(n=i.view,o=t.split("."),s=0;n!=null&&s<o.length;)s===o.length-1&&(c=ym(n,o[s])||Sw(n,o[s])),n=n[o[s++]];else n=i.view[t],c=ym(i.view,t);if(c){a=n;break}i=i.parent}r[t]=a}return Jc(a)&&(a=a.call(this.view)),a};function lr(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}lr.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},lr.prototype.parse=function(t,r){var a=this.templateCache,i=t+":"+(r||Mr.tags).join(":"),n=typeof a<"u",o=n?a.get(i):void 0;return o==null&&(o=Dw(t,r),n&&a.set(i,o)),o},lr.prototype.render=function(t,r,a,i){var n=this.getConfigTags(i),o=this.parse(t,n),s=r instanceof mi?r:new mi(r,void 0);return this.renderTokens(o,s,a,t,i)},lr.prototype.renderTokens=function(t,r,a,i,n){for(var o="",s,c,l,u=0,f=t.length;u<f;++u)l=void 0,s=t[u],c=s[0],c==="#"?l=this.renderSection(s,r,a,i,n):c==="^"?l=this.renderInverted(s,r,a,i,n):c===">"?l=this.renderPartial(s,r,a,n):c==="&"?l=this.unescapedValue(s,r):c==="name"?l=this.escapedValue(s,r,n):c==="text"&&(l=this.rawValue(s)),l!==void 0&&(o+=l);return o},lr.prototype.renderSection=function(t,r,a,i,n){var o=this,s="",c=r.lookup(t[1]);function l(p){return o.render(p,r,a,n)}if(c){if(pi(c))for(var u=0,f=c.length;u<f;++u)s+=this.renderTokens(t[4],r.push(c[u]),a,i,n);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")s+=this.renderTokens(t[4],r.push(c),a,i,n);else if(Jc(c)){if(typeof i!="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(r.view,i.slice(t[3],t[5]),l),c!=null&&(s+=c)}else s+=this.renderTokens(t[4],r,a,i,n);return s}},lr.prototype.renderInverted=function(t,r,a,i,n){var o=r.lookup(t[1]);if(!o||pi(o)&&o.length===0)return this.renderTokens(t[4],r,a,i,n)},lr.prototype.indentPartial=function(t,r,a){for(var i=r.replace(/[^ \t]/g,""),n=t.split(`
|
|
27
|
+
`),o=0;o<n.length;o++)n[o].length&&(o>0||!a)&&(n[o]=i+n[o]);return n.join(`
|
|
28
|
+
`)},lr.prototype.renderPartial=function(t,r,a,i){if(a){var n=this.getConfigTags(i),o=Jc(a)?a(t[1]):a[t[1]];if(o!=null){var s=t[6],c=t[5],l=t[4],u=o;c==0&&l&&(u=this.indentPartial(o,l,s));var f=this.parse(u,n);return this.renderTokens(f,r,a,u,i)}}},lr.prototype.unescapedValue=function(t,r){var a=r.lookup(t[1]);if(a!=null)return a},lr.prototype.escapedValue=function(t,r,a){var i=this.getConfigEscape(a)||Mr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&i===Mr.escape?String(n):i(n)},lr.prototype.rawValue=function(t){return t[1]},lr.prototype.getConfigTags=function(t){return pi(t)?t:t&&typeof t=="object"?t.tags:void 0},lr.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!pi(t))return t.escape};var Mr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){oo.templateCache=e},get templateCache(){return oo.templateCache}},oo=new lr;Mr.clearCache=function(){return oo.clearCache()},Mr.parse=function(t,r){return oo.parse(t,r)},Mr.render=function(t,r,a,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+ww(t)+'" was given as the first argument for mustache#render(template, view, partials)');return oo.render(t,r,a,i)},Mr.escape=xw,Mr.Scanner=io,Mr.Context=mi,Mr.Writer=lr;const Xc=e=>e&&typeof e=="object"&&!Array.isArray(e),Zc=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Xc(e)&&Xc(r))for(const a in r)Xc(r[a])?(e[a]||Object.assign(e,{[a]:{}}),Zc(e[a],r[a])):Object.assign(e,{[a]:r[a]});return Zc(e,...t)},jw=(e,t)=>{const r=t.type||"string",a=e["ui:classNames"]||"",i=e["ui:widget"]||"default",n=e["ui:field"]||"default";return`${a} fcode-type-${r} fcode-widget-${i} fcode-field-${n}`.trim()},Lw=([e,t],r,a)=>{const{ui:i,uiSchema:n,["ui:schema"]:o}=t;return{...r===0&&a.focusOnFirst&&{"ui:autofocus":!0},...a.isSensitive&&{"ui:widget":"password"},...o,...n,...i,...t.properties&&{...bs(t.properties,a.globalUiSchema)},...t.oneOf&&Zc({},...t.oneOf.map(s=>bs(s.properties,a.globalUiSchema))),...a.globalUiSchema[e]}},bs=(e,t,r=!1)=>Object.entries(e??{}).reduce((a,[i,n],o)=>{const s=Lw([i,n],o,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...a,[i]:{...s,"ui:classNames":jw(s,n)}}},{}),Qc=(e,t)=>{if(typeof e!="object")return e;const r={};for(const a in e)if(e.hasOwnProperty(a)&&!t.includes(a)){const i=e[a];typeof i=="object"?Array.isArray(i)?r[a]=i.map(n=>Qc(n,t)):r[a]=Qc(i,t):r[a]=i}return r},Rw=e=>{const{embedFormOptions:t,ui:r,uiSchema:a,...i}=e;return Qc(i,["ui","isSensitive","isTransient"])},qw=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const a=bs(e.schema.dependencies,t);for(const i in a){const n=a[i];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...bs(e.schema.properties,t)}},bm=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&bm(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),zw=(e,t)=>{let r=!1;const a=JSON.stringify(e).replace(/{\s*"\$ref"\s*:\s*"#\/variables\/(.+?)"\s*}/gm,(i,n)=>t[n]?JSON.stringify(t[n]):(r=!0,"{}"));return r?JSON.stringify(bm(JSON.parse(a))):a},$w=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(Mr.render(zw(e,r),r))};function km(e){const t=$w(e,e.schema.embedFormOptions);return{schema:Rw(t.schema),uiSchema:qw(t),embedFormOptions:{...t.schema.embedFormOptions}}}var eu={exports:{}};/*!
|
|
29
29
|
Copyright (c) 2018 Jed Watson.
|
|
30
30
|
Licensed under the MIT License (MIT), see
|
|
31
31
|
http://jedwatson.github.io/classnames
|
|
32
|
-
*/var km;function zw(){return km||(km=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=i(n,a(o)))}return n}function a(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var o in n)t.call(n,o)&&n[o]&&(s=i(s,o));return s}function i(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(eu)),eu.exports}var $w=zw();const hi=gn($w);function _e(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function Uw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),_e(e.additionalItems)}function wm(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function Sm(e){if(e==="")return;if(e===null)return null;const t=wm(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const a=Number(r);return typeof a=="number"&&!Number.isNaN(a)?a:e}const Xn=Symbol("__additional_property"),gi="additionalProperties",vn="allOf",Ve="anyOf",cr="const",Na="default",tu="dependencies",Bw="enum",er="__errors",dt="$id",ru="if",yi="items",Vw="_$junk_option_schema_id$_",ko="$name",Fe="oneOf",nu="patternProperties",Je="properties",au="readonly",Em="required",wo="submitButtonOptions",gt="$ref",So=Symbol("__rjsf_ref"),iu=Symbol("__rjsf_ref_cycle"),os="$schema",Cm="root",Am="_",Hw=["discriminator","propertyName"],_m="formContext",Ww="layoutGridLookupMap",Om="__rjsf",su=`${Om}_additionalProperties`,xm=`${Om}_rootSchema`,Kw="ui:field",ou="ui:widget",Zn="ui:options",lu="ui:globalOptions",Gw="ui:definitions",Jw="https://json-schema.org/draft/2019-09/schema",Eo="https://json-schema.org/draft/2020-12/schema";function be(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===ou&&_e(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===Zn&&_e(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function Tm(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=be(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Pm=typeof global=="object"&&global&&global.Object===Object&&global,Yw=typeof self=="object"&&self&&self.Object===Object&&self,bn=Pm||Yw||Function("return this")(),jr=bn.Symbol,Im=Object.prototype,Xw=Im.hasOwnProperty,Zw=Im.toString,ls=jr?jr.toStringTag:void 0;function Qw(e){var t=Xw.call(e,ls),r=e[ls];try{e[ls]=void 0;var a=!0}catch{}var i=Zw.call(e);return a&&(t?e[ls]=r:delete e[ls]),i}var eS=Object.prototype,tS=eS.toString;function rS(e){return tS.call(e)}var nS="[object Null]",aS="[object Undefined]",Nm=jr?jr.toStringTag:void 0;function Mn(e){return e==null?e===void 0?aS:nS:Nm&&Nm in Object(e)?Qw(e):rS(e)}function Dm(e,t){return function(r){return e(t(r))}}var Co=Dm(Object.getPrototypeOf,Object);function Lr(e){return e!=null&&typeof e=="object"}var iS="[object Object]",sS=Function.prototype,oS=Object.prototype,Fm=sS.toString,lS=oS.hasOwnProperty,cS=Fm.call(Object);function Qn(e){if(!Lr(e)||Mn(e)!=iS)return!1;var t=Co(e);if(t===null)return!0;var r=lS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Fm.call(r)==cS}function cu(e){const t={[er]:[],addError(r){this[er].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:cu(a)}),t);if(Qn(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:cu(r[i])}),t)}return t}var Bt=Array.isArray,uS="[object Symbol]";function cs(e){return typeof e=="symbol"||Lr(e)&&Mn(e)==uS}var fS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dS=/^\w*$/;function uu(e,t){if(Bt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cs(e)?!0:dS.test(e)||!fS.test(e)||t!=null&&e in Object(t)}function Ye(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pS="[object AsyncFunction]",mS="[object Function]",hS="[object GeneratorFunction]",gS="[object Proxy]";function us(e){if(!Ye(e))return!1;var t=Mn(e);return t==mS||t==hS||t==pS||t==gS}var fu=bn["__core-js_shared__"],Mm=(function(){var e=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function yS(e){return!!Mm&&Mm in e}var vS=Function.prototype,bS=vS.toString;function Da(e){if(e!=null){try{return bS.call(e)}catch{}try{return e+""}catch{}}return""}var kS=/[\\^$.*+?()[\]{}|]/g,wS=/^\[object .+?Constructor\]$/,SS=Function.prototype,ES=Object.prototype,CS=SS.toString,AS=ES.hasOwnProperty,_S=RegExp("^"+CS.call(AS).replace(kS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function OS(e){if(!Ye(e)||yS(e))return!1;var t=us(e)?_S:wS;return t.test(Da(e))}function xS(e,t){return e==null?void 0:e[t]}function Fa(e,t){var r=xS(e,t);return OS(r)?r:void 0}var fs=Fa(Object,"create");function TS(){this.__data__=fs?fs(null):{},this.size=0}function PS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var IS="__lodash_hash_undefined__",NS=Object.prototype,DS=NS.hasOwnProperty;function FS(e){var t=this.__data__;if(fs){var r=t[e];return r===IS?void 0:r}return DS.call(t,e)?t[e]:void 0}var MS=Object.prototype,jS=MS.hasOwnProperty;function LS(e){var t=this.__data__;return fs?t[e]!==void 0:jS.call(t,e)}var RS="__lodash_hash_undefined__";function qS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fs&&t===void 0?RS:t,this}function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ma.prototype.clear=TS,Ma.prototype.delete=PS,Ma.prototype.get=FS,Ma.prototype.has=LS,Ma.prototype.set=qS;function zS(){this.__data__=[],this.size=0}function ds(e,t){return e===t||e!==e&&t!==t}function Ao(e,t){for(var r=e.length;r--;)if(ds(e[r][0],t))return r;return-1}var $S=Array.prototype,US=$S.splice;function BS(e){var t=this.__data__,r=Ao(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():US.call(t,r,1),--this.size,!0}function VS(e){var t=this.__data__,r=Ao(t,e);return r<0?void 0:t[r][1]}function HS(e){return Ao(this.__data__,e)>-1}function WS(e,t){var r=this.__data__,a=Ao(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}jn.prototype.clear=zS,jn.prototype.delete=BS,jn.prototype.get=VS,jn.prototype.has=HS,jn.prototype.set=WS;var ps=Fa(bn,"Map");function KS(){this.size=0,this.__data__={hash:new Ma,map:new(ps||jn),string:new Ma}}function GS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _o(e,t){var r=e.__data__;return GS(t)?r[typeof t=="string"?"string":"hash"]:r.map}function JS(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t}function YS(e){return _o(this,e).get(e)}function XS(e){return _o(this,e).has(e)}function ZS(e,t){var r=_o(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ln.prototype.clear=KS,Ln.prototype.delete=JS,Ln.prototype.get=YS,Ln.prototype.has=XS,Ln.prototype.set=ZS;var QS="Expected a function";function du(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(QS);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(du.Cache||Ln),r}du.Cache=Ln;var eE=500;function tE(e){var t=du(e,function(a){return r.size===eE&&r.clear(),a}),r=t.cache;return t}var rE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nE=/\\(\\)?/g,jm=tE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rE,function(r,a,i,n){t.push(i?n.replace(nE,"$1"):a||r)}),t});function vi(e,t){for(var r=-1,a=e==null?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var Lm=jr?jr.prototype:void 0,Rm=Lm?Lm.toString:void 0;function qm(e){if(typeof e=="string")return e;if(Bt(e))return vi(e,qm)+"";if(cs(e))return Rm?Rm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pu(e){return e==null?"":qm(e)}function bi(e,t){return Bt(e)?e:uu(e,t)?[e]:jm(pu(e))}function ea(e){if(typeof e=="string"||cs(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Oo(e,t){t=bi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ea(t[r++])];return r&&r==a?e:void 0}function oe(e,t,r){var a=e==null?void 0:Oo(e,t);return a===void 0?r:a}const{getOwnPropertyNames:zm,getOwnPropertySymbols:aE}=Object,{hasOwnProperty:iE}=Object.prototype;function mu(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function xo(e){return function(r,a,i){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,i);const{cache:n}=i,s=n.get(r),o=n.get(a);if(s&&o)return s===a&&o===r;n.set(r,a),n.set(a,r);const c=e(r,a,i);return n.delete(r),n.delete(a),c}}function $m(e){const t=aE(e);return t.length?zm(e).concat(t):zm(e)}const sE=Object.hasOwn||((e,t)=>iE.call(e,t)),oE="__v",lE="__o",cE="_owner",{getOwnPropertyDescriptor:Um,keys:Bm}=Object,ja=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function uE(e,t){return e===t}function fE(e,t){return e.byteLength===t.byteLength&&To(new Uint8Array(e),new Uint8Array(t))}function dE(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function pE(e,t){return e.byteLength===t.byteLength&&To(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function mE(e,t){return ja(e.getTime(),t.getTime())}function hE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Vm(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.entries();let s,o,c=0;for(;(s=n.next())&&!s.done;){const l=t.entries();let u=0,f=0;for(;(o=l.next())&&!o.done;){if(i[f]){f++;continue}const p=s.value,d=o.value;if(r.equals(p[0],d[0],c,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function gE(e,t,r){const a=Bm(e);let i=a.length;if(Bm(t).length!==i)return!1;for(;i-- >0;)if(!Wm(e,t,r,a[i]))return!1;return!0}function ms(e,t,r){const a=$m(e);let i=a.length;if($m(t).length!==i)return!1;let n,s,o;for(;i-- >0;)if(n=a[i],!Wm(e,t,r,n)||(s=Um(e,n),o=Um(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function yE(e,t){return ja(e.valueOf(),t.valueOf())}function vE(e,t){return e.source===t.source&&e.flags===t.flags}function Hm(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.values();let s,o;for(;(s=n.next())&&!s.done;){const c=t.values();let l=0,u=0;for(;(o=c.next())&&!o.done;){if(!i[u]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){l=i[u]=1;break}u++}if(!l)return!1}return!0}function To(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function bE(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Wm(e,t,r,a){return(a===cE||a===lE||a===oE)&&(e.$$typeof||t.$$typeof)?!0:sE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const kE=Object.prototype.toString;function wE(e){const t=AE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(p,d,h){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(p,d,h):k==="function"?i(p,d,h):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(p,d,h);if(v===Array)return r(p,d,h);if(v===Date)return a(p,d,h);if(v===RegExp)return c(p,d,h);if(v===Map)return n(p,d,h);if(v===Set)return l(p,d,h);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,h);const y=kE.call(p),b=t[y];if(b)return b(p,d,h);const w=u&&u(p,d,h,y);return w?w(p,d,h):!1}}function SE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:fE,areArraysEqual:r?ms:dE,areDataViewsEqual:pE,areDatesEqual:mE,areErrorsEqual:hE,areFunctionsEqual:uE,areMapsEqual:r?mu(Vm,ms):Vm,areNumbersEqual:ja,areObjectsEqual:r?ms:gE,arePrimitiveWrappersEqual:yE,areRegExpsEqual:vE,areSetsEqual:r?mu(Hm,ms):Hm,areTypedArraysEqual:r?mu(To,ms):To,areUrlsEqual:bE,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=xo(a.areArraysEqual),n=xo(a.areMapsEqual),s=xo(a.areObjectsEqual),o=xo(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return a}function EE(e){return function(t,r,a,i,n,s,o){return e(t,r,o)}}function CE({circular:e,comparator:t,createState:r,equals:a,strict:i}){if(r)return function(o,c){const{cache:l=e?new WeakMap:void 0,meta:u}=r();return t(o,c,{cache:l,equals:a,meta:u,strict:i})};if(e)return function(o,c){return t(o,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};const n={cache:void 0,equals:a,meta:void 0,strict:i};return function(o,c){return t(o,c,n)}}function AE({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:i,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":s,"[object Number]":l,"[object Object]":(h,k,v)=>typeof h.then!="function"&&typeof k.then!="function"&&c(h,k,v),"[object RegExp]":u,"[object Set]":f,"[object String]":l,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}Rn(),Rn({strict:!0}),Rn({circular:!0}),Rn({circular:!0,strict:!0}),Rn({createInternalComparator:()=>ja}),Rn({strict:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja,strict:!0});function Rn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=SE(e),s=wE(n),o=r?r(s):EE(s);return CE({circular:t,comparator:s,createState:a,equals:o,strict:i})}const Xe=Rn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var hs={exports:{}},hu,Km;function Gm(){if(Km)return hu;Km=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function s(O){let C="",_=0,F=0;for(F=0;F<O.length;F++)if(_=O[F].charCodeAt(0),_!==48){if(!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F];break}for(F+=1;F<O.length;F++){if(_=O[F].charCodeAt(0),!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F]}return C}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(O){return O.length=0,!0}function l(O,C,_){if(O.length){const F=s(O);if(F!=="")C.push(F);else return _.error=!0,!1;O.length=0}return!0}function u(O){let C=0;const _={error:!1,address:"",zone:""},F=[],I=[];let j=!1,$=!1,Y=l;for(let Z=0;Z<O.length;Z++){const ie=O[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(j===!0&&($=!0),!Y(I,F,_))break;if(++C>7){_.error=!0;break}Z>0&&O[Z-1]===":"&&(j=!0),F.push(":");continue}else if(ie==="%"){if(!Y(I,F,_))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?_.zone=I.join(""):$?F.push(I.join("")):F.push(s(I))),_.address=F.join(""),_}function f(O){if(p(O,":")<2)return{host:O,isIPV6:!1};const C=u(O);if(C.error)return{host:O,isIPV6:!1};{let _=C.address,F=C.address;return C.zone&&(_+="%"+C.zone,F+="%25"+C.zone),{host:_,isIPV6:!0,escapedHost:F}}}function p(O,C){let _=0;for(let F=0;F<O.length;F++)O[F]===C&&_++;return _}function d(O){let C=O;const _=[];let F=-1,I=0;for(;I=C.length;){if(I===1){if(C===".")break;if(C==="/"){_.push("/");break}else{_.push(C);break}}else if(I===2){if(C[0]==="."){if(C[1]===".")break;if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){_.push("/");break}}else if(I===3&&C==="/.."){_.length!==0&&_.pop(),_.push("/");break}if(C[0]==="."){if(C[1]==="."){if(C[2]==="/"){C=C.slice(3);continue}}else if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){if(C[2]==="/"){C=C.slice(2);continue}else if(C[2]==="."&&C[3]==="/"){C=C.slice(3),_.length!==0&&_.pop();continue}}if((F=C.indexOf("/",1))===-1){_.push(C);break}else _.push(C.slice(0,F)),C=C.slice(F)}return _.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(O,C){const _=C?v:k;return _.lastIndex=0,O.replace(_,F=>h[F])}function b(O,C=!1){if(O.indexOf("%")===-1)return O;let _="";for(let F=0;F<O.length;F++){if(O[F]==="%"&&F+2<O.length){const I=O.slice(F+1,F+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));C&&a($)?_+=$:_+="%"+j,F+=2;continue}}_+=O[F]}return _}const w=new Array(256);{const O="0123456789ABCDEF";for(let C=0;C<256;C++)w[C]="%"+O[C>>4]+O[C&15]}function E(O){return O>=48&&O<=57||O>=65&&O<=90||O>=97&&O<=122||O===42||O===43||O===45||O===46||O===47||O===64||O===95}function m(O){return O<2048?w[192|O>>6]+w[128|O&63]:O<65536?w[224|O>>12]+w[128|O>>6&63]+w[128|O&63]:w[240|O>>18]+w[128|O>>12&63]+w[128|O>>6&63]+w[128|O&63]}function g(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));$!=="."&&a($)?C+=$:C+="%"+j,_+=2;continue}}if(i(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function S(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));a($)?C+=$:C+="%"+j,_+=2;continue}}if(n(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function A(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const j=O.slice(_+1,_+3);if(r(j)){C+="%"+j.toUpperCase(),_+=2;continue}}const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}return C}function x(O){const C=[];if(O.userinfo!==void 0&&(C.push(O.userinfo),C.push("@")),O.host!==void 0){let _=unescape(O.host);if(!t(_)){const F=f(_);F.isIPV6===!0?_=`[${F.escapedHost}]`:_=y(_,!1)}C.push(_)}return(typeof O.port=="number"||typeof O.port=="string")&&(C.push(":"),C.push(String(O.port))),C.length?C.join(""):void 0}return hu={nonSimpleDomain:o,recomposeAuthority:x,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},hu}var gu,Jm;function _E(){if(Jm)return gu;Jm=1;const{isUUID:e}=Gm(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function s(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function o(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return gu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},gu}var Ym;function OE(){if(Ym)return hs.exports;Ym=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:c,nonSimpleDomain:l}=Gm(),{SCHEMES:u,getSchemeHandler:f}=_E();function p(C,_){return typeof C=="string"?C=S(C,_):typeof C=="object"&&(C=g(v(C,_),_)),C}function d(C,_,F){const I=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:$}=m(C,I),{parsed:Y,malformedAuthorityOrPort:Z}=m(_,I);if($||Z)throw new Error(j.error||Y.error||"URI is malformed.");const ie=h(j,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(C,_,F,I){const j={};return I||(C=g(v(C,F),F),_=g(v(_,F),F)),F=F||{},!F.tolerant&&_.scheme?(j.scheme=_.scheme,j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.path?(_.path[0]==="/"?j.path=t(_.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?j.path="/"+_.path:C.path?j.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+_.path:j.path=_.path,j.path=t(j.path)),j.query=_.query):(j.path=C.path,_.query!==void 0?j.query=_.query:j.query=C.query),j.userinfo=C.userinfo,j.host=C.host,j.port=C.port),j.scheme=C.scheme),j.fragment=_.fragment,j}function k(C,_,F){const I=x(C,F),j=x(_,F);return I!==void 0&&j!==void 0&&I.toLowerCase()===j.toLowerCase()}function v(C,_){const F={host:C.host,scheme:C.scheme,userinfo:C.userinfo,port:C.port,path:C.path,query:C.query,nid:C.nid,nss:C.nss,uuid:C.uuid,fragment:C.fragment,reference:C.reference,resourceName:C.resourceName,secure:C.secure,error:""},I=Object.assign({},_),j=[],$=f(I.scheme||F.scheme);$&&$.serialize&&$.serialize(F,I),F.path!==void 0&&(I.skipEscape?F.path=a(F.path):(F.path=s(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),I.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const Y=r(F);if(Y!==void 0&&(I.reference!=="suffix"&&j.push("//"),j.push(Y),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Z=F.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),j.push(Z)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(C,_){if(_[2]!==void 0&&C.path&&C.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof C.port=="number"&&(C.port<0||C.port>65535))return"URI port is malformed."}function m(C,_){const F=Object.assign({},_),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,$=!1;F.reference==="suffix"&&(F.scheme?C=F.scheme+":"+C:C="//"+C);const Y=C.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",j=!0);const Z=C.match(w);if(Z!==null){const P=Z[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",j=!0))}const ie=C.match(y);if(ie){I.scheme=ie[1]===void 0?void 0:ie[1].toLowerCase(),I.userinfo=ie[3],I.host=ie[4],I.port=parseInt(ie[5],10),I.path=ie[6]||"",I.query=ie[7],I.fragment=ie[8],isNaN(I.port)&&(I.port=ie[5]);const P=E(I,ie);if(P!==void 0&&(I.error=I.error||P,j=!0),I.host)if(c(I.host)===!1){const T=e(I.host);I.host=T.host.toLowerCase(),$=T.isIPV6}else $=!0;I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&I.query===void 0&&!I.path?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==I.reference&&(I.error=I.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||I.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&I.host&&(F.domainHost||M&&M.domainHost)&&$===!1&&l(I.host))try{I.host=new URL("http://"+I.host).hostname}catch(U){I.error=I.error||"Host's domain name can not be converted to ASCII: "+U}(!M||M&&!M.skipNormalize)&&(C.indexOf("%")!==-1&&(I.scheme!==void 0&&(I.scheme=unescape(I.scheme)),I.host!==void 0&&(I.host=o(unescape(I.host),$))),I.path&&(I.path=i(I.path)),I.query&&(I.query=n(I.query)),I.fragment&&(I.fragment=n(I.fragment))),M&&M.parse&&M.parse(I,F)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:j}}function g(C,_){return m(C,_).parsed}function S(C,_){return A(C,_).normalized}function A(C,_){const{parsed:F,malformedAuthorityOrPort:I}=m(C,_);return{normalized:I?C:v(F,_),malformedAuthorityOrPort:I}}function x(C,_){if(typeof C=="string"){const{normalized:F,malformedAuthorityOrPort:I}=A(C,_);return I?void 0:F}if(typeof C=="object")return v(C,_)}const O={SCHEMES:u,normalize:p,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return hs.exports=O,hs.exports.default=O,hs.exports.fastUri=O,hs.exports}var xE=OE();const yu=gn(xE);var gs={},Xm;function TE(){if(Xm)return gs;Xm=1;var e=/~/,t=/~[01]/g;function r(l){switch(l){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+l)}function a(l){return e.test(l)?l.replace(t,r):l}function i(l,u,f){for(var p,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(p=a(u[h++]),d=k>h,typeof l[p]>"u"&&(Array.isArray(l)&&p==="-"&&(p=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[p]=[]:l[p]={})),!d)break;l=l[p]}var v=l[p];return f===void 0?delete l[p]:l[p]=f,v}function n(l){if(typeof l=="string"){if(l=l.split("/"),l[0]==="")return l;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(l)){for(const u of l)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return l}throw new Error("Invalid JSON pointer.")}function s(l,u){if(typeof l!="object")throw new Error("Invalid input object.");u=n(u);var f=u.length;if(f===1)return l;for(var p=1;p<f;){if(l=l[a(u[p++])],f===p)return l;if(typeof l!="object"||l===null)return}}function o(l,u,f){if(typeof l!="object")throw new Error("Invalid input object.");if(u=n(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(l,u,f)}function c(l){var u=n(l);return{get:function(f){return s(f,u)},set:function(f,p){return o(f,u,p)}}}return gs.get=s,gs.set=o,gs.compile=c,gs}var PE=TE();const vu=gn(PE);var IE=Object.prototype;function Po(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||IE;return e===r}var NE=Dm(Object.keys,Object),DE=Object.prototype,FE=DE.hasOwnProperty;function Zm(e){if(!Po(e))return NE(e);var t=[];for(var r in Object(e))FE.call(e,r)&&r!="constructor"&&t.push(r);return t}var bu=Fa(bn,"DataView"),ku=Fa(bn,"Promise"),ki=Fa(bn,"Set"),wu=Fa(bn,"WeakMap"),Qm="[object Map]",ME="[object Object]",eh="[object Promise]",th="[object Set]",rh="[object WeakMap]",nh="[object DataView]",jE=Da(bu),LE=Da(ps),RE=Da(ku),qE=Da(ki),zE=Da(wu),Rr=Mn;(bu&&Rr(new bu(new ArrayBuffer(1)))!=nh||ps&&Rr(new ps)!=Qm||ku&&Rr(ku.resolve())!=eh||ki&&Rr(new ki)!=th||wu&&Rr(new wu)!=rh)&&(Rr=function(e){var t=Mn(e),r=t==ME?e.constructor:void 0,a=r?Da(r):"";if(a)switch(a){case jE:return nh;case LE:return Qm;case RE:return eh;case qE:return th;case zE:return rh}return t});var $E="[object Arguments]";function ah(e){return Lr(e)&&Mn(e)==$E}var ih=Object.prototype,UE=ih.hasOwnProperty,BE=ih.propertyIsEnumerable,wi=ah((function(){return arguments})())?ah:function(e){return Lr(e)&&UE.call(e,"callee")&&!BE.call(e,"callee")},VE=9007199254740991;function Su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VE}function La(e){return e!=null&&Su(e.length)&&!us(e)}function HE(){return!1}var sh=typeof ot=="object"&&ot&&!ot.nodeType&&ot,oh=sh&&typeof module=="object"&&module&&!module.nodeType&&module,WE=oh&&oh.exports===sh,lh=WE?bn.Buffer:void 0,KE=lh?lh.isBuffer:void 0,Ra=KE||HE,GE="[object Arguments]",JE="[object Array]",YE="[object Boolean]",XE="[object Date]",ZE="[object Error]",QE="[object Function]",eC="[object Map]",tC="[object Number]",rC="[object Object]",nC="[object RegExp]",aC="[object Set]",iC="[object String]",sC="[object WeakMap]",oC="[object ArrayBuffer]",lC="[object DataView]",cC="[object Float32Array]",uC="[object Float64Array]",fC="[object Int8Array]",dC="[object Int16Array]",pC="[object Int32Array]",mC="[object Uint8Array]",hC="[object Uint8ClampedArray]",gC="[object Uint16Array]",yC="[object Uint32Array]",At={};At[cC]=At[uC]=At[fC]=At[dC]=At[pC]=At[mC]=At[hC]=At[gC]=At[yC]=!0,At[GE]=At[JE]=At[oC]=At[YE]=At[lC]=At[XE]=At[ZE]=At[QE]=At[eC]=At[tC]=At[rC]=At[nC]=At[aC]=At[iC]=At[sC]=!1;function vC(e){return Lr(e)&&Su(e.length)&&!!At[Mn(e)]}function Eu(e){return function(t){return e(t)}}var ch=typeof ot=="object"&&ot&&!ot.nodeType&&ot,ys=ch&&typeof module=="object"&&module&&!module.nodeType&&module,bC=ys&&ys.exports===ch,Cu=bC&&Pm.process,Si=(function(){try{var e=ys&&ys.require&&ys.require("util").types;return e||Cu&&Cu.binding&&Cu.binding("util")}catch{}})(),uh=Si&&Si.isTypedArray,vs=uh?Eu(uh):vC,kC="[object Map]",wC="[object Set]",SC=Object.prototype,EC=SC.hasOwnProperty;function Dt(e){if(e==null)return!0;if(La(e)&&(Bt(e)||typeof e=="string"||typeof e.splice=="function"||Ra(e)||vs(e)||wi(e)))return!e.length;var t=Rr(e);if(t==kC||t==wC)return!e.size;if(Po(e))return!Zm(e).length;for(var r in e)if(EC.call(e,r))return!1;return!0}function CC(){this.__data__=new jn,this.size=0}function AC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function _C(e){return this.__data__.get(e)}function OC(e){return this.__data__.has(e)}var xC=200;function TC(e,t){var r=this.__data__;if(r instanceof jn){var a=r.__data__;if(!ps||a.length<xC-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ln(a)}return r.set(e,t),this.size=r.size,this}function Qr(e){var t=this.__data__=new jn(e);this.size=t.size}Qr.prototype.clear=CC,Qr.prototype.delete=AC,Qr.prototype.get=_C,Qr.prototype.has=OC,Qr.prototype.set=TC;function Au(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var Io=(function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}})();function _u(e,t,r){t=="__proto__"&&Io?Io(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var PC=Object.prototype,IC=PC.hasOwnProperty;function Ou(e,t,r){var a=e[t];(!(IC.call(e,t)&&ds(a,r))||r===void 0&&!(t in e))&&_u(e,t,r)}function Ei(e,t,r,a){var i=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],c=void 0;c===void 0&&(c=e[o]),i?_u(r,o,c):Ou(r,o,c)}return r}function fh(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var NC=9007199254740991,DC=/^(?:0|[1-9]\d*)$/;function No(e,t){var r=typeof e;return t=t??NC,!!t&&(r=="number"||r!="symbol"&&DC.test(e))&&e>-1&&e%1==0&&e<t}var FC=Object.prototype,MC=FC.hasOwnProperty;function dh(e,t){var r=Bt(e),a=!r&&wi(e),i=!r&&!a&&Ra(e),n=!r&&!a&&!i&&vs(e),s=r||a||i||n,o=s?fh(e.length,String):[],c=o.length;for(var l in e)(t||MC.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||No(l,c)))&&o.push(l);return o}function en(e){return La(e)?dh(e):Zm(e)}function jC(e,t){return e&&Ei(t,en(t),e)}function LC(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var RC=Object.prototype,qC=RC.hasOwnProperty;function zC(e){if(!Ye(e))return LC(e);var t=Po(e),r=[];for(var a in e)a=="constructor"&&(t||!qC.call(e,a))||r.push(a);return r}function bs(e){return La(e)?dh(e,!0):zC(e)}function $C(e,t){return e&&Ei(t,bs(t),e)}var ph=typeof ot=="object"&&ot&&!ot.nodeType&&ot,mh=ph&&typeof module=="object"&&module&&!module.nodeType&&module,UC=mh&&mh.exports===ph,hh=UC?bn.Buffer:void 0,gh=hh?hh.allocUnsafe:void 0;function yh(e,t){if(t)return e.slice();var r=e.length,a=gh?gh(r):new e.constructor(r);return e.copy(a),a}function xu(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function BC(e,t){for(var r=-1,a=e==null?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}function vh(){return[]}var VC=Object.prototype,HC=VC.propertyIsEnumerable,bh=Object.getOwnPropertySymbols,Tu=bh?function(e){return e==null?[]:(e=Object(e),BC(bh(e),function(t){return HC.call(e,t)}))}:vh;function WC(e,t){return Ei(e,Tu(e),t)}function Pu(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var KC=Object.getOwnPropertySymbols,kh=KC?function(e){for(var t=[];e;)Pu(t,Tu(e)),e=Co(e);return t}:vh;function GC(e,t){return Ei(e,kh(e),t)}function wh(e,t,r){var a=t(e);return Bt(e)?a:Pu(a,r(e))}function Iu(e){return wh(e,en,Tu)}function Nu(e){return wh(e,bs,kh)}var JC=Object.prototype,YC=JC.hasOwnProperty;function XC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&YC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Do=bn.Uint8Array;function Du(e){var t=new e.constructor(e.byteLength);return new Do(t).set(new Do(e)),t}function ZC(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var QC=/\w*$/;function eA(e){var t=new e.constructor(e.source,QC.exec(e));return t.lastIndex=e.lastIndex,t}var Sh=jr?jr.prototype:void 0,Eh=Sh?Sh.valueOf:void 0;function tA(e){return Eh?Object(Eh.call(e)):{}}function Ch(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var rA="[object Boolean]",nA="[object Date]",aA="[object Map]",iA="[object Number]",sA="[object RegExp]",oA="[object Set]",lA="[object String]",cA="[object Symbol]",uA="[object ArrayBuffer]",fA="[object DataView]",dA="[object Float32Array]",pA="[object Float64Array]",mA="[object Int8Array]",hA="[object Int16Array]",gA="[object Int32Array]",yA="[object Uint8Array]",vA="[object Uint8ClampedArray]",bA="[object Uint16Array]",kA="[object Uint32Array]";function wA(e,t,r){var a=e.constructor;switch(t){case uA:return Du(e);case rA:case nA:return new a(+e);case fA:return ZC(e,r);case dA:case pA:case mA:case hA:case gA:case yA:case vA:case bA:case kA:return Ch(e,r);case aA:return new a;case iA:case lA:return new a(e);case sA:return eA(e);case oA:return new a;case cA:return tA(e)}}var Ah=Object.create,_h=(function(){function e(){}return function(t){if(!Ye(t))return{};if(Ah)return Ah(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Oh(e){return typeof e.constructor=="function"&&!Po(e)?_h(Co(e)):{}}var SA="[object Map]";function EA(e){return Lr(e)&&Rr(e)==SA}var xh=Si&&Si.isMap,CA=xh?Eu(xh):EA,AA="[object Set]";function _A(e){return Lr(e)&&Rr(e)==AA}var Th=Si&&Si.isSet,OA=Th?Eu(Th):_A,xA=1,TA=2,PA=4,Ph="[object Arguments]",IA="[object Array]",NA="[object Boolean]",DA="[object Date]",FA="[object Error]",Ih="[object Function]",MA="[object GeneratorFunction]",jA="[object Map]",LA="[object Number]",Nh="[object Object]",RA="[object RegExp]",qA="[object Set]",zA="[object String]",$A="[object Symbol]",UA="[object WeakMap]",BA="[object ArrayBuffer]",VA="[object DataView]",HA="[object Float32Array]",WA="[object Float64Array]",KA="[object Int8Array]",GA="[object Int16Array]",JA="[object Int32Array]",YA="[object Uint8Array]",XA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",QA="[object Uint32Array]",St={};St[Ph]=St[IA]=St[BA]=St[VA]=St[NA]=St[DA]=St[HA]=St[WA]=St[KA]=St[GA]=St[JA]=St[jA]=St[LA]=St[Nh]=St[RA]=St[qA]=St[zA]=St[$A]=St[YA]=St[XA]=St[ZA]=St[QA]=!0,St[FA]=St[Ih]=St[UA]=!1;function ks(e,t,r,a,i,n){var s,o=t&xA,c=t&TA,l=t&PA;if(r&&(s=i?r(e,a,i,n):r(e)),s!==void 0)return s;if(!Ye(e))return e;var u=Bt(e);if(u){if(s=XC(e),!o)return xu(e,s)}else{var f=Rr(e),p=f==Ih||f==MA;if(Ra(e))return yh(e,o);if(f==Nh||f==Ph||p&&!i){if(s=c||p?{}:Oh(e),!o)return c?GC(e,$C(s,e)):WC(e,jC(s,e))}else{if(!St[f])return i?e:{};s=wA(e,f,o)}}n||(n=new Qr);var d=n.get(e);if(d)return d;n.set(e,s),OA(e)?e.forEach(function(v){s.add(ks(v,t,r,v,e,n))}):CA(e)&&e.forEach(function(v,y){s.set(y,ks(v,t,r,y,e,n))});var h=l?c?Nu:Iu:c?bs:en,k=u?void 0:h(e);return Au(k||e,function(v,y){k&&(y=v,v=e[y]),Ou(s,y,ks(v,t,r,y,e,n))}),s}function Dh(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function e_(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++a<i;)n[a]=e[a+t];return n}function t_(e,t){return t.length<2?e:Oo(e,e_(t,0,-1))}var r_=Object.prototype,n_=r_.hasOwnProperty;function Fh(e,t){t=bi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=ea(t[r]);if(i==="__proto__"&&!n_.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=t_(e,t);return n==null||delete n[ea(Dh(t))]}function a_(e){return Qn(e)?void 0:e}var Mh=jr?jr.isConcatSpreadable:void 0;function i_(e){return Bt(e)||wi(e)||!!(Mh&&e&&e[Mh])}function ws(e,t,r,a,i){var n=-1,s=e.length;for(r||(r=i_),i||(i=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?ws(o,t-1,r,a,i):Pu(i,o):a||(i[i.length]=o)}return i}function Fu(e){var t=e==null?0:e.length;return t?ws(e,1):[]}function s_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var jh=Math.max;function Lh(e,t,r){return t=jh(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=jh(a.length-t,0),s=Array(n);++i<n;)s[i]=a[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=a[i];return o[t]=r(s),s_(e,this,o)}}function o_(e){return function(){return e}}function Fo(e){return e}var l_=Io?function(e,t){return Io(e,"toString",{configurable:!0,enumerable:!1,value:o_(t),writable:!0})}:Fo,c_=800,u_=16,f_=Date.now;function d_(e){var t=0,r=0;return function(){var a=f_(),i=u_-(a-r);if(r=a,i>0){if(++t>=c_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Rh=d_(l_);function qh(e){return Rh(Lh(e,void 0,Fu),e+"")}var p_=1,m_=2,h_=4,Ss=qh(function(e,t){var r={};if(e==null)return r;var a=!1;t=vi(t,function(n){return n=bi(n,e),a||(a=n.length>1),n}),Ei(e,Nu(e),r),a&&(r=ks(r,p_|m_|h_,a_));for(var i=t.length;i--;)Fh(r,t[i]);return r});function Mo(e,t){if(dt in e&&yu.equal(e[dt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Ye(a)){const i=Mo(a,t);if(i!==void 0)return i}}else if(Ye(r)){const a=Mo(r,t);if(a!==void 0)return a}}function Mu(e,t){const r=oe(e,dt,t);let a=e;gt in a&&(a={...a,[gt]:yu.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(s=>Ye(s)?Mu(s,r):s)}:Ye(n)&&(a={...a,[i]:Mu(n,r)});return a}function ju(e,t){const r=t[e];return[Ss(t,[e]),r]}function zh(e,t={},r=[],a=oe(t,[dt])){const i=e||"";let n,s=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));s===void 0||dt in t&&t[dt]===s?n=vu.get(t,c):t[os]===Eo&&(n=Mo(t,s.replace(/\/$/,"")),n!==void 0&&(n=vu.get(n,c)))}else if(t[os]===Eo){const c=s?yu.resolve(s,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=Mo(t,l.replace(/\/$/,"")),n!==void 0&&(s=n[dt],Dt(u)||(n=vu.get(n,decodeURIComponent(u.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[gt];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...p]=r,d=[...p,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=ju(gt,n),u=zh(l,t,[...r,i],s);return Object.keys(c).length>0?t[os]===Jw||t[os]===Eo?{[vn]:[c,u]}:{...c,...u}:u}return n}function Es(e,t={},r=oe(t,[dt])){return zh(e,t,[],r)}var g_=Object.prototype,y_=g_.hasOwnProperty;function v_(e,t){return e!=null&&y_.call(e,t)}function $h(e,t,r){t=bi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var s=ea(t[a]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++a!=i?n:(i=e==null?0:e.length,!!i&&Su(i)&&No(s,i)&&(Bt(e)||wi(e)))}function Ke(e,t){return e!=null&&$h(e,t,v_)}var b_="[object String]";function ta(e){return typeof e=="string"||!Bt(e)&&Lr(e)&&Mn(e)==b_}function qr(e){let t;const r=oe(e,Hw);return ta(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var k_=1/0;function w_(e){var t=e==null?0:e.length;return t?ws(e,k_):[]}function Lu(e,t,r){(r!==void 0&&!ds(e[t],r)||r===void 0&&!(t in e))&&_u(e,t,r)}function S_(e){return function(t,r,a){for(var i=-1,n=Object(t),s=a(t),o=s.length;o--;){var c=s[++i];if(r(n[c],c,n)===!1)break}return t}}var Uh=S_();function Cs(e){return Lr(e)&&La(e)}function Ru(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function E_(e){return Ei(e,bs(e))}function C_(e,t,r,a,i,n,s){var o=Ru(e,r),c=Ru(t,r),l=s.get(c);if(l){Lu(e,r,l);return}var u=n?n(o,c,r+"",e,t,s):void 0,f=u===void 0;if(f){var p=Bt(c),d=!p&&Ra(c),h=!p&&!d&&vs(c);u=c,p||d||h?Bt(o)?u=o:Cs(o)?u=xu(o):d?(f=!1,u=yh(c,!0)):h?(f=!1,u=Ch(c,!0)):u=[]:Qn(c)||wi(c)?(u=o,wi(o)?u=E_(o):(!Ye(o)||us(o))&&(u=Oh(c))):f=!1}f&&(s.set(c,u),i(u,c,a,n,s),s.delete(c)),Lu(e,r,u)}function Bh(e,t,r,a,i){e!==t&&Uh(t,function(n,s){if(i||(i=new Qr),Ye(n))C_(e,t,s,r,Bh,a,i);else{var o=a?a(Ru(e,s),n,s+"",e,t,i):void 0;o===void 0&&(o=n),Lu(e,s,o)}},bs)}function jo(e,t){return Rh(Lh(e,t,Fo),e+"")}function A_(e,t,r){if(!Ye(r))return!1;var a=typeof t;return(a=="number"?La(r)&&No(t,r.length):a=="string"&&t in r)?ds(r[t],e):!1}function __(e){return jo(function(t,r){var a=-1,i=r.length,n=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(i--,n):void 0,s&&A_(r[0],r[1],s)&&(n=i<3?void 0:n,i=1),t=Object(t);++a<i;){var o=r[a];o&&e(t,o,a,n)}return t})}var O_=__(function(e,t,r){Bh(e,t,r)});function qu(e,t,r,a){if(!Ye(e))return e;t=bi(t,e);for(var i=-1,n=t.length,s=n-1,o=e;o!=null&&++i<n;){var c=ea(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var u=o[c];l=a?a(u,c,o):void 0,l===void 0&&(l=Ye(u)?u:No(t[i+1])?[]:{})}Ou(o,c,l),o=o[c]}return e}function vt(e,t,r){return e==null?e:qu(e,t,r)}function Vh(e){return typeof e=="function"?e:Fo}var x_=/\s/;function T_(e){for(var t=e.length;t--&&x_.test(e.charAt(t)););return t}var P_=/^\s+/;function I_(e){return e&&e.slice(0,T_(e)+1).replace(P_,"")}var Hh=NaN,N_=/^[-+]0x[0-9a-f]+$/i,D_=/^0b[01]+$/i,F_=/^0o[0-7]+$/i,M_=parseInt;function j_(e){if(typeof e=="number")return e;if(cs(e))return Hh;if(Ye(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ye(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=I_(e);var r=D_.test(e);return r||F_.test(e)?M_(e.slice(2),r?2:8):N_.test(e)?Hh:+e}var Wh=1/0,L_=17976931348623157e292;function R_(e){if(!e)return e===0?e:0;if(e=j_(e),e===Wh||e===-Wh){var t=e<0?-1:1;return t*L_}return e===e?e:0}function Kh(e){var t=R_(e),r=t%1;return t===t?r?t-r:t:0}var q_=9007199254740991,zu=4294967295,z_=Math.min;function Gh(e,t){if(e=Kh(e),e<1||e>q_)return[];var r=zu,a=z_(e,zu);t=Vh(t),e-=zu;for(var i=fh(a,t);++r<e;)t(r);return i}function Jh(e,t){return e&&Uh(e,t,en)}var $_="__lodash_hash_undefined__";function U_(e){return this.__data__.set(e,$_),this}function B_(e){return this.__data__.has(e)}function qa(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ln;++t<r;)this.add(e[t])}qa.prototype.add=qa.prototype.push=U_,qa.prototype.has=B_;function V_(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function As(e,t){return e.has(t)}var H_=1,W_=2;function Yh(e,t,r,a,i,n){var s=r&H_,o=e.length,c=t.length;if(o!=c&&!(s&&c>o))return!1;var l=n.get(e),u=n.get(t);if(l&&u)return l==t&&u==e;var f=-1,p=!0,d=r&W_?new qa:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var h=e[f],k=t[f];if(a)var v=s?a(k,h,f,t,e,n):a(h,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!V_(t,function(y,b){if(!As(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){p=!1;break}}else if(!(h===k||i(h,k,r,a,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function K_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function $u(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var G_=1,J_=2,Y_="[object Boolean]",X_="[object Date]",Z_="[object Error]",Q_="[object Map]",eO="[object Number]",tO="[object RegExp]",rO="[object Set]",nO="[object String]",aO="[object Symbol]",iO="[object ArrayBuffer]",sO="[object DataView]",Xh=jr?jr.prototype:void 0,Uu=Xh?Xh.valueOf:void 0;function oO(e,t,r,a,i,n,s){switch(r){case sO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case iO:return!(e.byteLength!=t.byteLength||!n(new Do(e),new Do(t)));case Y_:case X_:case eO:return ds(+e,+t);case Z_:return e.name==t.name&&e.message==t.message;case tO:case nO:return e==t+"";case Q_:var o=K_;case rO:var c=a&G_;if(o||(o=$u),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;a|=J_,s.set(e,t);var u=Yh(o(e),o(t),a,i,n,s);return s.delete(e),u;case aO:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}var lO=1,cO=Object.prototype,uO=cO.hasOwnProperty;function fO(e,t,r,a,i,n){var s=r&lO,o=Iu(e),c=o.length,l=Iu(t),u=l.length;if(c!=u&&!s)return!1;for(var f=c;f--;){var p=o[f];if(!(s?p in t:uO.call(t,p)))return!1}var d=n.get(e),h=n.get(t);if(d&&h)return d==t&&h==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<c;){p=o[f];var y=e[p],b=t[p];if(a)var w=s?a(b,y,p,t,e,n):a(y,b,p,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof m=="function"&&m instanceof m)&&(k=!1)}return n.delete(e),n.delete(t),k}var dO=1,Zh="[object Arguments]",Qh="[object Array]",Lo="[object Object]",pO=Object.prototype,eg=pO.hasOwnProperty;function mO(e,t,r,a,i,n){var s=Bt(e),o=Bt(t),c=s?Qh:Rr(e),l=o?Qh:Rr(t);c=c==Zh?Lo:c,l=l==Zh?Lo:l;var u=c==Lo,f=l==Lo,p=c==l;if(p&&Ra(e)){if(!Ra(t))return!1;s=!0,u=!1}if(p&&!u)return n||(n=new Qr),s||vs(e)?Yh(e,t,r,a,i,n):oO(e,t,c,r,a,i,n);if(!(r&dO)){var d=u&&eg.call(e,"__wrapped__"),h=f&&eg.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new Qr),i(k,v,r,a,n)}}return p?(n||(n=new Qr),fO(e,t,r,a,i,n)):!1}function Ro(e,t,r,a,i){return e===t?!0:e==null||t==null||!Lr(e)&&!Lr(t)?e!==e&&t!==t:mO(e,t,r,a,Ro,i)}var hO=1,gO=2;function yO(e,t,r,a){var i=r.length,n=i;if(e==null)return!n;for(e=Object(e);i--;){var s=r[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<n;){s=r[i];var o=s[0],c=e[o],l=s[1];if(s[2]){if(c===void 0&&!(o in e))return!1}else{var u=new Qr,f;if(!(f===void 0?Ro(l,c,hO|gO,a,u):f))return!1}}return!0}function tg(e){return e===e&&!Ye(e)}function vO(e){for(var t=en(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,tg(i)]}return t}function rg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function bO(e){var t=vO(e);return t.length==1&&t[0][2]?rg(t[0][0],t[0][1]):function(r){return r===e||yO(r,e,t)}}function kO(e,t){return e!=null&&t in Object(e)}function ng(e,t){return e!=null&&$h(e,t,kO)}var wO=1,SO=2;function EO(e,t){return uu(e)&&tg(t)?rg(ea(e),t):function(r){var a=oe(r,e);return a===void 0&&a===t?ng(r,e):Ro(t,a,wO|SO)}}function CO(e){return function(t){return t==null?void 0:t[e]}}function AO(e){return function(t){return Oo(t,e)}}function _O(e){return uu(e)?CO(ea(e)):AO(e)}function Bu(e){return typeof e=="function"?e:e==null?Fo:typeof e=="object"?Bt(e)?EO(e[0],e[1]):bO(e):_O(e)}function OO(e,t,r){var a=Bt(e),i=a||Ra(e)||vs(e);if(t=Bu(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Ye(e)?r=us(n)?_h(Co(e)):{}:r={}}return(i?Au:Jh)(e,function(s,o,c){return t(r,s,o,c)}),r}function xO(e,t,r,a){for(var i=e.length,n=r+-1;++n<i;)if(t(e[n],n,e))return n;return-1}function TO(e){return e!==e}function PO(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function ag(e,t,r){return t===t?PO(e,t,r):xO(e,TO,r)}function Vu(e,t){var r=e==null?0:e.length;return!!r&&ag(e,t,0)>-1}function qo(){}var IO=1/0,NO=ki&&1/$u(new ki([,-0]))[1]==IO?function(e){return new ki(e)}:qo,DO=200;function ig(e,t,r){var a=-1,i=Vu,n=e.length,s=!0,o=[],c=o;if(n>=DO){var l=NO(e);if(l)return $u(l);s=!1,i=As,c=new qa}else c=o;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,s&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;o.push(u)}else i(c,f,r)||(c!==o&&c.push(f),o.push(u))}return o}function sg(e){return e&&e.length?ig(e):[]}function _s(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var FO=jo(function(e){return ig(ws(e,1,Cs,!0))});function zr(e){let{type:t}=e;return!t&&e.const?_s(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function qn(e,t){const r={...e},a=Object.keys(t).reduce((i,n)=>{const s=e?e[n]:{},o=t[n];return e&&n in e&&_e(o)?i[n]=qn(s,o):e&&t&&(zr(e)==="object"||zr(t)==="object")&&n===Em&&Array.isArray(s)&&Array.isArray(o)?i[n]=FO(s,o):i[n]=o,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var MO="[object Number]";function og(e){return typeof e=="number"||Lr(e)&&Mn(e)==MO}function lg(e,t,r){var a;if(e&&r){const i=oe(e,r);if(i===void 0)return;for(let n=0;n<t.length;n+=1){const s=t[n],o=oe(s,[Je,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===i||!((a=o.enum)===null||a===void 0)&&a.includes(i)))return n}}}function zo(e,t,r,a,i){if(t===void 0)return 0;const n=lg(t,r,i);if(og(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(i&&Ke(o,[Je,i])){const c=oe(t,i),l=oe(o,[Je,i],{});if(e.isValid(l,c,a))return s}else if(o[Je]){const c={anyOf:Object.keys(o[Je]).map(u=>({required:[u]}))};let l;if(o.anyOf){const{...u}=o;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(c),l=u}else l={...o,...c};if(delete l.required,e.isValid(l,t,a))return s}else if(e.isValid(o,t,a))return s}return 0}const jO=Object.prototype;function Os(e){for(const t in e)if(jO.hasOwnProperty.call(e,t))return!1;return!0}const LO=["array","boolean","integer","null","number","object","string"];new Set(LO);const RO=["$defs","definitions","properties","patternProperties","dependencies"];new Set(RO);const qO=["items","allOf","oneOf","anyOf"];new Set(qO);const zO=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(zO);function $o(e){return typeof e=="object"}function kn(e){return $o(e)?Os(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function Hu(e,t){const r=e.length;if(r===0)return t;let a=t.length;if(a===0)return e;if(r<a){const n=e;e=t,t=n,a=r}const i=new Set(e);for(let n=0;n<a;n++)i.add(t[n]);return Array.from(i)}function $O(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const i=e;e=t,t=i}const a=new Set(t);for(let i=0;i<e.length&&a.size>0;i++){const n=e[i];a.delete(n)&&r.push(n)}return r}function cg(e){return e.length===0}function Wu(e){return(t,r)=>{const a=t.length-r.length;if(a!==0)return a;for(let i=0;i<t.length;i++)if(t[i]!==r[i]){const n=e(t[i],r[i]);if(n!==0)return n}return 0}}function ug(e,{threshold:t=12}={}){return r=>{const a=r.length;if(a===0)return r;if(a<=t){const s=[];let o=0;e:for(let c=0;c<a;c++){const l=r[c];for(let u=0;u<o;u++)if(e(l,s[u])===0)continue e;o=s.push(l)}return s}const i=r.slice().sort(e);let n=0;for(let s=1;s<a;s++)e(i[n],i[s])!==0&&++n!==s&&(i[n]=i[s]);return i.length=n+1,i}}function UO(e){return(t,r)=>{const a=[];let i=t.length,n=r.length;if(i===0||n===0)return a;if(i>n){const u=t;t=r,r=u;const f=i;i=n,n=f}const s=[...t].sort(e),o=[...r].sort(e);let c=0,l=0;for(;c<i&&l<n;){const u=e(s[c],o[l]);u===0?((a.length===0||e(a[a.length-1],s[c])!==0)&&a.push(s[c]),c++,l++):u<0?c++:l++}return a}}function BO(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const fg=BO,dg=()=>0,VO=e=>e===void 0,HO=e=>typeof e!="object",pg={boolean:0,number:1,string:2};function WO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):pg[r]-pg[a]}function KO(e,t){const r=e.length;if(r===0)return t;const a=t.length;if(a===0)return e;if(a>r){const s=e;e=t,t=s}const i=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];i.has(o)||e.push(o)}return e}function Uo(e,t,r=dg){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Ai(e){return Uo(VO,e)}function ra(e,t){return Uo(r=>r===void 0||e(r),t)}function Ku(e,t){return Uo(Array.isArray,e,t)}const qt=Ai(Ci),Gu=ra(e=>e===0,(e,t)=>e-t);function GO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=fg(t,k=>Object.keys(k).sort());function a(k){return(v,y)=>{const b=r(v),w=r(y),E=Math.min(b.length,w.length);for(let m=0;m<E;m++){const g=Ci(b[m],w[m]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let m=0;m<E;m++){const g=b[m],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=Wu(k),y=fg(e,ug(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function s(k,v){if($o(k)){if($o(v)){const y=Object.keys(k),b=Object.keys(v),w=KO(y,b),E=w.length;for(let m=0;m<E;m++){const g=w[m];if(k[g]===v[g])continue;const A=(h[g]??o)(k[g],v[g]);if(A!==0)return A}return 0}return v===!0&&Os(k)?0:1}return $o(v)?k===!0&&Os(v)?0:-1:Ci(k,v)}const o=Ai(l),c=Uo(HO,Ku(a(o),Wu(l)),WO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Ai(s),f=ra(Os,a(u)),p=Ai(i(s)),d=ra(kn,s),h={$id:qt,$comment:qt,$defs:f,$ref:qt,$schema:qt,const:o,contains:u,contentEncoding:qt,contentMediaType:qt,default:o,definitions:f,description:qt,else:u,examples:o,exclusiveMaximum:qt,exclusiveMinimum:qt,format:qt,if:u,maximum:qt,maxItems:qt,maxLength:qt,maxProperties:qt,minimum:qt,multipleOf:qt,not:u,pattern:qt,propertyNames:u,readOnly:qt,then:u,title:qt,writeOnly:qt,uniqueItems:ra(k=>k===!1,dg),minLength:Gu,minItems:Gu,minProperties:Gu,required:ra(cg,n),enum:ra(cg,i(l)),type:Ai((k,v)=>{const y=Array.isArray(k),b=Array.isArray(v);return!y&&!b?Ci(k,v):n(y?k:[k],b?v:[v])}),items:ra(k=>!Array.isArray(k)&&kn(k),Ku(s,Wu(s))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:ra(Os,a(Ai(Ku(s,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:s}}function mg(e){return e}const hg=(e,t)=>e?hg(t%e,e):t,JO=(e,t)=>Math.abs(e*t)/hg(e,t);function YO(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Ju(e,t,r){const a=e.length,i=t.length;if(a>0&&i>0)for(let n=0;n<a;n++){const s=e[n];for(let o=0;o<i;o++)r(s,t[o])}}function Yu(e,t){return e||t}function gg(e){return(t,r)=>{const a={...t},i=Object.keys(r),n=i.length;for(let s=0;s<n;s++){const o=i[s];a[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return a}}function XO(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function za(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const ZO=["properties","patternProperties","additionalProperties"];function yg(e){const t=Object.keys(e),r=t.length,a=[];for(let i=0;i<r;i++){const n=t[i];a.push({regExp:new RegExp(n),schema:e[n]})}return[a,t]}const vg=[[],[]];function bg(e,t,r){const a=r.length;for(let i=0;i<a;i++){const n=r[i];if(!n.regExp.test(t))continue;const s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const QO=["items","additionalItems"],ex=["if","then","else"];function kg(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function Xu(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function $a(e,t,r){return[e,t,r]}function tx(e){const t=new Map;for(const[r,a,i]of e){const n=s=>{if(!i(s))throw new Error(`Schema keys '${r}' and '${a}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${a}: ${JSON.stringify(s[a])})`)};for(const s of[[r,a],[a,r]]){let o=t.get(s[0]);o===void 0&&(o=[],t.set(s[0],o)),o.push({oppositeKey:s[1],check:n})}}return t}const rx=[$a("minimum","maximum",e=>e.maximum>=e.minimum),$a("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),$a("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),$a("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),$a("minLength","maxLength",e=>e.maxLength>=e.minLength),$a("minItems","maxItems",e=>e.maxItems>=e.minItems),$a("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function nx({mergePatterns:e=YO,isSubRegExp:t=Object.is,intersectJson:r=$O,deduplicateJsonSchemaDef:a=mg,defaultMerger:i=mg,assigners:n=[],checks:s=rx,mergers:o}={}){function c(E){const m=E.length;let g=E[0];for(let S=1;S<m;S++){const A=y(g,E[S]);if(A===!1)return!1;kn(A)||(g=A)}return g}function l(E,m,g,S,A,x,O){if(E.length=0,g===!1)return!1;if(E.push(g),A!==void 0){if(A===!1)return!1;E.push(A)}if(bg(E,m,x))return!1;const _=E.length<2;if(O===!1){if(_)return;if(bg(E,m,S))return!1}else _&&O!==void 0&&E.push(O);return E.length===1?E[0]:c(E)}function u(E,m,g,S,A,x){const O=g.length;if(O>0&&A!==!1)if(x)Object.assign(E,m);else for(let C=0;C<O;C++){const _=g[C];S.has(_)||(E[_]=y(m[_],A))}return E}const f=(E,{properties:m={},patternProperties:g,additionalProperties:S=!0},{properties:A={},patternProperties:x,additionalProperties:O=!0})=>{const C=kn(S),_=kn(O);if(C&&_)return za(E,"properties",b(m,A)),za(E,"patternProperties",g&&x?b(g,x):g??x),delete E.additionalProperties,E;const F=y(S,O);za(E,"additionalProperties",F);const I={},j=Object.keys(m),$=j.length,[Y,Z]=g?yg(g):vg,[ie,P]=x?yg(x):vg,M=[],U=new Set,T=_?void 0:O;for(let J=0;J<$;J++){const Q=j[J];U.add(Q);const q=l(M,Q,m[Q],Y,A[Q],ie,T);q!==void 0&&(I[Q]=q)}const N=Object.keys(A),L=N.length,B=C?void 0:S;for(let J=0;J<L;J++){const Q=N[J];if(U.has(Q))continue;const q=l(M,Q,A[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}za(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&Ju(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],x[Q])}),V=u(V,g,Z,K,O,_),V=u(V,x,P,K,S,C),za(E,"patternProperties",V),E},p=(E,{items:m=[],additionalItems:g},{items:S=[],additionalItems:A})=>{const x=Array.isArray(m),O=Array.isArray(S),C=[];if(E.items=C,x&&O){const[_,F,I]=m.length<S.length?[m.length,g,S]:[S.length,A,m];let j=0;for(;j<_;j++)C.push(y(m[j],S[j]));if(F===!1)E.additionalItems=!1;else{const $=F===void 0||kn(F);for(;j<I.length;j++)C.push($?I[j]:y(I[j],F));za(E,"additionalItems",g!==void 0&&A!==void 0?y(g,A):g??A)}}else if(x||O){const[_,F,I]=x?[m,S,g]:[S,m,A];za(E,"additionalItems",I&&y(I,F));for(let j=0;j<_.length;j++)C.push(y(_[j],F))}else delete E.additionalItems,E.items=y(m,S);return E},d=(E,m,g)=>{kg(E,m);const S=kg({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,m){const g=[];if(Ju(E,m,(S,A)=>{try{g.push(y(S,A))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(m)}"; the merged result is empty`);return a(g)}const k=XO([[ZO,f],[QO,p],[ex,d],...n]),v=tx(s);function y(E,m){if(E===!1||m===!1)return!1;if(kn(E))return kn(m)?!0:m;if(kn(m))return E;let g={...E};const S=new Set,A=new Set,x=Reflect.ownKeys(m),O=x.length;for(let C=0;C<O;C++){const _=x[C],F=m[_];if(F===void 0)continue;const I=v.get(_);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&A.add(P.check)}}const j=E[_];if(j===void 0){g[_]=F;continue}const $=k.get(_);if($){S.add($);continue}const Y=w[_]??i;g[_]=Y(j,F)}for(const C of S)g=C(g,E,m);for(const C of A)C(g);return g}const b=gg(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,m)=>{if(E===m)return E;const g=Array.isArray(E),S=Array.isArray(m);if(!g&&!S){const A=Xu(E,m);if(A!==void 0)return A}else if(g||S){const A=new Set;if(g&&S)Ju(E,m,(O,C)=>{const _=Xu(O,C);_!==void 0&&A.add(_)});else{const O=g?E:m,C=g?m:E,_=O.length;for(let F=0;F<_;F++){const I=Xu(C,O[F]);I!==void 0&&A.add(I)}}const x=A.size;if(x===1)return A.values().next().value;if(x>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${m.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,m)=>{const g=a([E,m]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:Yu,writeOnly:Yu,enum:(E,m)=>{const g=r(E,m);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(m)}"`);return g},anyOf:h,oneOf:h,allOf:(E,m)=>a(E.concat(m)),propertyNames:y,contains:y,dependencies:gg((E,m)=>Array.isArray(E)?Array.isArray(m)?Hu(E,m):y(m,{required:E}):Array.isArray(m)?y(E,{required:m}):y(E,m)),examples:(E,m)=>{if(!Array.isArray(E)||!Array.isArray(m))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(m)}"`);return Hu(E,m)},multipleOf:(E,m)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(m);)g*=10,E*=10,m*=10;return JO(E,m)/g},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Yu,required:Hu,...o};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function ax(e){const t=[],r=[e];for(;r.length>0;){const a=r.pop();if(typeof a=="boolean"||a.allOf===void 0){t.push(a);continue}const{allOf:i,...n}=a;t.push(n);for(let s=i.length-1;s>=0;s--)r.push(i[s])}return t}function ix(e){return t=>e(ax(t))}const{compareSchemaDefinitions:sx,compareSchemaValues:ox}=GO(),{mergeArrayOfSchemaDefinitions:lx}=nx({intersectJson:UO(ox),deduplicateJsonSchemaDef:ug(sx)}),wg=ix(lx);function tr(e,t,r={},a,i,n=!1){return wn(e,t,r,a,void 0,void 0,i,n)[0]}function Sg(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function cx(e,t,r,a,i,n,s){const{if:o,then:c,else:l,...u}=t,f=e.isValid(o,n||{},r);let p=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(wn(e,h,r,n,a,i,s))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(wn(e,h,r,n,a,i,s))}}else{const h=f?c:l;if(h!==void 0){const k=Sg(h);d=d.concat(wn(e,k,r,n,a,i,s))}}return d.length&&(p=d.map(h=>qn(u,h))),p.flatMap(h=>wn(e,h,r,n,a,i,s))}function Eg(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>Gh(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function Cg(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(vt(r,[a],e.patternProperties[a]),r),{})}function ux(e,t,r,a,i,n,s,o){const c=Ag(e,t,r,a,i,n,s,o);if(c.length>1||c[0]!==t)return c;if(tu in t)return Og(e,t,r,a,i,n,s).flatMap(u=>wn(e,u,r,n,a,i,s));if(vn in t&&Array.isArray(t[vn])){const l=t.allOf.map(f=>wn(e,f,r,n,a,i,s));return Eg(l).map(f=>({...t,allOf:f}))}return[t]}function Ag(e,t,r,a,i,n,s,o){const c=na(t,r,i,void 0,o);return c!==t?wn(e,c,r,n,a,i,s,o):[t]}function na(e,t,r,a,i,n=!1){if(!_e(e))return e;let s=e,o=a;if(gt in s){const{$ref:c,...l}=s;if(r.includes(c))return n?{...s,[iu]:!0}:s;r.push(c),s={...Es(c,t,o),...l,[So]:c},dt in s&&(o=s[dt])}if(Je in s){const c=[],l=OO(s[Je],(u,f,p)=>{const d=[...r];u[p]=na(f,t,d,o,i,!i),c.push(d)},{});O_(r,sg(w_(c))),s={...s,[Je]:l}}if(yi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:na(s.items,t,r,o,i)}),i){let c,l;Ve in e&&Array.isArray(e[Ve])?(c=Ve,l=s[Ve]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=s[Fe]),c&&l&&(s={...s,[c]:l.map(u=>na(u,t,r,o,i))})}return Xe(e,s)?e:s}function fx(e,t,r,a,i){const n={...t,properties:{...t.properties}},s=a&&_e(a)?a:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(nu in n){const c=Cg(n,o);if(!Dt(c)){n.properties[o]=tr(e,{[vn]:Object.values(c)},r,oe(s,[o]),i),n.properties[o][Xn]=!0;return}}if(gi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=tr(e,{[gt]:oe(n.additionalProperties,[gt])},r,oe(s,[o]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:Ve in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:_s(oe(s,[o]))}:c={type:_s(oe(s,[o]))},n.properties[o]=c,n.properties[o][Xn]=!0}else n.properties[o]={type:"null"},n.properties[o][Xn]=!0}}),n}function dx(e){return wg(e)}function wn(e,t,r,a,i=!1,n=[],s,o){return _e(t)?ux(e,t,r,i,n,a,s,o).flatMap(l=>{var u;let f=l;if(ru in f)return cx(e,f,r,i,n,a,s);if(vn in f){if(i){const{allOf:d,...h}=f;return[...d,h]}try{const d=[],h=[],k={};(u=f.allOf)===null||u===void 0||u.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{h.push(v);for(const y of Object.getOwnPropertySymbols(v))y in k||(k[y]=v[y])}}),d.length&&(f={...f,allOf:h}),f=s?s(f):dx(f);for(const v of Object.getOwnPropertySymbols(k))f[v]=k[v];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
33
|
-
`,d);const{allOf:h,...k}=f;return k}}return Je in f&&nu in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=Cg(d,h);return Dt(k)||(d.properties[h]=tr(e,{allOf:[d.properties[h],...Object.values(k)]},r,oe(a,[h]),s)),d},{...f,properties:{...f.properties}})),nu in f||gi in f&&f.additionalProperties!==!1?fx(e,f,r,a,s):f}):[{}]}function px(e,t,r,a,i){let n;const{oneOf:s,anyOf:o,...c}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const l=i===void 0&&a?{}:i,u=qr(t);n=n.map(p=>na(p,r,[]));const f=zo(e,l,n,r,u);if(a){const p=_g(n,!1,r);return zo(e,l,p,r,u),n.map(d=>qn(c,d))}return[qn(c,n[f])]}return[t]}function _g(e,t=!1,r){return e.map(a=>{if(!_e(a))return Sg(a);const i=t&&r?na(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function Og(e,t,r,a,i,n,s){const{dependencies:o,...c}=t;return px(e,c,r,a,n).flatMap(u=>xg(e,o,u,r,a,i,n,s))}function xg(e,t,r,a,i,n,s,o){let c=[r];for(const l in t)if((i||oe(s,[l])!==void 0)&&(!r.properties||l in r.properties)){const[u,f]=ju(l,t);return Array.isArray(f)?c[0]=mx(r,f):_e(f)&&(c=hx(e,r,a,l,f,i,n,s,o)),c.flatMap(p=>xg(e,u,p,a,i,n,s,o))}return c}function mx(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function hx(e,t,r,a,i,n,s,o,c){return wn(e,i,r,o,n,s,c).flatMap(u=>{const{oneOf:f,...p}=u,d=qn(t,p);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:Ag(e,v,r,n,s,o));return Eg(h).flatMap(v=>gx(e,d,r,a,v,n,s,o,c))})}function gx(e,t,r,a,i,n,s,o,c){const l=i.filter(u=>{if(typeof u=="boolean"||!(u!=null&&u.properties))return!1;const{[a]:f}=u.properties;if(f){const p={type:"object",properties:{[a]:f}};return e.isValid(p,o,r)||n}return!1});return!n&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const f=u,[p]=ju(a,f.properties),d={...f,properties:p};return wn(e,d,r,o,n,s,c).map(k=>qn(t,k))})}function xs(e,t,r,a,i,n={},s){if(Array.isArray(r[i])){const c=qr(r)||a,l=r[i].map(f=>tr(e,f,t,n,s)),u=oe(n,c);if(u!==void 0)return l.find(f=>Xe(oe(f,[Je,c,Na],oe(f,[Je,c,cr])),u))}}function Tg(e,t,r,a,i){let n=r;if(Ke(r,gt)&&(n=tr(e,r,t,void 0,i)),Dt(a))return n;const s=Array.isArray(a)?[...a]:a.split("."),[o,...c]=s;if(o!==void 0&&o!==""&&Ke(n,o))return n=oe(n,o),Tg(e,t,n,c,i)}function Bo(e,t,r,a,i,n){const s=Tg(e,t,r,a,n);return s===void 0?i:s}const Pg={title:"!@#$_UNKNOWN_$#@!"};function yx(e,t,r,a,i={},n){const s=Array.isArray(a)?[...a]:a.split(".");let o=r;const c=s.pop(),l=String(c);s.length&&s.forEach(d=>{o=Bo(e,t,o,[Je,d],{},n),Ke(o,Fe)?o=xs(e,t,o,l,Fe,oe(i,d),n):Ke(o,Ve)&&(o=xs(e,t,o,l,Ve,oe(i,d),n))}),Ke(o,Fe)?o=xs(e,t,o,l,Fe,i,n):Ke(o,Ve)&&(o=xs(e,t,o,l,Ve,i,n));let u=Bo(e,t,o,[Je,c],Pg,n);u===Pg&&(u=void 0);const f=Bo(e,t,o,Em,[],n);let p;return u&&Array.isArray(f)&&(p=f.includes(l)),{field:u,isRequired:p}}function vx(e,t,r,a){var i=-1,n=e==null?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}function bx(e,t){return function(r,a){if(r==null)return r;if(!La(r))return e(r,a);for(var i=r.length,n=-1,s=Object(r);++n<i&&a(s[n],n,s)!==!1;);return r}}var Ig=bx(Jh);function kx(e,t,r,a,i){return i(e,function(n,s,o){r=a?(a=!1,n):t(r,n,s,o)}),r}function wx(e,t,r){var a=Bt(e)?vx:kx,i=arguments.length<3;return a(e,Bu(t),r,i,Ig)}const Sx={type:"object",$id:Vw,properties:{__not_really_there__:{type:"number"}}};function Zu(e,t,r,a,i){let n=0;return r&&(Ye(r.properties)?n+=wx(r.properties,(s,o,c)=>{const l=oe(a,c);if(typeof o=="boolean")return s;if(Ke(o,gt)){const u=tr(e,o,t,l,i);return s+Zu(e,t,u,l||{},i)}if((Ke(o,Fe)||Ke(o,Ve))&&l){const u=Ke(o,Fe)?Fe:Ve,f=qr(o);return s+_i(e,t,l,oe(o,u),-1,f,i)}if(o.type==="object"){const u=Ye(l)?1:0;return s+u+Zu(e,t,o,l,i)}if(o.type===_s(l)){let u=s+1;return o.default?u+=l===o.default?1:-1:o.const&&(u+=l===o.const?1:-1),u}return s},0):ta(r.type)&&r.type===_s(a)&&(n+=1)),n}function _i(e,t,r,a,i=-1,n,s){const o=a.map(p=>na(p,t,[])),c=lg(r,a,n);if(og(c))return c;const l=o.reduce((p,d,h)=>(zo(e,r,[Sx,d],t,n)===1&&p.push(h),p),[]);if(l.length===1)return l[0];l.length||Gh(o.length,p=>l.push(p));const u=new Set,{bestIndex:f}=l.reduce((p,d)=>{const{bestScore:h}=p,k=o[d],v=Zu(e,t,k,r,s);return u.add(v),v>h?{bestIndex:d,bestScore:v}:p},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function Ng(e){const t=e[cr],r=zr(e);return _e(t)&&ta(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Dg(e){return Array.isArray(e.enum)&&e.enum.length===1||cr in e}function Qu(e){return Array.isArray(e.items)&&e.items.every(t=>_e(t))}function Oi(e){return e==null}function Ts(e,t,r=!1,a=!1,i=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=i?n:t,o=i?t:n,c=s.map((l,u)=>o[u]!==void 0?Ts(n[u],t[u],r,a,i):l);return(r||i)&&c.length<o.length&&c.push(...o.slice(c.length)),c}if(_e(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var c;const l=oe(t,o),u=_e(e)&&o in e,f=o in t,p=(c=oe(e,o))!==null&&c!==void 0?c:{},d=u&&_e(p)&&Object.values(p).some(v=>_e(v)),h=u&&_e(oe(e,o)),k=f&&_e(l);return h&&k&&!d?(s[o]={...oe(e,o),...l},s):(s[o]=Ts(oe(e,o),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&Oi(t)||typeof t=="number"&&Number.isNaN(t))||i&&!Oi(t)?e:t}function aa(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},s=t[i];if(e&&i in e&&_e(s))a[i]=aa(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((c,l)=>(n.includes(l)||c.push(l),c),[])),a[i]=n.concat(o)}else a[i]=s;return a},{...e})}function Ex(e){if(Bw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(cr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function Cx(e,t){const r=new Map(e.map(n=>[String(n.value),n])),a=new Set(t.filter(n=>n!=="*").map(String)),i=e.filter(n=>!a.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return i;const s=r.get(String(n));return s?[s]:[]})}function Ua(e,t){if(e.enum){let n,s;if(t){const{enumNames:c,enumOrder:l}=be(t);n=c,s=l}let o=e.enum.map((c,l)=>({label:Array.isArray(n)?n[l]||String(c):(n==null?void 0:n[String(c)])||String(c),value:c}));return s&&(o=Cx(o,s)),o}let r,a;e.anyOf?(r=e.anyOf,a=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,a=t==null?void 0:t.oneOf);let i=qr(e);if(t){const{optionsSchemaSelector:n=i}=be(t);i=n}return r==null?void 0:r.map((n,s)=>{var o,c,l;const{title:u}=be(a==null?void 0:a[s]),f=n;let p,d=u;if(i){const h=oe(f,[Je,i],{});p=oe(h,Na,oe(h,cr)),d=(c=(o=d??(h==null?void 0:h.title))!==null&&o!==void 0?o:f.title)!==null&&c!==void 0?c:String(p)}else p=Ex(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(p);return{schema:f,label:d,value:p}})}function Vo(e,t,r={},a){const i=tr(e,t,r,void 0,a),n=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&Dg(s)):!1}function ef(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Vo(e,t.items,r,a)}const Ax=["string","number","integer","boolean","null"];var xi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(xi||(xi={}));function tf(e,t=xi.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==xi.Ignore&&_e(e.additionalItems)?e.additionalItems:{}}function Fg(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Dt(t)&&r===null?null:t}function Mg(e,t,r,a,i,n=[],s={},o=!1,c=!1){const{emptyObjectFields:l="populateAllDefaults"}=s;if(a===!0||o)e[t]=r;else if(a==="excludeObjectChildren")(c&&r!==void 0||!_e(r)||!Dt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;_e(r)?l==="skipEmptyDefaults"?Dt(r)||(e[t]=r):(!Dt(r)||n.includes(t))&&(u||l!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(l==="populateAllDefaults"||l==="skipEmptyDefaults"||u&&n.includes(t))&&(e[t]=r)}}function ia(e,t,r={}){const{parentDefaults:a,rawFormData:i,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:p}=r;let d=_e(i)?i:{};const h=_e(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=o;if(h[cr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!Ng(h))k=h[cr];else if(_e(k)&&_e(h.default)&&!h[Ve]&&!h[Fe]&&!h[gt])v?k=aa(h.default,k):k=aa(k,h.default);else if(Na in h&&!v&&!h[Ve]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];o.includes(g)||(w=o.concat(g),y=Es(g,n));const S=i===void 0||_e(i)&&Dt(i);y&&!k&&S&&(k=h.default),f&&y&&!_e(i)&&(d=i)}else if(tu in h){const g={...jg(e,h,r,k),...d};[y]=Og(e,h,n,!1,[],g,l)}else if(Qu(h)&&!v)k=h.items.map((g,S)=>ia(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,parentDefaults:Array.isArray(a)?a[S]:void 0,rawFormData:d,required:u,shouldMergeDefaultsIntoFormData:f}));else if(Fe in h){const{oneOf:g,...S}=h;if(g.length===0)return;const A=qr(h),{type:x="null"}=S;!Array.isArray(x)&&Ax.includes(x)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}else if(Ve in h){const{anyOf:g,...S}=h;if(g.length===0)return;const A=qr(h);y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}if(y)return ia(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=h.default);const E=jg(e,h,r,k);let m=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,A=rf(e,h,n,i,c,l);(!_e(i)||vn in h)&&(m=Ts(m,A,S,!0))}return m}function rf(e,t,r,a,i,n){const s=(i==null?void 0:i.allOf)==="populateDefaults"&&vn in t,o=s?tr(e,t,r,a,n):t,c=!Dg(o)&&Vo(e,o,r,n);let l=a;if(c){const f=Ua(o);l=(f==null?void 0:f.some(d=>Xe(d.value,a)))?a:void 0}return o[cr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=o.const:_e(l)&&_e(o.properties)&&(l=Object.keys(o.properties).reduce((f,p)=>{const d=oe(o,[Je,p],{});return p in f&&(s||_e(d)&&vn in d)&&(f[p]=rf(e,d,r,oe(f,p),i,n)),f},{...l})),l}function _x(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:c,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){{const p=_e(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&vn in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&ru in d?tr(e,d,a,p,o):d,v=k[cr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const m=oe(k,[Je,w],{}),g=_e(v)&&v[w]!==void 0,S=(_e(m)&&cr in m||g)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Ng(m),A=ia(e,m,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[w]),rawFormData:oe(p,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return Mg(b,w,A,i,c,k.required,s,S,(m==null?void 0:m.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=_e(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(m=>!k.properties||!k.properties[m]).forEach(m=>{w.add(m),E.push(m)}),_e(f)&&E.length===0&&Object.keys(f).filter(m=>!k.properties||!k.properties[m]).forEach(m=>w.add(m)),w.forEach(m=>{var g;const S=ia(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[m]),rawFormData:oe(p,[m]),required:(g=k.required)===null||g===void 0?void 0:g.includes(m),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});Mg(y,m,S,i,c,E)})}return Fg(t,y)}}function Ox(e,t,{rawFormData:r,rootSchema:a={},_recurseList:i=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:c=!1,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){var p,d;let h=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",m=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((C,_)=>{const F=tf(k,xi.Fallback,_),I=Array.isArray(r)?r[_]:void 0;return ia(e,F,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:C,rawFormData:I,required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const C=tf(k);if(w)h=r;else{const _=r.map((I,j)=>ia(e,C,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:I,parentDefaults:oe(h,[j]),required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Ts(h,_,(E&&o||m)&&b)}}const x=Array.isArray(h)?h.length:0;if(w)return l&&!o?h:h??A;if(E&&!o)return h||void 0;let O;if(!k.minItems||ef(e,k,a,s)||g(e,k,a)||k.minItems<=x)O=h||!o&&!c?h:A;else{const C=h||[],_=tf(k,xi.Invert),F=_.default,I=Array.from({length:k.minItems-x},()=>ia(e,_,{parentDefaults:F,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:l}));O=C.concat(I)}return Fg(t,O)}function jg(e,t,r={},a){switch(zr(t)){case"object":return _x(e,t,r,a);case"array":return Ox(e,t,r,a);default:return}}function Lg(e,t,r,a,i=!1,n,s,o){if(!_e(t))throw new Error(`Invalid schema: ${t}`);const c=tr(e,t,a,r,s),l=ia(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(c.type!=="object"&&_e(c.default))return{...l,...r};if(_e(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",p=rf(e,c,a??c,r,n,s);return Ts(l,p,!0,f,!0)}return l}function Rg(e={}){return"widget"in be(e)&&be(e).widget!=="hidden"}function qg(e,t,r={},a,i){if(r[ou]==="files")return!0;if(t.items){const n=tr(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function xx(e,t,r={},a,i,n){const s=be(r,i),{label:o=!0}=s;let c=!!o;if(c){const l=zr(t),u=!!t[Xn];l==="array"&&(c=u||ef(e,t,a,n)||qg(e,t,r,a,n)||Rg(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[ou]&&(c=!1),r!=null&&r[Kw]&&(c=!1)}return c}function zg(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var s=t[a],o=Oo(e,s);r(o,s)&&qu(n,bi(s,e),o)}return n}function Tx(e,t){return zg(e,t,function(r,a){return ng(e,a)})}var $g=qh(function(e,t){return e==null?{}:Tx(e,t)});function Px(e,t){if(t.length===0&&typeof e!="object")return e;const r=$g(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function Ix(e,t){const r=(i,n)=>typeof i!="object"||Dt(i)||n&&!Dt(i),a=(i,n=[],s=[[]])=>{const o=Object.keys(i);return o.forEach(c=>{const l=i[c];if(typeof l=="object"){const u=s.map(f=>[...f,c]);l[su]&&l[ko]!==""?n.push(l[ko]):a(l,n,u)}else c===ko&&l!==""&&s.forEach(u=>{const f=oe(t,u),p=o.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(u)})}),n};return a(e)}function Ug(e){return Oi(e)||e===""?!0:Array.isArray(e)?e.length===0:_e(e)?Object.values(e).every(Ug):!1}function Nx(e,t){return t?t(e):wg(e)}function Dx(e,t,r={},a,i){function n(h){return _e(h)}function s(h){return _e(h)}function o(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:m}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(x,O,C,_=!1){var F;const I=d(O,C,v[x]);if(!_&&_e(I)){let j=s(O)?O:{};j.$ref!==void 0&&(j=Es(j.$ref,r));const $=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&Ug(ie)))return}I!==void 0&&(v[x]=I)}if(b!==void 0)for(const[x,O]of Object.entries(b))S(x,O,k[x],g.has(x));let A;if(E!==void 0){A=[];const x=Object.entries(E).map(([C,_])=>[new RegExp(C),_]),O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))if(!O.has(C)){const F=x.find(([I])=>I.test(C));F===void 0?A.push(C):S(C,F[1],_)}}if(w!==void 0&&w!==!1){const x=w;if(A!==void 0)for(const O of A)S(O,x,k[O]);else{const O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))O.has(C)||S(C,x,_)}}if(m!==void 0)for(const[x,O]of Object.entries(k))v[x]=O;return v}function c(h,k,v){const{items:y,additionalItems:b}=h;if(y!==void 0)if(Array.isArray(y))for(let w=0;w<y.length;w+=1)v.push(d(y[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(y,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function l(h,k,v){const{if:y,then:b,else:w}=h;if(y===void 0)return v;const m=(s(y)?e.isValid(y,k,r):y)?b:w;return m===void 0?v:d(m,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||Vo(e,k,r,i))return y;const b=_g(h,!0,r),w=_i(e,r,v,b,0,qr(k),i),E=h[w],m=_e(E)?na(E,r,[]):b[w];return d(m,v,y)}function f(h,k,v){const{anyOf:y}=h;if(!Array.isArray(y))return v;if(k===void 0||Array.isArray(k)&&k.length===0||_e(k)&&Object.keys(k).length===0){let b=v;for(const w of y)b=d(w,k,b);return b}return u(y,h,k,v)}function p(h,k,v){const{dependencies:y}=h;if(y===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(y))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(h,k,v){if(k===void 0||h===!1)return;if(h===!0||Dt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(Es(b,r),k,v);if(w){y=Nx(y,i);const g=y.allOf;if(g)for(let S=0;S<g.length;S++)v=d(g[S],k,v)}let E=f(y,k,u(y.oneOf,y,k,v));const m=zr(y);if(m==="object"){if(!n(k))return;E=o(y,k,n(E)?E:{})}else if(m==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return p(y,k,l(y,k,E))}return d(t,a)}const $r=Symbol("no Value");function Bg(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(a=>cr in a?a[cr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:$r).filter(a=>a!==$r);return r.length>0?r:void 0}function Fx(e,t){const r=Bg(e);if(!r||r.some(i=>Xe(i,t)))return $r;const a=oe(e,Na,$r);return a!==$r&&r.some(i=>Xe(i,a))?a:r.length===1?r[0]:void 0}function nf(e,t,r,a,i={},n){let s;if(Ke(r,Je)){const o={};if(Ke(a,Je)){const u=oe(a,Je,{});Object.keys(u).forEach(f=>{Ke(i,f)&&(o[f]=void 0)})}const c=Object.keys(oe(r,Je,{})),l={};c.forEach(u=>{const f=oe(i,u);let p=oe(a,[Je,u],{}),d=oe(r,[Je,u],{});Ke(p,gt)&&(p=tr(e,p,t,f,n)),Ke(d,gt)&&(d=tr(e,d,t,f,n));const h=oe(p,"type"),k=oe(d,"type");if(!h||h===k)if(Ke(o,u)&&delete o[u],k==="object"||k==="array"&&Array.isArray(f)){const v=nf(e,t,d,p,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=oe(d,Na,$r),y=oe(p,Na,$r);v!==$r&&v!==f&&(y===f?o[u]=v:oe(d,"readOnly")===!0&&(o[u]=void 0));const b=oe(d,cr,$r),w=oe(p,cr,$r);if(b!==$r&&b!==f&&(o[u]=w===f?b:void 0),Ke(i,u)){const E=Fx(d,f);E!==$r&&(o[u]=E)}}}),s={...typeof i=="string"||Array.isArray(i)?void 0:i,...o,...l}}else if(oe(a,"type")==="array"&&oe(r,"type")==="array"&&Array.isArray(i)){let o=oe(a,"items"),c=oe(r,"items");if(typeof o=="object"&&typeof c=="object"&&!Array.isArray(o)&&!Array.isArray(c)){Ke(o,gt)&&(o=tr(e,o,t,i,n)),Ke(c,gt)&&(c=tr(e,c,t,i,n));const l=oe(o,"type"),u=oe(c,"type");if(!l||l===u){const f=oe(r,"maxItems",-1);if(u==="object")s=i.reduce((p,d)=>{const h=nf(e,t,c,o,d,n);return h!==void 0&&(f<0||p.length<f)&&p.push(h),p},[]);else{const p=Bg(c),d=p?i.filter(h=>p.some(k=>Xe(k,h))):i;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof c=="boolean"&&o===c&&(s=i)}return s}function sa(e,t,r,a,i,n=[],s){if(gt in t||tu in t||vn in t||ru in t){const c=tr(e,t,a,i,s);if(n.findIndex(u=>Xe(u,c))===-1)return sa(e,c,r,a,i,n.concat(c),s)}let o={[ko]:r.replace(/^\./,"")};if(Fe in t||Ve in t){const c=Fe in t?t.oneOf:t.anyOf,l=qr(t),u=_i(e,a,i,c,0,l,s),f=c[u];o={...o,...sa(e,f,r,a,i,n,s)}}if(gi in t&&t[gi]!==!1){vt(o,su,!0);const c=Ye(t[gi])?t[gi]:{},l=oe(t,Je,{});for(const u of Object.keys(i??{}))u in l||(o[u]=sa(e,c,`${r}.${u}`,a,oe(i,[u]),n,s))}if(yi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?o[f]=sa(e,c[f],`${r}.${f}`,a,u,n,s):l?o[f]=sa(e,l,`${r}.${f}`,a,u,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):i.forEach((u,f)=>{o[f]=sa(e,c,`${r}.${f}`,a,u,n,s)})}else if(Je in t)for(const c in t.properties){const l=oe(t,[Je,c],{});o[c]=sa(e,l,`${r}.${c}`,a,oe(i,[c]),n,s)}return o}function Mx(e,t,r="",a,i,n){return sa(e,t,r,a,i,void 0,n)}class jx{constructor(t,r,a,i){(r==null?void 0:r[os])===Eo?this.rootSchema=Mu(r,oe(r,dt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},i){return!t||!r?!1:this.validator!==t||!Xe(this.rootSchema,r)||!Xe(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return yx(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,a,i){return xs(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,a=!1,i){return Lg(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return xx(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return _i(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return zo(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Bo(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return qg(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return ef(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Vo(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return Dx(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return tr(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return nf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return Mx(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function Lx(e,t,r={},a){return new jx(e,t,r,a)}function Rx(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,n]=a,[s,...o]=i.split(";"),c=s||"",l=decodeURI(((t=o.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(n),f=new Array(u.length);for(let d=0;d<u.length;d+=1)f[d]=u.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:c}),name:l}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function oa(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Vg(e,t){const r=e<=0&&t<=0,a=e<0||t<0;if(!r&&a)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),n=r?i+e:e,s=r?i+t:t;if(n>s)return Vg(t,e).reverse();const o=[];for(let c=n;c<=s;c+=1)o.push({value:c,label:oa(c,2)});return o}function qx(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((i,n)=>{const s=a.findIndex(o=>o===`%${n+1}`);s>=0&&(a[s]=i)}),r=a.join("")}return r}function zx(e,t){return qx(e,t)}function Ho(e,t=[],r){if(Array.isArray(e))return e.map(n=>Ho(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function Hg(e,t,r=[]){const a=Ho(e,r);return Array.isArray(t)?t.filter(i=>!Xe(i,a)):Xe(a,t)?void 0:t}function Ti(e,t){return Array.isArray(t)?t.some(r=>Xe(r,e)):Xe(t,e)}function Wg(e,t=[],r=!1){const a=t.map((i,n)=>Ti(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function $x(e,t,r,a="indexed",i){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===i)return i;if(a==="realValue")return r?e.map(String):String(e);const s=Wg(e,t,r);return typeof s>"u"?i:s}function Kg(e,t,r=[]){const a=Ho(e,r);if(!Oi(a)){const i=r.findIndex(o=>a===o.value),n=r.map(({value:o})=>o);return t.slice(0,i).concat(a,t.slice(i)).sort((o,c)=>+(n.indexOf(o)>n.indexOf(c)))}return t}function Gg(e,t,r){if(e===""||!Array.isArray(t))return r;const a=t.find(n=>String(n.value)===e);if(a)return a.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<t.length?t[i].value:r}function tn(e,t,r="indexed",a){return r!=="realValue"?Ho(e,t,a):Array.isArray(e)?e.map(i=>Gg(i,t,a)):Gg(e,t,a)}function Ps(e,t,r="indexed"){return r!=="realValue"?String(t):Oi(e)?"":String(typeof e=="object"?t:e)}var Ux=1,Bx=4;function Wo(e){return ks(e,Ux|Bx)}function Vx(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:qu(e,t,r,a)}class Jg{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?oe(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},Vx(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Wo(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=oe(a,er);return Array.isArray(i)||(i=[],a[er]=i),Array.isArray(t)?vt(a,er,[...new Set([...i,...t])]):vt(a,er,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return vt(a,er,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return vt(r,er,[]),this}}var Hx=200;function Wx(e,t,r,a){var i=-1,n=Vu,s=!0,o=e.length,c=[],l=t.length;if(!o)return c;t.length>=Hx&&(n=As,s=!1,t=new qa(t));e:for(;++i<o;){var u=e[i],f=u;if(u=u!==0?u:0,s&&f===f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var Kx=jo(function(e,t){return Cs(e)?Wx(e,ws(t,1,Cs,!0)):[]});function Gx(e,t){if(e==null)return{};var r=vi(Nu(e),function(a){return[a]});return t=Bu(t),zg(e,r,function(a,i){return t(a,i[0])})}function Yg(e,t){const r=Qn(e),a=Qn(t);if(e===t||!r&&!a)return[];if(r&&!a)return en(e);if(!r&&a)return en(t);const i=en(Gx(e,(s,o)=>!Xe(s,oe(t,o)))),n=Kx(en(t),en(e));return[...i,...n]}function Jx(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:i,month:n,year:s,hour:o,minute:c,second:l}=e,u={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:n},p={type:"year",range:r,value:s},d=[];switch(a){case"MDY":d.push(f,u,p);break;case"DMY":d.push(u,f,p);break;case"YMD":default:d.push(p,f,u)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),d}function Yx(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function Xx(e,t,r={},a=!0){const i={type:t||"text",...Yx(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",a&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(e.formatMinimum!==void 0&&(i.min=e.formatMinimum),e.formatMaximum!==void 0&&(i.max=e.formatMaximum)),r.autocomplete&&(i.autoComplete=r.autocomplete),r.accept&&(i.accept=r.accept),i}function Is(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Xg={props:{disabled:!1},submitText:"Submit",norender:!1};function Zg(e={}){const t=be(e);if(t!=null&&t[wo]){const r=t[wo];return{...Xg,...r}}return Xg}function Ce(e,t,r={}){const{templates:a}=t;if(e==="ButtonTemplates")return a[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(a,r[e])){const i=r[e];return a[i]}return r[e]||a[e]}var Zx=0;function Qg(e){var t=++Zx;return pu(e)+t}function af(){if(oe(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,Qg("test-id-")),e.get(r)}})}var Ko={exports:{}},pt={};/**
|
|
32
|
+
*/var wm;function Uw(){return wm||(wm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(n=i(n,a(s)))}return n}function a(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)t.call(n,s)&&n[s]&&(o=i(o,s));return o}function i(n,o){return o?n?n+" "+o:n+o:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(eu)),eu.exports}var Bw=Uw();const hi=gn(Bw);function _e(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function Vw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),_e(e.additionalItems)}function Sm(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function Em(e){if(e==="")return;if(e===null)return null;const t=Sm(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const a=Number(r);return typeof a=="number"&&!Number.isNaN(a)?a:e}const Xn=Symbol("__additional_property"),gi="additionalProperties",vn="allOf",Ve="anyOf",cr="const",Na="default",tu="dependencies",Hw="enum",er="__errors",dt="$id",ru="if",yi="items",Ww="_$junk_option_schema_id$_",ks="$name",Fe="oneOf",nu="patternProperties",Je="properties",au="readonly",Cm="required",ws="submitButtonOptions",gt="$ref",Ss=Symbol("__rjsf_ref"),iu=Symbol("__rjsf_ref_cycle"),so="$schema",Am="root",_m="_",Kw=["discriminator","propertyName"],Om="formContext",Gw="layoutGridLookupMap",xm="__rjsf",ou=`${xm}_additionalProperties`,Tm=`${xm}_rootSchema`,Jw="ui:field",su="ui:widget",Zn="ui:options",lu="ui:globalOptions",Yw="ui:definitions",Xw="https://json-schema.org/draft/2019-09/schema",Es="https://json-schema.org/draft/2020-12/schema";function be(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===su&&_e(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===Zn&&_e(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function Pm(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=be(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Im=typeof global=="object"&&global&&global.Object===Object&&global,Zw=typeof self=="object"&&self&&self.Object===Object&&self,bn=Im||Zw||Function("return this")(),jr=bn.Symbol,Nm=Object.prototype,Qw=Nm.hasOwnProperty,eS=Nm.toString,lo=jr?jr.toStringTag:void 0;function tS(e){var t=Qw.call(e,lo),r=e[lo];try{e[lo]=void 0;var a=!0}catch{}var i=eS.call(e);return a&&(t?e[lo]=r:delete e[lo]),i}var rS=Object.prototype,nS=rS.toString;function aS(e){return nS.call(e)}var iS="[object Null]",oS="[object Undefined]",Dm=jr?jr.toStringTag:void 0;function Mn(e){return e==null?e===void 0?oS:iS:Dm&&Dm in Object(e)?tS(e):aS(e)}function Fm(e,t){return function(r){return e(t(r))}}var Cs=Fm(Object.getPrototypeOf,Object);function Lr(e){return e!=null&&typeof e=="object"}var sS="[object Object]",lS=Function.prototype,cS=Object.prototype,Mm=lS.toString,uS=cS.hasOwnProperty,fS=Mm.call(Object);function Qn(e){if(!Lr(e)||Mn(e)!=sS)return!1;var t=Cs(e);if(t===null)return!0;var r=uS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Mm.call(r)==fS}function cu(e){const t={[er]:[],addError(r){this[er].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:cu(a)}),t);if(Qn(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:cu(r[i])}),t)}return t}var Bt=Array.isArray,dS="[object Symbol]";function co(e){return typeof e=="symbol"||Lr(e)&&Mn(e)==dS}var pS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mS=/^\w*$/;function uu(e,t){if(Bt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:mS.test(e)||!pS.test(e)||t!=null&&e in Object(t)}function Ye(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hS="[object AsyncFunction]",gS="[object Function]",yS="[object GeneratorFunction]",vS="[object Proxy]";function uo(e){if(!Ye(e))return!1;var t=Mn(e);return t==gS||t==yS||t==hS||t==vS}var fu=bn["__core-js_shared__"],jm=(function(){var e=/[^.]+$/.exec(fu&&fu.keys&&fu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function bS(e){return!!jm&&jm in e}var kS=Function.prototype,wS=kS.toString;function Da(e){if(e!=null){try{return wS.call(e)}catch{}try{return e+""}catch{}}return""}var SS=/[\\^$.*+?()[\]{}|]/g,ES=/^\[object .+?Constructor\]$/,CS=Function.prototype,AS=Object.prototype,_S=CS.toString,OS=AS.hasOwnProperty,xS=RegExp("^"+_S.call(OS).replace(SS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function TS(e){if(!Ye(e)||bS(e))return!1;var t=uo(e)?xS:ES;return t.test(Da(e))}function PS(e,t){return e==null?void 0:e[t]}function Fa(e,t){var r=PS(e,t);return TS(r)?r:void 0}var fo=Fa(Object,"create");function IS(){this.__data__=fo?fo(null):{},this.size=0}function NS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DS="__lodash_hash_undefined__",FS=Object.prototype,MS=FS.hasOwnProperty;function jS(e){var t=this.__data__;if(fo){var r=t[e];return r===DS?void 0:r}return MS.call(t,e)?t[e]:void 0}var LS=Object.prototype,RS=LS.hasOwnProperty;function qS(e){var t=this.__data__;return fo?t[e]!==void 0:RS.call(t,e)}var zS="__lodash_hash_undefined__";function $S(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fo&&t===void 0?zS:t,this}function Ma(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ma.prototype.clear=IS,Ma.prototype.delete=NS,Ma.prototype.get=jS,Ma.prototype.has=qS,Ma.prototype.set=$S;function US(){this.__data__=[],this.size=0}function po(e,t){return e===t||e!==e&&t!==t}function As(e,t){for(var r=e.length;r--;)if(po(e[r][0],t))return r;return-1}var BS=Array.prototype,VS=BS.splice;function HS(e){var t=this.__data__,r=As(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():VS.call(t,r,1),--this.size,!0}function WS(e){var t=this.__data__,r=As(t,e);return r<0?void 0:t[r][1]}function KS(e){return As(this.__data__,e)>-1}function GS(e,t){var r=this.__data__,a=As(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}jn.prototype.clear=US,jn.prototype.delete=HS,jn.prototype.get=WS,jn.prototype.has=KS,jn.prototype.set=GS;var mo=Fa(bn,"Map");function JS(){this.size=0,this.__data__={hash:new Ma,map:new(mo||jn),string:new Ma}}function YS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _s(e,t){var r=e.__data__;return YS(t)?r[typeof t=="string"?"string":"hash"]:r.map}function XS(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}function ZS(e){return _s(this,e).get(e)}function QS(e){return _s(this,e).has(e)}function eE(e,t){var r=_s(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Ln.prototype.clear=JS,Ln.prototype.delete=XS,Ln.prototype.get=ZS,Ln.prototype.has=QS,Ln.prototype.set=eE;var tE="Expected a function";function du(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tE);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var o=e.apply(this,a);return r.cache=n.set(i,o)||n,o};return r.cache=new(du.Cache||Ln),r}du.Cache=Ln;var rE=500;function nE(e){var t=du(e,function(a){return r.size===rE&&r.clear(),a}),r=t.cache;return t}var aE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iE=/\\(\\)?/g,Lm=nE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(aE,function(r,a,i,n){t.push(i?n.replace(iE,"$1"):a||r)}),t});function vi(e,t){for(var r=-1,a=e==null?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var Rm=jr?jr.prototype:void 0,qm=Rm?Rm.toString:void 0;function zm(e){if(typeof e=="string")return e;if(Bt(e))return vi(e,zm)+"";if(co(e))return qm?qm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pu(e){return e==null?"":zm(e)}function bi(e,t){return Bt(e)?e:uu(e,t)?[e]:Lm(pu(e))}function ea(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Os(e,t){t=bi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ea(t[r++])];return r&&r==a?e:void 0}function se(e,t,r){var a=e==null?void 0:Os(e,t);return a===void 0?r:a}const{getOwnPropertyNames:$m,getOwnPropertySymbols:oE}=Object,{hasOwnProperty:sE}=Object.prototype;function mu(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function xs(e){return function(r,a,i){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,i);const{cache:n}=i,o=n.get(r),s=n.get(a);if(o&&s)return o===a&&s===r;n.set(r,a),n.set(a,r);const c=e(r,a,i);return n.delete(r),n.delete(a),c}}function Um(e){const t=oE(e);return t.length?$m(e).concat(t):$m(e)}const lE=Object.hasOwn||((e,t)=>sE.call(e,t)),cE="__v",uE="__o",fE="_owner",{getOwnPropertyDescriptor:Bm,keys:Vm}=Object,ja=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function dE(e,t){return e===t}function pE(e,t){return e.byteLength===t.byteLength&&Ts(new Uint8Array(e),new Uint8Array(t))}function mE(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function hE(e,t){return e.byteLength===t.byteLength&&Ts(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function gE(e,t){return ja(e.getTime(),t.getTime())}function yE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Hm(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.entries();let o,s,c=0;for(;(o=n.next())&&!o.done;){const l=t.entries();let u=0,f=0;for(;(s=l.next())&&!s.done;){if(i[f]){f++;continue}const p=o.value,d=s.value;if(r.equals(p[0],d[0],c,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function vE(e,t,r){const a=Vm(e);let i=a.length;if(Vm(t).length!==i)return!1;for(;i-- >0;)if(!Km(e,t,r,a[i]))return!1;return!0}function ho(e,t,r){const a=Um(e);let i=a.length;if(Um(t).length!==i)return!1;let n,o,s;for(;i-- >0;)if(n=a[i],!Km(e,t,r,n)||(o=Bm(e,n),s=Bm(t,n),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function bE(e,t){return ja(e.valueOf(),t.valueOf())}function kE(e,t){return e.source===t.source&&e.flags===t.flags}function Wm(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.values();let o,s;for(;(o=n.next())&&!o.done;){const c=t.values();let l=0,u=0;for(;(s=c.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){l=i[u]=1;break}u++}if(!l)return!1}return!0}function Ts(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function wE(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Km(e,t,r,a){return(a===fE||a===uE||a===cE)&&(e.$$typeof||t.$$typeof)?!0:lE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const SE=Object.prototype.toString;function EE(e){const t=OE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:o,areObjectsEqual:s,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(p,d,h){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?o(p,d,h):k==="function"?i(p,d,h):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return s(p,d,h);if(v===Array)return r(p,d,h);if(v===Date)return a(p,d,h);if(v===RegExp)return c(p,d,h);if(v===Map)return n(p,d,h);if(v===Set)return l(p,d,h);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,h);const y=SE.call(p),b=t[y];if(b)return b(p,d,h);const w=u&&u(p,d,h,y);return w?w(p,d,h):!1}}function CE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:pE,areArraysEqual:r?ho:mE,areDataViewsEqual:hE,areDatesEqual:gE,areErrorsEqual:yE,areFunctionsEqual:dE,areMapsEqual:r?mu(Hm,ho):Hm,areNumbersEqual:ja,areObjectsEqual:r?ho:vE,arePrimitiveWrappersEqual:bE,areRegExpsEqual:kE,areSetsEqual:r?mu(Wm,ho):Wm,areTypedArraysEqual:r?mu(Ts,ho):Ts,areUrlsEqual:wE,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=xs(a.areArraysEqual),n=xs(a.areMapsEqual),o=xs(a.areObjectsEqual),s=xs(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:o,areSetsEqual:s})}return a}function AE(e){return function(t,r,a,i,n,o,s){return e(t,r,s)}}function _E({circular:e,comparator:t,createState:r,equals:a,strict:i}){if(r)return function(s,c){const{cache:l=e?new WeakMap:void 0,meta:u}=r();return t(s,c,{cache:l,equals:a,meta:u,strict:i})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};const n={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return t(s,c,n)}}function OE({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:i,areFunctionsEqual:n,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":s,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":o,"[object Number]":l,"[object Object]":(h,k,v)=>typeof h.then!="function"&&typeof k.then!="function"&&c(h,k,v),"[object RegExp]":u,"[object Set]":f,"[object String]":l,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}Rn(),Rn({strict:!0}),Rn({circular:!0}),Rn({circular:!0,strict:!0}),Rn({createInternalComparator:()=>ja}),Rn({strict:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja}),Rn({circular:!0,createInternalComparator:()=>ja,strict:!0});function Rn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=CE(e),o=EE(n),s=r?r(o):AE(o);return _E({circular:t,comparator:o,createState:a,equals:s,strict:i})}const Xe=Rn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var go={exports:{}},hu,Gm;function Jm(){if(Gm)return hu;Gm=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function o(O){let C="",_=0,F=0;for(F=0;F<O.length;F++)if(_=O[F].charCodeAt(0),_!==48){if(!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F];break}for(F+=1;F<O.length;F++){if(_=O[F].charCodeAt(0),!(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102))return"";C+=O[F]}return C}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(O){return O.length=0,!0}function l(O,C,_){if(O.length){const F=o(O);if(F!=="")C.push(F);else return _.error=!0,!1;O.length=0}return!0}function u(O){let C=0;const _={error:!1,address:"",zone:""},F=[],I=[];let j=!1,$=!1,Y=l;for(let Z=0;Z<O.length;Z++){const ie=O[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(j===!0&&($=!0),!Y(I,F,_))break;if(++C>7){_.error=!0;break}Z>0&&O[Z-1]===":"&&(j=!0),F.push(":");continue}else if(ie==="%"){if(!Y(I,F,_))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?_.zone=I.join(""):$?F.push(I.join("")):F.push(o(I))),_.address=F.join(""),_}function f(O){if(p(O,":")<2)return{host:O,isIPV6:!1};const C=u(O);if(C.error)return{host:O,isIPV6:!1};{let _=C.address,F=C.address;return C.zone&&(_+="%"+C.zone,F+="%25"+C.zone),{host:_,isIPV6:!0,escapedHost:F}}}function p(O,C){let _=0;for(let F=0;F<O.length;F++)O[F]===C&&_++;return _}function d(O){let C=O;const _=[];let F=-1,I=0;for(;I=C.length;){if(I===1){if(C===".")break;if(C==="/"){_.push("/");break}else{_.push(C);break}}else if(I===2){if(C[0]==="."){if(C[1]===".")break;if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){_.push("/");break}}else if(I===3&&C==="/.."){_.length!==0&&_.pop(),_.push("/");break}if(C[0]==="."){if(C[1]==="."){if(C[2]==="/"){C=C.slice(3);continue}}else if(C[1]==="/"){C=C.slice(2);continue}}else if(C[0]==="/"&&C[1]==="."){if(C[2]==="/"){C=C.slice(2);continue}else if(C[2]==="."&&C[3]==="/"){C=C.slice(3),_.length!==0&&_.pop();continue}}if((F=C.indexOf("/",1))===-1){_.push(C);break}else _.push(C.slice(0,F)),C=C.slice(F)}return _.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(O,C){const _=C?v:k;return _.lastIndex=0,O.replace(_,F=>h[F])}function b(O,C=!1){if(O.indexOf("%")===-1)return O;let _="";for(let F=0;F<O.length;F++){if(O[F]==="%"&&F+2<O.length){const I=O.slice(F+1,F+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));C&&a($)?_+=$:_+="%"+j,F+=2;continue}}_+=O[F]}return _}const w=new Array(256);{const O="0123456789ABCDEF";for(let C=0;C<256;C++)w[C]="%"+O[C>>4]+O[C&15]}function E(O){return O>=48&&O<=57||O>=65&&O<=90||O>=97&&O<=122||O===42||O===43||O===45||O===46||O===47||O===64||O===95}function m(O){return O<2048?w[192|O>>6]+w[128|O&63]:O<65536?w[224|O>>12]+w[128|O>>6&63]+w[128|O&63]:w[240|O>>18]+w[128|O>>12&63]+w[128|O>>6&63]+w[128|O&63]}function g(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));$!=="."&&a($)?C+=$:C+="%"+j,_+=2;continue}}if(i(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function S(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const I=O.slice(_+1,_+3);if(r(I)){const j=I.toUpperCase(),$=String.fromCharCode(parseInt(j,16));a($)?C+=$:C+="%"+j,_+=2;continue}}if(n(F))C+=F;else{const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}}return C}function A(O){let C="";for(let _=0;_<O.length;_++){const F=O[_];if(F==="%"&&_+2<O.length){const j=O.slice(_+1,_+3);if(r(j)){C+="%"+j.toUpperCase(),_+=2;continue}}const I=O.charCodeAt(_);if(I<128)C+=E(I)?F:w[I];else if(I<55296||I>57343)C+=m(I);else if(I<=56319&&_+1<O.length){const j=O.charCodeAt(_+1);j>=56320&&j<=57343?(C+=m(65536+(I-55296<<10)+(j-56320)),_++):C+=m(65533)}else C+=m(65533)}return C}function x(O){const C=[];if(O.userinfo!==void 0&&(C.push(O.userinfo),C.push("@")),O.host!==void 0){let _=unescape(O.host);if(!t(_)){const F=f(_);F.isIPV6===!0?_=`[${F.escapedHost}]`:_=y(_,!1)}C.push(_)}return(typeof O.port=="number"||typeof O.port=="string")&&(C.push(":"),C.push(String(O.port))),C.length?C.join(""):void 0}return hu={nonSimpleDomain:s,recomposeAuthority:x,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:o},hu}var gu,Ym;function xE(){if(Ym)return gu;Ym=1;const{isUUID:e}=Jm(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function o(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function s(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return gu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},gu}var Xm;function TE(){if(Xm)return go.exports;Xm=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:l}=Jm(),{SCHEMES:u,getSchemeHandler:f}=xE();function p(C,_){return typeof C=="string"?C=S(C,_):typeof C=="object"&&(C=g(v(C,_),_)),C}function d(C,_,F){const I=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:$}=m(C,I),{parsed:Y,malformedAuthorityOrPort:Z}=m(_,I);if($||Z)throw new Error(j.error||Y.error||"URI is malformed.");const ie=h(j,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(C,_,F,I){const j={};return I||(C=g(v(C,F),F),_=g(v(_,F),F)),F=F||{},!F.tolerant&&_.scheme?(j.scheme=_.scheme,j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(j.userinfo=_.userinfo,j.host=_.host,j.port=_.port,j.path=t(_.path||""),j.query=_.query):(_.path?(_.path[0]==="/"?j.path=t(_.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?j.path="/"+_.path:C.path?j.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+_.path:j.path=_.path,j.path=t(j.path)),j.query=_.query):(j.path=C.path,_.query!==void 0?j.query=_.query:j.query=C.query),j.userinfo=C.userinfo,j.host=C.host,j.port=C.port),j.scheme=C.scheme),j.fragment=_.fragment,j}function k(C,_,F){const I=x(C,F),j=x(_,F);return I!==void 0&&j!==void 0&&I.toLowerCase()===j.toLowerCase()}function v(C,_){const F={host:C.host,scheme:C.scheme,userinfo:C.userinfo,port:C.port,path:C.path,query:C.query,nid:C.nid,nss:C.nss,uuid:C.uuid,fragment:C.fragment,reference:C.reference,resourceName:C.resourceName,secure:C.secure,error:""},I=Object.assign({},_),j=[],$=f(I.scheme||F.scheme);$&&$.serialize&&$.serialize(F,I),F.path!==void 0&&(I.skipEscape?F.path=a(F.path):(F.path=o(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),I.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const Y=r(F);if(Y!==void 0&&(I.reference!=="suffix"&&j.push("//"),j.push(Y),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Z=F.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),j.push(Z)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(C,_){if(_[2]!==void 0&&C.path&&C.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof C.port=="number"&&(C.port<0||C.port>65535))return"URI port is malformed."}function m(C,_){const F=Object.assign({},_),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,$=!1;F.reference==="suffix"&&(F.scheme?C=F.scheme+":"+C:C="//"+C);const Y=C.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",j=!0);const Z=C.match(w);if(Z!==null){const P=Z[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",j=!0))}const ie=C.match(y);if(ie){I.scheme=ie[1]===void 0?void 0:ie[1].toLowerCase(),I.userinfo=ie[3],I.host=ie[4],I.port=parseInt(ie[5],10),I.path=ie[6]||"",I.query=ie[7],I.fragment=ie[8],isNaN(I.port)&&(I.port=ie[5]);const P=E(I,ie);if(P!==void 0&&(I.error=I.error||P,j=!0),I.host)if(c(I.host)===!1){const T=e(I.host);I.host=T.host.toLowerCase(),$=T.isIPV6}else $=!0;I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&I.query===void 0&&!I.path?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==I.reference&&(I.error=I.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||I.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&I.host&&(F.domainHost||M&&M.domainHost)&&$===!1&&l(I.host))try{I.host=new URL("http://"+I.host).hostname}catch(U){I.error=I.error||"Host's domain name can not be converted to ASCII: "+U}(!M||M&&!M.skipNormalize)&&(C.indexOf("%")!==-1&&(I.scheme!==void 0&&(I.scheme=unescape(I.scheme)),I.host!==void 0&&(I.host=s(unescape(I.host),$))),I.path&&(I.path=i(I.path)),I.query&&(I.query=n(I.query)),I.fragment&&(I.fragment=n(I.fragment))),M&&M.parse&&M.parse(I,F)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:j}}function g(C,_){return m(C,_).parsed}function S(C,_){return A(C,_).normalized}function A(C,_){const{parsed:F,malformedAuthorityOrPort:I}=m(C,_);return{normalized:I?C:v(F,_),malformedAuthorityOrPort:I}}function x(C,_){if(typeof C=="string"){const{normalized:F,malformedAuthorityOrPort:I}=A(C,_);return I?void 0:F}if(typeof C=="object")return v(C,_)}const O={SCHEMES:u,normalize:p,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return go.exports=O,go.exports.default=O,go.exports.fastUri=O,go.exports}var PE=TE();const yu=gn(PE);var yo={},Zm;function IE(){if(Zm)return yo;Zm=1;var e=/~/,t=/~[01]/g;function r(l){switch(l){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+l)}function a(l){return e.test(l)?l.replace(t,r):l}function i(l,u,f){for(var p,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(p=a(u[h++]),d=k>h,typeof l[p]>"u"&&(Array.isArray(l)&&p==="-"&&(p=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[p]=[]:l[p]={})),!d)break;l=l[p]}var v=l[p];return f===void 0?delete l[p]:l[p]=f,v}function n(l){if(typeof l=="string"){if(l=l.split("/"),l[0]==="")return l;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(l)){for(const u of l)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return l}throw new Error("Invalid JSON pointer.")}function o(l,u){if(typeof l!="object")throw new Error("Invalid input object.");u=n(u);var f=u.length;if(f===1)return l;for(var p=1;p<f;){if(l=l[a(u[p++])],f===p)return l;if(typeof l!="object"||l===null)return}}function s(l,u,f){if(typeof l!="object")throw new Error("Invalid input object.");if(u=n(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(l,u,f)}function c(l){var u=n(l);return{get:function(f){return o(f,u)},set:function(f,p){return s(f,u,p)}}}return yo.get=o,yo.set=s,yo.compile=c,yo}var NE=IE();const vu=gn(NE);var DE=Object.prototype;function Ps(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||DE;return e===r}var FE=Fm(Object.keys,Object),ME=Object.prototype,jE=ME.hasOwnProperty;function Qm(e){if(!Ps(e))return FE(e);var t=[];for(var r in Object(e))jE.call(e,r)&&r!="constructor"&&t.push(r);return t}var bu=Fa(bn,"DataView"),ku=Fa(bn,"Promise"),ki=Fa(bn,"Set"),wu=Fa(bn,"WeakMap"),eh="[object Map]",LE="[object Object]",th="[object Promise]",rh="[object Set]",nh="[object WeakMap]",ah="[object DataView]",RE=Da(bu),qE=Da(mo),zE=Da(ku),$E=Da(ki),UE=Da(wu),Rr=Mn;(bu&&Rr(new bu(new ArrayBuffer(1)))!=ah||mo&&Rr(new mo)!=eh||ku&&Rr(ku.resolve())!=th||ki&&Rr(new ki)!=rh||wu&&Rr(new wu)!=nh)&&(Rr=function(e){var t=Mn(e),r=t==LE?e.constructor:void 0,a=r?Da(r):"";if(a)switch(a){case RE:return ah;case qE:return eh;case zE:return th;case $E:return rh;case UE:return nh}return t});var BE="[object Arguments]";function ih(e){return Lr(e)&&Mn(e)==BE}var oh=Object.prototype,VE=oh.hasOwnProperty,HE=oh.propertyIsEnumerable,wi=ih((function(){return arguments})())?ih:function(e){return Lr(e)&&VE.call(e,"callee")&&!HE.call(e,"callee")},WE=9007199254740991;function Su(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WE}function La(e){return e!=null&&Su(e.length)&&!uo(e)}function KE(){return!1}var sh=typeof st=="object"&&st&&!st.nodeType&&st,lh=sh&&typeof module=="object"&&module&&!module.nodeType&&module,GE=lh&&lh.exports===sh,ch=GE?bn.Buffer:void 0,JE=ch?ch.isBuffer:void 0,Ra=JE||KE,YE="[object Arguments]",XE="[object Array]",ZE="[object Boolean]",QE="[object Date]",eC="[object Error]",tC="[object Function]",rC="[object Map]",nC="[object Number]",aC="[object Object]",iC="[object RegExp]",oC="[object Set]",sC="[object String]",lC="[object WeakMap]",cC="[object ArrayBuffer]",uC="[object DataView]",fC="[object Float32Array]",dC="[object Float64Array]",pC="[object Int8Array]",mC="[object Int16Array]",hC="[object Int32Array]",gC="[object Uint8Array]",yC="[object Uint8ClampedArray]",vC="[object Uint16Array]",bC="[object Uint32Array]",At={};At[fC]=At[dC]=At[pC]=At[mC]=At[hC]=At[gC]=At[yC]=At[vC]=At[bC]=!0,At[YE]=At[XE]=At[cC]=At[ZE]=At[uC]=At[QE]=At[eC]=At[tC]=At[rC]=At[nC]=At[aC]=At[iC]=At[oC]=At[sC]=At[lC]=!1;function kC(e){return Lr(e)&&Su(e.length)&&!!At[Mn(e)]}function Eu(e){return function(t){return e(t)}}var uh=typeof st=="object"&&st&&!st.nodeType&&st,vo=uh&&typeof module=="object"&&module&&!module.nodeType&&module,wC=vo&&vo.exports===uh,Cu=wC&&Im.process,Si=(function(){try{var e=vo&&vo.require&&vo.require("util").types;return e||Cu&&Cu.binding&&Cu.binding("util")}catch{}})(),fh=Si&&Si.isTypedArray,bo=fh?Eu(fh):kC,SC="[object Map]",EC="[object Set]",CC=Object.prototype,AC=CC.hasOwnProperty;function Dt(e){if(e==null)return!0;if(La(e)&&(Bt(e)||typeof e=="string"||typeof e.splice=="function"||Ra(e)||bo(e)||wi(e)))return!e.length;var t=Rr(e);if(t==SC||t==EC)return!e.size;if(Ps(e))return!Qm(e).length;for(var r in e)if(AC.call(e,r))return!1;return!0}function _C(){this.__data__=new jn,this.size=0}function OC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xC(e){return this.__data__.get(e)}function TC(e){return this.__data__.has(e)}var PC=200;function IC(e,t){var r=this.__data__;if(r instanceof jn){var a=r.__data__;if(!mo||a.length<PC-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ln(a)}return r.set(e,t),this.size=r.size,this}function Qr(e){var t=this.__data__=new jn(e);this.size=t.size}Qr.prototype.clear=_C,Qr.prototype.delete=OC,Qr.prototype.get=xC,Qr.prototype.has=TC,Qr.prototype.set=IC;function Au(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var Is=(function(){try{var e=Fa(Object,"defineProperty");return e({},"",{}),e}catch{}})();function _u(e,t,r){t=="__proto__"&&Is?Is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var NC=Object.prototype,DC=NC.hasOwnProperty;function Ou(e,t,r){var a=e[t];(!(DC.call(e,t)&&po(a,r))||r===void 0&&!(t in e))&&_u(e,t,r)}function Ei(e,t,r,a){var i=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var s=t[n],c=void 0;c===void 0&&(c=e[s]),i?_u(r,s,c):Ou(r,s,c)}return r}function dh(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var FC=9007199254740991,MC=/^(?:0|[1-9]\d*)$/;function Ns(e,t){var r=typeof e;return t=t??FC,!!t&&(r=="number"||r!="symbol"&&MC.test(e))&&e>-1&&e%1==0&&e<t}var jC=Object.prototype,LC=jC.hasOwnProperty;function ph(e,t){var r=Bt(e),a=!r&&wi(e),i=!r&&!a&&Ra(e),n=!r&&!a&&!i&&bo(e),o=r||a||i||n,s=o?dh(e.length,String):[],c=s.length;for(var l in e)(t||LC.call(e,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ns(l,c)))&&s.push(l);return s}function en(e){return La(e)?ph(e):Qm(e)}function RC(e,t){return e&&Ei(t,en(t),e)}function qC(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var zC=Object.prototype,$C=zC.hasOwnProperty;function UC(e){if(!Ye(e))return qC(e);var t=Ps(e),r=[];for(var a in e)a=="constructor"&&(t||!$C.call(e,a))||r.push(a);return r}function ko(e){return La(e)?ph(e,!0):UC(e)}function BC(e,t){return e&&Ei(t,ko(t),e)}var mh=typeof st=="object"&&st&&!st.nodeType&&st,hh=mh&&typeof module=="object"&&module&&!module.nodeType&&module,VC=hh&&hh.exports===mh,gh=VC?bn.Buffer:void 0,yh=gh?gh.allocUnsafe:void 0;function vh(e,t){if(t)return e.slice();var r=e.length,a=yh?yh(r):new e.constructor(r);return e.copy(a),a}function xu(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function HC(e,t){for(var r=-1,a=e==null?0:e.length,i=0,n=[];++r<a;){var o=e[r];t(o,r,e)&&(n[i++]=o)}return n}function bh(){return[]}var WC=Object.prototype,KC=WC.propertyIsEnumerable,kh=Object.getOwnPropertySymbols,Tu=kh?function(e){return e==null?[]:(e=Object(e),HC(kh(e),function(t){return KC.call(e,t)}))}:bh;function GC(e,t){return Ei(e,Tu(e),t)}function Pu(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var JC=Object.getOwnPropertySymbols,wh=JC?function(e){for(var t=[];e;)Pu(t,Tu(e)),e=Cs(e);return t}:bh;function YC(e,t){return Ei(e,wh(e),t)}function Sh(e,t,r){var a=t(e);return Bt(e)?a:Pu(a,r(e))}function Iu(e){return Sh(e,en,Tu)}function Nu(e){return Sh(e,ko,wh)}var XC=Object.prototype,ZC=XC.hasOwnProperty;function QC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ZC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Ds=bn.Uint8Array;function Du(e){var t=new e.constructor(e.byteLength);return new Ds(t).set(new Ds(e)),t}function eA(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var tA=/\w*$/;function rA(e){var t=new e.constructor(e.source,tA.exec(e));return t.lastIndex=e.lastIndex,t}var Eh=jr?jr.prototype:void 0,Ch=Eh?Eh.valueOf:void 0;function nA(e){return Ch?Object(Ch.call(e)):{}}function Ah(e,t){var r=t?Du(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var aA="[object Boolean]",iA="[object Date]",oA="[object Map]",sA="[object Number]",lA="[object RegExp]",cA="[object Set]",uA="[object String]",fA="[object Symbol]",dA="[object ArrayBuffer]",pA="[object DataView]",mA="[object Float32Array]",hA="[object Float64Array]",gA="[object Int8Array]",yA="[object Int16Array]",vA="[object Int32Array]",bA="[object Uint8Array]",kA="[object Uint8ClampedArray]",wA="[object Uint16Array]",SA="[object Uint32Array]";function EA(e,t,r){var a=e.constructor;switch(t){case dA:return Du(e);case aA:case iA:return new a(+e);case pA:return eA(e,r);case mA:case hA:case gA:case yA:case vA:case bA:case kA:case wA:case SA:return Ah(e,r);case oA:return new a;case sA:case uA:return new a(e);case lA:return rA(e);case cA:return new a;case fA:return nA(e)}}var _h=Object.create,Oh=(function(){function e(){}return function(t){if(!Ye(t))return{};if(_h)return _h(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function xh(e){return typeof e.constructor=="function"&&!Ps(e)?Oh(Cs(e)):{}}var CA="[object Map]";function AA(e){return Lr(e)&&Rr(e)==CA}var Th=Si&&Si.isMap,_A=Th?Eu(Th):AA,OA="[object Set]";function xA(e){return Lr(e)&&Rr(e)==OA}var Ph=Si&&Si.isSet,TA=Ph?Eu(Ph):xA,PA=1,IA=2,NA=4,Ih="[object Arguments]",DA="[object Array]",FA="[object Boolean]",MA="[object Date]",jA="[object Error]",Nh="[object Function]",LA="[object GeneratorFunction]",RA="[object Map]",qA="[object Number]",Dh="[object Object]",zA="[object RegExp]",$A="[object Set]",UA="[object String]",BA="[object Symbol]",VA="[object WeakMap]",HA="[object ArrayBuffer]",WA="[object DataView]",KA="[object Float32Array]",GA="[object Float64Array]",JA="[object Int8Array]",YA="[object Int16Array]",XA="[object Int32Array]",ZA="[object Uint8Array]",QA="[object Uint8ClampedArray]",e_="[object Uint16Array]",t_="[object Uint32Array]",St={};St[Ih]=St[DA]=St[HA]=St[WA]=St[FA]=St[MA]=St[KA]=St[GA]=St[JA]=St[YA]=St[XA]=St[RA]=St[qA]=St[Dh]=St[zA]=St[$A]=St[UA]=St[BA]=St[ZA]=St[QA]=St[e_]=St[t_]=!0,St[jA]=St[Nh]=St[VA]=!1;function wo(e,t,r,a,i,n){var o,s=t&PA,c=t&IA,l=t&NA;if(r&&(o=i?r(e,a,i,n):r(e)),o!==void 0)return o;if(!Ye(e))return e;var u=Bt(e);if(u){if(o=QC(e),!s)return xu(e,o)}else{var f=Rr(e),p=f==Nh||f==LA;if(Ra(e))return vh(e,s);if(f==Dh||f==Ih||p&&!i){if(o=c||p?{}:xh(e),!s)return c?YC(e,BC(o,e)):GC(e,RC(o,e))}else{if(!St[f])return i?e:{};o=EA(e,f,s)}}n||(n=new Qr);var d=n.get(e);if(d)return d;n.set(e,o),TA(e)?e.forEach(function(v){o.add(wo(v,t,r,v,e,n))}):_A(e)&&e.forEach(function(v,y){o.set(y,wo(v,t,r,y,e,n))});var h=l?c?Nu:Iu:c?ko:en,k=u?void 0:h(e);return Au(k||e,function(v,y){k&&(y=v,v=e[y]),Ou(o,y,wo(v,t,r,y,e,n))}),o}function Fh(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function r_(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++a<i;)n[a]=e[a+t];return n}function n_(e,t){return t.length<2?e:Os(e,r_(t,0,-1))}var a_=Object.prototype,i_=a_.hasOwnProperty;function Mh(e,t){t=bi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=ea(t[r]);if(i==="__proto__"&&!i_.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=n_(e,t);return n==null||delete n[ea(Fh(t))]}function o_(e){return Qn(e)?void 0:e}var jh=jr?jr.isConcatSpreadable:void 0;function s_(e){return Bt(e)||wi(e)||!!(jh&&e&&e[jh])}function So(e,t,r,a,i){var n=-1,o=e.length;for(r||(r=s_),i||(i=[]);++n<o;){var s=e[n];t>0&&r(s)?t>1?So(s,t-1,r,a,i):Pu(i,s):a||(i[i.length]=s)}return i}function Fu(e){var t=e==null?0:e.length;return t?So(e,1):[]}function l_(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Lh=Math.max;function Rh(e,t,r){return t=Lh(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=Lh(a.length-t,0),o=Array(n);++i<n;)o[i]=a[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=a[i];return s[t]=r(o),l_(e,this,s)}}function c_(e){return function(){return e}}function Fs(e){return e}var u_=Is?function(e,t){return Is(e,"toString",{configurable:!0,enumerable:!1,value:c_(t),writable:!0})}:Fs,f_=800,d_=16,p_=Date.now;function m_(e){var t=0,r=0;return function(){var a=p_(),i=d_-(a-r);if(r=a,i>0){if(++t>=f_)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qh=m_(u_);function zh(e){return qh(Rh(e,void 0,Fu),e+"")}var h_=1,g_=2,y_=4,Eo=zh(function(e,t){var r={};if(e==null)return r;var a=!1;t=vi(t,function(n){return n=bi(n,e),a||(a=n.length>1),n}),Ei(e,Nu(e),r),a&&(r=wo(r,h_|g_|y_,o_));for(var i=t.length;i--;)Mh(r,t[i]);return r});function Ms(e,t){if(dt in e&&yu.equal(e[dt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Ye(a)){const i=Ms(a,t);if(i!==void 0)return i}}else if(Ye(r)){const a=Ms(r,t);if(a!==void 0)return a}}function Mu(e,t){const r=se(e,dt,t);let a=e;gt in a&&(a={...a,[gt]:yu.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(o=>Ye(o)?Mu(o,r):o)}:Ye(n)&&(a={...a,[i]:Mu(n,r)});return a}function ju(e,t){const r=t[e];return[Eo(t,[e]),r]}function $h(e,t={},r=[],a=se(t,[dt])){const i=e||"";let n,o=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));o===void 0||dt in t&&t[dt]===o?n=vu.get(t,c):t[so]===Es&&(n=Ms(t,o.replace(/\/$/,"")),n!==void 0&&(n=vu.get(n,c)))}else if(t[so]===Es){const c=o?yu.resolve(o,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=Ms(t,l.replace(/\/$/,"")),n!==void 0&&(o=n[dt],Dt(u)||(n=vu.get(n,decodeURIComponent(u.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const s=n[gt];if(s){if(r.includes(s)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...p]=r,d=[...p,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=ju(gt,n),u=$h(l,t,[...r,i],o);return Object.keys(c).length>0?t[so]===Xw||t[so]===Es?{[vn]:[c,u]}:{...c,...u}:u}return n}function Co(e,t={},r=se(t,[dt])){return $h(e,t,[],r)}var v_=Object.prototype,b_=v_.hasOwnProperty;function k_(e,t){return e!=null&&b_.call(e,t)}function Uh(e,t,r){t=bi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var o=ea(t[a]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}return n||++a!=i?n:(i=e==null?0:e.length,!!i&&Su(i)&&Ns(o,i)&&(Bt(e)||wi(e)))}function Ke(e,t){return e!=null&&Uh(e,t,k_)}var w_="[object String]";function ta(e){return typeof e=="string"||!Bt(e)&&Lr(e)&&Mn(e)==w_}function qr(e){let t;const r=se(e,Kw);return ta(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var S_=1/0;function E_(e){var t=e==null?0:e.length;return t?So(e,S_):[]}function Lu(e,t,r){(r!==void 0&&!po(e[t],r)||r===void 0&&!(t in e))&&_u(e,t,r)}function C_(e){return function(t,r,a){for(var i=-1,n=Object(t),o=a(t),s=o.length;s--;){var c=o[++i];if(r(n[c],c,n)===!1)break}return t}}var Bh=C_();function Ao(e){return Lr(e)&&La(e)}function Ru(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function A_(e){return Ei(e,ko(e))}function __(e,t,r,a,i,n,o){var s=Ru(e,r),c=Ru(t,r),l=o.get(c);if(l){Lu(e,r,l);return}var u=n?n(s,c,r+"",e,t,o):void 0,f=u===void 0;if(f){var p=Bt(c),d=!p&&Ra(c),h=!p&&!d&&bo(c);u=c,p||d||h?Bt(s)?u=s:Ao(s)?u=xu(s):d?(f=!1,u=vh(c,!0)):h?(f=!1,u=Ah(c,!0)):u=[]:Qn(c)||wi(c)?(u=s,wi(s)?u=A_(s):(!Ye(s)||uo(s))&&(u=xh(c))):f=!1}f&&(o.set(c,u),i(u,c,a,n,o),o.delete(c)),Lu(e,r,u)}function Vh(e,t,r,a,i){e!==t&&Bh(t,function(n,o){if(i||(i=new Qr),Ye(n))__(e,t,o,r,Vh,a,i);else{var s=a?a(Ru(e,o),n,o+"",e,t,i):void 0;s===void 0&&(s=n),Lu(e,o,s)}},ko)}function js(e,t){return qh(Rh(e,t,Fs),e+"")}function O_(e,t,r){if(!Ye(r))return!1;var a=typeof t;return(a=="number"?La(r)&&Ns(t,r.length):a=="string"&&t in r)?po(r[t],e):!1}function x_(e){return js(function(t,r){var a=-1,i=r.length,n=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(i--,n):void 0,o&&O_(r[0],r[1],o)&&(n=i<3?void 0:n,i=1),t=Object(t);++a<i;){var s=r[a];s&&e(t,s,a,n)}return t})}var T_=x_(function(e,t,r){Vh(e,t,r)});function qu(e,t,r,a){if(!Ye(e))return e;t=bi(t,e);for(var i=-1,n=t.length,o=n-1,s=e;s!=null&&++i<n;){var c=ea(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=o){var u=s[c];l=a?a(u,c,s):void 0,l===void 0&&(l=Ye(u)?u:Ns(t[i+1])?[]:{})}Ou(s,c,l),s=s[c]}return e}function vt(e,t,r){return e==null?e:qu(e,t,r)}function Hh(e){return typeof e=="function"?e:Fs}var P_=/\s/;function I_(e){for(var t=e.length;t--&&P_.test(e.charAt(t)););return t}var N_=/^\s+/;function D_(e){return e&&e.slice(0,I_(e)+1).replace(N_,"")}var Wh=NaN,F_=/^[-+]0x[0-9a-f]+$/i,M_=/^0b[01]+$/i,j_=/^0o[0-7]+$/i,L_=parseInt;function R_(e){if(typeof e=="number")return e;if(co(e))return Wh;if(Ye(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ye(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=D_(e);var r=M_.test(e);return r||j_.test(e)?L_(e.slice(2),r?2:8):F_.test(e)?Wh:+e}var Kh=1/0,q_=17976931348623157e292;function z_(e){if(!e)return e===0?e:0;if(e=R_(e),e===Kh||e===-Kh){var t=e<0?-1:1;return t*q_}return e===e?e:0}function Gh(e){var t=z_(e),r=t%1;return t===t?r?t-r:t:0}var $_=9007199254740991,zu=4294967295,U_=Math.min;function Jh(e,t){if(e=Gh(e),e<1||e>$_)return[];var r=zu,a=U_(e,zu);t=Hh(t),e-=zu;for(var i=dh(a,t);++r<e;)t(r);return i}function Yh(e,t){return e&&Bh(e,t,en)}var B_="__lodash_hash_undefined__";function V_(e){return this.__data__.set(e,B_),this}function H_(e){return this.__data__.has(e)}function qa(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ln;++t<r;)this.add(e[t])}qa.prototype.add=qa.prototype.push=V_,qa.prototype.has=H_;function W_(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function _o(e,t){return e.has(t)}var K_=1,G_=2;function Xh(e,t,r,a,i,n){var o=r&K_,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=n.get(e),u=n.get(t);if(l&&u)return l==t&&u==e;var f=-1,p=!0,d=r&G_?new qa:void 0;for(n.set(e,t),n.set(t,e);++f<s;){var h=e[f],k=t[f];if(a)var v=o?a(k,h,f,t,e,n):a(h,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!W_(t,function(y,b){if(!_o(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){p=!1;break}}else if(!(h===k||i(h,k,r,a,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function J_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function $u(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Y_=1,X_=2,Z_="[object Boolean]",Q_="[object Date]",eO="[object Error]",tO="[object Map]",rO="[object Number]",nO="[object RegExp]",aO="[object Set]",iO="[object String]",oO="[object Symbol]",sO="[object ArrayBuffer]",lO="[object DataView]",Zh=jr?jr.prototype:void 0,Uu=Zh?Zh.valueOf:void 0;function cO(e,t,r,a,i,n,o){switch(r){case lO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sO:return!(e.byteLength!=t.byteLength||!n(new Ds(e),new Ds(t)));case Z_:case Q_:case rO:return po(+e,+t);case eO:return e.name==t.name&&e.message==t.message;case nO:case iO:return e==t+"";case tO:var s=J_;case aO:var c=a&Y_;if(s||(s=$u),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;a|=X_,o.set(e,t);var u=Xh(s(e),s(t),a,i,n,o);return o.delete(e),u;case oO:if(Uu)return Uu.call(e)==Uu.call(t)}return!1}var uO=1,fO=Object.prototype,dO=fO.hasOwnProperty;function pO(e,t,r,a,i,n){var o=r&uO,s=Iu(e),c=s.length,l=Iu(t),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var p=s[f];if(!(o?p in t:dO.call(t,p)))return!1}var d=n.get(e),h=n.get(t);if(d&&h)return d==t&&h==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=o;++f<c;){p=s[f];var y=e[p],b=t[p];if(a)var w=o?a(b,y,p,t,e,n):a(y,b,p,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof m=="function"&&m instanceof m)&&(k=!1)}return n.delete(e),n.delete(t),k}var mO=1,Qh="[object Arguments]",eg="[object Array]",Ls="[object Object]",hO=Object.prototype,tg=hO.hasOwnProperty;function gO(e,t,r,a,i,n){var o=Bt(e),s=Bt(t),c=o?eg:Rr(e),l=s?eg:Rr(t);c=c==Qh?Ls:c,l=l==Qh?Ls:l;var u=c==Ls,f=l==Ls,p=c==l;if(p&&Ra(e)){if(!Ra(t))return!1;o=!0,u=!1}if(p&&!u)return n||(n=new Qr),o||bo(e)?Xh(e,t,r,a,i,n):cO(e,t,c,r,a,i,n);if(!(r&mO)){var d=u&&tg.call(e,"__wrapped__"),h=f&&tg.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new Qr),i(k,v,r,a,n)}}return p?(n||(n=new Qr),pO(e,t,r,a,i,n)):!1}function Rs(e,t,r,a,i){return e===t?!0:e==null||t==null||!Lr(e)&&!Lr(t)?e!==e&&t!==t:gO(e,t,r,a,Rs,i)}var yO=1,vO=2;function bO(e,t,r,a){var i=r.length,n=i;if(e==null)return!n;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){o=r[i];var s=o[0],c=e[s],l=o[1];if(o[2]){if(c===void 0&&!(s in e))return!1}else{var u=new Qr,f;if(!(f===void 0?Rs(l,c,yO|vO,a,u):f))return!1}}return!0}function rg(e){return e===e&&!Ye(e)}function kO(e){for(var t=en(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,rg(i)]}return t}function ng(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function wO(e){var t=kO(e);return t.length==1&&t[0][2]?ng(t[0][0],t[0][1]):function(r){return r===e||bO(r,e,t)}}function SO(e,t){return e!=null&&t in Object(e)}function ag(e,t){return e!=null&&Uh(e,t,SO)}var EO=1,CO=2;function AO(e,t){return uu(e)&&rg(t)?ng(ea(e),t):function(r){var a=se(r,e);return a===void 0&&a===t?ag(r,e):Rs(t,a,EO|CO)}}function _O(e){return function(t){return t==null?void 0:t[e]}}function OO(e){return function(t){return Os(t,e)}}function xO(e){return uu(e)?_O(ea(e)):OO(e)}function Bu(e){return typeof e=="function"?e:e==null?Fs:typeof e=="object"?Bt(e)?AO(e[0],e[1]):wO(e):xO(e)}function TO(e,t,r){var a=Bt(e),i=a||Ra(e)||bo(e);if(t=Bu(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Ye(e)?r=uo(n)?Oh(Cs(e)):{}:r={}}return(i?Au:Yh)(e,function(o,s,c){return t(r,o,s,c)}),r}function PO(e,t,r,a){for(var i=e.length,n=r+-1;++n<i;)if(t(e[n],n,e))return n;return-1}function IO(e){return e!==e}function NO(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function ig(e,t,r){return t===t?NO(e,t,r):PO(e,IO,r)}function Vu(e,t){var r=e==null?0:e.length;return!!r&&ig(e,t,0)>-1}function qs(){}var DO=1/0,FO=ki&&1/$u(new ki([,-0]))[1]==DO?function(e){return new ki(e)}:qs,MO=200;function og(e,t,r){var a=-1,i=Vu,n=e.length,o=!0,s=[],c=s;if(n>=MO){var l=FO(e);if(l)return $u(l);o=!1,i=_o,c=new qa}else c=s;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,o&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;s.push(u)}else i(c,f,r)||(c!==s&&c.push(f),s.push(u))}return s}function sg(e){return e&&e.length?og(e):[]}function Oo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var jO=js(function(e){return og(So(e,1,Ao,!0))});function zr(e){let{type:t}=e;return!t&&e.const?Oo(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function qn(e,t){const r={...e},a=Object.keys(t).reduce((i,n)=>{const o=e?e[n]:{},s=t[n];return e&&n in e&&_e(s)?i[n]=qn(o,s):e&&t&&(zr(e)==="object"||zr(t)==="object")&&n===Cm&&Array.isArray(o)&&Array.isArray(s)?i[n]=jO(o,s):i[n]=s,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var LO="[object Number]";function lg(e){return typeof e=="number"||Lr(e)&&Mn(e)==LO}function cg(e,t,r){var a;if(e&&r){const i=se(e,r);if(i===void 0)return;for(let n=0;n<t.length;n+=1){const o=t[n],s=se(o,[Je,r],{});if(s.type!=="object"&&s.type!=="array"&&(s.const===i||!((a=s.enum)===null||a===void 0)&&a.includes(i)))return n}}}function zs(e,t,r,a,i){if(t===void 0)return 0;const n=cg(t,r,i);if(lg(n))return n;for(let o=0;o<r.length;o+=1){const s=r[o];if(i&&Ke(s,[Je,i])){const c=se(t,i),l=se(s,[Je,i],{});if(e.isValid(l,c,a))return o}else if(s[Je]){const c={anyOf:Object.keys(s[Je]).map(u=>({required:[u]}))};let l;if(s.anyOf){const{...u}=s;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(c),l=u}else l={...s,...c};if(delete l.required,e.isValid(l,t,a))return o}else if(e.isValid(s,t,a))return o}return 0}const RO=Object.prototype;function xo(e){for(const t in e)if(RO.hasOwnProperty.call(e,t))return!1;return!0}const qO=["array","boolean","integer","null","number","object","string"];new Set(qO);const zO=["$defs","definitions","properties","patternProperties","dependencies"];new Set(zO);const $O=["items","allOf","oneOf","anyOf"];new Set($O);const UO=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(UO);function $s(e){return typeof e=="object"}function kn(e){return $s(e)?xo(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function Hu(e,t){const r=e.length;if(r===0)return t;let a=t.length;if(a===0)return e;if(r<a){const n=e;e=t,t=n,a=r}const i=new Set(e);for(let n=0;n<a;n++)i.add(t[n]);return Array.from(i)}function BO(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const i=e;e=t,t=i}const a=new Set(t);for(let i=0;i<e.length&&a.size>0;i++){const n=e[i];a.delete(n)&&r.push(n)}return r}function ug(e){return e.length===0}function Wu(e){return(t,r)=>{const a=t.length-r.length;if(a!==0)return a;for(let i=0;i<t.length;i++)if(t[i]!==r[i]){const n=e(t[i],r[i]);if(n!==0)return n}return 0}}function fg(e,{threshold:t=12}={}){return r=>{const a=r.length;if(a===0)return r;if(a<=t){const o=[];let s=0;e:for(let c=0;c<a;c++){const l=r[c];for(let u=0;u<s;u++)if(e(l,o[u])===0)continue e;s=o.push(l)}return o}const i=r.slice().sort(e);let n=0;for(let o=1;o<a;o++)e(i[n],i[o])!==0&&++n!==o&&(i[n]=i[o]);return i.length=n+1,i}}function VO(e){return(t,r)=>{const a=[];let i=t.length,n=r.length;if(i===0||n===0)return a;if(i>n){const u=t;t=r,r=u;const f=i;i=n,n=f}const o=[...t].sort(e),s=[...r].sort(e);let c=0,l=0;for(;c<i&&l<n;){const u=e(o[c],s[l]);u===0?((a.length===0||e(a[a.length-1],o[c])!==0)&&a.push(o[c]),c++,l++):u<0?c++:l++}return a}}function HO(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const dg=HO,pg=()=>0,WO=e=>e===void 0,KO=e=>typeof e!="object",mg={boolean:0,number:1,string:2};function GO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):mg[r]-mg[a]}function JO(e,t){const r=e.length;if(r===0)return t;const a=t.length;if(a===0)return e;if(a>r){const o=e;e=t,t=o}const i=new Set(e),n=t.length;for(let o=0;o<n;o++){const s=t[o];i.has(s)||e.push(s)}return e}function Us(e,t,r=pg){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Ai(e){return Us(WO,e)}function ra(e,t){return Us(r=>r===void 0||e(r),t)}function Ku(e,t){return Us(Array.isArray,e,t)}const qt=Ai(Ci),Gu=ra(e=>e===0,(e,t)=>e-t);function YO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=dg(t,k=>Object.keys(k).sort());function a(k){return(v,y)=>{const b=r(v),w=r(y),E=Math.min(b.length,w.length);for(let m=0;m<E;m++){const g=Ci(b[m],w[m]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let m=0;m<E;m++){const g=b[m],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=Wu(k),y=dg(e,fg(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function o(k,v){if($s(k)){if($s(v)){const y=Object.keys(k),b=Object.keys(v),w=JO(y,b),E=w.length;for(let m=0;m<E;m++){const g=w[m];if(k[g]===v[g])continue;const A=(h[g]??s)(k[g],v[g]);if(A!==0)return A}return 0}return v===!0&&xo(k)?0:1}return $s(v)?k===!0&&xo(v)?0:-1:Ci(k,v)}const s=Ai(l),c=Us(KO,Ku(a(s),Wu(l)),GO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Ai(o),f=ra(xo,a(u)),p=Ai(i(o)),d=ra(kn,o),h={$id:qt,$comment:qt,$defs:f,$ref:qt,$schema:qt,const:s,contains:u,contentEncoding:qt,contentMediaType:qt,default:s,definitions:f,description:qt,else:u,examples:s,exclusiveMaximum:qt,exclusiveMinimum:qt,format:qt,if:u,maximum:qt,maxItems:qt,maxLength:qt,maxProperties:qt,minimum:qt,multipleOf:qt,not:u,pattern:qt,propertyNames:u,readOnly:qt,then:u,title:qt,writeOnly:qt,uniqueItems:ra(k=>k===!1,pg),minLength:Gu,minItems:Gu,minProperties:Gu,required:ra(ug,n),enum:ra(ug,i(l)),type:Ai((k,v)=>{const y=Array.isArray(k),b=Array.isArray(v);return!y&&!b?Ci(k,v):n(y?k:[k],b?v:[v])}),items:ra(k=>!Array.isArray(k)&&kn(k),Ku(o,Wu(o))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:ra(xo,a(Ai(Ku(o,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:o}}function hg(e){return e}const gg=(e,t)=>e?gg(t%e,e):t,XO=(e,t)=>Math.abs(e*t)/gg(e,t);function ZO(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Ju(e,t,r){const a=e.length,i=t.length;if(a>0&&i>0)for(let n=0;n<a;n++){const o=e[n];for(let s=0;s<i;s++)r(o,t[s])}}function Yu(e,t){return e||t}function yg(e){return(t,r)=>{const a={...t},i=Object.keys(r),n=i.length;for(let o=0;o<n;o++){const s=i[o];a[s]=t[s]===void 0?r[s]:e(t[s],r[s])}return a}}function QO(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function za(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const ex=["properties","patternProperties","additionalProperties"];function vg(e){const t=Object.keys(e),r=t.length,a=[];for(let i=0;i<r;i++){const n=t[i];a.push({regExp:new RegExp(n),schema:e[n]})}return[a,t]}const bg=[[],[]];function kg(e,t,r){const a=r.length;for(let i=0;i<a;i++){const n=r[i];if(!n.regExp.test(t))continue;const o=n.schema;if(o===!1)return!0;e.push(o)}return!1}const tx=["items","additionalItems"],rx=["if","then","else"];function wg(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function Xu(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function $a(e,t,r){return[e,t,r]}function nx(e){const t=new Map;for(const[r,a,i]of e){const n=o=>{if(!i(o))throw new Error(`Schema keys '${r}' and '${a}' are conflicting (${r}: ${JSON.stringify(o[r])}, ${a}: ${JSON.stringify(o[a])})`)};for(const o of[[r,a],[a,r]]){let s=t.get(o[0]);s===void 0&&(s=[],t.set(o[0],s)),s.push({oppositeKey:o[1],check:n})}}return t}const ax=[$a("minimum","maximum",e=>e.maximum>=e.minimum),$a("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),$a("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),$a("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),$a("minLength","maxLength",e=>e.maxLength>=e.minLength),$a("minItems","maxItems",e=>e.maxItems>=e.minItems),$a("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function ix({mergePatterns:e=ZO,isSubRegExp:t=Object.is,intersectJson:r=BO,deduplicateJsonSchemaDef:a=hg,defaultMerger:i=hg,assigners:n=[],checks:o=ax,mergers:s}={}){function c(E){const m=E.length;let g=E[0];for(let S=1;S<m;S++){const A=y(g,E[S]);if(A===!1)return!1;kn(A)||(g=A)}return g}function l(E,m,g,S,A,x,O){if(E.length=0,g===!1)return!1;if(E.push(g),A!==void 0){if(A===!1)return!1;E.push(A)}if(kg(E,m,x))return!1;const _=E.length<2;if(O===!1){if(_)return;if(kg(E,m,S))return!1}else _&&O!==void 0&&E.push(O);return E.length===1?E[0]:c(E)}function u(E,m,g,S,A,x){const O=g.length;if(O>0&&A!==!1)if(x)Object.assign(E,m);else for(let C=0;C<O;C++){const _=g[C];S.has(_)||(E[_]=y(m[_],A))}return E}const f=(E,{properties:m={},patternProperties:g,additionalProperties:S=!0},{properties:A={},patternProperties:x,additionalProperties:O=!0})=>{const C=kn(S),_=kn(O);if(C&&_)return za(E,"properties",b(m,A)),za(E,"patternProperties",g&&x?b(g,x):g??x),delete E.additionalProperties,E;const F=y(S,O);za(E,"additionalProperties",F);const I={},j=Object.keys(m),$=j.length,[Y,Z]=g?vg(g):bg,[ie,P]=x?vg(x):bg,M=[],U=new Set,T=_?void 0:O;for(let J=0;J<$;J++){const Q=j[J];U.add(Q);const q=l(M,Q,m[Q],Y,A[Q],ie,T);q!==void 0&&(I[Q]=q)}const N=Object.keys(A),L=N.length,B=C?void 0:S;for(let J=0;J<L;J++){const Q=N[J];if(U.has(Q))continue;const q=l(M,Q,A[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}za(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&Ju(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],x[Q])}),V=u(V,g,Z,K,O,_),V=u(V,x,P,K,S,C),za(E,"patternProperties",V),E},p=(E,{items:m=[],additionalItems:g},{items:S=[],additionalItems:A})=>{const x=Array.isArray(m),O=Array.isArray(S),C=[];if(E.items=C,x&&O){const[_,F,I]=m.length<S.length?[m.length,g,S]:[S.length,A,m];let j=0;for(;j<_;j++)C.push(y(m[j],S[j]));if(F===!1)E.additionalItems=!1;else{const $=F===void 0||kn(F);for(;j<I.length;j++)C.push($?I[j]:y(I[j],F));za(E,"additionalItems",g!==void 0&&A!==void 0?y(g,A):g??A)}}else if(x||O){const[_,F,I]=x?[m,S,g]:[S,m,A];za(E,"additionalItems",I&&y(I,F));for(let j=0;j<_.length;j++)C.push(y(_[j],F))}else delete E.additionalItems,E.items=y(m,S);return E},d=(E,m,g)=>{wg(E,m);const S=wg({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,m){const g=[];if(Ju(E,m,(S,A)=>{try{g.push(y(S,A))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(m)}"; the merged result is empty`);return a(g)}const k=QO([[ex,f],[tx,p],[rx,d],...n]),v=nx(o);function y(E,m){if(E===!1||m===!1)return!1;if(kn(E))return kn(m)?!0:m;if(kn(m))return E;let g={...E};const S=new Set,A=new Set,x=Reflect.ownKeys(m),O=x.length;for(let C=0;C<O;C++){const _=x[C],F=m[_];if(F===void 0)continue;const I=v.get(_);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&A.add(P.check)}}const j=E[_];if(j===void 0){g[_]=F;continue}const $=k.get(_);if($){S.add($);continue}const Y=w[_]??i;g[_]=Y(j,F)}for(const C of S)g=C(g,E,m);for(const C of A)C(g);return g}const b=yg(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,m)=>{if(E===m)return E;const g=Array.isArray(E),S=Array.isArray(m);if(!g&&!S){const A=Xu(E,m);if(A!==void 0)return A}else if(g||S){const A=new Set;if(g&&S)Ju(E,m,(O,C)=>{const _=Xu(O,C);_!==void 0&&A.add(_)});else{const O=g?E:m,C=g?m:E,_=O.length;for(let F=0;F<_;F++){const I=Xu(C,O[F]);I!==void 0&&A.add(I)}}const x=A.size;if(x===1)return A.values().next().value;if(x>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${m.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,m)=>{const g=a([E,m]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:Yu,writeOnly:Yu,enum:(E,m)=>{const g=r(E,m);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(m)}"`);return g},anyOf:h,oneOf:h,allOf:(E,m)=>a(E.concat(m)),propertyNames:y,contains:y,dependencies:yg((E,m)=>Array.isArray(E)?Array.isArray(m)?Hu(E,m):y(m,{required:E}):Array.isArray(m)?y(E,{required:m}):y(E,m)),examples:(E,m)=>{if(!Array.isArray(E)||!Array.isArray(m))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(m)}"`);return Hu(E,m)},multipleOf:(E,m)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(m);)g*=10,E*=10,m*=10;return XO(E,m)/g},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Yu,required:Hu,...s};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function ox(e){const t=[],r=[e];for(;r.length>0;){const a=r.pop();if(typeof a=="boolean"||a.allOf===void 0){t.push(a);continue}const{allOf:i,...n}=a;t.push(n);for(let o=i.length-1;o>=0;o--)r.push(i[o])}return t}function sx(e){return t=>e(ox(t))}const{compareSchemaDefinitions:lx,compareSchemaValues:cx}=YO(),{mergeArrayOfSchemaDefinitions:ux}=ix({intersectJson:VO(cx),deduplicateJsonSchemaDef:fg(lx)}),Sg=sx(ux);function tr(e,t,r={},a,i,n=!1){return wn(e,t,r,a,void 0,void 0,i,n)[0]}function Eg(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function fx(e,t,r,a,i,n,o){const{if:s,then:c,else:l,...u}=t,f=e.isValid(s,n||{},r);let p=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(wn(e,h,r,n,a,i,o))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(wn(e,h,r,n,a,i,o))}}else{const h=f?c:l;if(h!==void 0){const k=Eg(h);d=d.concat(wn(e,k,r,n,a,i,o))}}return d.length&&(p=d.map(h=>qn(u,h))),p.flatMap(h=>wn(e,h,r,n,a,i,o))}function Cg(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>Jh(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function Ag(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(vt(r,[a],e.patternProperties[a]),r),{})}function dx(e,t,r,a,i,n,o,s){const c=_g(e,t,r,a,i,n,o,s);if(c.length>1||c[0]!==t)return c;if(tu in t)return xg(e,t,r,a,i,n,o).flatMap(u=>wn(e,u,r,n,a,i,o));if(vn in t&&Array.isArray(t[vn])){const l=t.allOf.map(f=>wn(e,f,r,n,a,i,o));return Cg(l).map(f=>({...t,allOf:f}))}return[t]}function _g(e,t,r,a,i,n,o,s){const c=na(t,r,i,void 0,s);return c!==t?wn(e,c,r,n,a,i,o,s):[t]}function na(e,t,r,a,i,n=!1){if(!_e(e))return e;let o=e,s=a;if(gt in o){const{$ref:c,...l}=o;if(r.includes(c))return n?{...o,[iu]:!0}:o;r.push(c),o={...Co(c,t,s),...l,[Ss]:c},dt in o&&(s=o[dt])}if(Je in o){const c=[],l=TO(o[Je],(u,f,p)=>{const d=[...r];u[p]=na(f,t,d,s,i,!i),c.push(d)},{});T_(r,sg(E_(c))),o={...o,[Je]:l}}if(yi in o&&!Array.isArray(o.items)&&typeof o.items!="boolean"&&(o={...o,items:na(o.items,t,r,s,i)}),i){let c,l;Ve in e&&Array.isArray(e[Ve])?(c=Ve,l=o[Ve]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=o[Fe]),c&&l&&(o={...o,[c]:l.map(u=>na(u,t,r,s,i))})}return Xe(e,o)?e:o}function px(e,t,r,a,i){const n={...t,properties:{...t.properties}},o=a&&_e(a)?a:{};return Object.keys(o).forEach(s=>{if(!(s in n.properties)){if(nu in n){const c=Ag(n,s);if(!Dt(c)){n.properties[s]=tr(e,{[vn]:Object.values(c)},r,se(o,[s]),i),n.properties[s][Xn]=!0;return}}if(gi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=tr(e,{[gt]:se(n.additionalProperties,[gt])},r,se(o,[s]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:Ve in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:Oo(se(o,[s]))}:c={type:Oo(se(o,[s]))},n.properties[s]=c,n.properties[s][Xn]=!0}else n.properties[s]={type:"null"},n.properties[s][Xn]=!0}}),n}function mx(e){return Sg(e)}function wn(e,t,r,a,i=!1,n=[],o,s){return _e(t)?dx(e,t,r,i,n,a,o,s).flatMap(l=>{var u;let f=l;if(ru in f)return fx(e,f,r,i,n,a,o);if(vn in f){if(i){const{allOf:d,...h}=f;return[...d,h]}try{const d=[],h=[],k={};(u=f.allOf)===null||u===void 0||u.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{h.push(v);for(const y of Object.getOwnPropertySymbols(v))y in k||(k[y]=v[y])}}),d.length&&(f={...f,allOf:h}),f=o?o(f):mx(f);for(const v of Object.getOwnPropertySymbols(k))f[v]=k[v];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
33
|
+
`,d);const{allOf:h,...k}=f;return k}}return Je in f&&nu in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=Ag(d,h);return Dt(k)||(d.properties[h]=tr(e,{allOf:[d.properties[h],...Object.values(k)]},r,se(a,[h]),o)),d},{...f,properties:{...f.properties}})),nu in f||gi in f&&f.additionalProperties!==!1?px(e,f,r,a,o):f}):[{}]}function hx(e,t,r,a,i){let n;const{oneOf:o,anyOf:s,...c}=t;if(Array.isArray(o)?n=o:Array.isArray(s)&&(n=s),n){const l=i===void 0&&a?{}:i,u=qr(t);n=n.map(p=>na(p,r,[]));const f=zs(e,l,n,r,u);if(a){const p=Og(n,!1,r);return zs(e,l,p,r,u),n.map(d=>qn(c,d))}return[qn(c,n[f])]}return[t]}function Og(e,t=!1,r){return e.map(a=>{if(!_e(a))return Eg(a);const i=t&&r?na(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function xg(e,t,r,a,i,n,o){const{dependencies:s,...c}=t;return hx(e,c,r,a,n).flatMap(u=>Tg(e,s,u,r,a,i,n,o))}function Tg(e,t,r,a,i,n,o,s){let c=[r];for(const l in t)if((i||se(o,[l])!==void 0)&&(!r.properties||l in r.properties)){const[u,f]=ju(l,t);return Array.isArray(f)?c[0]=gx(r,f):_e(f)&&(c=yx(e,r,a,l,f,i,n,o,s)),c.flatMap(p=>Tg(e,u,p,a,i,n,o,s))}return c}function gx(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function yx(e,t,r,a,i,n,o,s,c){return wn(e,i,r,s,n,o,c).flatMap(u=>{const{oneOf:f,...p}=u,d=qn(t,p);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:_g(e,v,r,n,o,s));return Cg(h).flatMap(v=>vx(e,d,r,a,v,n,o,s,c))})}function vx(e,t,r,a,i,n,o,s,c){const l=i.filter(u=>{if(typeof u=="boolean"||!(u!=null&&u.properties))return!1;const{[a]:f}=u.properties;if(f){const p={type:"object",properties:{[a]:f}};return e.isValid(p,s,r)||n}return!1});return!n&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const f=u,[p]=ju(a,f.properties),d={...f,properties:p};return wn(e,d,r,s,n,o,c).map(k=>qn(t,k))})}function To(e,t,r,a,i,n={},o){if(Array.isArray(r[i])){const c=qr(r)||a,l=r[i].map(f=>tr(e,f,t,n,o)),u=se(n,c);if(u!==void 0)return l.find(f=>Xe(se(f,[Je,c,Na],se(f,[Je,c,cr])),u))}}function Pg(e,t,r,a,i){let n=r;if(Ke(r,gt)&&(n=tr(e,r,t,void 0,i)),Dt(a))return n;const o=Array.isArray(a)?[...a]:a.split("."),[s,...c]=o;if(s!==void 0&&s!==""&&Ke(n,s))return n=se(n,s),Pg(e,t,n,c,i)}function Bs(e,t,r,a,i,n){const o=Pg(e,t,r,a,n);return o===void 0?i:o}const Ig={title:"!@#$_UNKNOWN_$#@!"};function bx(e,t,r,a,i={},n){const o=Array.isArray(a)?[...a]:a.split(".");let s=r;const c=o.pop(),l=String(c);o.length&&o.forEach(d=>{s=Bs(e,t,s,[Je,d],{},n),Ke(s,Fe)?s=To(e,t,s,l,Fe,se(i,d),n):Ke(s,Ve)&&(s=To(e,t,s,l,Ve,se(i,d),n))}),Ke(s,Fe)?s=To(e,t,s,l,Fe,i,n):Ke(s,Ve)&&(s=To(e,t,s,l,Ve,i,n));let u=Bs(e,t,s,[Je,c],Ig,n);u===Ig&&(u=void 0);const f=Bs(e,t,s,Cm,[],n);let p;return u&&Array.isArray(f)&&(p=f.includes(l)),{field:u,isRequired:p}}function kx(e,t,r,a){var i=-1,n=e==null?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}function wx(e,t){return function(r,a){if(r==null)return r;if(!La(r))return e(r,a);for(var i=r.length,n=-1,o=Object(r);++n<i&&a(o[n],n,o)!==!1;);return r}}var Ng=wx(Yh);function Sx(e,t,r,a,i){return i(e,function(n,o,s){r=a?(a=!1,n):t(r,n,o,s)}),r}function Ex(e,t,r){var a=Bt(e)?kx:Sx,i=arguments.length<3;return a(e,Bu(t),r,i,Ng)}const Cx={type:"object",$id:Ww,properties:{__not_really_there__:{type:"number"}}};function Zu(e,t,r,a,i){let n=0;return r&&(Ye(r.properties)?n+=Ex(r.properties,(o,s,c)=>{const l=se(a,c);if(typeof s=="boolean")return o;if(Ke(s,gt)){const u=tr(e,s,t,l,i);return o+Zu(e,t,u,l||{},i)}if((Ke(s,Fe)||Ke(s,Ve))&&l){const u=Ke(s,Fe)?Fe:Ve,f=qr(s);return o+_i(e,t,l,se(s,u),-1,f,i)}if(s.type==="object"){const u=Ye(l)?1:0;return o+u+Zu(e,t,s,l,i)}if(s.type===Oo(l)){let u=o+1;return s.default?u+=l===s.default?1:-1:s.const&&(u+=l===s.const?1:-1),u}return o},0):ta(r.type)&&r.type===Oo(a)&&(n+=1)),n}function _i(e,t,r,a,i=-1,n,o){const s=a.map(p=>na(p,t,[])),c=cg(r,a,n);if(lg(c))return c;const l=s.reduce((p,d,h)=>(zs(e,r,[Cx,d],t,n)===1&&p.push(h),p),[]);if(l.length===1)return l[0];l.length||Jh(s.length,p=>l.push(p));const u=new Set,{bestIndex:f}=l.reduce((p,d)=>{const{bestScore:h}=p,k=s[d],v=Zu(e,t,k,r,o);return u.add(v),v>h?{bestIndex:d,bestScore:v}:p},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function Dg(e){const t=e[cr],r=zr(e);return _e(t)&&ta(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Fg(e){return Array.isArray(e.enum)&&e.enum.length===1||cr in e}function Qu(e){return Array.isArray(e.items)&&e.items.every(t=>_e(t))}function Oi(e){return e==null}function Po(e,t,r=!1,a=!1,i=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=i?n:t,s=i?t:n,c=o.map((l,u)=>s[u]!==void 0?Po(n[u],t[u],r,a,i):l);return(r||i)&&c.length<s.length&&c.push(...s.slice(c.length)),c}if(_e(t)){const n=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{var c;const l=se(t,s),u=_e(e)&&s in e,f=s in t,p=(c=se(e,s))!==null&&c!==void 0?c:{},d=u&&_e(p)&&Object.values(p).some(v=>_e(v)),h=u&&_e(se(e,s)),k=f&&_e(l);return h&&k&&!d?(o[s]={...se(e,s),...l},o):(o[s]=Po(se(e,s),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&Oi(t)||typeof t=="number"&&Number.isNaN(t))||i&&!Oi(t)?e:t}function aa(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},o=t[i];if(e&&i in e&&_e(o))a[i]=aa(n,o,r);else if(r&&Array.isArray(n)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((c,l)=>(n.includes(l)||c.push(l),c),[])),a[i]=n.concat(s)}else a[i]=o;return a},{...e})}function Ax(e){if(Hw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(cr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function _x(e,t){const r=new Map(e.map(n=>[String(n.value),n])),a=new Set(t.filter(n=>n!=="*").map(String)),i=e.filter(n=>!a.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return i;const o=r.get(String(n));return o?[o]:[]})}function Ua(e,t){if(e.enum){let n,o;if(t){const{enumNames:c,enumOrder:l}=be(t);n=c,o=l}let s=e.enum.map((c,l)=>({label:Array.isArray(n)?n[l]||String(c):(n==null?void 0:n[String(c)])||String(c),value:c}));return o&&(s=_x(s,o)),s}let r,a;e.anyOf?(r=e.anyOf,a=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,a=t==null?void 0:t.oneOf);let i=qr(e);if(t){const{optionsSchemaSelector:n=i}=be(t);i=n}return r==null?void 0:r.map((n,o)=>{var s,c,l;const{title:u}=be(a==null?void 0:a[o]),f=n;let p,d=u;if(i){const h=se(f,[Je,i],{});p=se(h,Na,se(h,cr)),d=(c=(s=d??(h==null?void 0:h.title))!==null&&s!==void 0?s:f.title)!==null&&c!==void 0?c:String(p)}else p=Ax(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(p);return{schema:f,label:d,value:p}})}function Vs(e,t,r={},a){const i=tr(e,t,r,void 0,a),n=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(n)?n.every(o=>typeof o!="boolean"&&Fg(o)):!1}function ef(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Vs(e,t.items,r,a)}const Ox=["string","number","integer","boolean","null"];var xi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(xi||(xi={}));function tf(e,t=xi.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==xi.Ignore&&_e(e.additionalItems)?e.additionalItems:{}}function Mg(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Dt(t)&&r===null?null:t}function jg(e,t,r,a,i,n=[],o={},s=!1,c=!1){const{emptyObjectFields:l="populateAllDefaults"}=o;if(a===!0||s)e[t]=r;else if(a==="excludeObjectChildren")(c&&r!==void 0||!_e(r)||!Dt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;_e(r)?l==="skipEmptyDefaults"?Dt(r)||(e[t]=r):(!Dt(r)||n.includes(t))&&(u||l!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(l==="populateAllDefaults"||l==="skipEmptyDefaults"||u&&n.includes(t))&&(e[t]=r)}}function ia(e,t,r={}){const{parentDefaults:a,rawFormData:i,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:p}=r;let d=_e(i)?i:{};const h=_e(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=s;if(h[cr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!Dg(h))k=h[cr];else if(_e(k)&&_e(h.default)&&!h[Ve]&&!h[Fe]&&!h[gt])v?k=aa(h.default,k):k=aa(k,h.default);else if(Na in h&&!v&&!h[Ve]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];s.includes(g)||(w=s.concat(g),y=Co(g,n));const S=i===void 0||_e(i)&&Dt(i);y&&!k&&S&&(k=h.default),f&&y&&!_e(i)&&(d=i)}else if(tu in h){const g={...Lg(e,h,r,k),...d};[y]=xg(e,h,n,!1,[],g,l)}else if(Qu(h)&&!v)k=h.items.map((g,S)=>ia(e,g,{rootSchema:n,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,parentDefaults:Array.isArray(a)?a[S]:void 0,rawFormData:d,required:u,shouldMergeDefaultsIntoFormData:f}));else if(Fe in h){const{oneOf:g,...S}=h;if(g.length===0)return;const A=qr(h),{type:x="null"}=S;!Array.isArray(x)&&Ox.includes(x)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}else if(Ve in h){const{anyOf:g,...S}=h;if(g.length===0)return;const A=qr(h);y=g[_i(e,n,i??h.default,g,0,A,l)],y=qn(S,y)}if(y)return ia(e,y,{rootSchema:n,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=h.default);const E=Lg(e,h,r,k);let m=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,A=rf(e,h,n,i,c,l);(!_e(i)||vn in h)&&(m=Po(m,A,S,!0))}return m}function rf(e,t,r,a,i,n){const o=(i==null?void 0:i.allOf)==="populateDefaults"&&vn in t,s=o?tr(e,t,r,a,n):t,c=!Fg(s)&&Vs(e,s,r,n);let l=a;if(c){const f=Ua(s);l=(f==null?void 0:f.some(d=>Xe(d.value,a)))?a:void 0}return s[cr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=s.const:_e(l)&&_e(s.properties)&&(l=Object.keys(s.properties).reduce((f,p)=>{const d=se(s,[Je,p],{});return p in f&&(o||_e(d)&&vn in d)&&(f[p]=rf(e,d,r,se(f,p),i,n)),f},{...l})),l}function xx(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,required:c,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){{const p=_e(r)?r:{},d=t,k=(o==null?void 0:o.allOf)==="populateDefaults"&&vn in d||(o==null?void 0:o.emptyObjectFields)!=="skipEmptyDefaults"&&ru in d?tr(e,d,a,p,s):d,v=k[cr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const m=se(k,[Je,w],{}),g=_e(v)&&v[w]!==void 0,S=(_e(m)&&cr in m||g)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!Dg(m),A=ia(e,m,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:i===!0,parentDefaults:se(f,[w]),rawFormData:se(p,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return jg(b,w,A,i,c,k.required,o,S,(m==null?void 0:m.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=_e(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(m=>!k.properties||!k.properties[m]).forEach(m=>{w.add(m),E.push(m)}),_e(f)&&E.length===0&&Object.keys(f).filter(m=>!k.properties||!k.properties[m]).forEach(m=>w.add(m)),w.forEach(m=>{var g;const S=ia(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:i===!0,parentDefaults:se(f,[m]),rawFormData:se(p,[m]),required:(g=k.required)===null||g===void 0?void 0:g.includes(m),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});jg(y,m,S,i,c,E)})}return Mg(t,y)}}function Tx(e,t,{rawFormData:r,rootSchema:a={},_recurseList:i=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,requiredAsRoot:c=!1,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){var p,d;let h=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",m=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((C,_)=>{const F=tf(k,xi.Fallback,_),I=Array.isArray(r)?r[_]:void 0;return ia(e,F,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,parentDefaults:C,rawFormData:I,required:s,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const C=tf(k);if(w)h=r;else{const _=r.map((I,j)=>ia(e,C,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:I,parentDefaults:se(h,[j]),required:s,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Po(h,_,(E&&s||m)&&b)}}const x=Array.isArray(h)?h.length:0;if(w)return l&&!s?h:h??A;if(E&&!s)return h||void 0;let O;if(!k.minItems||ef(e,k,a,o)||g(e,k,a)||k.minItems<=x)O=h||!s&&!c?h:A;else{const C=h||[],_=tf(k,xi.Invert),F=_.default,I=Array.from({length:k.minItems-x},()=>ia(e,_,{parentDefaults:F,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:l}));O=C.concat(I)}return Mg(t,O)}function Lg(e,t,r={},a){switch(zr(t)){case"object":return xx(e,t,r,a);case"array":return Tx(e,t,r,a);default:return}}function Rg(e,t,r,a,i=!1,n,o,s){if(!_e(t))throw new Error(`Invalid schema: ${t}`);const c=tr(e,t,a,r,o),l=ia(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:s,requiredAsRoot:!0});if(c.type!=="object"&&_e(c.default))return{...l,...r};if(_e(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",p=rf(e,c,a??c,r,n,o);return Po(l,p,!0,f,!0)}return l}function qg(e={}){return"widget"in be(e)&&be(e).widget!=="hidden"}function zg(e,t,r={},a,i){if(r[su]==="files")return!0;if(t.items){const n=tr(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function Px(e,t,r={},a,i,n){const o=be(r,i),{label:s=!0}=o;let c=!!s;if(c){const l=zr(t),u=!!t[Xn];l==="array"&&(c=u||ef(e,t,a,n)||zg(e,t,r,a,n)||qg(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[su]&&(c=!1),r!=null&&r[Jw]&&(c=!1)}return c}function $g(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var o=t[a],s=Os(e,o);r(s,o)&&qu(n,bi(o,e),s)}return n}function Ix(e,t){return $g(e,t,function(r,a){return ag(e,a)})}var Ug=zh(function(e,t){return e==null?{}:Ix(e,t)});function Nx(e,t){if(t.length===0&&typeof e!="object")return e;const r=Ug(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function Dx(e,t){const r=(i,n)=>typeof i!="object"||Dt(i)||n&&!Dt(i),a=(i,n=[],o=[[]])=>{const s=Object.keys(i);return s.forEach(c=>{const l=i[c];if(typeof l=="object"){const u=o.map(f=>[...f,c]);l[ou]&&l[ks]!==""?n.push(l[ks]):a(l,n,u)}else c===ks&&l!==""&&o.forEach(u=>{const f=se(t,u),p=s.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(u)})}),n};return a(e)}function Bg(e){return Oi(e)||e===""?!0:Array.isArray(e)?e.length===0:_e(e)?Object.values(e).every(Bg):!1}function Fx(e,t){return t?t(e):Sg(e)}function Mx(e,t,r={},a,i){function n(h){return _e(h)}function o(h){return _e(h)}function s(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:m}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(x,O,C,_=!1){var F;const I=d(O,C,v[x]);if(!_&&_e(I)){let j=o(O)?O:{};j.$ref!==void 0&&(j=Co(j.$ref,r));const $=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&Bg(ie)))return}I!==void 0&&(v[x]=I)}if(b!==void 0)for(const[x,O]of Object.entries(b))S(x,O,k[x],g.has(x));let A;if(E!==void 0){A=[];const x=Object.entries(E).map(([C,_])=>[new RegExp(C),_]),O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))if(!O.has(C)){const F=x.find(([I])=>I.test(C));F===void 0?A.push(C):S(C,F[1],_)}}if(w!==void 0&&w!==!1){const x=w;if(A!==void 0)for(const O of A)S(O,x,k[O]);else{const O=new Set(Object.keys(b??{}));for(const[C,_]of Object.entries(k))O.has(C)||S(C,x,_)}}if(m!==void 0)for(const[x,O]of Object.entries(k))v[x]=O;return v}function c(h,k,v){const{items:y,additionalItems:b}=h;if(y!==void 0)if(Array.isArray(y))for(let w=0;w<y.length;w+=1)v.push(d(y[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(y,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function l(h,k,v){const{if:y,then:b,else:w}=h;if(y===void 0)return v;const m=(o(y)?e.isValid(y,k,r):y)?b:w;return m===void 0?v:d(m,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||Vs(e,k,r,i))return y;const b=Og(h,!0,r),w=_i(e,r,v,b,0,qr(k),i),E=h[w],m=_e(E)?na(E,r,[]):b[w];return d(m,v,y)}function f(h,k,v){const{anyOf:y}=h;if(!Array.isArray(y))return v;if(k===void 0||Array.isArray(k)&&k.length===0||_e(k)&&Object.keys(k).length===0){let b=v;for(const w of y)b=d(w,k,b);return b}return u(y,h,k,v)}function p(h,k,v){const{dependencies:y}=h;if(y===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(y))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(h,k,v){if(k===void 0||h===!1)return;if(h===!0||Dt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(Co(b,r),k,v);if(w){y=Fx(y,i);const g=y.allOf;if(g)for(let S=0;S<g.length;S++)v=d(g[S],k,v)}let E=f(y,k,u(y.oneOf,y,k,v));const m=zr(y);if(m==="object"){if(!n(k))return;E=s(y,k,n(E)?E:{})}else if(m==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return p(y,k,l(y,k,E))}return d(t,a)}const $r=Symbol("no Value");function Vg(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(a=>cr in a?a[cr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:$r).filter(a=>a!==$r);return r.length>0?r:void 0}function jx(e,t){const r=Vg(e);if(!r||r.some(i=>Xe(i,t)))return $r;const a=se(e,Na,$r);return a!==$r&&r.some(i=>Xe(i,a))?a:r.length===1?r[0]:void 0}function nf(e,t,r,a,i={},n){let o;if(Ke(r,Je)){const s={};if(Ke(a,Je)){const u=se(a,Je,{});Object.keys(u).forEach(f=>{Ke(i,f)&&(s[f]=void 0)})}const c=Object.keys(se(r,Je,{})),l={};c.forEach(u=>{const f=se(i,u);let p=se(a,[Je,u],{}),d=se(r,[Je,u],{});Ke(p,gt)&&(p=tr(e,p,t,f,n)),Ke(d,gt)&&(d=tr(e,d,t,f,n));const h=se(p,"type"),k=se(d,"type");if(!h||h===k)if(Ke(s,u)&&delete s[u],k==="object"||k==="array"&&Array.isArray(f)){const v=nf(e,t,d,p,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=se(d,Na,$r),y=se(p,Na,$r);v!==$r&&v!==f&&(y===f?s[u]=v:se(d,"readOnly")===!0&&(s[u]=void 0));const b=se(d,cr,$r),w=se(p,cr,$r);if(b!==$r&&b!==f&&(s[u]=w===f?b:void 0),Ke(i,u)){const E=jx(d,f);E!==$r&&(s[u]=E)}}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...s,...l}}else if(se(a,"type")==="array"&&se(r,"type")==="array"&&Array.isArray(i)){let s=se(a,"items"),c=se(r,"items");if(typeof s=="object"&&typeof c=="object"&&!Array.isArray(s)&&!Array.isArray(c)){Ke(s,gt)&&(s=tr(e,s,t,i,n)),Ke(c,gt)&&(c=tr(e,c,t,i,n));const l=se(s,"type"),u=se(c,"type");if(!l||l===u){const f=se(r,"maxItems",-1);if(u==="object")o=i.reduce((p,d)=>{const h=nf(e,t,c,s,d,n);return h!==void 0&&(f<0||p.length<f)&&p.push(h),p},[]);else{const p=Vg(c),d=p?i.filter(h=>p.some(k=>Xe(k,h))):i;o=f>0&&d.length>f?d.slice(0,f):d}}}else typeof s=="boolean"&&typeof c=="boolean"&&s===c&&(o=i)}return o}function oa(e,t,r,a,i,n=[],o){if(gt in t||tu in t||vn in t||ru in t){const c=tr(e,t,a,i,o);if(n.findIndex(u=>Xe(u,c))===-1)return oa(e,c,r,a,i,n.concat(c),o)}let s={[ks]:r.replace(/^\./,"")};if(Fe in t||Ve in t){const c=Fe in t?t.oneOf:t.anyOf,l=qr(t),u=_i(e,a,i,c,0,l,o),f=c[u];s={...s,...oa(e,f,r,a,i,n,o)}}if(gi in t&&t[gi]!==!1){vt(s,ou,!0);const c=Ye(t[gi])?t[gi]:{},l=se(t,Je,{});for(const u of Object.keys(i??{}))u in l||(s[u]=oa(e,c,`${r}.${u}`,a,se(i,[u]),n,o))}if(yi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?s[f]=oa(e,c[f],`${r}.${f}`,a,u,n,o):l?s[f]=oa(e,l,`${r}.${f}`,a,u,n,o):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):i.forEach((u,f)=>{s[f]=oa(e,c,`${r}.${f}`,a,u,n,o)})}else if(Je in t)for(const c in t.properties){const l=se(t,[Je,c],{});s[c]=oa(e,l,`${r}.${c}`,a,se(i,[c]),n,o)}return s}function Lx(e,t,r="",a,i,n){return oa(e,t,r,a,i,void 0,n)}class Rx{constructor(t,r,a,i){(r==null?void 0:r[so])===Es?this.rootSchema=Mu(r,se(r,dt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},i){return!t||!r?!1:this.validator!==t||!Xe(this.rootSchema,r)||!Xe(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return bx(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,a,i){return To(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,a=!1,i){return Rg(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return Px(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return _i(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return zs(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Bs(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return zg(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return ef(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Vs(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return Mx(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return tr(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return nf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return Lx(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function qx(e,t,r={},a){return new Rx(e,t,r,a)}function zx(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,n]=a,[o,...s]=i.split(";"),c=o||"",l=decodeURI(((t=s.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(n),f=new Array(u.length);for(let d=0;d<u.length;d+=1)f[d]=u.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:c}),name:l}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function sa(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Hg(e,t){const r=e<=0&&t<=0,a=e<0||t<0;if(!r&&a)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),n=r?i+e:e,o=r?i+t:t;if(n>o)return Hg(t,e).reverse();const s=[];for(let c=n;c<=o;c+=1)s.push({value:c,label:sa(c,2)});return s}function $x(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((i,n)=>{const o=a.findIndex(s=>s===`%${n+1}`);o>=0&&(a[o]=i)}),r=a.join("")}return r}function Ux(e,t){return $x(e,t)}function Hs(e,t=[],r){if(Array.isArray(e))return e.map(n=>Hs(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function Wg(e,t,r=[]){const a=Hs(e,r);return Array.isArray(t)?t.filter(i=>!Xe(i,a)):Xe(a,t)?void 0:t}function Ti(e,t){return Array.isArray(t)?t.some(r=>Xe(r,e)):Xe(t,e)}function Kg(e,t=[],r=!1){const a=t.map((i,n)=>Ti(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function Bx(e,t,r,a="indexed",i){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===i)return i;if(a==="realValue")return r?e.map(String):String(e);const o=Kg(e,t,r);return typeof o>"u"?i:o}function Gg(e,t,r=[]){const a=Hs(e,r);if(!Oi(a)){const i=r.findIndex(s=>a===s.value),n=r.map(({value:s})=>s);return t.slice(0,i).concat(a,t.slice(i)).sort((s,c)=>+(n.indexOf(s)>n.indexOf(c)))}return t}function Jg(e,t,r){if(e===""||!Array.isArray(t))return r;const a=t.find(n=>String(n.value)===e);if(a)return a.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<t.length?t[i].value:r}function tn(e,t,r="indexed",a){return r!=="realValue"?Hs(e,t,a):Array.isArray(e)?e.map(i=>Jg(i,t,a)):Jg(e,t,a)}function Io(e,t,r="indexed"){return r!=="realValue"?String(t):Oi(e)?"":String(typeof e=="object"?t:e)}var Vx=1,Hx=4;function Ws(e){return wo(e,Vx|Hx)}function Wx(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:qu(e,t,r,a)}class Yg{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?se(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},Wx(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Ws(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=se(a,er);return Array.isArray(i)||(i=[],a[er]=i),Array.isArray(t)?vt(a,er,[...new Set([...i,...t])]):vt(a,er,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return vt(a,er,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return vt(r,er,[]),this}}var Kx=200;function Gx(e,t,r,a){var i=-1,n=Vu,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;t.length>=Kx&&(n=_o,o=!1,t=new qa(t));e:for(;++i<s;){var u=e[i],f=u;if(u=u!==0?u:0,o&&f===f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var Jx=js(function(e,t){return Ao(e)?Gx(e,So(t,1,Ao,!0)):[]});function Yx(e,t){if(e==null)return{};var r=vi(Nu(e),function(a){return[a]});return t=Bu(t),$g(e,r,function(a,i){return t(a,i[0])})}function Xg(e,t){const r=Qn(e),a=Qn(t);if(e===t||!r&&!a)return[];if(r&&!a)return en(e);if(!r&&a)return en(t);const i=en(Yx(e,(o,s)=>!Xe(o,se(t,s)))),n=Jx(en(t),en(e));return[...i,...n]}function Xx(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:i,month:n,year:o,hour:s,minute:c,second:l}=e,u={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:n},p={type:"year",range:r,value:o},d=[];switch(a){case"MDY":d.push(f,u,p);break;case"DMY":d.push(u,f,p);break;case"YMD":default:d.push(p,f,u)}return t&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),d}function Zx(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function Qx(e,t,r={},a=!0){const i={type:t||"text",...Zx(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",a&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(e.formatMinimum!==void 0&&(i.min=e.formatMinimum),e.formatMaximum!==void 0&&(i.max=e.formatMaximum)),r.autocomplete&&(i.autoComplete=r.autocomplete),r.accept&&(i.accept=r.accept),i}function No(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Zg={props:{disabled:!1},submitText:"Submit",norender:!1};function Qg(e={}){const t=be(e);if(t!=null&&t[ws]){const r=t[ws];return{...Zg,...r}}return Zg}function Ce(e,t,r={}){const{templates:a}=t;if(e==="ButtonTemplates")return a[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(a,r[e])){const i=r[e];return a[i]}return r[e]||a[e]}var eT=0;function ey(e){var t=++eT;return pu(e)+t}function af(){if(se(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,ey("test-id-")),e.get(r)}})}var Ks={exports:{}},pt={};/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-is.production.min.js
|
|
36
36
|
*
|
|
@@ -38,7 +38,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
41
|
+
*/var ty;function tT(){if(ty)return pt;ty=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function k(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case i:case a:case l:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case c:case p:case f:case n:return v;default:return y}}case t:return y}}}return pt.ContextConsumer=o,pt.ContextProvider=n,pt.Element=e,pt.ForwardRef=c,pt.Fragment=r,pt.Lazy=p,pt.Memo=f,pt.Portal=t,pt.Profiler=i,pt.StrictMode=a,pt.Suspense=l,pt.SuspenseList=u,pt.isAsyncMode=function(){return!1},pt.isConcurrentMode=function(){return!1},pt.isContextConsumer=function(v){return k(v)===o},pt.isContextProvider=function(v){return k(v)===n},pt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},pt.isForwardRef=function(v){return k(v)===c},pt.isFragment=function(v){return k(v)===r},pt.isLazy=function(v){return k(v)===p},pt.isMemo=function(v){return k(v)===f},pt.isPortal=function(v){return k(v)===t},pt.isProfiler=function(v){return k(v)===i},pt.isStrictMode=function(v){return k(v)===a},pt.isSuspense=function(v){return k(v)===l},pt.isSuspenseList=function(v){return k(v)===u},pt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===a||v===l||v===u||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===n||v.$$typeof===o||v.$$typeof===c||v.$$typeof===h||v.getModuleId!==void 0)},pt.typeOf=k,pt}var mt={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.development.js
|
|
44
44
|
*
|
|
@@ -46,80 +46,80 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,N,L,B+"."+Q,
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
50
|
-
`,u),c}for(const u of[Fe,Ve]){const f=l[u];if(Array.isArray(f)&&f.length>0){const p=c[u],d=Array.isArray(p)?[...p]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[So])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in s){const b=d[k]||{};d[k]=aa(s[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Ns(e){var t,r,a;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return Ns(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Ns(e.oneOf[0]);if(e.allOf){const i=n=>Ns(n);return e.allOf.some(i)}return!1}function dT({hideLabel:e,id:t,multiple:r,options:a,registry:i,uiSchema:n,value:s}){var o,c;if(r||e)return null;const{label:l=!0}=be(n,i.globalUiOptions);if(!l)return null;const u=(o=a.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Ti(d,s)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const p=Ce("DescriptionFieldTemplate",i,a);return D.jsx(p,{id:la(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function pf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i+=1){const n=r[i];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function pT(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:s,state:o}=e;return!pf(s,t)||!pf(o,r)}const{props:i,state:n}=e;return!Xe(i,t)||!Xe(n,r)}function sy(e){const t=sg(e.map(r=>Ye(r)?zr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function Ds(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=be(a,e.globalUiOptions);let n;return Ve in t&&Array.isArray(t[Ve])?n=sy(t[Ve]):Fe in t&&Array.isArray(t[Fe])?n=sy(t[Fe]):n=zr(t),!sT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(s=>s===n)}function oy(e,t=!0){const{year:r,month:a,day:i,hour:n=0,minute:s=0,second:o=0}=e,c=Date.UTC(r,a-1,i,n,s,o),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function mf(e,t=[]){if(!e)return[];let r=[];return er in e&&(r=r.concat(e[er].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==er){const n=e[i];if(Qn(n))return a.concat(mf(n,[...t,i]))}return a},r)}function ly(e){return Bt(e)?vi(e,ea):cs(e)?[e]:xu(jm(pu(e)))}function mT(e){const t=new Jg;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:ly(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function nn(e,t,r,a){const i=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=i?i.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let c;return t.nameGenerator&&s.length>0&&(c=t.nameGenerator(s,t.idPrefix,a)),{path:s,[dt]:o,...c!==void 0&&{name:c}}}function cy(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return Qn(a)?{...t,[r]:cy(a)}:{...t,[r]:a}},{})}function hT(e){return Object.values(e).every(t=>t!==-1)}function gT(e){const{className:t="form-control",type:r,range:a,value:i,select:n,rootId:s,name:o,disabled:c,readonly:l,autofocus:u,registry:f,onBlur:p,onFocus:d}=e,h=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=H.useCallback(y=>n(r,y),[n,r]);return D.jsx(k,{schema:{type:"integer"},id:h,name:o,className:t,options:{enumOptions:Vg(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":rn(s)})}function yT(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:s}=e,[o,c]=H.useState(df(s,t));H.useEffect(()=>{c(df(s,t))},[t,s]);const l=H.useCallback((d,h)=>{const k={...o,[d]:typeof h>"u"?-1:h};hT(k)?n(oy(k,t)):c(k)},[o,n,t]),u=H.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=H.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=df(new Date().toJSON(),t);n(oy(h,t))},[r,a,t,n]);return{elements:H.useMemo(()=>Jx(o,t,i.yearsRange,i.format),[o,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ii(e){const t=H.useRef(e);return Xe(e,t.current)||(t.current=e),t.current}function vT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function bT(e){const{name:t,size:r,type:a}=e;return new Promise((i,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var c;typeof((c=o.target)===null||c===void 0?void 0:c.result)=="string"?i({dataURL:vT(o.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},s.readAsDataURL(e)})}async function kT(e){return Promise.all(Array.from(e).map(bT))}function uy(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=Rx(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function wT(e,t,r=!1){const a=H.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=H.useMemo(()=>Array.isArray(e)?uy(e):uy([e||""]),[e]),n=H.useCallback(async o=>{const l=(await kT(o)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),s=H.useCallback(o=>{if(r){const c=a.filter((l,u)=>u!==o);t(c)}else t(void 0)},[a,r,t]);return{filesInfo:i,handleChange:n,handleRemove:s}}function ST(e){if(!e)return"";const t=new Date(e),r=oa(t.getFullYear(),4),a=oa(t.getMonth()+1,2),i=oa(t.getDate(),2),n=oa(t.getHours(),2),s=oa(t.getMinutes(),2),o=oa(t.getSeconds(),2),c=oa(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${s}:${o}.${c}`}function Fs(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=mf(t),s=t;return Dt(i)||(s=aa(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:s,errors:n}}function ET(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const a=t[r];r===gt&&typeof a=="string"&&a.startsWith("#")?t[r]=xm+a:t[r]=hf(a)}return e}function CT(e){return e.map(t=>hf(t))}function hf(e){return Array.isArray(e)?CT([...e]):Ye(e)?ET({...e}):e}var Me;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(Me||(Me={}));function AT(e,t){var r=Bt(e)?Au:Ig;return r(e,Vh(t))}function _T(e,t){return e==null?!0:Fh(e,t)}function gf(){return Qg("rjsf-array-item-")}function fy(e){return Array.isArray(e)?e.map(t=>({key:gf(),item:t})):[]}function dy(e){return Array.isArray(e)?e.map(t=>t.item):[]}function OT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function py(e,t,r,a){let{addable:i}=be(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function my(e,t,r,a){if(typeof e.items=="function")try{return e.items(t,r,a)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,i);return}else return e.items}function xT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Qu(t)&&Uw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function TT(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:c=!1,placeholder:l,onBlur:u,onFocus:f,registry:p,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=p,E=y.retrieveSchema(t.items,i),m=(a==null?void 0:a.items)??a,g=Ua(E,m),{widget:S="select",title:A,...x}=be(a,w),O=Sn(t,S,v),C=A??t.title??h,_=y.getDisplayLabel(t,a,w),F=Ii(nn("",b,r,!0));return D.jsx(O,{id:F[dt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...x,enumOptions:g},schema:t,uiSchema:a,registry:p,value:i,disabled:n,readonly:s,required:c,label:C,hideLabel:!_,placeholder:l,autofocus:o,rawErrors:d,htmlName:F.name})}function PT(e){const{schema:t,fieldPathId:r,uiSchema:a,disabled:i=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:c,placeholder:l,onBlur:u,onFocus:f,formData:p=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:m,title:g,...S}=be(a,E),A=Sn(t,m,y),x=g??t.title??k,O=b.getDisplayLabel(t,a,E),C=Ii(nn("",w,r,!0));return D.jsx(A,{id:C[dt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:p,disabled:i,readonly:n,hideError:c,required:o,label:x,hideLabel:!O,placeholder:l,autofocus:s,rawErrors:h,htmlName:C.name})}function IT(e){const{schema:t,uiSchema:r,fieldPathId:a,name:i,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:c=!1,onBlur:l,onFocus:u,registry:f,formData:p=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...m}=be(r,b),g=Sn(t,w,k),S=E??t.title??i,A=v.getDisplayLabel(t,r,b),x=Ii(nn("",y,a,!0));return D.jsx(g,{options:m,id:x[dt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:p,disabled:n,readonly:s,required:c,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:x.name})}function NT(e){const{itemKey:t,index:r,name:a,disabled:i,hideError:n,readonly:s,registry:o,uiOptions:c,parentUiSchema:l,canAdd:u,canRemove:f=!0,canMoveUp:p,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:m,onChange:g,rawErrors:S,totalItems:A,title:x,handleAddItem:O,handleCopyItem:C,handleRemoveItem:_,handleReorderItems:F}=e,{schemaUtils:I,fields:{ArraySchemaField:j,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=o,ie=H.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=H.useMemo(()=>nn(r,Z,y),[r,Z,y]),M=j||$,U=Ce("ArrayFieldItemTemplate",o,c),T=I.getDisplayLabel(ie,v,Y),{description:N}=be(v),L=!!N||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&p,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=H.useCallback(ae=>{O(ae,r+1)},[O,r]),q=H.useCallback(ae=>{C(ae,r)},[C,r]),z=H.useCallback(ae=>{_(ae,r)},[_,r]),W=H.useCallback(ae=>{F(ae,r,r-1)},[F,r]),G=H.useCallback(ae=>{F(ae,r,r+1)},[F,r]),te={children:D.jsx(M,{name:a,title:x,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:OT(ie),onChange:g,onBlur:E,onFocus:m,registry:o,disabled:i,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:i,readonly:s,canAdd:u,hasCopy:J.copy,hasMoveUp:J.moveUp,hasMoveDown:J.moveDown,hasRemove:J.remove,index:r,totalItems:A,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:W,onMoveDownItem:G,registry:o,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:L};return D.jsx(U,{...te})}const hy=H.memo(NT);function DT(e){const{schema:t,uiSchema:r={},errorSchema:a,fieldPathId:i,formData:n,name:s,title:o,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e,S=t.title||o||s,{schemaUtils:A,fields:x,formContext:O,globalUiOptions:C}=d,{OptionalDataControlsField:_}=x,F=H.useMemo(()=>be(r,C),[r,C]),I=H.useMemo(()=>Ye(t.items)?t.items:{},[t.items]),j=H.useMemo(()=>A.retrieveSchema(I),[A,I]),$=H.useMemo(()=>dy(b),[b]),Y=Ds(d,t,f,r),Z=Pi(n),ie=H.useMemo(()=>py(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],M=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?D.jsx(_,{...e,fieldPathId:U}):void 0,N={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=my(r,J,V,O),W={itemKey:K,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:ie,canMoveUp:V>0,canMoveDown:V<$.length-1,rawItemSchema:I,parentFieldPathId:U,itemErrorSchema:q,itemData:Q,itemUiSchema:z,autofocus:u&&V===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g,onChange:y};return D.jsx(hy,{...W},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},L=Ce("ArrayFieldTemplate",d,F);return D.jsx(L,{...N})}function FT(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:s,title:o,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:x,formContext:O,globalUiOptions:C}=d,_=H.useMemo(()=>be(r,C),[r,C]),{OptionalDataControlsField:F}=x,I=Ds(d,t,f,r),j=Pi(a),$=H.useMemo(()=>Ye(t.items)?t.items:[],[t.items]),Y=Ye(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=j?y:[],P=I?" rjsf-optional-array-field":"",M=I?D.jsx(F,{...e,fieldPathId:Z}):void 0,U=py(d,t,S,r)&&Y&&(!I||j),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((L,B)=>{const{key:V,item:K}=L,J=K,Q=B>=$.length,q=(Q&&Ye(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=my(r,K,B,O);const W=i?i[B]:void 0,G={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:_,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:A?`${A}-${B+1}`:void 0,canAdd:U,canRemove:Q,canMoveUp:B>=$.length+1,canMoveDown:Q&&B<S.length-1,rawItemSchema:q,itemData:J,itemUiSchema:z,parentFieldPathId:Z,itemErrorSchema:W,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g};return D.jsx(hy,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:i,rawErrors:v,optionalDataControl:M},N=Ce("ArrayFieldTemplate",d,_);return D.jsx(N,{...T})}function MT(e=[]){const t=H.useMemo(()=>Ur(e),[e]),[r,a]=H.useState(()=>({formDataHash:t,keyedFormData:fy(e)}));let{keyedFormData:i,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],c=i||[];i=o.length===c.length?c.map((l,u)=>({key:l.key,item:o[u]})):fy(o),n=t,a({formDataHash:n,keyedFormData:i})}const s=H.useCallback(o=>{const c=dy(o),l=Ur(c);return a({formDataHash:l,keyedFormData:o}),c},[]);return{keyedFormData:i,updateKeyedFormData:s}}function jT(e){const{schema:t,uiSchema:r,errorSchema:a,fieldPathId:i,registry:n,formData:s,onChange:o}=e,{globalFormOptions:c,schemaUtils:l,translateString:u}=n,{keyedFormData:f,updateKeyedFormData:p}=MT(s),d=H.useRef(f);d.current=f;const h=H.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);x===void 0||I<x?vt(O,[I],h.current[I]):I>=x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:xT(n,t)},_=[...d.current];x!==void 0?_.splice(x,0,C):_.push(C),o(p(_),k.path,O)},[n,t,o,p,k]),y=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);I<=x?vt(O,[I],h.current[I]):I>x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:Wo(d.current[x].item)},_=[...d.current];x!==void 0?_.splice(x+1,0,C):_.push(C),o(p(_),k.path,O)},[o,p,k]),b=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const _ of Object.keys(h.current)){const F=parseInt(_,10);F<x?vt(O,[F],h.current[F]):F>x&&vt(O,[F-1],h.current[F])}}const C=d.current.filter((_,F)=>F!==x);o(p(C),k.path,O)},[o,p,k]),w=H.useCallback((A,x,O)=>{A&&(A.preventDefault(),A.currentTarget.blur());let C;if(h.current){C={};for(const I of Object.keys(h.current)){const j=parseInt(I,10);j===x?vt(C,[O],h.current[x]):j===O?vt(C,[x],h.current[O]):vt(C,[I],h.current[j])}}function _(){const I=d.current.slice();return I.splice(x,1),I.splice(O,0,d.current[x]),I}const F=_();o(p(F),k.path,C)},[o,p,k]),E=H.useCallback((A,x,O,C)=>{const _=typeof x.at(-1)=="number";o(_&&A===void 0?null:A,x,O,C)},[o]),m=H.useCallback(A=>{o(A,k.path,void 0,k==null?void 0:k[dt])},[o,k]),g={...e,formData:s,fieldPathId:k,onSelectChange:m},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(yi in t)){if(!c.useFallbackUiForUnsupportedType){const x=be(r),O=Ce("UnsupportedFieldTemplate",n,x);return D.jsx(O,{schema:t,fieldPathId:i,reason:u(Me.MissingItems),registry:n})}const A={...t,[yi]:{type:void 0}};g.schema=A,S.schema=A}return l.isMultiSelect(g.schema)?D.jsx(TT,{...g}):Rg(r)?D.jsx(PT,{...g}):Qu(g.schema)?D.jsx(FT,{...S}):l.isFilesArray(g.schema,r)?D.jsx(IT,{...g}):D.jsx(DT,{...S})}function LT(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,registry:s,required:o,disabled:c,readonly:l,hideError:u,autofocus:f,title:p,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:m="checkbox",title:g,label:S=!0,enumNames:A,...x}=be(a,E),O=Sn(t,m,b),C=w(Me.YesLabel),_=w(Me.NoLabel);let F;const I=g??y??p??r;if(Array.isArray(t.oneOf))F=Ua({oneOf:t.oneOf.map($=>{if(Ye($))return{...$,title:$.title||($.const===!0?C:_)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!A&&$.length===2&&$.every(Y=>typeof Y=="boolean")?F=[{value:$[0],label:$[0]?C:_},{value:$[1],label:$[1]?C:_}]:F=Ua({enum:$},a)}const j=H.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return D.jsx(O,{options:{...x,enumOptions:F},schema:t,uiSchema:a,id:i.$id,name:r,onChange:j,onFocus:h,onBlur:k,label:I,hideLabel:!S,value:n,required:o,disabled:c,readonly:l,hideError:u,registry:s,autofocus:f,rawErrors:v,htmlName:i.name})}function RT(e){const[t,r]=H.useState(!1),{name:a,registry:i,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:c}=i,l=be(s,c),u=Ce("CyclicSchemaExpandTemplate",i,l);if(!t)return D.jsx(u,{registry:i,schema:n,uiSchema:s,name:a,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:p}=f;return D.jsx(p,{...e,schema:{...n,[iu]:!1}})}function qT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function zT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function $T(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function UT(e){const{id:t,formData:r,displayLabel:a=!0,schema:i,name:n,uiSchema:s,required:o,disabled:c=!1,readonly:l=!1,onBlur:u,onFocus:f,registry:p,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=p,[w,E]=H.useState(zT(r)),m=be(s),g=Ii(nn("__internal_type_selector",b,d)),S=v(Me.Type),A=H.useMemo(()=>qT(S),[S]),x=_=>{_!=null&&(E(_),h($T(r,_),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:_=v(Me.UnknownFieldType,[String(i.type)])}=e,F=Ce("UnsupportedFieldTemplate",p,m);return D.jsx(F,{schema:i,fieldPathId:d,reason:_,registry:p})}const O=Ce("FallbackFieldTemplate",p,m),{SchemaField:C}=y;return D.jsx(O,{schema:i,registry:p,typeSelector:D.jsx(C,{fieldPathId:g,name:`${n}__fallback_type`,schema:A,formData:w,onChange:x,onBlur:u,onFocus:f,registry:p,hideLabel:!a,disabled:c,readonly:l,required:o},r?Ur(r):"__empty__"),schemaField:D.jsx(C,{...e,schema:{type:w,title:v(Me.Value),...w==="object"&&{additionalProperties:!0}}})})}function BT(e,t){return vi(t,function(r){return e[r]})}function VT(e){return e==null?[]:BT(e,en(e))}var HT=Math.max;function WT(e,t,r,a){e=La(e)?e:VT(e),r=r?Kh(r):0;var i=e.length;return r<0&&(r=HT(i+r,0)),ta(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&ag(e,t,r)>-1}var KT=Math.min;function GT(e,t,r){for(var a=Vu,i=e[0].length,n=e.length,s=n,o=Array(n),c=1/0,l=[];s--;){var u=e[s];c=KT(u.length,c),o[s]=i>=120&&u.length>=120?new qa(s&&u):void 0}u=e[0];var f=-1,p=o[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(p?As(p,h):a(l,h))){for(s=n;--s;){var k=o[s];if(!(k?As(k,h):a(e[s],h)))continue e}p&&p.push(h),l.push(d)}}return l}function JT(e){return Cs(e)?e:[]}var gy=jo(function(e){var t=vi(e,JT);return t.length&&t[0]===e[0]?GT(t):[]});function YT(e,t){return Ro(e,t)}function yy(e){return e===void 0}var En;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(En||(En={}));var Ms;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Ms||(Ms={}));const XT=/^\$lookup=(.+)/,yf="layoutGrid";function vy(e,t){return e??t}function ZT(e){return/^\d+?$/.test(e)}const ca=af();function QT(e,t,r,a,i){const n=oe(r,[lu],{}),s=oe(r,e),o={...oe(s,[Zn],{}),...t,...n},c={...s};Dt(o)||vt(c,[Zn],o),Dt(n)||vt(c,[lu],n);let{readonly:l}=be(c);return(i===!0||yy(l)&&a===!0)&&(l=!0,Ke(o,au)?vt(c,[Zn,au],!0):vt(c,`ui:${au}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function eP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=Fu([t]).sort(),i=Fu([r]).sort();switch(e){case Ms.ALL:return YT(a,i);case Ms.SOME:return gy(a,i).length>0;case Ms.NONE:return gy(a,i).length===0;default:return!1}}function Yo(e,t,r){let a={},i=e[t];if(Qn(i)){const{children:n,className:s,...o}=i;if(i=n,s){const l=s.split(" ").map(u=>ff(r,u,u)).join(" ");a={...o,className:l}}else a=o}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:a}}function by(e,t,r){let a,i=t;if(ZT(r)&&e&&(e==null?void 0:e.type)==="array"&&Ke(e,yi)){const n=Number(r),s=e[yi];Array.isArray(s)?n>s.length?a=Dh(s):a=s[n]:a=s,i={[dt]:t[dt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function tP(e,t,r,a,i){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,c=i;const l=t.split("."),u=l.pop();let f=n.retrieveSchema(o,a),p=a,d=f.readOnly;l.forEach(v=>{if(c=nn(v,s,c),Ke(f,Je))o=oe(f,[Je,v],{});else if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=n.findSelectedOptionInXxxOf(f,v,y,p);o=oe(b,[Je,v],{})}else{const y=by(f,c,v);o=y.rawSchema??{},c=y.fieldPathId}p=oe(p,v,{}),f=n.retrieveSchema(o,p),d=vy(f.readOnly,d)});let h,k=!1;if(Dt(f)&&(f=void 0),f&&u){if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve;f=n.findSelectedOptionInXxxOf(f,u,y,p)}c=nn(u,s,c),k=f!==void 0&&Array.isArray(f.required)&&WT(f.required,u);const v=by(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=oe(f,[Je,u]),f=f&&n.retrieveSchema(f)),d=vy(f==null?void 0:f.readOnly,d),f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=qr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function rP(e,t){let r=e;return ta(r)&&(r=ff(t,r)),us(r)?r:null}function nP(e,t){let r,a=null,i={},n;if(ta(t)||yy(t))r=t??"";else{const{name:s="",render:o,...c}=t;r=s,i=c,Dt(i)||AT(i,(l,u)=>{if(ta(l)){const f=XT.exec(l);if(Array.isArray(f)&&f.length>1){const p=f[1];i[u]=ff(e,p,p)}}}),a=rP(o,e),!s&&a&&(n=D.jsx(a,{...c,"data-testid":ca.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function Xo(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:a,schema:i,formData:n}=r,{schemaUtils:s}=a,o=s.retrieveSchema(i,n);return t.map(c=>H.createElement(vf,{...r,key:`layoutGrid-${Ur(c)}`,schema:o,layoutGridSchema:c}))}function aP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:s}=Yo(t,En.CONDITION,i),{operator:o,field:c="",value:l}=s,u=oe(a,c,null);return eP(o,u,l)?D.jsx(Xo,{...r,childrenLayoutGridSchemaId:n}):null}function iP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=Yo(t,En.COLUMN,a),o=be(i),c=Ce("GridTemplate",a,o);return D.jsx(c,{column:!0,"data-testid":ca.col,...s,children:D.jsx(Xo,{...r,childrenLayoutGridSchemaId:n})})}function sP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=Yo(t,En.COLUMNS,a),o=be(i),c=Ce("GridTemplate",a,o);return n.map(l=>D.jsx(c,{column:!0,"data-testid":ca.col,...s,children:D.jsx(Xo,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Ur(l)}`))}function oP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=Yo(t,En.ROW,a),o=be(i),c=Ce("GridTemplate",a,o);return D.jsx(c,{...s,"data-testid":ca.row,children:D.jsx(Xo,{...r,childrenLayoutGridSchemaId:n})})}function lP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:s,onFocus:o,formData:c,readonly:l,registry:u,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=nP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:m,isRequired:g,isReadonly:S,optionsInfo:A,fieldPathId:x}=tP(u,b,r,c,n),O=Ii(x);if(y.rendered)return y.rendered;if(m){const C=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:_,uiReadonly:F}=QT(b,E,a,S,l);return D.jsx(C,{"data-testid":A!=null&&A.hasDiscriminator?ca.layoutMultiSchemaField:ca.field,...p,name:b,required:g,readonly:F,schema:m,uiSchema:_,errorSchema:oe(i,b),fieldPathId:O,formData:oe(c,b),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:u})}return w?D.jsx(w,{"data-testid":ca.uiComponent,...p,name:b,required:g,formData:c,readOnly:!!S||l,errorSchema:i,uiSchema:a,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:u,...E}):null}function vf(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=be(t);if(!r&&yf in a&&Ye(a[yf])&&(r=a[yf]),Ye(r)){if(En.ROW in r)return D.jsx(oP,{...e,layoutGridSchema:r});if(En.COLUMN in r)return D.jsx(iP,{...e,layoutGridSchema:r});if(En.COLUMNS in r)return D.jsx(sP,{...e,layoutGridSchema:r});if(En.CONDITION in r)return D.jsx(aP,{...e,layoutGridSchema:r})}return D.jsx(lP,{...e,gridSchema:r})}vf.TEST_IDS=ca;function cP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,name:o}=e,c=be(i,s.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||o;if(!f)return null;const p=Ce("TitleFieldTemplate",s,c);return D.jsx(p,{id:Go(t),title:f,required:n,schema:a,uiSchema:i,registry:s})}function bf(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=oe(n,[Je,t]);return oe(s,Na,oe(s,cr,a))===r})}function ky(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let s=e;Ke(e,Fe)?s={...e,[Fe]:n}:Ke(e,Ve)&&(s={...e,[Ve]:n});const o=Ua(s,a);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function uP(e){var z;const{name:t,baseType:r,disabled:a=!1,formData:i,fieldPathId:n,onBlur:s,onChange:o,options:c,onFocus:l,registry:u,uiSchema:f,schema:p,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[m,g]=H.useState(ky(p,c,w,f,i)),S=oe(n,dt),A=qr(p),x=Ce("FieldErrorTemplate",u,c),O=Ce("FieldTemplate",u,c),C=Ur(p),_=Ur(c),F=f?Ur(f):"",I=i?Ur(i):"";H.useEffect(()=>{g(ky(p,c,w,f,i))},[C,_,w,F,I]);const{widget:j=A?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=A,hideError:ie,...P}=be(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=oe(i,Z);let U=oe((z=m[0])==null?void 0:z.schema,[Je,Z],{});const T=bf(m,Z,M);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const N=Sn(U,j,b),L=ie===void 0?y:!!ie,B=oe(v,[er],[]),V=Ss(v,[er]),K=w.getDisplayLabel(p,f,E),J=W=>{if(a||h)return;const G=bf(m,Z,W),te=bf(m,Z,M);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&vt(ae,Z,W),o(ae,n.path,void 0,S)},Q={enumOptions:m,...P},q=!L&&B.length>0?D.jsx(x,{fieldPathId:n,schema:p,errors:B,registry:u}):void 0;return D.jsx(O,{fieldPathId:n,id:S,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:o,onKeyRename:qo,onKeyRenameBlur:qo,onRemoveProperty:qo,children:D.jsx(N,{id:S,name:t,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:L,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:s,onFocus:l,value:M,options:Q,htmlName:n.name})})}function wy(e){const{name:t,disabled:r=!1,errorSchema:a={},formData:i,fieldPathId:n,onBlur:s,onChange:o,onFocus:c,options:l,readonly:u,registry:f,required:p=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Ur(i??null),y=H.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=H.useState(()=>{const ae=qr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=H.useRef(!1),m=H.useRef(i),g=H.useRef(n.$id);H.useEffect(()=>{const ae=m.current,pe=g.current;if(m.current=i,g.current=n.$id,!Xe(i,ae)&&n.$id===pe){if(E.current){E.current=!1;return}const ve=qr(d),Ae=k.getClosestMatchingOption(i,y,b,ve);Ae!==b&&w(Ae)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=H.useCallback(ae=>{if(r||u)return;const pe=ae!==void 0?parseInt(ae,10):-1;if(pe===b)return;const ve=pe>=0?y[pe]:void 0,Ae=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ae,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(pe),E.current=!0,o(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,o,S]),{widgets:x,fields:O,translateString:C,globalUiOptions:_}=f,{SchemaField:F}=O,I=Ce("MultiSchemaFieldTemplate",f,_),j=Ds(f,d,p,h),$=Pi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:M=d.title,...U}=be(h,_),T=Sn({type:"number"},Y,x),N=oe(a,er,[]),L=Ss(a,[er]),B=k.getDisplayLabel(d,h,_),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:pe}=d,ve={};ae&&(ve.required=ae),pe!==void 0&&!("type"in V)&&(ve.type=pe),K=Object.keys(ve).length>0?qn(ve,V):V}let J=[];Fe in d&&h&&Fe in h?Array.isArray(h[Fe])?J=h[Fe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):Ve in d&&h&&Ve in h&&(Array.isArray(h[Ve])?J=h[Ve]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=M?Me.TitleOptionPrefix:Me.OptionPrefix,z=M?[M]:[],W=y.map((ae,pe)=>{const{title:ve=ae.title}=be(J[pe]);return{label:ve||C(q,z.concat(String(pe+1))),value:pe}}),G=!j||$?D.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:c,disabled:r||Dt(W),multiple:!1,rawErrors:N,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:M??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&D.jsx(F,{...e,schema:K,uiSchema:Q})||null;return D.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function fP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return H.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const dP=/\.([0-9]*0)*$/,pP=/[0.]0*$/;function mP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,s]=H.useState(i),{StringField:o}=t.fields,c=wm(),l=c==="."?"\\.":c;let u=a;const f=H.useCallback((d,h,k,v)=>{s(d);const y=typeof d=="string"?d.replace(c,"."):d,b=`${y}`.startsWith(".")?`0${y}`:y,w=typeof b=="string"&&dP.exec(b)?Sm(b.replace(pP,"")):Sm(b);r(w,h,k,v)},[r,c]);if(typeof n=="string"&&typeof u=="number"){const d=new RegExp(`^(${String(u).replace(".",l)})?${l}?0*$`);n.match(d)&&(u=n)}let p=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ua(d,h):void 0)?"select":"text",{widget:b=y}=be(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(u).replace(".",c))}return D.jsx(o,{...e,formData:p,onChange:f})}var Zo;function hP(e){if(!Zo){if(typeof document>"u")return;Zo=document.createElement("textarea")}var t=`&${e};`;Zo.innerHTML=t;var r=Zo.value;return r===t?void 0:r}var ce=32,de=9,ua=13,ye=10,tt=96,zt=126,Tt=91,zn=94,qe=62,Br=35,kf=37,je=45,Vr=61,Vt=92,Ft=42,_t=95,ht=60,Sy=64,an=93,ur=33,Qo=38,nr=58,wf=70,Va=102,el=104,Ha=119,Ni=116,Sf=112,Ey=115,gP=160,yP=12,vP=44,tl=59,Di=63,Hr=46,Pt=47,Wa=39,Ka=34,fa=43,Ht=124,Ga=123,Ef=125,sn=40,on=41,bP=78,kP=110,wP=79,SP=111,Cy=120,Ay=88,Cf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,bt=122,rl=128,ln=32,EP={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},se=EP;function CP(e){if(!xy(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
49
|
+
*/var ry;function rT(){return ry||(ry=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=!1,k=!1,v=!1,y=!1,b=!1,w;w=Symbol.for("react.module.reference");function E(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===i||b||G===a||G===l||G===u||y||G===d||h||k||v||typeof G=="object"&&G!==null&&(G.$$typeof===p||G.$$typeof===f||G.$$typeof===n||G.$$typeof===o||G.$$typeof===c||G.$$typeof===w||G.getModuleId!==void 0))}function m(G){if(typeof G=="object"&&G!==null){var te=G.$$typeof;switch(te){case e:var ae=G.type;switch(ae){case r:case i:case a:case l:case u:return ae;default:var pe=ae&&ae.$$typeof;switch(pe){case s:case o:case c:case p:case f:case n:return pe;default:return te}}case t:return te}}}var g=o,S=n,A=e,x=c,O=r,C=p,_=f,F=t,I=i,j=a,$=l,Y=u,Z=!1,ie=!1;function P(G){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(G){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(G){return m(G)===o}function T(G){return m(G)===n}function N(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function L(G){return m(G)===c}function B(G){return m(G)===r}function V(G){return m(G)===p}function K(G){return m(G)===f}function J(G){return m(G)===t}function Q(G){return m(G)===i}function q(G){return m(G)===a}function z(G){return m(G)===l}function W(G){return m(G)===u}mt.ContextConsumer=g,mt.ContextProvider=S,mt.Element=A,mt.ForwardRef=x,mt.Fragment=O,mt.Lazy=C,mt.Memo=_,mt.Portal=F,mt.Profiler=I,mt.StrictMode=j,mt.Suspense=$,mt.SuspenseList=Y,mt.isAsyncMode=P,mt.isConcurrentMode=M,mt.isContextConsumer=U,mt.isContextProvider=T,mt.isElement=N,mt.isForwardRef=L,mt.isFragment=B,mt.isLazy=V,mt.isMemo=K,mt.isPortal=J,mt.isProfiler=Q,mt.isStrictMode=q,mt.isSuspense=z,mt.isSuspenseList=W,mt.isValidElementType=E,mt.typeOf=m})()),mt}var ny;function nT(){return ny||(ny=1,process.env.NODE_ENV==="production"?Ks.exports=tT():Ks.exports=rT()),Ks.exports}var aT=nT();const ay=gn(aT),of={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function iT(e){var t;let r=se(e,"MergedWidget");if(!r){const a=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:i,...n})=>D.jsx(e,{options:{...a,...i},...n}),vt(e,"MergedWidget",r)}return r}function Sn(e,t,r={}){const a=zr(e);if(typeof t=="function"||t&&ay.isForwardRef(H.createElement(t))||ay.isMemo(t))return iT(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){const i=r[t];return Sn(e,i,r)}if(typeof a=="string"){if(!(a in of))throw new Error(`No widget for type '${a}' in schema: ${JSON.stringify(e)}`);if(t in of[a]){const i=r[of[a][t]];return Sn(e,i,r)}}throw new Error(`No widget '${t}' for type '${a}' in schema: ${JSON.stringify(e)}`)}function iy(e){let t=0;for(let r=0;r<e.length;r++){const a=e.charCodeAt(r);t=(t<<5)-t+a,t&=t}return t.toString(16)}function oy(e){const t=new Set;return JSON.stringify(e,(r,a)=>(t.add(r),a)),JSON.stringify(e,Array.from(t).sort())}function Ur(e){return iy(oy(e))}function oT(e){return iy(oy(e))}function sT(e,t,r={}){try{return Sn(e,t,r),!0}catch(a){const i=a;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw a}}function Ba(e,t){return`${ta(e)?e:e[dt]}__${t}`}function la(e){return Ba(e,"description")}function sf(e){return Ba(e,"error")}function lf(e){return Ba(e,"examples")}function cf(e){return Ba(e,"help")}function Gs(e){return Ba(e,"title")}function rn(e,t=!1){const r=t?` ${lf(e)}`:"";return`${sf(e)} ${la(e)} ${cf(e)}${r}`}function Js(e,t){return`${e}-${t}`}function Or(e,t){return Ba(e,t)}function uf(e,t){return Ba(e,`optional${t}`)}function Pi(e){return!Oi(e)&&(!Ye(e)||Array.isArray(e)||!Dt(e))}function lT(e,t){const{rootSchema:r,schemaUtils:a}=e;if(Xe(t,r))return!0;if(gt in r){const i=a.retrieveSchema(r);return Xe(t,i)}return!1}function cT(e,t,r){return t?r:e}function uT(e){return e?new Date(e).toJSON():void 0}function fT(e,t,r,a=!1){!a&&Array.isArray(r)&&t.default!==void 0&&Kg(t.default,r,a)===void 0&&console.error(`The schema default value "${t.default}" is not one of the values in the enum options for "${e}"`)}function ff(e,t,r){const a=[Gw];return Ke(e,Om)&&a.unshift(Om),se(e,[...a,t],r)}function dT(e,t){if(!Array.isArray(t))return e;const r=u=>u.reduce((f,p)=>(f[p]=!0,f),{}),a=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=r(e),n=t.filter(u=>u==="*"||i[u]),o=r(n),s=e.filter(u=>!o[u]),c=n.indexOf("*");if(c===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${a(s)}`);return n}if(c!==n.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const l=[...n];return l.splice(c,1,...s),l}function df(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error(`Unable to parse date ${e}`);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function pT(e,t,r){var a,i;const n=(a=e[Ss])!==null&&a!==void 0?a:e[gt],o=r.uiSchemaDefinitions,s=n&&o?o[n]:void 0;let c;if(s?!t||Dt(t)?c={...s}:c=aa(s,t):c=t||{},o){let l=e;if(n&&e[gt]&&!e[Ss])try{l=Co(n,r.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
50
|
+
`,u),c}for(const u of[Fe,Ve]){const f=l[u];if(Array.isArray(f)&&f.length>0){const p=c[u],d=Array.isArray(p)?[...p]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[Ss])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in o){const b=d[k]||{};d[k]=aa(o[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Do(e){var t,r,a;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return Do(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Do(e.oneOf[0]);if(e.allOf){const i=n=>Do(n);return e.allOf.some(i)}return!1}function mT({hideLabel:e,id:t,multiple:r,options:a,registry:i,uiSchema:n,value:o}){var s,c;if(r||e)return null;const{label:l=!0}=be(n,i.globalUiOptions);if(!l)return null;const u=(s=a.enumOptions)===null||s===void 0?void 0:s.find(({value:d})=>Ti(d,o)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const p=Ce("DescriptionFieldTemplate",i,a);return D.jsx(p,{id:la(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function pf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i+=1){const n=r[i];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function hT(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:o,state:s}=e;return!pf(o,t)||!pf(s,r)}const{props:i,state:n}=e;return!Xe(i,t)||!Xe(n,r)}function sy(e){const t=sg(e.map(r=>Ye(r)?zr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function Fo(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=be(a,e.globalUiOptions);let n;return Ve in t&&Array.isArray(t[Ve])?n=sy(t[Ve]):Fe in t&&Array.isArray(t[Fe])?n=sy(t[Fe]):n=zr(t),!lT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(o=>o===n)}function ly(e,t=!0){const{year:r,month:a,day:i,hour:n=0,minute:o=0,second:s=0}=e,c=Date.UTC(r,a-1,i,n,o,s),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function mf(e,t=[]){if(!e)return[];let r=[];return er in e&&(r=r.concat(e[er].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==er){const n=e[i];if(Qn(n))return a.concat(mf(n,[...t,i]))}return a},r)}function cy(e){return Bt(e)?vi(e,ea):co(e)?[e]:xu(Lm(pu(e)))}function gT(e){const t=new Yg;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:cy(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function nn(e,t,r,a){const i=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],o=i?i.concat(...n):n,s=[t.idPrefix,...o].join(t.idSeparator);let c;return t.nameGenerator&&o.length>0&&(c=t.nameGenerator(o,t.idPrefix,a)),{path:o,[dt]:s,...c!==void 0&&{name:c}}}function uy(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return Qn(a)?{...t,[r]:uy(a)}:{...t,[r]:a}},{})}function yT(e){return Object.values(e).every(t=>t!==-1)}function vT(e){const{className:t="form-control",type:r,range:a,value:i,select:n,rootId:o,name:s,disabled:c,readonly:l,autofocus:u,registry:f,onBlur:p,onFocus:d}=e,h=`${o}_${r}`,{SelectWidget:k}=f.widgets,v=H.useCallback(y=>n(r,y),[n,r]);return D.jsx(k,{schema:{type:"integer"},id:h,name:s,className:t,options:{enumOptions:Hg(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":rn(o)})}function bT(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:o}=e,[s,c]=H.useState(df(o,t));H.useEffect(()=>{c(df(o,t))},[t,o]);const l=H.useCallback((d,h)=>{const k={...s,[d]:typeof h>"u"?-1:h};yT(k)?n(ly(k,t)):c(k)},[s,n,t]),u=H.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=H.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=df(new Date().toJSON(),t);n(ly(h,t))},[r,a,t,n]);return{elements:H.useMemo(()=>Xx(s,t,i.yearsRange,i.format),[s,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ii(e){const t=H.useRef(e);return Xe(e,t.current)||(t.current=e),t.current}function kT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function wT(e){const{name:t,size:r,type:a}=e;return new Promise((i,n)=>{const o=new window.FileReader;o.onerror=n,o.onload=s=>{var c;typeof((c=s.target)===null||c===void 0?void 0:c.result)=="string"?i({dataURL:kT(s.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},o.readAsDataURL(e)})}async function ST(e){return Promise.all(Array.from(e).map(wT))}function fy(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=zx(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function ET(e,t,r=!1){const a=H.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=H.useMemo(()=>Array.isArray(e)?fy(e):fy([e||""]),[e]),n=H.useCallback(async s=>{const l=(await ST(s)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),o=H.useCallback(s=>{if(r){const c=a.filter((l,u)=>u!==s);t(c)}else t(void 0)},[a,r,t]);return{filesInfo:i,handleChange:n,handleRemove:o}}function CT(e){if(!e)return"";const t=new Date(e),r=sa(t.getFullYear(),4),a=sa(t.getMonth()+1,2),i=sa(t.getDate(),2),n=sa(t.getHours(),2),o=sa(t.getMinutes(),2),s=sa(t.getSeconds(),2),c=sa(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${o}:${s}.${c}`}function Mo(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=mf(t),o=t;return Dt(i)||(o=aa(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:o,errors:n}}function AT(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const a=t[r];r===gt&&typeof a=="string"&&a.startsWith("#")?t[r]=Tm+a:t[r]=hf(a)}return e}function _T(e){return e.map(t=>hf(t))}function hf(e){return Array.isArray(e)?_T([...e]):Ye(e)?AT({...e}):e}var Me;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(Me||(Me={}));function OT(e,t){var r=Bt(e)?Au:Ng;return r(e,Hh(t))}function xT(e,t){return e==null?!0:Mh(e,t)}function gf(){return ey("rjsf-array-item-")}function dy(e){return Array.isArray(e)?e.map(t=>({key:gf(),item:t})):[]}function py(e){return Array.isArray(e)?e.map(t=>t.item):[]}function TT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function my(e,t,r,a){let{addable:i}=be(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function hy(e,t,r,a){if(typeof e.items=="function")try{return e.items(t,r,a)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,i);return}else return e.items}function PT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Qu(t)&&Vw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function IT(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i=[],disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:c=!1,placeholder:l,onBlur:u,onFocus:f,registry:p,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=p,E=y.retrieveSchema(t.items,i),m=(a==null?void 0:a.items)??a,g=Ua(E,m),{widget:S="select",title:A,...x}=be(a,w),O=Sn(t,S,v),C=A??t.title??h,_=y.getDisplayLabel(t,a,w),F=Ii(nn("",b,r,!0));return D.jsx(O,{id:F[dt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...x,enumOptions:g},schema:t,uiSchema:a,registry:p,value:i,disabled:n,readonly:o,required:c,label:C,hideLabel:!_,placeholder:l,autofocus:s,rawErrors:d,htmlName:F.name})}function NT(e){const{schema:t,fieldPathId:r,uiSchema:a,disabled:i=!1,readonly:n=!1,autofocus:o=!1,required:s=!1,hideError:c,placeholder:l,onBlur:u,onFocus:f,formData:p=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:m,title:g,...S}=be(a,E),A=Sn(t,m,y),x=g??t.title??k,O=b.getDisplayLabel(t,a,E),C=Ii(nn("",w,r,!0));return D.jsx(A,{id:C[dt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:p,disabled:i,readonly:n,hideError:c,required:s,label:x,hideLabel:!O,placeholder:l,autofocus:o,rawErrors:h,htmlName:C.name})}function DT(e){const{schema:t,uiSchema:r,fieldPathId:a,name:i,disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:c=!1,onBlur:l,onFocus:u,registry:f,formData:p=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...m}=be(r,b),g=Sn(t,w,k),S=E??t.title??i,A=v.getDisplayLabel(t,r,b),x=Ii(nn("",y,a,!0));return D.jsx(g,{options:m,id:x[dt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:p,disabled:n,readonly:o,required:c,registry:f,autofocus:s,rawErrors:d,label:S,hideLabel:!A,htmlName:x.name})}function FT(e){const{itemKey:t,index:r,name:a,disabled:i,hideError:n,readonly:o,registry:s,uiOptions:c,parentUiSchema:l,canAdd:u,canRemove:f=!0,canMoveUp:p,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:m,onChange:g,rawErrors:S,totalItems:A,title:x,handleAddItem:O,handleCopyItem:C,handleRemoveItem:_,handleReorderItems:F}=e,{schemaUtils:I,fields:{ArraySchemaField:j,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=s,ie=H.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=H.useMemo(()=>nn(r,Z,y),[r,Z,y]),M=j||$,U=Ce("ArrayFieldItemTemplate",s,c),T=I.getDisplayLabel(ie,v,Y),{description:N}=be(v),L=!!N||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&p,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=H.useCallback(ae=>{O(ae,r+1)},[O,r]),q=H.useCallback(ae=>{C(ae,r)},[C,r]),z=H.useCallback(ae=>{_(ae,r)},[_,r]),W=H.useCallback(ae=>{F(ae,r,r-1)},[F,r]),G=H.useCallback(ae=>{F(ae,r,r+1)},[F,r]),te={children:D.jsx(M,{name:a,title:x,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:TT(ie),onChange:g,onBlur:E,onFocus:m,registry:s,disabled:i,readonly:o,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:i,readonly:o,canAdd:u,hasCopy:J.copy,hasMoveUp:J.moveUp,hasMoveDown:J.moveDown,hasRemove:J.remove,index:r,totalItems:A,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:W,onMoveDownItem:G,registry:s,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:A,readonly:o,registry:s,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:L};return D.jsx(U,{...te})}const gy=H.memo(FT);function MT(e){const{schema:t,uiSchema:r={},errorSchema:a,fieldPathId:i,formData:n,name:o,title:s,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e,S=t.title||s||o,{schemaUtils:A,fields:x,formContext:O,globalUiOptions:C}=d,{OptionalDataControlsField:_}=x,F=H.useMemo(()=>be(r,C),[r,C]),I=H.useMemo(()=>Ye(t.items)?t.items:{},[t.items]),j=H.useMemo(()=>A.retrieveSchema(I),[A,I]),$=H.useMemo(()=>py(b),[b]),Y=Fo(d,t,f,r),Z=Pi(n),ie=H.useMemo(()=>my(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],M=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?D.jsx(_,{...e,fieldPathId:U}):void 0,N={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=hy(r,J,V,O),W={itemKey:K,index:V,name:o&&`${o}-${V}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:ie,canMoveUp:V>0,canMoveDown:V<$.length-1,rawItemSchema:I,parentFieldPathId:U,itemErrorSchema:q,itemData:Q,itemUiSchema:z,autofocus:u&&V===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g,onChange:y};return D.jsx(gy,{...W},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},L=Ce("ArrayFieldTemplate",d,F);return D.jsx(L,{...N})}function jT(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:o,title:s,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g}=e;let{formData:S=[]}=e;const A=t.title||s||o,{fields:x,formContext:O,globalUiOptions:C}=d,_=H.useMemo(()=>be(r,C),[r,C]),{OptionalDataControlsField:F}=x,I=Fo(d,t,f,r),j=Pi(a),$=H.useMemo(()=>Ye(t.items)?t.items:[],[t.items]),Y=Ye(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=j?y:[],P=I?" rjsf-optional-array-field":"",M=I?D.jsx(F,{...e,fieldPathId:Z}):void 0,U=my(d,t,S,r)&&Y&&(!I||j),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((L,B)=>{const{key:V,item:K}=L,J=K,Q=B>=$.length,q=(Q&&Ye(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=hy(r,K,B,O);const W=i?i[B]:void 0,G={index:B,itemKey:V,name:o&&`${o}-${B}`,registry:d,uiOptions:_,parentUiSchema:r,hideError:p,readonly:l,disabled:c,required:f,title:A?`${A}-${B+1}`:void 0,canAdd:U,canRemove:Q,canMoveUp:B>=$.length+1,canMoveDown:Q&&B<S.length-1,rawItemSchema:q,itemData:J,itemUiSchema:z,parentFieldPathId:Z,itemErrorSchema:W,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:g};return D.jsx(gy,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:i,rawErrors:v,optionalDataControl:M},N=Ce("ArrayFieldTemplate",d,_);return D.jsx(N,{...T})}function LT(e=[]){const t=H.useMemo(()=>Ur(e),[e]),[r,a]=H.useState(()=>({formDataHash:t,keyedFormData:dy(e)}));let{keyedFormData:i,formDataHash:n}=r;if(t!==n){const s=Array.isArray(e)?e:[],c=i||[];i=s.length===c.length?c.map((l,u)=>({key:l.key,item:s[u]})):dy(s),n=t,a({formDataHash:n,keyedFormData:i})}const o=H.useCallback(s=>{const c=py(s),l=Ur(c);return a({formDataHash:l,keyedFormData:s}),c},[]);return{keyedFormData:i,updateKeyedFormData:o}}function RT(e){const{schema:t,uiSchema:r,errorSchema:a,fieldPathId:i,registry:n,formData:o,onChange:s}=e,{globalFormOptions:c,schemaUtils:l,translateString:u}=n,{keyedFormData:f,updateKeyedFormData:p}=LT(o),d=H.useRef(f);d.current=f;const h=H.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);x===void 0||I<x?vt(O,[I],h.current[I]):I>=x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:PT(n,t)},_=[...d.current];x!==void 0?_.splice(x,0,C):_.push(C),s(p(_),k.path,O)},[n,t,s,p,k]),y=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const F of Object.keys(h.current)){const I=parseInt(F,10);I<=x?vt(O,[I],h.current[I]):I>x&&vt(O,[I+1],h.current[I])}}const C={key:gf(),item:Ws(d.current[x].item)},_=[...d.current];x!==void 0?_.splice(x+1,0,C):_.push(C),s(p(_),k.path,O)},[s,p,k]),b=H.useCallback((A,x)=>{A&&A.preventDefault();let O;if(h.current){O={};for(const _ of Object.keys(h.current)){const F=parseInt(_,10);F<x?vt(O,[F],h.current[F]):F>x&&vt(O,[F-1],h.current[F])}}const C=d.current.filter((_,F)=>F!==x);s(p(C),k.path,O)},[s,p,k]),w=H.useCallback((A,x,O)=>{A&&(A.preventDefault(),A.currentTarget.blur());let C;if(h.current){C={};for(const I of Object.keys(h.current)){const j=parseInt(I,10);j===x?vt(C,[O],h.current[x]):j===O?vt(C,[x],h.current[O]):vt(C,[I],h.current[j])}}function _(){const I=d.current.slice();return I.splice(x,1),I.splice(O,0,d.current[x]),I}const F=_();s(p(F),k.path,C)},[s,p,k]),E=H.useCallback((A,x,O,C)=>{const _=typeof x.at(-1)=="number";s(_&&A===void 0?null:A,x,O,C)},[s]),m=H.useCallback(A=>{s(A,k.path,void 0,k==null?void 0:k[dt])},[s,k]),g={...e,formData:o,fieldPathId:k,onSelectChange:m},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(yi in t)){if(!c.useFallbackUiForUnsupportedType){const x=be(r),O=Ce("UnsupportedFieldTemplate",n,x);return D.jsx(O,{schema:t,fieldPathId:i,reason:u(Me.MissingItems),registry:n})}const A={...t,[yi]:{type:void 0}};g.schema=A,S.schema=A}return l.isMultiSelect(g.schema)?D.jsx(IT,{...g}):qg(r)?D.jsx(NT,{...g}):Qu(g.schema)?D.jsx(jT,{...S}):l.isFilesArray(g.schema,r)?D.jsx(DT,{...g}):D.jsx(MT,{...S})}function qT(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,registry:o,required:s,disabled:c,readonly:l,hideError:u,autofocus:f,title:p,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=o,{widget:m="checkbox",title:g,label:S=!0,enumNames:A,...x}=be(a,E),O=Sn(t,m,b),C=w(Me.YesLabel),_=w(Me.NoLabel);let F;const I=g??y??p??r;if(Array.isArray(t.oneOf))F=Ua({oneOf:t.oneOf.map($=>{if(Ye($))return{...$,title:$.title||($.const===!0?C:_)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!A&&$.length===2&&$.every(Y=>typeof Y=="boolean")?F=[{value:$[0],label:$[0]?C:_},{value:$[1],label:$[1]?C:_}]:F=Ua({enum:$},a)}const j=H.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return D.jsx(O,{options:{...x,enumOptions:F},schema:t,uiSchema:a,id:i.$id,name:r,onChange:j,onFocus:h,onBlur:k,label:I,hideLabel:!S,value:n,required:s,disabled:c,readonly:l,hideError:u,registry:o,autofocus:f,rawErrors:v,htmlName:i.name})}function zT(e){const[t,r]=H.useState(!1),{name:a,registry:i,schema:n,uiSchema:o,fieldPathId:s}=e,{globalUiOptions:c}=i,l=be(o,c),u=Ce("CyclicSchemaExpandTemplate",i,l);if(!t)return D.jsx(u,{registry:i,schema:n,uiSchema:o,name:a,fieldPathId:s,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:p}=f;return D.jsx(p,{...e,schema:{...n,[iu]:!1}})}function $T(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function UT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function BT(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function VT(e){const{id:t,formData:r,displayLabel:a=!0,schema:i,name:n,uiSchema:o,required:s,disabled:c=!1,readonly:l=!1,onBlur:u,onFocus:f,registry:p,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=p,[w,E]=H.useState(UT(r)),m=be(o),g=Ii(nn("__internal_type_selector",b,d)),S=v(Me.Type),A=H.useMemo(()=>$T(S),[S]),x=_=>{_!=null&&(E(_),h(BT(r,_),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:_=v(Me.UnknownFieldType,[String(i.type)])}=e,F=Ce("UnsupportedFieldTemplate",p,m);return D.jsx(F,{schema:i,fieldPathId:d,reason:_,registry:p})}const O=Ce("FallbackFieldTemplate",p,m),{SchemaField:C}=y;return D.jsx(O,{schema:i,registry:p,typeSelector:D.jsx(C,{fieldPathId:g,name:`${n}__fallback_type`,schema:A,formData:w,onChange:x,onBlur:u,onFocus:f,registry:p,hideLabel:!a,disabled:c,readonly:l,required:s},r?Ur(r):"__empty__"),schemaField:D.jsx(C,{...e,schema:{type:w,title:v(Me.Value),...w==="object"&&{additionalProperties:!0}}})})}function HT(e,t){return vi(t,function(r){return e[r]})}function WT(e){return e==null?[]:HT(e,en(e))}var KT=Math.max;function GT(e,t,r,a){e=La(e)?e:WT(e),r=r?Gh(r):0;var i=e.length;return r<0&&(r=KT(i+r,0)),ta(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&ig(e,t,r)>-1}var JT=Math.min;function YT(e,t,r){for(var a=Vu,i=e[0].length,n=e.length,o=n,s=Array(n),c=1/0,l=[];o--;){var u=e[o];c=JT(u.length,c),s[o]=i>=120&&u.length>=120?new qa(o&&u):void 0}u=e[0];var f=-1,p=s[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(p?_o(p,h):a(l,h))){for(o=n;--o;){var k=s[o];if(!(k?_o(k,h):a(e[o],h)))continue e}p&&p.push(h),l.push(d)}}return l}function XT(e){return Ao(e)?e:[]}var yy=js(function(e){var t=vi(e,XT);return t.length&&t[0]===e[0]?YT(t):[]});function ZT(e,t){return Rs(e,t)}function vy(e){return e===void 0}var En;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(En||(En={}));var jo;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(jo||(jo={}));const QT=/^\$lookup=(.+)/,yf="layoutGrid";function by(e,t){return e??t}function eP(e){return/^\d+?$/.test(e)}const ca=af();function tP(e,t,r,a,i){const n=se(r,[lu],{}),o=se(r,e),s={...se(o,[Zn],{}),...t,...n},c={...o};Dt(s)||vt(c,[Zn],s),Dt(n)||vt(c,[lu],n);let{readonly:l}=be(c);return(i===!0||vy(l)&&a===!0)&&(l=!0,Ke(s,au)?vt(c,[Zn,au],!0):vt(c,`ui:${au}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function rP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=Fu([t]).sort(),i=Fu([r]).sort();switch(e){case jo.ALL:return ZT(a,i);case jo.SOME:return yy(a,i).length>0;case jo.NONE:return yy(a,i).length===0;default:return!1}}function Ys(e,t,r){let a={},i=e[t];if(Qn(i)){const{children:n,className:o,...s}=i;if(i=n,o){const l=o.split(" ").map(u=>ff(r,u,u)).join(" ");a={...s,className:l}}else a=s}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:a}}function ky(e,t,r){let a,i=t;if(eP(r)&&e&&(e==null?void 0:e.type)==="array"&&Ke(e,yi)){const n=Number(r),o=e[yi];Array.isArray(o)?n>o.length?a=Fh(o):a=o[n]:a=o,i={[dt]:t[dt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function nP(e,t,r,a,i){const{schemaUtils:n,globalFormOptions:o}=e;let s=r,c=i;const l=t.split("."),u=l.pop();let f=n.retrieveSchema(s,a),p=a,d=f.readOnly;l.forEach(v=>{if(c=nn(v,o,c),Ke(f,Je))s=se(f,[Je,v],{});else if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=n.findSelectedOptionInXxxOf(f,v,y,p);s=se(b,[Je,v],{})}else{const y=ky(f,c,v);s=y.rawSchema??{},c=y.fieldPathId}p=se(p,v,{}),f=n.retrieveSchema(s,p),d=by(f.readOnly,d)});let h,k=!1;if(Dt(f)&&(f=void 0),f&&u){if(f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve;f=n.findSelectedOptionInXxxOf(f,u,y,p)}c=nn(u,o,c),k=f!==void 0&&Array.isArray(f.required)&>(f.required,u);const v=ky(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=se(f,[Je,u]),f=f&&n.retrieveSchema(f)),d=by(f==null?void 0:f.readOnly,d),f&&(Ke(f,Fe)||Ke(f,Ve))){const y=Ke(f,Fe)?Fe:Ve,b=qr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function aP(e,t){let r=e;return ta(r)&&(r=ff(t,r)),uo(r)?r:null}function iP(e,t){let r,a=null,i={},n;if(ta(t)||vy(t))r=t??"";else{const{name:o="",render:s,...c}=t;r=o,i=c,Dt(i)||OT(i,(l,u)=>{if(ta(l)){const f=QT.exec(l);if(Array.isArray(f)&&f.length>1){const p=f[1];i[u]=ff(e,p,p)}}}),a=aP(s,e),!o&&a&&(n=D.jsx(a,{...c,"data-testid":ca.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function Xs(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:a,schema:i,formData:n}=r,{schemaUtils:o}=a,s=o.retrieveSchema(i,n);return t.map(c=>H.createElement(vf,{...r,key:`layoutGrid-${Ur(c)}`,schema:s,layoutGridSchema:c}))}function oP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:o}=Ys(t,En.CONDITION,i),{operator:s,field:c="",value:l}=o,u=se(a,c,null);return rP(s,u,l)?D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n}):null}function sP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.COLUMN,a),s=be(i),c=Ce("GridTemplate",a,s);return D.jsx(c,{column:!0,"data-testid":ca.col,...o,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n})})}function lP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.COLUMNS,a),s=be(i),c=Ce("GridTemplate",a,s);return n.map(l=>D.jsx(c,{column:!0,"data-testid":ca.col,...o,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Ur(l)}`))}function cP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:o}=Ys(t,En.ROW,a),s=be(i),c=Ce("GridTemplate",a,s);return D.jsx(c,{...o,"data-testid":ca.row,children:D.jsx(Xs,{...r,childrenLayoutGridSchemaId:n})})}function uP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:o,onFocus:s,formData:c,readonly:l,registry:u,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=iP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:m,isRequired:g,isReadonly:S,optionsInfo:A,fieldPathId:x}=nP(u,b,r,c,n),O=Ii(x);if(y.rendered)return y.rendered;if(m){const C=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:_,uiReadonly:F}=tP(b,E,a,S,l);return D.jsx(C,{"data-testid":A!=null&&A.hasDiscriminator?ca.layoutMultiSchemaField:ca.field,...p,name:b,required:g,readonly:F,schema:m,uiSchema:_,errorSchema:se(i,b),fieldPathId:O,formData:se(c,b),onChange:d,onBlur:o,onFocus:s,options:A==null?void 0:A.options,registry:u})}return w?D.jsx(w,{"data-testid":ca.uiComponent,...p,name:b,required:g,formData:c,readOnly:!!S||l,errorSchema:i,uiSchema:a,schema:r,fieldPathId:n,onBlur:o,onFocus:s,registry:u,...E}):null}function vf(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=be(t);if(!r&&yf in a&&Ye(a[yf])&&(r=a[yf]),Ye(r)){if(En.ROW in r)return D.jsx(cP,{...e,layoutGridSchema:r});if(En.COLUMN in r)return D.jsx(sP,{...e,layoutGridSchema:r});if(En.COLUMNS in r)return D.jsx(lP,{...e,layoutGridSchema:r});if(En.CONDITION in r)return D.jsx(oP,{...e,layoutGridSchema:r})}return D.jsx(uP,{...e,gridSchema:r})}vf.TEST_IDS=ca;function fP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:o,name:s}=e,c=be(i,o.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||s;if(!f)return null;const p=Ce("TitleFieldTemplate",o,c);return D.jsx(p,{id:Gs(t),title:f,required:n,schema:a,uiSchema:i,registry:o})}function bf(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const o=se(n,[Je,t]);return se(o,Na,se(o,cr,a))===r})}function wy(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let o=e;Ke(e,Fe)?o={...e,[Fe]:n}:Ke(e,Ve)&&(o={...e,[Ve]:n});const s=Ua(o,a);if(!s)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return s}function dP(e){var z;const{name:t,baseType:r,disabled:a=!1,formData:i,fieldPathId:n,onBlur:o,onChange:s,options:c,onFocus:l,registry:u,uiSchema:f,schema:p,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[m,g]=H.useState(wy(p,c,w,f,i)),S=se(n,dt),A=qr(p),x=Ce("FieldErrorTemplate",u,c),O=Ce("FieldTemplate",u,c),C=Ur(p),_=Ur(c),F=f?Ur(f):"",I=i?Ur(i):"";H.useEffect(()=>{g(wy(p,c,w,f,i))},[C,_,w,F,I]);const{widget:j=A?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=A,hideError:ie,...P}=be(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=se(i,Z);let U=se((z=m[0])==null?void 0:z.schema,[Je,Z],{});const T=bf(m,Z,M);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const N=Sn(U,j,b),L=ie===void 0?y:!!ie,B=se(v,[er],[]),V=Eo(v,[er]),K=w.getDisplayLabel(p,f,E),J=W=>{if(a||h)return;const G=bf(m,Z,W),te=bf(m,Z,M);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&vt(ae,Z,W),s(ae,n.path,void 0,S)},Q={enumOptions:m,...P},q=!L&&B.length>0?D.jsx(x,{fieldPathId:n,schema:p,errors:B,registry:u}):void 0;return D.jsx(O,{fieldPathId:n,id:S,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:s,onKeyRename:qs,onKeyRenameBlur:qs,onRemoveProperty:qs,children:D.jsx(N,{id:S,name:t,schema:p,label:($||p.title)??"",disabled:a||Array.isArray(m)&&Dt(m),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:L,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:o,onFocus:l,value:M,options:Q,htmlName:n.name})})}function Sy(e){const{name:t,disabled:r=!1,errorSchema:a={},formData:i,fieldPathId:n,onBlur:o,onChange:s,onFocus:c,options:l,readonly:u,registry:f,required:p=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Ur(i??null),y=H.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=H.useState(()=>{const ae=qr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=H.useRef(!1),m=H.useRef(i),g=H.useRef(n.$id);H.useEffect(()=>{const ae=m.current,pe=g.current;if(m.current=i,g.current=n.$id,!Xe(i,ae)&&n.$id===pe){if(E.current){E.current=!1;return}const ve=qr(d),Ae=k.getClosestMatchingOption(i,y,b,ve);Ae!==b&&w(Ae)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=H.useCallback(ae=>{if(r||u)return;const pe=ae!==void 0?parseInt(ae,10):-1;if(pe===b)return;const ve=pe>=0?y[pe]:void 0,Ae=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ae,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(pe),E.current=!0,s(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,s,S]),{widgets:x,fields:O,translateString:C,globalUiOptions:_}=f,{SchemaField:F}=O,I=Ce("MultiSchemaFieldTemplate",f,_),j=Fo(f,d,p,h),$=Pi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:M=d.title,...U}=be(h,_),T=Sn({type:"number"},Y,x),N=se(a,er,[]),L=Eo(a,[er]),B=k.getDisplayLabel(d,h,_),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:pe}=d,ve={};ae&&(ve.required=ae),pe!==void 0&&!("type"in V)&&(ve.type=pe),K=Object.keys(ve).length>0?qn(ve,V):V}let J=[];Fe in d&&h&&Fe in h?Array.isArray(h[Fe])?J=h[Fe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):Ve in d&&h&&Ve in h&&(Array.isArray(h[Ve])?J=h[Ve]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=M?Me.TitleOptionPrefix:Me.OptionPrefix,z=M?[M]:[],W=y.map((ae,pe)=>{const{title:ve=ae.title}=be(J[pe]);return{label:ve||C(q,z.concat(String(pe+1))),value:pe}}),G=!j||$?D.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:o,onFocus:c,disabled:r||Dt(W),multiple:!1,rawErrors:N,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:M??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&D.jsx(F,{...e,schema:K,uiSchema:Q})||null;return D.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function pP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return H.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const mP=/\.([0-9]*0)*$/,hP=/[0.]0*$/;function gP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,o]=H.useState(i),{StringField:s}=t.fields,c=Sm(),l=c==="."?"\\.":c;let u=a;const f=H.useCallback((d,h,k,v)=>{o(d);const y=typeof d=="string"?d.replace(c,"."):d,b=`${y}`.startsWith(".")?`0${y}`:y,w=typeof b=="string"&&mP.exec(b)?Em(b.replace(hP,"")):Em(b);r(w,h,k,v)},[r,c]);if(typeof n=="string"&&typeof u=="number"){const d=new RegExp(`^(${String(u).replace(".",l)})?${l}?0*$`);n.match(d)&&(u=n)}let p=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ua(d,h):void 0)?"select":"text",{widget:b=y}=be(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(u).replace(".",c))}return D.jsx(s,{...e,formData:p,onChange:f})}var Zs;function yP(e){if(!Zs){if(typeof document>"u")return;Zs=document.createElement("textarea")}var t=`&${e};`;Zs.innerHTML=t;var r=Zs.value;return r===t?void 0:r}var ce=32,de=9,ua=13,ye=10,tt=96,zt=126,Tt=91,zn=94,qe=62,Br=35,kf=37,je=45,Vr=61,Vt=92,Ft=42,_t=95,ht=60,Ey=64,an=93,ur=33,Qs=38,nr=58,wf=70,Va=102,el=104,Ha=119,Ni=116,Sf=112,Cy=115,vP=160,bP=12,kP=44,tl=59,Di=63,Hr=46,Pt=47,Wa=39,Ka=34,fa=43,Ht=124,Ga=123,Ef=125,on=40,sn=41,wP=78,SP=110,EP=79,CP=111,Ay=120,_y=88,Cf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,bt=122,rl=128,ln=32,AP={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},oe=AP;function _P(e){if(!Ty(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
51
51
|
`)return null;t++;let r=!1;for(;t<e.length;){let a=t;for(;t<e.length&&e[t]!==`
|
|
52
52
|
`&&e[t]!=="\r";)t++;if(t>=e.length)break;let i=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
|
|
53
|
-
`&&t++,
|
|
54
|
-
`),i=n+1):
|
|
55
|
-
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(
|
|
53
|
+
`&&t++,Ty(e,"---",a))return{endPos:t,hasValidYaml:r};if(!r){let n=LP(e,a,i);if(n<i){let o=e.charCodeAt(n);if(o>=lt&&o<=bt||o>=Te&&o<=Ne||o>=ze&&o<=$e||o===_t){for(n++;n<i&&(o=e.charCodeAt(n),o>=lt&&o<=bt||o>=Te&&o<=Ne||o>=ze&&o<=$e||o===_t||o===je||o===Hr);)n++;n<i&&e.charCodeAt(n)===nr&&(n++,n>=i?r=!0:(o=e.charCodeAt(n),(o===ce||o===de)&&(r=!0)))}}}}return null}var OP=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,xP={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},TP={};function Oy(e){if(!e)return TP;var t={};for(var r in e){var a=r.toLowerCase(),i=xP[a];if(i)t[i]=e[r];else{var n=r.indexOf(":");n===-1?t[r]=e[r]:t[r.slice(0,n)+r[n+1].toUpperCase()+r.slice(n+2)]=e[r]}}return t}var PP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function da(e){return e.indexOf("&")===-1?e:e.replace(OP,(t,r)=>{var a=yP(r);if(a)return a;if(r[0]==="#"){var i=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return i===0||i>=55296&&i<=57343||i>1114111?"�":i<=65535?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10),56320+(i-65536&1023))}return t})}var xy=/(javascript|vbscript|data(?!:image)):/i;function $n(e){if(xy.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(xy.test(t))return null}catch{return null}return e}var ar={},fr,$t;for(fr=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],$t=0;$t<fr.length;$t++)ar[fr[$t]]="a";for(ar[231]=ar[199]="c",ar[240]=ar[208]="d",fr=[200,201,202,203,233,232,234,235],$t=0;$t<fr.length;$t++)ar[fr[$t]]="e";for(fr=[207,239,206,238,205,237,204,236],$t=0;$t<fr.length;$t++)ar[fr[$t]]="i";for(ar[209]=ar[241]="n",fr=[248,216,339,338,213,245,212,244,211,243,210,242],$t=0;$t<fr.length;$t++)ar[fr[$t]]="o";for(fr=[220,252,219,251,218,250,217,249],$t=0;$t<fr.length;$t++)ar[fr[$t]]="u";ar[376]=ar[255]=ar[221]=ar[253]="y";function Ja(e){for(var t="",r=-1,a=e.length,i=0;i<a;i++){var n=e.charCodeAt(i);if(n>=lt&&n<=bt||n>=ze&&n<=$e){r<0&&(r=i);continue}if(n>=Te&&n<=Ne){r>=0&&(t+=e.slice(r,i),r=-1),t+=String.fromCharCode(n+ln);continue}if(n===ce||n===je){r>=0&&(t+=e.slice(r,i),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,i),r=-1);var o=ar[n];o&&(t+=o)}return r>=0&&(t+=e.slice(r)),t}function Ty(e,t,r){return e.startsWith(t,r)}var Py=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Lo(e){let t=e.toLowerCase();if(Py.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Py.has(t)):!1}var Ya=1,Iy=2,Fi=4,Ny=8,IP=16,cn=32,pa=64,NP=(()=>{var e=new Uint8Array(128),t;for(e[de]=Ya,e[ye]=Ya|Iy,e[bP]=Ya,e[ua]=Ya|Iy,e[ce]=Ya,t=ur;t<=Pt;t++)e[t]=Fi;for(t=nr;t<=Ey;t++)e[t]=Fi;for(t=Tt;t<=tt;t++)e[t]=Fi;for(t=Ga;t<=zt;t++)e[t]=Fi;for(t=ze;t<=$e;t++)e[t]=IP;for(t=Te;t<=Ne;t++)e[t]=Ny;for(t=lt;t<=bt;t++)e[t]=Ny;return e})(),DP=/[\p{P}\p{S}]/u,FP=new RegExp("\\p{Zs}","u"),Xa=[];function MP(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var a=e.length;Xa.length=0;var i=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<a;n++){var o=e.charCodeAt(n);o===ua?(i<n&&Xa.push(e.slice(i,n)),n+1<a&&e.charCodeAt(n+1)===ye&&n++,Xa.push(`
|
|
54
|
+
`),i=n+1):o===0&&(i<n&&Xa.push(e.slice(i,n)),Xa.push("�"),i=n+1)}return i<a&&Xa.push(e.slice(i)),Xa.join("")}function jP(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function LP(e,t,r){let a=r??e.length;for(;t<a&&(e[t]===" "||e[t]===" ");)t++;return t}function Dy(e){if(!e)return!1;for(var t in e)return!0;return!1}function RP(e){return{attrs:{},children:[{type:oe.text,text:e}],c:!0,type:oe.htmlBlock,tag:"header"}}var qP=/^\n+/;function zP(e){for(var t=e.length;t>0&&(e[t-1]===`
|
|
55
|
+
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(qP,"")}
|
|
56
56
|
|
|
57
|
-
`}function Mi(e){var r,a;if((e.type===
|
|
58
|
-
`,a),c=
|
|
57
|
+
`}function Mi(e){var r,a;if((e.type===oe.htmlSelfClosing||e.type===oe.htmlBlock)&&e.a)return[];if(e.type===oe.paragraph){var t=e.children;return t?t.flatMap(Mi):[]}return e.type===oe.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===oe.htmlBlock&&e.children?[{...e,children:(a=e.children)==null?void 0:a.flatMap(Mi)}]:[e]}function Fy(e){for(var t=0;t<e.length;t++){if(e[t].type===oe.htmlBlock){var r=e[t],a=!1;if(r.c&&t===e.length-1){var i=r.j===void 0?r.a?r.e||"":(r.e||"")+(r.h||""):r.j,n=`</${String(r.tag).toLowerCase()}>`,o=i.toLowerCase().indexOf(n);if(o!==-1){var s=i.slice(o+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");s.trim()&&(a=!0)}}a||(r.c=!1)}"children"in e[t]&&e[t].children&&Fy(e[t].children)}}function $P(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(a.type===oe.paragraph&&a.children)for(var i=a.children,n=0;n<i.length;n++){var o=i[n];if(o.type===oe.htmlSelfClosing&&o.a&&o.tag.toLowerCase()===t){var s=e.slice(0,r);n>0&&s.push({type:oe.paragraph,children:i.slice(0,n)});var c=[];if(n+1<i.length){var l=i.slice(n+1).filter(u=>!(u.type===oe.htmlSelfClosing&&u.a));l.length>0&&(c=l)}return c=c.concat(e.slice(r+1)),{found:!0,beforeClose:s,afterClose:c}}}if((a.type===oe.htmlSelfClosing||a.type===oe.htmlBlock)&&a.a&&a.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function UP(e){var t="";for(var r in e){var a=e[r];a===!0?t+=` ${r}`:a!==void 0&&a!=null&&a!==!1&&(t+=` ${r}="${String(a)}"`)}return t}function My(e,t,r,a){var i;return t===void 0?i=UP(r):i=t.length>0&&t.charCodeAt(0)>ce?` ${t}`:t,`<${e}${i}${a}`}function jy(e){var t=e.tag,r=e.type===oe.htmlSelfClosing,a=e,i=a.b,n=`</${t}>`;if(!r&&a.a)return{kind:"literal",literal:(a.h||n)+(a.e||"")};if(r){var o=e;return o.a?{kind:"literal",literal:o.h||n}:o.m?{kind:"literal",literal:o.m}:{kind:"literal",literal:My(t,i,e.attrs," />")}}var s=My(t,i,e.attrs,">"),c=a.children,l=c!=null&&c.length>0;if(a.c&&a.j!==void 0)return l?{kind:"sandwich",open:s,close:n}:{kind:"literal",literal:a.j};if(a.c&&!l)return{kind:"literal",literal:s+(a.e||"")+(a.h||n)};if(c!=null&&c.length>0){for(var u="",f=0;f<c.length;f++){var p=c[f];if(p.type!==oe.text)return{kind:"sandwich",open:s,close:n};u+=p.text}return{kind:"literal",literal:s+u+n}}var d=a.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:s+d}:{kind:"literal",literal:s+d+n}}function BP(e,t,r){var a=[],i=e,n=r;if(i&&a.push(i),Array.isArray(t))for(var o=0;o<t.length;o++)a.push(t[o]);else t!=null&&a.push(t);n&&a.push(n);for(var s=[],c=0;c<a.length;c++){var l=a[c];typeof l=="string"&&s.length>0&&typeof s.at(-1)=="string"?s[s.length-1]=s.at(-1)+l:s.push(l)}return s}function ji(e){return e==null||e.tagfilter!==!1}function VP(e,t,r,a){var i=t(e,r,a);return i===null?null:WP(i)}function HP(e){var t=[];if(!e)return t;for(var r in e)r.charCodeAt(0)===94&&t.push({identifier:r,footnote:e[r].target});return t}function Af(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var a=e,i=t.split("."),n=0;n<i.length&&(a=a==null?void 0:a[i[n]],a!==void 0);)n++;return a||r}function WP(e){for(var t=!1,r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a<=ce||a===Ka||a===kf||a===ht||a===qe||a===Tt||a===Vt||a===an||a===zn||a===tt||a>=123){t=!0;break}}if(!t)return e;for(var i="",r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a===kf&&r+2<e.length){var n=e.charCodeAt(r+1),o=e.charCodeAt(r+2);if((n>=ze&&n<=$e||n>=Te&&n<=wf||n>=lt&&n<=Va)&&(o>=ze&&o<=$e||o>=Te&&o<=wf||o>=lt&&o<=Va)){i+=e[r]+e[r+1]+e[r+2],r+=2;continue}}if(a>=55296&&a<=57343){if(a<=56319&&r+1<e.length){var s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){i+=encodeURI(e[r]+e[r+1]),r++;continue}}i+=e[r];continue}i+=encodeURI(e[r])}return i}function KP(...e){return e.filter(Boolean).join(" ")}var GP=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),nl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Ly(e){return GP.has(e.toLowerCase())}function JP(e){return nl.lastIndex=0,nl.test(e)}function Ry(e){return nl.lastIndex=0,e.replace(nl,(t,r,a,i)=>`<${r}${a}${i}`)}function _f(e,t){var r=e||{},a=r.slugify,i;if(a){var n=a;i=o=>n(o,Ja)}else i=Ja;return{disableAutoLink:r.disableAutoLink,disableFrontmatter:r.disableFrontmatter,disableParsingRawHTML:r.disableParsingRawHTML,enforceAtxHeadings:r.enforceAtxHeadings,evalUnserializableExpressions:r.evalUnserializableExpressions,forceBlock:r.forceBlock,forceInline:t===void 0?r.forceInline:t,ignoreHTMLBlocks:r.ignoreHTMLBlocks,optimizeForStreaming:r.optimizeForStreaming,preserveFrontmatter:r.preserveFrontmatter,sanitizer:r.sanitizer||$n,slugify:i,tagfilter:ji(r)}}var YP=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,XP=/^<[A-Z]/,Of=["script","pre","style","textarea"],Ro=new Set(Of),ZP=/<(?:pre|script|style|textarea)\b/i,qy=/<(?:pre|script|style|textarea)\b/iy,xf=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,zy=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,$y=new Uint8Array(128);(()=>{for(var e=[tt,Ft,_t,zt,Vr,Tt,ur,ht,Vt,Qs,ye,el,Ha,Va],t=0;t<e.length;t++)$y[e[t]]=1})();var Uy=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function QP(e){return Ro.has(e)}function eI(e){return ZP.test(e)}function By(e,t,r){for(var a=t,i=r;a<i&&(e.charCodeAt(a)===ce||e.charCodeAt(a)===de);)a++;if(a>=i)return!1;e.charCodeAt(a)===Ht&&a++;for(var n=0;a<i;){for(;a<i&&(e.charCodeAt(a)===ce||e.charCodeAt(a)===de);)a++;if(a>=i)break;if(e.charCodeAt(a)===Ht&&n>0){for(var o=a+1;o<i&&(e.charCodeAt(o)===ce||e.charCodeAt(o)===de);)o++;if(o>=i)return!0}if(e.charCodeAt(a)===nr&&a++,a>=i||e.charCodeAt(a)!==je)return!1;for(;a<i&&e.charCodeAt(a)===je;)a++;for(a<i&&e.charCodeAt(a)===nr&&a++,n++;a<i&&(e.charCodeAt(a)===ce||e.charCodeAt(a)===de);)a++;if(a<i)if(e.charCodeAt(a)===Ht)a++;else return!1}return n>0}var tI=/[\u0000-\u001F\u007F]/g,rI={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},nI=/&#(x[0-9a-f]+|[0-9]+);?/gi;function aI(e){return e.indexOf("&#")===-1?e:e.replace(nI,(t,r)=>{var a=r.charCodeAt(0)===Ay||r.charCodeAt(0)===_y?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return a>0&&a<=1114111?String.fromCodePoint(a):t})}function iI(e,t,r){if(r&&t.charCodeAt(0)===Ga)return!1;var a=e.charCodeAt(0),i=e.charCodeAt(1);if((a===CP||a===EP)&&(i===SP||i===wP))return!(r&&t==="");var n=e.toLowerCase();if(n==="srcdoc")return!0;if(n==="style")return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(t);if(rI[n]===1){var o=aI(da(t));if($n(o)===null)return!0;var s=o.replace(tI,"");return s!==o&&$n(s)===null}return!1}function Tf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Vy(e,t,r,a){for(var i=[],n=t,o=0;o<a.length;o+=2){var s=a[o];if(s>n){var c=e.slice(n,s).trim();c&&i.push(c)}n=a[o+1]}if(n<r){var l=e.slice(n,r).trim();l&&i.push(l)}return i.join(" ")}function Cn(e,t){if(e.charCodeAt(t)!==ht)return null;let r=t+1,a=e.length,i=!1;e.charCodeAt(r)===Pt&&(r++,i=!0);let n=r,o=e.charCodeAt(r);if(!(o>=lt&&o<=bt||o>=Te&&o<=Ne))return null;for(;r<a&&(e.charCodeAt(r)>=lt&&e.charCodeAt(r)<=bt||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=Ne||e.charCodeAt(r)>=ze&&e.charCodeAt(r)<=$e||e.charCodeAt(r)===je);)r++;let s=e.slice(n,r);if(!s)return null;let c=s.charCodeAt(0),l=c>=Te&&c<=Ne||s.indexOf("-")!==-1,u=r;for(;r<a&&(e.charCodeAt(r)===ce||e.charCodeAt(r)===de||e.charCodeAt(r)===ye);)r++;let f=e.slice(u,r);if(r===u&&r<a){var p=e.charCodeAt(r);if(p!==qe&&p!==Pt)return null}let d=r,h={},k=!1;for(var v=null;r<a;){let F=e.charCodeAt(r);if(F===qe){let I=v?Vy(e,d,r,v):e.slice(d,r);return{r:k,u:l,f:i,b:I,q:v!=null,n:!1,g:f,attrs:h,end:r+1,tag:s}}if(F===ce||F===de||F===ye){r++;continue}if(F===Pt&&r+1<a&&e.charCodeAt(r+1)===qe){k=r>d&&e.charCodeAt(r-1)===ce;let I=v?Vy(e,d,r,v):e.slice(d,r);return{r:k,u:l,f:i,b:I,q:v!=null,n:!0,g:f,attrs:h,end:r+2,tag:s}}var y=r,b=e.charCodeAt(r);if(!(b>=lt&&b<=bt||b>=Te&&b<=Ne||b===_t||b===nr))return null;for(r++;r<a;){var w=e.charCodeAt(r);if(w>=lt&&w<=bt||w>=Te&&w<=Ne||w>=ze&&w<=$e||w===_t||w===Hr||w===nr||w===je)r++;else break}for(var E=e.slice(y,r),m=r;r<a&&(e.charCodeAt(r)===ce||e.charCodeAt(r)===de);)r++;var g,S;if(e.charCodeAt(r)===Vr){for(r++;r<a&&(e.charCodeAt(r)===ce||e.charCodeAt(r)===de);)r++;var A=e.charCodeAt(r);if(A===Ka||A===Wa){r++;for(var x=r;r<a&&e.charCodeAt(r)!==A;)r++;if(r>=a)return null;if(g=e.slice(x,r),r++,r<a){var O=e.charCodeAt(r);if(O!==ce&&O!==de&&O!==ye&&O!==qe&&O!==Pt)return null}S=r}else if(A===Ga){var C=1,x=r;for(r++;r<a&&C>0;){var w=e.charCodeAt(r);w===Ga?C++:w===Ef&&C--,r++}g=e.slice(x,r),S=r}else{for(var x=r;r<a;){var _=e.charCodeAt(r);if(_===ce||_===de||_===qe||_===ye||_===Ka||_===Wa||_===Vr||_===ht||_===tt)break;r++}if(r===x)return null;g=e.slice(x,r),S=r}}else g="",S=m;iI(E,g,l)?(v===null&&(v=[]),v.push(y,S)):h[E]=g}return null}function xr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",a=0,i=!1;t!==-1;){var n=Cn(e,t);n?(n.q&&(r+=e.slice(a,t)+Tf(n),a=n.end,i=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return i?r+e.slice(a):e}function oI(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var a=0,i=e.length,n=!1,o=!1;a<i;){for(var s=e.indexOf(`
|
|
58
|
+
`,a),c=s<0?i:s,l=a,u=0;l<c&&u<4;)if(e.charCodeAt(l)===ce)u++,l++;else if(e.charCodeAt(l)===de)u+=4,l++;else break;if(l>=c){n=!1,a=s<0?i:s+1;continue}if(u<4){var f=e.charCodeAt(l);if(f===tt||f===zt){for(var p=f,d=0,h=l;h<c&&e.charCodeAt(h)===p;)d++,h++;if(d>=3){var k=!0;if(p===tt){for(var v=h;v<c;v++)if(e.charCodeAt(v)===tt){k=!1;break}}if(k){n=!1;for(var y=s<0?i:s+1;y<i;){for(var b=y,w=0;b<i&&w<4;){var E=e.charCodeAt(b);if(E===ce)w++,b++;else if(E===de)w+=4,b++;else break}if(w<4&&b<i&&e.charCodeAt(b)===p){for(var m=0;b<i&&e.charCodeAt(b)===p;)m++,b++;if(m>=d){for(;b<i&&(e.charCodeAt(b)===ce||e.charCodeAt(b)===de);)b++;if(b>=i||e.charCodeAt(b)===ye){a=b>=i?i:b+1;break}}}for(;y<i&&e.charCodeAt(y)!==ye;)y++;y<i&&y++}y>=i&&(a=i,o=!0);continue}}}}for(var g=l;g<c&&e.charCodeAt(g)===qe;){g++,g<c&&e.charCodeAt(g)===ce&&g++;for(var S=0;g<c&&S<4;)if(e.charCodeAt(g)===ce)S++,g++;else if(e.charCodeAt(g)===de)S+=4,g++;else break;if(S>=4)break;n=!1}if(!n&&u<4&&g<c&&e.charCodeAt(g)===Tt&&!(g+1<i&&e.charCodeAt(g+1)===zn)){var A=Hy(e,g,t);if(A){a=A,n=!1;continue}}var x=e.charCodeAt(l);if(x===Br&&u<4)n=!1;else if(u<4&&(x===je||x===Ft||x===_t)){for(var O=l,C=0;O<c;){var _=e.charCodeAt(O);if(_===x)C++;else if(_!==ce&&_!==de)break;O++}n=!(C>=3&&O>=c)}else n=!0;a=s<0?i:s+1}return o}function Hy(e,t,r){let a=e.length;if(e.charCodeAt(t)!==Tt)return null;let i=t+1<a&&e.charCodeAt(t+1)===zn,n=t+1;for(;n<a;){var o=e.charCodeAt(n);if(o===an){n++;break}if(o===Tt)return null;o===Vt&&n+1<a&&n++,n++}if(n>a||e.charCodeAt(n-1)!==an)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let c=il(s);if(!c||n>=a||e.charCodeAt(n)!==nr)return null;n++;let l=!1;for(;n<a;){let F=e.charCodeAt(n);if(F===ce||F===de)n++;else if(F===ye&&!l)l=!0,n++;else break}if(i){let F=e.indexOf(`
|
|
59
59
|
`,n),I=F<0?a:F,j=e.slice(n,I).trim();return r[c]={target:j,title:void 0},F<0?a:F+1}var u;if(n<a&&e.charCodeAt(n)===ht){n++;for(var f=n;n<a&&e.charCodeAt(n)!==qe&&e.charCodeAt(n)!==ye;)e.charCodeAt(n)===Vt&&n+1<a&&n++,n++;if(n>=a||e.charCodeAt(n)!==qe)return null;u=e.slice(f,n),n++;for(var p=e.indexOf(`
|
|
60
|
-
`,n),d=p<0?a:p,h=n;h<d&&(e.charCodeAt(h)===ce||e.charCodeAt(h)===de);)h++;if(h<d){if(h===n)return null;var k=e.charCodeAt(h);if(k!==Ka&&k!==Wa&&k!==
|
|
61
|
-
`,n),b=y<0?a:y,w,E=!1,m=n,g=n;if(n===b&&n<a)for(g=n+1;g<a&&(e.charCodeAt(g)===ce||e.charCodeAt(g)===de);)g++;if(g<a){var S=e.charCodeAt(g);if(S===Ka||S===Wa||S===
|
|
62
|
-
`,t),a=r<0?e.length:r;return If=e,Nf=t,
|
|
63
|
-
`,C=He(e,_)}O.length>0&&O.charCodeAt(O.length-1)===ye&&(O=O.slice(0,-1))}return{node:{type:
|
|
64
|
-
`,
|
|
65
|
-
`,
|
|
66
|
-
`,i=He(e,p)}for(;a.length>0&&a.charCodeAt(a.length-1)===ye;)a=a.slice(0,-1);return a?{node:{type:
|
|
67
|
-
`;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),u=A.length>0,
|
|
68
|
-
`,l=!0,
|
|
60
|
+
`,n),d=p<0?a:p,h=n;h<d&&(e.charCodeAt(h)===ce||e.charCodeAt(h)===de);)h++;if(h<d){if(h===n)return null;var k=e.charCodeAt(h);if(k!==Ka&&k!==Wa&&k!==on)return null}}else{for(var f=n,v=0;n<a;){var o=e.charCodeAt(n);if(o===on)v++;else if(o===sn){if(v===0)break;v--}else{if(o===ce||o===de||o===ye)break;o===Vt&&n+1<a&&n++}n++}if(u=e.slice(f,n),!u)return null}for(;n<a&&(e.charCodeAt(n)===ce||e.charCodeAt(n)===de);)n++;var y=e.indexOf(`
|
|
61
|
+
`,n),b=y<0?a:y,w,E=!1,m=n,g=n;if(n===b&&n<a)for(g=n+1;g<a&&(e.charCodeAt(g)===ce||e.charCodeAt(g)===de);)g++;if(g<a){var S=e.charCodeAt(g);if(S===Ka||S===Wa||S===on){for(var A=S===on?41:S,x=g+1,O=x;x<a;){var C=e.charCodeAt(x);if(C===A){for(var _=x+1;_<a&&(e.charCodeAt(_)===ce||e.charCodeAt(_)===de);)_++;(_>=a||e.charCodeAt(_)===ye)&&(w=e.slice(O,x),E=!0,m=_<a?_+1:a);break}if(C===Vt&&x+1<a){x+=2;continue}if(C===ye&&x+1<a&&e.charCodeAt(x+1)===ye)break;x++}if(!E&&g===n)return null}}if(E)return r[c]||(r[c]={target:da(Li(u)),title:w===void 0?w:da(Li(w))}),m;for(;n<b&&(e.charCodeAt(n)===ce||e.charCodeAt(n)===de);)n++;return n<b?null:(r[c]||(r[c]={target:da(Li(u)),title:w}),y<0?a:y+1)}var yr=new Uint8Array(NP);for(yr[Br]|=cn,yr[qe]|=cn,yr[je]|=cn|pa,yr[fa]|=cn,yr[Ft]|=cn|pa,yr[_t]|=cn|pa,yr[tt]|=cn|pa,yr[zt]|=cn|pa,yr[ht]|=cn|pa,yr[Tt]|=pa,yr[ur]|=pa,yr[Ht]|=cn,al=ze;al<=$e;al++)yr[al]|=cn;var al;function Wy(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Vt){t++;continue}if(e.charCodeAt(t)===Tt||e.charCodeAt(t)===an)return!0}return!1}function il(e){for(var t=e.length,r=!0,a=t>0,i=0;i<t;i++){var n=e.charCodeAt(i);if(n===ce){if(r){a=!1;break}r=!0}else if(n<33||n>126||n>=Te&&n<=Ne){a=!1;break}else r=!1}if(a&&!r)return e;var o=e.replace(/\s+/g," ").trim();return o.indexOf("ẞ")!==-1?o.replace(/\u1E9E/g,"ss").toLowerCase():o.toLowerCase()}function Pf(e){return e<rl?yr[e]:e===vP?Ya:0}function Li(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var If=null,Nf=-1,ol=-1;function rt(e,t){if(t>=Nf&&t<=ol&&e===If)return ol;var r=e.indexOf(`
|
|
62
|
+
`,t),a=r<0?e.length:r;return If=e,Nf=t,ol=a,a}function He(e,t){let r=rt(e,t);return r<e.length?r+1:r}function qo(e,t,r){for(;t<r;){let a=e.charCodeAt(t);if(a!==ce&&a!==de)break;t++}return t}function Ky(e,t){let r=He(e,t);for(;r<e.length;){let a=rt(e,r);if(dr(e,r,a))return r;r=He(e,r)}return e.length}function ma(e,t,r,a){let i=0;for(;t+i<r&&e.charCodeAt(t+i)===a;)i++;return i}var nt=0,Qe=0;function Mt(e,t,r){for(nt=0,Qe=0;t+Qe<r;){let a=e.charCodeAt(t+Qe);if(a===de)nt+=4-nt%4;else if(a===ce)nt++;else break;Qe++}}function dr(e,t,r){return qo(e,t,r)>=r}function sI(e,t){if(!e)return e;var r=t.v||(t.v=Object.create(null)),a=r[e];if(a===void 0)return r[e]=0,e;for(var i=a+1,n=`${e}-${i}`;r[n]!==void 0;)i++,n=`${e}-${i}`;return r[e]=i,r[n]=0,n}function lI(e,t,r,a){let i=rt(e,t);if(Mt(e,t,i),nt>3)return null;let n=t+Qe;if(e.charCodeAt(n)!==Br)return null;let o=ma(e,n,i,35);if(o<1||o>6||(n+=o,n<i&&e.charCodeAt(n)!==ce&&e.charCodeAt(n)!==de))return null;n=qo(e,n,i);for(var s=i;s>n&&e.charCodeAt(s-1)===ce;)s--;for(var c=s;s>n&&e.charCodeAt(s-1)===Br;)s--;if(s<c)if(s===n||e.charCodeAt(s-1)===ce)for(;s>n&&e.charCodeAt(s-1)===ce;)s--;else s=c;let l=e.slice(n,s),u=qi(l,!1,r,a);return{node:{type:oe.heading,level:o,children:u,id:""},end:He(e,i)}}function cI(e,t,r){var a=e.charCodeAt(t);if(a!==Vr&&a!==je)return!1;for(var i=t;i<r&&e.charCodeAt(i)===a;)i++;for(;i<r&&(e.charCodeAt(i)===ce||e.charCodeAt(i)===de);)i++;return i>=r}function ha(e,t){let r=rt(e,t);if(Mt(e,t,r),nt>3)return null;let a=t+Qe,i=e.charCodeAt(a);if(i!==je&&i!==Ft&&i!==_t)return null;let n=0;for(;a<r;){let o=e.charCodeAt(a);if(o===i)n++;else if(o!==ce&&o!==de)return null;a++}return n<3?null:{node:{type:oe.breakThematic},end:He(e,r)}}var Gy=0,Jy=0,Yy="";function uI(e,t,r){let a=rt(e,t);if(Mt(e,t,a),nt>3)return null;let i=nt,n=t+Qe,o=e.charCodeAt(n);if(o!==tt&&o!==zt)return null;let s=ma(e,n,a,o);if(s<3)return null;n+=s;let c=qo(e,n,a),l=a;if(o===tt){for(let I=c;I<a;I++)if(e.charCodeAt(I)===tt)return null}for(;l>c&&(e.charCodeAt(l-1)===ce||e.charCodeAt(l-1)===de);)l--;let u=e.slice(c,l),f="",p="",d=u.indexOf(" ");d===-1?f=u:(f=u.slice(0,d),p=u.slice(d+1).trim()),f=Li(f);var h;if(p){Uy.lastIndex=0;for(var k;(k=Uy.exec(p))!=null;)h||(h={}),h[k[1]]=k[2]===void 0?k[3]:k[2]}let v=He(e,a),y=e.length,b=e.length;var w;o===Gy&&s===Jy?w=Yy:(w=String.fromCharCode(o).repeat(s),Gy=o,Jy=s,Yy=w);for(var E=v;E<e.length;){var m=e.indexOf(w,E);if(m===-1)break;for(var g=m,S=0;g>0&&S<4&&e.charCodeAt(g-1)===ce;)g--,S++;if(S<=3&&(g===0||e.charCodeAt(g-1)===ye)){for(var A=m+s;A<e.length&&e.charCodeAt(A)===o;)A++;var x=rt(e,A);if(dr(e,A,x)){y=g,b=He(e,x);break}}E=m+1}var O;if(i===0)O=y>v&&e.charCodeAt(y-1)===ye?e.slice(v,y-1):e.slice(v,y);else{O="";for(var C=v;C<y;){var _=rt(e,C);Mt(e,C,_);var F=Math.min(Qe,i);O+=`${e.slice(C+F,_)}
|
|
63
|
+
`,C=He(e,_)}O.length>0&&O.charCodeAt(O.length-1)===ye&&(O=O.slice(0,-1))}return{node:{type:oe.codeBlock,lang:f||void 0,text:O,infoString:p||void 0,attrs:h},end:b}}function Xy(e,t,r){for(var a=0,i=t;i<r&&a<4;)e.charCodeAt(i)===de?a+=4-a%4:a++,i++;if(a<4)return"";for(var n="",o=4;o<a;o++)n+=" ";return n+e.slice(i,r)}function fI(e,t){let r=rt(e,t);if(Mt(e,t,r),nt<4)return null;let a="",i=t;for(;i<e.length;){let p=rt(e,i);if(Mt(e,i,p),dr(e,i,p)){for(var n=`${Xy(e,i,p)}
|
|
64
|
+
`,o=He(e,p);o<e.length;){var s=rt(e,o);if(dr(e,o,s)){n+=`${Xy(e,o,s)}
|
|
65
|
+
`,o=He(e,s);continue}Mt(e,o,s),nt>=4&&(a+=n,i=o);break}if(i!==o)break;continue}if(nt<4)break;let d=0,h=0;var c=0;for(let k=i;k<p&&h<4;k++){if(e.charCodeAt(k)===de){var l=4-h%4;h+l>4&&(c=h+l-4),h+=l}else h++;d++}var u="";if(c>0)for(var f=0;f<c;f++)u+=" ";u+=e.slice(i+d,p),a+=`${u}
|
|
66
|
+
`,i=He(e,p)}for(;a.length>0&&a.charCodeAt(a.length-1)===ye;)a=a.slice(0,-1);return a?{node:{type:oe.codeBlock,lang:void 0,text:a,infoString:void 0,attrs:void 0},end:i}:null}function dI(e,t,r,a){let i=rt(e,t);if(Mt(e,t,i),nt>3)return null;let n=t+Qe;if(e.charCodeAt(n)!==qe)return null;let o="",s=t,c,l=!1,u=!1,f=!1;for(;s<e.length;){let $=rt(e,s);Mt(e,s,$);let Y=s+Qe;if(e.charCodeAt(Y)===qe){let Z=Y+1;var p=nt+1,d=!1;if(Z<$){var h=e.charCodeAt(Z);h===ce?(Z++,p++,d=!0):h===de&&(d=!0)}for(var k="",v=!1,y=Z;y<$;y++)if(e.charCodeAt(y)===de){v=!0;break}if(v){var b=p;if(d&&Z<$&&e.charCodeAt(Z)===de){for(var w=4-b%4,E=0;E<w-1;E++)k+=" ";b+=w,Z++}for(var m=Z;m<$;m++)if(e.charCodeAt(m)===de){for(var g=4-b%4,S=0;S<g;S++)k+=" ";b+=g}else k+=e[m],b++}else k=e.slice(Z,$);if(!(o||c)){let ie=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(ie){c=ie[1].toUpperCase(),s=He(e,$);continue}}o+=`${k}
|
|
67
|
+
`;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),u=A.length>0,s=He(e,$)}else if(o&&!dr(e,s,$)&&u){if(nt<4){var x=s+Qe,O=x<$?e.charCodeAt(x):0;if(O===Br||O===qe||O===tt||O===zt||O===ht||(O===je||O===Ft||O===_t)&&ha(e,s)||(O===je||O===Ft||O===fa)&&x+1<$&&(e.charCodeAt(x+1)===ce||e.charCodeAt(x+1)===de))break;if(O>=ze&&O<=$e){for(var C=x;C<$&&e.charCodeAt(C)>=ze&&e.charCodeAt(C)<=$e;)C++;if(C<$&&(e.charCodeAt(C)===Hr||e.charCodeAt(C)===sn))break}}if(f)break;o+=`${e.slice(s,$)}
|
|
68
|
+
`,l=!0,s=He(e,$)}else break}if(!(o||c))return null;var{inBlockQuote:_,l:F}=r;r.inBlockQuote=!0,l&&(r.l=!0);var I=r.i;r.i=I||!dr(e,s,e.length);let j=va(o||"",r,a);return r.i=I,r.inBlockQuote=_,r.l=F,{node:{type:oe.blockQuote,children:j,alert:c||void 0},end:s}}function Zy(e,t,r){for(var a=0,i=t;i<r;i++)e.charCodeAt(i)===de?a+=4-a%4:a++;return a}function ga(e,t,r){if(Mt(e,t,r),nt>3)return null;var a=t+Qe;if(a>=r)return null;var i=e.charCodeAt(a),n=nt,o=a,s=a;if(i===je||i===Ft||i===fa){if(o=a+1,o<r&&e.charCodeAt(o)!==ce&&e.charCodeAt(o)!==de&&e.charCodeAt(o)!==ye)return null}else if(i>=ze&&i<=$e){for(;s<r&&s-a<9;){var c=e.charCodeAt(s);if(c<ze||c>$e)break;s++}if(s>a&&s<r){var l=e.charCodeAt(s);if(l===Hr||l===sn){if(o=s+1,o<r&&e.charCodeAt(o)!==ce&&e.charCodeAt(o)!==de&&e.charCodeAt(o)!==ye)return null}else return null}else return null}else return null;var u=o,f=Zy(e,t,o),p=0,d=u,h=f;if(u>=r)return{ordered:i>=ze&&i<=$e,marker:i>=ze&&i<=$e?e[s]:e[a],start:i>=ze&&i<=$e?Number.parseInt(e.slice(a,s),10):void 0,contentStart:u,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de);){if(e.charCodeAt(d)===de){var k=4-h%4;h+=k}else h++;d++,p++}var v=d>=r,y=h-f;return v||y>4?(h=f+1,d=u+1,p=1):p===0&&(h=f+1,d=u,p=1),{ordered:i>=ze&&i<=$e,marker:i>=ze&&i<=$e?e[s]:e[a],start:i>=ze&&i<=$e?Number.parseInt(e.slice(a,s),10):void 0,contentStart:d,contentCol:h,markerCol:n,isEmpty:v}}var Ri=0;function Qy(e,t,r,a){var i=0,n=t;for(Ri=0;n<r&&i<a;){var o=e.charCodeAt(n);if(o===de){var s=4-i%4;if(i+s>a){Ri=i+s-a,n++,i=a;break}i+=s}else if(o===ce)i++;else break;n++}return n}function ev(e,t,r,a){var i=rt(e,t),n=ga(e,t,i);if(!n)return null;var o=[],s=t,c=n.contentCol,l="",u=n.isEmpty,f=!1,p=!1;if(!n.isEmpty){for(var d=!1,h=n.contentStart;h<i;h++)if(e.charCodeAt(h)===de){d=!0;break}if(d){var k="",v=Zy(e,t,n.contentStart),y=v-n.contentCol;if(y>0)for(var b=0;b<y;b++)k+=" ";for(var w=n.contentStart;w<i;w++)if(e.charCodeAt(w)===de){for(var E=4-v%4,m=0;m<E;m++)k+=" ";v+=E}else k+=e[w],v++;l=`${k}
|
|
69
69
|
`}else l=`${e.slice(n.contentStart,i)}
|
|
70
|
-
`}for(
|
|
71
|
-
`,
|
|
70
|
+
`}for(s=He(e,i);s<e.length;){var g=rt(e,s);Mt(e,s,g);var S=e.charCodeAt(s+Qe);if(nt<c&&(S===je||S===Ft||S===_t)&&nt<=3&&ha(e,s))break;var A=ga(e,s,g);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<c){o.push({contentCol:c,raw:l,hasBlankAfter:f,isEmpty:u}),f&&(p=!0),c=A.contentCol,u=A.isEmpty,f=!1,l=A.isEmpty?"":`${e.slice(A.contentStart,g)}
|
|
71
|
+
`,s=He(e,g);continue}if(dr(e,s,g)){var x=Qy(e,s,g,c);if(Ri>0||x<g){for(var O="",C=0;C<Ri;C++)O+=" ";l+=`${O+e.slice(x,g)}
|
|
72
72
|
`}else l+=`
|
|
73
|
-
`;
|
|
73
|
+
`;s=He(e,g);for(var _=!1,F=0;F<l.length;F++){var I=l.charCodeAt(F);if(I!==ye&&I!==ua&&I!==ce&&I!==de){_=!0;break}}if(u&&!_)if(s<e.length){var j=rt(e,s),$=ga(e,s,j);if(!$||$.ordered!==n.ordered||$.marker!==n.marker)break;f=!0}else break;if(s<e.length){var Y=rt(e,s);Mt(e,s,Y);var Z=e.charCodeAt(s+Qe);if((Z===je||Z===Ft||Z===_t)&&nt<=3&&ha(e,s))break;var ie=ga(e,s,Y);if(ie&&ie.ordered===n.ordered&&ie.marker===n.marker&&ie.markerCol<c){f=!0;continue}if(!dr(e,s,Y)&&nt<c)break}continue}if(nt>=c){var P=Qy(e,s,g,c);if(Ri>0){for(var M="",U=c,T=0;T<Ri;T++)M+=" ",U++;for(var N=P;N<g;N++)if(e.charCodeAt(N)===de){for(var L=4-U%4,B=0;B<L;B++)M+=" ";U+=L}else M+=e[N],U++;l+=`${M}
|
|
74
74
|
`}else l+=`${e.slice(P,g)}
|
|
75
|
-
`;
|
|
76
|
-
`,
|
|
77
|
-
`,pe);if(ke<0&&(ke=ae),De){Mt(te,pe,ke);for(var ee=te.slice(pe+Qe,ke),re=0;re<ee.length&&ee.charCodeAt(re)===he;)re++;re>=Le&&ee.slice(re).trim()===""&&(De=!1),pe=ke<ae?ke+1:ae;continue}if(dr(te,pe,ke)){We>=0?Se=!0:ve&&(Ae=!0),pe=ke<ae?ke+1:ae;continue}if(Mt(te,pe,ke),We>=0){if(nt>=We){pe=ke<ae?ke+1:ae;continue}var ne=ga(te,pe,ke);if(ne&&ne.markerCol<We&&ne.contentCol<=We){pe=ke<ae?ke+1:ae;continue}if(ne){pe=ke<ae?ke+1:ae;continue}We=-1,Se&&(Ae=!0,Se=!1)}var we=te.slice(pe+Qe,ke),me=we.charCodeAt(0);if((me===tt||me===zt)&&nt<=3){for(var at=0;at<we.length&&we.charCodeAt(at)===me;)at++;if(at>=3){if(Ae&&ve){W=!0;break}De=!0,he=me,Le=at,ve=!0,pe=ke<ae?ke+1:ae;continue}}var Re=nt<=3?ga(te,pe,ke):null;if(Re&&ve){if(Ae){W=!0;break}We=Re.contentCol,Se=!1,pe=ke<ae?ke+1:ae,ve=!0;continue}if(Ae){W=!0;break}ve=!0,pe=ke<ae?ke+1:ae}if(W)break}}for(var Ge=[],Ct=0;Ct<
|
|
75
|
+
`;s=He(e,g);continue}for(var V=!1,K=0;K<l.length;K++){var J=l.charCodeAt(K);if(J!==ye&&J!==ua&&J!==ce&&J!==de){V=!0;break}}if(!f&&V&&!u){var Q=s+Qe,q=e.charCodeAt(Q),z=q===Br||q===qe||q===ht||q===tt||q===zt||(q===je||q===Ft||q===_t||q===fa)&&(ha(e,s)!=null||ga(e,s,g)!=null)||q>=ze&&q<=$e&&ga(e,s,g)!=null;if(!z){l+=`${e.slice(Q,g)}
|
|
76
|
+
`,s=He(e,g);continue}}break}if(o.push({contentCol:c,raw:l,hasBlankAfter:f,isEmpty:u}),o.length===0)return null;var W=p;if(!W)for(var G=0;G<o.length;G++){if(o[G].hasBlankAfter&&G<o.length-1){W=!0;break}if(!o[G].isEmpty){for(var te=o[G].raw,ae=te.length,pe=0,ve=!1,Ae=!1,Se=!1,De=!1,he=0,Le=0,We=-1;pe<ae;){var ke=te.indexOf(`
|
|
77
|
+
`,pe);if(ke<0&&(ke=ae),De){Mt(te,pe,ke);for(var ee=te.slice(pe+Qe,ke),re=0;re<ee.length&&ee.charCodeAt(re)===he;)re++;re>=Le&&ee.slice(re).trim()===""&&(De=!1),pe=ke<ae?ke+1:ae;continue}if(dr(te,pe,ke)){We>=0?Se=!0:ve&&(Ae=!0),pe=ke<ae?ke+1:ae;continue}if(Mt(te,pe,ke),We>=0){if(nt>=We){pe=ke<ae?ke+1:ae;continue}var ne=ga(te,pe,ke);if(ne&&ne.markerCol<We&&ne.contentCol<=We){pe=ke<ae?ke+1:ae;continue}if(ne){pe=ke<ae?ke+1:ae;continue}We=-1,Se&&(Ae=!0,Se=!1)}var we=te.slice(pe+Qe,ke),me=we.charCodeAt(0);if((me===tt||me===zt)&&nt<=3){for(var at=0;at<we.length&&we.charCodeAt(at)===me;)at++;if(at>=3){if(Ae&&ve){W=!0;break}De=!0,he=me,Le=at,ve=!0,pe=ke<ae?ke+1:ae;continue}}var Re=nt<=3?ga(te,pe,ke):null;if(Re&&ve){if(Ae){W=!0;break}We=Re.contentCol,Se=!1,pe=ke<ae?ke+1:ae,ve=!0;continue}if(Ae){W=!0;break}ve=!0,pe=ke<ae?ke+1:ae}if(W)break}}for(var Ge=[],Ct=0;Ct<o.length;Ct++){for(var It=o[Ct],it=It.raw,wt=it.length;wt>0&&it.charCodeAt(wt-1)===ye;)wt--;var ot=wt<it.length?it.slice(0,wt):it,Gt=null;if(ot.length>=3&&ot.charCodeAt(0)===Tt){var Jr=ot[1];(Jr===" "||Jr==="x"||Jr==="X")&&ot.charCodeAt(2)===an&&(Gt={type:oe.gfmTask,completed:Jr==="x"||Jr==="X"},ot=ot.slice(3))}var Ot;if(It.isEmpty&&ot.trim()==="")Ot=[];else if(W){var Pn=r.inList;r.inList=!0;var Aa=r.i;r.i=Aa||Ct!==o.length-1,Ot=va(ot,r,a),r.i=Aa,r.inList=Pn}else{var Yr=r.inList;r.inList=!0;var Xr=r.i;if(r.i=Xr||Ct!==o.length-1,Ot=va(ot,r,a),r.i=Xr,r.inList=Yr,Ot.length===1&&Ot[0].type===oe.paragraph)Ot=Ot[0].children;else if(r.p){var Dr=[];r.p.push({src:Ot,dest:Dr,unwrap:!0}),Ot=Dr}else{for(var jt=[],Lt=0;Lt<Ot.length;Lt++)if(Ot[Lt].type===oe.paragraph)for(var wr=Ot[Lt].children,In=0;In<wr.length;In++)jt.push(wr[In]);else jt.push(Ot[Lt]);Ot=jt}}if(Gt){var Hn=[Gt,{type:oe.text,text:" "}];if(r.p)r.p.push({src:Ot,dest:Hn,unwrap:!1});else for(var Sr=0;Sr<Ot.length;Sr++)Hn.push(Ot[Sr]);Ge.push(Hn)}else Ge.push(Ot)}return{node:{type:n.ordered?oe.orderedList:oe.unorderedList,start:n.ordered?n.start:void 0,items:Ge},end:s}}var sl=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function An(e,t,r){let a={};for(let[o,s]of Object.entries(e)){let c=o.toLowerCase();if(c==="style"&&typeof s=="string"){let l={},u=[],f=0,p=0;for(let h=0;h<s.length;h++){let k=s.charCodeAt(h);k===on?f++:k===sn?f--:k===tl&&f===0&&(u.push(s.slice(p,h)),p=h+1)}p<s.length&&u.push(s.slice(p));let d=!1;u.forEach(h=>{let k=h.indexOf(":");if(k===-1)return;let v=h.slice(0,k).trim(),y=h.slice(k+1).trim();if(v&&y){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(y)){d=!0;return}let b=v.indexOf("-")===-1?v:v.replace(/-([a-z])/g,(w,E)=>E.toUpperCase());l[b]=y}}),!d&&Object.keys(l).length>0&&(a[o]=l)}else if((c==="href"||c==="src")&&(r!=null&&r.sanitizer)){let l=r.sanitizer(s,t,c);l!=null&&(a[o]=l)}else if(s==="")a[o]=!0;else if(s.length>=2&&s.charCodeAt(0)===Ga&&s.charCodeAt(s.length-1)===Ef){var i=s.slice(1,-1);if(i.length>0){var n=i.charCodeAt(0);if(n===Tt||n===Ga)try{a[o]=JSON.parse(i);continue}catch{}}if(i==="true"){a[o]=!0;continue}if(i==="false"){a[o]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{a[o]=(0,eval)(`(${i})`);continue}catch{}a[o]=i}else a[o]=s}return a}function ya(e,t,r){let a=t.length;if(a===0)return r;var i=t.charCodeAt(0),n=i>=Te&&i<=Ne||i>=lt&&i<=bt;if(!n){for(var o=String.fromCharCode(i),s=e.length-a,c=r;c<=s;){var l=e.indexOf(o,c);if(l===-1||l>s)return-1;for(var u=!0,f=1;f<a;f++){var p=e.charCodeAt(l+f),d=t.charCodeAt(f);if(p>=Te&&p<=Ne&&(p+=ln),d>=Te&&d<=Ne&&(d+=ln),p!==d){u=!1;break}}if(u)return l;c=l+1}return-1}i>=Te&&i<=Ne&&(i+=ln);for(let k=r;k<=e.length-a;k++){var h=e.charCodeAt(k);if(h>=Te&&h<=Ne&&(h+=ln),h!==i)continue;let v=!0;for(let y=1;y<a;y++){let b=e.charCodeAt(k+y),w=t.charCodeAt(y);if(b>=Te&&b<=Ne&&(b+=ln),w>=Te&&w<=Ne&&(w+=ln),b!==w){v=!1;break}}if(v)return k}return-1}function pI(e,t,r){let a=t.length;var i=t.charCodeAt(0);i>=Te&&i<=Ne&&(i+=ln);for(let o=Math.min(r,e.length-a);o>=0;o--){var n=e.charCodeAt(o);if(n>=Te&&n<=Ne&&(n+=ln),n!==i)continue;let s=!0;for(let c=1;c<a;c++){let l=e.charCodeAt(o+c),u=t.charCodeAt(c);if(l>=Te&&l<=Ne&&(l+=ln),u>=Te&&u<=Ne&&(u+=ln),l!==u){s=!1;break}}if(s)return o}return-1}var ll=-1;function Df(e,t,r){let a=r.toLowerCase(),i=`<${a}`,n=`</${a}`,o=1,s=t,c=e.length;for(ll=-1;s<c&&o>0;){let f=ya(e,i,s),p=ya(e,n,s);if(p===-1)return-1;if(f!==-1&&f<p){let d=Cn(e,f);d?(d.tag.toLowerCase()===a&&!d.f&&!d.n&&!Lo(d.tag)&&o++,s=d.end):s=f+1}else{var l=p+n.length,u=l<c?e.charCodeAt(l):62;if((u===qe||u===ce||u===de||u===ye)&&(o--,o===0)){ll=p;let d=p+n.length;for(;d<c&&e.charCodeAt(d)!==qe;)d++;return d+1}s=p+1}}return-1}function tv(e,t,r,a){if(a.ignoreHTMLBlocks||a.disableParsingRawHTML)return null;var i=rt(e,t);if(Mt(e,t,i),nt>3&&!r.inHTML)return null;var n=t+Qe;if(e.charCodeAt(n)!==ht)return null;var o=e.indexOf(">",n+1);if(o!==-1&&o<i){var s=e.slice(n+1,o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var c=mI(e,n);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,f=0;f<Of.length;f++){var p=ya(e,`</${Of[f]}>`,n);p>=0&&p<u&&(u=p)}if(u<e.length){var d=e.indexOf(">",u);l=d>=0?He(e,d+1):e.length}}else{var h=c===2?"-->":c===3?"?>":c===4?">":"]]>",k=e.indexOf(h,n);k>=0&&(l=He(e,k+h.length))}var v=e.slice(n,l);if(c>=2)return{node:{type:oe.htmlComment,text:v,s:!1,raw:!0},end:l};var y="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(y=b[1]);var w=Cn(e,n),E={},m;w&&!w.f&&(E=An(w.attrs,y,a),m=w.g+w.b);var g=[],S=y.toLowerCase(),A=`</${S}`,x=ya(v,A,0),O="",C,_,F;if(w!=null&&w.f){F=v.slice(0,w.end-n);for(var I=v.slice(w.end-n);I.length>0&&I.charCodeAt(I.length-1)===ye;)I=I.slice(0,-1);I&&(_=xr(I))}else if(w&&!w.f){var j=w.end-n;if(x===-1){for(var $=v;$.length>0&&$.charCodeAt($.length-1)===ye;)$=$.slice(0,-1);C=xr($)}else{var Y=j;v.charCodeAt(Y)===ye&&Y++;for(var Z=x;Z>Y;){var ie=v.charCodeAt(Z-1);if(ie!==ce&&ie!==de&&ie!==ye&&ie!==ua)break;Z--}var P=v.slice(Y,Z);P&&(_=xr(P));for(var M=v.slice(x);M.length>0&&M.charCodeAt(M.length-1)===ye;)M=M.slice(0,-1);F=xr(M),O=v.slice(j,x).trim()}}var U=w?w.f:!1;return{node:{type:oe.htmlBlock,tag:y,attrs:E,b:m,children:g,e:_,h:F,j:C,text:O,c:!0,a:U},end:l}}if(c===6||c===7){var T=Ky(e,t),N=T<e.length?T:e.length,L=e.slice(n,N),B=T<e.length?He(e,T):e.length,V=Cn(e,n);if(V){var K=V.tag,J=K.toLowerCase(),Q=V.f;if(Q){var q=e.slice(V.end,N);return{node:{type:oe.htmlBlock,tag:K,attrs:{},children:[],h:e.slice(n,V.end),e:q?xr(q):void 0,text:q,c:!0,a:!0},end:B}}if(V.n||Lo(K))return{node:{type:oe.htmlBlock,tag:K,attrs:An(V.attrs,K,a),b:V.g+V.b,children:[],text:"",c:!1,a:!1},end:V.end<e.length&&e.charCodeAt(V.end)===ye?V.end+1:V.end};var z=r.d||0,W=e.slice(n,N),G=-1,te=-1,ae=!1;if(z<10){for(var pe=`</${J}`,ve=V.end-n,Ae=1,Se=ve;Se<W.length&&Ae>0;){var De=ya(W,`<${J}`,Se),he=ya(W,pe,Se);if(he===-1)break;if(De!==-1&&De<he){var Le=De+J.length+1;if(Le<W.length){var We=W.charCodeAt(Le);(We===ce||We===de||We===ye||We===qe||We===Pt)&&Ae++}Se=De+1}else{var ke=he+pe.length;if(ke<W.length){var ee=W.charCodeAt(ke);if((ee===qe||ee===ce||ee===de||ee===ye)&&(Ae--,Ae===0)){G=he;for(var re=ke;re<W.length&&W.charCodeAt(re)!==qe;)re++;te=re+1;break}}else if(Ae--,Ae===0){G=he,te=W.length;break}Se=he+1}}if(G===-1&&!V.f&&(c===6||V.u)){var ne=Df(e,V.end,J);if(ne!==-1){for(var we=ll,me=V.end,at=!1,Re=!1,Ge=!1,Ct=0,It=!1,it=!1,wt=me;wt<we;){var ot=e.charCodeAt(wt);if(ot===ye)it&&(at=!0),It||Ct++,it=!0,wt++;else if(ot===ce||ot===de)wt++;else{if(!It&&(It=!0,Ct>=2&&ot===ht)){Ge=!0;break}if(it=!1,ot===ht){var Gt=e.charCodeAt(wt+1)|32;if((Gt===Sf||Gt===Cy||Gt===Ni)&&(qy.lastIndex=wt,qy.test(e))){Re=!0;break}}wt++}}if(at&&!Ge&&!Re){var Jr=rt(e,ne);N=Jr,B=He(e,Jr),W=e.slice(n,N),L=e.slice(n,N),G=we-n,te=ne-n,ae=!0}}}}var Ot=V.b.indexOf(`
|
|
78
78
|
`)!==-1||V.g.indexOf(`
|
|
79
|
-
`)!==-1,Pn=!1;if(G!==-1){var Aa=W.slice(te).trim();Pn=Aa.length===0}var Yr=!1,Xr=N,
|
|
79
|
+
`)!==-1,Pn=!1;if(G!==-1){var Aa=W.slice(te).trim();Pn=Aa.length===0}var Yr=!1,Xr=N,Dr=B;if(G!==-1){var jt=n+te,Lt=rt(e,jt-1);if(jt<Lt){for(var wr=jt;wr<Lt&&(e.charCodeAt(wr)===ce||e.charCodeAt(wr)===de);)wr++;if(wr<Lt&&e.charCodeAt(wr)===ht){var In=Cn(e,wr);In&&!In.f&&(Yr=!0,Xr=jt,Dr=jt,Pn=!0)}}if(!Yr){var Hn=He(e,Lt);if(Hn<N){for(var Sr=Hn;Sr<N&&(e.charCodeAt(Sr)===ce||e.charCodeAt(Sr)===de);)Sr++;if(Sr<N&&e.charCodeAt(Sr)===ht){var ss=Cn(e,Sr);ss&&(Yr=!0,Xr=Lt,Dr=Hn,Pn=!0)}}}if(!Yr&&r.inHTML){Yr=!0,Xr=Lt,Dr=He(e,Lt);var kc=e.slice(jt,Lt).trim();Pn=kc.length===0}}var Nn=[],mr="";if(G!==-1){mr=W.slice(V.end-n,G);var Zr=mr.trim();if(Zr){var{inline:wp,inHTML:Sp,d:xt}=r;r.inHTML=!0,r.d=z+1;var _a=J==="p";if(_a)r.inline=!0,Nn=qi(Zr,!1,r,a);else{var wc=mr.indexOf(`
|
|
80
80
|
|
|
81
|
-
`)!==-1,
|
|
81
|
+
`)!==-1,ls=xf.test(Zr),ai=zy.test(Zr),Sc=wc||ls||r.inHTML&&ai,Ec=mr.length>=2&&mr.charCodeAt(0)===ye&&mr.charCodeAt(mr.length-1)===ye&&!wc;Ec&&!ls&&!ai?Nn=[{type:oe.text,text:Zr}]:Sc||ai?(r.inline=!1,Nn=va(mr,r,a)):(r.inline=!0,Nn=qi(Zr,!1,r,a))}r.inline=wp,r.inHTML=Sp,r.d=xt}}var Cc=!1;if(c===6&&G!==-1&&!r.inHTML&&!Ot){var Ep=/<[a-zA-Z][^>]*>/.test(mr),Cp=mr.indexOf(`
|
|
82
82
|
|
|
83
|
-
`)!==-1||xf.test(mr);Ep&&!Cp&&(Cc=!0)}var Ap=!ae&&(r.inHTML||c===7||Ot||!Pn||Cc);if(Ap){var
|
|
83
|
+
`)!==-1||xf.test(mr);Ep&&!Cp&&(Cc=!0)}var Ap=!ae&&(r.inHTML||c===7||Ot||!Pn||Cc);if(Ap){var Er,hr,Dn=!1;if(G!==-1&&Yr){var Ac=!1;if(r.inHTML&&te<W.length){for(var Oa=te;Oa<W.length&&W.charCodeAt(Oa)!==ye;)Oa++;var cs=W.slice(te,Oa).trim();Ac=cs.length>1&&cs.charCodeAt(0)===ht&&cs.charCodeAt(1)!==Pt}hr=Ac?W.slice(V.end-n):mr,Dn=!0}else(c===7||r.inHTML)&&G!==-1?(hr=W.slice(V.end-n),hr.charCodeAt(0)===ye&&(hr=hr.slice(1))):Yr?Er=e.slice(n,Xr):Ot?Er=L:(hr=W.slice(V.end-n),hr.charCodeAt(0)===ye&&(hr=hr.slice(1)));var us=Er!==void 0,Xi=xr(Er===void 0?hr||"":Er),ii={type:oe.htmlBlock,tag:K,attrs:An(V.attrs,K,a),b:V.g+V.b,children:Nn,e:us?void 0:Xi,j:us?Xi:void 0,text:Xi,c:!0,a:!1};return Dn&&(ii.x=!0),{node:ii,end:Dr}}var Zi=xr(mr);return{node:{type:oe.htmlBlock,tag:K,attrs:An(V.attrs,K,a),b:V.g+V.b,children:Nn,e:ae?void 0:Zi,text:Zi,c:!1,a:!1},end:Dr}}var Wn=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),xa=Wn?Wn[2]:"div",Kn=Wn?Wn[1]==="/":!1,Cr,_c,Oc,oi="";if(Kn){var Qi=L.indexOf(">");Qi===-1?Cr=L:(Cr=L.slice(0,Qi+1),oi=L.slice(Qi+1),oi&&(_c=xr(oi)))}else Oc=xr(L);return{node:{type:oe.htmlBlock,tag:xa,attrs:{},children:[],e:_c,h:Cr,j:Oc,text:Kn?oi:L,c:!0,a:Kn},end:B}}var Jt=Cn(e,n);if(!Jt)return null;var pn=Jt.tag,fs=pn.toLowerCase(),xc=pn.charCodeAt(0),eo=xc>=Te&&xc<=Ne;if(!(eo||sl.has(fs)||Ro.has(fs)||fs.includes("-")))return null;if(Jt.f)return{node:{type:oe.htmlSelfClosing,tag:pn,attrs:{},h:e.slice(n,Jt.end),a:!0},end:Jt.end};var mn=Df(e,Jt.end,pn),Gn=[];if(mn!==-1){var fe=ll,R=e.slice(Jt.end,fe),X=R.trim();if(X){var le=R.indexOf(`
|
|
84
84
|
|
|
85
|
-
`)!==-1,ge=xf.test(X),Ee=
|
|
86
|
-
`,i);
|
|
85
|
+
`)!==-1,ge=xf.test(X),Ee=zy.test(X),xe=r.inline,Nt=r.inHTML,Yt=r.d;r.inHTML=!0,r.d=(r.d||0)+1,le||ge||Ee?(r.inline=!1,Gn=va(R,r,a)):(r.inline=!0,Gn=qi(X,!1,r,a)),r.inline=xe,r.inHTML=Nt,r.d=Yt}var Fr=rt(e,mn),or=e.slice(mn,Fr).trim(),Ar=or?mn:He(e,mn),Xt=eo?e.slice(n,mn):e.slice(n,Ar);return{node:{type:oe.htmlBlock,tag:pn,attrs:An(Jt.attrs,pn,a),b:Jt.g+Jt.b,children:Gn,j:xr(Xt),text:eo?R:Xt,c:!0,a:!1},end:Ar}}var ds=Ky(e,Jt.end),Uq=ds<e.length?He(e,ds):ds,_p=e.slice(Jt.end,ds);if(_p.trim()){var{inline:Bq,inHTML:Vq,d:Hq}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,Gn=va(_p,r,a),r.inline=Bq,r.inHTML=Vq,r.d=Hq}var Wq=e.slice(Jt.end,ds);return{node:{type:oe.htmlBlock,tag:pn,attrs:An(Jt.attrs,pn,a),b:Jt.g+Jt.b,children:Gn,e:xr(Wq),text:_p,c:!0,a:!1},end:Uq}}function mI(e,t){if(e.charCodeAt(t)!==ht)return 0;var r=t+1,a=e.length;if(e.charCodeAt(r)===ur&&e.charCodeAt(r+1)===je&&e.charCodeAt(r+2)===je)return 2;if(e.charCodeAt(r)===Di)return 3;if(e.charCodeAt(r)===ur){var i=e.charCodeAt(r+1);if(i>=Te&&i<=Ne)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===Pt,o=n?r+1:r,s=o;s<a;){var c=e.charCodeAt(s);if(c>=Te&&c<=Ne||c>=lt&&c<=bt||c>=ze&&c<=$e||c===je)s++;else break}if(s===o)return 0;var l=e.slice(o,s);if(Ro.has(l.toLowerCase())){if(n)return 0;var u=e.charCodeAt(s);return u===ce||u===de||u===qe||u===ye||s>=a?1:0}if(sl.has(l.toLowerCase())){if(n){for(var f=s;f<a&&(e.charCodeAt(f)===ce||e.charCodeAt(f)===de);)f++;return f<a&&e.charCodeAt(f)===qe?6:0}var p=s<a?e.charCodeAt(s):-1;return p===ce||p===de||p===qe||p===ye||p===Pt||p===-1?6:0}if(n){for(var d=s;d<a&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de);)d++;if(d<a&&e.charCodeAt(d)===qe){var h=rt(e,t),k=e.slice(d+1,h).trim();if(k==="")return 7}}else{var v=rt(e,t),y=Cn(e,t);if(y&&y.end<=v){var b=e.slice(y.end,v).trim();if(b==="")return 7}}return 0}function rv(e,t,r){for(var a=0,i=e.length;a<i&&(e.charCodeAt(a)===ce||e.charCodeAt(a)===de);)a++;for(;i>a&&(e.charCodeAt(i-1)===ce||e.charCodeAt(i-1)===de);)i--;a<i&&e.charCodeAt(a)===Ht&&a++,i>a&&e.charCodeAt(i-1)===Ht&&(i-2<a||e.charCodeAt(i-2)!==Vt)&&i--;for(var n=[],o=a,s=!1,c=[],l=a;l<i;){var u=e.charCodeAt(l);if(u===Vt&&l+1<i){e.charCodeAt(l+1)===Ht?(s||(s=!0,c=[]),c.push(e.slice(o,l)),c.push("|"),l+=2,o=l):l+=2;continue}if(u===tt){for(var f=0;l<i&&e.charCodeAt(l)===tt;)f++,l++;for(var p=!1;l<i&&!p;){for(var d=0;l<i&&e.charCodeAt(l)===tt;)d++,l++;d===f?p=!0:d===0&&l++}continue}if(u===Ht){var h=s?(c.push(e.slice(o,l)),c.join("")):e.slice(o,l);n.push(h.trim()),l++,o=l,s=!1,c=[];continue}l++}var k=s?(c.push(e.slice(o,i)),c.join("")):e.slice(o,i);return n.push(k.trim()),n.map(v=>{var y=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return y?qi(y,!1,t,r):[]})}function nv(e,t,r,a){let i=rt(e,t);var n=e.indexOf("|",t);if(n<0||n>=i)return null;let o=He(e,i);if(o>=e.length)return null;let s=rt(e,o);if(!By(e,o,s))return null;let c=e.slice(t,i),l=e.slice(o,s);for(var u=[],f=0,p=l.length;f<p&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;for(f<p&&l.charCodeAt(f)===Ht&&f++;f<p;){for(;f<p&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;if(f>=p||l.charCodeAt(f)===Ht)break;var d=l.charCodeAt(f)===nr;for(d&&f++;f<p&&l.charCodeAt(f)===je;)f++;var h=f<p&&l.charCodeAt(f)===nr;for(h&&f++,u.push(d&&h?"center":h?"right":d?"left":null);f<p&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;f<p&&l.charCodeAt(f)===Ht&&f++}let k=rv(c,r,a);if(u.length!==k.length)return null;let v=[],y=He(e,s);for(;y<e.length;){let S=rt(e,y),A=e.slice(y,S);if(dr(e,y,S))break;if(Mt(e,y,S),nt<4){var b=e.charCodeAt(y+Qe);if(b===qe||b===Br||(b===je||b===Ft||b===_t)&&ha(e,y))break;if(b===tt||b===zt){for(var w=y+Qe,E=0;w<S&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}v.push(rv(A,r,a)),y=He(e,S)}if(a.optimizeForStreaming&&v.length===0)return null;for(var m=k.length,g=0;g<v.length;g++)if(v[g].length<m)for(;v[g].length<m;)v[g].push([]);else v[g].length>m&&(v[g].length=m);return{node:{type:oe.table,header:k,cells:v,align:u},end:y}}function hI(e,t,r){var a=rt(e,t);if(Mt(e,t,a),nt>3)return null;var i=t+Qe;if(e.charCodeAt(i)!==Tt)return null;if(i+1<e.length&&e.charCodeAt(i+1)===zn){var n=gI(e,i,r);return n||null}r.refs||(r.refs={});var o=Hy(e,i,r.refs);return o===null?null:{node:{type:oe.refCollection},end:o}}function gI(e,t,r){var a=e.length;if(e.charCodeAt(t)!==Tt||t+1>=a||e.charCodeAt(t+1)!==zn)return null;for(var i=t+2,n=i;i<a&&e.charCodeAt(i)!==an;){if(e.charCodeAt(i)===ye)return null;i++}if(i>=a)return null;var o=`^${e.slice(n,i)}`.toLowerCase();if(i++,i>=a||e.charCodeAt(i)!==nr)return null;for(i++;i<a&&(e.charCodeAt(i)===ce||e.charCodeAt(i)===de);)i++;if(i<a&&e.charCodeAt(i)===ye)for(i++;i<a&&(e.charCodeAt(i)===ce||e.charCodeAt(i)===de);)i++;var s=e.indexOf(`
|
|
86
|
+
`,i);s<0&&(s=a);for(var c=e.slice(i,s).trim(),l=s<a?s+1:a;l<a;){var u=rt(e,l);if(Mt(e,l,u),nt>=2&&!dr(e,l,u))c+=`
|
|
87
87
|
${e.slice(l,u)}`,l=He(e,u);else if(dr(e,l,u)){var f=He(e,u);if(f<a){var p=rt(e,f);if(Mt(e,f,p),nt>=2){c+=`
|
|
88
|
-
`,l=He(e,u);continue}}break}else break}var d=r.refs;return d&&!d[
|
|
89
|
-
`)!==-1&&(o=o.replace(/\n/g," ")),o.length>0&&o[0]===" "&&o.at(-1)===" "&&o.trim().length>0&&(o=o.slice(1,-1)),{node:{type:se.codeInline,text:o},end:n+s}}i=n+s}return null}function Ff(e,t,r){if(e.charCodeAt(t)!==tt)return t;let a=ma(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let s=ma(e,n,r,96);if(s===a)return n+s;i=n+s}return t}function yI(e,t,r){if(e.charCodeAt(t)!==ht)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==qe;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===ur&&e.charCodeAt(t+2)===je&&e.charCodeAt(t+3)===je){let l=e.indexOf("-->",t+4);return l>=0?l+3:t}let a=t+1,i=a;for(;a<r;){let l=e.charCodeAt(a);if(l>=Te&&l<=Ne||l>=lt&&l<=bt||l>=ze&&l<=$e||l===je)a++;else break}if(a===i)return t;let n=e.slice(i,a).toLowerCase(),s=!1;for(;a<r;){let l=e.charCodeAt(a);if(l===qe){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===qe){a+=2,s=!0;break}if(l===Ka||l===Wa){var o=l;for(a++;a<r&&e.charCodeAt(a)!==o;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(s||js(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===ht)if(a+1<r&&e.charCodeAt(a+1)===Pt){let l=a+2,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==qe;)u++;if(u<r&&u++,c--,c===0)return u}a=u}else{let l=a+1,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function vI(e,t,r,a,i){if(e.charCodeAt(t)!==zt||t+1>=r||e.charCodeAt(t+1)!==zt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===tt){let o=Ff(e,n,r);if(o>n){n=o;continue}}if(s===zt&&e.charCodeAt(n+1)===zt){let o=e.slice(t+2,n),c=_n(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"del",children:c},end:n+2}}s===Vt&&n+1<r&&n++,n++}return null}function bI(e,t,r,a,i){if(e.charCodeAt(t)!==Vr||t+1>=r||e.charCodeAt(t+1)!==Vr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===tt){let o=Ff(e,n,r);if(o>n){n=o;continue}}if(s===Vr&&e.charCodeAt(n+1)===Vr&&n>t+2){let o=e.slice(t+2,n),c=_n(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"mark",children:c},end:n+2}}s===Vt&&n+1<r&&n++,n++}return null}function nv(e,t,r){return e<rl?!!(Pf(e)&Fi):IP.test(t[r])}function av(e,t,r){return e<rl?!!(Pf(e)&Ya):NP.test(t[r])}function kI(e,t,r){var a=e.charCodeAt(t);if(a!==Ft&&a!==_t)return null;var i=ma(e,t,r,a);if(i===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+i<r?e.charCodeAt(t+i):32,o=av(n,e,t-1),c=av(s,e,t+i),l=t>0?nv(n,e,t-1):!1,u=t+i<r?nv(s,e,t+i):!1,f=!c&&(!u||o||l),p=!o&&(!l||c||u),d,h;return a===Ft?(d=f,h=p):(d=f&&(!p||l),h=p&&(!f||u)),{len:i,canOpen:d,canClose:h}}function wI(e,t,r,a){if(t.length!==0){for(var i=e.length,n=Array(i),s=null,o=null,c=0;c<i;c++){var l={node:e[c],prev:o,next:null};o?o.next=l:s=l,n[c]=l,o=l}for(var u=Array(t.length),f=0;f<t.length;f++)u[f]=n[t[f].idx];for(var p=[],d=0;d<12;d++)p[d]=-1;for(var h=0;h<t.length;){var k=t[h];if(!(k.active&&k.canClose)){h++;continue}for(var v=k.ch===Ft?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=p[y]===void 0?-1:p[y],w=-1,E=h-1;E>b;E--){var m=t[E];if(!(!m.active||m.ch!==k.ch||!m.canOpen)&&!((k.canOpen||m.canClose)&&(m.len+k.len)%3===0&&m.len%3!==0)){w=E;break}}if(w<0){p[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,A=S?2:1;g.len-=A,k.len-=A;var x=u[w],O=u[h],C=x.node,_=O.node;C.text=C.text.slice(0,C.text.length-A),_.text=_.text.slice(A);for(var F=[],I=x.next;I&&I!==O;)F.push(I.node),I=I.next;var j={type:se.textFormatted,tag:S?"strong":"em",children:F},$={node:j,prev:x,next:O};x.next=$,O.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,C.text==="")){var Z=x.prev;$.prev=Z,Z?Z.next=$:s=$}if(k.len===0){if(k.active=!1,_.text===""){var ie=O.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,M=s;M;){var U=M.node;if(U.type===se.text){var T=U;if(T.text===""){M=M.next;continue}if(P>0&&e[P-1].type===se.text){e[P-1].text+=T.text,M=M.next;continue}}e[P++]=U,M=M.next}e.length=P}}function cl(e,t,r,a){return t(e,r,a)===null?null:e}var iv=0,Mf=0,sv=0,jf=0,ov=0,Lf=0,Rf=0,Wr=0;function SI(){return Rf===2147483647&&(Mf=0,jf=0,Lf=0,ul=0,Rf=0),++Rf}var qf=null,ul=0,fl=[],zf=256;function lv(e,t,r,a,i){var K;let n=e.charCodeAt(t)===ur,s=n?t+1:t;if(e.charCodeAt(s)!==Tt||jf===Wr&&s>=sv)return null;var o=ul===Wr?qf:null,c=o===null?0:o[s];if(c<0)return null;var l=c;if(c===0){var u=e.indexOf("]",s+1);if(u<0||u>=r)return sv=s,jf=Wr,null;l=s+1;var f=0;fl[f++]=s;for(var p=r-s>=zf;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Vt&&l+1<r){l+=2;continue}if(d===tt){var h=Ff(e,l,r);if(h>l){l=h;continue}}if(d===ht){var k=cv(e,l,r);if(k){l=k.end;continue}var v=yI(e,l,r);if(v>l){l=v;continue}}if(d===Tt)fl[f++]=l;else if(d===an){var y=fl[--f];o===null&&p&&l-s>=zf&&(o=qf=new Int32Array(r),ul=Wr),o!==null&&(o[y]=l+1)}l++}if(f>0){if(o===null&&p&&l-s>=zf&&(o=qf=new Int32Array(r),ul=Wr),o!==null)for(;f>0;)o[fl[--f]]=-1;return null}}var b=l-1,w=e.slice(s+1,b),E=l<r?e.charCodeAt(l):0,m=!1;if(E===sn){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",A=l;if(l<r&&e.charCodeAt(l)===ht){for(l++,A=l;A<r&&e.charCodeAt(A)!==qe;){if(e.charCodeAt(A)===Vt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===ye){g=!1;break}A++}g&&(A>=r||e.charCodeAt(A)!==qe)&&(g=!1),g&&(S=e.slice(l,A),A++)}else if(g){var x=Mf===Wr?iv:-1;if(x>=0&&l>=x)g=!1;else{for(var O=0,C=!1;A<r;){var _=e.charCodeAt(A);if(_===Vt&&A+1<r){A+=2;continue}if(_===sn)O++;else if(_===on){if(C=!0,O===0)break;O--}else if(_===ce||_===ye)break;A++}A>=r&&!C&&(x<0||l<x)&&(iv=l,Mf=Wr),S=e.slice(l,A)}}if(g){for(l=A;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var F;if(l<r){var I=e.charCodeAt(l);if(I===Ka||I===Wa||I===sn){var j=I===sn?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==j;)e.charCodeAt(l)===Vt&&l+1<r&&l++,l++;l>=r?g=!1:(F=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==on)&&(g=!1)}}if(g){if(l++,S=da(Li(S)),F!==void 0&&(F=da(Li(F))),n){var Y=_n(w,0,w.length,a,i),Z=dl(Y);return{node:{type:se.image,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:F},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:se.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&$f(V)?null:{node:{type:se.link,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:F,children:V},end:l}}l=b+1,m=!0}var P="",M=l;if(!m&&E===Tt){var U=l+1;M=U;for(var T=!1;M<r&&e.charCodeAt(M)!==an;){if(e.charCodeAt(M)===Vt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===Tt){T=!0;break}M++}if(T||M>=r)return null;var N=e.slice(U,M);if(N.trim())P=il(N);else{if(Hy(w))return null;P=il(w)}M+=1}else{if(Hy(w))return null;P=il(w)}var L=(K=a.refs)==null?void 0:K[P];if(!L)return null;if(n)return{node:{type:se.image,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:dl(_n(w,0,w.length,a,i)),title:L.title},end:M};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:se.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&$f(V)?null:{node:{type:se.link,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:L.title,children:V},end:M}}function cv(e,t,r){if(e.charCodeAt(t)!==ht)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===qe)break;if(i===ce||i===ye||i===ua||i===ht)return null;a++}if(a>=r||e.charCodeAt(a)!==qe)return null;var n=e.slice(t+1,a),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{node:{type:se.link,target:n,title:void 0,children:[{type:se.text,text:n}]},end:a+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:se.link,target:`mailto:${n}`,title:void 0,children:[{type:se.text,text:n}]},end:a+1}:null}function EI(e,t,r,a){if(e.charCodeAt(t)!==Tt||t+1>=r||e.charCodeAt(t+1)!==zn||Lf===Wr&&t>=ov)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==an&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return ov=t,Lf=Wr,null;if(e.charCodeAt(i)!==an)return null;let n=e.slice(t+2,i);return n?{node:{type:se.footnoteReference,target:`#${Ja(n)}`,text:n},end:i+1}:null}function CI(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,s=e.charCodeAt(t);if(s===el||s===72?t+8<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Ni&&e.charCodeAt(t+3)===Sf&&(e.charCodeAt(t+4)===Ey&&e.charCodeAt(t+5)===nr&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===nr&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):s===Va||s===70?t+6<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Sf&&e.charCodeAt(t+3)===nr&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(s===Ha||s===87)&&t+4<=r&&e.charCodeAt(t+1)===Ha&&e.charCodeAt(t+2)===Ha&&e.charCodeAt(t+3)===Hr&&(i="www.",n=!0),!i)return null;let o=t+i.length;for(;o<r;){let g=e.charCodeAt(o);if(g===ce||g===ye||g===de||g===ua||g===ht||g===qe)break;o++}for(var c=0,l=0,u=t;u<o;u++){var f=e.charCodeAt(u);f===sn?c++:f===on&&l++}let p=o;for(;p>t+i.length;){let g=e.charCodeAt(p-1);if(g===Hr||g===vP||g===nr||g===ur||g===Di||g===on||g===Ft||g===_t||g===zt){if(g===on){if(c>=l)break;l--}p--}else if(g===tl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=bt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===Qo?p=d:p--}else break}if(p<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",h)===-1)return null;for(var v=-1,y=-1,b=k-1;b>=h;b--)if(e.charCodeAt(b)===Hr)if(v<0)v=b;else{y=b;break}for(var w=y>=0?y+1:h,b=w;b<k;b++)if(e.charCodeAt(b)===_t)return null;var E=e.slice(t,p),m=n?`http://${E}`:E;return{node:{type:se.link,target:m,title:void 0,children:[{type:se.text,text:E}]},end:p}}function AI(e,t,r,a){if(a.disableBareUrls)return null;for(var i=t,n=i;i<r;){var s=e.charCodeAt(i);if(s>=Te&&s<=Ne||s>=lt&&s<=bt||s>=ze&&s<=$e||s===Hr||s===ur||s===Br||s===36||s===kf||s===Qo||s===Wa||s===Ft||s===fa||s===Pt||s===Vr||s===Di||s===zn||s===_t||s===tt||s===Ga||s===Ht||s===Ef||s===zt||s===je)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Sy)return null;i++;for(var o=i,c=-1,l=i;i<r;){var s=e.charCodeAt(i);if(s>=Te&&s<=Ne||s>=lt&&s<=bt||s>=ze&&s<=$e)i++;else if((s===je||s===_t)&&i>o)i++;else if(s===Hr){if(i===o)break;var u=e.charCodeAt(i-1);if(u===je||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=bt||f>=ze&&f<=$e)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var p=e.charCodeAt(i-1);if(!(p>=Te&&p<=Ne||p>=lt&&p<=bt||p>=ze&&p<=$e)||i<=c+1)return null;for(var d=-1,h=c-1;h>=o;h--)if(e.charCodeAt(h)===Hr){d=h;break}for(var k=d>=0?d+1:o,h=k;h<i;h++)if(e.charCodeAt(h)===_t)return null;var v=e.slice(t,i);return{node:{type:se.link,target:`mailto:${v}`,title:void 0,children:[{type:se.text,text:v}]},end:i}}function $f(e){for(var t=0;t<e.length;t++)if(e[t].type===se.link||"children"in e[t]&&Array.isArray(e[t].children)&&$f(e[t].children))return!0;return!1}function dl(e,t){for(var r="",a=0;a<e.length;a++){var i=e[a];i.type===se.text?r+=i.text:i.type===se.breakLine?r+=" ":i.type===se.codeInline||i.type===se.footnoteReference?r+=i.text:"children"in i&&Array.isArray(i.children)?r+=dl(i.children,t):!t&&i.type===se.image&&(r+=i.alt||"")}return r}function Uf(e,t,r){for(var a=0;a<e.length;a++){var i=e[a];if(i.type===se.heading){var n=i;n.id=iI(r(dl(n.children,!0)),t)}if("children"in i){var s=i.children;Array.isArray(s)&&Uf(s,t,r)}if((i.type===se.orderedList||i.type===se.unorderedList)&&Array.isArray(i.items))for(var o=i.items,c=0;c<o.length;c++)Uf(o[c],t,r)}}function Za(e){return{type:se.text,text:e}}function _I(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Br){a++;var i=a<r&&(e.charCodeAt(a)===Cy||e.charCodeAt(a)===Ay);i&&a++;for(var n=a,s=i?6:7;a<r&&a-n<=s;){var o=e.charCodeAt(a),c=o>=ze&&o<=$e||i&&(o>=Te&&o<=wf||o>=lt&&o<=Va);if(!c)break;a++}return a===n||a-n>s?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}for(var l=a;a<r&&a-l<48;){var u=e.charCodeAt(a);if(u>=Te&&u<=Ne||u>=lt&&u<=bt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}function OI(e,t,r,a,i){if(e.charCodeAt(t)!==ht)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===ur&&n+1<r&&e.charCodeAt(n+1)===je&&n+2<r&&e.charCodeAt(n+2)===je){var o=n+3;if(o<r&&e.charCodeAt(o)===qe)return{node:{type:se.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===je&&e.charCodeAt(o+1)===qe)return{node:{type:se.htmlComment,text:"-",s:!0},end:o+2};var c=e.indexOf("-->",o);return c!==-1&&c<=r-3?{node:{type:se.htmlComment,text:e.slice(t+4,c),s:!1},end:c+3}:null}if(s===Di){var l=e.indexOf("?>",n+1);return l!==-1&&l<r?{node:{type:se.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,l+2),a:!1},end:l+2}:null}if(s===ur&&n+1<r){var u=e.charCodeAt(n+1);if(u===Tt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:se.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(u>=Te&&u<=Ne){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:se.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(s===Pt){var d=n+1;if(d>=r)return null;var h=e.charCodeAt(d);if(!(h>=Te&&h<=Ne||h>=lt&&h<=bt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=bt||k>=ze&&k<=$e||k===je)d++;else break}for(;d<r&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de||e.charCodeAt(d)===ye);)d++;if(d<r&&e.charCodeAt(d)===qe){var v=e.slice(n+1,d).trim();return{node:{type:se.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=Te&&s<=Ne||s>=lt&&s<=bt))return null;var y=Cn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||js(b))return{node:{type:se.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var m=Ls.has(w),g=Df(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:se.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var S=fI(e,`</${w}`,g),A=e.slice(y.end,S);if(m){var x=Tr(A);return{node:{type:se.htmlBlock,tag:b,attrs:An(y.attrs,b,i),b:y.g+y.b,children:[],e:x||void 0,h:e.slice(S,g),text:x,c:!0,a:!1},end:g}}var O=[],C=A.trim();if(C){var{inAnchor:_,inline:F,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var j=C.indexOf(`
|
|
88
|
+
`,l=He(e,u);continue}}break}else break}var d=r.refs;return d&&!d[o]&&(d[o]={target:c,title:void 0}),{node:{type:oe.footnote},end:l}}function yI(e,t,r,a){let i=t,n=0,o=0,s=-1;for(;i<e.length;){let F=s>=0?s:rt(e,i);if(s=-1,dr(e,i,F))break;if(Mt(e,i,F),nt<4&&o>0&&!r.l){let j=e.charCodeAt(i+Qe);if(j===Vr||j===je){let $=i+Qe;for(;$<F&&e.charCodeAt($)===j;)$++;for(;$<F&&(e.charCodeAt($)===ce||e.charCodeAt($)===de);)$++;if($>=F){n=j===Vr?1:2,i=He(e,F);break}}}o=F;let I=He(e,F);if(I<e.length){if(e.charCodeAt(I)===Cf){var c=rt(e,I);i=He(e,c),o=c;continue}let j=rt(e,I);if(s=j,Mt(e,I,j),nt<4){let $=e.charCodeAt(I+Qe);if($===qe){i=I;break}if($===Br){for(var l=I+Qe,u=0;l<j&&e.charCodeAt(l)===Br&&u<=6;)u++,l++;if(u>=1&&u<=6&&(l>=j||e.charCodeAt(l)===ce||e.charCodeAt(l)===de)){i=I;break}}if($===tt||$===zt){for(var f=I+Qe,p=0;f<j&&e.charCodeAt(f)===$;)p++,f++;if(p>=3){i=I;break}}if($===ht){var d=I+Qe+1,h=d<j?e.charCodeAt(d):0,k=h===ur||h===Di;if(!k&&h===Pt){for(var v=d+1,y=v;y<j&&(e.charCodeAt(y)>=Te&&e.charCodeAt(y)<=Ne||e.charCodeAt(y)>=lt&&e.charCodeAt(y)<=bt||e.charCodeAt(y)>=ze&&e.charCodeAt(y)<=$e||e.charCodeAt(y)===je);)y++;y>v&&(k=sl.has(e.slice(v,y).toLowerCase()))}else if(!k){for(var b=d;b<j&&(e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=Ne||e.charCodeAt(b)>=lt&&e.charCodeAt(b)<=bt||e.charCodeAt(b)>=ze&&e.charCodeAt(b)<=$e||e.charCodeAt(b)===je);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=sl.has(w)||Ro.has(w)}}if(k&&tv(e,I,r,a)){i=I;break}}if($===je||$===Ft||$===fa){let Y=I+Qe+1;if(Y<j&&(e.charCodeAt(Y)===ce||e.charCodeAt(Y)===de)){var E=qo(e,Y,j);if(E<j&&!ha(e,I)){i=I;break}}}if($>=ze&&$<=$e){let Y=I+Qe;for(;Y<j&&e.charCodeAt(Y)>=ze&&e.charCodeAt(Y)<=$e;)Y++;if(Y<j&&(e.charCodeAt(Y)===Hr||e.charCodeAt(Y)===sn)&&Y-(I+Qe)===1&&e.charCodeAt(I+Qe)===49){var m=Y+1;if(m<j&&(e.charCodeAt(m)===ce||e.charCodeAt(m)===de)){var g=qo(e,m,j);if(g<j){i=I;break}}}}if($===Ht){let Y=He(e,j);if(Y<e.length){let Z=rt(e,Y);if(By(e,Y,Z)){i=I;break}}}if(($===je||$===Ft||$===_t)&&ha(e,I)){if($!==je){i=I;break}let Y=I+Qe;for(;Y<j&&e.charCodeAt(Y)===je;)Y++;for(;Y<j&&(e.charCodeAt(Y)===ce||e.charCodeAt(Y)===de);)Y++;if(Y<j){i=I;break}}}}i=He(e,F)}for(var S=n?o:i;S>t&&(e.charCodeAt(S-1)===ye||e.charCodeAt(S-1)===ua||e.charCodeAt(S-1)===ce||e.charCodeAt(S-1)===de);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===ce||e.charCodeAt(A)===de);)A++;if(A>=S)return null;for(var x=!1,O=A;O<S;O++)if(e.charCodeAt(O)===Cf){x=!0;break}var C=x?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!C)return null;let _=qi(C,!0,r,a);return n?{node:{type:oe.heading,level:n,children:_,id:""},end:i}:{node:{type:oe.paragraph,children:_},end:i}}function qi(e,t,r,a){var i=r.t;if(!i){var n=r.k;r.k=t;var o=_n(e,0,e.length,r,a);return r.k=n,o}var s=[];return i.push({dest:s,text:e,breaks:t,inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o}),s}function vI(e,t,r){if(e.charCodeAt(t)!==tt)return null;let a=ma(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return null;let o=ma(e,n,r,96);if(o===a){let s=e.slice(t+a,n);return s.indexOf(`
|
|
89
|
+
`)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:oe.codeInline,text:s},end:n+o}}i=n+o}return null}function Ff(e,t,r){if(e.charCodeAt(t)!==tt)return t;let a=ma(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let o=ma(e,n,r,96);if(o===a)return n+o;i=n+o}return t}function bI(e,t,r){if(e.charCodeAt(t)!==ht)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==qe;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===ur&&e.charCodeAt(t+2)===je&&e.charCodeAt(t+3)===je){let l=e.indexOf("-->",t+4);return l>=0?l+3:t}let a=t+1,i=a;for(;a<r;){let l=e.charCodeAt(a);if(l>=Te&&l<=Ne||l>=lt&&l<=bt||l>=ze&&l<=$e||l===je)a++;else break}if(a===i)return t;let n=e.slice(i,a).toLowerCase(),o=!1;for(;a<r;){let l=e.charCodeAt(a);if(l===qe){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===qe){a+=2,o=!0;break}if(l===Ka||l===Wa){var s=l;for(a++;a<r&&e.charCodeAt(a)!==s;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(o||Lo(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===ht)if(a+1<r&&e.charCodeAt(a+1)===Pt){let l=a+2,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==qe;)u++;if(u<r&&u++,c--,c===0)return u}a=u}else{let l=a+1,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=bt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function kI(e,t,r,a,i){if(e.charCodeAt(t)!==zt||t+1>=r||e.charCodeAt(t+1)!==zt)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===tt){let s=Ff(e,n,r);if(s>n){n=s;continue}}if(o===zt&&e.charCodeAt(n+1)===zt){let s=e.slice(t+2,n),c=_n(s,0,s.length,a,i);return{node:{type:oe.textFormatted,tag:"del",children:c},end:n+2}}o===Vt&&n+1<r&&n++,n++}return null}function wI(e,t,r,a,i){if(e.charCodeAt(t)!==Vr||t+1>=r||e.charCodeAt(t+1)!==Vr)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===tt){let s=Ff(e,n,r);if(s>n){n=s;continue}}if(o===Vr&&e.charCodeAt(n+1)===Vr&&n>t+2){let s=e.slice(t+2,n),c=_n(s,0,s.length,a,i);return{node:{type:oe.textFormatted,tag:"mark",children:c},end:n+2}}o===Vt&&n+1<r&&n++,n++}return null}function av(e,t,r){return e<rl?!!(Pf(e)&Fi):DP.test(t[r])}function iv(e,t,r){return e<rl?!!(Pf(e)&Ya):FP.test(t[r])}function SI(e,t,r){var a=e.charCodeAt(t);if(a!==Ft&&a!==_t)return null;var i=ma(e,t,r,a);if(i===0)return null;var n=t>0?e.charCodeAt(t-1):32,o=t+i<r?e.charCodeAt(t+i):32,s=iv(n,e,t-1),c=iv(o,e,t+i),l=t>0?av(n,e,t-1):!1,u=t+i<r?av(o,e,t+i):!1,f=!c&&(!u||s||l),p=!s&&(!l||c||u),d,h;return a===Ft?(d=f,h=p):(d=f&&(!p||l),h=p&&(!f||u)),{len:i,canOpen:d,canClose:h}}function EI(e,t,r,a){if(t.length!==0){for(var i=e.length,n=Array(i),o=null,s=null,c=0;c<i;c++){var l={node:e[c],prev:s,next:null};s?s.next=l:o=l,n[c]=l,s=l}for(var u=Array(t.length),f=0;f<t.length;f++)u[f]=n[t[f].idx];for(var p=[],d=0;d<12;d++)p[d]=-1;for(var h=0;h<t.length;){var k=t[h];if(!(k.active&&k.canClose)){h++;continue}for(var v=k.ch===Ft?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=p[y]===void 0?-1:p[y],w=-1,E=h-1;E>b;E--){var m=t[E];if(!(!m.active||m.ch!==k.ch||!m.canOpen)&&!((k.canOpen||m.canClose)&&(m.len+k.len)%3===0&&m.len%3!==0)){w=E;break}}if(w<0){p[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,A=S?2:1;g.len-=A,k.len-=A;var x=u[w],O=u[h],C=x.node,_=O.node;C.text=C.text.slice(0,C.text.length-A),_.text=_.text.slice(A);for(var F=[],I=x.next;I&&I!==O;)F.push(I.node),I=I.next;var j={type:oe.textFormatted,tag:S?"strong":"em",children:F},$={node:j,prev:x,next:O};x.next=$,O.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,C.text==="")){var Z=x.prev;$.prev=Z,Z?Z.next=$:o=$}if(k.len===0){if(k.active=!1,_.text===""){var ie=O.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,M=o;M;){var U=M.node;if(U.type===oe.text){var T=U;if(T.text===""){M=M.next;continue}if(P>0&&e[P-1].type===oe.text){e[P-1].text+=T.text,M=M.next;continue}}e[P++]=U,M=M.next}e.length=P}}function cl(e,t,r,a){return t(e,r,a)===null?null:e}var ov=0,Mf=0,sv=0,jf=0,lv=0,Lf=0,Rf=0,Wr=0;function CI(){return Rf===2147483647&&(Mf=0,jf=0,Lf=0,ul=0,Rf=0),++Rf}var qf=null,ul=0,fl=[],zf=256;function cv(e,t,r,a,i){var K;let n=e.charCodeAt(t)===ur,o=n?t+1:t;if(e.charCodeAt(o)!==Tt||jf===Wr&&o>=sv)return null;var s=ul===Wr?qf:null,c=s===null?0:s[o];if(c<0)return null;var l=c;if(c===0){var u=e.indexOf("]",o+1);if(u<0||u>=r)return sv=o,jf=Wr,null;l=o+1;var f=0;fl[f++]=o;for(var p=r-o>=zf;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Vt&&l+1<r){l+=2;continue}if(d===tt){var h=Ff(e,l,r);if(h>l){l=h;continue}}if(d===ht){var k=uv(e,l,r);if(k){l=k.end;continue}var v=bI(e,l,r);if(v>l){l=v;continue}}if(d===Tt)fl[f++]=l;else if(d===an){var y=fl[--f];s===null&&p&&l-o>=zf&&(s=qf=new Int32Array(r),ul=Wr),s!==null&&(s[y]=l+1)}l++}if(f>0){if(s===null&&p&&l-o>=zf&&(s=qf=new Int32Array(r),ul=Wr),s!==null)for(;f>0;)s[fl[--f]]=-1;return null}}var b=l-1,w=e.slice(o+1,b),E=l<r?e.charCodeAt(l):0,m=!1;if(E===on){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",A=l;if(l<r&&e.charCodeAt(l)===ht){for(l++,A=l;A<r&&e.charCodeAt(A)!==qe;){if(e.charCodeAt(A)===Vt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===ye){g=!1;break}A++}g&&(A>=r||e.charCodeAt(A)!==qe)&&(g=!1),g&&(S=e.slice(l,A),A++)}else if(g){var x=Mf===Wr?ov:-1;if(x>=0&&l>=x)g=!1;else{for(var O=0,C=!1;A<r;){var _=e.charCodeAt(A);if(_===Vt&&A+1<r){A+=2;continue}if(_===on)O++;else if(_===sn){if(C=!0,O===0)break;O--}else if(_===ce||_===ye)break;A++}A>=r&&!C&&(x<0||l<x)&&(ov=l,Mf=Wr),S=e.slice(l,A)}}if(g){for(l=A;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var F;if(l<r){var I=e.charCodeAt(l);if(I===Ka||I===Wa||I===on){var j=I===on?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==j;)e.charCodeAt(l)===Vt&&l+1<r&&l++,l++;l>=r?g=!1:(F=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==sn)&&(g=!1)}}if(g){if(l++,S=da(Li(S)),F!==void 0&&(F=da(Li(F))),n){var Y=_n(w,0,w.length,a,i),Z=dl(Y);return{node:{type:oe.image,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:F},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:oe.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&$f(V)?null:{node:{type:oe.link,target:cl(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:F,children:V},end:l}}l=b+1,m=!0}var P="",M=l;if(!m&&E===Tt){var U=l+1;M=U;for(var T=!1;M<r&&e.charCodeAt(M)!==an;){if(e.charCodeAt(M)===Vt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===Tt){T=!0;break}M++}if(T||M>=r)return null;var N=e.slice(U,M);if(N.trim())P=il(N);else{if(Wy(w))return null;P=il(w)}M+=1}else{if(Wy(w))return null;P=il(w)}var L=(K=a.refs)==null?void 0:K[P];if(!L)return null;if(n)return{node:{type:oe.image,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:dl(_n(w,0,w.length,a,i)),title:L.title},end:M};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:oe.text,text:w}]:_n(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&$f(V)?null:{node:{type:oe.link,target:cl(L.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:L.title,children:V},end:M}}function uv(e,t,r){if(e.charCodeAt(t)!==ht)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===qe)break;if(i===ce||i===ye||i===ua||i===ht)return null;a++}if(a>=r||e.charCodeAt(a)!==qe)return null;var n=e.slice(t+1,a),o=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return o?{node:{type:oe.link,target:n,title:void 0,children:[{type:oe.text,text:n}]},end:a+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:oe.link,target:`mailto:${n}`,title:void 0,children:[{type:oe.text,text:n}]},end:a+1}:null}function AI(e,t,r,a){if(e.charCodeAt(t)!==Tt||t+1>=r||e.charCodeAt(t+1)!==zn||Lf===Wr&&t>=lv)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==an&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return lv=t,Lf=Wr,null;if(e.charCodeAt(i)!==an)return null;let n=e.slice(t+2,i);return n?{node:{type:oe.footnoteReference,target:`#${Ja(n)}`,text:n},end:i+1}:null}function _I(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,o=e.charCodeAt(t);if(o===el||o===72?t+8<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Ni&&e.charCodeAt(t+3)===Sf&&(e.charCodeAt(t+4)===Cy&&e.charCodeAt(t+5)===nr&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===nr&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):o===Va||o===70?t+6<=r&&e.charCodeAt(t+1)===Ni&&e.charCodeAt(t+2)===Sf&&e.charCodeAt(t+3)===nr&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(o===Ha||o===87)&&t+4<=r&&e.charCodeAt(t+1)===Ha&&e.charCodeAt(t+2)===Ha&&e.charCodeAt(t+3)===Hr&&(i="www.",n=!0),!i)return null;let s=t+i.length;for(;s<r;){let g=e.charCodeAt(s);if(g===ce||g===ye||g===de||g===ua||g===ht||g===qe)break;s++}for(var c=0,l=0,u=t;u<s;u++){var f=e.charCodeAt(u);f===on?c++:f===sn&&l++}let p=s;for(;p>t+i.length;){let g=e.charCodeAt(p-1);if(g===Hr||g===kP||g===nr||g===ur||g===Di||g===sn||g===Ft||g===_t||g===zt){if(g===sn){if(c>=l)break;l--}p--}else if(g===tl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=bt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===Qs?p=d:p--}else break}if(p<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",h)===-1)return null;for(var v=-1,y=-1,b=k-1;b>=h;b--)if(e.charCodeAt(b)===Hr)if(v<0)v=b;else{y=b;break}for(var w=y>=0?y+1:h,b=w;b<k;b++)if(e.charCodeAt(b)===_t)return null;var E=e.slice(t,p),m=n?`http://${E}`:E;return{node:{type:oe.link,target:m,title:void 0,children:[{type:oe.text,text:E}]},end:p}}function OI(e,t,r,a){if(a.disableBareUrls)return null;for(var i=t,n=i;i<r;){var o=e.charCodeAt(i);if(o>=Te&&o<=Ne||o>=lt&&o<=bt||o>=ze&&o<=$e||o===Hr||o===ur||o===Br||o===36||o===kf||o===Qs||o===Wa||o===Ft||o===fa||o===Pt||o===Vr||o===Di||o===zn||o===_t||o===tt||o===Ga||o===Ht||o===Ef||o===zt||o===je)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Ey)return null;i++;for(var s=i,c=-1,l=i;i<r;){var o=e.charCodeAt(i);if(o>=Te&&o<=Ne||o>=lt&&o<=bt||o>=ze&&o<=$e)i++;else if((o===je||o===_t)&&i>s)i++;else if(o===Hr){if(i===s)break;var u=e.charCodeAt(i-1);if(u===je||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=bt||f>=ze&&f<=$e)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var p=e.charCodeAt(i-1);if(!(p>=Te&&p<=Ne||p>=lt&&p<=bt||p>=ze&&p<=$e)||i<=c+1)return null;for(var d=-1,h=c-1;h>=s;h--)if(e.charCodeAt(h)===Hr){d=h;break}for(var k=d>=0?d+1:s,h=k;h<i;h++)if(e.charCodeAt(h)===_t)return null;var v=e.slice(t,i);return{node:{type:oe.link,target:`mailto:${v}`,title:void 0,children:[{type:oe.text,text:v}]},end:i}}function $f(e){for(var t=0;t<e.length;t++)if(e[t].type===oe.link||"children"in e[t]&&Array.isArray(e[t].children)&&$f(e[t].children))return!0;return!1}function dl(e,t){for(var r="",a=0;a<e.length;a++){var i=e[a];i.type===oe.text?r+=i.text:i.type===oe.breakLine?r+=" ":i.type===oe.codeInline||i.type===oe.footnoteReference?r+=i.text:"children"in i&&Array.isArray(i.children)?r+=dl(i.children,t):!t&&i.type===oe.image&&(r+=i.alt||"")}return r}function Uf(e,t,r){for(var a=0;a<e.length;a++){var i=e[a];if(i.type===oe.heading){var n=i;n.id=sI(r(dl(n.children,!0)),t)}if("children"in i){var o=i.children;Array.isArray(o)&&Uf(o,t,r)}if((i.type===oe.orderedList||i.type===oe.unorderedList)&&Array.isArray(i.items))for(var s=i.items,c=0;c<s.length;c++)Uf(s[c],t,r)}}function Za(e){return{type:oe.text,text:e}}function xI(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Br){a++;var i=a<r&&(e.charCodeAt(a)===Ay||e.charCodeAt(a)===_y);i&&a++;for(var n=a,o=i?6:7;a<r&&a-n<=o;){var s=e.charCodeAt(a),c=s>=ze&&s<=$e||i&&(s>=Te&&s<=wf||s>=lt&&s<=Va);if(!c)break;a++}return a===n||a-n>o?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}for(var l=a;a<r&&a-l<48;){var u=e.charCodeAt(a);if(u>=Te&&u<=Ne||u>=lt&&u<=bt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===tl?a+1:-1}function TI(e,t,r,a,i){if(e.charCodeAt(t)!==ht)return null;var n=t+1;if(n>=r)return null;var o=e.charCodeAt(n);if(o===ur&&n+1<r&&e.charCodeAt(n+1)===je&&n+2<r&&e.charCodeAt(n+2)===je){var s=n+3;if(s<r&&e.charCodeAt(s)===qe)return{node:{type:oe.htmlComment,text:"",s:!0},end:s+1};if(s+1<r&&e.charCodeAt(s)===je&&e.charCodeAt(s+1)===qe)return{node:{type:oe.htmlComment,text:"-",s:!0},end:s+2};var c=e.indexOf("-->",s);return c!==-1&&c<=r-3?{node:{type:oe.htmlComment,text:e.slice(t+4,c),s:!1},end:c+3}:null}if(o===Di){var l=e.indexOf("?>",n+1);return l!==-1&&l<r?{node:{type:oe.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,l+2),a:!1},end:l+2}:null}if(o===ur&&n+1<r){var u=e.charCodeAt(n+1);if(u===Tt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:oe.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(u>=Te&&u<=Ne){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:oe.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(o===Pt){var d=n+1;if(d>=r)return null;var h=e.charCodeAt(d);if(!(h>=Te&&h<=Ne||h>=lt&&h<=bt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=bt||k>=ze&&k<=$e||k===je)d++;else break}for(;d<r&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de||e.charCodeAt(d)===ye);)d++;if(d<r&&e.charCodeAt(d)===qe){var v=e.slice(n+1,d).trim();return{node:{type:oe.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(o>=Te&&o<=Ne||o>=lt&&o<=bt))return null;var y=Cn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||Lo(b))return{node:{type:oe.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var m=Ro.has(w),g=Df(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:oe.htmlSelfClosing,tag:b,attrs:An(y.attrs,b,i),m:y.q?Tf(y):e.slice(t,y.end),a:!1},end:y.end};var S=pI(e,`</${w}`,g),A=e.slice(y.end,S);if(m){var x=xr(A);return{node:{type:oe.htmlBlock,tag:b,attrs:An(y.attrs,b,i),b:y.g+y.b,children:[],e:x||void 0,h:e.slice(S,g),text:x,c:!0,a:!1},end:g}}var O=[],C=A.trim();if(C){var{inAnchor:_,inline:F,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var j=C.indexOf(`
|
|
90
90
|
|
|
91
|
-
`)!==-1||/^#{1,6}\s/.test(C);j?(a.inline=!1,O=va(C,a,i)):O=_n(C,0,C.length,a,i),a.inAnchor=_,a.inline=F,a.k=I}return{node:{type:
|
|
92
|
-
`,t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}}if(ne)(J||t>K)&&(B.push(Za(J+e.slice(K,t))),J=""),B.push(ne.node),t=ne.end,K=t;else{if(re===Vt&&t+1<r){let we=e.charCodeAt(t+1);if(Pf(we)&Fi){(J||t>K)&&(B.push(Za(J+e.slice(K,t))),J=""),B.push(Za(e[t+1])),t+=2,K=t;continue}}if(t++,Q<0||Q-t>64)for(;t<r&&!(Q>=0&&Q-t<=64);){var ee=e.charCodeAt(t);if(ee<rl
|
|
93
|
-
`),Q=J===-1?0:J+1,q=K,z=Q,W=0;z<q&&e.charCodeAt(z)===ce&&W<3;)z++,W++;if(z<q){var G=e.charCodeAt(z),te=!1;if(G===Ft||G===je||G===fa){var ae=z+1;if(ae>=q||e.charCodeAt(ae)===ce||e.charCodeAt(ae)===de){for(var pe=ae;pe<q&&(e.charCodeAt(pe)===ce||e.charCodeAt(pe)===de);)pe++;pe>=q&&(te=!0)}}else if(G>=ze&&G<=$e){for(var ve=z;ve<q&&e.charCodeAt(ve)>=ze&&e.charCodeAt(ve)<=$e;)ve++;if(ve<q&&(e.charCodeAt(ve)===Hr||e.charCodeAt(ve)===
|
|
91
|
+
`)!==-1||/^#{1,6}\s/.test(C);j?(a.inline=!1,O=va(C,a,i)):O=_n(C,0,C.length,a,i),a.inAnchor=_,a.inline=F,a.k=I}return{node:{type:oe.htmlBlock,tag:b,attrs:An(y.attrs,b,i),b:y.b,children:O,text:xr(A),c:!1,a:!1},end:g}}var PI=200,zo=0;function _n(e,t,r,a,i){if(zo++,zo>PI)return zo--,[{type:oe.text,text:e.slice(t,r)}];var n=Wr;Wr=CI();let o=a;if(i.optimizeForStreaming){let re=function(Ge,Ct){for(var It=1,it=Ct+1;it<Ge.length;it++){var wt=Ge.charCodeAt(it);if(wt===Tt)It++;else if(wt===an&&(It--,It===0))return it}return-1},ne=e.slice(t,r),we=ne;for(var s=0,c=0,l=0,u=0,f=0,p=-1,d=-1,h=-1,k=-1,v=-1,y=0;y<ne.length;y++){var b=ne.charCodeAt(y);b===Ft?y+1<ne.length&&ne.charCodeAt(y+1)===Ft?(s++,p=y,y++):(c++,d=y):b===_t?y+1<ne.length&&ne.charCodeAt(y+1)===_t?(l++,h=y,y++):(u++,k=y):b===zt&&y+1<ne.length&&ne.charCodeAt(y+1)===zt&&(f++,v=y,y++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),l%2===1&&h>=0&&w.push([h,2]),u%2===1&&k>=0&&w.push([k,1]),s%2===1&&p>=0&&w.push([p,2]),c%2===1&&d>=0&&w.push([d,1]),w.sort((Ge,Ct)=>Ct[0]-Ge[0]);for(var E=0;E<w.length;E++){var m=w[E][0],g=w[E][1];ne=ne.slice(0,m)+ne.slice(m+g)}let me=0,at=-1;for(let Ge=0;Ge<ne.length;Ge++)ne.charCodeAt(Ge)===tt&&(me++,at=Ge);if(me%2===1&&at!==-1){let Ge=!1,Ct=-1,It=0;for(;It<ne.length;)ne.charCodeAt(It)===tt&&(Ge?(Ge=!1,Ct=-1):(Ct=It,Ge=!0)),It++;Ge&&Ct!==-1&&(ne=ne.slice(0,Ct))}for(var S=!0;S;){S=!1;for(var A=-1,x=-1,O=-1,C=!1,_=0;_<ne.length;_++){var F=ne.charCodeAt(_);if(F===Tt&&(_===0||ne.charCodeAt(_-1)!==Vt)){var I=_>0&&ne.charCodeAt(_-1)===ur,j=I?_-1:_,$=re(ne,_);if($===-1)A=j,C=I,x=_+1,O=ne.length;else{var Y=$+1;if(Y>=ne.length)A=j,C=I,x=_+1,O=$;else if(ne.charCodeAt(Y)===on){var Z=ne.indexOf(")",Y+1);Z===-1?(A=j,C=I,x=_+1,O=$,_=ne.length):_=Z}else if(ne.charCodeAt(Y)===Tt){var ie=ne.indexOf("]",Y+1);ie===-1?(A=j,C=I,x=_+1,O=$,_=ne.length):_=ie}else _=$}}}if(A>=0){var P=C?"":ne.slice(x,O);ne=ne.slice(0,A)+P,S=!0}}let Re=ne.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Re&&Re.index!==void 0){var M=Re[0].length-Re[2].length,U=M>=2&&Re[0].charCodeAt(M-2)===Pt;if(!U){for(var T=!1,N=0,L=0;L<Re.index;L++)ne.charCodeAt(L)===tt&&N++;if(T=N%2===1,!T){let Ge=Re[1];ya(ne,`</${Ge}`,0)===-1&&(ne=ne.slice(0,Re.index)+Re[2])}}}ne!==we&&(e=e.slice(0,t)+ne,r=t+ne.length)}let B=[];var V=[];let K=t;var J="",Q=i.disableAutoLink||i.disableBareUrls||o.inAnchor?-1:e.indexOf("@",t);for(Q>=r&&(Q=-1);t<r;){let re=e.charCodeAt(t),ne=null;if(re===tt){if(ne=vI(e,t,r),!ne){var q=ma(e,t,r,tt);t+=q-1}}else if(re===Ft||re===_t){var z=SI(e,t,r);if(z){if(z.canOpen||z.canClose){(J||t>K)&&(B.push(Za(J+e.slice(K,t))),J="");var W=e.slice(t,t+z.len),G=Za(W);V.push({idx:B.length,ch:re,len:z.len,canOpen:z.canOpen,canClose:z.canClose,active:!0}),B.push(G),t+=z.len,K=t;continue}t+=z.len-1}}else if(re===zt)ne=kI(e,t,r,o,i);else if(re===Vr)ne=wI(e,t,r,o,i);else if(re===Tt)t+1<r&&e.charCodeAt(t+1)===zn&&(ne=AI(e,t,r)),ne||(ne=cv(e,t,r,o,i));else if(re===ur&&t+1<r&&e.charCodeAt(t+1)===Tt)ne=cv(e,t,r,o,i);else if(re===ht)ne=uv(e,t,r),!(ne||i.disableParsingRawHTML||i.ignoreHTMLBlocks)&&(ne=TI(e,t,r,o,i));else if(re===Qs){var te=xI(e,t,r);if(te!==-1){var ae=e.slice(t,te),pe=da(ae);if(pe!==ae){J=J+e.slice(K,t)+pe,t=te,K=te;continue}}}else if((re===el||re===Ha||re===Va)&&!o.inAnchor&&!i.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==ht)){var ve=t+1<r?e.charCodeAt(t+1):0;(re===el&&ve===Ni||re===Va&&ve===Ni||re===Ha&&ve===Ha)&&(ne=_I(e,t,r,i))}if(!ne&&Q>=0&&Q-t<=64&&!o.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(re>=Te&&re<=Ne||re>=lt&&re<=bt||re>=ze&&re<=$e)&&(ne=OI(e,t,r,i),!ne&&t>=Q&&(Q=e.indexOf("@",t+1),Q>=r&&(Q=-1))),re===ye&&o.k){var Ae=!1,Se=0;if(t>K&&e.charCodeAt(t-1)===Vt)Ae=!0,Se=1;else{for(var De=0,he=t-1;he>=K&&e.charCodeAt(he)===ce;)De++,he--;De>=2&&(Ae=!0,Se=De)}if(Ae){for((J||t-Se>K)&&(B.push(Za(J+e.slice(K,t-Se))),J=""),B.push({type:oe.breakLine}),t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}var Le=t>K&&e.charCodeAt(t-1)===ce,We=t+1<r&&e.charCodeAt(t+1)===ce;if(Le||We){for(var ke=t;ke>K&&e.charCodeAt(ke-1)===ce;)ke--;for(J+=`${e.slice(K,ke)}
|
|
92
|
+
`,t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}}if(ne)(J||t>K)&&(B.push(Za(J+e.slice(K,t))),J=""),B.push(ne.node),t=ne.end,K=t;else{if(re===Vt&&t+1<r){let we=e.charCodeAt(t+1);if(Pf(we)&Fi){(J||t>K)&&(B.push(Za(J+e.slice(K,t))),J=""),B.push(Za(e[t+1])),t+=2,K=t;continue}}if(t++,Q<0||Q-t>64)for(;t<r&&!(Q>=0&&Q-t<=64);){var ee=e.charCodeAt(t);if(ee<rl&&!$y[ee])t++;else break}}}return(J||r>K)&&(B.push(Za(J+e.slice(K,r))),J=""),V.length>0&&EI(B,V),Wr=n,zo--,B}var II=500;function va(e,t,r){var a=t.o||0;if(a>II)return[{type:oe.text,text:e}];if(t.o=a+1,r.optimizeForStreaming&&!(t.i||t.w)){for(var i=e.length;i>0&&e.charCodeAt(i-1)===ye;)i--;for(var n=i;n>0&&e.charCodeAt(n-1)!==ye;)n--;if(i>n&&e.charCodeAt(n)===Ht){for(var o=!1,s=n+1;s<i;s++){var c=e.charCodeAt(s);if(c!==ce&&c!==de&&c!==Ht&&c!==nr&&c!==je){o=!0;break}}for(var l=!1,u=!1,f=0,p=n,d=n-1;d>0;){for(var h=d;h>0&&e.charCodeAt(h-1)!==ye;)h--;if(e.charCodeAt(h)!==Ht)break;p=h;for(var k=!0,v=!1,y=h;y<d;y++){var b=e.charCodeAt(y);if(b===je)v=!0;else if(b!==ce&&b!==de&&b!==nr&&b!==Ht){k=!1;break}}k&&v?(l=!0,u=!0):u||f++,d=h-1}o?l||(e=e.slice(0,n).trimEnd()):e=l&&f>0?e.slice(0,n).trimEnd():e.slice(0,p).trimEnd()}for(var w=-1,E=-1,m=-1,g=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===ht){for(var A=S+1<e.length?e.charCodeAt(S+1):0,x=A>=Te&&A<=Ne||A>=lt&&A<=bt,O=A===Pt&&S+2<e.length&&(e.charCodeAt(S+2)>=Te&&e.charCodeAt(S+2)<=Ne||e.charCodeAt(S+2)>=lt&&e.charCodeAt(S+2)<=bt),C=A===ur||A===Di,_=e.length;_>S+1&&e.charCodeAt(_-1)===ye;)_--;var F=S+1>=_;if(x||O||C||F){var I=S+1;if((O||x)&&(I=S+2),x||O)for(;I<e.length;){var j=e.charCodeAt(I);if(j>=Te&&j<=Ne||j>=lt&&j<=bt||j>=ze&&j<=$e)I++;else break}for(var $=x||O?I:S+2;$<e.length&&e.charCodeAt($)!==qe;)$++;if($>=e.length)w=S,g=!0;else if((x||O)&&e.charCodeAt($-1)!==Pt){for(var Y=!1,Z=$+1;Z<e.length;Z++)if(e.charCodeAt(Z)===ht){Y=!0;break}Y||(w=S,E=I,m=$+1)}}break}if(w>=0){for(var ie=0,P=0;P<w;P++)e.charCodeAt(P)===tt&&ie++;if(ie%2===0)if(g)e=e.slice(0,w);else{var M=e.slice(w+1,E);ya(e,`</${M}`,0)===-1&&(e=e.slice(0,w)+e.slice(m))}}for(var U=e.length;U>0&&e.charCodeAt(U-1)===ye;)U--;if(U>0){for(var T=U;T>0&&e.charCodeAt(T-1)!==ye;)T--;for(var N=T,L=0;N<U&&e.charCodeAt(N)===ce&&L<3;)N++,L++;if(T>0&&N<U&&cI(e,N,U)){for(var B=T-1,V=B;V>0&&e.charCodeAt(V-1)!==ye;)V--;dr(e,V,B)||(e=e.slice(0,T).trimEnd())}}var K=e.length;if(K>0){for(var J=e.lastIndexOf(`
|
|
93
|
+
`),Q=J===-1?0:J+1,q=K,z=Q,W=0;z<q&&e.charCodeAt(z)===ce&&W<3;)z++,W++;if(z<q){var G=e.charCodeAt(z),te=!1;if(G===Ft||G===je||G===fa){var ae=z+1;if(ae>=q||e.charCodeAt(ae)===ce||e.charCodeAt(ae)===de){for(var pe=ae;pe<q&&(e.charCodeAt(pe)===ce||e.charCodeAt(pe)===de);)pe++;pe>=q&&(te=!0)}}else if(G>=ze&&G<=$e){for(var ve=z;ve<q&&e.charCodeAt(ve)>=ze&&e.charCodeAt(ve)<=$e;)ve++;if(ve<q&&(e.charCodeAt(ve)===Hr||e.charCodeAt(ve)===sn)){var Ae=ve+1;if(Ae>=q||e.charCodeAt(Ae)===ce||e.charCodeAt(Ae)===de){for(var Se=Ae;Se<q&&(e.charCodeAt(Se)===ce||e.charCodeAt(Se)===de);)Se++;Se>=q&&(te=!0)}}}te&&(e=e.slice(0,Q).trimEnd())}}}if(t.inline)return _n(e,0,e.length,t,r);let De=[],he=0,Le=e.length;if(he===0&&!r.disableFrontmatter&&e.startsWith("---")){let me=_P(e);if(me!=null&&me.hasValidYaml){if(r.preserveFrontmatter!==!1){let at=e.slice(0,me.endPos).trimEnd();De.push({type:oe.frontmatter,text:at})}he=me.endPos}}for(;he<Le;){for(var We=e.indexOf(`
|
|
94
94
|
`,he),ke=We<0?Le:We;he<Le&&dr(e,he,ke);)he=ke<Le?ke+1:ke,he<Le&&(We=e.indexOf(`
|
|
95
|
-
`,he),ke=We<0?Le:We);if(he>=Le)break;var ee=e.charCodeAt(he)===Cf;Mt(e,he,ke);let me=null;if(If=e,Nf=he,
|
|
96
|
-
`,he);he=we<0?Le:we+1}}return t.o=a,De}function
|
|
95
|
+
`,he),ke=We<0?Le:We);if(he>=Le)break;var ee=e.charCodeAt(he)===Cf;Mt(e,he,ke);let me=null;if(If=e,Nf=he,ol=ke,!ee&&nt>=4&&!t.inHTML)me=fI(e,he);else if(!ee){let at=he+Qe,Re=e.charCodeAt(at);Re===Br?me=lI(e,he,t,r):Re===qe?me=dI(e,he,t,r):Re===tt||Re===zt?me=uI(e,he):Re===je||Re===Ft||Re===_t?(me=ha(e,he),!me&&(me=ev(e,he,t,r))):Re===fa||Re>=ze&&Re<=$e?me=ev(e,he,t,r):Re===ht?me=tv(e,he,t,r):Re===Ht?me=nv(e,he,t,r):Re===Tt&&(me=hI(e,he,t))}if(!me){for(var re=!1,ne=he;ne<ke;ne++)if(e.charCodeAt(ne)===Ht){re=!0;break}re&&(me=nv(e,he,t,r))}if(me||(me=yI(e,he,t,r)),me)me.node.type!==oe.refCollection&&De.push(me.node),he=me.end;else{var we=e.indexOf(`
|
|
96
|
+
`,he);he=we<0?Le:we+1}}return t.o=a,De}function NI(e,t,r,a){var i=Cn(e,t);return i?{tagName:i.tag,tagLower:i.tag.toLowerCase(),attrs:i.b,whitespaceBeforeAttrs:i.g,isSelfClosing:i.n,hasSpaceBeforeSlash:i.r,isClosing:i.f,hasNewline:i.g.includes(`
|
|
97
97
|
`)||i.b.includes(`
|
|
98
|
-
`),endPos:i.end}:null}function Bf(e,t,r){qs=0,e=DP(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=aI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=va(e,t,r);if(a&&i){for(var s=a,o={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},c=0;c<s.length;c++){var l=s[c];t.inline=l.inline,t.inAnchor=l.inAnchor,t.inHTML=l.inHTML,t.d=l.htmlDepth,t.inList=l.inList,t.inBlockQuote=l.inBlockQuote,t.l=l.noSetext,t.o=l.depth,t.k=l.breaks;var u=_n(l.text,0,l.text.length,t,r);t.k=!1;for(var f=0;f<u.length;f++)l.dest.push(u[f])}t.inline=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var p=i,d=0;d<p.length;d++)for(var h=p[d],k=0;k<h.src.length;k++){var v=h.src[k];if(h.unwrap&&v.type===se.paragraph)for(var y=v.children,b=0;b<y.length;b++)h.dest.push(y[b]);else h.dest.push(v)}t.t=void 0,t.p=void 0,Uf(n,t,r.slugify)}return Ny(t.refs)?[{type:se.refCollection,refs:t.refs},...n]:n}var Vf;try{zi=Fn.createElement("div"),Vf=zi!=null&&typeof zi=="object"&&"$$typeof"in zi&&typeof zi.$$typeof=="symbol"?zi.$$typeof:Symbol.for("react.transitional.element")}catch{Vf=Symbol.for("react.transitional.element")}var zi;function Hf(e,t,r){return{$$typeof:Vf,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Kr(e,t){var r={key:e};if(t){var a=_y(t);for(var i in a)r[i]=a[i]}return r}var uv=typeof Fn.createContext>"u"?void 0:Fn.createContext(void 0);function fv(e,t,r,a,i,n,s,o,c){switch(e.type){case se.blockQuote:{let y={key:r.key};return e.alert&&(y.className=`markdown-alert-${n(e.alert.toLowerCase(),Ja)}`,e.children.unshift(jP(e.alert))),a("blockquote",y,t(e.children,r))}case se.breakLine:return a("br",{key:r.key});case se.breakThematic:return a("hr",{key:r.key});case se.frontmatter:return o.preserveFrontmatter?a("pre",{key:r.key},e.text):null;case se.codeBlock:{let y=e.lang?da(e.lang):"";var l=e.attrs?_y(e.attrs):{};return l.className=y?`language-${y} lang-${y}`:"",a("pre",{key:r.key},a("code",l,e.text))}case se.codeInline:return a("code",{key:r.key},e.text);case se.footnoteReference:return a("a",{key:r.key,href:i(e.target,"a","href")||void 0},a("sup",null,e.text));case se.gfmTask:return a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case se.heading:return a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case se.htmlBlock:{let y=e;if(ji(o)&&jy(y.tag)){var u=My(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...$P(u.open,y.children?t(y.children,r):null,u.close))}let b=y.j,w=b!==void 0,E=w?b:y.a?y.e||"":(y.e||"")+(y.h||"");if(E&&y.c){let m=y.tag.toLowerCase(),g=XP(m),S=y.children,A=S!=null&&S.length>0;if(g){let j=w?b:y.e||"",$=ji(o)?Ly(j):j;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Kr(r.key,e.attrs),$)}let x=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(A&&!x.test(E)&&ji(o)&&KP(E))return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(ZP(E)){let j=ji(o)?Ly(E):E;var p=Kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},c(e.tag,p)}let O=_f({slugify:o.slugify,sanitizer:i,tagfilter:!0}),C=FP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(C))return y.children&&y.children.length>0?c(e.tag,Kr(r.key,e.attrs),t(y.children,r)):c(e.tag,Kr(r.key,e.attrs));let _=Bf(C,{inline:!1,refs:s,inHTML:!1},O);Dy(_);let F=y.tag.toLowerCase(),I=w;if(I&&A)return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(I)return t(_.flatMap(Mi),r);var d=qP(_,F);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(Mi),k=d.afterClose.flatMap(Mi);return Hf(Fn.Fragment,{children:[c(e.tag,Kr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Kr(r.key,e.attrs),t(_.flatMap(Mi),r))}return js(e.tag)?c(e.tag,Kr(r.key,e.attrs)):c(e.tag,Kr(r.key,e.attrs),e.children?t(e.children,r):"")}case se.htmlSelfClosing:{let y=e;if(ji(o)&&jy(y.tag)){var v=My(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Kr(r.key,e.attrs))}case se.image:{let y=e.target===null?null:i(e.target,"img","src");return a("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:y||void 0})}case se.link:{let y={key:r.key};if(e.target!=null){let b=UP(e.target,i,"a","href");b!=null&&(y.href=b)}return e.title&&(y.title=e.title),a("a",y,t(e.children,r))}case se.table:{let y=e;return a("table",{key:r.key},a("thead",{key:"thead"},a("tr",null,y.header.map(function(b,w){return a("th",{key:w,style:y.align[w]===null?{}:{textAlign:y.align[w]}},t(b,r))}))),y.cells.length>0&&a("tbody",{key:"tbody"},y.cells.map(function(b,w){return a("tr",{key:w},b.map(function(E,m){return a("td",{key:m,style:y.align[m]===null?{}:{textAlign:y.align[m]}},t(E,r))}))})))}case se.text:return e.text;case se.textFormatted:return a(e.tag,{key:r.key},t(e.children,r));case se.orderedList:case se.unorderedList:{let y=e.type===se.orderedList?"ol":"ul";return a(y,{key:r.key,start:e.type===se.orderedList?e.start:void 0},e.items.map(function(b,w){return a("li",{key:w},t(b,r))}))}case se.paragraph:return a("p",{key:r.key},t(e.children,r));case se.ref:return null;default:return null}}var II=(e,t,r,a,i,n,s)=>{var o=l=>l.map(u=>"text"in u?u.text:""),c=(l,u={})=>{var f=Array.isArray(l)?l:[l],p=(u.renderDepth||0)+1;if(p>2500)return o(f);u.renderDepth=p;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=fv.bind(null,f[v],c,u,t,r,a,i,n,s);y=e(b,f[v],c,u)}else y=fv(f[v],c,u,t,r,a,i,n,s);var w=typeof y=="string";if(k&&typeof y=="string"){var E=h.at(-1);h[h.length-1]=(typeof E=="string"?E:"")+y}else if(y!=null)if(Array.isArray(y))for(var m=0;m<y.length;m++)h.push(y[m]);else h.push(y);k=w}return u.key=d,u.renderDepth=p-1,h};return c},NI=(e,t)=>{let r=Af(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Af(t,`${e}.component`,e):e};function DI(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||Ja,i=r.sanitizer||$n,n=r.createElement,s=Ny(r.overrides),o=w=>Wf(w,{...r,wrapper:null});function c(w){for(var E in w){var m=w[E];if(typeof m=="string"&&m.length>0&&m.charCodeAt(0)===ht&&(GP.test(m)||JP.test(m)||PI(m,0))){var g=o(m.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...m){var g=E||{},S=w;if(s){var A=Af(r.overrides,`${w}.props`,{});S=NI(w,r.overrides),g={...g,...A,className:HP(g.className,A.className)||void 0}}if(!n){var x=g.key;return x!=null&&delete g.key,m.length===1?g.children=m[0]:m.length>1&&(g.children=m),Hf(S,g,x)}return n(S,g,...m)}function u(w,E,...m){return E&&c(E),l(w,E,...m)}let f=_f(r,r.forceInline),p=e[0]&&e[0].type===se.refCollection?e[0].refs:{},d=II(r.renderRule,l,i,a,p,r,u),h=d(e,{inline:r.forceInline,refs:p}),k=BP(p);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===zn?w.identifier.slice(1):w.identifier,m=Bf(w.footnote,{inline:!0,refs:p},f);return l("div",{id:a(E,Ja),key:w.identifier},`${E}: `,d(m,{inline:!0,refs:p}))}))),r.wrapper===null)return h;let v=r.wrapper||(r.forceInline?"span":"div"),y;if(h.length>1||r.forceWrapper)y=h;else return h.length===1?h[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=y,Hf(v,b,"outer")}function Wf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let s=r.forceInline||!(r.forceBlock||xP.test(n)),o=_f(r,s),c=s?n:RP(n),l=Bf(c,{inline:s,refs:i},o);return DI(l,{...r,forceInline:s})}let i={};return a(e)}function FI(e){let t=Fn.useRef(e),r=t.current;if(r!==e){var a=!0,i=0;for(var n in e)if(i++,!Object.is(r[n],e[n])){a=!1;break}if(a){var s=0;for(var o in r)s++;a=s===i}a||(t.current=e)}return t.current}var zs=({children:e,options:t,...r})=>{if(!(typeof Fn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Wf(e??"",o)}let a=uv?Fn.useContext(uv):void 0,i=FI(r),n=Fn.useMemo(()=>({...a,...t,overrides:{...a==null?void 0:a.overrides,...t==null?void 0:t.overrides},wrapperProps:{...a==null?void 0:a.wrapperProps,...t==null?void 0:t.wrapperProps,...i}}),[a,t,i]),s=e??"";return Fn.useMemo(()=>Wf(s,n),[s,n])};const dv=Symbol("remove-this-key"),pv=Symbol("reset");function MI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function jI(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(Me.NewStringDefault)}}function mv(e){return!!(e!=null&&e[Xn])}function hv(e){return Object.keys(e).filter(t=>mv(e[t]))}function LI(e){const{fieldPathId:t,schema:r,registry:a,uiSchema:i,errorSchema:n,formData:s,onChange:o,onBlur:c,onFocus:l,disabled:u,readonly:f,required:p,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=H.useState(!1),{globalFormOptions:E,fields:m}=a,{SchemaField:g}=m,S=Ii(nn(h,E,t.path)),A=H.useCallback((_,F,I,j)=>{let $=_;_===void 0&&y&&($=""),o($,F,I,j)},[o,y]),x=H.useCallback(_=>{h!==_&&w(!0),k(h,_)},[h,k]),O=H.useCallback(_=>{const{target:{value:F}}=_;x(F)},[x]),C=H.useCallback(()=>{v(h)},[h,v]);return D.jsx(g,{name:h,required:p,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:x,onKeyRenameBlur:O,onRemoveProperty:C,onChange:A,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const RI=H.memo(LI);function qI(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:s,required:o=!1,disabled:c,readonly:l,hideError:u,onBlur:f,onFocus:p,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,m=H.useRef(a);m.current=a;const g=H.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=H.useMemo(()=>be(r,w),[r,w]),A=H.useMemo(()=>g.properties??{},[g.properties]),x=e.childFieldPathId??n,O=H.useRef({previousKey:"",currentKey:void 0}),[C,_]=H.useState(()=>hv(A)),F=H.useMemo(()=>{const V=new Set(hv(A));return Object.keys(A).filter(K=>!V.has(K))},[A]),I=S.title??g.title??k??s,j=S.description??g.description,$=Ds(h,g,o,r),Y=Pi(a);let Z=[];const ie=H.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=be(r,w);let Q=0,q=V;for(;Ke(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=H.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)vt(V,K,null);else{let J,Q,q;if(Ye(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let W=g.additionalProperties;gt in W&&(W=y.retrieveSchema({[gt]:W[gt]},a),J=W.type,Q=W.const,q=y.getDefaultFormState(W,q)),!J&&(Ve in W||Fe in W)&&(J="object")}const z=Q??q??jI(b,J);vt(V,K,z)}O.current.previousKey===K&&(O.current.currentKey=K,O.current.previousKey=ie(K,V)),_(J=>[...J,K]),d(V,x.path)},[a,d,b,y,x,ie,g]),M=H.useCallback((V,K)=>{if(V!==K){const J=m.current,Q=ie(K,J),q={...J},z={[V]:Q},W=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...W);m.current=G,V!==O.current.currentKey&&(O.current.previousKey=V),O.current.currentKey=Q,_(te=>te.map(ae=>ae===V?Q:ae)),d(G,x.path)}},[d,x,ie]),U=H.useCallback(V=>{_(K=>K.filter(J=>J!==V)),d(dv,[...x.path,V])},[d,x]),T=H.useCallback(V=>O.current.currentKey===V?O.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(F),K=C.filter(J=>Object.hasOwn(A,J)&&!V.has(J));Z=uT([...F,...K],S.order)}catch(V){return D.jsxs("div",{children:[D.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:D.jsx(zs,{options:{disableParsingRawHTML:!0},children:b(Me.InvalidObjectField,[s||"root",V.message])})}),D.jsx("pre",{children:JSON.stringify(g)})]})}const N=Ce("ObjectFieldTemplate",h,S),L=$?D.jsx(E,{...e,fieldPathId:x,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:j,properties:Z.map(V=>{var z;const K=mv((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=be(J).widget==="hidden";return{content:D.jsx(RI,{propertyName:V,required:MI(g,V),schema:oe(g,[Je,V],{}),uiSchema:J,errorSchema:oe(i,[V]),fieldPathId:x,formData:oe(a,[V]),handleKeyRename:M,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:p,registry:h,disabled:c,readonly:l,hideError:u},T(V)),name:V,readonly:l,disabled:c,required:o,hidden:Q}}),readonly:l,disabled:c,required:o,fieldPathId:n,uiSchema:r,errorSchema:i,schema:g,formData:a,registry:h,optionalDataControl:L,className:$?"rjsf-optional-object-field":void 0};return D.jsx(N,{...B,onAddProperty:P})}function zI(e){const{schema:t,uiSchema:r={},formData:a,disabled:i=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:c,registry:l}=e,{globalUiOptions:u={},schemaUtils:f,translateString:p}=l,d=be(r,u),h=Ce("OptionalDataControlsTemplate",l,d),k=Pi(a);let v,y,b,w;if(i||n)v=uf(c,"Msg"),y=k?void 0:p(Me.OptionalObjectEmptyMsg);else{const E=k?Me.OptionalObjectRemove:Me.OptionalObjectAdd;y=p(E),k?(v=uf(c,"Remove"),w=()=>s(void 0,c.path,o)):(v=uf(c,"Add"),b=()=>{let m=f.getDefaultFormState(t,a,"excludeObjectChildren");m===void 0&&(m=zr(t)==="array"?[]:{}),s(m,c.path,o)})}return y&&D.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const $I={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function UI(e,t,r){const{field:a}=t,{fields:i,schemaUtils:n}=r;if(typeof a=="function")return a;if(typeof a=="string"&&a in i)return i[a];const s=zr(e),o=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=$I[o];return c&&c in i&&(l=c),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&l!=="ObjectField"?()=>null:l in i?i[l]:i.FallbackField}function BI(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i,errorSchema:n,name:s,onChange:o,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f=!1,registry:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,m=r[dt],g=H.useCallback((Se,De,he,Le)=>o(Se,De,he,Le||m),[m,o]);if(t[iu])return D.jsx(E,{...e});const S=fT(t,a,p),A=be(S,v),x=Ce("FieldTemplate",p,A),O=Ce("DescriptionFieldTemplate",p,A),C=Ce("FieldHelpTemplate",p,A),_=Ce("FieldErrorTemplate",p,A),F=h.retrieveSchema(t,i),I=UI(F,A,p),$=!!F.deprecated?A.deprecatedHandling??"label":void 0,Y=!!(A.disabled??e.disabled)||$==="disable",Z=!!(A.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),ie=A.hideError,P=ie===void 0?e.hideError:!!ie,M=!!(A.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let U=h.getDisplayLabel(F,S,v);const T=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,L,B={fieldPathId:r};if((Ve in F||Fe in F)&&!T&&!h.isSelect(F)){F[Ve]?(N=b,L=F[Ve].map(he=>h.retrieveSchema(Ye(he)?he:{},i))):F[Fe]&&(N=w,L=F[Fe].map(he=>h.retrieveSchema(Ye(he)?he:{},i)));const Se=Ds(p,F,f,S),De=Pi(i);U=U&&(!Se||De),B={childFieldPathId:r,fieldPathId:nn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=Ss(S,["ui:classNames","classNames","ui:style"]);Zn in J&&(J[Zn]=Ss(J[Zn],["classNames","style"]));const Q=D.jsx(I,{...e,onChange:g,...B,schema:F,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:M,errorSchema:K,rawErrors:V}),q=r[dt];let z;d?z=s:z=Xn in F?s:A.title||e.schema.title||F.title||e.title||s,$==="label"&&(z=p.translateString(Me.DeprecatedLabel,[z]));const W=A.description||e.schema.description||F.description||"",{help:G}=A,te=A.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${zr(F)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),A.classNames&&ae.push(A.classNames);const pe=D.jsx(C,{help:G,fieldPathId:r,schema:F,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:p}),ve=P||N&&!h.isSelect(F)?void 0:D.jsx(_,{errors:V,errorSchema:n,fieldPathId:r,schema:F,uiSchema:S,registry:p}),Ae={description:D.jsx(O,{id:la(q),description:W,schema:F,uiSchema:S,registry:p}),rawDescription:W,help:pe,rawHelp:typeof G=="string"?G:void 0,errors:ve,rawErrors:P?void 0:V,fieldPathId:r,id:q,label:z,hidden:te,onChange:o,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f,disabled:Y,readonly:Z,hideError:P,displayLabel:U,classNames:ae.join(" ").trim(),style:A.style,formData:i,schema:F,uiSchema:S,registry:p};return D.jsx(x,{...Ae,children:D.jsxs(D.Fragment,{children:[Q,N&&D.jsx(N,{name:s,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:S})]})})}const VI=H.memo(BI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?pf(e,t):Xe(e,t)});function HI(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,required:s,disabled:o=!1,readonly:c=!1,autofocus:l=!1,onChange:u,onBlur:f,onFocus:p,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:m}=d,g=E.isSelect(t)?Ua(t,a):void 0;let S=g?"select":"text";b&&iT(t,b,w)&&(S=b);const{widget:A=S,placeholder:x="",title:O,...C}=be(a),_=E.getDisplayLabel(t,a,m),F=O??v??y??r,I=Sn(t,A,w),j=H.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return D.jsx(I,{options:{...C,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:F,hideLabel:!_,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:s,disabled:o,readonly:c,autofocus:l,registry:d,placeholder:x,rawErrors:h,htmlName:i.name})}function WI(){return{AnyOfField:wy,ArrayField:jT,BooleanField:LT,CyclicSchemaField:RT,FallbackField:UT,LayoutGridField:vf,LayoutHeaderField:cP,LayoutMultiSchemaField:uP,NumberField:mP,ObjectField:qI,OneOfField:wy,OptionalDataControlsField:zI,SchemaField:VI,StringField:HI,NullField:fP}}function KI(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,s=be(n,a.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const c=Ce("DescriptionFieldTemplate",a,s);return D.jsx(c,{id:la(t),description:r,schema:i,uiSchema:n,registry:a})}function GI(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs(D.Fragment,{children:[(i||a)&&D.jsx(v,{id:xr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),(i||a)&&D.jsx(k,{id:xr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:p}),r&&D.jsx(h,{id:xr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:p}),n&&D.jsx(y,{id:xr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:p})]})}function JI(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:s,registry:o,uiSchema:c}=e,l=be(c),u=Ce("ArrayFieldItemButtonsTemplate",o,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${p}px`:0};return D.jsxs("div",{className:r,style:d,children:[D.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&D.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:D.jsx("div",{className:"btn-group",style:h,children:D.jsx(u,{...a,style:f})})})]})}function YI(e){const{canAdd:t,className:r,disabled:a,fieldPathId:i,uiSchema:n,items:s,optionalDataControl:o,onAddClick:c,readonly:l,registry:u,required:f,schema:p,title:d}=e,h=be(n),k=Ce("ArrayFieldDescriptionTemplate",u,h),v=Ce("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return D.jsxs("fieldset",{className:r,id:i.$id,children:[D.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:p,uiSchema:n,registry:u,optionalDataControl:y?o:void 0}),D.jsx(k,{fieldPathId:i,description:h.description||p.description,schema:p,uiSchema:n,registry:u}),y?void 0:o,D.jsx("div",{className:"row array-item-list",children:s}),t&&D.jsx(b,{id:xr(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function XI(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,optionalDataControl:o}=e,c=be(i,s.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=Ce("TitleFieldTemplate",s,c);return D.jsx(u,{id:Go(t),title:r,required:n,schema:a,uiSchema:i,registry:s,optionalDataControl:o})}function ZI(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?D.jsx("datalist",{id:lf(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>D.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function QI(e){const{id:t,name:r,htmlName:a,value:i,readonly:n,disabled:s,autofocus:o,onBlur:c,onFocus:l,onChange:u,onChangeOverride:f,options:p,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:m}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...Xx(d,y,p)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const A=H.useCallback(({target:{value:_}})=>u(_===""?p.emptyValue:_),[u,p]),x=H.useCallback(({target:_})=>c(t,_==null?void 0:_.value),[c,t]),O=H.useCallback(({target:_})=>l(t,_==null?void 0:_.value),[l,t]),C=H.useCallback(_=>{_.preventDefault(),_.stopPropagation(),u(p.emptyValue??"")},[u,p.emptyValue]);return D.jsxs(D.Fragment,{children:[D.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...g,list:d.examples?lf(t):void 0,onChange:f||A,onBlur:x,onFocus:O,"aria-describedby":rn(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!s&&S&&D.jsx(m,{registry:k,onClick:C}),D.jsx(ZI,{id:t,schema:d})]})}function eN(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...s}=e;return D.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...s,children:D.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const ba=H.memo(eN);function tN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.CopyButton),...e,icon:"copy"})}const rN=H.memo(tN);function nN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveDownButton),...e,icon:"arrow-down"})}const aN=H.memo(nN);function iN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveUpButton),...e,icon:"arrow-up"})}const sN=H.memo(iN);function oN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.RemoveButton),...e,iconType:"danger",icon:"remove"})}const lN=H.memo(oN);function cN({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:s}=i;return D.jsx(ba,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Me.ClearButton),onClick:r,disabled:a,registry:i,...n})}const uN=H.memo(cN);function fN({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return D.jsx("div",{className:"row",children:D.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:D.jsx(ba,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Me.AddButton),onClick:r,disabled:a,registry:i})})})}function dN({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Zg(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function pN(){return{SubmitButton:dN,AddButton:fN,CopyButton:rN,MoveDownButton:aN,MoveUpButton:sN,RemoveButton:lN,ClearButton:uN}}function mN(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,s=`${r[dt]}-button`;return D.jsxs("div",{style:{marginTop:"1rem"},children:[D.jsx("div",{className:"text-danger",children:n(Me.CycleDetected,[t])}),D.jsxs("div",{children:[D.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[dt]),children:n(Me.ExpandButton)})," "]})]})}const gv=af();function yv({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInDescription&&typeof e=="string"?D.jsx(zs,{options:{disableParsingRawHTML:!0},"data-testid":gv.markdown,children:e}):e}yv.TEST_IDS=gv;function hN(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?D.jsx("div",{id:t,className:"field-description",children:D.jsx(yv,{description:r,registry:a,uiSchema:i})}):null}function gN({errors:e,registry:t}){const{translateString:r}=t;return D.jsxs("div",{className:"panel panel-danger errors",children:[D.jsx("div",{className:"panel-heading",children:D.jsx("h3",{className:"panel-title",children:r(Me.ErrorsLabel)})}),D.jsx("ul",{className:"list-group",children:e.map((a,i)=>D.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function yN(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=Ce("MultiSchemaFieldTemplate",r);return D.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function vN(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=of(r);return D.jsx("div",{children:D.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>D.jsx("li",{className:"text-danger",children:i},n))})})}const vv=af();function bv({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInHelp&&typeof e=="string"?D.jsx(zs,{options:{disableParsingRawHTML:!0},"data-testid":vv.markdown,children:e}):e}bv.TEST_IDS=vv;function bN(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?D.jsx("div",{id:cf(t),className:"help-block",children:D.jsx(bv,{help:r,registry:i,uiSchema:a})}):null}const kN="*";function kv(e){const{label:t,required:r,id:a}=e;return t?D.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&D.jsx("span",{className:"required",children:kN})]}):null}function wN(e){const{id:t,label:r,children:a,errors:i,help:n,description:s,hidden:o,required:c,displayLabel:l,registry:u,uiSchema:f}=e,p=be(f),d=Ce("WrapIfAdditionalTemplate",u,p);if(o)return D.jsx("div",{className:"hidden",children:a});const h=p.widget==="checkbox";return D.jsxs(d,{...e,children:[l&&!h&&D.jsx(kv,{label:r,required:c,id:t}),l&&s?s:null,a,i,n]})}function SN(e){const{children:t,column:r,className:a,...i}=e;return D.jsx("div",{className:a,...i,children:t})}function EN(e){const{selector:t,optionSchemaField:r}=e;return D.jsxs("div",{className:"panel panel-default panel-body",children:[D.jsx("div",{className:"form-group",children:t}),r]})}function CN(e){const{className:t,description:r,disabled:a,formData:i,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:c,readonly:l,registry:u,required:f,schema:p,title:d,uiSchema:h}=e,k=be(h),v=Ce("TitleFieldTemplate",u,k),y=Ce("DescriptionFieldTemplate",u,k);if((p.oneOf||p.anyOf)&&!p.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return D.jsxs("fieldset",{className:t,id:n.$id,children:[d&&D.jsx(v,{id:Go(n),title:d,required:f,schema:p,uiSchema:h,registry:u,optionalDataControl:w?o:void 0}),r&&D.jsx(y,{id:la(n),description:r,schema:p,uiSchema:h,registry:u}),w?void 0:o,c.map(m=>m.content),Tm(p,h,i)&&D.jsx(E,{id:xr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:a||l,uiSchema:h,registry:u})]})}function AN(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?D.jsx(ba,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?D.jsx(ba,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):D.jsx("em",{id:t,children:a})}const _N="*";function ON(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return D.jsxs("legend",{id:t,children:[r,a&&D.jsx("span",{className:"required",children:_N}),i&&D.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function xN(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let s=Me.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Me.UnsupportedFieldWithId,o.push(r.$id)),a&&(s=s===Me.UnsupportedField?Me.UnsupportedFieldWithReason:Me.UnsupportedFieldWithIdAndReason,o.push(a)),D.jsxs("div",{className:"unsupported-field",children:[D.jsx("p",{children:D.jsx(zs,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&D.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function TN(e){const{id:t,classNames:r,style:a,disabled:i,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:c,rawDescription:l,readonly:u,required:f,schema:p,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,m=w(Me.KeyLabel,[s]),g=Xn in p,S=!!l,A=["form-group",r];!d&&h&&h.length>0&&A.push("has-error has-danger");const x=A.join(" ").trim();if(!g)return D.jsx("div",{className:x,style:a,children:k});const O=S?46:26;return D.jsx("div",{className:x,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col-xs-5 form-additional",children:D.jsxs("div",{className:"form-group",children:[n&&D.jsx(kv,{label:m,required:f,id:`${t}-key`}),n&&l&&D.jsx("div",{children:" "}),D.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),D.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),D.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${O}px`:void 0},children:D.jsx(E,{id:xr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function PN(){return{ArrayFieldDescriptionTemplate:KI,ArrayFieldItemTemplate:JI,ArrayFieldItemButtonsTemplate:GI,ArrayFieldTemplate:YI,ArrayFieldTitleTemplate:XI,ButtonTemplates:pN(),BaseInputTemplate:QI,CyclicSchemaExpandTemplate:mN,DescriptionFieldTemplate:hN,ErrorListTemplate:gN,FallbackFieldTemplate:yN,FieldTemplate:wN,FieldErrorTemplate:vN,FieldHelpTemplate:bN,GridTemplate:SN,MultiSchemaFieldTemplate:EN,ObjectFieldTemplate:CN,OptionalDataControlsTemplate:AN,TitleFieldTemplate:ON,UnsupportedFieldTemplate:xN,WrapIfAdditionalTemplate:TN}}function IN({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return D.jsx(r,{time:e,...t})}function NN(e){const{disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:i,id:n,name:s,registry:o,onBlur:c,onFocus:l}=e,{translateString:u}=o,{elements:f,handleChange:p,handleClear:d,handleSetNow:h}=yT(e);return D.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>D.jsx("li",{className:"list-inline-item",children:D.jsx(gT,{rootId:n,name:s,select:p,...k,disabled:t,readonly:r,registry:o,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Me.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Me.ClearLabel)})})]})}function DN({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,onChange:s,onBlur:o,onFocus:c,htmlName:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=Is(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>o(e,tn(b==null?void 0:b.value,f,h,d)),[o,e,f,d,h]),y=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return D.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=t||m||n?"disabled":"",S=x=>{x.target.checked?s(Kg(w,k,f)):s(Hg(w,k,f))},A=D.jsxs("span",{children:[D.jsx("input",{type:"checkbox",id:Jo(e,w),name:l||e,checked:E,value:Ps(b.value,w,h),disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("span",{children:b.label})]});return u?D.jsx("label",{className:`checkbox-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`checkbox ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function FN({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:s,label:o,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d,htmlName:h}){const k=Ce("DescriptionFieldTemplate",d,r),v=Ns(e),y=H.useCallback(S=>p(S.target.checked),[p]),b=H.useCallback(S=>u(a,S.target.checked),[u,a]),w=H.useCallback(S=>f(a,S.target.checked),[f,a]),g=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!c&&g&&D.jsx(k,{id:la(a),description:g,schema:e,uiSchema:t,registry:d}),D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",id:a,name:h||a,checked:typeof i>"u"?!1:i,required:v,disabled:n||s,autoFocus:l,onChange:y,onBlur:b,onFocus:w,"aria-describedby":rn(a)}),oT(D.jsx("span",{children:o}),c)]})]})}function MN(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"color",...e,disabled:t||r})}function jN(e){const{onChange:t,value:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"datetime-local",...e,value:ST(r),onChange:s=>t(lT(s))})}function LN(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(s=>t(s||void 0),[t]);return D.jsx(i,{type:"date",...e,onChange:n})}function RN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"email",...e})}function qN({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const s=r(Me.PreviewLabel);return["image/jpeg","image/png"].includes(i)?D.jsx("img",{src:a,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):D.jsxs(D.Fragment,{children:[" ",D.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:s})]})}function zN({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=Ce("ButtonTemplates",t,i);return D.jsx("ul",{className:"file-info",children:e.map((o,c)=>{const{name:l,size:u,type:f}=o,p=()=>a(c);return D.jsxs("li",{children:[D.jsx(zs,{children:n(Me.FilesInfo,[l,f,String(u)])}),r&&D.jsx(qN,{fileInfo:o,registry:t}),D.jsx(s,{onClick:p,registry:t})]},c)})})}function $N(e){const{disabled:t,readonly:r,required:a,multiple:i,onChange:n,value:s,options:o,registry:c}=e,{filesInfo:l,handleChange:u,handleRemove:f}=wT(s,n,i),p=Ce("BaseInputTemplate",c,o),d=h=>{h.target.files&&u(h.target.files)};return D.jsxs("div",{children:[D.jsx(p,{...e,disabled:t||r,type:"file",required:s?!1:a,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),D.jsx(zN,{filesInfo:l,onRemove:f,registry:c,preview:o.filePreview,options:o})]})}function UN({id:e,value:t,htmlName:r}){return D.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function BN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"password",...e})}function VN({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:s,onFocus:o,onChange:c,id:l,htmlName:u}){const{enumOptions:f,enumDisabled:p,inline:d,emptyValue:h}=e,k=Is(e),v=H.useCallback(({target:b})=>s(l,tn(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]),y=H.useCallback(({target:b})=>o(l,tn(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]);return D.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,t),m=Array.isArray(p)&&p.includes(b.value),g=a||m||i?"disabled":"",S=()=>c(b.value),A=D.jsxs("span",{children:[D.jsx("input",{type:"radio",id:Jo(l,w),checked:E,name:u||l,required:r,value:Ps(b.value,w,k),disabled:a||m||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(l)}),D.jsx("span",{children:b.label})]});return d?D.jsx("label",{className:`radio-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`radio ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function HN(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return D.jsxs("div",{className:"field-range-wrapper",children:[D.jsx(r,{type:"range",...e}),D.jsx("span",{className:"range-view",children:t})]})}function WN({id:e,value:t,required:r,disabled:a,readonly:i,autofocus:n,onChange:s,onFocus:o,onBlur:c,schema:l,options:u,htmlName:f}){const{stars:p=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(p,1),5),k=l.minimum||0,v=H.useCallback(E=>{!a&&!i&&s(E)},[s,a,i]),y=H.useCallback(E=>{if(o){const m=Number(E.target.dataset.value);o(e,m)}},[o,e]),b=H.useCallback(E=>{if(c){const m=Number(E.target.dataset.value);c(e,m)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return D.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,m)=>{const g=k+m,S=g<=t;return D.jsx("span",{onClick:()=>v(g),onKeyDown:A=>(A.key==="Enter"||A.key===" ")&&v(g),onFocus:y,onBlur:b,"data-value":g,tabIndex:a||i?-1:0,role:"radio","aria-checked":g===t,"aria-label":`${g} ${d==="heart"?"heart":"star"}${g===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},m)}),D.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function Kf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function KN({schema:e,id:t,options:r,value:a,required:i,disabled:n,readonly:s,multiple:o=!1,autofocus:c=!1,onChange:l,onBlur:u,onFocus:f,placeholder:p,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=o?[]:"",E=Is(r),m=H.useCallback(O=>{const C=Kf(O,o);return f(t,tn(C,v,E,b))},[f,t,o,v,b,E]),g=H.useCallback(O=>{const C=Kf(O,o);return u(t,tn(C,v,E,b))},[u,t,o,v,b,E]),S=H.useCallback(O=>{const C=Kf(O,o);return l(tn(C,v,E,b))},[l,o,v,b,E]),A=$x(a,v,o,E,w),x=!o&&e.default===void 0;return cT(t,e,v,o),D.jsxs(D.Fragment,{children:[D.jsx(dT,{id:t,multiple:o,options:r,registry:h,uiSchema:k,value:a}),D.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:i,disabled:n||s,autoFocus:c,onBlur:g,onFocus:m,onChange:S,"aria-describedby":rn(t),children:[x&&D.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:O,label:C},_)=>{const F=y&&y.includes(O);return D.jsx("option",{value:Ps(O,_,E),disabled:F,children:C},String(O))})]})]})}function GN({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:s,autofocus:o=!1,onChange:c,onBlur:l,onFocus:u,htmlName:f}){const p=H.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=H.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=H.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return D.jsx("textarea",{id:e,name:f||e,className:"form-control",value:a||"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:h,onChange:p,"aria-describedby":rn(e)})}function JN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{...e})}function YN(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return D.jsx(i,{type:"time",...e,onChange:n})}function XN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"number",...e})}function ZN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"url",...e})}function QN(){return{AltDateWidget:NN,AltDateTimeWidget:IN,CheckboxWidget:FN,CheckboxesWidget:DN,ColorWidget:MN,DateWidget:LN,DateTimeWidget:jN,EmailWidget:RN,FileWidget:$N,HiddenWidget:UN,PasswordWidget:BN,RadioWidget:VN,RangeWidget:HN,RatingWidget:WN,SelectWidget:KN,TextWidget:JN,TextareaWidget:GN,TimeWidget:YN,UpDownWidget:XN,URLWidget:ZN}}function eD(){return{fields:WI(),templates:PN(),widgets:QN(),rootSchema:{},formContext:{},translateString:zx,globalFormOptions:{idPrefix:Cm,idSeparator:Am,useFallbackUiForUnsupportedType:!1}}}function $i(e,t){return{...$g(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let tD=class oi extends H.Component{constructor(r){super(r);gr(this,"formElement");gr(this,"pendingChanges",[]);gr(this,"isProcessingUserChange",!1);gr(this,"getUsedFormData",(r,a)=>Px(r,a));gr(this,"getFieldNames",(r,a)=>Ix(r,a));gr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});gr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),s=nn("",i.globalFormOptions,n);this.onChange(a,n,void 0,s[dt])});gr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});gr(this,"reset",()=>{const{formData:r,initialFormData:a=pv,onChange:i}=this.props,o={formData:this.getStateFromProps(this.props,r??a,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>i==null?void 0:i($i({...this.state,...o})))});gr(this,"onBlur",(r,a)=>{const{onBlur:i,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(i&&i(r,a),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:c,extraErrors:l}=this.props,{formData:u}=this.state;let f=u,p={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(u),p={formData:f}),o==="onBlur"){const{schema:h,schemaUtils:k,errorSchema:v,customErrors:y,retrievedSchema:b}=this.state,w=this.liveValidate(h,k,v,f,l,y,b);p={formData:f,...w,customErrors:y}}const d=Object.keys(p).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=oe(this.state,h),v=oe(p,h);return!Xe(k,v)});this.setState(p,()=>{c&&d&&c($i({...this.state,...p}),r)})}});gr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});gr(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:i,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(a===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const c=i||{},l=i?mf(i):[];this.setState({formData:o,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s($i({...this.state,formData:o},"submitted"),r)})}});gr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});gr(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:i,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,c=this.validate(r),{errors:l,errorSchema:u}=a?oi.mergeErrors(c,a):c,f=c.errors.length>0||a&&i;return f?(n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:u,schemaValidationErrors:c.errors,schemaValidationErrorSchema:c.errorSchema},()=>{s?s(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:a,initialFormData:i,onChange:n}=r,s=a??i;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Xe(this.state.formData,s)&&n($i(this.state)),this.formElement=H.createRef()}static getDerivedStateFromProps(r,a){if(r.extraErrors!==a.prevExtraErrors){const i={errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=i;return r.extraErrors&&({errors:n,errorSchema:s}=Fs(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:s}=Fs({errors:n,errorSchema:s},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,a){if(!Xe(this.props,r)){const i=Yg(this.props.formData,r.formData),n=Yg(this.props.formData,this.state.formData),s=!Xe(r.schema,this.props.schema),o=i.length>0||!Xe(r.formData,this.props.formData),c=n.length>0||!Xe(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,i,!c),u=!Xe(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,s=!Xe(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Xe(n.formData,a.formData)&&this.props.onChange&&this.props.onChange($i(n)),this.setState(n)}}getStateFromProps(r,a,i,n=!1,s=[],o=!1,c=!1){var ie;const l=this.state||{},u="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,h=typeof a<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=h&&!r.noValidate&&k,y="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=l;(!w||w.doesSchemaUtilsDiffer(f,u,y,b))&&(w=Lx(f,u,y,b));const E=w.getRootSchema();let m=a;a===pv?m=void 0:a===void 0&&d&&(m=l.formData);let g,S,A=!1;const x=[];do{g=w.getDefaultFormState(E,m,!1,l.initialDefaultsGenerated);const P=c?Ur({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!x.includes(P)&&!Xe(S,l.retrievedSchema)){const M=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(A=!Xe(M,g),A){g=M,m=M;const U=Ur({formData:M});A=!x.includes(U),x.push(U)}x.push(P)}else A=!1}while(A);const O=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let C,_,{schemaValidationErrors:F,schemaValidationErrorSchema:I}=l;if(v&&!o){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);C=P.errors,_=P.errorSchema,F=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=O();if(C=P.errors,_=P.errorSchema,s.length>0&&!v){const U=s.reduce((T,N)=>(T[N]=void 0,T),{});I=aa(P.errorSchema,U,"preventDuplicates"),_=I}const M=oi.mergeErrors({errorSchema:_,errors:C},r.extraErrors,l.customErrors);C=M.errors,_=M.errorSchema}const j=oi.getRegistry(r,E,w),$=Xe(l.registry,j)?l.registry:j,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[dt])===$.globalFormOptions.idPrefix?l.fieldPathId:nn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:Y,formData:g,edit:h,errors:C,errorSchema:_,schemaValidationErrors:F,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return pT(this,r,a,i)}validate(r,a=this.state.schema,i,n){const s=i||this.state.schemaUtils,{customValidate:o,transformErrors:c,uiSchema:l}=this.props,u=n??a,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,u,o,c,l)}renderErrors(r){const{errors:a,errorSchema:i,schema:n,uiSchema:s}=this.state,o=be(s),c=Ce("ErrorListTemplate",r,o);return a!=null&&a.length?D.jsx(c,{errors:a,errorSchema:i||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,a,i){let{errorSchema:n,errors:s}=r;if(a){const o=Fs(r,a);n=o.errorSchema,s=o.errors}if(i){const o=Fs({errors:s,errorSchema:n},i.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,a,i,n,s,o,c,l=!1){const u=this.validate(n,r,a,c),{errors:f}=u;let{errorSchema:p}=u;l&&(p=aa(i,u.errorSchema,"preventDuplicates"));const d=f,h=p;return{...oi.mergeErrors({errorSchema:p,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:h}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:a,id:i}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:c,noValidate:l,liveValidate:u,onChange:f,disabled:p,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:m}=this.state,g=b;const S=y.path[0]||"",A=!a||a.length===0||a.length===1&&a[0]===S;let x=A?r:Wo(h);const O=_e(x)&&Object.keys(x).length>0&&Object.values(x).every($=>$===void 0),C=h==null,_=O&&C?void 0:x;if(_e(x)||Array.isArray(x)){let $=!1;if(r===dv)_T(x,a);else if(!A){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:M}=k.findFieldInSchema(v,a,h),U=M;!(U&&(Fe in U||Ve in U))&&U!==void 0&&($=!0)}$?vt(x,a,void 0):vt(x,a,ie)}const Y=m&&!A&&!_e(r)&&!Array.isArray(r)&&!p&&!d,Z=this.getStateFromProps(this.props,_,void 0,void 0,void 0,!0,Y);x=Z.formData,m=Z.retrievedSchema,$&&x&&vt(x,a,void 0)}const F=!l&&(u===!0||u==="onChange");let I={formData:x,retrievedSchema:m},j=x;if(o===!0&&(c===!0||c==="onChange")&&(j=this.omitExtraData(x),I={...I,formData:j}),n){const $=A?b:oe(b,a);if(!Dt($))A?g=n:(g=Wo(b),vt(g,a,n));else if(E||(E=new Jg),A){const Y=oe(n,er);Y&&E.setErrors(Y)}else vt(E.ErrorSchema,a,n)}else E&&oe(E.ErrorSchema,[...a,er])&&E.clearErrors(a);if(F&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,j,s,E,m);I={...I,formData:j,...$,customErrors:E}}else if(!l&&n){const $=oi.mergeErrors({errorSchema:g,errors:w},s,E);I={...I,formData:j,...$,customErrors:E}}this.setState(I,()=>{f&&f($i({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Xe(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=Am,idPrefix:s=Cm,nameGenerator:o,useFallbackUiForUnsupportedType:c=!1}=r;return{idPrefix:a["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:c,...i!==void 0&&{experimental_componentUpdateStrategy:i},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,a,i){var p;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:c,widgets:l,formContext:u,translateString:f}=eD();return{fields:{...o,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:s[lu],globalFormOptions:oi.getGlobalFormOptions(r),uiSchemaDefinitions:s[Gw]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,s=ly(n);s[0]===""?s[0]=a:s.unshift(a);const o=s.join(i);let c=this.formElement.current.elements[o];c||(c=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),c!=null&&c.length&&(c=c[0]),c&&c.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,className:i="",tagName:n,name:s,method:o,target:c,action:l,autoComplete:u,enctype:f,acceptCharset:p,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:m,fieldPathId:g,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:x}=S.templates.ButtonTemplates,O=y?n:void 0,C=y||n||"form";let{[wo]:_={}}=be(w);h&&(_={..._,props:{..._.props,disabled:!0}});const F={[Zn]:{[wo]:_}};return D.jsxs(C,{className:i||"rjsf",id:a,name:s,method:o,target:c,action:l,autoComplete:u,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:O,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),D.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:m,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||D.jsx(x,{uiSchema:F,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function rD(e,t="none"){return t==="all"?e:e.reduce((r,a)=>{const{message:i,schemaPath:n}=a,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Ve}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Fe}/`):void 0;let c;return s&&s>=0?c=n==null?void 0:n.substring(0,s):o&&o>=0&&(c=n==null?void 0:n.substring(0,o)),(c?r.find(u=>{var f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(c))}):void 0)||r.push(a),r},[])}function nD(e=[],t,r,a){const i=e.map(n=>{var s;const{instancePath:o,keyword:c,params:l,schemaPath:u,parentSchema:f,...p}=n;let{message:d=""}=p,h=o.replace(/\//g,"."),k=`${h} ${d}`.trim(),v="";const y=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(b=>b);if(y.length>0)y.forEach(b=>{const w=h?`${h}.${b}`:b;let E=be(oe(t,w.replace(/^\./,""))).title;if(E===void 0){const m=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=be(oe(t,m)).title}if(E===void 0){const m=h.replace(/^\./,"").split(".").filter(Boolean);E=oe(t,[...m,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const m=oe(f,[Je,b,"title"]);if(m)d=d.replace(`'${b}'`,`'${m}'`),v=m;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const x of g)S.push(Je,x);S.push(Je,b,"title");const A=oe(a,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),k=d;else{const b=be(oe(t,h.replace(/^\./,""))).title;if(b)k=`'${b}' ${d}`.trim(),v=b;else{const w=f==null?void 0:f.title;w&&(k=`'${w}' ${d}`.trim(),v=w)}}return"missingProperty"in l&&(h=h?`${h}.${l.missingProperty}`:l.missingProperty),{name:c,property:h,message:d,params:l,stack:k,schemaPath:u,title:v}});return rD(i,r)}function aD(e,t,r,a,i,n,s,o){const{validationError:c}=t;let l=nD(t.errors,s,o,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,s));let u=mT(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=Lg(e,a,r,a,!0),p=i(f,cu(f),s,u),d=cy(p);return Fs({errors:l,errorSchema:u},d)}var pl={exports:{}},Gf={},Un={},Qa={},Jf={},Yf={},Xf={},wv;function ml(){return wv||(wv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(b){if(super(),!e.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((w,E)=>`${w}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,E)=>(E instanceof r&&(w[E.str]=(w[E.str]||0)+1),w),{})}}e._Code=a,e.nil=new a("");function i(y,...b){const w=[y[0]];let E=0;for(;E<b.length;)o(w,b[E]),w.push(y[++E]);return new a(w)}e._=i;const n=new a("+");function s(y,...b){const w=[d(y[0])];let E=0;for(;E<b.length;)w.push(n),o(w,b[E]),w.push(n,d(y[++E]));return c(w),new a(w)}e.str=s;function o(y,b){b instanceof a?y.push(...b._items):b instanceof r?y.push(b):y.push(f(b))}e.addCodeArg=o;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===n){const w=l(y[b-1],y[b+1]);if(w!==void 0){y.splice(b-1,3,w);continue}y[b++]="+"}b++}}function l(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof r||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof r))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:s`${y}${b}`}e.strConcat=u;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:d(Array.isArray(y)?y.join(","):y)}function p(y){return new a(d(y))}e.stringify=p;function d(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(y){return typeof y=="string"&&e.IDENTIFIER.test(y)?new a(`.${y}`):i`[${y}]`}e.getProperty=h;function k(y){if(typeof y=="string"&&e.IDENTIFIER.test(y))return new a(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(y){return new a(y.toString())}e.regexpCode=v})(Xf)),Xf}var Zf={},Sv;function Ev(){return Sv||(Sv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ml();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var a;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class n extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=n;const s=(0,t._)`\n`;class o extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new n(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(l),{prefix:d}=p,h=(f=u.key)!==null&&f!==void 0?f:u.ref;let k=this._values[d];if(k){const b=k.get(h);if(b)return b}else k=this._values[d]=new Map;k.set(h,p);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,p.setValue(u,{property:d,itemIndex:y}),p}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(l,u,f={},p){let d=t.nil;for(const h in l){const k=l[h];if(!k)continue;const v=f[h]=f[h]||new Map;k.forEach(y=>{if(v.has(y))return;v.set(y,a.Started);let b=u(y);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${y} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=o})(Zf)),Zf}var Cv;function Ue(){return Cv||(Cv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ml(),r=Ev();var a=ml();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var i=Ev();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class n{optimizeNodes(){return this}optimizeNames(N,L){return this}}class s extends n{constructor(N,L,B){super(),this.varKind=N,this.name=L,this.rhs=B}render({es5:N,_n:L}){const B=N?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+L}optimizeNames(N,L){if(N[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,N,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(N,L,B){super(),this.lhs=N,this.rhs=L,this.sideEffects=B}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,L){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,N,L),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(N,this.rhs)}}class c extends o{constructor(N,L,B,V){super(N,B,V),this.op=L}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class l extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`break${this.label?` ${this.label}`:""};`+N}}class f extends n{constructor(N){super(),this.error=N}render({_n:N}){return`throw ${this.error};`+N}get names(){return this.error.names}}class p extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,L){return this.code=I(this.code,N,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(N=[]){super(),this.nodes=N}render(N){return this.nodes.reduce((L,B)=>L+B.render(N),"")}optimizeNodes(){const{nodes:N}=this;let L=N.length;for(;L--;){const B=N[L].optimizeNodes();Array.isArray(B)?N.splice(L,1,...B):B?N[L]=B:N.splice(L,1)}return N.length>0?this:void 0}optimizeNames(N,L){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(N,L)||(j(N,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((N,L)=>_(N,L.names),{})}}class h extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(N,L){super(L),this.condition=N}render(N){let L=`if(${this.condition})`+super.render(N);return this.else&&(L+="else "+this.else.render(N)),L}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new v(B):B}if(L)return N===!1?L instanceof y?L:L.nodes:this.nodes.length?this:new y($(N),L instanceof y?[L]:L.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(N,L),!!(super.optimizeNames(N,L)||this.else))return this.condition=I(this.condition,N,L),this}get names(){const N=super.names;return F(N,this.condition),this.else&&_(N,this.else.names),N}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iteration=I(this.iteration,N,L),this}get names(){return _(super.names,this.iteration.names)}}class E extends b{constructor(N,L,B,V){super(),this.varKind=N,this.name=L,this.from=B,this.to=V}render(N){const L=N.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${L} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(N)}get names(){const N=F(super.names,this.from);return F(N,this.to)}}class m extends b{constructor(N,L,B,V){super(),this.loop=N,this.varKind=L,this.name=B,this.iterable=V}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iterable=I(this.iterable,N,L),this}get names(){return _(super.names,this.iterable.names)}}class g extends h{constructor(N,L,B){super(),this.name=N,this.args=L,this.async=B}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}g.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends h{render(N){let L="try"+super.render(N);return this.catch&&(L+=this.catch.render(N)),this.finally&&(L+=this.finally.render(N)),L}optimizeNodes(){var N,L;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(N,L){var B,V;return super.optimizeNames(N,L),(B=this.catch)===null||B===void 0||B.optimizeNames(N,L),(V=this.finally)===null||V===void 0||V.optimizeNames(N,L),this}get names(){const N=super.names;return this.catch&&_(N,this.catch.names),this.finally&&_(N,this.finally.names),N}}class x extends h{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}x.kind="catch";class O extends h{render(N){return"finally"+super.render(N)}}O.kind="finally";class C{constructor(N,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
|
|
99
|
-
`:""},this._extScope=N,this._scope=new r.Scope({parent:N}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(N){return this._scope.name(N)}scopeName(N){return this._extScope.name(N)}scopeValue(N,L){const B=this._extScope.value(N,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(N,L){return this._extScope.getValue(N,L)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,L,B,V){const K=this._scope.toName(L);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new s(N,K,B)),K}const(N,L,B){return this._def(r.varKinds.const,N,L,B)}let(N,L,B){return this._def(r.varKinds.let,N,L,B)}var(N,L,B){return this._def(r.varKinds.var,N,L,B)}assign(N,L,B){return this._leafNode(new o(N,L,B))}add(N,L){return this._leafNode(new c(N,e.operators.ADD,L))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new p(N)),this}object(...N){const L=["{"];for(const[B,V]of N)L.length>1&&L.push(","),L.push(B),(B!==V||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,V));return L.push("}"),new t._Code(L)}if(N,L,B){if(this._blockNode(new y(N)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new y(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(N,L){return this._blockNode(N),L&&this.code(L).endFor(),this}for(N,L){return this._for(new w(N),L)}forRange(N,L,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(N);return this._for(new E(K,J,L,B),()=>V(J))}forOf(N,L,B,V=r.varKinds.const){const K=this._scope.toName(N);if(this.opts.es5){const J=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new m("of",V,K,L),()=>B(K))}forIn(N,L,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${L})`,B);const K=this._scope.toName(N);return this._for(new m("in",V,K,L),()=>B(K))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new l(N))}break(N){return this._leafNode(new u(N))}return(N){const L=new S;if(this._blockNode(L),this.code(N),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new A;if(this._blockNode(V),this.code(N),L){const K=this.name("e");this._currNode=V.catch=new x(K),L(K)}return B&&(this._currNode=V.finally=new O,this.code(B)),this._endBlockNode(x,O)}throw(N){return this._leafNode(new f(N))}block(N,L){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(L),this}endBlock(N){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||N!==void 0&&B!==N)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${N} expected`);return this._nodes.length=L,this}func(N,L=t.nil,B,V){return this._blockNode(new g(N,L,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(N=1){for(;N-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(N){return this._currNode.nodes.push(N),this}_blockNode(N){this._currNode.nodes.push(N),this._nodes.push(N)}_endBlockNode(N,L){const B=this._currNode;if(B instanceof N||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${N.kind}/${L.kind}`:N.kind}"`)}_elseNode(N){const L=this._currNode;if(!(L instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const L=this._nodes;L[L.length-1]=N}}e.CodeGen=C;function _(T,N){for(const L in N)T[L]=(T[L]||0)+(N[L]||0);return T}function F(T,N){return N instanceof t._CodeOrName?_(T,N.names):T}function I(T,N,L){if(T instanceof t.Name)return B(T);if(!V(T))return T;return new t._Code(T._items.reduce((K,J)=>(J instanceof t.Name&&(J=B(J)),J instanceof t._Code?K.push(...J._items):K.push(J),K),[]));function B(K){const J=L[K.str];return J===void 0||N[K.str]!==1?K:(delete N[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&N[J.str]===1&&L[J.str]!==void 0)}}function j(T,N){for(const L in N)T[L]=(T[L]||0)-(N[L]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=M(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=M(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function M(T){return(N,L)=>N===t.nil?L:L===t.nil?N:(0,t._)`${U(N)} ${T} ${U(L)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(Yf)),Yf}var Be={},Av;function et(){if(Av)return Be;Av=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.checkStrictMode=Be.getErrorPath=Be.Type=Be.useFunc=Be.setEvaluated=Be.evaluatedPropsToName=Be.mergeEvaluated=Be.eachItem=Be.unescapeJsonPointer=Be.escapeJsonPointer=Be.escapeFragment=Be.unescapeFragment=Be.schemaRefOrVal=Be.schemaHasRulesButRef=Be.schemaHasRules=Be.checkUnknownRules=Be.alwaysValidSchema=Be.toHash=void 0;const e=Ue(),t=ml();function r(m){const g={};for(const S of m)g[S]=!0;return g}Be.toHash=r;function a(m,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(m,g),!n(g,m.self.RULES.all))}Be.alwaysValidSchema=a;function i(m,g=m.schema){const{opts:S,self:A}=m;if(!S.strictSchema||typeof g=="boolean")return;const x=A.RULES.keywords;for(const O in g)x[O]||E(m,`unknown keyword: "${O}"`)}Be.checkUnknownRules=i;function n(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(g[S])return!0;return!1}Be.schemaHasRules=n;function s(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(S!=="$ref"&&g.all[S])return!0;return!1}Be.schemaHasRulesButRef=s;function o({topSchemaRef:m,schemaPath:g},S,A,x){if(!x){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${m}${g}${(0,e.getProperty)(A)}`}Be.schemaRefOrVal=o;function c(m){return f(decodeURIComponent(m))}Be.unescapeFragment=c;function l(m){return encodeURIComponent(u(m))}Be.escapeFragment=l;function u(m){return typeof m=="number"?`${m}`:m.replace(/~/g,"~0").replace(/\//g,"~1")}Be.escapeJsonPointer=u;function f(m){return m.replace(/~1/g,"/").replace(/~0/g,"~")}Be.unescapeJsonPointer=f;function p(m,g){if(Array.isArray(m))for(const S of m)g(S);else g(m)}Be.eachItem=p;function d({mergeNames:m,mergeToName:g,mergeValues:S,resultToName:A}){return(x,O,C,_)=>{const F=C===void 0?O:C instanceof e.Name?(O instanceof e.Name?m(x,O,C):g(x,O,C),C):O instanceof e.Name?(g(x,C,O),O):S(O,C);return _===e.Name&&!(F instanceof e.Name)?A(x,F):F}}Be.mergeEvaluated={props:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{m.if((0,e._)`${g} === true`,()=>m.assign(S,!0),()=>m.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>{g===!0?m.assign(S,!0):(m.assign(S,(0,e._)`${S} || {}`),k(m,S,g))}),mergeValues:(m,g)=>m===!0?!0:{...m,...g},resultToName:h}),items:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>m.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>m.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(m,g)=>m===!0?!0:Math.max(m,g),resultToName:(m,g)=>m.var("items",g)})};function h(m,g){if(g===!0)return m.var("props",!0);const S=m.var("props",(0,e._)`{}`);return g!==void 0&&k(m,S,g),S}Be.evaluatedPropsToName=h;function k(m,g,S){Object.keys(S).forEach(A=>m.assign((0,e._)`${g}${(0,e.getProperty)(A)}`,!0))}Be.setEvaluated=k;const v={};function y(m,g){return m.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}Be.useFunc=y;var b;(function(m){m[m.Num=0]="Num",m[m.Str=1]="Str"})(b||(Be.Type=b={}));function w(m,g,S){if(m instanceof e.Name){const A=g===b.Num;return S?A?(0,e._)`"[" + ${m} + "]"`:(0,e._)`"['" + ${m} + "']"`:A?(0,e._)`"/" + ${m}`:(0,e._)`"/" + ${m}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(m).toString():"/"+u(m)}Be.getErrorPath=w;function E(m,g,S=m.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);m.self.logger.warn(g)}}return Be.checkStrictMode=E,Be}var hl={},_v;function ka(){if(_v)return hl;_v=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Ue(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return hl.default=t,hl}var Ov;function gl(){return Ov||(Ov=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ue(),r=et(),a=ka();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:y})=>y?(0,t.str)`"${v}" keyword must be ${y} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,y=e.keywordError,b,w){const{it:E}=v,{gen:m,compositeRule:g,allErrors:S}=E,A=f(v,y,b);w??(g||S)?c(m,A):l(E,(0,t._)`[${A}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:m,allErrors:g}=w,S=f(v,y,b);c(E,S),m||g||l(w,a.default.vErrors)}e.reportExtraError=n;function s(v,y){v.assign(a.default.errors,y),v.if((0,t._)`${a.default.vErrors} !== null`,()=>v.if(y,()=>v.assign((0,t._)`${a.default.vErrors}.length`,y),()=>v.assign(a.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:v,keyword:y,schemaValue:b,data:w,errsCount:E,it:m}){if(E===void 0)throw new Error("ajv implementation error");const g=v.name("err");v.forRange("i",E,a.default.errors,S=>{v.const(g,(0,t._)`${a.default.vErrors}[${S}]`),v.if((0,t._)`${g}.instancePath === undefined`,()=>v.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(a.default.instancePath,m.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${m.errSchemaPath}/${y}`),m.opts.verbose&&(v.assign((0,t._)`${g}.schema`,b),v.assign((0,t._)`${g}.data`,w))})}e.extendErrors=o;function c(v,y){const b=v.const("err",y);v.if((0,t._)`${a.default.vErrors} === null`,()=>v.assign(a.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${a.default.vErrors}.push(${b})`),v.code((0,t._)`${a.default.errors}++`)}function l(v,y){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${y})`):(b.assign((0,t._)`${w}.errors`,y),b.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(v,y,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,y,b)}function p(v,y,b={}){const{gen:w,it:E}=v,m=[d(E,b),h(v,b)];return k(v,y,m),w.object(...m)}function d({errorPath:v},{instancePath:y}){const b=y?(0,t.str)`${v}${(0,r.getErrorPath)(y,r.Type.Str)}`:v;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,b)]}function h({keyword:v,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:w}){let E=w?y:(0,t.str)`${y}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,E]}function k(v,{params:y,message:b},w){const{keyword:E,data:m,schemaValue:g,it:S}=v,{opts:A,propertyName:x,topSchemaRef:O,schemaPath:C}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),A.messages&&w.push([u.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${O}${C}`],[a.default.data,m]),x&&w.push([u.propertyName,x])}})(Jf)),Jf}var xv;function iD(){if(xv)return Qa;xv=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.boolOrEmptySchema=Qa.topBoolOrEmptySchema=void 0;const e=gl(),t=Ue(),r=ka(),a={message:"boolean schema is false"};function i(o){const{gen:c,schema:l,validateName:u}=o;l===!1?s(o,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Qa.topBoolOrEmptySchema=i;function n(o,c){const{gen:l,schema:u}=o;u===!1?(l.var(c,!1),s(o)):l.var(c,!0)}Qa.boolOrEmptySchema=n;function s(o,c){const{gen:l,data:u}=o,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,a,void 0,c)}return Qa}var rr={},ei={},Tv;function Pv(){if(Tv)return ei;Tv=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.getRules=ei.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}ei.isJSONType=r;function a(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return ei.getRules=a,ei}var Bn={},Iv;function Nv(){if(Iv)return Bn;Iv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const s=i.RULES.types[n];return s&&s!==!0&&t(a,s)}Bn.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Bn.shouldUseGroup=t;function r(a,i){var n;return a[i.keyword]!==void 0||((n=i.definition.implements)===null||n===void 0?void 0:n.some(s=>a[s]!==void 0))}return Bn.shouldUseRule=r,Bn}var Dv;function yl(){if(Dv)return rr;Dv=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.reportTypeError=rr.checkDataTypes=rr.checkDataType=rr.coerceAndCheckDataType=rr.getJSONTypes=rr.getSchemaTypes=rr.DataType=void 0;const e=Pv(),t=Nv(),r=gl(),a=Ue(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(rr.DataType=n={}));function s(b){const w=o(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}rr.getSchemaTypes=s;function o(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}rr.getJSONTypes=o;function c(b,w){const{gen:E,data:m,opts:g}=b,S=u(w,g.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const x=h(w,m,g.strictNumbers,n.Wrong);E.if(x,()=>{S.length?f(b,w,S):v(b)})}return A}rr.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(b,w){return w?b.filter(E=>l.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:m,data:g,opts:S}=b,A=m.let("dataType",(0,a._)`typeof ${g}`),x=m.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&m.if((0,a._)`${A} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>m.assign(g,(0,a._)`${g}[0]`).assign(A,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>m.assign(x,g))),m.if((0,a._)`${x} !== undefined`);for(const C of E)(l.has(C)||C==="array"&&S.coerceTypes==="array")&&O(C);m.else(),v(b),m.endIf(),m.if((0,a._)`${x} !== undefined`,()=>{m.assign(g,x),p(b,x)});function O(C){switch(C){case"string":m.elseIf((0,a._)`${A} == "number" || ${A} == "boolean"`).assign(x,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(x,(0,a._)`""`);return;case"number":m.elseIf((0,a._)`${A} == "boolean" || ${g} === null
|
|
98
|
+
`),endPos:i.end}:null}function Bf(e,t,r){zo=0,e=MP(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=oI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=va(e,t,r);if(a&&i){for(var o=a,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},c=0;c<o.length;c++){var l=o[c];t.inline=l.inline,t.inAnchor=l.inAnchor,t.inHTML=l.inHTML,t.d=l.htmlDepth,t.inList=l.inList,t.inBlockQuote=l.inBlockQuote,t.l=l.noSetext,t.o=l.depth,t.k=l.breaks;var u=_n(l.text,0,l.text.length,t,r);t.k=!1;for(var f=0;f<u.length;f++)l.dest.push(u[f])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var p=i,d=0;d<p.length;d++)for(var h=p[d],k=0;k<h.src.length;k++){var v=h.src[k];if(h.unwrap&&v.type===oe.paragraph)for(var y=v.children,b=0;b<y.length;b++)h.dest.push(y[b]);else h.dest.push(v)}t.t=void 0,t.p=void 0,Uf(n,t,r.slugify)}return Dy(t.refs)?[{type:oe.refCollection,refs:t.refs},...n]:n}var Vf;try{zi=Fn.createElement("div"),Vf=zi!=null&&typeof zi=="object"&&"$$typeof"in zi&&typeof zi.$$typeof=="symbol"?zi.$$typeof:Symbol.for("react.transitional.element")}catch{Vf=Symbol.for("react.transitional.element")}var zi;function Hf(e,t,r){return{$$typeof:Vf,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Kr(e,t){var r={key:e};if(t){var a=Oy(t);for(var i in a)r[i]=a[i]}return r}var fv=typeof Fn.createContext>"u"?void 0:Fn.createContext(void 0);function dv(e,t,r,a,i,n,o,s,c){switch(e.type){case oe.blockQuote:{let y={key:r.key};return e.alert&&(y.className=`markdown-alert-${n(e.alert.toLowerCase(),Ja)}`,e.children.unshift(RP(e.alert))),a("blockquote",y,t(e.children,r))}case oe.breakLine:return a("br",{key:r.key});case oe.breakThematic:return a("hr",{key:r.key});case oe.frontmatter:return s.preserveFrontmatter?a("pre",{key:r.key},e.text):null;case oe.codeBlock:{let y=e.lang?da(e.lang):"";var l=e.attrs?Oy(e.attrs):{};return l.className=y?`language-${y} lang-${y}`:"",a("pre",{key:r.key},a("code",l,e.text))}case oe.codeInline:return a("code",{key:r.key},e.text);case oe.footnoteReference:return a("a",{key:r.key,href:i(e.target,"a","href")||void 0},a("sup",null,e.text));case oe.gfmTask:return a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case oe.heading:return a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case oe.htmlBlock:{let y=e;if(ji(s)&&Ly(y.tag)){var u=jy(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...BP(u.open,y.children?t(y.children,r):null,u.close))}let b=y.j,w=b!==void 0,E=w?b:y.a?y.e||"":(y.e||"")+(y.h||"");if(E&&y.c){let m=y.tag.toLowerCase(),g=QP(m),S=y.children,A=S!=null&&S.length>0;if(g){let j=w?b:y.e||"",$=ji(s)?Ry(j):j;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Kr(r.key,e.attrs),$)}let x=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(A&&!x.test(E)&&ji(s)&&JP(E))return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(eI(E)){let j=ji(s)?Ry(E):E;var p=Kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},c(e.tag,p)}let O=_f({slugify:s.slugify,sanitizer:i,tagfilter:!0}),C=jP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(C))return y.children&&y.children.length>0?c(e.tag,Kr(r.key,e.attrs),t(y.children,r)):c(e.tag,Kr(r.key,e.attrs));let _=Bf(C,{inline:!1,refs:o,inHTML:!1},O);Fy(_);let F=y.tag.toLowerCase(),I=w;if(I&&A)return c(e.tag,Kr(r.key,e.attrs),t(S,r));if(I)return t(_.flatMap(Mi),r);var d=$P(_,F);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(Mi),k=d.afterClose.flatMap(Mi);return Hf(Fn.Fragment,{children:[c(e.tag,Kr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Kr(r.key,e.attrs),t(_.flatMap(Mi),r))}return Lo(e.tag)?c(e.tag,Kr(r.key,e.attrs)):c(e.tag,Kr(r.key,e.attrs),e.children?t(e.children,r):"")}case oe.htmlSelfClosing:{let y=e;if(ji(s)&&Ly(y.tag)){var v=jy(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Kr(r.key,e.attrs))}case oe.image:{let y=e.target===null?null:i(e.target,"img","src");return a("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:y||void 0})}case oe.link:{let y={key:r.key};if(e.target!=null){let b=VP(e.target,i,"a","href");b!=null&&(y.href=b)}return e.title&&(y.title=e.title),a("a",y,t(e.children,r))}case oe.table:{let y=e;return a("table",{key:r.key},a("thead",{key:"thead"},a("tr",null,y.header.map(function(b,w){return a("th",{key:w,style:y.align[w]===null?{}:{textAlign:y.align[w]}},t(b,r))}))),y.cells.length>0&&a("tbody",{key:"tbody"},y.cells.map(function(b,w){return a("tr",{key:w},b.map(function(E,m){return a("td",{key:m,style:y.align[m]===null?{}:{textAlign:y.align[m]}},t(E,r))}))})))}case oe.text:return e.text;case oe.textFormatted:return a(e.tag,{key:r.key},t(e.children,r));case oe.orderedList:case oe.unorderedList:{let y=e.type===oe.orderedList?"ol":"ul";return a(y,{key:r.key,start:e.type===oe.orderedList?e.start:void 0},e.items.map(function(b,w){return a("li",{key:w},t(b,r))}))}case oe.paragraph:return a("p",{key:r.key},t(e.children,r));case oe.ref:return null;default:return null}}var DI=(e,t,r,a,i,n,o)=>{var s=l=>l.map(u=>"text"in u?u.text:""),c=(l,u={})=>{var f=Array.isArray(l)?l:[l],p=(u.renderDepth||0)+1;if(p>2500)return s(f);u.renderDepth=p;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=dv.bind(null,f[v],c,u,t,r,a,i,n,o);y=e(b,f[v],c,u)}else y=dv(f[v],c,u,t,r,a,i,n,o);var w=typeof y=="string";if(k&&typeof y=="string"){var E=h.at(-1);h[h.length-1]=(typeof E=="string"?E:"")+y}else if(y!=null)if(Array.isArray(y))for(var m=0;m<y.length;m++)h.push(y[m]);else h.push(y);k=w}return u.key=d,u.renderDepth=p-1,h};return c},FI=(e,t)=>{let r=Af(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Af(t,`${e}.component`,e):e};function MI(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||Ja,i=r.sanitizer||$n,n=r.createElement,o=Dy(r.overrides),s=w=>Wf(w,{...r,wrapper:null});function c(w){for(var E in w){var m=w[E];if(typeof m=="string"&&m.length>0&&m.charCodeAt(0)===ht&&(YP.test(m)||XP.test(m)||NI(m,0))){var g=s(m.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...m){var g=E||{},S=w;if(o){var A=Af(r.overrides,`${w}.props`,{});S=FI(w,r.overrides),g={...g,...A,className:KP(g.className,A.className)||void 0}}if(!n){var x=g.key;return x!=null&&delete g.key,m.length===1?g.children=m[0]:m.length>1&&(g.children=m),Hf(S,g,x)}return n(S,g,...m)}function u(w,E,...m){return E&&c(E),l(w,E,...m)}let f=_f(r,r.forceInline),p=e[0]&&e[0].type===oe.refCollection?e[0].refs:{},d=DI(r.renderRule,l,i,a,p,r,u),h=d(e,{inline:r.forceInline,refs:p}),k=HP(p);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===zn?w.identifier.slice(1):w.identifier,m=Bf(w.footnote,{inline:!0,refs:p},f);return l("div",{id:a(E,Ja),key:w.identifier},`${E}: `,d(m,{inline:!0,refs:p}))}))),r.wrapper===null)return h;let v=r.wrapper||(r.forceInline?"span":"div"),y;if(h.length>1||r.forceWrapper)y=h;else return h.length===1?h[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=y,Hf(v,b,"outer")}function Wf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let o=r.forceInline||!(r.forceBlock||PP.test(n)),s=_f(r,o),c=o?n:zP(n),l=Bf(c,{inline:o,refs:i},s);return MI(l,{...r,forceInline:o})}let i={};return a(e)}function jI(e){let t=Fn.useRef(e),r=t.current;if(r!==e){var a=!0,i=0;for(var n in e)if(i++,!Object.is(r[n],e[n])){a=!1;break}if(a){var o=0;for(var s in r)o++;a=o===i}a||(t.current=e)}return t.current}var $o=({children:e,options:t,...r})=>{if(!(typeof Fn.useContext<"u")){let s={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Wf(e??"",s)}let a=fv?Fn.useContext(fv):void 0,i=jI(r),n=Fn.useMemo(()=>({...a,...t,overrides:{...a==null?void 0:a.overrides,...t==null?void 0:t.overrides},wrapperProps:{...a==null?void 0:a.wrapperProps,...t==null?void 0:t.wrapperProps,...i}}),[a,t,i]),o=e??"";return Fn.useMemo(()=>Wf(o,n),[o,n])};const pv=Symbol("remove-this-key"),mv=Symbol("reset");function LI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function RI(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(Me.NewStringDefault)}}function hv(e){return!!(e!=null&&e[Xn])}function gv(e){return Object.keys(e).filter(t=>hv(e[t]))}function qI(e){const{fieldPathId:t,schema:r,registry:a,uiSchema:i,errorSchema:n,formData:o,onChange:s,onBlur:c,onFocus:l,disabled:u,readonly:f,required:p,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=H.useState(!1),{globalFormOptions:E,fields:m}=a,{SchemaField:g}=m,S=Ii(nn(h,E,t.path)),A=H.useCallback((_,F,I,j)=>{let $=_;_===void 0&&y&&($=""),s($,F,I,j)},[s,y]),x=H.useCallback(_=>{h!==_&&w(!0),k(h,_)},[h,k]),O=H.useCallback(_=>{const{target:{value:F}}=_;x(F)},[x]),C=H.useCallback(()=>{v(h)},[h,v]);return D.jsx(g,{name:h,required:p,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:o,wasPropertyKeyModified:b,onKeyRename:x,onKeyRenameBlur:O,onRemoveProperty:C,onChange:A,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const zI=H.memo(qI);function $I(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:o,required:s=!1,disabled:c,readonly:l,hideError:u,onBlur:f,onFocus:p,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,m=H.useRef(a);m.current=a;const g=H.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=H.useMemo(()=>be(r,w),[r,w]),A=H.useMemo(()=>g.properties??{},[g.properties]),x=e.childFieldPathId??n,O=H.useRef({previousKey:"",currentKey:void 0}),[C,_]=H.useState(()=>gv(A)),F=H.useMemo(()=>{const V=new Set(gv(A));return Object.keys(A).filter(K=>!V.has(K))},[A]),I=S.title??g.title??k??o,j=S.description??g.description,$=Fo(h,g,s,r),Y=Pi(a);let Z=[];const ie=H.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=be(r,w);let Q=0,q=V;for(;Ke(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=H.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)vt(V,K,null);else{let J,Q,q;if(Ye(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let W=g.additionalProperties;gt in W&&(W=y.retrieveSchema({[gt]:W[gt]},a),J=W.type,Q=W.const,q=y.getDefaultFormState(W,q)),!J&&(Ve in W||Fe in W)&&(J="object")}const z=Q??q??RI(b,J);vt(V,K,z)}O.current.previousKey===K&&(O.current.currentKey=K,O.current.previousKey=ie(K,V)),_(J=>[...J,K]),d(V,x.path)},[a,d,b,y,x,ie,g]),M=H.useCallback((V,K)=>{if(V!==K){const J=m.current,Q=ie(K,J),q={...J},z={[V]:Q},W=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...W);m.current=G,V!==O.current.currentKey&&(O.current.previousKey=V),O.current.currentKey=Q,_(te=>te.map(ae=>ae===V?Q:ae)),d(G,x.path)}},[d,x,ie]),U=H.useCallback(V=>{_(K=>K.filter(J=>J!==V)),d(pv,[...x.path,V])},[d,x]),T=H.useCallback(V=>O.current.currentKey===V?O.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(F),K=C.filter(J=>Object.hasOwn(A,J)&&!V.has(J));Z=dT([...F,...K],S.order)}catch(V){return D.jsxs("div",{children:[D.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:D.jsx($o,{options:{disableParsingRawHTML:!0},children:b(Me.InvalidObjectField,[o||"root",V.message])})}),D.jsx("pre",{children:JSON.stringify(g)})]})}const N=Ce("ObjectFieldTemplate",h,S),L=$?D.jsx(E,{...e,fieldPathId:x,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:j,properties:Z.map(V=>{var z;const K=hv((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=be(J).widget==="hidden";return{content:D.jsx(zI,{propertyName:V,required:LI(g,V),schema:se(g,[Je,V],{}),uiSchema:J,errorSchema:se(i,[V]),fieldPathId:x,formData:se(a,[V]),handleKeyRename:M,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:p,registry:h,disabled:c,readonly:l,hideError:u},T(V)),name:V,readonly:l,disabled:c,required:s,hidden:Q}}),readonly:l,disabled:c,required:s,fieldPathId:n,uiSchema:r,errorSchema:i,schema:g,formData:a,registry:h,optionalDataControl:L,className:$?"rjsf-optional-object-field":void 0};return D.jsx(N,{...B,onAddProperty:P})}function UI(e){const{schema:t,uiSchema:r={},formData:a,disabled:i=!1,readonly:n=!1,onChange:o,errorSchema:s,fieldPathId:c,registry:l}=e,{globalUiOptions:u={},schemaUtils:f,translateString:p}=l,d=be(r,u),h=Ce("OptionalDataControlsTemplate",l,d),k=Pi(a);let v,y,b,w;if(i||n)v=uf(c,"Msg"),y=k?void 0:p(Me.OptionalObjectEmptyMsg);else{const E=k?Me.OptionalObjectRemove:Me.OptionalObjectAdd;y=p(E),k?(v=uf(c,"Remove"),w=()=>o(void 0,c.path,s)):(v=uf(c,"Add"),b=()=>{let m=f.getDefaultFormState(t,a,"excludeObjectChildren");m===void 0&&(m=zr(t)==="array"?[]:{}),o(m,c.path,s)})}return y&&D.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const BI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function VI(e,t,r){const{field:a}=t,{fields:i,schemaUtils:n}=r;if(typeof a=="function")return a;if(typeof a=="string"&&a in i)return i[a];const o=zr(e),s=Array.isArray(o)?o[0]:o||"",c=e.$id;let l=BI[s];return c&&c in i&&(l=c),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&l!=="ObjectField"?()=>null:l in i?i[l]:i.FallbackField}function HI(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i,errorSchema:n,name:o,onChange:s,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f=!1,registry:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,m=r[dt],g=H.useCallback((Se,De,he,Le)=>s(Se,De,he,Le||m),[m,s]);if(t[iu])return D.jsx(E,{...e});const S=pT(t,a,p),A=be(S,v),x=Ce("FieldTemplate",p,A),O=Ce("DescriptionFieldTemplate",p,A),C=Ce("FieldHelpTemplate",p,A),_=Ce("FieldErrorTemplate",p,A),F=h.retrieveSchema(t,i),I=VI(F,A,p),$=!!F.deprecated?A.deprecatedHandling??"label":void 0,Y=!!(A.disabled??e.disabled)||$==="disable",Z=!!(A.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),ie=A.hideError,P=ie===void 0?e.hideError:!!ie,M=!!(A.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let U=h.getDisplayLabel(F,S,v);const T=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,L,B={fieldPathId:r};if((Ve in F||Fe in F)&&!T&&!h.isSelect(F)){F[Ve]?(N=b,L=F[Ve].map(he=>h.retrieveSchema(Ye(he)?he:{},i))):F[Fe]&&(N=w,L=F[Fe].map(he=>h.retrieveSchema(Ye(he)?he:{},i)));const Se=Fo(p,F,f,S),De=Pi(i);U=U&&(!Se||De),B={childFieldPathId:r,fieldPathId:nn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=Eo(S,["ui:classNames","classNames","ui:style"]);Zn in J&&(J[Zn]=Eo(J[Zn],["classNames","style"]));const Q=D.jsx(I,{...e,onChange:g,...B,schema:F,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:M,errorSchema:K,rawErrors:V}),q=r[dt];let z;d?z=o:z=Xn in F?o:A.title||e.schema.title||F.title||e.title||o,$==="label"&&(z=p.translateString(Me.DeprecatedLabel,[z]));const W=A.description||e.schema.description||F.description||"",{help:G}=A,te=A.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${zr(F)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),A.classNames&&ae.push(A.classNames);const pe=D.jsx(C,{help:G,fieldPathId:r,schema:F,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:p}),ve=P||N&&!h.isSelect(F)?void 0:D.jsx(_,{errors:V,errorSchema:n,fieldPathId:r,schema:F,uiSchema:S,registry:p}),Ae={description:D.jsx(O,{id:la(q),description:W,schema:F,uiSchema:S,registry:p}),rawDescription:W,help:pe,rawHelp:typeof G=="string"?G:void 0,errors:ve,rawErrors:P?void 0:V,fieldPathId:r,id:q,label:z,hidden:te,onChange:s,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f,disabled:Y,readonly:Z,hideError:P,displayLabel:U,classNames:ae.join(" ").trim(),style:A.style,formData:i,schema:F,uiSchema:S,registry:p};return D.jsx(x,{...Ae,children:D.jsxs(D.Fragment,{children:[Q,N&&D.jsx(N,{name:o,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:S})]})})}const WI=H.memo(HI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?pf(e,t):Xe(e,t)});function KI(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,required:o,disabled:s=!1,readonly:c=!1,autofocus:l=!1,onChange:u,onBlur:f,onFocus:p,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:m}=d,g=E.isSelect(t)?Ua(t,a):void 0;let S=g?"select":"text";b&&sT(t,b,w)&&(S=b);const{widget:A=S,placeholder:x="",title:O,...C}=be(a),_=E.getDisplayLabel(t,a,m),F=O??v??y??r,I=Sn(t,A,w),j=H.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return D.jsx(I,{options:{...C,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:F,hideLabel:!_,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:o,disabled:s,readonly:c,autofocus:l,registry:d,placeholder:x,rawErrors:h,htmlName:i.name})}function GI(){return{AnyOfField:Sy,ArrayField:RT,BooleanField:qT,CyclicSchemaField:zT,FallbackField:VT,LayoutGridField:vf,LayoutHeaderField:fP,LayoutMultiSchemaField:dP,NumberField:gP,ObjectField:$I,OneOfField:Sy,OptionalDataControlsField:UI,SchemaField:WI,StringField:KI,NullField:pP}}function JI(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,o=be(n,a.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const c=Ce("DescriptionFieldTemplate",a,o);return D.jsx(c,{id:la(t),description:r,schema:i,uiSchema:n,registry:a})}function YI(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs(D.Fragment,{children:[(i||a)&&D.jsx(v,{id:Or(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),(i||a)&&D.jsx(k,{id:Or(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:p}),r&&D.jsx(h,{id:Or(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:s,uiSchema:d,registry:p}),n&&D.jsx(y,{id:Or(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:p})]})}function XI(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:o,registry:s,uiSchema:c}=e,l=be(c),u=Ce("ArrayFieldItemButtonsTemplate",s,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${p}px`:0};return D.jsxs("div",{className:r,style:d,children:[D.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&D.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:D.jsx("div",{className:"btn-group",style:h,children:D.jsx(u,{...a,style:f})})})]})}function ZI(e){const{canAdd:t,className:r,disabled:a,fieldPathId:i,uiSchema:n,items:o,optionalDataControl:s,onAddClick:c,readonly:l,registry:u,required:f,schema:p,title:d}=e,h=be(n),k=Ce("ArrayFieldDescriptionTemplate",u,h),v=Ce("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return D.jsxs("fieldset",{className:r,id:i.$id,children:[D.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:p,uiSchema:n,registry:u,optionalDataControl:y?s:void 0}),D.jsx(k,{fieldPathId:i,description:h.description||p.description,schema:p,uiSchema:n,registry:u}),y?void 0:s,D.jsx("div",{className:"row array-item-list",children:o}),t&&D.jsx(b,{id:Or(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function QI(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:o,optionalDataControl:s}=e,c=be(i,o.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=Ce("TitleFieldTemplate",o,c);return D.jsx(u,{id:Gs(t),title:r,required:n,schema:a,uiSchema:i,registry:o,optionalDataControl:s})}function eN(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?D.jsx("datalist",{id:lf(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>D.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function tN(e){const{id:t,name:r,htmlName:a,value:i,readonly:n,disabled:o,autofocus:s,onBlur:c,onFocus:l,onChange:u,onChangeOverride:f,options:p,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:m}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...Qx(d,y,p)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const A=H.useCallback(({target:{value:_}})=>u(_===""?p.emptyValue:_),[u,p]),x=H.useCallback(({target:_})=>c(t,_==null?void 0:_.value),[c,t]),O=H.useCallback(({target:_})=>l(t,_==null?void 0:_.value),[l,t]),C=H.useCallback(_=>{_.preventDefault(),_.stopPropagation(),u(p.emptyValue??"")},[u,p.emptyValue]);return D.jsxs(D.Fragment,{children:[D.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:o,autoFocus:s,value:S,...g,list:d.examples?lf(t):void 0,onChange:f||A,onBlur:x,onFocus:O,"aria-describedby":rn(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!o&&S&&D.jsx(m,{registry:k,onClick:C}),D.jsx(eN,{id:t,schema:d})]})}function rN(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...o}=e;return D.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...o,children:D.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const ba=H.memo(rN);function nN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.CopyButton),...e,icon:"copy"})}const aN=H.memo(nN);function iN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveDownButton),...e,icon:"arrow-down"})}const oN=H.memo(iN);function sN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.MoveUpButton),...e,icon:"arrow-up"})}const lN=H.memo(sN);function cN(e){const{registry:{translateString:t}}=e;return D.jsx(ba,{title:t(Me.RemoveButton),...e,iconType:"danger",icon:"remove"})}const uN=H.memo(cN);function fN({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:o}=i;return D.jsx(ba,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(Me.ClearButton),onClick:r,disabled:a,registry:i,...n})}const dN=H.memo(fN);function pN({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return D.jsx("div",{className:"row",children:D.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:D.jsx(ba,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Me.AddButton),onClick:r,disabled:a,registry:i})})})}function mN({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Qg(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function hN(){return{SubmitButton:mN,AddButton:pN,CopyButton:aN,MoveDownButton:oN,MoveUpButton:lN,RemoveButton:uN,ClearButton:dN}}function gN(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,o=`${r[dt]}-button`;return D.jsxs("div",{style:{marginTop:"1rem"},children:[D.jsx("div",{className:"text-danger",children:n(Me.CycleDetected,[t])}),D.jsxs("div",{children:[D.jsx("button",{id:o,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[dt]),children:n(Me.ExpandButton)})," "]})]})}const yv=af();function vv({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInDescription&&typeof e=="string"?D.jsx($o,{options:{disableParsingRawHTML:!0},"data-testid":yv.markdown,children:e}):e}vv.TEST_IDS=yv;function yN(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?D.jsx("div",{id:t,className:"field-description",children:D.jsx(vv,{description:r,registry:a,uiSchema:i})}):null}function vN({errors:e,registry:t}){const{translateString:r}=t;return D.jsxs("div",{className:"panel panel-danger errors",children:[D.jsx("div",{className:"panel-heading",children:D.jsx("h3",{className:"panel-title",children:r(Me.ErrorsLabel)})}),D.jsx("ul",{className:"list-group",children:e.map((a,i)=>D.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function bN(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=Ce("MultiSchemaFieldTemplate",r);return D.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function kN(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=sf(r);return D.jsx("div",{children:D.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>D.jsx("li",{className:"text-danger",children:i},n))})})}const bv=af();function kv({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return be(r,a).enableMarkdownInHelp&&typeof e=="string"?D.jsx($o,{options:{disableParsingRawHTML:!0},"data-testid":bv.markdown,children:e}):e}kv.TEST_IDS=bv;function wN(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?D.jsx("div",{id:cf(t),className:"help-block",children:D.jsx(kv,{help:r,registry:i,uiSchema:a})}):null}const SN="*";function wv(e){const{label:t,required:r,id:a}=e;return t?D.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&D.jsx("span",{className:"required",children:SN})]}):null}function EN(e){const{id:t,label:r,children:a,errors:i,help:n,description:o,hidden:s,required:c,displayLabel:l,registry:u,uiSchema:f}=e,p=be(f),d=Ce("WrapIfAdditionalTemplate",u,p);if(s)return D.jsx("div",{className:"hidden",children:a});const h=p.widget==="checkbox";return D.jsxs(d,{...e,children:[l&&!h&&D.jsx(wv,{label:r,required:c,id:t}),l&&o?o:null,a,i,n]})}function CN(e){const{children:t,column:r,className:a,...i}=e;return D.jsx("div",{className:a,...i,children:t})}function AN(e){const{selector:t,optionSchemaField:r}=e;return D.jsxs("div",{className:"panel panel-default panel-body",children:[D.jsx("div",{className:"form-group",children:t}),r]})}function _N(e){const{className:t,description:r,disabled:a,formData:i,fieldPathId:n,onAddProperty:o,optionalDataControl:s,properties:c,readonly:l,registry:u,required:f,schema:p,title:d,uiSchema:h}=e,k=be(h),v=Ce("TitleFieldTemplate",u,k),y=Ce("DescriptionFieldTemplate",u,k);if((p.oneOf||p.anyOf)&&!p.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return D.jsxs("fieldset",{className:t,id:n.$id,children:[d&&D.jsx(v,{id:Gs(n),title:d,required:f,schema:p,uiSchema:h,registry:u,optionalDataControl:w?s:void 0}),r&&D.jsx(y,{id:la(n),description:r,schema:p,uiSchema:h,registry:u}),w?void 0:s,c.map(m=>m.content),Pm(p,h,i)&&D.jsx(E,{id:Or(n,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:a||l,uiSchema:h,registry:u})]})}function ON(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?D.jsx(ba,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?D.jsx(ba,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):D.jsx("em",{id:t,children:a})}const xN="*";function TN(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return D.jsxs("legend",{id:t,children:[r,a&&D.jsx("span",{className:"required",children:xN}),i&&D.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function PN(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let o=Me.UnsupportedField;const s=[];return r!=null&&r.$id&&(o=Me.UnsupportedFieldWithId,s.push(r.$id)),a&&(o=o===Me.UnsupportedField?Me.UnsupportedFieldWithReason:Me.UnsupportedFieldWithIdAndReason,s.push(a)),D.jsxs("div",{className:"unsupported-field",children:[D.jsx("p",{children:D.jsx($o,{options:{disableParsingRawHTML:!0},children:n(o,s)})}),t&&D.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function IN(e){const{id:t,classNames:r,style:a,disabled:i,displayLabel:n,label:o,onKeyRenameBlur:s,onRemoveProperty:c,rawDescription:l,readonly:u,required:f,schema:p,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,m=w(Me.KeyLabel,[o]),g=Xn in p,S=!!l,A=["form-group",r];!d&&h&&h.length>0&&A.push("has-error has-danger");const x=A.join(" ").trim();if(!g)return D.jsx("div",{className:x,style:a,children:k});const O=S?46:26;return D.jsx("div",{className:x,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col-xs-5 form-additional",children:D.jsxs("div",{className:"form-group",children:[n&&D.jsx(wv,{label:m,required:f,id:`${t}-key`}),n&&l&&D.jsx("div",{children:" "}),D.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:s,defaultValue:o},o)]})}),D.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),D.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${O}px`:void 0},children:D.jsx(E,{id:Or(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function NN(){return{ArrayFieldDescriptionTemplate:JI,ArrayFieldItemTemplate:XI,ArrayFieldItemButtonsTemplate:YI,ArrayFieldTemplate:ZI,ArrayFieldTitleTemplate:QI,ButtonTemplates:hN(),BaseInputTemplate:tN,CyclicSchemaExpandTemplate:gN,DescriptionFieldTemplate:yN,ErrorListTemplate:vN,FallbackFieldTemplate:bN,FieldTemplate:EN,FieldErrorTemplate:kN,FieldHelpTemplate:wN,GridTemplate:CN,MultiSchemaFieldTemplate:AN,ObjectFieldTemplate:_N,OptionalDataControlsTemplate:ON,TitleFieldTemplate:TN,UnsupportedFieldTemplate:PN,WrapIfAdditionalTemplate:IN}}function DN({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return D.jsx(r,{time:e,...t})}function FN(e){const{disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:i,id:n,name:o,registry:s,onBlur:c,onFocus:l}=e,{translateString:u}=s,{elements:f,handleChange:p,handleClear:d,handleSetNow:h}=bT(e);return D.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>D.jsx("li",{className:"list-inline-item",children:D.jsx(vT,{rootId:n,name:o,select:p,...k,disabled:t,readonly:r,registry:s,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Me.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&D.jsx("li",{className:"list-inline-item",children:D.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Me.ClearLabel)})})]})}function MN({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,onChange:o,onBlur:s,onFocus:c,htmlName:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=No(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>s(e,tn(b==null?void 0:b.value,f,h,d)),[s,e,f,d,h]),y=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return D.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=t||m||n?"disabled":"",S=x=>{x.target.checked?o(Gg(w,k,f)):o(Wg(w,k,f))},A=D.jsxs("span",{children:[D.jsx("input",{type:"checkbox",id:Js(e,w),name:l||e,checked:E,value:Io(b.value,w,h),disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("span",{children:b.label})]});return u?D.jsx("label",{className:`checkbox-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`checkbox ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function jN({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:o,label:s,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d,htmlName:h}){const k=Ce("DescriptionFieldTemplate",d,r),v=Do(e),y=H.useCallback(S=>p(S.target.checked),[p]),b=H.useCallback(S=>u(a,S.target.checked),[u,a]),w=H.useCallback(S=>f(a,S.target.checked),[f,a]),g=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`,children:[!c&&g&&D.jsx(k,{id:la(a),description:g,schema:e,uiSchema:t,registry:d}),D.jsxs("label",{children:[D.jsx("input",{type:"checkbox",id:a,name:h||a,checked:typeof i>"u"?!1:i,required:v,disabled:n||o,autoFocus:l,onChange:y,onBlur:b,onFocus:w,"aria-describedby":rn(a)}),cT(D.jsx("span",{children:s}),c)]})]})}function LN(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"color",...e,disabled:t||r})}function RN(e){const{onChange:t,value:r,options:a,registry:i}=e,n=Ce("BaseInputTemplate",i,a);return D.jsx(n,{type:"datetime-local",...e,value:CT(r),onChange:o=>t(uT(o))})}function qN(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(o=>t(o||void 0),[t]);return D.jsx(i,{type:"date",...e,onChange:n})}function zN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"email",...e})}function $N({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const o=r(Me.PreviewLabel);return["image/jpeg","image/png"].includes(i)?D.jsx("img",{src:a,alt:o,style:{maxWidth:"100%"},className:"file-preview"}):D.jsxs(D.Fragment,{children:[" ",D.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:o})]})}function UN({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:o}=Ce("ButtonTemplates",t,i);return D.jsx("ul",{className:"file-info",children:e.map((s,c)=>{const{name:l,size:u,type:f}=s,p=()=>a(c);return D.jsxs("li",{children:[D.jsx($o,{children:n(Me.FilesInfo,[l,f,String(u)])}),r&&D.jsx($N,{fileInfo:s,registry:t}),D.jsx(o,{onClick:p,registry:t})]},c)})})}function BN(e){const{disabled:t,readonly:r,required:a,multiple:i,onChange:n,value:o,options:s,registry:c}=e,{filesInfo:l,handleChange:u,handleRemove:f}=ET(o,n,i),p=Ce("BaseInputTemplate",c,s),d=h=>{h.target.files&&u(h.target.files)};return D.jsxs("div",{children:[D.jsx(p,{...e,disabled:t||r,type:"file",required:o?!1:a,onChangeOverride:d,value:"",accept:s.accept?String(s.accept):void 0}),D.jsx(UN,{filesInfo:l,onRemove:f,registry:c,preview:s.filePreview,options:s})]})}function VN({id:e,value:t,htmlName:r}){return D.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function HN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"password",...e})}function WN({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:o,onFocus:s,onChange:c,id:l,htmlName:u}){const{enumOptions:f,enumDisabled:p,inline:d,emptyValue:h}=e,k=No(e),v=H.useCallback(({target:b})=>o(l,tn(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]),y=H.useCallback(({target:b})=>s(l,tn(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]);return D.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,t),m=Array.isArray(p)&&p.includes(b.value),g=a||m||i?"disabled":"",S=()=>c(b.value),A=D.jsxs("span",{children:[D.jsx("input",{type:"radio",id:Js(l,w),checked:E,name:u||l,required:r,value:Io(b.value,w,k),disabled:a||m||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(l)}),D.jsx("span",{children:b.label})]});return d?D.jsx("label",{className:`radio-inline ${g}`,children:A},String(b.value)):D.jsx("div",{className:`radio ${g}`,children:D.jsx("label",{children:A})},String(b.value))})})}function KN(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return D.jsxs("div",{className:"field-range-wrapper",children:[D.jsx(r,{type:"range",...e}),D.jsx("span",{className:"range-view",children:t})]})}function GN({id:e,value:t,required:r,disabled:a,readonly:i,autofocus:n,onChange:o,onFocus:s,onBlur:c,schema:l,options:u,htmlName:f}){const{stars:p=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(p,1),5),k=l.minimum||0,v=H.useCallback(E=>{!a&&!i&&o(E)},[o,a,i]),y=H.useCallback(E=>{if(s){const m=Number(E.target.dataset.value);s(e,m)}},[s,e]),b=H.useCallback(E=>{if(c){const m=Number(E.target.dataset.value);c(e,m)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return D.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,m)=>{const g=k+m,S=g<=t;return D.jsx("span",{onClick:()=>v(g),onKeyDown:A=>(A.key==="Enter"||A.key===" ")&&v(g),onFocus:y,onBlur:b,"data-value":g,tabIndex:a||i?-1:0,role:"radio","aria-checked":g===t,"aria-label":`${g} ${d==="heart"?"heart":"star"}${g===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},m)}),D.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function Kf(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function JN({schema:e,id:t,options:r,value:a,required:i,disabled:n,readonly:o,multiple:s=!1,autofocus:c=!1,onChange:l,onBlur:u,onFocus:f,placeholder:p,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=s?[]:"",E=No(r),m=H.useCallback(O=>{const C=Kf(O,s);return f(t,tn(C,v,E,b))},[f,t,s,v,b,E]),g=H.useCallback(O=>{const C=Kf(O,s);return u(t,tn(C,v,E,b))},[u,t,s,v,b,E]),S=H.useCallback(O=>{const C=Kf(O,s);return l(tn(C,v,E,b))},[l,s,v,b,E]),A=Bx(a,v,s,E,w),x=!s&&e.default===void 0;return fT(t,e,v,s),D.jsxs(D.Fragment,{children:[D.jsx(mT,{id:t,multiple:s,options:r,registry:h,uiSchema:k,value:a}),D.jsxs("select",{id:t,name:d||t,multiple:s,className:"form-control",value:A,required:i,disabled:n||o,autoFocus:c,onBlur:g,onFocus:m,onChange:S,"aria-describedby":rn(t),children:[x&&D.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:O,label:C},_)=>{const F=y&&y.includes(O);return D.jsx("option",{value:Io(O,_,E),disabled:F,children:C},String(O))})]})]})}function YN({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:o,autofocus:s=!1,onChange:c,onBlur:l,onFocus:u,htmlName:f}){const p=H.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=H.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=H.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return D.jsx("textarea",{id:e,name:f||e,className:"form-control",value:a||"",placeholder:r,required:i,disabled:n,readOnly:o,autoFocus:s,rows:t.rows,onBlur:d,onFocus:h,onChange:p,"aria-describedby":rn(e)})}function XN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{...e})}function ZN(e){const{onChange:t,options:r,registry:a}=e,i=Ce("BaseInputTemplate",a,r),n=H.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return D.jsx(i,{type:"time",...e,onChange:n})}function QN(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"number",...e})}function eD(e){const{options:t,registry:r}=e,a=Ce("BaseInputTemplate",r,t);return D.jsx(a,{type:"url",...e})}function tD(){return{AltDateWidget:FN,AltDateTimeWidget:DN,CheckboxWidget:jN,CheckboxesWidget:MN,ColorWidget:LN,DateWidget:qN,DateTimeWidget:RN,EmailWidget:zN,FileWidget:BN,HiddenWidget:VN,PasswordWidget:HN,RadioWidget:WN,RangeWidget:KN,RatingWidget:GN,SelectWidget:JN,TextWidget:XN,TextareaWidget:YN,TimeWidget:ZN,UpDownWidget:QN,URLWidget:eD}}function rD(){return{fields:GI(),templates:NN(),widgets:tD(),rootSchema:{},formContext:{},translateString:Ux,globalFormOptions:{idPrefix:Am,idSeparator:_m,useFallbackUiForUnsupportedType:!1}}}function $i(e,t){return{...Ug(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let nD=class si extends H.Component{constructor(r){super(r);gr(this,"formElement");gr(this,"pendingChanges",[]);gr(this,"isProcessingUserChange",!1);gr(this,"getUsedFormData",(r,a)=>Nx(r,a));gr(this,"getFieldNames",(r,a)=>Dx(r,a));gr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});gr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),o=nn("",i.globalFormOptions,n);this.onChange(a,n,void 0,o[dt])});gr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});gr(this,"reset",()=>{const{formData:r,initialFormData:a=mv,onChange:i}=this.props,s={formData:this.getStateFromProps(this.props,r??a,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(s,()=>i==null?void 0:i($i({...this.state,...s})))});gr(this,"onBlur",(r,a)=>{const{onBlur:i,omitExtraData:n,liveOmit:o,liveValidate:s}=this.props;if(i&&i(r,a),n===!0&&o==="onBlur"||s==="onBlur"){const{onChange:c,extraErrors:l}=this.props,{formData:u}=this.state;let f=u,p={formData:f};if(n===!0&&o==="onBlur"&&(f=this.omitExtraData(u),p={formData:f}),s==="onBlur"){const{schema:h,schemaUtils:k,errorSchema:v,customErrors:y,retrievedSchema:b}=this.state,w=this.liveValidate(h,k,v,f,l,y,b);p={formData:f,...w,customErrors:y}}const d=Object.keys(p).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=se(this.state,h),v=se(p,h);return!Xe(k,v)});this.setState(p,()=>{c&&d&&c($i({...this.state,...p}),r)})}});gr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});gr(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:i,noValidate:n,onSubmit:o}=this.props;let{formData:s}=this.state;if(a===!0&&(s=this.omitExtraData(s)),n||this.validateFormWithFormData(s)){const c=i||{},l=i?mf(i):[];this.setState({formData:s,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o($i({...this.state,formData:s},"submitted"),r)})}});gr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});gr(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:i,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,c=this.validate(r),{errors:l,errorSchema:u}=a?si.mergeErrors(c,a):c,f=c.errors.length>0||a&&i;return f?(n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:u,schemaValidationErrors:c.errors,schemaValidationErrorSchema:c.errorSchema},()=>{o?o(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:a,initialFormData:i,onChange:n}=r,o=a??i;this.state={...this.getStateFromProps(r,o,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Xe(this.state.formData,o)&&n($i(this.state)),this.formElement=H.createRef()}static getDerivedStateFromProps(r,a){if(r.extraErrors!==a.prevExtraErrors){const i={errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:o}=i;return r.extraErrors&&({errors:n,errorSchema:o}=Mo(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:o}=Mo({errors:n,errorSchema:o},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:o}}return null}getSnapshotBeforeUpdate(r,a){if(!Xe(this.props,r)){const i=Xg(this.props.formData,r.formData),n=Xg(this.props.formData,this.state.formData),o=!Xe(r.schema,this.props.schema),s=i.length>0||!Xe(r.formData,this.props.formData),c=n.length>0||!Xe(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,o||s?void 0:this.state.retrievedSchema,o,i,!c),u=!Xe(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,o=!Xe(n.formData,this.props.formData),s=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,s&&o)return;o&&!Xe(n.formData,a.formData)&&this.props.onChange&&this.props.onChange($i(n)),this.setState(n)}}getStateFromProps(r,a,i,n=!1,o=[],s=!1,c=!1){var ie;const l=this.state||{},u="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,h=typeof a<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=h&&!r.noValidate&&k,y="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=l;(!w||w.doesSchemaUtilsDiffer(f,u,y,b))&&(w=qx(f,u,y,b));const E=w.getRootSchema();let m=a;a===mv?m=void 0:a===void 0&&d&&(m=l.formData);let g,S,A=!1;const x=[];do{g=w.getDefaultFormState(E,m,!1,l.initialDefaultsGenerated);const P=c?Ur({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!x.includes(P)&&!Xe(S,l.retrievedSchema)){const M=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(A=!Xe(M,g),A){g=M,m=M;const U=Ur({formData:M});A=!x.includes(U),x.push(U)}x.push(P)}else A=!1}while(A);const O=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let C,_,{schemaValidationErrors:F,schemaValidationErrorSchema:I}=l;if(v&&!s){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);C=P.errors,_=P.errorSchema,F=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=O();if(C=P.errors,_=P.errorSchema,o.length>0&&!v){const U=o.reduce((T,N)=>(T[N]=void 0,T),{});I=aa(P.errorSchema,U,"preventDuplicates"),_=I}const M=si.mergeErrors({errorSchema:_,errors:C},r.extraErrors,l.customErrors);C=M.errors,_=M.errorSchema}const j=si.getRegistry(r,E,w),$=Xe(l.registry,j)?l.registry:j,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[dt])===$.globalFormOptions.idPrefix?l.fieldPathId:nn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:Y,formData:g,edit:h,errors:C,errorSchema:_,schemaValidationErrors:F,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return hT(this,r,a,i)}validate(r,a=this.state.schema,i,n){const o=i||this.state.schemaUtils,{customValidate:s,transformErrors:c,uiSchema:l}=this.props,u=n??a,f=r?JSON.parse(JSON.stringify(r)):void 0;return o.getValidator().validateFormData(f,u,s,c,l)}renderErrors(r){const{errors:a,errorSchema:i,schema:n,uiSchema:o}=this.state,s=be(o),c=Ce("ErrorListTemplate",r,s);return a!=null&&a.length?D.jsx(c,{errors:a,errorSchema:i||{},schema:n,uiSchema:o,registry:r}):null}static mergeErrors(r,a,i){let{errorSchema:n,errors:o}=r;if(a){const s=Mo(r,a);n=s.errorSchema,o=s.errors}if(i){const s=Mo({errors:o,errorSchema:n},i.ErrorSchema,!0);n=s.errorSchema,o=s.errors}return{errors:o,errorSchema:n}}liveValidate(r,a,i,n,o,s,c,l=!1){const u=this.validate(n,r,a,c),{errors:f}=u;let{errorSchema:p}=u;l&&(p=aa(i,u.errorSchema,"preventDuplicates"));const d=f,h=p;return{...si.mergeErrors({errorSchema:p,errors:f},o,s),schemaValidationErrors:d,schemaValidationErrorSchema:h}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:a,id:i}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:s,liveOmit:c,noValidate:l,liveValidate:u,onChange:f,disabled:p,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:m}=this.state,g=b;const S=y.path[0]||"",A=!a||a.length===0||a.length===1&&a[0]===S;let x=A?r:Ws(h);const O=_e(x)&&Object.keys(x).length>0&&Object.values(x).every($=>$===void 0),C=h==null,_=O&&C?void 0:x;if(_e(x)||Array.isArray(x)){let $=!1;if(r===pv)xT(x,a);else if(!A){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:M}=k.findFieldInSchema(v,a,h),U=M;!(U&&(Fe in U||Ve in U))&&U!==void 0&&($=!0)}$?vt(x,a,void 0):vt(x,a,ie)}const Y=m&&!A&&!_e(r)&&!Array.isArray(r)&&!p&&!d,Z=this.getStateFromProps(this.props,_,void 0,void 0,void 0,!0,Y);x=Z.formData,m=Z.retrievedSchema,$&&x&&vt(x,a,void 0)}const F=!l&&(u===!0||u==="onChange");let I={formData:x,retrievedSchema:m},j=x;if(s===!0&&(c===!0||c==="onChange")&&(j=this.omitExtraData(x),I={...I,formData:j}),n){const $=A?b:se(b,a);if(!Dt($))A?g=n:(g=Ws(b),vt(g,a,n));else if(E||(E=new Yg),A){const Y=se(n,er);Y&&E.setErrors(Y)}else vt(E.ErrorSchema,a,n)}else E&&se(E.ErrorSchema,[...a,er])&&E.clearErrors(a);if(F&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,j,o,E,m);I={...I,formData:j,...$,customErrors:E}}else if(!l&&n){const $=si.mergeErrors({errorSchema:g,errors:w},o,E);I={...I,formData:j,...$,customErrors:E}}this.setState(I,()=>{f&&f($i({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Xe(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=_m,idPrefix:o=Am,nameGenerator:s,useFallbackUiForUnsupportedType:c=!1}=r;return{idPrefix:a["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:c,...i!==void 0&&{experimental_componentUpdateStrategy:i},...s!==void 0&&{nameGenerator:s}}}static getRegistry(r,a,i){var p;const{translateString:n,uiSchema:o={}}=r,{fields:s,templates:c,widgets:l,formContext:u,translateString:f}=rD();return{fields:{...s,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:o[lu],globalFormOptions:si.getGlobalFormOptions(r),uiSchemaDefinitions:o[Yw]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,o=cy(n);o[0]===""?o[0]=a:o.unshift(a);const s=o.join(i);let c=this.formElement.current.elements[s];c||(c=this.formElement.current.querySelector(`input[id^="${s}"], button[id^="${s}"]`)),c!=null&&c.length&&(c=c[0]),c&&c.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,className:i="",tagName:n,name:o,method:s,target:c,action:l,autoComplete:u,enctype:f,acceptCharset:p,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:m,fieldPathId:g,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:x}=S.templates.ButtonTemplates,O=y?n:void 0,C=y||n||"form";let{[ws]:_={}}=be(w);h&&(_={..._,props:{..._.props,disabled:!0}});const F={[Zn]:{[ws]:_}};return D.jsxs(C,{className:i||"rjsf",id:a,name:o,method:s,target:c,action:l,autoComplete:u,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:O,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),D.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:m,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||D.jsx(x,{uiSchema:F,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function aD(e,t="none"){return t==="all"?e:e.reduce((r,a)=>{const{message:i,schemaPath:n}=a,o=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Ve}/`):void 0,s=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Fe}/`):void 0;let c;return o&&o>=0?c=n==null?void 0:n.substring(0,o):s&&s>=0&&(c=n==null?void 0:n.substring(0,s)),(c?r.find(u=>{var f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(c))}):void 0)||r.push(a),r},[])}function iD(e=[],t,r,a){const i=e.map(n=>{var o;const{instancePath:s,keyword:c,params:l,schemaPath:u,parentSchema:f,...p}=n;let{message:d=""}=p,h=s.replace(/\//g,"."),k=`${h} ${d}`.trim(),v="";const y=[...((o=l.deps)===null||o===void 0?void 0:o.split(", "))||[],l.missingProperty,l.property].filter(b=>b);if(y.length>0)y.forEach(b=>{const w=h?`${h}.${b}`:b;let E=be(se(t,w.replace(/^\./,""))).title;if(E===void 0){const m=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=be(se(t,m)).title}if(E===void 0){const m=h.replace(/^\./,"").split(".").filter(Boolean);E=se(t,[...m,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const m=se(f,[Je,b,"title"]);if(m)d=d.replace(`'${b}'`,`'${m}'`),v=m;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const x of g)S.push(Je,x);S.push(Je,b,"title");const A=se(a,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),k=d;else{const b=be(se(t,h.replace(/^\./,""))).title;if(b)k=`'${b}' ${d}`.trim(),v=b;else{const w=f==null?void 0:f.title;w&&(k=`'${w}' ${d}`.trim(),v=w)}}return"missingProperty"in l&&(h=h?`${h}.${l.missingProperty}`:l.missingProperty),{name:c,property:h,message:d,params:l,stack:k,schemaPath:u,title:v}});return aD(i,r)}function oD(e,t,r,a,i,n,o,s){const{validationError:c}=t;let l=iD(t.errors,o,s,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,o));let u=gT(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=Rg(e,a,r,a,!0),p=i(f,cu(f),o,u),d=uy(p);return Mo({errors:l,errorSchema:u},d)}var pl={exports:{}},Gf={},Un={},Qa={},Jf={},Yf={},Xf={},Sv;function ml(){return Sv||(Sv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(b){if(super(),!e.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((w,E)=>`${w}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,E)=>(E instanceof r&&(w[E.str]=(w[E.str]||0)+1),w),{})}}e._Code=a,e.nil=new a("");function i(y,...b){const w=[y[0]];let E=0;for(;E<b.length;)s(w,b[E]),w.push(y[++E]);return new a(w)}e._=i;const n=new a("+");function o(y,...b){const w=[d(y[0])];let E=0;for(;E<b.length;)w.push(n),s(w,b[E]),w.push(n,d(y[++E]));return c(w),new a(w)}e.str=o;function s(y,b){b instanceof a?y.push(...b._items):b instanceof r?y.push(b):y.push(f(b))}e.addCodeArg=s;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===n){const w=l(y[b-1],y[b+1]);if(w!==void 0){y.splice(b-1,3,w);continue}y[b++]="+"}b++}}function l(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof r||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof r))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:o`${y}${b}`}e.strConcat=u;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:d(Array.isArray(y)?y.join(","):y)}function p(y){return new a(d(y))}e.stringify=p;function d(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(y){return typeof y=="string"&&e.IDENTIFIER.test(y)?new a(`.${y}`):i`[${y}]`}e.getProperty=h;function k(y){if(typeof y=="string"&&e.IDENTIFIER.test(y))return new a(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(y){return new a(y.toString())}e.regexpCode=v})(Xf)),Xf}var Zf={},Ev;function Cv(){return Ev||(Ev=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ml();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var a;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class n extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=n;const o=(0,t._)`\n`;class s extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?o:t.nil}}get(){return this._scope}name(l){return new n(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(l),{prefix:d}=p,h=(f=u.key)!==null&&f!==void 0?f:u.ref;let k=this._values[d];if(k){const b=k.get(h);if(b)return b}else k=this._values[d]=new Map;k.set(h,p);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,p.setValue(u,{property:d,itemIndex:y}),p}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(l,u,f={},p){let d=t.nil;for(const h in l){const k=l[h];if(!k)continue;const v=f[h]=f[h]||new Map;k.forEach(y=>{if(v.has(y))return;v.set(y,a.Started);let b=u(y);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${y} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=s})(Zf)),Zf}var Av;function Ue(){return Av||(Av=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ml(),r=Cv();var a=ml();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var i=Cv();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class n{optimizeNodes(){return this}optimizeNames(N,L){return this}}class o extends n{constructor(N,L,B){super(),this.varKind=N,this.name=L,this.rhs=B}render({es5:N,_n:L}){const B=N?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+L}optimizeNames(N,L){if(N[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,N,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends n{constructor(N,L,B){super(),this.lhs=N,this.rhs=L,this.sideEffects=B}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,L){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,N,L),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(N,this.rhs)}}class c extends s{constructor(N,L,B,V){super(N,B,V),this.op=L}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class l extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`break${this.label?` ${this.label}`:""};`+N}}class f extends n{constructor(N){super(),this.error=N}render({_n:N}){return`throw ${this.error};`+N}get names(){return this.error.names}}class p extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,L){return this.code=I(this.code,N,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(N=[]){super(),this.nodes=N}render(N){return this.nodes.reduce((L,B)=>L+B.render(N),"")}optimizeNodes(){const{nodes:N}=this;let L=N.length;for(;L--;){const B=N[L].optimizeNodes();Array.isArray(B)?N.splice(L,1,...B):B?N[L]=B:N.splice(L,1)}return N.length>0?this:void 0}optimizeNames(N,L){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(N,L)||(j(N,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((N,L)=>_(N,L.names),{})}}class h extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(N,L){super(L),this.condition=N}render(N){let L=`if(${this.condition})`+super.render(N);return this.else&&(L+="else "+this.else.render(N)),L}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new v(B):B}if(L)return N===!1?L instanceof y?L:L.nodes:this.nodes.length?this:new y($(N),L instanceof y?[L]:L.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(N,L),!!(super.optimizeNames(N,L)||this.else))return this.condition=I(this.condition,N,L),this}get names(){const N=super.names;return F(N,this.condition),this.else&&_(N,this.else.names),N}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iteration=I(this.iteration,N,L),this}get names(){return _(super.names,this.iteration.names)}}class E extends b{constructor(N,L,B,V){super(),this.varKind=N,this.name=L,this.from=B,this.to=V}render(N){const L=N.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${L} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(N)}get names(){const N=F(super.names,this.from);return F(N,this.to)}}class m extends b{constructor(N,L,B,V){super(),this.loop=N,this.varKind=L,this.name=B,this.iterable=V}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,L){if(super.optimizeNames(N,L))return this.iterable=I(this.iterable,N,L),this}get names(){return _(super.names,this.iterable.names)}}class g extends h{constructor(N,L,B){super(),this.name=N,this.args=L,this.async=B}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}g.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends h{render(N){let L="try"+super.render(N);return this.catch&&(L+=this.catch.render(N)),this.finally&&(L+=this.finally.render(N)),L}optimizeNodes(){var N,L;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(N,L){var B,V;return super.optimizeNames(N,L),(B=this.catch)===null||B===void 0||B.optimizeNames(N,L),(V=this.finally)===null||V===void 0||V.optimizeNames(N,L),this}get names(){const N=super.names;return this.catch&&_(N,this.catch.names),this.finally&&_(N,this.finally.names),N}}class x extends h{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}x.kind="catch";class O extends h{render(N){return"finally"+super.render(N)}}O.kind="finally";class C{constructor(N,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
|
|
99
|
+
`:""},this._extScope=N,this._scope=new r.Scope({parent:N}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(N){return this._scope.name(N)}scopeName(N){return this._extScope.name(N)}scopeValue(N,L){const B=this._extScope.value(N,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(N,L){return this._extScope.getValue(N,L)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,L,B,V){const K=this._scope.toName(L);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new o(N,K,B)),K}const(N,L,B){return this._def(r.varKinds.const,N,L,B)}let(N,L,B){return this._def(r.varKinds.let,N,L,B)}var(N,L,B){return this._def(r.varKinds.var,N,L,B)}assign(N,L,B){return this._leafNode(new s(N,L,B))}add(N,L){return this._leafNode(new c(N,e.operators.ADD,L))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new p(N)),this}object(...N){const L=["{"];for(const[B,V]of N)L.length>1&&L.push(","),L.push(B),(B!==V||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,V));return L.push("}"),new t._Code(L)}if(N,L,B){if(this._blockNode(new y(N)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new y(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(N,L){return this._blockNode(N),L&&this.code(L).endFor(),this}for(N,L){return this._for(new w(N),L)}forRange(N,L,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(N);return this._for(new E(K,J,L,B),()=>V(J))}forOf(N,L,B,V=r.varKinds.const){const K=this._scope.toName(N);if(this.opts.es5){const J=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new m("of",V,K,L),()=>B(K))}forIn(N,L,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${L})`,B);const K=this._scope.toName(N);return this._for(new m("in",V,K,L),()=>B(K))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new l(N))}break(N){return this._leafNode(new u(N))}return(N){const L=new S;if(this._blockNode(L),this.code(N),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new A;if(this._blockNode(V),this.code(N),L){const K=this.name("e");this._currNode=V.catch=new x(K),L(K)}return B&&(this._currNode=V.finally=new O,this.code(B)),this._endBlockNode(x,O)}throw(N){return this._leafNode(new f(N))}block(N,L){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(L),this}endBlock(N){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||N!==void 0&&B!==N)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${N} expected`);return this._nodes.length=L,this}func(N,L=t.nil,B,V){return this._blockNode(new g(N,L,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(N=1){for(;N-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(N){return this._currNode.nodes.push(N),this}_blockNode(N){this._currNode.nodes.push(N),this._nodes.push(N)}_endBlockNode(N,L){const B=this._currNode;if(B instanceof N||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${N.kind}/${L.kind}`:N.kind}"`)}_elseNode(N){const L=this._currNode;if(!(L instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const L=this._nodes;L[L.length-1]=N}}e.CodeGen=C;function _(T,N){for(const L in N)T[L]=(T[L]||0)+(N[L]||0);return T}function F(T,N){return N instanceof t._CodeOrName?_(T,N.names):T}function I(T,N,L){if(T instanceof t.Name)return B(T);if(!V(T))return T;return new t._Code(T._items.reduce((K,J)=>(J instanceof t.Name&&(J=B(J)),J instanceof t._Code?K.push(...J._items):K.push(J),K),[]));function B(K){const J=L[K.str];return J===void 0||N[K.str]!==1?K:(delete N[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&N[J.str]===1&&L[J.str]!==void 0)}}function j(T,N){for(const L in N)T[L]=(T[L]||0)-(N[L]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=M(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=M(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function M(T){return(N,L)=>N===t.nil?L:L===t.nil?N:(0,t._)`${U(N)} ${T} ${U(L)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(Yf)),Yf}var Be={},_v;function et(){if(_v)return Be;_v=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.checkStrictMode=Be.getErrorPath=Be.Type=Be.useFunc=Be.setEvaluated=Be.evaluatedPropsToName=Be.mergeEvaluated=Be.eachItem=Be.unescapeJsonPointer=Be.escapeJsonPointer=Be.escapeFragment=Be.unescapeFragment=Be.schemaRefOrVal=Be.schemaHasRulesButRef=Be.schemaHasRules=Be.checkUnknownRules=Be.alwaysValidSchema=Be.toHash=void 0;const e=Ue(),t=ml();function r(m){const g={};for(const S of m)g[S]=!0;return g}Be.toHash=r;function a(m,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(m,g),!n(g,m.self.RULES.all))}Be.alwaysValidSchema=a;function i(m,g=m.schema){const{opts:S,self:A}=m;if(!S.strictSchema||typeof g=="boolean")return;const x=A.RULES.keywords;for(const O in g)x[O]||E(m,`unknown keyword: "${O}"`)}Be.checkUnknownRules=i;function n(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(g[S])return!0;return!1}Be.schemaHasRules=n;function o(m,g){if(typeof m=="boolean")return!m;for(const S in m)if(S!=="$ref"&&g.all[S])return!0;return!1}Be.schemaHasRulesButRef=o;function s({topSchemaRef:m,schemaPath:g},S,A,x){if(!x){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${m}${g}${(0,e.getProperty)(A)}`}Be.schemaRefOrVal=s;function c(m){return f(decodeURIComponent(m))}Be.unescapeFragment=c;function l(m){return encodeURIComponent(u(m))}Be.escapeFragment=l;function u(m){return typeof m=="number"?`${m}`:m.replace(/~/g,"~0").replace(/\//g,"~1")}Be.escapeJsonPointer=u;function f(m){return m.replace(/~1/g,"/").replace(/~0/g,"~")}Be.unescapeJsonPointer=f;function p(m,g){if(Array.isArray(m))for(const S of m)g(S);else g(m)}Be.eachItem=p;function d({mergeNames:m,mergeToName:g,mergeValues:S,resultToName:A}){return(x,O,C,_)=>{const F=C===void 0?O:C instanceof e.Name?(O instanceof e.Name?m(x,O,C):g(x,O,C),C):O instanceof e.Name?(g(x,C,O),O):S(O,C);return _===e.Name&&!(F instanceof e.Name)?A(x,F):F}}Be.mergeEvaluated={props:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{m.if((0,e._)`${g} === true`,()=>m.assign(S,!0),()=>m.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>{g===!0?m.assign(S,!0):(m.assign(S,(0,e._)`${S} || {}`),k(m,S,g))}),mergeValues:(m,g)=>m===!0?!0:{...m,...g},resultToName:h}),items:d({mergeNames:(m,g,S)=>m.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>m.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(m,g,S)=>m.if((0,e._)`${S} !== true`,()=>m.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(m,g)=>m===!0?!0:Math.max(m,g),resultToName:(m,g)=>m.var("items",g)})};function h(m,g){if(g===!0)return m.var("props",!0);const S=m.var("props",(0,e._)`{}`);return g!==void 0&&k(m,S,g),S}Be.evaluatedPropsToName=h;function k(m,g,S){Object.keys(S).forEach(A=>m.assign((0,e._)`${g}${(0,e.getProperty)(A)}`,!0))}Be.setEvaluated=k;const v={};function y(m,g){return m.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}Be.useFunc=y;var b;(function(m){m[m.Num=0]="Num",m[m.Str=1]="Str"})(b||(Be.Type=b={}));function w(m,g,S){if(m instanceof e.Name){const A=g===b.Num;return S?A?(0,e._)`"[" + ${m} + "]"`:(0,e._)`"['" + ${m} + "']"`:A?(0,e._)`"/" + ${m}`:(0,e._)`"/" + ${m}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(m).toString():"/"+u(m)}Be.getErrorPath=w;function E(m,g,S=m.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);m.self.logger.warn(g)}}return Be.checkStrictMode=E,Be}var hl={},Ov;function ka(){if(Ov)return hl;Ov=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Ue(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return hl.default=t,hl}var xv;function gl(){return xv||(xv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ue(),r=et(),a=ka();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:y})=>y?(0,t.str)`"${v}" keyword must be ${y} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,y=e.keywordError,b,w){const{it:E}=v,{gen:m,compositeRule:g,allErrors:S}=E,A=f(v,y,b);w??(g||S)?c(m,A):l(E,(0,t._)`[${A}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:m,allErrors:g}=w,S=f(v,y,b);c(E,S),m||g||l(w,a.default.vErrors)}e.reportExtraError=n;function o(v,y){v.assign(a.default.errors,y),v.if((0,t._)`${a.default.vErrors} !== null`,()=>v.if(y,()=>v.assign((0,t._)`${a.default.vErrors}.length`,y),()=>v.assign(a.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:v,keyword:y,schemaValue:b,data:w,errsCount:E,it:m}){if(E===void 0)throw new Error("ajv implementation error");const g=v.name("err");v.forRange("i",E,a.default.errors,S=>{v.const(g,(0,t._)`${a.default.vErrors}[${S}]`),v.if((0,t._)`${g}.instancePath === undefined`,()=>v.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(a.default.instancePath,m.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${m.errSchemaPath}/${y}`),m.opts.verbose&&(v.assign((0,t._)`${g}.schema`,b),v.assign((0,t._)`${g}.data`,w))})}e.extendErrors=s;function c(v,y){const b=v.const("err",y);v.if((0,t._)`${a.default.vErrors} === null`,()=>v.assign(a.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${a.default.vErrors}.push(${b})`),v.code((0,t._)`${a.default.errors}++`)}function l(v,y){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${y})`):(b.assign((0,t._)`${w}.errors`,y),b.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(v,y,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,y,b)}function p(v,y,b={}){const{gen:w,it:E}=v,m=[d(E,b),h(v,b)];return k(v,y,m),w.object(...m)}function d({errorPath:v},{instancePath:y}){const b=y?(0,t.str)`${v}${(0,r.getErrorPath)(y,r.Type.Str)}`:v;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,b)]}function h({keyword:v,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:w}){let E=w?y:(0,t.str)`${y}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,E]}function k(v,{params:y,message:b},w){const{keyword:E,data:m,schemaValue:g,it:S}=v,{opts:A,propertyName:x,topSchemaRef:O,schemaPath:C}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),A.messages&&w.push([u.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${O}${C}`],[a.default.data,m]),x&&w.push([u.propertyName,x])}})(Jf)),Jf}var Tv;function sD(){if(Tv)return Qa;Tv=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.boolOrEmptySchema=Qa.topBoolOrEmptySchema=void 0;const e=gl(),t=Ue(),r=ka(),a={message:"boolean schema is false"};function i(s){const{gen:c,schema:l,validateName:u}=s;l===!1?o(s,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Qa.topBoolOrEmptySchema=i;function n(s,c){const{gen:l,schema:u}=s;u===!1?(l.var(c,!1),o(s)):l.var(c,!0)}Qa.boolOrEmptySchema=n;function o(s,c){const{gen:l,data:u}=s,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(f,a,void 0,c)}return Qa}var rr={},ei={},Pv;function Iv(){if(Pv)return ei;Pv=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.getRules=ei.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}ei.isJSONType=r;function a(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return ei.getRules=a,ei}var Bn={},Nv;function Dv(){if(Nv)return Bn;Nv=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.shouldUseRule=Bn.shouldUseGroup=Bn.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const o=i.RULES.types[n];return o&&o!==!0&&t(a,o)}Bn.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Bn.shouldUseGroup=t;function r(a,i){var n;return a[i.keyword]!==void 0||((n=i.definition.implements)===null||n===void 0?void 0:n.some(o=>a[o]!==void 0))}return Bn.shouldUseRule=r,Bn}var Fv;function yl(){if(Fv)return rr;Fv=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.reportTypeError=rr.checkDataTypes=rr.checkDataType=rr.coerceAndCheckDataType=rr.getJSONTypes=rr.getSchemaTypes=rr.DataType=void 0;const e=Iv(),t=Dv(),r=gl(),a=Ue(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(rr.DataType=n={}));function o(b){const w=s(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}rr.getSchemaTypes=o;function s(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}rr.getJSONTypes=s;function c(b,w){const{gen:E,data:m,opts:g}=b,S=u(w,g.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const x=h(w,m,g.strictNumbers,n.Wrong);E.if(x,()=>{S.length?f(b,w,S):v(b)})}return A}rr.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(b,w){return w?b.filter(E=>l.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:m,data:g,opts:S}=b,A=m.let("dataType",(0,a._)`typeof ${g}`),x=m.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&m.if((0,a._)`${A} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>m.assign(g,(0,a._)`${g}[0]`).assign(A,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>m.assign(x,g))),m.if((0,a._)`${x} !== undefined`);for(const C of E)(l.has(C)||C==="array"&&S.coerceTypes==="array")&&O(C);m.else(),v(b),m.endIf(),m.if((0,a._)`${x} !== undefined`,()=>{m.assign(g,x),p(b,x)});function O(C){switch(C){case"string":m.elseIf((0,a._)`${A} == "number" || ${A} == "boolean"`).assign(x,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(x,(0,a._)`""`);return;case"number":m.elseIf((0,a._)`${A} == "boolean" || ${g} === null
|
|
100
100
|
|| (${A} == "string" && ${g} && ${g} == +${g})`).assign(x,(0,a._)`+${g}`);return;case"integer":m.elseIf((0,a._)`${A} === "boolean" || ${g} === null
|
|
101
101
|
|| (${A} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(x,(0,a._)`+${g}`);return;case"boolean":m.elseIf((0,a._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(x,!1).elseIf((0,a._)`${g} === "true" || ${g} === 1`).assign(x,!0);return;case"null":m.elseIf((0,a._)`${g} === "" || ${g} === 0 || ${g} === false`),m.assign(x,null);return;case"array":m.elseIf((0,a._)`${A} === "string" || ${A} === "number"
|
|
102
|
-
|| ${A} === "boolean" || ${g} === null`).assign(x,(0,a._)`[${g}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},m){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,m))}function d(b,w,E,m=n.Correct){const g=m===n.Correct?a.operators.EQ:a.operators.NEQ;let S;switch(b){case"null":return(0,a._)`${w} ${g} null`;case"array":S=(0,a._)`Array.isArray(${w})`;break;case"object":S=(0,a._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return m===n.Correct?S:(0,a.not)(S);function A(x=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,x,E?(0,a._)`isFinite(${w})`:a.nil)}}rr.checkDataType=d;function h(b,w,E,m){if(b.length===1)return d(b[0],w,E,m);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const A=(0,a._)`typeof ${w} != "object"`;g=S.null?A:(0,a._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const A in S)g=(0,a.and)(g,d(A,w,E,m));return g}rr.checkDataTypes=h;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,a._)`{type: ${b}}`:(0,a._)`{type: ${w}}`};function v(b){const w=y(b);(0,r.reportError)(w,k)}rr.reportTypeError=v;function y(b){const{gen:w,data:E,schema:m}=b,g=(0,i.schemaRefOrVal)(b,m,"type");return{gen:w,keyword:"type",data:E,schema:m.type,schemaCode:g,schemaValue:g,parentSchema:m,params:{},it:b}}return rr}var $s={},Fv;function sD(){if(Fv)return $s;Fv=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.assignDefaults=void 0;const e=Ue(),t=et();function r(i,n){const{properties:s,items:o}=i.schema;if(n==="object"&&s)for(const c in s)a(i,c,s[c].default);else n==="array"&&Array.isArray(o)&&o.forEach((c,l)=>a(i,l,c.default))}$s.assignDefaults=r;function a(i,n,s){const{gen:o,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(n)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let p=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),o.if(p,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return $s}var un={},yt={},Mv;function fn(){if(Mv)return yt;Mv=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.validateUnion=yt.validateArray=yt.usePattern=yt.callValidateCode=yt.schemaProperties=yt.allSchemaProperties=yt.noPropertyInData=yt.propertyInData=yt.isOwnProperty=yt.hasPropFunc=yt.reportMissingProp=yt.checkMissingProp=yt.checkReportMissingProp=void 0;const e=Ue(),t=et(),r=ka(),a=et();function i(b,w){const{gen:E,data:m,it:g}=b;E.if(u(E,m,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}yt.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},m,g){return(0,e.or)(...m.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}yt.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}yt.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}yt.hasPropFunc=o;function c(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}yt.isOwnProperty=c;function l(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return m?(0,e._)`${g} && ${c(b,w,E)}`:g}yt.propertyInData=l;function u(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return m?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}yt.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}yt.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}yt.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:m,schemaPath:g,errorPath:S},it:A},x,O,C){const _=C?(0,e._)`${b}, ${w}, ${m}${g}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${_}, ${E.object(...F)}`;return O!==e.nil?(0,e._)`${x}.call(${O}, ${I})`:(0,e._)`${x}(${I})`}yt.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const m=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,m);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${m})`})}yt.usePattern=k;function v(b){const{gen:w,data:E,keyword:m,it:g}=b,S=w.name("valid");if(g.allErrors){const x=w.let("valid",!0);return A(()=>w.assign(x,!1)),x}return w.var(S,!0),A(()=>w.break()),S;function A(x){const O=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,O,C=>{b.subschema({keyword:m,dataProp:C,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),x)})}}yt.validateArray=v;function y(b){const{gen:w,schema:E,keyword:m,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(O=>(0,t.alwaysValidSchema)(g,O))&&!g.opts.unevaluated)return;const A=w.let("valid",!1),x=w.name("_valid");w.block(()=>E.forEach((O,C)=>{const _=b.subschema({keyword:m,schemaProp:C,compositeRule:!0},x);w.assign(A,(0,e._)`${A} || ${x}`),b.mergeValidEvaluated(_,x)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return yt.validateUnion=y,yt}var jv;function oD(){if(jv)return un;jv=1,Object.defineProperty(un,"__esModule",{value:!0}),un.validateKeywordUsage=un.validSchemaType=un.funcKeywordCode=un.macroKeywordCode=void 0;const e=Ue(),t=ka(),r=fn(),a=gl();function i(p,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=p,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const m=h.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},m),p.pass(m,()=>p.error(!0))}un.macroKeywordCode=i;function n(p,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=p;c(E,d);const m=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,m),S=k.let("valid");p.block$data(S,A),p.ok((h=d.valid)!==null&&h!==void 0?h:S);function A(){if(d.errors===!1)C(),d.modifying&&s(p),_(()=>p.error());else{const F=d.async?x():O();d.modifying&&s(p),_(()=>o(p,F))}}function x(){const F=k.let("ruleErrs",null);return k.try(()=>C((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${I}.errors`),()=>k.throw(I))),F}function O(){const F=(0,e._)`${g}.errors`;return k.assign(F,null),C(e.nil),F}function C(F=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${F}${(0,r.callValidateCode)(p,g,I,j)}`,d.modifying)}function _(F){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),F)}}un.funcKeywordCode=n;function s(p){const{gen:d,data:h,it:k}=p;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(p,d){const{gen:h}=p;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function l(p,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(p,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||h&&typeof p>"u")}un.validSchemaType=u;function f({schema:p,opts:d,self:h,errSchemaPath:k},v,y){if(Array.isArray(v.keyword)?!v.keyword.includes(y):v.keyword!==y)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[y])){const E=`keyword "${y}" value is invalid at path "${k}": `+h.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(E);else throw new Error(E)}}return un.validateKeywordUsage=f,un}var Vn={},Lv;function lD(){if(Lv)return Vn;Lv=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.extendSubschemaMode=Vn.extendSubschemaData=Vn.getSubschema=void 0;const e=Ue(),t=et();function r(n,{keyword:s,schemaProp:o,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const p=n.schema[s];return o===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:p[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(c!==void 0){if(l===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Vn.getSubschema=r;function a(n,s,{dataProp:o,dataPropType:c,data:l,dataTypes:u,propertyName:f}){if(l!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=s;if(o!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=s,y=p.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(y),n.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(o,c,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(l!==void 0){const h=l instanceof e.Name?l:p.let("data",l,!0);d(h),f!==void 0&&(n.propertyName=f)}u&&(n.dataTypes=u);function d(h){n.data=h,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,h]}}Vn.extendSubschemaData=a;function i(n,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(n.compositeRule=c),l!==void 0&&(n.createErrors=l),u!==void 0&&(n.allErrors=u),n.jtdDiscriminator=s,n.jtdMetadata=o}return Vn.extendSubschemaMode=i,Vn}var pr={},Qf,Rv;function qv(){return Rv||(Rv=1,Qf=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(n=Object.keys(t),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),Qf}var ed={exports:{}},zv;function cD(){if(zv)return ed.exports;zv=1;var e=ed.exports=function(a,i,n){typeof i=="function"&&(n=i,i={}),n=i.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(i,s,o,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(a,i,n,s,o,c,l,u,f,p){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,l,u,f,p);for(var d in s){var h=s[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var k=0;k<h.length;k++)t(a,i,n,h[k],o+"/"+d+"/"+k,c,o,d,s,k)}else if(d in e.propsKeywords){if(h&&typeof h=="object")for(var v in h)t(a,i,n,h[v],o+"/"+d+"/"+r(v),c,o,d,s,v)}else(d in e.keywords||a.allKeys&&!(d in e.skipKeywords))&&t(a,i,n,h,o+"/"+d,c,o,d,s)}n(s,o,c,l,u,f,p)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return ed.exports}var $v;function vl(){if($v)return pr;$v=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.getSchemaRefs=pr.resolveUrl=pr.normalizeId=pr._getFullPath=pr.getFullPath=pr.inlineRef=void 0;const e=et(),t=qv(),r=cD(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(k,v=!0){return typeof k=="boolean"?!0:v===!0?!s(k):v?o(k)<=v:!1}pr.inlineRef=i;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const y=k[v];if(Array.isArray(y)&&y.some(s)||typeof y=="object"&&s(y))return!0}return!1}function o(k){let v=0;for(const y in k){if(y==="$ref")return 1/0;if(v++,!a.has(y)&&(typeof k[y]=="object"&&(0,e.eachItem)(k[y],b=>v+=o(b)),v===1/0))return 1/0}return v}function c(k,v="",y){y!==!1&&(v=f(v));const b=k.parse(v);return l(k,b)}pr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}pr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}pr.normalizeId=f;function p(k,v,y){return y=f(y),k.resolve(v,y)}pr.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function h(k,v){if(typeof k=="boolean")return{};const{schemaId:y,uriResolver:b}=this.opts,w=f(k[y]||v),E={"":w},m=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(O,C,_,F)=>{if(F===void 0)return;const I=m+C;let j=E[F];typeof O[y]=="string"&&(j=$.call(this,O[y])),Y.call(this,O.$anchor),Y.call(this,O.$dynamicAnchor),E[C]=j;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(j?ie(j,Z):Z),S.has(Z))throw x(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(O,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(A(O,g[Z],Z),g[Z]=O):this.refs[Z]=I),Z}function Y(Z){if(typeof Z=="string"){if(!d.test(Z))throw new Error(`invalid anchor "${Z}"`);$.call(this,`#${Z}`)}}}),g;function A(O,C,_){if(C!==void 0&&!t(O,C))throw x(_)}function x(O){return new Error(`reference "${O}" resolves to more than one schema`)}}return pr.getSchemaRefs=h,pr}var Uv;function bl(){if(Uv)return Un;Uv=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.getData=Un.KeywordCxt=Un.validateFunctionCode=void 0;const e=iD(),t=yl(),r=Nv(),a=yl(),i=sD(),n=oD(),s=lD(),o=Ue(),c=ka(),l=vl(),u=et(),f=gl();function p(q){if(m(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Un.validateFunctionCode=p;function d({gen:q,validateName:z,schema:W,schemaEnv:G,opts:te},ae){te.code.es5?q.func(z,(0,o._)`${c.default.data}, ${c.default.valCxt}`,G.$async,()=>{q.code((0,o._)`"use strict"; ${b(W,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,o._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(W,te)).code(ae))}function h(q){return(0,o._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${q.dynamicRef?(0,o._)`, ${c.default.dynamicAnchors}={}`:o.nil}}={}`}function k(q,z){q.if(c.default.valCxt,()=>{q.var(c.default.instancePath,(0,o._)`${c.default.valCxt}.${c.default.instancePath}`),q.var(c.default.parentData,(0,o._)`${c.default.valCxt}.${c.default.parentData}`),q.var(c.default.parentDataProperty,(0,o._)`${c.default.valCxt}.${c.default.parentDataProperty}`),q.var(c.default.rootData,(0,o._)`${c.default.valCxt}.${c.default.rootData}`),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,o._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{q.var(c.default.instancePath,(0,o._)`""`),q.var(c.default.parentData,(0,o._)`undefined`),q.var(c.default.parentDataProperty,(0,o._)`undefined`),q.var(c.default.rootData,c.default.data),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,o._)`{}`)})}function v(q){const{schema:z,opts:W,gen:G}=q;d(q,()=>{W.$comment&&z.$comment&&F(q),O(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),W.unevaluated&&y(q),A(q),I(q)})}function y(q){const{gen:z,validateName:W}=q;q.evaluated=z.const("evaluated",(0,o._)`${W}.evaluated`),z.if((0,o._)`${q.evaluated}.dynamicProps`,()=>z.assign((0,o._)`${q.evaluated}.props`,(0,o._)`undefined`)),z.if((0,o._)`${q.evaluated}.dynamicItems`,()=>z.assign((0,o._)`${q.evaluated}.items`,(0,o._)`undefined`))}function b(q,z){const W=typeof q=="object"&&q[z.schemaId];return W&&(z.code.source||z.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w(q,z){if(m(q)&&(S(q),E(q))){g(q,z);return}(0,e.boolOrEmptySchema)(q,z)}function E({schema:q,self:z}){if(typeof q=="boolean")return!q;for(const W in q)if(z.RULES.all[W])return!0;return!1}function m(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:W,gen:G,opts:te}=q;te.$comment&&W.$comment&&F(q),C(q),_(q);const ae=G.const("_errs",c.default.errors);A(q,ae),G.var(z,(0,o._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),x(q)}function A(q,z){if(q.opts.jtd)return $(q,[],!1,z);const W=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,W);$(q,W,!G,z)}function x(q){const{schema:z,errSchemaPath:W,opts:G,self:te}=q;z.$ref&&G.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function O(q){const{schema:z,opts:W}=q;z.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function C(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function _(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:q,schemaEnv:z,schema:W,errSchemaPath:G,opts:te}){const ae=W.$comment;if(te.$comment===!0)q.code((0,o._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const pe=(0,o.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,o._)`${c.default.self}.opts.$comment(${ae}, ${pe}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:W,validateName:G,ValidationError:te,opts:ae}=q;W.$async?z.if((0,o._)`${c.default.errors} === 0`,()=>z.return(c.default.data),()=>z.throw((0,o._)`new ${te}(${c.default.vErrors})`)):(z.assign((0,o._)`${G}.errors`,c.default.vErrors),ae.unevaluated&&j(q),z.return((0,o._)`${c.default.errors} === 0`))}function j({gen:q,evaluated:z,props:W,items:G}){W instanceof o.Name&&q.assign((0,o._)`${z}.props`,W),G instanceof o.Name&&q.assign((0,o._)`${z}.items`,G)}function $(q,z,W,G){const{gen:te,schema:ae,data:pe,allErrors:ve,opts:Ae,self:Se}=q,{RULES:De}=Se;if(ae.$ref&&(Ae.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,De))){te.block(()=>V(q,"$ref",De.all.$ref.definition));return}Ae.jtd||Z(q,z),te.block(()=>{for(const Le of De.rules)he(Le);he(De.post)});function he(Le){(0,r.shouldUseGroup)(ae,Le)&&(Le.type?(te.if((0,a.checkDataType)(Le.type,pe,Ae.strictNumbers)),Y(q,Le),z.length===1&&z[0]===Le.type&&W&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,Le),ve||te.if((0,o._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:W,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),W.block(()=>{for(const ae of z.rules)(0,r.shouldUseRule)(G,ae)&&V(q,ae.keyword,ae.definition,z.type)})}function Z(q,z){q.schemaEnv.meta||!q.opts.strictTypes||(ie(q,z),q.opts.allowUnionTypes||P(q,z),M(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(W=>{T(q.dataTypes,W)||L(q,`type "${W}" not allowed by context "${q.dataTypes.join(",")}"`)}),N(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&L(q,"use allowUnionTypes to allow union type keyword")}function M(q,z){const W=q.self.RULES.all;for(const G in W){const te=W[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(pe=>U(z,pe))&&L(q,`missing type "${ae.join(",")}" for keyword "${G}"`)}}}function U(q,z){return q.includes(z)||z==="number"&&q.includes("integer")}function T(q,z){return q.includes(z)||z==="integer"&&q.includes("number")}function N(q,z){const W=[];for(const G of q.dataTypes)T(z,G)?W.push(G):z.includes("integer")&&G==="number"&&W.push("integer");q.dataTypes=W}function L(q,z){const W=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${W}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,W,G){if((0,n.validateKeywordUsage)(z,W,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=W.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=W.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=W,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,W,G){this.failResult((0,o.not)(z),W,G)}failResult(z,W,G){this.gen.if(z),G?G():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,W){this.failResult((0,o.not)(z),void 0,W)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),z)})`)}error(z,W,G){if(W){this.setParams(W),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,W){(z?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,W){W?Object.assign(this.params,z):this.params=z}block$data(z,W,G=o.nil){this.gen.block(()=>{this.check$data(z,G),W()})}check$data(z=o.nil,W=o.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:pe}=this;G.if((0,o.or)((0,o._)`${te} === undefined`,W)),z!==o.nil&&G.assign(z,!0),(ae.length||pe.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==o.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:W,schemaType:G,def:te,it:ae}=this;return(0,o.or)(pe(),ve());function pe(){if(G.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const Ae=Array.isArray(G)?G:[G];return(0,o._)`${(0,a.checkDataTypes)(Ae,W,ae.opts.strictNumbers,a.DataType.Wrong)}`}return o.nil}function ve(){if(te.validateSchema){const Ae=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,o._)`!${Ae}(${W})`}return o.nil}}subschema(z,W){const G=(0,s.getSubschema)(this.it,z);(0,s.extendSubschemaData)(G,this.it,z),(0,s.extendSubschemaMode)(G,z);const te={...this.it,...G,items:void 0,props:void 0};return w(te,W),te}mergeEvaluated(z,W){const{it:G,gen:te}=this;G.opts.unevaluated&&(G.props!==!0&&z.props!==void 0&&(G.props=u.mergeEvaluated.props(te,z.props,G.props,W)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,W)))}mergeValidEvaluated(z,W){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(W,()=>this.mergeEvaluated(z,o.Name)),!0}}Un.KeywordCxt=B;function V(q,z,W,G){const te=new B(q,W,z);"code"in W?W.code(te,G):te.$data&&W.validate?(0,n.funcKeywordCode)(te,W):"macro"in W?(0,n.macroKeywordCode)(te,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(te,W)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:W,dataPathArr:G}){let te,ae;if(q==="")return c.default.rootData;if(q[0]==="/"){if(!K.test(q))throw new Error(`Invalid JSON-pointer: ${q}`);te=q,ae=c.default.rootData}else{const Se=J.exec(q);if(!Se)throw new Error(`Invalid JSON-pointer: ${q}`);const De=+Se[1];if(te=Se[2],te==="#"){if(De>=z)throw new Error(Ae("property/index",De));return G[z-De]}if(De>z)throw new Error(Ae("data",De));if(ae=W[z-De],!te)return ae}let pe=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,o._)`${ae}${(0,o.getProperty)((0,u.unescapeJsonPointer)(Se))}`,pe=(0,o._)`${pe} && ${ae}`);return pe;function Ae(Se,De){return`Cannot access ${Se} ${De} levels up, current level is ${z}`}}return Un.getData=Q,Un}var kl={},Bv;function td(){if(Bv)return kl;Bv=1,Object.defineProperty(kl,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return kl.default=e,kl}var wl={},Vv;function Sl(){if(Vv)return wl;Vv=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=vl();class t extends Error{constructor(a,i,n,s){super(s||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,e.resolveUrl)(a,i,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return wl.default=t,wl}var Pr={},Hv;function rd(){if(Hv)return Pr;Hv=1,Object.defineProperty(Pr,"__esModule",{value:!0}),Pr.resolveSchema=Pr.getCompilingSchema=Pr.resolveRef=Pr.compileSchema=Pr.SchemaEnv=void 0;const e=Ue(),t=td(),r=ka(),a=vl(),i=et(),n=bl();class s{constructor(y){var b;this.refs={},this.dynamicAnchors={};let w;typeof y.schema=="object"&&(w=y.schema),this.schema=y.schema,this.schemaId=y.schemaId,this.root=y.root||this,this.baseId=(b=y.baseId)!==null&&b!==void 0?b:(0,a.normalizeId)(w==null?void 0:w[y.schemaId||"$id"]),this.schemaPath=y.schemaPath,this.localRefs=y.localRefs,this.meta=y.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}Pr.SchemaEnv=s;function o(v){const y=u.call(this,v);if(y)return y;const b=(0,a.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:m}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:m});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=g.scopeName("validate");v.validateName=A;const x={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:A,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let O;try{this._compilations.add(v),(0,n.validateFunctionCode)(x),g.optimize(this.opts.code.optimize);const C=g.toString();O=`${g.scopeRefs(r.default.scope)}return ${C}`,this.opts.code.process&&(O=this.opts.code.process(O,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,O)(this,this.scope.get());if(this.scope.value(A,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:A,validateCode:C,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:j}=x;F.evaluated={props:I instanceof e.Name?void 0:I,items:j instanceof e.Name?void 0:j,dynamicProps:I instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(C){throw delete v.validate,delete v.validateName,O&&this.logger.error("Error compiling schema, function code:",O),C}finally{this._compilations.delete(v)}}Pr.compileSchema=o;function c(v,y,b){var w;b=(0,a.resolveUrl)(this.opts.uriResolver,y,b);const E=v.refs[b];if(E)return E;let m=p.call(this,v,b);if(m===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(m=new s({schema:g,schemaId:S,root:v,baseId:y}))}if(m!==void 0)return v.refs[b]=l.call(this,m)}Pr.resolveRef=c;function l(v){return(0,a.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function u(v){for(const y of this._compilations)if(f(y,v))return y}Pr.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function p(v,y){let b;for(;typeof(b=this.refs[y])=="string";)y=b;return b||this.schemas[y]||d.call(this,v,y)}function d(v,y){const b=this.opts.uriResolver.parse(y),w=(0,a._getFullPath)(this.opts.uriResolver,b);let E=(0,a.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const m=(0,a.normalizeId)(w),g=this.refs[m]||this.schemas[m];if(typeof g=="string"){const S=d.call(this,v,g);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(g==null?void 0:g.schema)=="object"){if(g.validate||o.call(this,g),m===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:A}=this.opts,x=S[A];return x&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,x)),new s({schema:S,schemaId:A,root:v,baseId:E})}return k.call(this,b,g)}}Pr.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:y,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,i.unescapeFragment)(S)];if(A===void 0)return;b=A;const x=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&x&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,x))}let m;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);m=d.call(this,w,S)}const{schemaId:g}=this.opts;if(m=m||new s({schema:b,schemaId:g,root:w,baseId:y}),m.schema!==m.root.schema)return m}return Pr}const uD={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var El={},Us={exports:{}},nd,Wv;function Kv(){if(Wv)return nd;Wv=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(m){let g="",S=0,A=0;for(A=0;A<m.length;A++)if(S=m[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A];break}for(A+=1;A<m.length;A++){if(S=m[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A]}return g}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(m){return m.length=0,!0}function c(m,g,S){if(m.length){const A=n(m);if(A!=="")g.push(A);else return S.error=!0,!1;m.length=0}return!0}function l(m){let g=0;const S={error:!1,address:"",zone:""},A=[],x=[];let O=!1,C=!1,_=c;for(let F=0;F<m.length;F++){const I=m[F];if(!(I==="["||I==="]"))if(I===":"){if(O===!0&&(C=!0),!_(x,A,S))break;if(++g>7){S.error=!0;break}F>0&&m[F-1]===":"&&(O=!0),A.push(":");continue}else if(I==="%"){if(!_(x,A,S))break;_=o}else{x.push(I);continue}}return x.length&&(_===o?S.zone=x.join(""):C?A.push(x.join("")):A.push(n(x))),S.address=A.join(""),S}function u(m){if(f(m,":")<2)return{host:m,isIPV6:!1};const g=l(m);if(g.error)return{host:m,isIPV6:!1};{let S=g.address,A=g.address;return g.zone&&(S+="%"+g.zone,A+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(m,g){let S=0;for(let A=0;A<m.length;A++)m[A]===g&&S++;return S}function p(m){let g=m;const S=[];let A=-1,x=0;for(;x=g.length;){if(x===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(x===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){S.push("/");break}}else if(x===3&&g==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),S.length!==0&&S.pop();continue}}if((A=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,A)),g=g.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(m,g){const S=g?k:h;return S.lastIndex=0,m.replace(S,A=>d[A])}function y(m,g=!1){if(m.indexOf("%")===-1)return m;let S="";for(let A=0;A<m.length;A++){if(m[A]==="%"&&A+2<m.length){const x=m.slice(A+1,A+3);if(r(x)){const O=x.toUpperCase(),C=String.fromCharCode(parseInt(O,16));g&&a(C)?S+=C:S+="%"+O,A+=2;continue}}S+=m[A]}return S}function b(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){const x=A.toUpperCase(),O=String.fromCharCode(parseInt(x,16));O!=="."&&a(O)?g+=O:g+="%"+x,S+=2;continue}}i(m[S])?g+=m[S]:g+=escape(m[S])}return g}function w(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){g+="%"+A.toUpperCase(),S+=2;continue}}g+=escape(m[S])}return g}function E(m){const g=[];if(m.userinfo!==void 0&&(g.push(m.userinfo),g.push("@")),m.host!==void 0){let S=unescape(m.host);if(!t(S)){const A=u(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof m.port=="number"||typeof m.port=="string")&&(g.push(":"),g.push(String(m.port))),g.length?g.join(""):void 0}return nd={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},nd}var ad,Gv;function fD(){if(Gv)return ad;Gv=1;const{isUUID:e}=Kv(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function s(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function o(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return ad={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},ad}var Jv;function dD(){if(Jv)return Us.exports;Jv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=Kv(),{SCHEMES:l,getSchemeHandler:u}=fD();function f(A,x){return typeof A=="string"?A=E(A,x):typeof A=="object"&&(A=w(k(A,x),x)),A}function p(A,x,O){const C=O?Object.assign({scheme:"null"},O):{scheme:"null"},_=d(w(A,C),w(x,C),C,!0);return C.skipEscape=!0,k(_,C)}function d(A,x,O,C){const _={};return C||(A=w(k(A,O),O),x=w(k(x,O),O)),O=O||{},!O.tolerant&&x.scheme?(_.scheme=x.scheme,_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.path?(x.path[0]==="/"?_.path=t(x.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?_.path="/"+x.path:A.path?_.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+x.path:_.path=x.path,_.path=t(_.path)),_.query=x.query):(_.path=A.path,x.query!==void 0?_.query=x.query:_.query=A.query),_.userinfo=A.userinfo,_.host=A.host,_.port=A.port),_.scheme=A.scheme),_.fragment=x.fragment,_}function h(A,x,O){const C=g(A,O),_=g(x,O);return C!==void 0&&_!==void 0&&C.toLowerCase()===_.toLowerCase()}function k(A,x){const O={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},C=Object.assign({},x),_=[],F=u(C.scheme||O.scheme);F&&F.serialize&&F.serialize(O,C),O.path!==void 0&&(C.skipEscape?O.path=a(O.path):(O.path=n(O.path),O.scheme!==void 0&&(O.path=O.path.split("%3A").join(":")))),C.reference!=="suffix"&&O.scheme&&_.push(O.scheme,":");const I=r(O);if(I!==void 0&&(C.reference!=="suffix"&&_.push("//"),_.push(I),O.path&&O.path[0]!=="/"&&_.push("/")),O.path!==void 0){let j=O.path;!C.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),I===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),_.push(j)}return O.query!==void 0&&_.push("?",O.query),O.fragment!==void 0&&_.push("#",O.fragment),_.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(A,x){if(x[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function b(A,x){const O=Object.assign({},x),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let _=!1,F=!1;O.reference==="suffix"&&(O.scheme?A=O.scheme+":"+A:A="//"+A);const I=A.match(v);if(I){C.scheme=I[1],C.userinfo=I[3],C.host=I[4],C.port=parseInt(I[5],10),C.path=I[6]||"",C.query=I[7],C.fragment=I[8],isNaN(C.port)&&(C.port=I[5]);const j=y(C,I);if(j!==void 0&&(C.error=C.error||j,_=!0),C.host)if(o(C.host)===!1){const Z=e(C.host);C.host=Z.host.toLowerCase(),F=Z.isIPV6}else F=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",O.reference&&O.reference!=="suffix"&&O.reference!==C.reference&&(C.error=C.error||"URI is not a "+O.reference+" reference.");const $=u(O.scheme||C.scheme);if(!O.unicodeSupport&&(!$||!$.unicodeSupport)&&C.host&&(O.domainHost||$&&$.domainHost)&&F===!1&&c(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(Y){C.error=C.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(A.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=s(unescape(C.host),F))),C.path&&(C.path=i(C.path)),C.fragment))try{C.fragment=encodeURI(decodeURIComponent(C.fragment))}catch{C.error=C.error||"URI malformed"}$&&$.parse&&$.parse(C,O)}else C.error=C.error||"URI can not be parsed.";return{parsed:C,malformedAuthorityOrPort:_}}function w(A,x){return b(A,x).parsed}function E(A,x){return m(A,x).normalized}function m(A,x){const{parsed:O,malformedAuthorityOrPort:C}=b(A,x);return{normalized:C?A:k(O,x),malformedAuthorityOrPort:C}}function g(A,x){if(typeof A=="string"){const{normalized:O,malformedAuthorityOrPort:C}=m(A,x);return C?void 0:O}if(typeof A=="object")return k(A,x)}const S={SCHEMES:l,normalize:f,resolve:p,resolveComponent:d,equal:h,serialize:k,parse:w};return Us.exports=S,Us.exports.default=S,Us.exports.fastUri=S,Us.exports}var Yv;function pD(){if(Yv)return El;Yv=1,Object.defineProperty(El,"__esModule",{value:!0});const e=dD();return e.code='require("ajv/dist/runtime/uri").default',El.default=e,El}var Xv;function mD(){return Xv||(Xv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=bl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ue();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const a=td(),i=Sl(),n=Pv(),s=rd(),o=Ue(),c=vl(),l=yl(),u=et(),f=uD,p=pD(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],k=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,U,T,N,L,B,V,K,J,Q,q,z,W,G,te,ae,pe,ve,Ae,Se,De,he,Le,We,ke;const ee=P.strict,re=(M=P.code)===null||M===void 0?void 0:M.optimize,ne=re===!0||re===void 0?1:re||0,we=(T=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&T!==void 0?T:d,me=(N=P.uriResolver)!==null&&N!==void 0?N:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:ee)!==null&&B!==void 0?B:!0,strictNumbers:(K=(V=P.strictNumbers)!==null&&V!==void 0?V:ee)!==null&&K!==void 0?K:!0,strictTypes:(Q=(J=P.strictTypes)!==null&&J!==void 0?J:ee)!==null&&Q!==void 0?Q:"log",strictTuples:(z=(q=P.strictTuples)!==null&&q!==void 0?q:ee)!==null&&z!==void 0?z:"log",strictRequired:(G=(W=P.strictRequired)!==null&&W!==void 0?W:ee)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:ne,regExp:we}:{optimize:ne,regExp:we},loopRequired:(te=P.loopRequired)!==null&&te!==void 0?te:b,loopEnum:(ae=P.loopEnum)!==null&&ae!==void 0?ae:b,meta:(pe=P.meta)!==null&&pe!==void 0?pe:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ae=P.inlineRefs)!==null&&Ae!==void 0?Ae:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(De=P.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Le=P.validateFormats)!==null&&Le!==void 0?Le:!0,unicodeRegExp:(We=P.unicodeRegExp)!==null&&We!==void 0?We:!0,int32range:(ke=P.int32range)!==null&&ke!==void 0?ke:!0,uriResolver:me}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:U,lines:T}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=_(M.logger);const N=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),m.call(this,v,M,"NOT SUPPORTED"),m.call(this,y,M,"DEPRECATED","warn"),this._metaOpts=O.call(this),M.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&x.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),S.call(this),M.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:T}=this.opts;let N=f;T==="id"&&(N={...f},N.id=N.$id,delete N.$id),U&&M&&this.addMetaSchema(N,N[T],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let T;if(typeof M=="string"){if(T=this.getSchema(M),!T)throw new Error(`no schema with key or ref "${M}"`)}else T=this.compile(M);const N=T(U);return"$async"in T||(this.errors=T.errors),N}compile(M,U){const T=this._addSchema(M,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return N.call(this,M,U);async function N(Q,q){await L.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function L(Q){Q&&!this.getSchema(Q)&&await N.call(this,{$ref:Q},!0)}async function B(Q){try{return this._compileSchemaEnv(Q)}catch(q){if(!(q instanceof i.default))throw q;return V.call(this,q),await K.call(this,q.missingSchema),B.call(this,Q)}}function V({missingSchema:Q,missingRef:q}){if(this.refs[Q])throw new Error(`AnySchema ${Q} is loaded but ${q} cannot be resolved`)}async function K(Q){const q=await J.call(this,Q);this.refs[Q]||await L.call(this,q.$schema),this.refs[Q]||this.addSchema(q,Q,U)}async function J(Q){const q=this._loading[Q];if(q)return q;try{return await(this._loading[Q]=T(Q))}finally{delete this._loading[Q]}}}addSchema(M,U,T,N=this.opts.validateSchema){if(Array.isArray(M)){for(const B of M)this.addSchema(B,void 0,T,N);return this}let L;if(typeof M=="object"){const{schemaId:B}=this.opts;if(L=M[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||L),this._checkUnique(U),this.schemas[U]=this._addSchema(M,T,U,N,!0),this}addMetaSchema(M,U,T=this.opts.validateSchema){return this.addSchema(M,U,!0,T),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let T;if(T=M.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const N=this.validate(T,M);if(!N&&U){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return N}getSchema(M){let U;for(;typeof(U=g.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:T}=this.opts,N=new s.SchemaEnv({schema:{},schemaId:T});if(U=s.resolveSchema.call(this,N,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let T=M[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let T;if(typeof M=="string")T=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof M=="object"&&U===void 0){if(U=M,T=U.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(I.call(this,T,U),!U)return(0,u.eachItem)(T,L=>j.call(this,L)),this;Y.call(this,U);const N={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,N.type.length===0?L=>j.call(this,L,N):L=>N.type.forEach(B=>j.call(this,L,N,B))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const T of U.rules){const N=T.rules.findIndex(L=>L.keyword===M);N>=0&&T.rules.splice(N,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!M||M.length===0?"No errors":M.map(N=>`${T}${N.instancePath} ${N.message}`).reduce((N,L)=>N+U+L)}$dataMetaSchema(M,U){const T=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const N of U){const L=N.split("/").slice(1);let B=M;for(const V of L)B=B[V];for(const V in T){const K=T[V];if(typeof K!="object")continue;const{$data:J}=K.definition,Q=B[V];J&&Q&&(B[V]=ie(Q))}}return M}_removeAllSchemas(M,U){for(const T in M){const N=M[T];(!U||U.test(T))&&(typeof N=="string"?delete M[T]:N&&!N.meta&&(this._cache.delete(N.schema),delete M[T]))}}_addSchema(M,U,T,N=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof M=="object")B=M[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(M);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,M,T);return K=new s.SchemaEnv({schema:M,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),L&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),N&&this.validateSchema(M,!0),K}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function m(P,M,U,T="error"){for(const N in P){const L=N;L in M&&this.logger[T](`${U}: option ${N}. ${P[L]}`)}}function g(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function S(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function A(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function x(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const U=P[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function O(){const P={...this.opts};for(const M of h)delete P[M];return P}const C={log(){},warn(){},error(){}};function _(P){if(P===!1)return C;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,M){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!F.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,U){var T;const N=M==null?void 0:M.post;if(U&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=N?L.post:L.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!M)return;const V={keyword:P,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?$.call(this,B,V,M.before):B.rules.push(V),L.all[P]=V,(T=M.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,M,U){const T=P.rules.findIndex(N=>N.keyword===U);T>=0?P.rules.splice(T,0,M):(P.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=ie(M)),P.validateSchema=this.compile(M,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Gf)),Gf}var Cl={},Al={},_l={},Zv;function hD(){if(Zv)return _l;Zv=1,Object.defineProperty(_l,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return _l.default=e,_l}var wa={},Qv;function gD(){if(Qv)return wa;Qv=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.callRef=wa.getValidate=void 0;const e=Sl(),t=fn(),r=Ue(),a=ka(),i=rd(),n=et(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:p}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=p,{root:b}=h;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=i.resolveRef.call(y,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return m(w);return g(w);function E(){if(h===b)return c(l,k,h,h.$async);const S=u.scopeValue("root",{ref:b});return c(l,(0,r._)`${S}.validate`,b,b.$async)}function m(S){const A=o(l,S);c(l,A,S,S.$async)}function g(S){const A=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),x=u.name("valid"),O=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},x);l.mergeEvaluated(O),l.ok(x)}}};function o(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}wa.getValidate=o;function c(l,u,f,p){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;p?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(l,u,b)}`),g(u),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${h.ValidationError})`,()=>d.throw(A)),m(A),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>m(u))}function m(S){const A=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${A} : ${a.default.vErrors}.concat(${A})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var A;if(!h.opts.unevaluated)return;const x=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(h.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(h.props=n.mergeEvaluated.props(d,x.props,h.props));else{const O=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,O,h.props,r.Name)}if(h.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(h.items=n.mergeEvaluated.items(d,x.items,h.items));else{const O=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,O,h.items,r.Name)}}}return wa.callRef=c,wa.default=s,wa}var eb;function yD(){if(eb)return Al;eb=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=hD(),t=gD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Al.default=r,Al}var Ol={},xl={},tb;function vD(){if(tb)return xl;tb=1,Object.defineProperty(xl,"__esModule",{value:!0});const e=Ue(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:n,schemaCode:s})=>(0,e.str)`must be ${r[n].okStr} ${s}`,params:({keyword:n,schemaCode:s})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:a,code(n){const{keyword:s,data:o,schemaCode:c}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${c} || isNaN(${o})`)}};return xl.default=i,xl}var Tl={},rb;function bD(){if(rb)return Tl;rb=1,Object.defineProperty(Tl,"__esModule",{value:!0});const e=Ue(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:i,data:n,schemaCode:s,it:o}=a,c=o.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;a.fail$data((0,e._)`(${s} === 0 || (${l} = ${n}/${s}, ${u}))`)}};return Tl.default=r,Tl}var Pl={},Il={},nb;function kD(){if(nb)return Il;nb=1,Object.defineProperty(Il,"__esModule",{value:!0});function e(t){const r=t.length;let a=0,i=0,n;for(;i<r;)a++,n=t.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=t.charCodeAt(i),(n&64512)===56320&&i++);return a}return Il.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Il}var ab;function wD(){if(ab)return Pl;ab=1,Object.defineProperty(Pl,"__esModule",{value:!0});const e=Ue(),t=et(),r=kD(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const o=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:s,data:o,schemaCode:c,it:l}=n,u=s==="maxLength"?e.operators.GT:e.operators.LT,f=l.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${u} ${c}`)}};return Pl.default=i,Pl}var Nl={},ib;function SD(){if(ib)return Nl;ib=1,Object.defineProperty(Nl,"__esModule",{value:!0});const e=fn(),t=et(),r=Ue(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:f}=n,p=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:d}=f.opts.code,h=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${h}(${u}, ${p}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,l);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return Nl.default=i,Nl}var Dl={},sb;function ED(){if(sb)return Dl;sb=1,Object.defineProperty(Dl,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:s}=a,o=i==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return Dl.default=r,Dl}var Fl={},ob;function CD(){if(ob)return Fl;ob=1,Object.defineProperty(Fl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:s,schema:o,schemaCode:c,data:l,$data:u,it:f}=n,{opts:p}=f;if(!u&&o.length===0)return;const d=o.length>=p.loopRequired;if(f.allErrors?h():k(),p.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of o)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const m=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${m}" (strictRequired)`;(0,r.checkStrictMode)(f,g,f.opts.strictRequired)}}function h(){if(d||u)n.block$data(t.nil,v);else for(const b of o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||u){const w=s.let("valid",!0);n.block$data(w,()=>y(b,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,b)),(0,e.reportMissingProp)(n,b),s.else()}function v(){s.forOf("prop",c,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,l,b,p.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),s.forOf(b,c,()=>{s.assign(w,(0,e.propertyInData)(s,l,b,p.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Fl.default=i,Fl}var Ml={},lb;function AD(){if(lb)return Ml;lb=1,Object.defineProperty(Ml,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:s}=a,o=i==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return Ml.default=r,Ml}var jl={},Ll={},cb;function id(){if(cb)return Ll;cb=1,Object.defineProperty(Ll,"__esModule",{value:!0});const e=qv();return e.code='require("ajv/dist/runtime/equal").default',Ll.default=e,Ll}var ub;function _D(){if(ub)return jl;ub=1,Object.defineProperty(jl,"__esModule",{value:!0});const e=yl(),t=Ue(),r=et(),a=id(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:c,$data:l,schema:u,parentSchema:f,schemaCode:p,it:d}=s;if(!l&&!u)return;const h=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(h,v,(0,t._)`${p} === false`),s.ok(h);function v(){const E=o.let("i",(0,t._)`${c}.length`),m=o.let("j");s.setParams({i:E,j:m}),o.assign(h,!0),o.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,m))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,m){const g=o.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${E}--;`,()=>{o.let(g,(0,t._)`${c}[${E}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),o.if((0,t._)`typeof ${A}[${g}] == "number"`,()=>{o.assign(m,(0,t._)`${A}[${g}]`),s.error(),o.assign(h,!1).break()}).code((0,t._)`${A}[${g}] = ${E}`)})}function w(E,m){const g=(0,r.useFunc)(o,a.default),S=o.name("outer");o.label(S).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${m} = ${E}; ${m}--;`,()=>o.if((0,t._)`${g}(${c}[${E}], ${c}[${m}])`,()=>{s.error(),o.assign(h,!1).break(S)})))}}};return jl.default=n,jl}var Rl={},fb;function OD(){if(fb)return Rl;fb=1,Object.defineProperty(Rl,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:s,data:o,$data:c,schemaCode:l,schema:u}=n;c||u&&typeof u=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${l})`):n.fail((0,e._)`${u} !== ${o}`)}};return Rl.default=i,Rl}var ql={},db;function xD(){if(db)return ql;db=1,Object.defineProperty(ql,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:f}=n;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const p=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(p||c)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const b=s.const("vSchema",u);k=(0,e.or)(...l.map((w,E)=>y(b,E)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",u,b=>s.if((0,e._)`${h()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function y(b,w){const E=l[w];return typeof E=="object"&&E!==null?(0,e._)`${h()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${E}`}}};return ql.default=i,ql}var pb;function TD(){if(pb)return Ol;pb=1,Object.defineProperty(Ol,"__esModule",{value:!0});const e=vD(),t=bD(),r=wD(),a=SD(),i=ED(),n=CD(),s=AD(),o=_D(),c=OD(),l=xD(),u=[e.default,t.default,r.default,a.default,i.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return Ol.default=u,Ol}var zl={},Ui={},mb;function hb(){if(mb)return Ui;mb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.validateAdditionalItems=void 0;const e=Ue(),t=et(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:s,it:o}=n,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(n,c)}};function i(n,s){const{gen:o,schema:c,data:l,keyword:u,it:f}=n;f.items=!0;const p=o.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:s.length}),n.pass((0,e._)`${p} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=o.var("valid",(0,e._)`${p} <= ${s.length}`);o.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){o.forRange("i",s.length,p,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||o.if((0,e.not)(h),()=>o.break())})}}return Ui.validateAdditionalItems=i,Ui.default=a,Ui}var $l={},Bi={},gb;function yb(){if(gb)return Bi;gb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.validateTuple=void 0;const e=Ue(),t=et(),r=fn(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return i(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function i(n,s,o=n.schema){const{gen:c,parentSchema:l,data:u,keyword:f,it:p}=n;k(l),p.opts.unevaluated&&o.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(c,o.length,p.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);o.forEach((v,y)=>{(0,t.alwaysValidSchema)(p,v)||(c.if((0,e._)`${h} > ${y}`,()=>n.subschema({keyword:f,schemaProp:y,dataProp:y},d)),n.ok(d))});function k(v){const{opts:y,errSchemaPath:b}=p,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(y.strictTuples&&!E){const m=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,m,y.strictTuples)}}}return Bi.validateTuple=i,Bi.default=a,Bi}var vb;function PD(){if(vb)return $l;vb=1,Object.defineProperty($l,"__esModule",{value:!0});const e=yb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return $l.default=t,$l}var Ul={},bb;function ID(){if(bb)return Ul;bb=1,Object.defineProperty(Ul,"__esModule",{value:!0});const e=Ue(),t=et(),r=fn(),a=hb(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:c,it:l}=s,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,o)&&(u?(0,a.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return Ul.default=n,Ul}var Bl={},kb;function ND(){if(kb)return Bl;kb=1,Object.defineProperty(Bl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:n}})=>n===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${n} valid item(s)`,params:({params:{min:i,max:n}})=>n===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${n}}`},code(i){const{gen:n,schema:s,parentSchema:o,data:c,it:l}=i;let u,f;const{minContains:p,maxContains:d}=o;l.opts.next?(u=p===void 0?1:p,f=d):u=1;const h=n.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let w=(0,e._)`${h} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${h} <= ${f}`),i.pass(w);return}l.items=!0;const k=n.name("valid");f===void 0&&u===1?y(k,()=>n.if(k,()=>n.break())):u===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${c}.length > 0`,v)):(n.let(k,!1),v()),i.result(k,()=>i.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);y(w,()=>n.if(w,()=>b(E)))}function y(w,E){n.forRange("i",0,h,m=>{i.subschema({keyword:"contains",dataProp:m,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),u===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0)))}}};return Bl.default=a,Bl}var sd={},wb;function DD(){return wb||(wb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ue(),r=et(),a=fn();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
|
|
102
|
+
|| ${A} === "boolean" || ${g} === null`).assign(x,(0,a._)`[${g}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},m){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,m))}function d(b,w,E,m=n.Correct){const g=m===n.Correct?a.operators.EQ:a.operators.NEQ;let S;switch(b){case"null":return(0,a._)`${w} ${g} null`;case"array":S=(0,a._)`Array.isArray(${w})`;break;case"object":S=(0,a._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return m===n.Correct?S:(0,a.not)(S);function A(x=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,x,E?(0,a._)`isFinite(${w})`:a.nil)}}rr.checkDataType=d;function h(b,w,E,m){if(b.length===1)return d(b[0],w,E,m);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const A=(0,a._)`typeof ${w} != "object"`;g=S.null?A:(0,a._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const A in S)g=(0,a.and)(g,d(A,w,E,m));return g}rr.checkDataTypes=h;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,a._)`{type: ${b}}`:(0,a._)`{type: ${w}}`};function v(b){const w=y(b);(0,r.reportError)(w,k)}rr.reportTypeError=v;function y(b){const{gen:w,data:E,schema:m}=b,g=(0,i.schemaRefOrVal)(b,m,"type");return{gen:w,keyword:"type",data:E,schema:m.type,schemaCode:g,schemaValue:g,parentSchema:m,params:{},it:b}}return rr}var Uo={},Mv;function lD(){if(Mv)return Uo;Mv=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.assignDefaults=void 0;const e=Ue(),t=et();function r(i,n){const{properties:o,items:s}=i.schema;if(n==="object"&&o)for(const c in o)a(i,c,o[c].default);else n==="array"&&Array.isArray(s)&&s.forEach((c,l)=>a(i,l,c.default))}Uo.assignDefaults=r;function a(i,n,o){const{gen:s,compositeRule:c,data:l,opts:u}=i;if(o===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(n)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let p=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),s.if(p,(0,e._)`${f} = ${(0,e.stringify)(o)}`)}return Uo}var un={},yt={},jv;function fn(){if(jv)return yt;jv=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.validateUnion=yt.validateArray=yt.usePattern=yt.callValidateCode=yt.schemaProperties=yt.allSchemaProperties=yt.noPropertyInData=yt.propertyInData=yt.isOwnProperty=yt.hasPropFunc=yt.reportMissingProp=yt.checkMissingProp=yt.checkReportMissingProp=void 0;const e=Ue(),t=et(),r=ka(),a=et();function i(b,w){const{gen:E,data:m,it:g}=b;E.if(u(E,m,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}yt.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},m,g){return(0,e.or)(...m.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}yt.checkMissingProp=n;function o(b,w){b.setParams({missingProperty:w},!0),b.error()}yt.reportMissingProp=o;function s(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}yt.hasPropFunc=s;function c(b,w,E){return(0,e._)`${s(b)}.call(${w}, ${E})`}yt.isOwnProperty=c;function l(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return m?(0,e._)`${g} && ${c(b,w,E)}`:g}yt.propertyInData=l;function u(b,w,E,m){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return m?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}yt.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}yt.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}yt.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:m,schemaPath:g,errorPath:S},it:A},x,O,C){const _=C?(0,e._)`${b}, ${w}, ${m}${g}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${_}, ${E.object(...F)}`;return O!==e.nil?(0,e._)`${x}.call(${O}, ${I})`:(0,e._)`${x}(${I})`}yt.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const m=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,m);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${m})`})}yt.usePattern=k;function v(b){const{gen:w,data:E,keyword:m,it:g}=b,S=w.name("valid");if(g.allErrors){const x=w.let("valid",!0);return A(()=>w.assign(x,!1)),x}return w.var(S,!0),A(()=>w.break()),S;function A(x){const O=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,O,C=>{b.subschema({keyword:m,dataProp:C,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),x)})}}yt.validateArray=v;function y(b){const{gen:w,schema:E,keyword:m,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(O=>(0,t.alwaysValidSchema)(g,O))&&!g.opts.unevaluated)return;const A=w.let("valid",!1),x=w.name("_valid");w.block(()=>E.forEach((O,C)=>{const _=b.subschema({keyword:m,schemaProp:C,compositeRule:!0},x);w.assign(A,(0,e._)`${A} || ${x}`),b.mergeValidEvaluated(_,x)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return yt.validateUnion=y,yt}var Lv;function cD(){if(Lv)return un;Lv=1,Object.defineProperty(un,"__esModule",{value:!0}),un.validateKeywordUsage=un.validSchemaType=un.funcKeywordCode=un.macroKeywordCode=void 0;const e=Ue(),t=ka(),r=fn(),a=gl();function i(p,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=p,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const m=h.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},m),p.pass(m,()=>p.error(!0))}un.macroKeywordCode=i;function n(p,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=p;c(E,d);const m=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,m),S=k.let("valid");p.block$data(S,A),p.ok((h=d.valid)!==null&&h!==void 0?h:S);function A(){if(d.errors===!1)C(),d.modifying&&o(p),_(()=>p.error());else{const F=d.async?x():O();d.modifying&&o(p),_(()=>s(p,F))}}function x(){const F=k.let("ruleErrs",null);return k.try(()=>C((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${I}.errors`),()=>k.throw(I))),F}function O(){const F=(0,e._)`${g}.errors`;return k.assign(F,null),C(e.nil),F}function C(F=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${F}${(0,r.callValidateCode)(p,g,I,j)}`,d.modifying)}function _(F){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),F)}}un.funcKeywordCode=n;function o(p){const{gen:d,data:h,it:k}=p;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function s(p,d){const{gen:h}=p;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(p)},()=>p.error())}function c({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function l(p,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(p,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||h&&typeof p>"u")}un.validSchemaType=u;function f({schema:p,opts:d,self:h,errSchemaPath:k},v,y){if(Array.isArray(v.keyword)?!v.keyword.includes(y):v.keyword!==y)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[y])){const E=`keyword "${y}" value is invalid at path "${k}": `+h.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(E);else throw new Error(E)}}return un.validateKeywordUsage=f,un}var Vn={},Rv;function uD(){if(Rv)return Vn;Rv=1,Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.extendSubschemaMode=Vn.extendSubschemaData=Vn.getSubschema=void 0;const e=Ue(),t=et();function r(n,{keyword:o,schemaProp:s,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){if(o!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=n.schema[o];return s===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:p[s],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(s)}`}}if(c!==void 0){if(l===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Vn.getSubschema=r;function a(n,o,{dataProp:s,dataPropType:c,data:l,dataTypes:u,propertyName:f}){if(l!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(s!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=o,y=p.let("data",(0,e._)`${o.data}${(0,e.getProperty)(s)}`,!0);d(y),n.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(s,c,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${s}`,n.dataPathArr=[...k,n.parentDataProperty]}if(l!==void 0){const h=l instanceof e.Name?l:p.let("data",l,!0);d(h),f!==void 0&&(n.propertyName=f)}u&&(n.dataTypes=u);function d(h){n.data=h,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,h]}}Vn.extendSubschemaData=a;function i(n,{jtdDiscriminator:o,jtdMetadata:s,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(n.compositeRule=c),l!==void 0&&(n.createErrors=l),u!==void 0&&(n.allErrors=u),n.jtdDiscriminator=o,n.jtdMetadata=s}return Vn.extendSubschemaMode=i,Vn}var pr={},Qf,qv;function zv(){return qv||(qv=1,Qf=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(n=Object.keys(t),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var o=n[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),Qf}var ed={exports:{}},$v;function fD(){if($v)return ed.exports;$v=1;var e=ed.exports=function(a,i,n){typeof i=="function"&&(n=i,i={}),n=i.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};t(i,o,s,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(a,i,n,o,s,c,l,u,f,p){if(o&&typeof o=="object"&&!Array.isArray(o)){i(o,s,c,l,u,f,p);for(var d in o){var h=o[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var k=0;k<h.length;k++)t(a,i,n,h[k],s+"/"+d+"/"+k,c,s,d,o,k)}else if(d in e.propsKeywords){if(h&&typeof h=="object")for(var v in h)t(a,i,n,h[v],s+"/"+d+"/"+r(v),c,s,d,o,v)}else(d in e.keywords||a.allKeys&&!(d in e.skipKeywords))&&t(a,i,n,h,s+"/"+d,c,s,d,o)}n(o,s,c,l,u,f,p)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return ed.exports}var Uv;function vl(){if(Uv)return pr;Uv=1,Object.defineProperty(pr,"__esModule",{value:!0}),pr.getSchemaRefs=pr.resolveUrl=pr.normalizeId=pr._getFullPath=pr.getFullPath=pr.inlineRef=void 0;const e=et(),t=zv(),r=fD(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(k,v=!0){return typeof k=="boolean"?!0:v===!0?!o(k):v?s(k)<=v:!1}pr.inlineRef=i;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(k){for(const v in k){if(n.has(v))return!0;const y=k[v];if(Array.isArray(y)&&y.some(o)||typeof y=="object"&&o(y))return!0}return!1}function s(k){let v=0;for(const y in k){if(y==="$ref")return 1/0;if(v++,!a.has(y)&&(typeof k[y]=="object"&&(0,e.eachItem)(k[y],b=>v+=s(b)),v===1/0))return 1/0}return v}function c(k,v="",y){y!==!1&&(v=f(v));const b=k.parse(v);return l(k,b)}pr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}pr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}pr.normalizeId=f;function p(k,v,y){return y=f(y),k.resolve(v,y)}pr.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function h(k,v){if(typeof k=="boolean")return{};const{schemaId:y,uriResolver:b}=this.opts,w=f(k[y]||v),E={"":w},m=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(O,C,_,F)=>{if(F===void 0)return;const I=m+C;let j=E[F];typeof O[y]=="string"&&(j=$.call(this,O[y])),Y.call(this,O.$anchor),Y.call(this,O.$dynamicAnchor),E[C]=j;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(j?ie(j,Z):Z),S.has(Z))throw x(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(O,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(A(O,g[Z],Z),g[Z]=O):this.refs[Z]=I),Z}function Y(Z){if(typeof Z=="string"){if(!d.test(Z))throw new Error(`invalid anchor "${Z}"`);$.call(this,`#${Z}`)}}}),g;function A(O,C,_){if(C!==void 0&&!t(O,C))throw x(_)}function x(O){return new Error(`reference "${O}" resolves to more than one schema`)}}return pr.getSchemaRefs=h,pr}var Bv;function bl(){if(Bv)return Un;Bv=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.getData=Un.KeywordCxt=Un.validateFunctionCode=void 0;const e=sD(),t=yl(),r=Dv(),a=yl(),i=lD(),n=cD(),o=uD(),s=Ue(),c=ka(),l=vl(),u=et(),f=gl();function p(q){if(m(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Un.validateFunctionCode=p;function d({gen:q,validateName:z,schema:W,schemaEnv:G,opts:te},ae){te.code.es5?q.func(z,(0,s._)`${c.default.data}, ${c.default.valCxt}`,G.$async,()=>{q.code((0,s._)`"use strict"; ${b(W,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,s._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(W,te)).code(ae))}function h(q){return(0,s._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${q.dynamicRef?(0,s._)`, ${c.default.dynamicAnchors}={}`:s.nil}}={}`}function k(q,z){q.if(c.default.valCxt,()=>{q.var(c.default.instancePath,(0,s._)`${c.default.valCxt}.${c.default.instancePath}`),q.var(c.default.parentData,(0,s._)`${c.default.valCxt}.${c.default.parentData}`),q.var(c.default.parentDataProperty,(0,s._)`${c.default.valCxt}.${c.default.parentDataProperty}`),q.var(c.default.rootData,(0,s._)`${c.default.valCxt}.${c.default.rootData}`),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,s._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{q.var(c.default.instancePath,(0,s._)`""`),q.var(c.default.parentData,(0,s._)`undefined`),q.var(c.default.parentDataProperty,(0,s._)`undefined`),q.var(c.default.rootData,c.default.data),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,s._)`{}`)})}function v(q){const{schema:z,opts:W,gen:G}=q;d(q,()=>{W.$comment&&z.$comment&&F(q),O(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),W.unevaluated&&y(q),A(q),I(q)})}function y(q){const{gen:z,validateName:W}=q;q.evaluated=z.const("evaluated",(0,s._)`${W}.evaluated`),z.if((0,s._)`${q.evaluated}.dynamicProps`,()=>z.assign((0,s._)`${q.evaluated}.props`,(0,s._)`undefined`)),z.if((0,s._)`${q.evaluated}.dynamicItems`,()=>z.assign((0,s._)`${q.evaluated}.items`,(0,s._)`undefined`))}function b(q,z){const W=typeof q=="object"&&q[z.schemaId];return W&&(z.code.source||z.code.process)?(0,s._)`/*# sourceURL=${W} */`:s.nil}function w(q,z){if(m(q)&&(S(q),E(q))){g(q,z);return}(0,e.boolOrEmptySchema)(q,z)}function E({schema:q,self:z}){if(typeof q=="boolean")return!q;for(const W in q)if(z.RULES.all[W])return!0;return!1}function m(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:W,gen:G,opts:te}=q;te.$comment&&W.$comment&&F(q),C(q),_(q);const ae=G.const("_errs",c.default.errors);A(q,ae),G.var(z,(0,s._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),x(q)}function A(q,z){if(q.opts.jtd)return $(q,[],!1,z);const W=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,W);$(q,W,!G,z)}function x(q){const{schema:z,errSchemaPath:W,opts:G,self:te}=q;z.$ref&&G.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function O(q){const{schema:z,opts:W}=q;z.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function C(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function _(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:q,schemaEnv:z,schema:W,errSchemaPath:G,opts:te}){const ae=W.$comment;if(te.$comment===!0)q.code((0,s._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const pe=(0,s.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,s._)`${c.default.self}.opts.$comment(${ae}, ${pe}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:W,validateName:G,ValidationError:te,opts:ae}=q;W.$async?z.if((0,s._)`${c.default.errors} === 0`,()=>z.return(c.default.data),()=>z.throw((0,s._)`new ${te}(${c.default.vErrors})`)):(z.assign((0,s._)`${G}.errors`,c.default.vErrors),ae.unevaluated&&j(q),z.return((0,s._)`${c.default.errors} === 0`))}function j({gen:q,evaluated:z,props:W,items:G}){W instanceof s.Name&&q.assign((0,s._)`${z}.props`,W),G instanceof s.Name&&q.assign((0,s._)`${z}.items`,G)}function $(q,z,W,G){const{gen:te,schema:ae,data:pe,allErrors:ve,opts:Ae,self:Se}=q,{RULES:De}=Se;if(ae.$ref&&(Ae.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,De))){te.block(()=>V(q,"$ref",De.all.$ref.definition));return}Ae.jtd||Z(q,z),te.block(()=>{for(const Le of De.rules)he(Le);he(De.post)});function he(Le){(0,r.shouldUseGroup)(ae,Le)&&(Le.type?(te.if((0,a.checkDataType)(Le.type,pe,Ae.strictNumbers)),Y(q,Le),z.length===1&&z[0]===Le.type&&W&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,Le),ve||te.if((0,s._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:W,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),W.block(()=>{for(const ae of z.rules)(0,r.shouldUseRule)(G,ae)&&V(q,ae.keyword,ae.definition,z.type)})}function Z(q,z){q.schemaEnv.meta||!q.opts.strictTypes||(ie(q,z),q.opts.allowUnionTypes||P(q,z),M(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(W=>{T(q.dataTypes,W)||L(q,`type "${W}" not allowed by context "${q.dataTypes.join(",")}"`)}),N(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&L(q,"use allowUnionTypes to allow union type keyword")}function M(q,z){const W=q.self.RULES.all;for(const G in W){const te=W[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(pe=>U(z,pe))&&L(q,`missing type "${ae.join(",")}" for keyword "${G}"`)}}}function U(q,z){return q.includes(z)||z==="number"&&q.includes("integer")}function T(q,z){return q.includes(z)||z==="integer"&&q.includes("number")}function N(q,z){const W=[];for(const G of q.dataTypes)T(z,G)?W.push(G):z.includes("integer")&&G==="number"&&W.push("integer");q.dataTypes=W}function L(q,z){const W=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${W}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,W,G){if((0,n.validateKeywordUsage)(z,W,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=W.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=W.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=W,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,W,G){this.failResult((0,s.not)(z),W,G)}failResult(z,W,G){this.gen.if(z),G?G():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,W){this.failResult((0,s.not)(z),void 0,W)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:W}=this;this.fail((0,s._)`${W} !== undefined && (${(0,s.or)(this.invalid$data(),z)})`)}error(z,W,G){if(W){this.setParams(W),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,W){(z?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,W){W?Object.assign(this.params,z):this.params=z}block$data(z,W,G=s.nil){this.gen.block(()=>{this.check$data(z,G),W()})}check$data(z=s.nil,W=s.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:pe}=this;G.if((0,s.or)((0,s._)`${te} === undefined`,W)),z!==s.nil&&G.assign(z,!0),(ae.length||pe.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==s.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:W,schemaType:G,def:te,it:ae}=this;return(0,s.or)(pe(),ve());function pe(){if(G.length){if(!(W instanceof s.Name))throw new Error("ajv implementation error");const Ae=Array.isArray(G)?G:[G];return(0,s._)`${(0,a.checkDataTypes)(Ae,W,ae.opts.strictNumbers,a.DataType.Wrong)}`}return s.nil}function ve(){if(te.validateSchema){const Ae=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,s._)`!${Ae}(${W})`}return s.nil}}subschema(z,W){const G=(0,o.getSubschema)(this.it,z);(0,o.extendSubschemaData)(G,this.it,z),(0,o.extendSubschemaMode)(G,z);const te={...this.it,...G,items:void 0,props:void 0};return w(te,W),te}mergeEvaluated(z,W){const{it:G,gen:te}=this;G.opts.unevaluated&&(G.props!==!0&&z.props!==void 0&&(G.props=u.mergeEvaluated.props(te,z.props,G.props,W)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,W)))}mergeValidEvaluated(z,W){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(W,()=>this.mergeEvaluated(z,s.Name)),!0}}Un.KeywordCxt=B;function V(q,z,W,G){const te=new B(q,W,z);"code"in W?W.code(te,G):te.$data&&W.validate?(0,n.funcKeywordCode)(te,W):"macro"in W?(0,n.macroKeywordCode)(te,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(te,W)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:W,dataPathArr:G}){let te,ae;if(q==="")return c.default.rootData;if(q[0]==="/"){if(!K.test(q))throw new Error(`Invalid JSON-pointer: ${q}`);te=q,ae=c.default.rootData}else{const Se=J.exec(q);if(!Se)throw new Error(`Invalid JSON-pointer: ${q}`);const De=+Se[1];if(te=Se[2],te==="#"){if(De>=z)throw new Error(Ae("property/index",De));return G[z-De]}if(De>z)throw new Error(Ae("data",De));if(ae=W[z-De],!te)return ae}let pe=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,s._)`${ae}${(0,s.getProperty)((0,u.unescapeJsonPointer)(Se))}`,pe=(0,s._)`${pe} && ${ae}`);return pe;function Ae(Se,De){return`Cannot access ${Se} ${De} levels up, current level is ${z}`}}return Un.getData=Q,Un}var kl={},Vv;function td(){if(Vv)return kl;Vv=1,Object.defineProperty(kl,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return kl.default=e,kl}var wl={},Hv;function Sl(){if(Hv)return wl;Hv=1,Object.defineProperty(wl,"__esModule",{value:!0});const e=vl();class t extends Error{constructor(a,i,n,o){super(o||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,e.resolveUrl)(a,i,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return wl.default=t,wl}var Tr={},Wv;function rd(){if(Wv)return Tr;Wv=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.resolveSchema=Tr.getCompilingSchema=Tr.resolveRef=Tr.compileSchema=Tr.SchemaEnv=void 0;const e=Ue(),t=td(),r=ka(),a=vl(),i=et(),n=bl();class o{constructor(y){var b;this.refs={},this.dynamicAnchors={};let w;typeof y.schema=="object"&&(w=y.schema),this.schema=y.schema,this.schemaId=y.schemaId,this.root=y.root||this,this.baseId=(b=y.baseId)!==null&&b!==void 0?b:(0,a.normalizeId)(w==null?void 0:w[y.schemaId||"$id"]),this.schemaPath=y.schemaPath,this.localRefs=y.localRefs,this.meta=y.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}Tr.SchemaEnv=o;function s(v){const y=u.call(this,v);if(y)return y;const b=(0,a.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:m}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:m});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=g.scopeName("validate");v.validateName=A;const x={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:A,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let O;try{this._compilations.add(v),(0,n.validateFunctionCode)(x),g.optimize(this.opts.code.optimize);const C=g.toString();O=`${g.scopeRefs(r.default.scope)}return ${C}`,this.opts.code.process&&(O=this.opts.code.process(O,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,O)(this,this.scope.get());if(this.scope.value(A,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:A,validateCode:C,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:j}=x;F.evaluated={props:I instanceof e.Name?void 0:I,items:j instanceof e.Name?void 0:j,dynamicProps:I instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(C){throw delete v.validate,delete v.validateName,O&&this.logger.error("Error compiling schema, function code:",O),C}finally{this._compilations.delete(v)}}Tr.compileSchema=s;function c(v,y,b){var w;b=(0,a.resolveUrl)(this.opts.uriResolver,y,b);const E=v.refs[b];if(E)return E;let m=p.call(this,v,b);if(m===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(m=new o({schema:g,schemaId:S,root:v,baseId:y}))}if(m!==void 0)return v.refs[b]=l.call(this,m)}Tr.resolveRef=c;function l(v){return(0,a.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:s.call(this,v)}function u(v){for(const y of this._compilations)if(f(y,v))return y}Tr.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function p(v,y){let b;for(;typeof(b=this.refs[y])=="string";)y=b;return b||this.schemas[y]||d.call(this,v,y)}function d(v,y){const b=this.opts.uriResolver.parse(y),w=(0,a._getFullPath)(this.opts.uriResolver,b);let E=(0,a.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const m=(0,a.normalizeId)(w),g=this.refs[m]||this.schemas[m];if(typeof g=="string"){const S=d.call(this,v,g);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(g==null?void 0:g.schema)=="object"){if(g.validate||s.call(this,g),m===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:A}=this.opts,x=S[A];return x&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,x)),new o({schema:S,schemaId:A,root:v,baseId:E})}return k.call(this,b,g)}}Tr.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:y,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,i.unescapeFragment)(S)];if(A===void 0)return;b=A;const x=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&x&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,x))}let m;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);m=d.call(this,w,S)}const{schemaId:g}=this.opts;if(m=m||new o({schema:b,schemaId:g,root:w,baseId:y}),m.schema!==m.root.schema)return m}return Tr}const dD={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var El={},Bo={exports:{}},nd,Kv;function Gv(){if(Kv)return nd;Kv=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(m){let g="",S=0,A=0;for(A=0;A<m.length;A++)if(S=m[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A];break}for(A+=1;A<m.length;A++){if(S=m[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=m[A]}return g}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(m){return m.length=0,!0}function c(m,g,S){if(m.length){const A=n(m);if(A!=="")g.push(A);else return S.error=!0,!1;m.length=0}return!0}function l(m){let g=0;const S={error:!1,address:"",zone:""},A=[],x=[];let O=!1,C=!1,_=c;for(let F=0;F<m.length;F++){const I=m[F];if(!(I==="["||I==="]"))if(I===":"){if(O===!0&&(C=!0),!_(x,A,S))break;if(++g>7){S.error=!0;break}F>0&&m[F-1]===":"&&(O=!0),A.push(":");continue}else if(I==="%"){if(!_(x,A,S))break;_=s}else{x.push(I);continue}}return x.length&&(_===s?S.zone=x.join(""):C?A.push(x.join("")):A.push(n(x))),S.address=A.join(""),S}function u(m){if(f(m,":")<2)return{host:m,isIPV6:!1};const g=l(m);if(g.error)return{host:m,isIPV6:!1};{let S=g.address,A=g.address;return g.zone&&(S+="%"+g.zone,A+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(m,g){let S=0;for(let A=0;A<m.length;A++)m[A]===g&&S++;return S}function p(m){let g=m;const S=[];let A=-1,x=0;for(;x=g.length;){if(x===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(x===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){S.push("/");break}}else if(x===3&&g==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),S.length!==0&&S.pop();continue}}if((A=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,A)),g=g.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(m,g){const S=g?k:h;return S.lastIndex=0,m.replace(S,A=>d[A])}function y(m,g=!1){if(m.indexOf("%")===-1)return m;let S="";for(let A=0;A<m.length;A++){if(m[A]==="%"&&A+2<m.length){const x=m.slice(A+1,A+3);if(r(x)){const O=x.toUpperCase(),C=String.fromCharCode(parseInt(O,16));g&&a(C)?S+=C:S+="%"+O,A+=2;continue}}S+=m[A]}return S}function b(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){const x=A.toUpperCase(),O=String.fromCharCode(parseInt(x,16));O!=="."&&a(O)?g+=O:g+="%"+x,S+=2;continue}}i(m[S])?g+=m[S]:g+=escape(m[S])}return g}function w(m){let g="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const A=m.slice(S+1,S+3);if(r(A)){g+="%"+A.toUpperCase(),S+=2;continue}}g+=escape(m[S])}return g}function E(m){const g=[];if(m.userinfo!==void 0&&(g.push(m.userinfo),g.push("@")),m.host!==void 0){let S=unescape(m.host);if(!t(S)){const A=u(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof m.port=="number"||typeof m.port=="string")&&(g.push(":"),g.push(String(m.port))),g.length?g.join(""):void 0}return nd={nonSimpleDomain:o,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},nd}var ad,Jv;function pD(){if(Jv)return ad;Jv=1;const{isUUID:e}=Gv(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(m){return r.indexOf(m)!==-1}function i(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function o(m){const g=String(m.scheme).toLowerCase()==="https";return(m.port===(g?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function s(m){return m.secure=i(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function c(m){if((m.port===(i(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[g,S]=m.resourceName.split("?");m.path=g&&g!=="/"?g:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function l(m,g){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const A=g.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const x=`${A}:${g.nid||m.nid}`,O=E(x);m.path=void 0,O&&(m=O.parse(m,g))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,g){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||m.scheme||"urn",A=m.nid.toLowerCase(),x=`${S}:${g.nid||A}`,O=E(x);O&&(m=O.serialize(m,g));const C=m,_=m.nss;return C.path=`${A||g.nid}:${_}`,g.skipEscape=!0,C}function f(m,g){const S=m;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const g=m;return g.nss=(m.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return ad={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},ad}var Yv;function mD(){if(Yv)return Bo.exports;Yv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:o,isIPv4:s,nonSimpleDomain:c}=Gv(),{SCHEMES:l,getSchemeHandler:u}=pD();function f(A,x){return typeof A=="string"?A=E(A,x):typeof A=="object"&&(A=w(k(A,x),x)),A}function p(A,x,O){const C=O?Object.assign({scheme:"null"},O):{scheme:"null"},_=d(w(A,C),w(x,C),C,!0);return C.skipEscape=!0,k(_,C)}function d(A,x,O,C){const _={};return C||(A=w(k(A,O),O),x=w(k(x,O),O)),O=O||{},!O.tolerant&&x.scheme?(_.scheme=x.scheme,_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.userinfo!==void 0||x.host!==void 0||x.port!==void 0?(_.userinfo=x.userinfo,_.host=x.host,_.port=x.port,_.path=t(x.path||""),_.query=x.query):(x.path?(x.path[0]==="/"?_.path=t(x.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?_.path="/"+x.path:A.path?_.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+x.path:_.path=x.path,_.path=t(_.path)),_.query=x.query):(_.path=A.path,x.query!==void 0?_.query=x.query:_.query=A.query),_.userinfo=A.userinfo,_.host=A.host,_.port=A.port),_.scheme=A.scheme),_.fragment=x.fragment,_}function h(A,x,O){const C=g(A,O),_=g(x,O);return C!==void 0&&_!==void 0&&C.toLowerCase()===_.toLowerCase()}function k(A,x){const O={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},C=Object.assign({},x),_=[],F=u(C.scheme||O.scheme);F&&F.serialize&&F.serialize(O,C),O.path!==void 0&&(C.skipEscape?O.path=a(O.path):(O.path=n(O.path),O.scheme!==void 0&&(O.path=O.path.split("%3A").join(":")))),C.reference!=="suffix"&&O.scheme&&_.push(O.scheme,":");const I=r(O);if(I!==void 0&&(C.reference!=="suffix"&&_.push("//"),_.push(I),O.path&&O.path[0]!=="/"&&_.push("/")),O.path!==void 0){let j=O.path;!C.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),I===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),_.push(j)}return O.query!==void 0&&_.push("?",O.query),O.fragment!==void 0&&_.push("#",O.fragment),_.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(A,x){if(x[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function b(A,x){const O=Object.assign({},x),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let _=!1,F=!1;O.reference==="suffix"&&(O.scheme?A=O.scheme+":"+A:A="//"+A);const I=A.match(v);if(I){C.scheme=I[1],C.userinfo=I[3],C.host=I[4],C.port=parseInt(I[5],10),C.path=I[6]||"",C.query=I[7],C.fragment=I[8],isNaN(C.port)&&(C.port=I[5]);const j=y(C,I);if(j!==void 0&&(C.error=C.error||j,_=!0),C.host)if(s(C.host)===!1){const Z=e(C.host);C.host=Z.host.toLowerCase(),F=Z.isIPV6}else F=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",O.reference&&O.reference!=="suffix"&&O.reference!==C.reference&&(C.error=C.error||"URI is not a "+O.reference+" reference.");const $=u(O.scheme||C.scheme);if(!O.unicodeSupport&&(!$||!$.unicodeSupport)&&C.host&&(O.domainHost||$&&$.domainHost)&&F===!1&&c(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(Y){C.error=C.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(A.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=o(unescape(C.host),F))),C.path&&(C.path=i(C.path)),C.fragment))try{C.fragment=encodeURI(decodeURIComponent(C.fragment))}catch{C.error=C.error||"URI malformed"}$&&$.parse&&$.parse(C,O)}else C.error=C.error||"URI can not be parsed.";return{parsed:C,malformedAuthorityOrPort:_}}function w(A,x){return b(A,x).parsed}function E(A,x){return m(A,x).normalized}function m(A,x){const{parsed:O,malformedAuthorityOrPort:C}=b(A,x);return{normalized:C?A:k(O,x),malformedAuthorityOrPort:C}}function g(A,x){if(typeof A=="string"){const{normalized:O,malformedAuthorityOrPort:C}=m(A,x);return C?void 0:O}if(typeof A=="object")return k(A,x)}const S={SCHEMES:l,normalize:f,resolve:p,resolveComponent:d,equal:h,serialize:k,parse:w};return Bo.exports=S,Bo.exports.default=S,Bo.exports.fastUri=S,Bo.exports}var Xv;function hD(){if(Xv)return El;Xv=1,Object.defineProperty(El,"__esModule",{value:!0});const e=mD();return e.code='require("ajv/dist/runtime/uri").default',El.default=e,El}var Zv;function gD(){return Zv||(Zv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=bl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ue();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const a=td(),i=Sl(),n=Iv(),o=rd(),s=Ue(),c=vl(),l=yl(),u=et(),f=dD,p=hD(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],k=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,U,T,N,L,B,V,K,J,Q,q,z,W,G,te,ae,pe,ve,Ae,Se,De,he,Le,We,ke;const ee=P.strict,re=(M=P.code)===null||M===void 0?void 0:M.optimize,ne=re===!0||re===void 0?1:re||0,we=(T=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&T!==void 0?T:d,me=(N=P.uriResolver)!==null&&N!==void 0?N:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:ee)!==null&&B!==void 0?B:!0,strictNumbers:(K=(V=P.strictNumbers)!==null&&V!==void 0?V:ee)!==null&&K!==void 0?K:!0,strictTypes:(Q=(J=P.strictTypes)!==null&&J!==void 0?J:ee)!==null&&Q!==void 0?Q:"log",strictTuples:(z=(q=P.strictTuples)!==null&&q!==void 0?q:ee)!==null&&z!==void 0?z:"log",strictRequired:(G=(W=P.strictRequired)!==null&&W!==void 0?W:ee)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:ne,regExp:we}:{optimize:ne,regExp:we},loopRequired:(te=P.loopRequired)!==null&&te!==void 0?te:b,loopEnum:(ae=P.loopEnum)!==null&&ae!==void 0?ae:b,meta:(pe=P.meta)!==null&&pe!==void 0?pe:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ae=P.inlineRefs)!==null&&Ae!==void 0?Ae:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(De=P.addUsedSchema)!==null&&De!==void 0?De:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(Le=P.validateFormats)!==null&&Le!==void 0?Le:!0,unicodeRegExp:(We=P.unicodeRegExp)!==null&&We!==void 0?We:!0,int32range:(ke=P.int32range)!==null&&ke!==void 0?ke:!0,uriResolver:me}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:U,lines:T}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=_(M.logger);const N=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),m.call(this,v,M,"NOT SUPPORTED"),m.call(this,y,M,"DEPRECATED","warn"),this._metaOpts=O.call(this),M.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&x.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),S.call(this),M.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:T}=this.opts;let N=f;T==="id"&&(N={...f},N.id=N.$id,delete N.$id),U&&M&&this.addMetaSchema(N,N[T],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let T;if(typeof M=="string"){if(T=this.getSchema(M),!T)throw new Error(`no schema with key or ref "${M}"`)}else T=this.compile(M);const N=T(U);return"$async"in T||(this.errors=T.errors),N}compile(M,U){const T=this._addSchema(M,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return N.call(this,M,U);async function N(Q,q){await L.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function L(Q){Q&&!this.getSchema(Q)&&await N.call(this,{$ref:Q},!0)}async function B(Q){try{return this._compileSchemaEnv(Q)}catch(q){if(!(q instanceof i.default))throw q;return V.call(this,q),await K.call(this,q.missingSchema),B.call(this,Q)}}function V({missingSchema:Q,missingRef:q}){if(this.refs[Q])throw new Error(`AnySchema ${Q} is loaded but ${q} cannot be resolved`)}async function K(Q){const q=await J.call(this,Q);this.refs[Q]||await L.call(this,q.$schema),this.refs[Q]||this.addSchema(q,Q,U)}async function J(Q){const q=this._loading[Q];if(q)return q;try{return await(this._loading[Q]=T(Q))}finally{delete this._loading[Q]}}}addSchema(M,U,T,N=this.opts.validateSchema){if(Array.isArray(M)){for(const B of M)this.addSchema(B,void 0,T,N);return this}let L;if(typeof M=="object"){const{schemaId:B}=this.opts;if(L=M[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||L),this._checkUnique(U),this.schemas[U]=this._addSchema(M,T,U,N,!0),this}addMetaSchema(M,U,T=this.opts.validateSchema){return this.addSchema(M,U,!0,T),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let T;if(T=M.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const N=this.validate(T,M);if(!N&&U){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return N}getSchema(M){let U;for(;typeof(U=g.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:T}=this.opts,N=new o.SchemaEnv({schema:{},schemaId:T});if(U=o.resolveSchema.call(this,N,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let T=M[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let T;if(typeof M=="string")T=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof M=="object"&&U===void 0){if(U=M,T=U.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(I.call(this,T,U),!U)return(0,u.eachItem)(T,L=>j.call(this,L)),this;Y.call(this,U);const N={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,N.type.length===0?L=>j.call(this,L,N):L=>N.type.forEach(B=>j.call(this,L,N,B))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const T of U.rules){const N=T.rules.findIndex(L=>L.keyword===M);N>=0&&T.rules.splice(N,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!M||M.length===0?"No errors":M.map(N=>`${T}${N.instancePath} ${N.message}`).reduce((N,L)=>N+U+L)}$dataMetaSchema(M,U){const T=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const N of U){const L=N.split("/").slice(1);let B=M;for(const V of L)B=B[V];for(const V in T){const K=T[V];if(typeof K!="object")continue;const{$data:J}=K.definition,Q=B[V];J&&Q&&(B[V]=ie(Q))}}return M}_removeAllSchemas(M,U){for(const T in M){const N=M[T];(!U||U.test(T))&&(typeof N=="string"?delete M[T]:N&&!N.meta&&(this._cache.delete(N.schema),delete M[T]))}}_addSchema(M,U,T,N=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof M=="object")B=M[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(M);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,M,T);return K=new o.SchemaEnv({schema:M,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),L&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),N&&this.validateSchema(M,!0),K}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):o.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,M)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function m(P,M,U,T="error"){for(const N in P){const L=N;L in M&&this.logger[T](`${U}: option ${N}. ${P[L]}`)}}function g(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function S(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function A(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function x(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const U=P[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function O(){const P={...this.opts};for(const M of h)delete P[M];return P}const C={log(){},warn(){},error(){}};function _(P){if(P===!1)return C;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,M){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!F.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,U){var T;const N=M==null?void 0:M.post;if(U&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=N?L.post:L.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!M)return;const V={keyword:P,definition:{...M,type:(0,l.getJSONTypes)(M.type),schemaType:(0,l.getJSONTypes)(M.schemaType)}};M.before?$.call(this,B,V,M.before):B.rules.push(V),L.all[P]=V,(T=M.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,M,U){const T=P.rules.findIndex(N=>N.keyword===U);T>=0?P.rules.splice(T,0,M):(P.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=ie(M)),P.validateSchema=this.compile(M,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Gf)),Gf}var Cl={},Al={},_l={},Qv;function yD(){if(Qv)return _l;Qv=1,Object.defineProperty(_l,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return _l.default=e,_l}var wa={},eb;function vD(){if(eb)return wa;eb=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.callRef=wa.getValidate=void 0;const e=Sl(),t=fn(),r=Ue(),a=ka(),i=rd(),n=et(),o={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:p}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=p,{root:b}=h;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=i.resolveRef.call(y,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return m(w);return g(w);function E(){if(h===b)return c(l,k,h,h.$async);const S=u.scopeValue("root",{ref:b});return c(l,(0,r._)`${S}.validate`,b,b.$async)}function m(S){const A=s(l,S);c(l,A,S,S.$async)}function g(S){const A=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),x=u.name("valid"),O=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},x);l.mergeEvaluated(O),l.ok(x)}}};function s(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}wa.getValidate=s;function c(l,u,f,p){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;p?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(l,u,b)}`),g(u),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${h.ValidationError})`,()=>d.throw(A)),m(A),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>m(u))}function m(S){const A=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${A} : ${a.default.vErrors}.concat(${A})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var A;if(!h.opts.unevaluated)return;const x=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(h.props!==!0)if(x&&!x.dynamicProps)x.props!==void 0&&(h.props=n.mergeEvaluated.props(d,x.props,h.props));else{const O=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,O,h.props,r.Name)}if(h.items!==!0)if(x&&!x.dynamicItems)x.items!==void 0&&(h.items=n.mergeEvaluated.items(d,x.items,h.items));else{const O=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,O,h.items,r.Name)}}}return wa.callRef=c,wa.default=o,wa}var tb;function bD(){if(tb)return Al;tb=1,Object.defineProperty(Al,"__esModule",{value:!0});const e=yD(),t=vD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Al.default=r,Al}var Ol={},xl={},rb;function kD(){if(rb)return xl;rb=1,Object.defineProperty(xl,"__esModule",{value:!0});const e=Ue(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:n,schemaCode:o})=>(0,e.str)`must be ${r[n].okStr} ${o}`,params:({keyword:n,schemaCode:o})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${o}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:a,code(n){const{keyword:o,data:s,schemaCode:c}=n;n.fail$data((0,e._)`${s} ${r[o].fail} ${c} || isNaN(${s})`)}};return xl.default=i,xl}var Tl={},nb;function wD(){if(nb)return Tl;nb=1,Object.defineProperty(Tl,"__esModule",{value:!0});const e=Ue(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:i,data:n,schemaCode:o,it:s}=a,c=s.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;a.fail$data((0,e._)`(${o} === 0 || (${l} = ${n}/${o}, ${u}))`)}};return Tl.default=r,Tl}var Pl={},Il={},ab;function SD(){if(ab)return Il;ab=1,Object.defineProperty(Il,"__esModule",{value:!0});function e(t){const r=t.length;let a=0,i=0,n;for(;i<r;)a++,n=t.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=t.charCodeAt(i),(n&64512)===56320&&i++);return a}return Il.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Il}var ib;function ED(){if(ib)return Pl;ib=1,Object.defineProperty(Pl,"__esModule",{value:!0});const e=Ue(),t=et(),r=SD(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:c,it:l}=n,u=o==="maxLength"?e.operators.GT:e.operators.LT,f=l.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${s})`;n.fail$data((0,e._)`${f} ${u} ${c}`)}};return Pl.default=i,Pl}var Nl={},ob;function CD(){if(ob)return Nl;ob=1,Object.defineProperty(Nl,"__esModule",{value:!0});const e=fn(),t=et(),r=Ue(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:o,data:s,$data:c,schema:l,schemaCode:u,it:f}=n,p=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:d}=f.opts.code,h=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(o,d),k=o.let("valid");o.try(()=>o.assign(k,(0,r._)`${h}(${u}, ${p}).test(${s})`),()=>o.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,l);n.fail$data((0,r._)`!${d}.test(${s})`)}}};return Nl.default=i,Nl}var Dl={},sb;function AD(){if(sb)return Dl;sb=1,Object.defineProperty(Dl,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:o}=a,s=i==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${n}).length ${s} ${o}`)}};return Dl.default=r,Dl}var Fl={},lb;function _D(){if(lb)return Fl;lb=1,Object.defineProperty(Fl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:o,schema:s,schemaCode:c,data:l,$data:u,it:f}=n,{opts:p}=f;if(!u&&s.length===0)return;const d=s.length>=p.loopRequired;if(f.allErrors?h():k(),p.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of s)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const m=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${m}" (strictRequired)`;(0,r.checkStrictMode)(f,g,f.opts.strictRequired)}}function h(){if(d||u)n.block$data(t.nil,v);else for(const b of s)(0,e.checkReportMissingProp)(n,b)}function k(){const b=o.let("missing");if(d||u){const w=o.let("valid",!0);n.block$data(w,()=>y(b,w)),n.ok(w)}else o.if((0,e.checkMissingProp)(n,s,b)),(0,e.reportMissingProp)(n,b),o.else()}function v(){o.forOf("prop",c,b=>{n.setParams({missingProperty:b}),o.if((0,e.noPropertyInData)(o,l,b,p.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),o.forOf(b,c,()=>{o.assign(w,(0,e.propertyInData)(o,l,b,p.ownProperties)),o.if((0,t.not)(w),()=>{n.error(),o.break()})},t.nil)}}};return Fl.default=i,Fl}var Ml={},cb;function OD(){if(cb)return Ml;cb=1,Object.defineProperty(Ml,"__esModule",{value:!0});const e=Ue(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:o}=a,s=i==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${n}.length ${s} ${o}`)}};return Ml.default=r,Ml}var jl={},Ll={},ub;function id(){if(ub)return Ll;ub=1,Object.defineProperty(Ll,"__esModule",{value:!0});const e=zv();return e.code='require("ajv/dist/runtime/equal").default',Ll.default=e,Ll}var fb;function xD(){if(fb)return jl;fb=1,Object.defineProperty(jl,"__esModule",{value:!0});const e=yl(),t=Ue(),r=et(),a=id(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,params:({params:{i:o,j:s}})=>(0,t._)`{i: ${o}, j: ${s}}`},code(o){const{gen:s,data:c,$data:l,schema:u,parentSchema:f,schemaCode:p,it:d}=o;if(!l&&!u)return;const h=s.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];o.block$data(h,v,(0,t._)`${p} === false`),o.ok(h);function v(){const E=s.let("i",(0,t._)`${c}.length`),m=s.let("j");o.setParams({i:E,j:m}),s.assign(h,!0),s.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,m))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,m){const g=s.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),A=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${E}--;`,()=>{s.let(g,(0,t._)`${c}[${E}]`),s.if(S,(0,t._)`continue`),k.length>1&&s.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),s.if((0,t._)`typeof ${A}[${g}] == "number"`,()=>{s.assign(m,(0,t._)`${A}[${g}]`),o.error(),s.assign(h,!1).break()}).code((0,t._)`${A}[${g}] = ${E}`)})}function w(E,m){const g=(0,r.useFunc)(s,a.default),S=s.name("outer");s.label(S).for((0,t._)`;${E}--;`,()=>s.for((0,t._)`${m} = ${E}; ${m}--;`,()=>s.if((0,t._)`${g}(${c}[${E}], ${c}[${m}])`,()=>{o.error(),s.assign(h,!1).break(S)})))}}};return jl.default=n,jl}var Rl={},db;function TD(){if(db)return Rl;db=1,Object.defineProperty(Rl,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:o,data:s,$data:c,schemaCode:l,schema:u}=n;c||u&&typeof u=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(o,r.default)}(${s}, ${l})`):n.fail((0,e._)`${u} !== ${s}`)}};return Rl.default=i,Rl}var ql={},pb;function PD(){if(pb)return ql;pb=1,Object.defineProperty(ql,"__esModule",{value:!0});const e=Ue(),t=et(),r=id(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:o,data:s,$data:c,schema:l,schemaCode:u,it:f}=n;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const p=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(o,r.default));let k;if(p||c)k=o.let("valid"),n.block$data(k,v);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const b=o.const("vSchema",u);k=(0,e.or)(...l.map((w,E)=>y(b,E)))}n.pass(k);function v(){o.assign(k,!1),o.forOf("v",u,b=>o.if((0,e._)`${h()}(${s}, ${b})`,()=>o.assign(k,!0).break()))}function y(b,w){const E=l[w];return typeof E=="object"&&E!==null?(0,e._)`${h()}(${s}, ${b}[${w}])`:(0,e._)`${s} === ${E}`}}};return ql.default=i,ql}var mb;function ID(){if(mb)return Ol;mb=1,Object.defineProperty(Ol,"__esModule",{value:!0});const e=kD(),t=wD(),r=ED(),a=CD(),i=AD(),n=_D(),o=OD(),s=xD(),c=TD(),l=PD(),u=[e.default,t.default,r.default,a.default,i.default,n.default,o.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return Ol.default=u,Ol}var zl={},Ui={},hb;function gb(){if(hb)return Ui;hb=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.validateAdditionalItems=void 0;const e=Ue(),t=et(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:o,it:s}=n,{items:c}=o;if(!Array.isArray(c)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(n,c)}};function i(n,o){const{gen:s,schema:c,data:l,keyword:u,it:f}=n;f.items=!0;const p=s.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:o.length}),n.pass((0,e._)`${p} <= ${o.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=s.var("valid",(0,e._)`${p} <= ${o.length}`);s.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){s.forRange("i",o.length,p,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||s.if((0,e.not)(h),()=>s.break())})}}return Ui.validateAdditionalItems=i,Ui.default=a,Ui}var $l={},Bi={},yb;function vb(){if(yb)return Bi;yb=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.validateTuple=void 0;const e=Ue(),t=et(),r=fn(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:o,it:s}=n;if(Array.isArray(o))return i(n,"additionalItems",o);s.items=!0,!(0,t.alwaysValidSchema)(s,o)&&n.ok((0,r.validateArray)(n))}};function i(n,o,s=n.schema){const{gen:c,parentSchema:l,data:u,keyword:f,it:p}=n;k(l),p.opts.unevaluated&&s.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(c,s.length,p.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);s.forEach((v,y)=>{(0,t.alwaysValidSchema)(p,v)||(c.if((0,e._)`${h} > ${y}`,()=>n.subschema({keyword:f,schemaProp:y,dataProp:y},d)),n.ok(d))});function k(v){const{opts:y,errSchemaPath:b}=p,w=s.length,E=w===v.minItems&&(w===v.maxItems||v[o]===!1);if(y.strictTuples&&!E){const m=`"${f}" is ${w}-tuple, but minItems or maxItems/${o} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,m,y.strictTuples)}}}return Bi.validateTuple=i,Bi.default=a,Bi}var bb;function ND(){if(bb)return $l;bb=1,Object.defineProperty($l,"__esModule",{value:!0});const e=vb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return $l.default=t,$l}var Ul={},kb;function DD(){if(kb)return Ul;kb=1,Object.defineProperty(Ul,"__esModule",{value:!0});const e=Ue(),t=et(),r=fn(),a=gb(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{schema:s,parentSchema:c,it:l}=o,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,s)&&(u?(0,a.validateAdditionalItems)(o,u):o.ok((0,r.validateArray)(o)))}};return Ul.default=n,Ul}var Bl={},wb;function FD(){if(wb)return Bl;wb=1,Object.defineProperty(Bl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:n}})=>n===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${n} valid item(s)`,params:({params:{min:i,max:n}})=>n===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${n}}`},code(i){const{gen:n,schema:o,parentSchema:s,data:c,it:l}=i;let u,f;const{minContains:p,maxContains:d}=s;l.opts.next?(u=p===void 0?1:p,f=d):u=1;const h=n.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,o)){let w=(0,e._)`${h} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${h} <= ${f}`),i.pass(w);return}l.items=!0;const k=n.name("valid");f===void 0&&u===1?y(k,()=>n.if(k,()=>n.break())):u===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${c}.length > 0`,v)):(n.let(k,!1),v()),i.result(k,()=>i.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);y(w,()=>n.if(w,()=>b(E)))}function y(w,E){n.forRange("i",0,h,m=>{i.subschema({keyword:"contains",dataProp:m,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),u===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0)))}}};return Bl.default=a,Bl}var od={},Sb;function MD(){return Sb||(Sb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ue(),r=et(),a=fn();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
|
|
103
103
|
missingProperty: ${f},
|
|
104
104
|
depsCount: ${l},
|
|
105
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=n(c);s(c,l),o(c,u)}};function n({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const p=Array.isArray(c[f])?l:u;p[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:p}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const h in l){const k=l[h];if(k.length===0)continue;const v=(0,a.propertyInData)(u,f,h,p.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),p.allErrors?u.if(v,()=>{for(const y of k)(0,a.checkReportMissingProp)(c,y)}):(u.if((0,t._)`${v} && (${(0,a.checkMissingProp)(c,k,d)})`),(0,a.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function o(c,l=c.schema){const{gen:u,data:f,keyword:p,it:d}=c,h=u.name("valid");for(const k in l)(0,r.alwaysValidSchema)(d,l[k])||(u.if((0,a.propertyInData)(u,f,k,d.opts.ownProperties),()=>{const v=c.subschema({keyword:p,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=o,e.default=i})(sd)),sd}var Vl={},Sb;function FD(){if(Sb)return Vl;Sb=1,Object.defineProperty(Vl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:n,schema:s,data:o,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=n.name("valid");n.forIn("key",o,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||n.break()})}),i.ok(l)}};return Vl.default=a,Vl}var Hl={},Eb;function Cb(){if(Eb)return Hl;Eb=1,Object.defineProperty(Hl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=ka(),a=et(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:c,parentSchema:l,data:u,errsCount:f,it:p}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=p;if(p.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(p,c))return;const k=(0,e.allSchemaProperties)(l.properties),v=(0,e.allSchemaProperties)(l.patternProperties);y(),s.ok((0,t._)`${f} === ${r.default.errors}`);function y(){o.forIn("key",u,g=>{!k.length&&!v.length?E(g):o.if(b(g),()=>E(g))})}function b(g){let S;if(k.length>8){const A=(0,a.schemaRefOrVal)(p,l.properties,"properties");S=(0,e.isOwnProperty)(o,A,g)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${g} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${g})`))),(0,t.not)(S)}function w(g){o.code((0,t._)`delete ${u}[${g}]`)}function E(g){if(h.removeAdditional==="all"||h.removeAdditional&&c===!1){w(g);return}if(c===!1){s.setParams({additionalProperty:g}),s.error(),d||o.break();return}if(typeof c=="object"&&!(0,a.alwaysValidSchema)(p,c)){const S=o.name("valid");h.removeAdditional==="failing"?(m(g,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(g)})):(m(g,S),d||o.if((0,t.not)(S),()=>o.break()))}}function m(g,S,A){const x={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};A===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(x,S)}}};return Hl.default=n,Hl}var Wl={},Ab;function MD(){if(Ab)return Wl;Ab=1,Object.defineProperty(Wl,"__esModule",{value:!0});const e=bl(),t=fn(),r=et(),a=Cb(),i={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,parentSchema:c,data:l,it:u}=n;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(u,a.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),u.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(u,o[v]));if(p.length===0)return;const d=s.name("valid");for(const v of p)h(v)?k(v):(s.if((0,t.propertyInData)(s,l,v,u.opts.ownProperties)),k(v),u.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function h(v){return u.opts.useDefaults&&!u.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return Wl.default=i,Wl}var Kl={},_b;function jD(){if(_b)return Kl;_b=1,Object.defineProperty(Kl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),a=et(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:c,parentSchema:l,it:u}=n,{opts:f}=u,p=(0,e.allSchemaProperties)(o),d=p.filter(E=>(0,r.alwaysValidSchema)(u,o[E]));if(p.length===0||d.length===p.length&&(!u.opts.unevaluated||u.props===!0))return;const h=f.strictSchema&&!f.allowMatchingProperties&&l.properties,k=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,a.evaluatedPropsToName)(s,u.props));const{props:v}=u;y();function y(){for(const E of p)h&&b(E),u.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const m in h)new RegExp(E).test(m)&&(0,r.checkStrictMode)(u,`property ${m} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",c,m=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${m})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:m,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${m}]`,!0):!g&&!u.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return Kl.default=i,Kl}var Gl={},Ob;function LD(){if(Ob)return Gl;Ob=1,Object.defineProperty(Gl,"__esModule",{value:!0});const e=et(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:a,schema:i,it:n}=r;if((0,e.alwaysValidSchema)(n,i)){r.fail();return}const s=a.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Gl.default=t,Gl}var Jl={},xb;function RD(){if(xb)return Jl;xb=1,Object.defineProperty(Jl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fn().validateUnion,error:{message:"must match a schema in anyOf"}};return Jl.default=t,Jl}var Yl={},Tb;function qD(){if(Tb)return Yl;Tb=1,Object.defineProperty(Yl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:n,schema:s,parentSchema:o,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&o.discriminator)return;const l=s,u=n.let("valid",!1),f=n.let("passing",null),p=n.name("_valid");i.setParams({passing:f}),n.block(d),i.result(u,()=>i.reset(),()=>i.error(!0));function d(){l.forEach((h,k)=>{let v;(0,t.alwaysValidSchema)(c,h)?n.var(p,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return Yl.default=a,Yl}var Xl={},Pb;function zD(){if(Pb)return Xl;Pb=1,Object.defineProperty(Xl,"__esModule",{value:!0});const e=et(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:a,schema:i,it:n}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=a.name("valid");i.forEach((o,c)=>{if((0,e.alwaysValidSchema)(n,o))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(l)})}};return Xl.default=t,Xl}var Zl={},Ib;function $D(){if(Ib)return Zl;Ib=1,Object.defineProperty(Zl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:s,parentSchema:o,it:c}=n;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const f=s.let("valid",!0),p=s.name("_valid");if(d(),n.reset(),l&&u){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(p,h("then",k),h("else",k))}else l?s.if(p,h("then")):s.if((0,e.not)(p),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},p);s.assign(f,p),n.mergeValidEvaluated(y,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function i(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return Zl.default=a,Zl}var Ql={},Nb;function UD(){if(Nb)return Ql;Nb=1,Object.defineProperty(Ql,"__esModule",{value:!0});const e=et(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:a,it:i}){a.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Ql.default=t,Ql}var Db;function BD(){if(Db)return zl;Db=1,Object.defineProperty(zl,"__esModule",{value:!0});const e=hb(),t=PD(),r=yb(),a=ID(),i=ND(),n=DD(),s=FD(),o=Cb(),c=MD(),l=jD(),u=LD(),f=RD(),p=qD(),d=zD(),h=$D(),k=UD();function v(y=!1){const b=[u.default,f.default,p.default,d.default,h.default,k.default,s.default,o.default,n.default,c.default,l.default];return y?b.push(t.default,a.default):b.push(e.default,r.default),b.push(i.default),b}return zl.default=v,zl}var ec={},tc={},Fb;function VD(){if(Fb)return tc;Fb=1,Object.defineProperty(tc,"__esModule",{value:!0});const e=Ue(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,i){const{gen:n,data:s,$data:o,schema:c,schemaCode:l,it:u}=a,{opts:f,errSchemaPath:p,schemaEnv:d,self:h}=u;if(!f.validateFormats)return;o?k():v();function k(){const y=n.scopeValue("formats",{ref:h.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${y}[${l}]`),w=n.let("fType"),E=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(E,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(E,b)),a.fail$data((0,e.or)(m(),g()));function m(){return f.strictSchema===!1?e.nil:(0,e._)`${l} && !${E}`}function g(){const S=d.$async?(0,e._)`(${b}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,e._)`${E}(${s})`,A=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${A}`}}function v(){const y=h.formats[c];if(!y){m();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function m(){if(f.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function g(A){const x=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,O=n.scopeValue("formats",{key:c,ref:A,code:x});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${O}.validate`]:["string",A,O]}function S(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${s})`}return typeof w=="function"?(0,e._)`${E}(${s})`:(0,e._)`${E}.test(${s})`}}}};return tc.default=r,tc}var Mb;function HD(){if(Mb)return ec;Mb=1,Object.defineProperty(ec,"__esModule",{value:!0});const t=[VD().default];return ec.default=t,ec}var ti={},jb;function WD(){return jb||(jb=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.contentVocabulary=ti.metadataVocabulary=void 0,ti.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ti.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ti}var Lb;function KD(){if(Lb)return Cl;Lb=1,Object.defineProperty(Cl,"__esModule",{value:!0});const e=yD(),t=TD(),r=BD(),a=HD(),i=WD(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Cl.default=n,Cl}var rc={},Bs={},Rb;function GD(){if(Rb)return Bs;Rb=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Bs.DiscrError=e={})),Bs}var qb;function JD(){if(qb)return rc;qb=1,Object.defineProperty(rc,"__esModule",{value:!0});const e=Ue(),t=GD(),r=rd(),a=Sl(),i=et(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:c}})=>o===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:o,tag:c,tagName:l}})=>(0,e._)`{error: ${o}, tag: ${l}, tagValue: ${c}}`},code(o){const{gen:c,data:l,schema:u,parentSchema:f,it:p}=o,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=u.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=c.let("valid",!1),v=c.const("tag",(0,e._)`${l}${(0,e.getProperty)(h)}`);c.if((0,e._)`typeof ${v} == "string"`,()=>y(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:h})),o.ok(k);function y(){const E=w();c.if(!1);for(const m in E)c.elseIf((0,e._)`${v} === ${m}`),c.assign(k,b(E[m]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const m=c.name("valid"),g=o.subschema({keyword:"oneOf",schemaProp:E},m);return o.mergeEvaluated(g,e.Name),m}function w(){var E;const m={},g=A(f);let S=!0;for(let C=0;C<d.length;C++){let _=d[C];if(_!=null&&_.$ref&&!(0,i.schemaHasRulesButRef)(_,p.self.RULES)){const I=_.$ref;if(_=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,I),_ instanceof r.SchemaEnv&&(_=_.schema),_===void 0)throw new a.default(p.opts.uriResolver,p.baseId,I)}const F=(E=_==null?void 0:_.properties)===null||E===void 0?void 0:E[h];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||A(_)),x(F,C)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return m;function A({required:C}){return Array.isArray(C)&&C.includes(h)}function x(C,_){if(C.const)O(C.const,_);else if(C.enum)for(const F of C.enum)O(F,_);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function O(C,_){if(typeof C!="string"||C in m)throw new Error(`discriminator: "${h}" values must be unique strings`);m[C]=_}}}};return rc.default=s,rc}const YD={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var zb;function $b(){return zb||(zb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=mD(),a=KD(),i=JD(),n=YD,s=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(h,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=bl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ue();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=td();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Sl();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(pl,pl.exports)),pl.exports}var XD=$b();const ZD=gn(XD);var nc={exports:{}},od={},Ub;function QD(){return Ub||(Ub=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(x,O){return{validate:x,compare:O}}e.fullFormats={date:t(n,s),time:t(c,l),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"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":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,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:/^(?=.{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,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:E},int64:{type:"number",validate:m},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\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,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,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},e.formatNames=Object.keys(e.fullFormats);function r(x){return x%4===0&&(x%100!==0||x%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(x){const O=a.exec(x);if(!O)return!1;const C=+O[1],_=+O[2],F=+O[3];return _>=1&&_<=12&&F>=1&&F<=(_===2&&r(C)?29:i[_])}function s(x,O){if(x&&O)return x>O?1:x<O?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(x,O){const C=o.exec(x);if(!C)return!1;const _=+C[1],F=+C[2],I=+C[3],j=C[5];return(_<=23&&F<=59&&I<=59||_===23&&F===59&&I===60)&&(!O||j!=="")}function l(x,O){if(!(x&&O))return;const C=o.exec(x),_=o.exec(O);if(C&&_)return x=C[1]+C[2]+C[3]+(C[4]||""),O=_[1]+_[2]+_[3]+(_[4]||""),x>O?1:x<O?-1:0}const u=/t|\s/i;function f(x){const O=x.split(u);return O.length===2&&n(O[0])&&c(O[1],!0)}function p(x,O){if(!(x&&O))return;const[C,_]=x.split(u),[F,I]=O.split(u),j=s(C,F);if(j!==void 0)return j||l(_,I)}const d=/\/|:/,h=/^(?:[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;function k(x){return d.test(x)&&h.test(x)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(x){return v.lastIndex=0,v.test(x)}const b=-2147483648,w=2**31-1;function E(x){return Number.isInteger(x)&&x<=w&&x>=b}function m(x){return Number.isInteger(x)}function g(){return!0}const S=/[^\\]\\Z/;function A(x){if(S.test(x))return!1;try{return new RegExp(x),!0}catch{return!1}}})(od)),od}var ld={},Bb;function eF(){return Bb||(Bb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=$b(),r=Ue(),a=r.operators,i={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},n={message:({keyword:o,schemaCode:c})=>r.str`should be ${i[o].okStr} ${c}`,params:({keyword:o,schemaCode:c})=>r._`{comparison: ${i[o].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:c,data:l,schemaCode:u,keyword:f,it:p}=o,{opts:d,self:h}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,h.RULES.all.format.definition,"format");k.$data?v():y();function v(){const w=c.scopeValue("formats",{ref:h.formats,code:d.code.formats}),E=c.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function y(){const w=k.schema,E=h.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const m=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(m))}function b(w){return r._`${w}.compare(${l}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(ld)),ld}var Vb;function tF(){return Vb||(Vb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=QD(),a=eF(),i=Ue(),n=new i.Name("fullFormats"),s=new i.Name("fastFormats"),o=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,n),l;const[f,p]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,p),u.keywords&&a.default(l),l};o.get=(l,u="full")=>{const p=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!p)throw new Error(`Unknown format "${l}"`);return p};function c(l,u,f,p){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${p}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(nc,nc.exports)),nc.exports}var rF=tF();const Hb=gn(rF),nF={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},aF=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,iF=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function sF(e,t,r={},a,i=ZD,n){let s=new i({...nF,...r});return a?Hb(s,a):a!==!1&&Hb(s),s.addFormat("data-url",iF),s.addFormat("color",aF),s.addKeyword(su),Array.isArray(e)&&s.addMetaSchema(e),Ye(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class oF{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=sF(a,i,n,s,o,c),this.localizer=r,this.suppressDuplicateFiltering=l}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var a,i;let n,s;try{t[dt]&&(s=this.ajv.getSchema(t[dt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(c){n=c}let o;return s&&(typeof this.localizer=="function"&&(((a=s.errors)!==null&&a!==void 0?a:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=`'${c.params[u]}'`)}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(s.errors),((i=s.errors)!==null&&i!==void 0?i:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=c.params[u].slice(1,-1))}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),o=s.errors||void 0,s.errors=null),{errors:o,validationError:n}}validateFormData(t,r,a,i,n){const s=this.rawValidation(r,t);return aD(this,s,t,r,a,i,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,a;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const i=(r=t[dt])!==null&&r!==void 0?r:xm;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Xe(t,(a=this.ajv.getSchema(i))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,a){var i;try{this.handleSchemaUpdate(a);const n=hf(t),s=(i=n[dt])!==null&&i!==void 0?i:aT(n);let o;return o=this.ajv.getSchema(s),o===void 0&&(o=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)),o(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function ac(e={},t){return new oF(e,t)}ac();var cd,Wb;function lF(){return Wb||(Wb=1,cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="must have propert",a==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"maxItems":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="must NOT be longer than "+a+" character",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="must NOT have more than "+a+" propert",a==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"minItems":n="";var a=i.params.limit;n+="must NOT have less than "+a+" item",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="must NOT be shorter than "+a+" character",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="must NOT have less than "+a+" propert",a==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),cd}var ud,Kb;function cF(){return Kb||(Kb=1,ud=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" يجب أن يحوي الخصائص "+i.params.deps+" عندما تكون الخاصية "+i.params.property+" موجودة";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"maxLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" محرف";break;case"maxProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" عنصر";break;case"minLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" محرف";break;case"minProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+i.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+i.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+i.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+i.params.j+" و "+i.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}i.message=n}}),ud}var fd,Gb;function uF(){return Gb||(Gb=1,fd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" element",a!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="ha de contenir la propietat",a!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" és present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" ítem",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" caràcter",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" propietat",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no ha de tenir menys de "+a+" ítem",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" caràcter",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" propietat",a!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+i.params.j+" i "+i.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}i.message=n}}),fd}var dd,Jb;function fF(){return Jb||(Jb=1,dd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemůže mít víc, než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="musí mít polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+i.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+i.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmí obsahovat víc než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"maxLength":n="";var a=i.params.limit;n+="nesmí být delší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"maxProperties":n="";var a=i.params.limit;n+="nesmí mít víc než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmí obsahovat méně než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"minLength":n="";var a=i.params.limit;n+="nesmí být kratší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"minProperties":n="";var a=i.params.limit;n+="nesmí mít méně než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+i.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+i.params.missingProperty;break;case"type":n="musí být "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identické)";break;default:n='musí vyhovět "'+i.keyword+'" validaci'}i.message=n}}),dd}var pd,Yb;function dF(){return Yb||(Yb=1,pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="muss Attribut",a!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var a=i.params.limit;n+="darf nicht länger als "+a+" Zeichen sein";break;case"maxProperties":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var a=i.params.limit;n+="darf nicht kürzer als "+a+" Zeichen sein";break;case"minProperties":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}),pd}var md,Xb;function pF(){return Xb||(Xb=1,md=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no debe tener más de "+a+" elemento",a!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="debe contener la",a!=1&&(n+="s"),n+=" propiedad",a!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no debe contener más de "+a+" elemento",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no debe contener más de "+a+" caracter",a!=1&&(n+="es");break;case"maxProperties":n="";var a=i.params.limit;n+="no debe contener más de "+a+" propiedad",a!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" elemento",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" caracter",a!=1&&(n+="es");break;case"minProperties":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" propiedad",a!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}i.message=n}}),md}var hd,Zb;function mF(){return Zb||(Zb=1,hd=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="saa sisältää enintään "+i,i==1?s+=":n elementin":s+=" elementtiä";break;case"additionalProperties":s="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":s='täytyy vastata "anyOf" skeemaa';break;case"const":s="täytyy olla yhtä kuin vakio";break;case"contains":s="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",i==1?s+="s":s+="det",s+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":s='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":s='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":s="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":s="boolean skeema on väärä";break;case"format":s='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"if":s='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"maxItems":s="";var i=n.params.limit;s+="tulee sisältää enintään "+i+" ",i==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var i=n.params.limit;s+="ei saa olla pidempi kuin "+i+" merkki",i!=1&&(s+="ä");break;case"maxProperties":s="";var i=n.params.limit;s+="tulee sisältää enintään "+i+" ",i==1?s+="ominaisuus":s+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"minItems":s="";var i=n.params.limit;s+="tulee sisältää vähintään "+i+" ",i==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var i=n.params.limit;s+="ei saa olla lyhyempi kuin "+i+" merkki",i!=1&&(s+="ä");break;case"minProperties":s="";var i=n.params.limit;s+="tulee sisältää vähintään "+i+" ",i==1?s+="ominaisuus":s+="ominaisuutta";break;case"multipleOf":s="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":s='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":s='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":s='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":s='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":s="ominaisuuden nimi on virheellinen";break;case"required":s="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="täytyy olla ",a=="number"?s+="numero":a=="integer"?s+="kokonaisluku":a=="string"?s+="merkkijono":a=="boolean"?s+="boolean":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="ei saa olla enemmän kuin "+i+" elementti",i!=1&&(s+="ä");break;case"unevaluatedProperties":s="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":s="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=s}}),hd}var gd,Qb;function hF(){return Qb||(Qb=1,gd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élémént",a!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="doit avoir la propriété "+i.params.deps+" quand la propriété "+i.params.property+" est présente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+i.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élément",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="ne doit pas dépasser "+a+" caractère",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" propriété",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"minItems":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" élément",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="ne doit pas faire moins de "+a+" caractère",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" propriété",a!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+i.params.missingProperty;break;case"type":n="doit être de type "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+i.keyword+'"'}i.message=n}}),gd}var yd,ek;function gF(){return ek||(ek=1,yd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="-nak kell legyen",a>1&&(n+="ek"),n+=" a következő tulajdonsága",a!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdonsága";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"maxLength":n="";var a=i.params.limit;n+="nem lehet hosszabb, mint "+a+" szimbólum";break;case"maxProperties":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" eleme";break;case"minLength":n="";var a=i.params.limit;n+="nem lehet rövidebb, mint "+a+" szimbólum";break;case"minProperties":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+i.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdonsága";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" és "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),yd}var vd,tk;function yF(){return tk||(tk=1,vd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"maxLength":n="";var a=i.params.limit;n+=" tidak boleh lebih dari "+a+" karakter";break;case"maxProperties":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"minItems":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" item";break;case"minLength":n="";var a=i.params.limit;n+=" tidak boleh lebih pendek dari "+a+" karakter";break;case"minProperties":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}),vd}var bd,rk;function vF(){return rk||(rk=1,bd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="non dovrebbe avere più di "+a+" element",a==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="dovrebbe avere ",a==1?n+="l'":n+="gli ",n+="attribut",a==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" è presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var a=i.params.limit;n+="non deve avere più di "+a+" element",a==1?n+="o":n+="i";break;case"maxLength":n="";var a=i.params.limit;n+="non deve essere più lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"maxProperties":n="";var a=i.params.limit;n+="non deve avere più di "+a+" attribut",a==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"minItems":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" element",a==1?n+="o":n+="i";break;case"minLength":n="";var a=i.params.limit;n+="non deve essere meno lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"minProperties":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" attribut",a==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="non deve avere più di "+a+" elementi",a==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}),bd}var kd,nk;function bF(){return nk||(nk=1,kd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="は"+a+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"がある場合、";var a=i.params.depsCount;n+="は"+i.params.deps+"をつけなければいけない";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var a=i.params.limit;n+="は"+a+"個以上であってはいけない";break;case"maxLength":n="";var a=i.params.limit;n+="は"+a+"文字以上であってはいけない";break;case"maxProperties":n="";var a=i.params.limit;n+="は"+a+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var a=i.params.limit;n+="は"+a+"個以下であってはいけない";break;case"minLength":n="";var a=i.params.limit;n+="は"+a+"文字以下であってはいけない";break;case"minProperties":n="";var a=i.params.limit;n+="は"+a+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+i.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+i.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+i.params.missingProperty+"がなければいけない";break;case"type":n=""+i.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+i.params.j+"と"+i.params.i+"は同じである)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),kd}var wd,ak;function kF(){return ak||(ak=1,wd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" 항목은 아이템을 "+a+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=i.params.property+"속성이 있는 경우, "+i.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+i.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+i.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+i.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var a=i.params.limit;n+="아이템이 최대 "+a+"개이여야 합니다";break;case"maxLength":n="";var a=i.params.limit;n+="최대 "+a+"글자여야 합니다";break;case"maxProperties":n="";var a=i.params.limit;n+="속성은 최대 "+a+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var a=i.params.limit;n+="아이템이 최소 "+a+"개이여야 합니다";break;case"minLength":n="";var a=i.params.limit;n+="최소 "+a+"글자여야 합니다";break;case"minProperties":n="";var a=i.params.limit;n+="속성은 최소 "+a+"개 이상이여야 합니다";break;case"multipleOf":n=""+i.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+i.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+i.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+i.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+i.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var a=i.params.len;n+="항목이 "+a+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+i.params.j+"과 아이템"+i.params.i+"가 동일합니다)";break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}i.message=n}}),wd}var Sd,ik;function wF(){return ik||(ik=1,Sd=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="kan ikke ha mer enn "+i+" element",i!=1&&(s+="er");break;case"additionalProperties":s="kan ikke ha flere egenskaper";break;case"anyOf":s='må samsvare med et schema i "anyOf"';break;case"const":s="må være lik konstanten";break;case"contains":s="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="må ha egenskapen",i!=1&&(s+="e"),s+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" must be string';break;case"mapping":s='value of tag "'+n.params.tag+'" must be in oneOf';break;default:s="må samsvare med valideringen for "+n.keyword}break;case"enum":s="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":s="boolsk schema er usannt";break;case"format":s='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"if":s='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"maxItems":s="";var i=n.params.limit;s+="kan ikke ha fler enn "+i+" element",i!=1&&(s+="er");break;case"maxLength":s="";var i=n.params.limit;s+="kan ikke være lengre enn "+i+" tegn";break;case"maxProperties":s="";var i=n.params.limit;s+="kan ikke ha mer enn "+i+" egenskap",i!=1&&(s+="er");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"minItems":s="";var i=n.params.limit;s+="kan ikke ha færre enn "+i+" element",i!=1&&(s+="er");break;case"minLength":s="";var i=n.params.limit;s+="kan ikke være kortere enn "+i+" tegn";break;case"minProperties":s="";var i=n.params.limit;s+="kan ikke ha mindre enn "+i+" egenskap",i!=1&&(s+="er");break;case"multipleOf":s="må være et multiplum av "+n.params.multipleOf;break;case"not":s='kan ikke samsvare med schema i "not"';break;case"oneOf":s='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":s='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":s='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":s="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":s="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="må være ",a=="number"?s+="et tall":a=="integer"?s+="et heltall":a=="string"?s+="en streng":a=="boolean"?s+="ja eller nei":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="must NOT have more than "+i+" item",i!=1&&(s+="s");break;case"unevaluatedProperties":s="must NOT have unevaluated properties";break;case"uniqueItems":s="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:s="må samsvare med valideringen for "+n.keyword}n.message=s}}),Sd}var Ed,sk;function SF(){return sk||(sk=1,Ed=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"additionalProperties":s="mag geen extra eigenschappen bevatten";break;case"anyOf":s='moet overeenkomen met een schema in "anyOf"';break;case"const":s="moet gelijk zijn aan constante";break;case"contains":s="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="moet de eigenschap",i!=1&&(s+="pen"),s+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":s='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":s="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":s="boolean schema is fout";break;case"format":s='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"if":s='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"maxItems":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var i=n.params.limit;s+="mag niet langer dan "+i+" karakter",i!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" eigenschap",i!=1&&(s+="pen"),s+=" bevatten";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"minItems":s="";var i=n.params.limit;s+="mag niet minder dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var i=n.params.limit;s+="mag niet korter dan "+i+" karakter",i!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var i=n.params.limit;s+="mag niet minder dan "+i+" eigenschap",i!=1&&(s+="pen"),s+=" bevatten";break;case"multipleOf":s="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":s='mag niet overeenkomen met een schema in "not"';break;case"oneOf":s='moet overeenkomen met één schema in "oneOf"';break;case"pattern":s='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":s='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":s="eigenschapnaam is ongeldig";break;case"required":s="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":s="";var a=n.params.type;s+="moet een ",a=="number"?s+="nummer":a=="integer"?s+="geheel getal":a=="string"?s+="tekenreeks":a=="boolean"&&(s+="ja of nee waarde"),s+=" ("+a+") bevatten";break;case"unevaluatedItems":s="";var i=n.params.len;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"unevaluatedProperties":s="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":s="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=s}}),Ed}var Cd,ok;function EF(){return ok||(ok=1,Cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="powinien zawierać pol",a==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+i.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"maxLength":n="";var a=i.params.limit;n+="nie powinien być dłuższy niż "+a+" znak",a!=1&&(n+="ów");break;case"maxProperties":n="";var a=i.params.limit;n+="nie powinien zawierać więcej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"minItems":n="";var a=i.params.limit;n+="nie powinien mieć mniej niż "+a+" element",a==1?n+="u":n+="ów";break;case"minLength":n="";var a=i.params.limit;n+="nie powinien być krótszy niż "+a+" znak",a!=1&&(n+="ów");break;case"minProperties":n="";var a=i.params.limit;n+="nie powinien zawierać mniej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+i.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+i.params.missingProperty;break;case"type":n="powinien być "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+i.params.j+" i "+i.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+i.keyword+'"'}i.message=n}}),Cd}var Ad,lk;function CF(){return lk||(lk=1,Ad=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="não são permitidos itens adicionais (mais do que "+i+")";break;case"additionalProperties":s="não são permitidas propriedades adicionais";break;case"anyOf":s='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":s="deve ser igual à constante";break;case"contains":s="deve conter um item válido";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+=" deve ter propriedade",i!=1&&(s+="s"),s+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":s='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":s='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":s="deve ser igual a um dos valores permitidos";break;case"false schema":s='o schema booleano é "false"';break;case"format":s='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"if":s='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"maxItems":s="";var i=n.params.limit;s+="não deve ter mais que "+i+" elemento",i!=1&&(s+="s");break;case"maxLength":s="";var i=n.params.limit;s+="não deve ser maior que "+i+" caracter",i!=1&&(s+="es");break;case"maxProperties":s="";var i=n.params.limit;s+="não deve ter mais que "+i+" propriedade",i!=1&&(s+="s");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"minItems":s="";var i=n.params.limit;s+="não deve ter menos que "+i+" elemento",i!=1&&(s+="s");break;case"minLength":s="";var i=n.params.limit;s+="não deve ser mais curta que "+i+" caracter",i!=1&&(s+="es");break;case"minProperties":s="";var i=n.params.limit;s+="não deve ter menos que "+i+" propriedade",i!=1&&(s+="s");break;case"multipleOf":s="deve ser múltiplo de "+n.params.multipleOf;break;case"not":s='não deve ser valido segundo o schema em "not"';break;case"oneOf":s='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":s='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":s='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":s="o nome da propriedade é inválido";break;case"required":s="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="deve ser ",a=="number"?s+="um número":a=="integer"?s+="um número inteiro":a=="string"?s+="um texto":a=="boolean"?s+="um booleano":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="não pode possuir mais que "+i+" ",i==1?s+="item":s+="itens";break;case"unevaluatedProperties":s="não pode possuir propridades não avaliadas";break;case"uniqueItems":s="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}n.message=s}}),Ad}var _d,ck;function AF(){return ck||(ck=1,_d=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="должно иметь пол",a==1?n+="е":n+="я",n+=" "+i.params.deps+", когда присутствует поле "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='поле "'+i.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+i.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+i.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxLength":n="";var a=i.params.limit;n+="должно быть не длиннее, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxProperties":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"minItems":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minLength":n="";var a=i.params.limit;n+="должно быть не короче, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minProperties":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+i.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+i.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+i.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+i.params.missingProperty;break;case"type":n="должно быть "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+i.params.j+" и "+i.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+i.keyword+'"'}i.message=n}}),_d}var Od,uk;function _F(){return uk||(uk=1,Od=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemôže obsahovať viac, než "+a+" prv",a==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" musí obsahovať polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+i.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" prv",a==1?n+="ok":n+="kov";break;case"maxLength":n="";var a=i.params.limit;n+="nesmie byť dlhší než "+a+" znak",a!=1&&(n+="ov");break;case"maxProperties":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" prv",a==1?n+="ok":n+="kov";break;case"minLength":n="";var a=i.params.limit;n+="nesmie byť kratší než "+a+" znak",a!=1&&(n+="ov");break;case"minProperties":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+i.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+i.params.missingProperty;break;case"type":n="musí byť "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+i.params.j+" a "+i.params.i+" sú rovnaké)";break;default:n='musí splniť "'+i.keyword+'" validáciu'}i.message=n}}),Od}var xd,fk;function OF(){return fk||(fk=1,xd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="borde ha fler än "+a+" sak",a!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="borde ha egenskap",a!=1&&(n+="er"),n+=" "+i.params.deps+" när egenskap "+i.params.property+" finns tillgängligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" sak",a!=1&&(n+="er");break;case"maxLength":n="";var a=i.params.limit;n+="borde inte vara längre än "+a+" tecken";break;case"maxProperties":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" egenskap",a!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"minItems":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" sak",a!=1&&(n+="er");break;case"minLength":n="";var a=i.params.limit;n+="borde inte vara kortare än "+a+" tecken";break;case"minProperties":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" egenskap",a!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+i.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" är identiska)";break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}i.message=n}}),xd}var Td,dk;function xF(){return dk||(dk=1,Td=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="เมื่อมี property "+i.params.property+" แล้วจะต้องมี property "+i.params.deps+" ด้วย";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+i.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a;break;case"maxLength":n="";var a=i.params.limit;n+="ต้องยาวไม่เกิน "+a+" ตัวอักษร";break;case"maxProperties":n="";var a=i.params.limit;n+="ต้องมี property ไม่เกิน "+a+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var a=i.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+a;break;case"minLength":n="";var a=i.params.limit;n+="ต้องมีอย่างน้อย "+a+" ตัวอักษร";break;case"minProperties":n="";var a=i.params.limit;n+="ต้องมี property อย่างน้อย "+a+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+i.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+i.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+i.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="ต้องมีไม่เกิน "+a+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+i.params.j+" กับ "+i.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}i.message=n}}),Td}var Pd,pk;function TF(){return pk||(pk=1,Pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不允许超过"+a+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="应当拥有属性"+i.params.property+"的依赖属性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='标签 "'+i.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+i.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不应多于 "+a+" 个项";break;case"maxLength":n="";var a=i.params.limit;n+="不应多于 "+a+" 个字符";break;case"maxProperties":n="";var a=i.params.limit;n+="不应有多于 "+a+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不应少于 "+a+" 个项";break;case"minLength":n="";var a=i.params.limit;n+="不应少于 "+a+" 个字符";break;case"minProperties":n="";var a=i.params.limit;n+="不应有少于 "+a+" 个属性";break;case"multipleOf":n="应当是 "+i.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+i.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+i.params.missingProperty;break;case"type":n="应当是 "+i.params.type+" 类型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 不允许有超过 "+a+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+i.params.j+" 项与第 "+i.params.i+" 项是重复的)";break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}i.message=n}}),Pd}var Id,mk;function PF(){return mk||(mk=1,Id=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不可以超過"+a+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="應該要有屬性"+i.params.property+"的依賴屬性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='標籤 "'+i.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+i.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+i.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個";break;case"maxLength":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個字元";break;case"maxProperties":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個";break;case"minLength":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個字元";break;case"minProperties":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個屬性";break;case"multipleOf":n="應該是 "+i.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+i.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+i.params.missingProperty;break;case"type":n="應該是 "+i.params.type+" 類型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 的元素不可以超過 "+a+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+i.params.j+" 項和第 "+i.params.i+" 項是重複的)";break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}i.message=n}}),Id}var Nd,hk;function IF(){return hk||(hk=1,Nd={en:lF(),ar:cF(),ca:uF(),cs:fF(),de:dF(),es:pF(),fi:mF(),fr:hF(),hu:gF(),id:yF(),it:vF(),ja:bF(),ko:kF(),nb:wF(),nl:SF(),pl:EF(),"pt-BR":CF(),ru:AF(),sk:_F(),sv:OF(),th:xF(),zh:TF(),"zh-TW":PF()}),Nd}var NF=IF();const Vs=gn(NF),ic={flex:1,paddingLeft:6,paddingRight:6};function DF(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(v,{id:xr(s,"moveUp"),className:"rjsf-array-item-move-up",style:ic,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(k,{id:xr(s,"moveDown"),className:"rjsf-array-item-move-down",style:ic,disabled:t||f||!a,onClick:l,uiSchema:d,registry:p})}),r&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(h,{id:xr(s,"copy"),className:"rjsf-array-item-copy",style:ic,disabled:t||f,onClick:o,uiSchema:d,registry:p})}),n&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(y,{id:xr(s,"remove"),className:"rjsf-array-item-remove",style:ic,disabled:t||f,onClick:c,uiSchema:d,registry:p})})]})}function FF(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,s=be(n),o=Ce("ArrayFieldItemButtonsTemplate",i,s);return D.jsx("div",{children:D.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[D.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&D.jsx("div",{className:"col-3 col-lg-3 py-4",children:D.jsx(o,{...r})})]})})}function MF(e){const{canAdd:t,disabled:r,fieldPathId:a,items:i,optionalDataControl:n,onAddClick:s,readonly:o,registry:c,required:l,schema:u,title:f,uiSchema:p}=e,d=be(p),h=Ce("ArrayFieldTitleTemplate",c,d),k=Ce("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!o&&!r;return D.jsx("div",{children:D.jsx("div",{className:"row p-0 m-0",children:D.jsxs("div",{className:"col p-0 m-0",children:[D.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:p,registry:c,optionalDataControl:y?n:void 0}),D.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:p,registry:c}),y?void 0:n,D.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&D.jsxs("div",{className:"row mt-2",children:[D.jsx("div",{className:"col-9"}),D.jsx("div",{className:"col-3 py-4",children:D.jsx(v,{id:xr(a,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:p,registry:c})})]})]})]})})})}const Hs={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},jF=()=>D.jsx("svg",{...Hs,children:D.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),LF=()=>D.jsx("svg",{...Hs,children:D.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),RF=()=>D.jsxs("svg",{...Hs,children:[D.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),D.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),gk=()=>D.jsx("svg",{...Hs,children:D.jsx("path",{d:"M3.5 8h9"})}),qF=()=>D.jsx("svg",{...Hs,children:D.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Vi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...s}){return D.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function zF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.CopyButton),...e,icon:D.jsx(RF,{})})}function $F(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveUpButton),...e,icon:D.jsx(jF,{})})}function UF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveDownButton),...e,icon:D.jsx(LF,{})})}function BF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.RemoveButton),...e,variant:"danger",icon:D.jsx(gk,{})})}function VF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.ClearButton),...e,icon:D.jsx(gk,{})})}function HF({className:e,...t}){const{translateString:r}=t.registry;return D.jsx(Vi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Me.AddItemButton),icon:D.jsx(qF,{})})}function WF({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Zg(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const KF={SubmitButton:WF,AddButton:HF,CopyButton:zF,MoveDownButton:UF,MoveUpButton:$F,RemoveButton:BF,ClearButton:VF};function iz(){}function sz(){}function GF(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const JF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,XF={};function yk(e,t){return(XF.jsx?YF:JF).test(e)}const ZF=/[ \t\n\f\r]/g;function QF(e){return typeof e=="object"?e.type==="text"?vk(e.value):!1:vk(e)}function vk(e){return e.replace(ZF,"")===""}class Ws{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Ws.prototype.normal={},Ws.prototype.property={},Ws.prototype.space=void 0;function bk(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new Ws(r,a,t)}function Dd(e){return e.toLowerCase()}class br{constructor(t,r){this.attribute=r,this.property=t}}br.prototype.attribute="",br.prototype.booleanish=!1,br.prototype.boolean=!1,br.prototype.commaOrSpaceSeparated=!1,br.prototype.commaSeparated=!1,br.prototype.defined=!1,br.prototype.mustUseProperty=!1,br.prototype.number=!1,br.prototype.overloadedBoolean=!1,br.prototype.property="",br.prototype.spaceSeparated=!1,br.prototype.space=void 0;let eM=0;const Pe=ni(),Ut=ni(),Fd=ni(),ue=ni(),kt=ni(),ri=ni(),Ir=ni();function ni(){return 2**++eM}const Md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Ut,commaOrSpaceSeparated:Ir,commaSeparated:ri,number:ue,overloadedBoolean:Fd,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),jd=Object.keys(Md);class Ld extends br{constructor(t,r,a,i){let n=-1;if(super(t,r),kk(this,"space",i),typeof a=="number")for(;++n<jd.length;){const s=jd[n];kk(this,jd[n],(a&Md[s])===Md[s])}}}Ld.prototype.defined=!0;function kk(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new Ld(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[Dd(a)]=a,r[Dd(n.attribute)]=a}return new Ws(t,r,e.space)}const wk=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:kt,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Ut,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Sk(e,t){return t in e?e[t]:t}function Ek(e,t){return Sk(e,t.toLowerCase())}const tM=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ri,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:kt,autoFocus:Pe,autoPlay:Pe,blocking:kt,capture:null,charSet:null,checked:Pe,cite:null,className:kt,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:Ut,controls:Pe,controlsList:kt,coords:ue|ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Fd,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:Fd,high:ue,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:kt,itemRef:kt,itemScope:Pe,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ue,pattern:null,ping:kt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:kt,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:kt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Ut,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:ri,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Ek}),rM=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ir,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ri,g2:ri,glyphName:ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Ir,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ir,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ir,rev:Ir,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ir,requiredFeatures:Ir,requiredFonts:Ir,requiredFormats:Ir,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Ir,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ir,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ir,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sk}),Ck=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ak=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ek}),_k=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nM={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aM=/[A-Z]/g,Ok=/-[a-z]/g,iM=/^data[-\w.:]+$/i;function sM(e,t){const r=Dd(t);let a=t,i=br;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&iM.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Ok,lM);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Ok.test(n)){let s=n.replace(aM,oM);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ld}return new i(a,t)}function oM(e){return"-"+e.toLowerCase()}function lM(e){return e.charAt(1).toUpperCase()}const cM=bk([wk,tM,Ck,Ak,_k],"html"),Rd=bk([wk,rM,Ck,Ak,_k],"svg");function uM(e){return e.join(" ").trim()}var Wi={},qd,xk;function fM(){if(xk)return qd;xk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
106
|
-
`,l="/",u="*",f="",p="comment",d="declaration";function h(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var b=1,w=1;function E(I){var j=I.match(t);j&&(b+=j.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function m(){var I={line:b,column:w};return function(j){return j.position=new g(I),x(),j}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var j=new Error(y.source+":"+b+":"+w+": "+I);if(j.reason=I,j.filename=y.source,j.line=b,j.column=w,j.source=v,!y.silent)throw j}function A(I){var j=I.exec(v);if(j){var $=j[0];return E($),v=v.slice($.length),j}}function x(){A(r)}function O(I){var j;for(I=I||[];j=C();)j!==!1&&I.push(j);return I}function C(){var I=m();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(u!=v.charAt(j)||l!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return S("End of comment missing");var $=v.slice(2,j-2);return w+=2,E($),v=v.slice(j),w+=2,I({type:p,comment:$})}}function _(){var I=m(),j=A(a);if(j){if(C(),!A(i))return S("property missing ':'");var $=A(n),Y=I({type:d,property:k(j[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return A(s),Y}}function F(){var I=[];O(I);for(var j;j=_();)j!==!1&&(I.push(j),O(I));return I}return x(),F()}function k(v){return v?v.replace(o,f):f}return qd=h,qd}var Tk;function dM(){if(Tk)return Wi;Tk=1;var e=Wi&&Wi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=r;const t=e(fM());function r(a,i){let n=null;if(!a||typeof a!="string")return n;const s=(0,t.default)(a),o=typeof i=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:u}=c;o?i(l,u,c):u&&(n=n||{},n[l]=u)}),n}return Wi}var Ks={},Pk;function pM(){if(Pk)return Ks;Pk=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,n=function(l){return!l||r.test(l)||e.test(l)},s=function(l,u){return u.toUpperCase()},o=function(l,u){return"".concat(u,"-")},c=function(l,u){return u===void 0&&(u={}),n(l)?l:(l=l.toLowerCase(),u.reactCompat?l=l.replace(i,o):l=l.replace(a,o),l.replace(t,s))};return Ks.camelCase=c,Ks}var Gs,Ik;function mM(){if(Ik)return Gs;Ik=1;var e=Gs&&Gs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(dM()),r=pM();function a(i,n){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,c){o&&c&&(s[(0,r.camelCase)(o,n)]=c)}),s}return a.default=a,Gs=a,Gs}var hM=mM();const gM=gn(hM),Nk=Dk("end"),zd=Dk("start");function Dk(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function yM(e){const t=zd(e),r=Nk(e);if(t&&r)return{start:t,end:r}}function Js(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fk(e.position):"start"in e||"end"in e?Fk(e):"line"in e||"column"in e?$d(e):""}function $d(e){return Mk(e&&e.line)+":"+Mk(e&&e.column)}function Fk(e){return $d(e&&e.start)+"-"+$d(e&&e.end)}function Mk(e){return e&&typeof e=="number"?e:1}class ir extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let i="",n={},s=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?i=t:!n.cause&&t&&(s=!0,i=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?n.ruleId=a:(n.source=a.slice(0,c),n.ruleId=a.slice(c+1))}if(!n.place&&n.ancestors&&n.ancestors){const c=n.ancestors[n.ancestors.length-1];c&&(n.place=c.position)}const o=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Js(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ir.prototype.file="",ir.prototype.name="",ir.prototype.reason="",ir.prototype.message="",ir.prototype.stack="",ir.prototype.column=void 0,ir.prototype.line=void 0,ir.prototype.ancestors=void 0,ir.prototype.cause=void 0,ir.prototype.fatal=void 0,ir.prototype.place=void 0,ir.prototype.ruleId=void 0,ir.prototype.source=void 0;const Ud={}.hasOwnProperty,vM=new Map,bM=/[A-Z]/g,kM=new Set(["table","tbody","thead","tfoot","tr"]),wM=new Set(["td","th"]),jk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function SM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=PM(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=TM(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rd:cM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Lk(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function Lk(e,t,r){if(t.type==="element")return EM(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return CM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return _M(e,t,r);if(t.type==="mdxjsEsm")return AM(e,t);if(t.type==="root")return OM(e,t,r);if(t.type==="text")return xM(e,t)}function EM(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=qk(e,t.tagName,!1),s=IM(e,t);let o=Vd(e,t);return kM.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!QF(c):!0})),Rk(e,s,n,t),Bd(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function CM(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ys(e,t.position)}function AM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ys(e,t.position)}function _M(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:qk(e,t.name,!0),s=NM(e,t),o=Vd(e,t);return Rk(e,s,n,t),Bd(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function OM(e,t,r){const a={};return Bd(a,Vd(e,t)),e.create(t,e.Fragment,a,r)}function xM(e,t){return t.value}function Rk(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Bd(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function TM(e,t,r){return a;function a(i,n,s,o){const l=Array.isArray(s.children)?r:t;return o?l(n,s,o):l(n,s)}}function PM(e,t){return r;function r(a,i,n,s){const o=Array.isArray(n.children),c=zd(a);return t(i,n,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function IM(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&Ud.call(t.properties,i)){const n=DM(e,i,t.properties[i]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&wM.has(t.tagName)?a=o:r[s]=o}}if(a){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function NM(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const n=a.data.estree.body[0];n.type;const s=n.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ys(e,t.position);else{const i=a.name;let n;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const o=a.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Ys(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function Vd(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:vM;for(;++a<t.children.length;){const n=t.children[a];let s;if(e.passKeys){const c=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(c){const l=i.get(c)||0;s=c+"-"+l,i.set(c,l+1)}}const o=Lk(e,n,s);o!==void 0&&r.push(o)}return r}function DM(e,t,r){const a=sM(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?GF(r):uM(r)),a.property==="style"){let i=typeof r=="object"?r:FM(e,String(r));return e.stylePropertyNameCase==="css"&&(i=MM(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?nM[a.property]||a.property:a.attribute,r]}}function FM(e,t){try{return gM(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,i=new ir("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=jk+"#cannot-parse-style-attribute",i}}function qk(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let n=-1,s;for(;++n<i.length;){const o=yk(i[n])?{type:"Identifier",name:i[n]}:{type:"Literal",value:i[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}a=s}else a=yk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return Ud.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ys(e)}function Ys(e,t){const r=new ir("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=jk+"#cannot-handle-mdx-estrees-without-createevaluater",r}function MM(e){const t={};let r;for(r in e)Ud.call(e,r)&&(t[jM(r)]=e[r]);return t}function jM(e){let t=e.replace(bM,LM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function LM(e){return"-"+e.toLowerCase()}const Hd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},RM={};function qM(e,t){const r=RM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zk(e,a,i)}function zk(e,t,r){if(zM(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $k(e.children,t,r)}return Array.isArray(e)?$k(e,t,r):""}function $k(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=zk(e[i],t,r);return a.join("")}function zM(e){return!!(e&&typeof e=="object")}const Uk=document.createElement("i");function Wd(e){const t="&"+e+";";Uk.innerHTML=t;const r=Uk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function On(e,t,r,a){const i=e.length;let n=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,a.length<1e4)s=Array.from(a),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<a.length;)s=a.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function Gr(e,t){return e.length>0?(On(e,e.length,0,t),e):t}const Bk={}.hasOwnProperty;function $M(e){const t={};let r=-1;for(;++r<e.length;)UM(t,e[r]);return t}function UM(e,t){let r;for(r in t){const i=(Bk.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Bk.call(i,s)||(i[s]=[]);const o=n[s];BM(i[s],Array.isArray(o)?o:o?[o]:[])}}}function BM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);On(e,0,0,a)}function Vk(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ki(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xn=Sa(/[A-Za-z]/),Nr=Sa(/[\dA-Za-z]/),VM=Sa(/[#-'*+\--9=?A-Z^-~]/);function Kd(e){return e!==null&&(e<32||e===127)}const Gd=Sa(/\d/),HM=Sa(/[\dA-Fa-f]/),WM=Sa(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function kr(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const KM=Sa(new RegExp("\\p{P}|\\p{S}","u")),GM=Sa(/\s/);function Sa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,a=0,i=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Nr(e.charCodeAt(r+1))&&Nr(e.charCodeAt(r+2)))i=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const o=e.charCodeAt(r+1);n<56320&&o>56319&&o<57344?(s=String.fromCharCode(n,o),i=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(a,r),encodeURIComponent(s)),a=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(a)}function Et(e,t,r,a){const i=a?a-1:Number.POSITIVE_INFINITY;let n=0;return s;function s(c){return ct(c)?(e.enter(r),o(c)):t(c)}function o(c){return ct(c)&&n++<i?(e.consume(c),o):(e.exit(r),t(c))}}const JM={tokenize:YM};function YM(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let r;return t;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),n(o)}function n(o){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Oe(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const XM={tokenize:ZM},Hk={tokenize:QM};function ZM(e){const t=this,r=[];let a=0,i,n,s;return o;function o(w){if(a<r.length){const E=r[a];return t.containerState=E[1],e.attempt(E[0].continuation,c,l)(w)}return l(w)}function c(w){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const E=t.events.length;let m=E,g;for(;m--;)if(t.events[m][0]==="exit"&&t.events[m][1].type==="chunkFlow"){g=t.events[m][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return On(t.events,m+1,0,t.events.slice(E)),t.events.length=S,l(w)}return o(w)}function l(w){if(a===r.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Hk,u,f)(w)}function u(w){return i&&b(),y(a),p(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,s=t.now().offset,h(w)}function p(w){return t.containerState={},e.attempt(Hk,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),p(w)}function h(w){if(w===null){i&&b(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return Oe(w)?(e.consume(w),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,E){const m=t.sliceStream(w);if(E&&m.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(m),t.parser.lazy[w.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<s&&(!i.events[g][1].end||i.events[g][1].end.offset>s))return;const S=t.events.length;let A=S,x,O;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){O=t.events[A][1].end;break}x=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={...O},g++;On(t.events,A+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const m=r[E];t.containerState=m[1],m[0].exit.call(t,e)}r.length=w}function b(){i.write([null]),n=void 0,i=void 0,t.containerState._closeFlow=void 0}}function QM(e,t,r){return Et(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Wk(e){if(e===null||kr(e)||GM(e))return 1;if(KM(e))return 2}function Jd(e,t,r){const a=[];let i=-1;for(;++i<e.length;){const n=e[i].resolveAll;n&&!a.includes(n)&&(t=n(t,r),a.push(n))}return t}const Yd={name:"attention",resolveAll:ej,tokenize:tj};function ej(e,t){let r=-1,a,i,n,s,o,c,l,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[a][1].end},p={...e[r][1].start};Kk(f,-c),Kk(p,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},n={type:c>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},i={type:c>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[a][1].end={...s.start},e[r][1].start={...o.end},l=[],e[a][1].end.offset-e[a][1].start.offset&&(l=Gr(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Gr(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",n,t]]),l=Gr(l,Jd(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Gr(l,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,l=Gr(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,On(e,a-1,r-a+3,l),r=a+l.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function tj(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=Wk(a);let n;return s;function s(c){return n=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===n)return e.consume(c),o;const l=e.exit("attentionSequence"),u=Wk(c),f=!u||u===2&&i||r.includes(c),p=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!p)),l._close=!!(n===42?p:p&&(u||!f)),t(c)}}function Kk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rj={name:"autolink",tokenize:nj};function nj(e,t,r){let a=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return xn(d)?(e.consume(d),s):d===64?r(d):l(d)}function s(d){return d===43||d===45||d===46||Nr(d)?(a=1,o(d)):l(d)}function o(d){return d===58?(e.consume(d),a=0,c):(d===43||d===45||d===46||Nr(d))&&a++<32?(e.consume(d),o):(a=0,l(d))}function c(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Kd(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):VM(d)?(e.consume(d),l):r(d)}function u(d){return Nr(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),a=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Nr(d))&&a++<63){const h=d===45?p:f;return e.consume(d),h}return r(d)}}const sc={partial:!0,tokenize:aj};function aj(e,t,r){return a;function a(n){return ct(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const Gk={continuation:{tokenize:sj},exit:oj,name:"blockQuote",tokenize:ij};function ij(e,t,r){const a=this;return i;function i(s){if(s===62){const o=a.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return r(s)}function n(s){return ct(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function sj(e,t,r){const a=this;return i;function i(s){return ct(s)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(Gk,t,r)(s)}}function oj(e){e.exit("blockQuote")}const Jk={name:"characterEscape",tokenize:lj};function lj(e,t,r){return a;function a(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),i}function i(n){return WM(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Yk={name:"characterReference",tokenize:cj};function cj(e,t,r){const a=this;let i=0,n,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),n=31,s=Nr,u(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=HM,u):(e.enter("characterReferenceValue"),n=7,s=Gd,u(f))}function u(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return s===Nr&&!Wd(a.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<n?(e.consume(f),u):r(f)}}const Xk={partial:!0,tokenize:fj},Zk={concrete:!0,name:"codeFenced",tokenize:uj};function uj(e,t,r){const a=this,i={partial:!0,tokenize:m};let n=0,s=0,o;return c;function c(g){return l(g)}function l(g){const S=a.events[a.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(g)}function u(g){return g===o?(s++,e.consume(g),u):s<3?r(g):(e.exit("codeFencedFenceSequence"),ct(g)?Et(e,f,"whitespace")(g):f(g))}function f(g){return g===null||Oe(g)?(e.exit("codeFencedFence"),a.interrupt?t(g):e.check(Xk,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ct(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===o?r(g):(e.consume(g),p)}function d(g){return g===null||Oe(g)?f(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(g)):g===96&&g===o?r(g):(e.consume(g),h)}function k(g){return e.attempt(i,E,v)(g)}function v(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return n>0&&ct(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(Xk,k,E)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||Oe(g)?(e.exit("codeFlowValue"),b(g)):(e.consume(g),w)}function E(g){return e.exit("codeFenced"),t(g)}function m(g,S,A){let x=0;return O;function O(j){return g.enter("lineEnding"),g.consume(j),g.exit("lineEnding"),C}function C(j){return g.enter("codeFencedFence"),ct(j)?Et(g,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j)}function _(j){return j===o?(g.enter("codeFencedFenceSequence"),F(j)):A(j)}function F(j){return j===o?(x++,g.consume(j),F):x>=s?(g.exit("codeFencedFenceSequence"),ct(j)?Et(g,I,"whitespace")(j):I(j)):A(j)}function I(j){return j===null||Oe(j)?(g.exit("codeFencedFence"),S(j)):A(j)}}}function fj(e,t,r){const a=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return a.parser.lazy[a.now().line]?r(s):t(s)}}const Xd={name:"codeIndented",tokenize:pj},dj={partial:!0,tokenize:mj};function pj(e,t,r){const a=this;return i;function i(l){return e.enter("codeIndented"),Et(e,n,"linePrefix",5)(l)}function n(l){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(l):r(l)}function s(l){return l===null?c(l):Oe(l)?e.attempt(dj,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||Oe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function mj(e,t,r){const a=this;return i;function i(s){return a.parser.lazy[a.now().line]?r(s):Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Et(e,n,"linePrefix",5)(s)}function n(s){const o=a.events[a.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Oe(s)?i(s):r(s)}}const hj={name:"codeText",previous:yj,resolve:gj,tokenize:vj};function gj(e){let t=e.length-4,r=3,a,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function yj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vj(e,t,r){let a=0,i,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),a++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(n=e.enter("codeTextSequence"),i=0,u(f)):Oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||Oe(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function u(f){return f===96?(e.consume(f),i++,u):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",l(f))}}class bj{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const i=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&Xs(this.left,a),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Xs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Xs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Xs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Xs(this.left,r.reverse())}}}function Xs(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Qk(e){const t={};let r=-1,a,i,n,s,o,c,l;const u=new bj(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(a=u.get(r),r&&a[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(c=a[1]._tokenizer.events,n=0,n<c.length&&c[n][1].type==="lineEndingBlank"&&(n+=2),n<c.length&&c[n][1].type==="content"))for(;++n<c.length&&c[n][1].type!=="content";)c[n][1].type==="chunkText"&&(c[n][1]._isInFirstContentOfListItem=!0,n++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,kj(u,r)),r=t[r],l=!0);else if(a[1]._container){for(n=r,i=void 0;n--;)if(s=u.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(a[1].end={...u.get(i)[1].start},o=u.slice(i,r),o.unshift(a),u.splice(i,r-i+1,o))}}return On(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function kj(e,t){const r=e.get(t)[1],a=e.get(t)[2];let i=t-1;const n=[];let s=r._tokenizer;s||(s=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,c=[],l={};let u,f,p=-1,d=r,h=0,k=0;const v=[k];for(;d;){for(;e.get(++i)[1]!==d;);n.push(i),d._tokenizer||(u=a.sliceStream(d),d.next||u.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(k=p+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),p=v.length;p--;){const y=o.slice(v[p],v[p+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),p=-1;++p<c.length;)l[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return l}const wj={resolve:Ej,tokenize:Cj},Sj={partial:!0,tokenize:Aj};function Ej(e){return Qk(e),e}function Cj(e,t){let r;return a;function a(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?n(o):Oe(o)?e.check(Sj,s,n)(o):(e.consume(o),i)}function n(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Aj(e,t,r){const a=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Et(e,n,"linePrefix")}function n(s){if(s===null||Oe(s))return r(s);const o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(a.parser.constructs.flow,r,t)(s)}}function e0(e,t,r,a,i,n,s,o,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(a),e.enter(i),e.enter(n),e.consume(y),e.exit(n),p):y===null||y===32||y===41||Kd(y)?r(y):(e.enter(a),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(n),e.consume(y),e.exit(n),e.exit(i),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||Oe(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function k(y){return!u&&(y===null||y===41||kr(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(a),t(y)):u<l&&y===40?(e.consume(y),u++,k):y===41?(e.consume(y),u--,k):y===null||y===32||y===40||Kd(y)?r(y):(e.consume(y),y===92?v:k)}function v(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function t0(e,t,r,a,i,n){const s=this;let o=0,c;return l;function l(d){return e.enter(a),e.enter(i),e.consume(d),e.exit(i),e.enter(n),u}function u(d){return o>999||d===null||d===91||d===93&&!c||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):Oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Oe(d)||o++>999?(e.exit("chunkString"),u(d)):(e.consume(d),c||(c=!ct(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function r0(e,t,r,a,i,n){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(a),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,c):r(p)}function c(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(a),t):(e.enter(n),l(p))}function l(p){return p===s?(e.exit(n),c(s)):p===null?r(p):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||Oe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?f:u)}function f(p){return p===s||p===92?(e.consume(p),u):u(p)}}function Zs(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ct(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const _j={name:"definition",tokenize:xj},Oj={partial:!0,tokenize:Tj};function xj(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return t0.call(a,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):r(d)}function c(d){return kr(d)?Zs(e,l)(d):l(d)}function l(d){return e0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(Oj,f,f)(d)}function f(d){return ct(d)?Et(e,p,"whitespace")(d):p(d)}function p(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function Tj(e,t,r){return a;function a(o){return kr(o)?Zs(e,i)(o):r(o)}function i(o){return r0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return ct(o)?Et(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Oe(o)?t(o):r(o)}}const Pj={name:"hardBreakEscape",tokenize:Ij};function Ij(e,t,r){return a;function a(n){return e.enter("hardBreakEscape"),e.consume(n),i}function i(n){return Oe(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Nj={name:"headingAtx",resolve:Dj,tokenize:Fj};function Dj(e,t){let r=e.length-2,a=3,i,n;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},n={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},On(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function Fj(e,t,r){let a=0;return i;function i(u){return e.enter("atxHeading"),n(u)}function n(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&a++<6?(e.consume(u),s):u===null||kr(u)?(e.exit("atxHeadingSequence"),o(u)):r(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||Oe(u)?(e.exit("atxHeading"),t(u)):ct(u)?Et(e,o,"whitespace")(u):(e.enter("atxHeadingText"),l(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),o(u))}function l(u){return u===null||u===35||kr(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),l)}}const Mj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],n0=["pre","script","style","textarea"],jj={concrete:!0,name:"htmlFlow",resolveTo:qj,tokenize:zj},Lj={partial:!0,tokenize:Uj},Rj={partial:!0,tokenize:$j};function qj(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zj(e,t,r){const a=this;let i,n,s,o,c;return l;function l(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),p):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):xn(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function p(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,o=0,h):xn(T)?(e.consume(T),i=4,a.interrupt?t:P):r(T)}function d(T){return T===45?(e.consume(T),a.interrupt?t:P):r(T)}function h(T){const N="CDATA[";return T===N.charCodeAt(o++)?(e.consume(T),o===N.length?a.interrupt?t:_:h):r(T)}function k(T){return xn(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||kr(T)){const N=T===47,L=s.toLowerCase();return!N&&!n&&n0.includes(L)?(i=1,a.interrupt?t(T):_(T)):Mj.includes(s.toLowerCase())?(i=6,N?(e.consume(T),y):a.interrupt?t(T):_(T)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(T):n?b(T):w(T))}return T===45||Nr(T)?(e.consume(T),s+=String.fromCharCode(T),v):r(T)}function y(T){return T===62?(e.consume(T),a.interrupt?t:_):r(T)}function b(T){return ct(T)?(e.consume(T),b):O(T)}function w(T){return T===47?(e.consume(T),O):T===58||T===95||xn(T)?(e.consume(T),E):ct(T)?(e.consume(T),w):O(T)}function E(T){return T===45||T===46||T===58||T===95||Nr(T)?(e.consume(T),E):m(T)}function m(T){return T===61?(e.consume(T),g):ct(T)?(e.consume(T),m):w(T)}function g(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),c=T,S):ct(T)?(e.consume(T),g):A(T)}function S(T){return T===c?(e.consume(T),c=null,x):T===null||Oe(T)?r(T):(e.consume(T),S)}function A(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||kr(T)?m(T):(e.consume(T),A)}function x(T){return T===47||T===62||ct(T)?w(T):r(T)}function O(T){return T===62?(e.consume(T),C):r(T)}function C(T){return T===null||Oe(T)?_(T):ct(T)?(e.consume(T),C):r(T)}function _(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),M):T===63&&i===3?(e.consume(T),P):T===93&&i===5?(e.consume(T),ie):Oe(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Lj,U,F)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),F(T)):(e.consume(T),_)}function F(T){return e.check(Rj,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return T===null||Oe(T)?F(T):(e.enter("htmlFlowData"),_(T))}function $(T){return T===45?(e.consume(T),P):_(T)}function Y(T){return T===47?(e.consume(T),s="",Z):_(T)}function Z(T){if(T===62){const N=s.toLowerCase();return n0.includes(N)?(e.consume(T),M):_(T)}return xn(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Z):_(T)}function ie(T){return T===93?(e.consume(T),P):_(T)}function P(T){return T===62?(e.consume(T),M):T===45&&i===2?(e.consume(T),P):_(T)}function M(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),M)}function U(T){return e.exit("htmlFlow"),t(T)}}function $j(e,t,r){const a=this;return i;function i(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return a.parser.lazy[a.now().line]?r(s):t(s)}}function Uj(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(sc,t,r)}}const Bj={name:"htmlText",tokenize:Vj};function Vj(e,t,r){const a=this;let i,n,s;return o;function o(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),c}function c(P){return P===33?(e.consume(P),l):P===47?(e.consume(P),m):P===63?(e.consume(P),w):xn(P)?(e.consume(P),A):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):xn(P)?(e.consume(P),b):r(P)}function u(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),p):Oe(P)?(s=f,Y(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?p(P):f(P)}function h(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:h):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):Oe(P)?(s=k,Y(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),y):k(P)}function y(P){return P===62?$(P):P===93?(e.consume(P),y):k(P)}function b(P){return P===null||P===62?$(P):Oe(P)?(s=b,Y(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):Oe(P)?(s=w,Y(P)):(e.consume(P),w)}function E(P){return P===62?$(P):w(P)}function m(P){return xn(P)?(e.consume(P),g):r(P)}function g(P){return P===45||Nr(P)?(e.consume(P),g):S(P)}function S(P){return Oe(P)?(s=S,Y(P)):ct(P)?(e.consume(P),S):$(P)}function A(P){return P===45||Nr(P)?(e.consume(P),A):P===47||P===62||kr(P)?x(P):r(P)}function x(P){return P===47?(e.consume(P),$):P===58||P===95||xn(P)?(e.consume(P),O):Oe(P)?(s=x,Y(P)):ct(P)?(e.consume(P),x):$(P)}function O(P){return P===45||P===46||P===58||P===95||Nr(P)?(e.consume(P),O):C(P)}function C(P){return P===61?(e.consume(P),_):Oe(P)?(s=C,Y(P)):ct(P)?(e.consume(P),C):x(P)}function _(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,F):Oe(P)?(s=_,Y(P)):ct(P)?(e.consume(P),_):(e.consume(P),I)}function F(P){return P===i?(e.consume(P),i=void 0,j):P===null?r(P):Oe(P)?(s=F,Y(P)):(e.consume(P),F)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||kr(P)?x(P):(e.consume(P),I)}function j(P){return P===47||P===62||kr(P)?x(P):r(P)}function $(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function Y(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Z}function Z(P){return ct(P)?Et(e,ie,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return e.enter("htmlTextData"),s(P)}}const Zd={name:"labelEnd",resolveAll:Gj,resolveTo:Jj,tokenize:Yj},Hj={tokenize:Xj},Wj={tokenize:Zj},Kj={tokenize:Qj};function Gj(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==r.length&&On(e,0,e.length,r),e}function Jj(e,t){let r=e.length,a=0,i,n,s,o;for(;r--;)if(i=e[r][1],n){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(n=r,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(s=r);const c={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[n+a+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Gr(o,e.slice(n+1,n+a+3)),o=Gr(o,[["enter",u,t]]),o=Gr(o,Jd(t.parser.constructs.insideSpan.null,e.slice(n+a+4,s-3),t)),o=Gr(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=Gr(o,e.slice(s+1)),o=Gr(o,[["exit",c,t]]),On(e,n,e.length,o),e}function Yj(e,t,r){const a=this;let i=a.events.length,n,s;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){n=a.events[i][1];break}return o;function o(p){return n?n._inactive?f(p):(s=a.parser.defined.includes(Ki(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):r(p)}function c(p){return p===40?e.attempt(Hj,u,s?u:f)(p):p===91?e.attempt(Wj,u,s?l:f)(p):s?u(p):f(p)}function l(p){return e.attempt(Kj,u,f)(p)}function u(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function Xj(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return kr(f)?Zs(e,n)(f):n(f)}function n(f){return f===41?u(f):e0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return kr(f)?Zs(e,c)(f):u(f)}function o(f){return r(f)}function c(f){return f===34||f===39||f===40?r0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return kr(f)?Zs(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function Zj(e,t,r){const a=this;return i;function i(o){return t0.call(a,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return a.parser.defined.includes(Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function Qj(e,t,r){return a;function a(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),i}function i(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const eL={name:"labelStartImage",resolveAll:Zd.resolveAll,tokenize:tL};function tL(e,t,r){const a=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),n}function n(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(o):t(o)}}const rL={name:"labelStartLink",resolveAll:Zd.resolveAll,tokenize:nL};function nL(e,t,r){const a=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}const Qd={name:"lineEnding",tokenize:aL};function aL(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const oc={name:"thematicBreak",tokenize:iL};function iL(e,t,r){let a=0,i;return n;function n(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):a>=3&&(l===null||Oe(l))?(e.exit("thematicBreak"),t(l)):r(l)}function c(l){return l===i?(e.consume(l),a++,c):(e.exit("thematicBreakSequence"),ct(l)?Et(e,o,"whitespace")(l):o(l))}}const wr={continuation:{tokenize:cL},exit:fL,name:"list",tokenize:lL},sL={partial:!0,tokenize:dL},oL={partial:!0,tokenize:uL};function lL(e,t,r){const a=this,i=a.events[a.events.length-1];let n=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(d){const h=a.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!a.containerState.marker||d===a.containerState.marker:Gd(d)){if(a.containerState.type||(a.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(oc,r,l)(d):l(d);if(!a.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return r(d)}function c(d){return Gd(d)&&++s<10?(e.consume(d),c):(!a.interrupt||s<2)&&(a.containerState.marker?d===a.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):r(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||d,e.check(sc,a.interrupt?r:u,e.attempt(sL,p,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return ct(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function cL(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(sc,i,n);function i(o){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Et(e,t,"listItemIndent",a.containerState.size+1)(o)}function n(o){return a.containerState.furtherBlankLines||!ct(o)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(o)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(oL,t,s)(o))}function s(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(wr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function uL(e,t,r){const a=this;return Et(e,i,"listItemIndent",a.containerState.size+1);function i(n){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?t(n):r(n)}}function fL(e){e.exit(this.containerState.type)}function dL(e,t,r){const a=this;return Et(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(n){const s=a.events[a.events.length-1];return!ct(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const a0={name:"setextUnderline",resolveTo:pL,tokenize:mL};function pL(e,t){let r=e.length,a,i,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const s={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",n?(e.splice(i,0,["enter",s,t]),e.splice(n+1,0,["exit",e[a][1],t]),e[a][1].end={...e[n][1].end}):e[a][1]=s,e.push(["exit",s,t]),e}function mL(e,t,r){const a=this;let i;return n;function n(l){let u=a.events.length,f;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){f=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),i=l,s(l)):r(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ct(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const hL={tokenize:gL};function gL(e){const t=this,r=e.attempt(sc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(wj,i)),"linePrefix")));return r;function a(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const yL={resolveAll:s0()},vL=i0("string"),bL=i0("text");function i0(e){return{resolveAll:s0(e==="text"?kL:void 0),tokenize:t};function t(r){const a=this,i=this.parser.constructs[e],n=r.attempt(i,s,o);return s;function s(u){return l(u)?n(u):o(u)}function o(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),c}function c(u){return l(u)?(r.exit("data"),n(u)):(r.consume(u),c)}function l(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function s0(e){return t;function t(r,a){let i=-1,n;for(;++i<=r.length;)n===void 0?r[i]&&r[i][1].type==="data"&&(n=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==n+2&&(r[n][1].end=r[i-1][1].end,r.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(r,a):r}}function kL(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],i=t.sliceStream(a);let n=i.length,s=-1,o=0,c;for(;n--;){const l=i[n];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const l={type:r===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:a.start._bufferIndex+s,_index:a.start._index+n,line:a.end.line,column:a.end.column-o,offset:a.end.offset-o},end:{...a.end}};a.end={...l.start},a.start.offset===a.end.offset?Object.assign(a,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const wL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:_j},disable:{null:[]},document:{42:wr,43:wr,45:wr,48:wr,49:wr,50:wr,51:wr,52:wr,53:wr,54:wr,55:wr,56:wr,57:wr,62:Gk},flow:{35:Nj,42:oc,45:[a0,oc],60:jj,61:a0,95:oc,96:Zk,126:Zk},flowInitial:{[-2]:Xd,[-1]:Xd,32:Xd},insideSpan:{null:[Yd,yL]},string:{38:Yk,92:Jk},text:{[-5]:Qd,[-4]:Qd,[-3]:Qd,33:eL,38:Yk,42:Yd,60:[rj,Bj],91:rL,92:[Pj,Jk],93:Zd,95:Yd,96:hj}},Symbol.toStringTag,{value:"Module"}));function SL(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},n=[];let s=[],o=[];const c={attempt:S(m),check:S(g),consume:b,enter:w,exit:E,interrupt:S(g,{interrupt:!0})},l={code:null,containerState:{},defineSkip:k,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(C){return s=Gr(s,C),v(),s[s.length-1]!==null?[]:(A(t,0),l.events=Jd(n,l.events,l),l.events)}function p(C,_){return CL(d(C),_)}function d(C){return EL(s,C)}function h(){const{_bufferIndex:C,_index:_,line:F,column:I,offset:j}=a;return{_bufferIndex:C,_index:_,line:F,column:I,offset:j}}function k(C){i[C.line]=C.column,O()}function v(){let C;for(;a._index<s.length;){const _=s[a._index];if(typeof _=="string")for(C=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===C&&a._bufferIndex<_.length;)y(_.charCodeAt(a._bufferIndex));else y(_)}}function y(C){u=u(C)}function b(C){Oe(C)?(a.line++,a.column=1,a.offset+=C===-3?2:1,O()):C!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),l.previous=C}function w(C,_){const F=_||{};return F.type=C,F.start=h(),l.events.push(["enter",F,l]),o.push(F),F}function E(C){const _=o.pop();return _.end=h(),l.events.push(["exit",_,l]),_}function m(C,_){A(C,_.from)}function g(C,_){_.restore()}function S(C,_){return F;function F(I,j,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):M(I);function M(B){return V;function V(K){const J=K!==null&&B[K],Q=K!==null&&B.null,q=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return U(q)(K)}}function U(B){return Y=B,Z=0,B.length===0?$:T(B[Z])}function T(B){return V;function V(K){return P=x(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(_?Object.assign(Object.create(l),_):l,c,N,L)(K)}}function N(B){return C(ie,P),j}function L(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function A(C,_){C.resolveAll&&!n.includes(C)&&n.push(C),C.resolve&&On(l.events,_,l.events.length-_,C.resolve(l.events.slice(_),l)),C.resolveTo&&(l.events=C.resolveTo(l.events,l))}function x(){const C=h(),_=l.previous,F=l.currentConstruct,I=l.events.length,j=Array.from(o);return{from:I,restore:$};function $(){a=C,l.previous=_,l.currentConstruct=F,l.events.length=I,o=j,O()}}function O(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function EL(e,t){const r=t.start._index,a=t.start._bufferIndex,i=t.end._index,n=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(a,n)];else{if(s=e.slice(r,i),a>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(a):s.shift()}n>0&&s.push(e[i].slice(0,n))}return s}function CL(e,t){let r=-1;const a=[];let i;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
|
|
107
|
-
`;break}case-3:{
|
|
108
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(n)}i=n===-2,a.push(s)}return a.join("")}function AL(e){const a={constructs:$M([wL,...(e||{}).extensions||[]]),content:i(JM),defined:[],document:i(XM),flow:i(hL),lazy:{},string:i(vL),text:i(bL)};return a;function i(n){return s;function s(o){return SL(a,n,o)}}}function _L(e){for(;!Qk(e););return e}const o0=/[\0\t\n\r]/g;function OL(){let e=1,t="",r=!0,a;return i;function i(n,s,o){const c=[];let l,u,f,p,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(o0.lastIndex=f,l=o0.exec(n),p=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(p),!l){t=n.slice(f);break}if(d===10&&f===p&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<p&&(c.push(n.slice(f,p)),e+=p-f),d){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:a=!0,e=1}f=p+1}return o&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const xL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function TL(e){return e.replace(xL,PL)}function PL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return Vk(r.slice(n?2:1),n?16:10)}return Wd(r)||e}const l0={}.hasOwnProperty;function IL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),NL(r)(_L(AL(r).document().write(OL()(e,t,!0))))}function NL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ae),autolinkProtocol:x,autolinkEmail:x,atxHeading:n(te),blockQuote:n(Q),characterEscape:x,characterReference:x,codeFenced:n(q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(q,s),codeText:n(z,s),codeTextData:x,data:x,codeFlowValue:x,definition:n(W),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(pe,s),htmlFlowData:x,htmlText:n(pe,s),htmlTextData:x,image:n(ve),label:s,link:n(Ae),listItem:n(De),listItemValue:p,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(te),strong:n(Le),thematicBreak:n(ke)},exit:{atxHeading:c(),atxHeadingSequence:m,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:O,codeIndented:c(y),codeText:c(j),codeTextData:O,data:O,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(_),hardBreakTrailing:c(_),htmlFlow:c(F),htmlFlowData:O,htmlText:c(I),htmlTextData:O,image:c(Y),label:ie,labelText:Z,lineEnding:C,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:N,resourceDestinationString:P,resourceTitleString:M,resource:U,setextHeading:c(A),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};c0(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ee){let re={type:"root",children:[]};const ne={stack:[re],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:u,data:r},we=[];let me=-1;for(;++me<ee.length;)if(ee[me][1].type==="listOrdered"||ee[me][1].type==="listUnordered")if(ee[me][0]==="enter")we.push(me);else{const at=we.pop();me=i(ee,at,me)}for(me=-1;++me<ee.length;){const at=t[ee[me][0]];l0.call(at,ee[me][1].type)&&at[ee[me][1].type].call(Object.assign({sliceSerialize:ee[me][2].sliceSerialize},ne),ee[me][1])}if(ne.tokenStack.length>0){const at=ne.tokenStack[ne.tokenStack.length-1];(at[1]||u0).call(ne,void 0,at[0])}for(re.position={start:Ea(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Ea(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)re=t.transforms[me](re)||re;return re}function i(ee,re,ne){let we=re-1,me=-1,at=!1,Re,Ge,Ct,It;for(;++we<=ne;){const it=ee[we];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?me++:me--,It=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Re&&!It&&!me&&!Ct&&(Ct=we),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!me&&it[0]==="enter"&&it[1].type==="listItemPrefix"||me===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Re){let wt=we;for(Ge=void 0;wt--;){const st=ee[wt];if(st[1].type==="lineEnding"||st[1].type==="lineEndingBlank"){if(st[0]==="exit")continue;Ge&&(ee[Ge][1].type="lineEndingBlank",at=!0),st[1].type="lineEnding",Ge=wt}else if(!(st[1].type==="linePrefix"||st[1].type==="blockQuotePrefix"||st[1].type==="blockQuotePrefixWhitespace"||st[1].type==="blockQuoteMarker"||st[1].type==="listItemIndent"))break}Ct&&(!Ge||Ct<Ge)&&(Re._spread=!0),Re.end=Object.assign({},Ge?ee[Ge][1].start:it[1].end),ee.splice(Ge||we,0,["exit",Re,it[2]]),we++,ne++}if(it[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Re=wt,ee.splice(we,0,["enter",wt,it[2]]),we++,ne++,Ct=void 0,It=!0}}}return ee[re][1]._spread=at,ne}function n(ee,re){return ne;function ne(we){o.call(this,ee(we),we),re&&re.call(this,we)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(ee,re,ne){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([re,ne||void 0]),ee.position={start:Ea(re.start),end:void 0}}function c(ee){return re;function re(ne){ee&&ee.call(this,ne),l.call(this,ne)}}function l(ee,re){const ne=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==ee.type&&(re?re.call(this,ee,we[0]):(we[1]||u0).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Js({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=Ea(ee.end)}function u(){return qM(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(ee){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function d(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.lang=ee}function h(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/(\r?\n|\r)$/g,"")}function b(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function E(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function m(ee){const re=this.stack[this.stack.length-1];if(!re.depth){const ne=this.sliceSerialize(ee).length;re.depth=ne}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function S(ee){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=We(),we.position={start:Ea(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function O(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=Ea(ee.end)}function C(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=Ea(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(x.call(this,ee),O.call(this,ee))}function _(){this.data.atHardBreak=!0}function F(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function I(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function j(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function $(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Y(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(ee){const re=this.sliceSerialize(ee),ne=this.stack[this.stack.length-2];ne.label=TL(re),ne.identifier=Ki(re).toLowerCase()}function ie(){const ee=this.stack[this.stack.length-1],re=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const we=ee.children;ne.children=we}else ne.alt=re}function P(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function M(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function N(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function L(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=Vk(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Wd(re);const me=this.stack[this.stack.length-1];me.value+=we}function V(ee){const re=this.stack.pop();re.position.end=Ea(ee.end)}function K(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function z(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function ae(){return{type:"break"}}function pe(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ae(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function De(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function Le(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function ke(){return{type:"thematicBreak"}}}function Ea(e){return{line:e.line,column:e.column,offset:e.offset}}function c0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?c0(e,a):DL(e,a)}}function DL(e,t){let r;for(r in t)if(l0.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function u0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Js({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Js({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Js({start:t.start,end:t.end})+") is still open")}function FL(e){const t=this;t.parser=r;function r(a){return IL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ML(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function jL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
-
`}]}function
|
|
110
|
-
`:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function
|
|
111
|
-
`}),u.type==="element"&&u.tagName==="p"&&!i?
|
|
112
|
-
`});const l={type:"element",tagName:"li",properties:n,children:
|
|
113
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(
|
|
114
|
-
`}]}}const
|
|
105
|
+
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=n(c);o(c,l),s(c,u)}};function n({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const p=Array.isArray(c[f])?l:u;p[f]=c[f]}return[l,u]}function o(c,l=c.schema){const{gen:u,data:f,it:p}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const h in l){const k=l[h];if(k.length===0)continue;const v=(0,a.propertyInData)(u,f,h,p.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),p.allErrors?u.if(v,()=>{for(const y of k)(0,a.checkReportMissingProp)(c,y)}):(u.if((0,t._)`${v} && (${(0,a.checkMissingProp)(c,k,d)})`),(0,a.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=o;function s(c,l=c.schema){const{gen:u,data:f,keyword:p,it:d}=c,h=u.name("valid");for(const k in l)(0,r.alwaysValidSchema)(d,l[k])||(u.if((0,a.propertyInData)(u,f,k,d.opts.ownProperties),()=>{const v=c.subschema({keyword:p,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=s,e.default=i})(od)),od}var Vl={},Eb;function jD(){if(Eb)return Vl;Eb=1,Object.defineProperty(Vl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:n,schema:o,data:s,it:c}=i;if((0,t.alwaysValidSchema)(c,o))return;const l=n.name("valid");n.forIn("key",s,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||n.break()})}),i.ok(l)}};return Vl.default=a,Vl}var Hl={},Cb;function Ab(){if(Cb)return Hl;Cb=1,Object.defineProperty(Hl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=ka(),a=et(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,t._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:s,schema:c,parentSchema:l,data:u,errsCount:f,it:p}=o;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=p;if(p.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(p,c))return;const k=(0,e.allSchemaProperties)(l.properties),v=(0,e.allSchemaProperties)(l.patternProperties);y(),o.ok((0,t._)`${f} === ${r.default.errors}`);function y(){s.forIn("key",u,g=>{!k.length&&!v.length?E(g):s.if(b(g),()=>E(g))})}function b(g){let S;if(k.length>8){const A=(0,a.schemaRefOrVal)(p,l.properties,"properties");S=(0,e.isOwnProperty)(s,A,g)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${g} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(o,A)}.test(${g})`))),(0,t.not)(S)}function w(g){s.code((0,t._)`delete ${u}[${g}]`)}function E(g){if(h.removeAdditional==="all"||h.removeAdditional&&c===!1){w(g);return}if(c===!1){o.setParams({additionalProperty:g}),o.error(),d||s.break();return}if(typeof c=="object"&&!(0,a.alwaysValidSchema)(p,c)){const S=s.name("valid");h.removeAdditional==="failing"?(m(g,S,!1),s.if((0,t.not)(S),()=>{o.reset(),w(g)})):(m(g,S),d||s.if((0,t.not)(S),()=>s.break()))}}function m(g,S,A){const x={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};A===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(x,S)}}};return Hl.default=n,Hl}var Wl={},_b;function LD(){if(_b)return Wl;_b=1,Object.defineProperty(Wl,"__esModule",{value:!0});const e=bl(),t=fn(),r=et(),a=Ab(),i={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,parentSchema:c,data:l,it:u}=n;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(u,a.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(s);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(o,(0,r.toHash)(f),u.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(u,s[v]));if(p.length===0)return;const d=o.name("valid");for(const v of p)h(v)?k(v):(o.if((0,t.propertyInData)(o,l,v,u.opts.ownProperties)),k(v),u.allErrors||o.else().var(d,!0),o.endIf()),n.it.definedProperties.add(v),n.ok(d);function h(v){return u.opts.useDefaults&&!u.compositeRule&&s[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return Wl.default=i,Wl}var Kl={},Ob;function RD(){if(Ob)return Kl;Ob=1,Object.defineProperty(Kl,"__esModule",{value:!0});const e=fn(),t=Ue(),r=et(),a=et(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,data:c,parentSchema:l,it:u}=n,{opts:f}=u,p=(0,e.allSchemaProperties)(s),d=p.filter(E=>(0,r.alwaysValidSchema)(u,s[E]));if(p.length===0||d.length===p.length&&(!u.opts.unevaluated||u.props===!0))return;const h=f.strictSchema&&!f.allowMatchingProperties&&l.properties,k=o.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,a.evaluatedPropsToName)(o,u.props));const{props:v}=u;y();function y(){for(const E of p)h&&b(E),u.allErrors?w(E):(o.var(k,!0),w(E),o.if(k))}function b(E){for(const m in h)new RegExp(E).test(m)&&(0,r.checkStrictMode)(u,`property ${m} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){o.forIn("key",c,m=>{o.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${m})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:m,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?o.assign((0,t._)`${v}[${m}]`,!0):!g&&!u.allErrors&&o.if((0,t.not)(k),()=>o.break())})})}}};return Kl.default=i,Kl}var Gl={},xb;function qD(){if(xb)return Gl;xb=1,Object.defineProperty(Gl,"__esModule",{value:!0});const e=et(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:a,schema:i,it:n}=r;if((0,e.alwaysValidSchema)(n,i)){r.fail();return}const o=a.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Gl.default=t,Gl}var Jl={},Tb;function zD(){if(Tb)return Jl;Tb=1,Object.defineProperty(Jl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fn().validateUnion,error:{message:"must match a schema in anyOf"}};return Jl.default=t,Jl}var Yl={},Pb;function $D(){if(Pb)return Yl;Pb=1,Object.defineProperty(Yl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:n,schema:o,parentSchema:s,it:c}=i;if(!Array.isArray(o))throw new Error("ajv implementation error");if(c.opts.discriminator&&s.discriminator)return;const l=o,u=n.let("valid",!1),f=n.let("passing",null),p=n.name("_valid");i.setParams({passing:f}),n.block(d),i.result(u,()=>i.reset(),()=>i.error(!0));function d(){l.forEach((h,k)=>{let v;(0,t.alwaysValidSchema)(c,h)?n.var(p,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return Yl.default=a,Yl}var Xl={},Ib;function UD(){if(Ib)return Xl;Ib=1,Object.defineProperty(Xl,"__esModule",{value:!0});const e=et(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:a,schema:i,it:n}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const o=a.name("valid");i.forEach((s,c)=>{if((0,e.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:c},o);r.ok(o),r.mergeEvaluated(l)})}};return Xl.default=t,Xl}var Zl={},Nb;function BD(){if(Nb)return Zl;Nb=1,Object.defineProperty(Zl,"__esModule",{value:!0});const e=Ue(),t=et(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:o,parentSchema:s,it:c}=n;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const f=o.let("valid",!0),p=o.name("_valid");if(d(),n.reset(),l&&u){const k=o.let("ifClause");n.setParams({ifClause:k}),o.if(p,h("then",k),h("else",k))}else l?o.if(p,h("then")):o.if((0,e.not)(p),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},p);o.assign(f,p),n.mergeValidEvaluated(y,f),v?o.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function i(n,o){const s=n.schema[o];return s!==void 0&&!(0,t.alwaysValidSchema)(n,s)}return Zl.default=a,Zl}var Ql={},Db;function VD(){if(Db)return Ql;Db=1,Object.defineProperty(Ql,"__esModule",{value:!0});const e=et(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:a,it:i}){a.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Ql.default=t,Ql}var Fb;function HD(){if(Fb)return zl;Fb=1,Object.defineProperty(zl,"__esModule",{value:!0});const e=gb(),t=ND(),r=vb(),a=DD(),i=FD(),n=MD(),o=jD(),s=Ab(),c=LD(),l=RD(),u=qD(),f=zD(),p=$D(),d=UD(),h=BD(),k=VD();function v(y=!1){const b=[u.default,f.default,p.default,d.default,h.default,k.default,o.default,s.default,n.default,c.default,l.default];return y?b.push(t.default,a.default):b.push(e.default,r.default),b.push(i.default),b}return zl.default=v,zl}var ec={},tc={},Mb;function WD(){if(Mb)return tc;Mb=1,Object.defineProperty(tc,"__esModule",{value:!0});const e=Ue(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,i){const{gen:n,data:o,$data:s,schema:c,schemaCode:l,it:u}=a,{opts:f,errSchemaPath:p,schemaEnv:d,self:h}=u;if(!f.validateFormats)return;s?k():v();function k(){const y=n.scopeValue("formats",{ref:h.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${y}[${l}]`),w=n.let("fType"),E=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(E,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(E,b)),a.fail$data((0,e.or)(m(),g()));function m(){return f.strictSchema===!1?e.nil:(0,e._)`${l} && !${E}`}function g(){const S=d.$async?(0,e._)`(${b}.async ? await ${E}(${o}) : ${E}(${o}))`:(0,e._)`${E}(${o})`,A=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${o}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${A}`}}function v(){const y=h.formats[c];if(!y){m();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function m(){if(f.strictSchema===!1){h.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${c}" ignored in schema at path "${p}"`}}function g(A){const x=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,O=n.scopeValue("formats",{key:c,ref:A,code:x});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${O}.validate`]:["string",A,O]}function S(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${o})`}return typeof w=="function"?(0,e._)`${E}(${o})`:(0,e._)`${E}.test(${o})`}}}};return tc.default=r,tc}var jb;function KD(){if(jb)return ec;jb=1,Object.defineProperty(ec,"__esModule",{value:!0});const t=[WD().default];return ec.default=t,ec}var ti={},Lb;function GD(){return Lb||(Lb=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.contentVocabulary=ti.metadataVocabulary=void 0,ti.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ti.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ti}var Rb;function JD(){if(Rb)return Cl;Rb=1,Object.defineProperty(Cl,"__esModule",{value:!0});const e=bD(),t=ID(),r=HD(),a=KD(),i=GD(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Cl.default=n,Cl}var rc={},Vo={},qb;function YD(){if(qb)return Vo;qb=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Vo.DiscrError=e={})),Vo}var zb;function XD(){if(zb)return rc;zb=1,Object.defineProperty(rc,"__esModule",{value:!0});const e=Ue(),t=YD(),r=rd(),a=Sl(),i=et(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:c}})=>s===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:s,tag:c,tagName:l}})=>(0,e._)`{error: ${s}, tag: ${l}, tagValue: ${c}}`},code(s){const{gen:c,data:l,schema:u,parentSchema:f,it:p}=s,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=u.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=c.let("valid",!1),v=c.const("tag",(0,e._)`${l}${(0,e.getProperty)(h)}`);c.if((0,e._)`typeof ${v} == "string"`,()=>y(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:h})),s.ok(k);function y(){const E=w();c.if(!1);for(const m in E)c.elseIf((0,e._)`${v} === ${m}`),c.assign(k,b(E[m]));c.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const m=c.name("valid"),g=s.subschema({keyword:"oneOf",schemaProp:E},m);return s.mergeEvaluated(g,e.Name),m}function w(){var E;const m={},g=A(f);let S=!0;for(let C=0;C<d.length;C++){let _=d[C];if(_!=null&&_.$ref&&!(0,i.schemaHasRulesButRef)(_,p.self.RULES)){const I=_.$ref;if(_=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,I),_ instanceof r.SchemaEnv&&(_=_.schema),_===void 0)throw new a.default(p.opts.uriResolver,p.baseId,I)}const F=(E=_==null?void 0:_.properties)===null||E===void 0?void 0:E[h];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||A(_)),x(F,C)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return m;function A({required:C}){return Array.isArray(C)&&C.includes(h)}function x(C,_){if(C.const)O(C.const,_);else if(C.enum)for(const F of C.enum)O(F,_);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function O(C,_){if(typeof C!="string"||C in m)throw new Error(`discriminator: "${h}" values must be unique strings`);m[C]=_}}}};return rc.default=o,rc}const ZD={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var $b;function Ub(){return $b||($b=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=gD(),a=JD(),i=XD(),n=ZD,o=["/properties"],s="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(n,o):n;this.addMetaSchema(h,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=bl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Ue();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=td();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Sl();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(pl,pl.exports)),pl.exports}var QD=Ub();const eF=gn(QD);var nc={exports:{}},sd={},Bb;function tF(){return Bb||(Bb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(x,O){return{validate:x,compare:O}}e.fullFormats={date:t(n,o),time:t(c,l),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"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":/^(?:(?:[^\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,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,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:/^(?=.{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,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([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}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:E},int64:{type:"number",validate:m},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\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,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,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},e.formatNames=Object.keys(e.fullFormats);function r(x){return x%4===0&&(x%100!==0||x%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(x){const O=a.exec(x);if(!O)return!1;const C=+O[1],_=+O[2],F=+O[3];return _>=1&&_<=12&&F>=1&&F<=(_===2&&r(C)?29:i[_])}function o(x,O){if(x&&O)return x>O?1:x<O?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(x,O){const C=s.exec(x);if(!C)return!1;const _=+C[1],F=+C[2],I=+C[3],j=C[5];return(_<=23&&F<=59&&I<=59||_===23&&F===59&&I===60)&&(!O||j!=="")}function l(x,O){if(!(x&&O))return;const C=s.exec(x),_=s.exec(O);if(C&&_)return x=C[1]+C[2]+C[3]+(C[4]||""),O=_[1]+_[2]+_[3]+(_[4]||""),x>O?1:x<O?-1:0}const u=/t|\s/i;function f(x){const O=x.split(u);return O.length===2&&n(O[0])&&c(O[1],!0)}function p(x,O){if(!(x&&O))return;const[C,_]=x.split(u),[F,I]=O.split(u),j=o(C,F);if(j!==void 0)return j||l(_,I)}const d=/\/|:/,h=/^(?:[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;function k(x){return d.test(x)&&h.test(x)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(x){return v.lastIndex=0,v.test(x)}const b=-2147483648,w=2**31-1;function E(x){return Number.isInteger(x)&&x<=w&&x>=b}function m(x){return Number.isInteger(x)}function g(){return!0}const S=/[^\\]\\Z/;function A(x){if(S.test(x))return!1;try{return new RegExp(x),!0}catch{return!1}}})(sd)),sd}var ld={},Vb;function rF(){return Vb||(Vb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ub(),r=Ue(),a=r.operators,i={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},n={message:({keyword:s,schemaCode:c})=>r.str`should be ${i[s].okStr} ${c}`,params:({keyword:s,schemaCode:c})=>r._`{comparison: ${i[s].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:n,code(s){const{gen:c,data:l,schemaCode:u,keyword:f,it:p}=s,{opts:d,self:h}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,h.RULES.all.format.definition,"format");k.$data?v():y();function v(){const w=c.scopeValue("formats",{ref:h.formats,code:d.code.formats}),E=c.const("fmt",r._`${w}[${k.schemaCode}]`);s.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function y(){const w=k.schema,E=h.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const m=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});s.fail$data(b(m))}function b(w){return r._`${w}.compare(${l}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(ld)),ld}var Hb;function nF(){return Hb||(Hb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=tF(),a=rF(),i=Ue(),n=new i.Name("fullFormats"),o=new i.Name("fastFormats"),s=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,n),l;const[f,p]=u.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,p),u.keywords&&a.default(l),l};s.get=(l,u="full")=>{const p=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!p)throw new Error(`Unknown format "${l}"`);return p};function c(l,u,f,p){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${p}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(nc,nc.exports)),nc.exports}var aF=nF();const Wb=gn(aF),iF={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},oF=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,sF=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function lF(e,t,r={},a,i=eF,n){let o=new i({...iF,...r});return a?Wb(o,a):a!==!1&&Wb(o),o.addFormat("data-url",sF),o.addFormat("color",oF),o.addKeyword(ou),Array.isArray(e)&&o.addMetaSchema(e),Ye(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),n&&(o=n(o)),o}class cF{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:s,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=lF(a,i,n,o,s,c),this.localizer=r,this.suppressDuplicateFiltering=l}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var a,i;let n,o;try{t[dt]&&(o=this.ajv.getSchema(t[dt])),o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(c){n=c}let s;return o&&(typeof this.localizer=="function"&&(((a=o.errors)!==null&&a!==void 0?a:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=`'${c.params[u]}'`)}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(o.errors),((i=o.errors)!==null&&i!==void 0?i:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=c.params[u].slice(1,-1))}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:n}}validateFormData(t,r,a,i,n){const o=this.rawValidation(r,t);return oD(this,o,t,r,a,i,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,a;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const i=(r=t[dt])!==null&&r!==void 0?r:Tm;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Xe(t,(a=this.ajv.getSchema(i))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,a){var i;try{this.handleSchemaUpdate(a);const n=hf(t),o=(i=n[dt])!==null&&i!==void 0?i:oT(n);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(n,o).getSchema(o)||this.ajv.compile(n)),s(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function ac(e={},t){return new cF(e,t)}ac();var cd,Kb;function uF(){return Kb||(Kb=1,cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="must have propert",a==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"maxItems":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="must NOT be longer than "+a+" character",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="must NOT have more than "+a+" propert",a==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"minItems":n="";var a=i.params.limit;n+="must NOT have less than "+a+" item",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="must NOT be shorter than "+a+" character",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="must NOT have less than "+a+" propert",a==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),cd}var ud,Gb;function fF(){return Gb||(Gb=1,ud=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" يجب أن يحوي الخصائص "+i.params.deps+" عندما تكون الخاصية "+i.params.property+" موجودة";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"maxLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" محرف";break;case"maxProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" عنصر";break;case"minLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" محرف";break;case"minProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+i.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+i.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+i.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+i.params.j+" و "+i.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}i.message=n}}),ud}var fd,Jb;function dF(){return Jb||(Jb=1,fd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" element",a!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="ha de contenir la propietat",a!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" és present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" ítem",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" caràcter",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" propietat",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no ha de tenir menys de "+a+" ítem",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" caràcter",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" propietat",a!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+i.params.j+" i "+i.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}i.message=n}}),fd}var dd,Yb;function pF(){return Yb||(Yb=1,dd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemůže mít víc, než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="musí mít polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+i.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+i.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmí obsahovat víc než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"maxLength":n="";var a=i.params.limit;n+="nesmí být delší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"maxProperties":n="";var a=i.params.limit;n+="nesmí mít víc než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmí obsahovat méně než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"minLength":n="";var a=i.params.limit;n+="nesmí být kratší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"minProperties":n="";var a=i.params.limit;n+="nesmí mít méně než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+i.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+i.params.missingProperty;break;case"type":n="musí být "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identické)";break;default:n='musí vyhovět "'+i.keyword+'" validaci'}i.message=n}}),dd}var pd,Xb;function mF(){return Xb||(Xb=1,pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="muss Attribut",a!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var a=i.params.limit;n+="darf nicht länger als "+a+" Zeichen sein";break;case"maxProperties":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var a=i.params.limit;n+="darf nicht kürzer als "+a+" Zeichen sein";break;case"minProperties":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}),pd}var md,Zb;function hF(){return Zb||(Zb=1,md=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no debe tener más de "+a+" elemento",a!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="debe contener la",a!=1&&(n+="s"),n+=" propiedad",a!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no debe contener más de "+a+" elemento",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no debe contener más de "+a+" caracter",a!=1&&(n+="es");break;case"maxProperties":n="";var a=i.params.limit;n+="no debe contener más de "+a+" propiedad",a!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" elemento",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" caracter",a!=1&&(n+="es");break;case"minProperties":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" propiedad",a!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}i.message=n}}),md}var hd,Qb;function gF(){return Qb||(Qb=1,hd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="saa sisältää enintään "+i,i==1?o+=":n elementin":o+=" elementtiä";break;case"additionalProperties":o="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":o='täytyy vastata "anyOf" skeemaa';break;case"const":o="täytyy olla yhtä kuin vakio";break;case"contains":o="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="täytyy sisältää "+n.params.deps+" ominaisuu",i==1?o+="s":o+="det",o+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":o='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":o='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":o="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":o="boolean skeema on väärä";break;case"format":o='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"if":o='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"maxItems":o="";var i=n.params.limit;o+="tulee sisältää enintään "+i+" ",i==1?o+="elementti":o+="elementtiä";break;case"maxLength":o="";var i=n.params.limit;o+="ei saa olla pidempi kuin "+i+" merkki",i!=1&&(o+="ä");break;case"maxProperties":o="";var i=n.params.limit;o+="tulee sisältää enintään "+i+" ",i==1?o+="ominaisuus":o+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"minItems":o="";var i=n.params.limit;o+="tulee sisältää vähintään "+i+" ",i==1?o+="elementti":o+="elementtiä";break;case"minLength":o="";var i=n.params.limit;o+="ei saa olla lyhyempi kuin "+i+" merkki",i!=1&&(o+="ä");break;case"minProperties":o="";var i=n.params.limit;o+="tulee sisältää vähintään "+i+" ",i==1?o+="ominaisuus":o+="ominaisuutta";break;case"multipleOf":o="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":o='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":o='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":o='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":o='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":o="ominaisuuden nimi on virheellinen";break;case"required":o="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="täytyy olla ",a=="number"?o+="numero":a=="integer"?o+="kokonaisluku":a=="string"?o+="merkkijono":a=="boolean"?o+="boolean":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="ei saa olla enemmän kuin "+i+" elementti",i!=1&&(o+="ä");break;case"unevaluatedProperties":o="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":o="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=o}}),hd}var gd,ek;function yF(){return ek||(ek=1,gd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élémént",a!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="doit avoir la propriété "+i.params.deps+" quand la propriété "+i.params.property+" est présente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+i.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élément",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="ne doit pas dépasser "+a+" caractère",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" propriété",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"minItems":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" élément",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="ne doit pas faire moins de "+a+" caractère",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" propriété",a!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+i.params.missingProperty;break;case"type":n="doit être de type "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+i.keyword+'"'}i.message=n}}),gd}var yd,tk;function vF(){return tk||(tk=1,yd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="-nak kell legyen",a>1&&(n+="ek"),n+=" a következő tulajdonsága",a!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdonsága";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"maxLength":n="";var a=i.params.limit;n+="nem lehet hosszabb, mint "+a+" szimbólum";break;case"maxProperties":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" eleme";break;case"minLength":n="";var a=i.params.limit;n+="nem lehet rövidebb, mint "+a+" szimbólum";break;case"minProperties":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+i.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdonsága";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" és "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),yd}var vd,rk;function bF(){return rk||(rk=1,vd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"maxLength":n="";var a=i.params.limit;n+=" tidak boleh lebih dari "+a+" karakter";break;case"maxProperties":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"minItems":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" item";break;case"minLength":n="";var a=i.params.limit;n+=" tidak boleh lebih pendek dari "+a+" karakter";break;case"minProperties":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}),vd}var bd,nk;function kF(){return nk||(nk=1,bd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="non dovrebbe avere più di "+a+" element",a==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="dovrebbe avere ",a==1?n+="l'":n+="gli ",n+="attribut",a==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" è presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var a=i.params.limit;n+="non deve avere più di "+a+" element",a==1?n+="o":n+="i";break;case"maxLength":n="";var a=i.params.limit;n+="non deve essere più lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"maxProperties":n="";var a=i.params.limit;n+="non deve avere più di "+a+" attribut",a==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"minItems":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" element",a==1?n+="o":n+="i";break;case"minLength":n="";var a=i.params.limit;n+="non deve essere meno lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"minProperties":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" attribut",a==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="non deve avere più di "+a+" elementi",a==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}),bd}var kd,ak;function wF(){return ak||(ak=1,kd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="は"+a+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"がある場合、";var a=i.params.depsCount;n+="は"+i.params.deps+"をつけなければいけない";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var a=i.params.limit;n+="は"+a+"個以上であってはいけない";break;case"maxLength":n="";var a=i.params.limit;n+="は"+a+"文字以上であってはいけない";break;case"maxProperties":n="";var a=i.params.limit;n+="は"+a+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var a=i.params.limit;n+="は"+a+"個以下であってはいけない";break;case"minLength":n="";var a=i.params.limit;n+="は"+a+"文字以下であってはいけない";break;case"minProperties":n="";var a=i.params.limit;n+="は"+a+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+i.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+i.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+i.params.missingProperty+"がなければいけない";break;case"type":n=""+i.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+i.params.j+"と"+i.params.i+"は同じである)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),kd}var wd,ik;function SF(){return ik||(ik=1,wd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" 항목은 아이템을 "+a+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=i.params.property+"속성이 있는 경우, "+i.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+i.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+i.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+i.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var a=i.params.limit;n+="아이템이 최대 "+a+"개이여야 합니다";break;case"maxLength":n="";var a=i.params.limit;n+="최대 "+a+"글자여야 합니다";break;case"maxProperties":n="";var a=i.params.limit;n+="속성은 최대 "+a+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var a=i.params.limit;n+="아이템이 최소 "+a+"개이여야 합니다";break;case"minLength":n="";var a=i.params.limit;n+="최소 "+a+"글자여야 합니다";break;case"minProperties":n="";var a=i.params.limit;n+="속성은 최소 "+a+"개 이상이여야 합니다";break;case"multipleOf":n=""+i.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+i.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+i.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+i.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+i.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var a=i.params.len;n+="항목이 "+a+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+i.params.j+"과 아이템"+i.params.i+"가 동일합니다)";break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}i.message=n}}),wd}var Sd,ok;function EF(){return ok||(ok=1,Sd=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="kan ikke ha mer enn "+i+" element",i!=1&&(o+="er");break;case"additionalProperties":o="kan ikke ha flere egenskaper";break;case"anyOf":o='må samsvare med et schema i "anyOf"';break;case"const":o="må være lik konstanten";break;case"contains":o="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="må ha egenskapen",i!=1&&(o+="e"),o+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" must be string';break;case"mapping":o='value of tag "'+n.params.tag+'" must be in oneOf';break;default:o="må samsvare med valideringen for "+n.keyword}break;case"enum":o="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":o="boolsk schema er usannt";break;case"format":o='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"if":o='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"maxItems":o="";var i=n.params.limit;o+="kan ikke ha fler enn "+i+" element",i!=1&&(o+="er");break;case"maxLength":o="";var i=n.params.limit;o+="kan ikke være lengre enn "+i+" tegn";break;case"maxProperties":o="";var i=n.params.limit;o+="kan ikke ha mer enn "+i+" egenskap",i!=1&&(o+="er");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"minItems":o="";var i=n.params.limit;o+="kan ikke ha færre enn "+i+" element",i!=1&&(o+="er");break;case"minLength":o="";var i=n.params.limit;o+="kan ikke være kortere enn "+i+" tegn";break;case"minProperties":o="";var i=n.params.limit;o+="kan ikke ha mindre enn "+i+" egenskap",i!=1&&(o+="er");break;case"multipleOf":o="må være et multiplum av "+n.params.multipleOf;break;case"not":o='kan ikke samsvare med schema i "not"';break;case"oneOf":o='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":o='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":o='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":o="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":o="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="må være ",a=="number"?o+="et tall":a=="integer"?o+="et heltall":a=="string"?o+="en streng":a=="boolean"?o+="ja eller nei":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="must NOT have more than "+i+" item",i!=1&&(o+="s");break;case"unevaluatedProperties":o="must NOT have unevaluated properties";break;case"uniqueItems":o="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:o="må samsvare med valideringen for "+n.keyword}n.message=o}}),Sd}var Ed,sk;function CF(){return sk||(sk=1,Ed=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"additionalProperties":o="mag geen extra eigenschappen bevatten";break;case"anyOf":o='moet overeenkomen met een schema in "anyOf"';break;case"const":o="moet gelijk zijn aan constante";break;case"contains":o="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+="moet de eigenschap",i!=1&&(o+="pen"),o+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":o='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":o="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":o="boolean schema is fout";break;case"format":o='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"if":o='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"maxItems":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"maxLength":o="";var i=n.params.limit;o+="mag niet langer dan "+i+" karakter",i!=1&&(o+="s"),o+=" zijn";break;case"maxProperties":o="";var i=n.params.limit;o+="mag niet meer dan "+i+" eigenschap",i!=1&&(o+="pen"),o+=" bevatten";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"minItems":o="";var i=n.params.limit;o+="mag niet minder dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"minLength":o="";var i=n.params.limit;o+="mag niet korter dan "+i+" karakter",i!=1&&(o+="s"),o+=" zijn";break;case"minProperties":o="";var i=n.params.limit;o+="mag niet minder dan "+i+" eigenschap",i!=1&&(o+="pen"),o+=" bevatten";break;case"multipleOf":o="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":o='mag niet overeenkomen met een schema in "not"';break;case"oneOf":o='moet overeenkomen met één schema in "oneOf"';break;case"pattern":o='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":o='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":o="eigenschapnaam is ongeldig";break;case"required":o="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":o="";var a=n.params.type;o+="moet een ",a=="number"?o+="nummer":a=="integer"?o+="geheel getal":a=="string"?o+="tekenreeks":a=="boolean"&&(o+="ja of nee waarde"),o+=" ("+a+") bevatten";break;case"unevaluatedItems":o="";var i=n.params.len;o+="mag niet meer dan "+i+" item",i!=1&&(o+="s"),o+=" bevatten";break;case"unevaluatedProperties":o="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":o="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=o}}),Ed}var Cd,lk;function AF(){return lk||(lk=1,Cd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="powinien zawierać pol",a==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+i.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"maxLength":n="";var a=i.params.limit;n+="nie powinien być dłuższy niż "+a+" znak",a!=1&&(n+="ów");break;case"maxProperties":n="";var a=i.params.limit;n+="nie powinien zawierać więcej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"minItems":n="";var a=i.params.limit;n+="nie powinien mieć mniej niż "+a+" element",a==1?n+="u":n+="ów";break;case"minLength":n="";var a=i.params.limit;n+="nie powinien być krótszy niż "+a+" znak",a!=1&&(n+="ów");break;case"minProperties":n="";var a=i.params.limit;n+="nie powinien zawierać mniej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+i.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+i.params.missingProperty;break;case"type":n="powinien być "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+i.params.j+" i "+i.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+i.keyword+'"'}i.message=n}}),Cd}var Ad,ck;function _F(){return ck||(ck=1,Ad=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="não são permitidos itens adicionais (mais do que "+i+")";break;case"additionalProperties":o="não são permitidas propriedades adicionais";break;case"anyOf":o='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":o="deve ser igual à constante";break;case"contains":o="deve conter um item válido";break;case"dependencies":case"dependentRequired":o="";var i=n.params.depsCount;o+=" deve ter propriedade",i!=1&&(o+="s"),o+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":o='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":o='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":o="deve ser igual a um dos valores permitidos";break;case"false schema":o='o schema booleano é "false"';break;case"format":o='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"if":o='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"maxItems":o="";var i=n.params.limit;o+="não deve ter mais que "+i+" elemento",i!=1&&(o+="s");break;case"maxLength":o="";var i=n.params.limit;o+="não deve ser maior que "+i+" caracter",i!=1&&(o+="es");break;case"maxProperties":o="";var i=n.params.limit;o+="não deve ter mais que "+i+" propriedade",i!=1&&(o+="s");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"minItems":o="";var i=n.params.limit;o+="não deve ter menos que "+i+" elemento",i!=1&&(o+="s");break;case"minLength":o="";var i=n.params.limit;o+="não deve ser mais curta que "+i+" caracter",i!=1&&(o+="es");break;case"minProperties":o="";var i=n.params.limit;o+="não deve ter menos que "+i+" propriedade",i!=1&&(o+="s");break;case"multipleOf":o="deve ser múltiplo de "+n.params.multipleOf;break;case"not":o='não deve ser valido segundo o schema em "not"';break;case"oneOf":o='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":o='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":o='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":o="o nome da propriedade é inválido";break;case"required":o="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":o="";var a=n.params.type;o+="deve ser ",a=="number"?o+="um número":a=="integer"?o+="um número inteiro":a=="string"?o+="um texto":a=="boolean"?o+="um booleano":o+=a;break;case"unevaluatedItems":o="";var i=n.params.len;o+="não pode possuir mais que "+i+" ",i==1?o+="item":o+="itens";break;case"unevaluatedProperties":o="não pode possuir propridades não avaliadas";break;case"uniqueItems":o="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}n.message=o}}),Ad}var _d,uk;function OF(){return uk||(uk=1,_d=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="должно иметь пол",a==1?n+="е":n+="я",n+=" "+i.params.deps+", когда присутствует поле "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='поле "'+i.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+i.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+i.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxLength":n="";var a=i.params.limit;n+="должно быть не длиннее, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxProperties":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"minItems":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minLength":n="";var a=i.params.limit;n+="должно быть не короче, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minProperties":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+i.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+i.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+i.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+i.params.missingProperty;break;case"type":n="должно быть "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+i.params.j+" и "+i.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+i.keyword+'"'}i.message=n}}),_d}var Od,fk;function xF(){return fk||(fk=1,Od=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemôže obsahovať viac, než "+a+" prv",a==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" musí obsahovať polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+i.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" prv",a==1?n+="ok":n+="kov";break;case"maxLength":n="";var a=i.params.limit;n+="nesmie byť dlhší než "+a+" znak",a!=1&&(n+="ov");break;case"maxProperties":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" prv",a==1?n+="ok":n+="kov";break;case"minLength":n="";var a=i.params.limit;n+="nesmie byť kratší než "+a+" znak",a!=1&&(n+="ov");break;case"minProperties":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+i.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+i.params.missingProperty;break;case"type":n="musí byť "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+i.params.j+" a "+i.params.i+" sú rovnaké)";break;default:n='musí splniť "'+i.keyword+'" validáciu'}i.message=n}}),Od}var xd,dk;function TF(){return dk||(dk=1,xd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="borde ha fler än "+a+" sak",a!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="borde ha egenskap",a!=1&&(n+="er"),n+=" "+i.params.deps+" när egenskap "+i.params.property+" finns tillgängligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" sak",a!=1&&(n+="er");break;case"maxLength":n="";var a=i.params.limit;n+="borde inte vara längre än "+a+" tecken";break;case"maxProperties":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" egenskap",a!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"minItems":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" sak",a!=1&&(n+="er");break;case"minLength":n="";var a=i.params.limit;n+="borde inte vara kortare än "+a+" tecken";break;case"minProperties":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" egenskap",a!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+i.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" är identiska)";break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}i.message=n}}),xd}var Td,pk;function PF(){return pk||(pk=1,Td=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="เมื่อมี property "+i.params.property+" แล้วจะต้องมี property "+i.params.deps+" ด้วย";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+i.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a;break;case"maxLength":n="";var a=i.params.limit;n+="ต้องยาวไม่เกิน "+a+" ตัวอักษร";break;case"maxProperties":n="";var a=i.params.limit;n+="ต้องมี property ไม่เกิน "+a+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var a=i.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+a;break;case"minLength":n="";var a=i.params.limit;n+="ต้องมีอย่างน้อย "+a+" ตัวอักษร";break;case"minProperties":n="";var a=i.params.limit;n+="ต้องมี property อย่างน้อย "+a+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+i.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+i.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+i.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="ต้องมีไม่เกิน "+a+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+i.params.j+" กับ "+i.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}i.message=n}}),Td}var Pd,mk;function IF(){return mk||(mk=1,Pd=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不允许超过"+a+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="应当拥有属性"+i.params.property+"的依赖属性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='标签 "'+i.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+i.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不应多于 "+a+" 个项";break;case"maxLength":n="";var a=i.params.limit;n+="不应多于 "+a+" 个字符";break;case"maxProperties":n="";var a=i.params.limit;n+="不应有多于 "+a+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不应少于 "+a+" 个项";break;case"minLength":n="";var a=i.params.limit;n+="不应少于 "+a+" 个字符";break;case"minProperties":n="";var a=i.params.limit;n+="不应有少于 "+a+" 个属性";break;case"multipleOf":n="应当是 "+i.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+i.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+i.params.missingProperty;break;case"type":n="应当是 "+i.params.type+" 类型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 不允许有超过 "+a+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+i.params.j+" 项与第 "+i.params.i+" 项是重复的)";break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}i.message=n}}),Pd}var Id,hk;function NF(){return hk||(hk=1,Id=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不可以超過"+a+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="應該要有屬性"+i.params.property+"的依賴屬性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='標籤 "'+i.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+i.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+i.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個";break;case"maxLength":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個字元";break;case"maxProperties":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個";break;case"minLength":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個字元";break;case"minProperties":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個屬性";break;case"multipleOf":n="應該是 "+i.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+i.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+i.params.missingProperty;break;case"type":n="應該是 "+i.params.type+" 類型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 的元素不可以超過 "+a+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+i.params.j+" 項和第 "+i.params.i+" 項是重複的)";break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}i.message=n}}),Id}var Nd,gk;function DF(){return gk||(gk=1,Nd={en:uF(),ar:fF(),ca:dF(),cs:pF(),de:mF(),es:hF(),fi:gF(),fr:yF(),hu:vF(),id:bF(),it:kF(),ja:wF(),ko:SF(),nb:EF(),nl:CF(),pl:AF(),"pt-BR":_F(),ru:OF(),sk:xF(),sv:TF(),th:PF(),zh:IF(),"zh-TW":NF()}),Nd}var FF=DF();const Ho=gn(FF),ic={flex:1,paddingLeft:6,paddingRight:6};function MF(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=p.templates.ButtonTemplates;return D.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(v,{id:Or(o,"moveUp"),className:"rjsf-array-item-move-up",style:ic,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),(i||a)&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(k,{id:Or(o,"moveDown"),className:"rjsf-array-item-move-down",style:ic,disabled:t||f||!a,onClick:l,uiSchema:d,registry:p})}),r&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(h,{id:Or(o,"copy"),className:"rjsf-array-item-copy",style:ic,disabled:t||f,onClick:s,uiSchema:d,registry:p})}),n&&D.jsx("div",{className:"m-0 p-0",children:D.jsx(y,{id:Or(o,"remove"),className:"rjsf-array-item-remove",style:ic,disabled:t||f,onClick:c,uiSchema:d,registry:p})})]})}function jF(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,o=be(n),s=Ce("ArrayFieldItemButtonsTemplate",i,o);return D.jsx("div",{children:D.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[D.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&D.jsx("div",{className:"col-3 col-lg-3 py-4",children:D.jsx(s,{...r})})]})})}function LF(e){const{canAdd:t,disabled:r,fieldPathId:a,items:i,optionalDataControl:n,onAddClick:o,readonly:s,registry:c,required:l,schema:u,title:f,uiSchema:p}=e,d=be(p),h=Ce("ArrayFieldTitleTemplate",c,d),k=Ce("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!s&&!r;return D.jsx("div",{children:D.jsx("div",{className:"row p-0 m-0",children:D.jsxs("div",{className:"col p-0 m-0",children:[D.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:p,registry:c,optionalDataControl:y?n:void 0}),D.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:p,registry:c}),y?void 0:n,D.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&D.jsxs("div",{className:"row mt-2",children:[D.jsx("div",{className:"col-9"}),D.jsx("div",{className:"col-3 py-4",children:D.jsx(v,{id:Or(a,"add"),className:"rjsf-array-item-add",onClick:o,disabled:r||s,uiSchema:p,registry:c})})]})]})]})})})}const Wo={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},RF=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),qF=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),zF=()=>D.jsxs("svg",{...Wo,children:[D.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),D.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),yk=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M3.5 8h9"})}),$F=()=>D.jsx("svg",{...Wo,children:D.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Vi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...o}){return D.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...o,children:t})}function UF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.CopyButton),...e,icon:D.jsx(zF,{})})}function BF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveUpButton),...e,icon:D.jsx(RF,{})})}function VF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.MoveDownButton),...e,icon:D.jsx(qF,{})})}function HF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.RemoveButton),...e,variant:"danger",icon:D.jsx(yk,{})})}function WF(e){const{translateString:t}=e.registry;return D.jsx(Vi,{title:t(Me.ClearButton),...e,icon:D.jsx(yk,{})})}function KF({className:e,...t}){const{translateString:r}=t.registry;return D.jsx(Vi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Me.AddItemButton),icon:D.jsx($F,{})})}function GF({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Qg(e);return r?null:D.jsx("div",{children:D.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const JF={SubmitButton:GF,AddButton:KF,CopyButton:UF,MoveDownButton:VF,MoveUpButton:BF,RemoveButton:HF,ClearButton:WF};function sz(){}function lz(){}function YF(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const XF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QF={};function vk(e,t){return(QF.jsx?ZF:XF).test(e)}const eM=/[ \t\n\f\r]/g;function tM(e){return typeof e=="object"?e.type==="text"?bk(e.value):!1:bk(e)}function bk(e){return e.replace(eM,"")===""}class Ko{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}Ko.prototype.normal={},Ko.prototype.property={},Ko.prototype.space=void 0;function kk(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new Ko(r,a,t)}function Dd(e){return e.toLowerCase()}class vr{constructor(t,r){this.attribute=r,this.property=t}}vr.prototype.attribute="",vr.prototype.booleanish=!1,vr.prototype.boolean=!1,vr.prototype.commaOrSpaceSeparated=!1,vr.prototype.commaSeparated=!1,vr.prototype.defined=!1,vr.prototype.mustUseProperty=!1,vr.prototype.number=!1,vr.prototype.overloadedBoolean=!1,vr.prototype.property="",vr.prototype.spaceSeparated=!1,vr.prototype.space=void 0;let rM=0;const Pe=ni(),Ut=ni(),Fd=ni(),ue=ni(),kt=ni(),ri=ni(),Pr=ni();function ni(){return 2**++rM}const Md=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Ut,commaOrSpaceSeparated:Pr,commaSeparated:ri,number:ue,overloadedBoolean:Fd,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),jd=Object.keys(Md);class Ld extends vr{constructor(t,r,a,i){let n=-1;if(super(t,r),wk(this,"space",i),typeof a=="number")for(;++n<jd.length;){const o=jd[n];wk(this,jd[n],(a&Md[o])===Md[o])}}}Ld.prototype.defined=!0;function wk(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new Ld(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[Dd(a)]=a,r[Dd(n.attribute)]=a}return new Ko(t,r,e.space)}const Sk=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Ut,ariaAutoComplete:null,ariaBusy:Ut,ariaChecked:Ut,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Ut,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Ut,ariaFlowTo:kt,ariaGrabbed:Ut,ariaHasPopup:null,ariaHidden:Ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Ut,ariaMultiLine:Ut,ariaMultiSelectable:Ut,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Ut,ariaReadOnly:Ut,ariaRelevant:null,ariaRequired:Ut,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Ut,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ek(e,t){return t in e?e[t]:t}function Ck(e,t){return Ek(e,t.toLowerCase())}const nM=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ri,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:kt,autoFocus:Pe,autoPlay:Pe,blocking:kt,capture:null,charSet:null,checked:Pe,cite:null,className:kt,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:Ut,controls:Pe,controlsList:kt,coords:ue|ri,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:Fd,draggable:Ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:Fd,high:ue,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:kt,itemRef:kt,itemScope:Pe,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ue,pattern:null,ping:kt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:kt,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:kt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:Ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Ut,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:Ut,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:ri,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:Ck}),aM=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pr,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ri,g2:ri,glyphName:ri,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pr,rev:Pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pr,requiredFeatures:Pr,requiredFonts:Pr,requiredFormats:Pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pr,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ek}),Ak=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_k=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ck}),Ok=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iM={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},oM=/[A-Z]/g,xk=/-[a-z]/g,sM=/^data[-\w.:]+$/i;function lM(e,t){const r=Dd(t);let a=t,i=vr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&sM.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(xk,uM);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!xk.test(n)){let o=n.replace(oM,cM);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ld}return new i(a,t)}function cM(e){return"-"+e.toLowerCase()}function uM(e){return e.charAt(1).toUpperCase()}const fM=kk([Sk,nM,Ak,_k,Ok],"html"),Rd=kk([Sk,aM,Ak,_k,Ok],"svg");function dM(e){return e.join(" ").trim()}var Wi={},qd,Tk;function pM(){if(Tk)return qd;Tk=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
|
|
106
|
+
`,l="/",u="*",f="",p="comment",d="declaration";function h(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var b=1,w=1;function E(I){var j=I.match(t);j&&(b+=j.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function m(){var I={line:b,column:w};return function(j){return j.position=new g(I),x(),j}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var j=new Error(y.source+":"+b+":"+w+": "+I);if(j.reason=I,j.filename=y.source,j.line=b,j.column=w,j.source=v,!y.silent)throw j}function A(I){var j=I.exec(v);if(j){var $=j[0];return E($),v=v.slice($.length),j}}function x(){A(r)}function O(I){var j;for(I=I||[];j=C();)j!==!1&&I.push(j);return I}function C(){var I=m();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(u!=v.charAt(j)||l!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return S("End of comment missing");var $=v.slice(2,j-2);return w+=2,E($),v=v.slice(j),w+=2,I({type:p,comment:$})}}function _(){var I=m(),j=A(a);if(j){if(C(),!A(i))return S("property missing ':'");var $=A(n),Y=I({type:d,property:k(j[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return A(o),Y}}function F(){var I=[];O(I);for(var j;j=_();)j!==!1&&(I.push(j),O(I));return I}return x(),F()}function k(v){return v?v.replace(s,f):f}return qd=h,qd}var Pk;function mM(){if(Pk)return Wi;Pk=1;var e=Wi&&Wi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=r;const t=e(pM());function r(a,i){let n=null;if(!a||typeof a!="string")return n;const o=(0,t.default)(a),s=typeof i=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:u}=c;s?i(l,u,c):u&&(n=n||{},n[l]=u)}),n}return Wi}var Go={},Ik;function hM(){if(Ik)return Go;Ik=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,n=function(l){return!l||r.test(l)||e.test(l)},o=function(l,u){return u.toUpperCase()},s=function(l,u){return"".concat(u,"-")},c=function(l,u){return u===void 0&&(u={}),n(l)?l:(l=l.toLowerCase(),u.reactCompat?l=l.replace(i,s):l=l.replace(a,s),l.replace(t,o))};return Go.camelCase=c,Go}var Jo,Nk;function gM(){if(Nk)return Jo;Nk=1;var e=Jo&&Jo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(mM()),r=hM();function a(i,n){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,c){s&&c&&(o[(0,r.camelCase)(s,n)]=c)}),o}return a.default=a,Jo=a,Jo}var yM=gM();const vM=gn(yM),Dk=Fk("end"),zd=Fk("start");function Fk(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function bM(e){const t=zd(e),r=Dk(e);if(t&&r)return{start:t,end:r}}function Yo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mk(e.position):"start"in e||"end"in e?Mk(e):"line"in e||"column"in e?$d(e):""}function $d(e){return jk(e&&e.line)+":"+jk(e&&e.column)}function Mk(e){return $d(e&&e.start)+"-"+$d(e&&e.end)}function jk(e){return e&&typeof e=="number"?e:1}class ir extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let i="",n={},o=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?i=t:!n.cause&&t&&(o=!0,i=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?n.ruleId=a:(n.source=a.slice(0,c),n.ruleId=a.slice(c+1))}if(!n.place&&n.ancestors&&n.ancestors){const c=n.ancestors[n.ancestors.length-1];c&&(n.place=c.position)}const s=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Yo(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=o&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ir.prototype.file="",ir.prototype.name="",ir.prototype.reason="",ir.prototype.message="",ir.prototype.stack="",ir.prototype.column=void 0,ir.prototype.line=void 0,ir.prototype.ancestors=void 0,ir.prototype.cause=void 0,ir.prototype.fatal=void 0,ir.prototype.place=void 0,ir.prototype.ruleId=void 0,ir.prototype.source=void 0;const Ud={}.hasOwnProperty,kM=new Map,wM=/[A-Z]/g,SM=new Set(["table","tbody","thead","tfoot","tr"]),EM=new Set(["td","th"]),Lk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function CM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=NM(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=IM(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Rd:fM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Rk(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function Rk(e,t,r){if(t.type==="element")return AM(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _M(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xM(e,t,r);if(t.type==="mdxjsEsm")return OM(e,t);if(t.type==="root")return TM(e,t,r);if(t.type==="text")return PM(e,t)}function AM(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=zk(e,t.tagName,!1),o=DM(e,t);let s=Vd(e,t);return SM.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!tM(c):!0})),qk(e,o,n,t),Bd(o,s),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}function _M(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Xo(e,t.position)}function OM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xo(e,t.position)}function xM(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=Rd,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:zk(e,t.name,!0),o=FM(e,t),s=Vd(e,t);return qk(e,o,n,t),Bd(o,s),e.ancestors.pop(),e.schema=a,e.create(t,n,o,r)}function TM(e,t,r){const a={};return Bd(a,Vd(e,t)),e.create(t,e.Fragment,a,r)}function PM(e,t){return t.value}function qk(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function Bd(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function IM(e,t,r){return a;function a(i,n,o,s){const l=Array.isArray(o.children)?r:t;return s?l(n,o,s):l(n,o)}}function NM(e,t){return r;function r(a,i,n,o){const s=Array.isArray(n.children),c=zd(a);return t(i,n,o,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function DM(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&Ud.call(t.properties,i)){const n=MM(e,i,t.properties[i]);if(n){const[o,s]=n;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&EM.has(t.tagName)?a=s:r[o]=s}}if(a){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function FM(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const n=a.data.estree.body[0];n.type;const o=n.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Xo(e,t.position);else{const i=a.name;let n;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const s=a.value.data.estree.body[0];s.type,n=e.evaluater.evaluateExpression(s.expression)}else Xo(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function Vd(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:kM;for(;++a<t.children.length;){const n=t.children[a];let o;if(e.passKeys){const c=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(c){const l=i.get(c)||0;o=c+"-"+l,i.set(c,l+1)}}const s=Rk(e,n,o);s!==void 0&&r.push(s)}return r}function MM(e,t,r){const a=lM(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?YF(r):dM(r)),a.property==="style"){let i=typeof r=="object"?r:jM(e,String(r));return e.stylePropertyNameCase==="css"&&(i=LM(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?iM[a.property]||a.property:a.attribute,r]}}function jM(e,t){try{return vM(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,i=new ir("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Lk+"#cannot-parse-style-attribute",i}}function zk(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let n=-1,o;for(;++n<i.length;){const s=vk(i[n])?{type:"Identifier",name:i[n]}:{type:"Literal",value:i[n]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(n&&s.type==="Literal"),optional:!1}:s}a=o}else a=vk(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return Ud.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Xo(e)}function Xo(e,t){const r=new ir("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Lk+"#cannot-handle-mdx-estrees-without-createevaluater",r}function LM(e){const t={};let r;for(r in e)Ud.call(e,r)&&(t[RM(r)]=e[r]);return t}function RM(e){let t=e.replace(wM,qM);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qM(e){return"-"+e.toLowerCase()}const Hd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},zM={};function $M(e,t){const r=zM,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return $k(e,a,i)}function $k(e,t,r){if(UM(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Uk(e.children,t,r)}return Array.isArray(e)?Uk(e,t,r):""}function Uk(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=$k(e[i],t,r);return a.join("")}function UM(e){return!!(e&&typeof e=="object")}const Bk=document.createElement("i");function Wd(e){const t="&"+e+";";Bk.innerHTML=t;const r=Bk.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function On(e,t,r,a){const i=e.length;let n=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,a.length<1e4)o=Array.from(a),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);n<a.length;)o=a.slice(n,n+1e4),o.unshift(t,0),e.splice(...o),n+=1e4,t+=1e4}function Gr(e,t){return e.length>0?(On(e,e.length,0,t),e):t}const Vk={}.hasOwnProperty;function BM(e){const t={};let r=-1;for(;++r<e.length;)VM(t,e[r]);return t}function VM(e,t){let r;for(r in t){const i=(Vk.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let o;if(n)for(o in n){Vk.call(i,o)||(i[o]=[]);const s=n[o];HM(i[o],Array.isArray(s)?s:s?[s]:[])}}}function HM(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);On(e,0,0,a)}function Hk(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ki(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xn=Sa(/[A-Za-z]/),Ir=Sa(/[\dA-Za-z]/),WM=Sa(/[#-'*+\--9=?A-Z^-~]/);function Kd(e){return e!==null&&(e<32||e===127)}const Gd=Sa(/\d/),KM=Sa(/[\dA-Fa-f]/),GM=Sa(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function br(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const JM=Sa(new RegExp("\\p{P}|\\p{S}","u")),YM=Sa(/\s/);function Sa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Gi(e){const t=[];let r=-1,a=0,i=0;for(;++r<e.length;){const n=e.charCodeAt(r);let o="";if(n===37&&Ir(e.charCodeAt(r+1))&&Ir(e.charCodeAt(r+2)))i=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(o=String.fromCharCode(n));else if(n>55295&&n<57344){const s=e.charCodeAt(r+1);n<56320&&s>56319&&s<57344?(o=String.fromCharCode(n,s),i=1):o="�"}else o=String.fromCharCode(n);o&&(t.push(e.slice(a,r),encodeURIComponent(o)),a=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(a)}function Et(e,t,r,a){const i=a?a-1:Number.POSITIVE_INFINITY;let n=0;return o;function o(c){return ct(c)?(e.enter(r),s(c)):t(c)}function s(c){return ct(c)&&n++<i?(e.consume(c),s):(e.exit(r),t(c))}}const XM={tokenize:ZM};function ZM(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let r;return t;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),n(s)}function n(s){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Oe(s)?(e.consume(s),e.exit("chunkText"),n):(e.consume(s),o)}}const QM={tokenize:ej},Wk={tokenize:tj};function ej(e){const t=this,r=[];let a=0,i,n,o;return s;function s(w){if(a<r.length){const E=r[a];return t.containerState=E[1],e.attempt(E[0].continuation,c,l)(w)}return l(w)}function c(w){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const E=t.events.length;let m=E,g;for(;m--;)if(t.events[m][0]==="exit"&&t.events[m][1].type==="chunkFlow"){g=t.events[m][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return On(t.events,m+1,0,t.events.slice(E)),t.events.length=S,l(w)}return s(w)}function l(w){if(a===r.length){if(!i)return p(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wk,u,f)(w)}function u(w){return i&&b(),y(a),p(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,o=t.now().offset,h(w)}function p(w){return t.containerState={},e.attempt(Wk,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),p(w)}function h(w){if(w===null){i&&b(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return Oe(w)?(e.consume(w),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(w),k)}function v(w,E){const m=t.sliceStream(w);if(E&&m.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(m),t.parser.lazy[w.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<o&&(!i.events[g][1].end||i.events[g][1].end.offset>o))return;const S=t.events.length;let A=S,x,O;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(x){O=t.events[A][1].end;break}x=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={...O},g++;On(t.events,A+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const m=r[E];t.containerState=m[1],m[0].exit.call(t,e)}r.length=w}function b(){i.write([null]),n=void 0,i=void 0,t.containerState._closeFlow=void 0}}function tj(e,t,r){return Et(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Kk(e){if(e===null||br(e)||YM(e))return 1;if(JM(e))return 2}function Jd(e,t,r){const a=[];let i=-1;for(;++i<e.length;){const n=e[i].resolveAll;n&&!a.includes(n)&&(t=n(t,r),a.push(n))}return t}const Yd={name:"attention",resolveAll:rj,tokenize:nj};function rj(e,t){let r=-1,a,i,n,o,s,c,l,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[a][1].end},p={...e[r][1].start};Gk(f,-c),Gk(p,c),o={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},n={type:c>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[a][1].end={...o.start},e[r][1].start={...s.end},l=[],e[a][1].end.offset-e[a][1].start.offset&&(l=Gr(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Gr(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",n,t]]),l=Gr(l,Jd(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Gr(l,[["exit",n,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,l=Gr(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,On(e,a-1,r-a+3,l),r=a+l.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function nj(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=Kk(a);let n;return o;function o(c){return n=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===n)return e.consume(c),s;const l=e.exit("attentionSequence"),u=Kk(c),f=!u||u===2&&i||r.includes(c),p=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!p)),l._close=!!(n===42?p:p&&(u||!f)),t(c)}}function Gk(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aj={name:"autolink",tokenize:ij};function ij(e,t,r){let a=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return xn(d)?(e.consume(d),o):d===64?r(d):l(d)}function o(d){return d===43||d===45||d===46||Ir(d)?(a=1,s(d)):l(d)}function s(d){return d===58?(e.consume(d),a=0,c):(d===43||d===45||d===46||Ir(d))&&a++<32?(e.consume(d),s):(a=0,l(d))}function c(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Kd(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):WM(d)?(e.consume(d),l):r(d)}function u(d){return Ir(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),a=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Ir(d))&&a++<63){const h=d===45?p:f;return e.consume(d),h}return r(d)}}const oc={partial:!0,tokenize:oj};function oj(e,t,r){return a;function a(n){return ct(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const Jk={continuation:{tokenize:lj},exit:cj,name:"blockQuote",tokenize:sj};function sj(e,t,r){const a=this;return i;function i(o){if(o===62){const s=a.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),n}return r(o)}function n(o){return ct(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function lj(e,t,r){const a=this;return i;function i(o){return ct(o)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):n(o)}function n(o){return e.attempt(Jk,t,r)(o)}}function cj(e){e.exit("blockQuote")}const Yk={name:"characterEscape",tokenize:uj};function uj(e,t,r){return a;function a(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),i}function i(n){return GM(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Xk={name:"characterReference",tokenize:fj};function fj(e,t,r){const a=this;let i=0,n,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),n=31,o=Ir,u(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,o=KM,u):(e.enter("characterReferenceValue"),n=7,o=Gd,u(f))}function u(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return o===Ir&&!Wd(a.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<n?(e.consume(f),u):r(f)}}const Zk={partial:!0,tokenize:pj},Qk={concrete:!0,name:"codeFenced",tokenize:dj};function dj(e,t,r){const a=this,i={partial:!0,tokenize:m};let n=0,o=0,s;return c;function c(g){return l(g)}function l(g){const S=a.events[a.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,s=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(g)}function u(g){return g===s?(o++,e.consume(g),u):o<3?r(g):(e.exit("codeFencedFenceSequence"),ct(g)?Et(e,f,"whitespace")(g):f(g))}function f(g){return g===null||Oe(g)?(e.exit("codeFencedFence"),a.interrupt?t(g):e.check(Zk,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ct(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===s?r(g):(e.consume(g),p)}function d(g){return g===null||Oe(g)?f(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(g)):g===96&&g===s?r(g):(e.consume(g),h)}function k(g){return e.attempt(i,E,v)(g)}function v(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return n>0&&ct(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(Zk,k,E)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||Oe(g)?(e.exit("codeFlowValue"),b(g)):(e.consume(g),w)}function E(g){return e.exit("codeFenced"),t(g)}function m(g,S,A){let x=0;return O;function O(j){return g.enter("lineEnding"),g.consume(j),g.exit("lineEnding"),C}function C(j){return g.enter("codeFencedFence"),ct(j)?Et(g,_,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):_(j)}function _(j){return j===s?(g.enter("codeFencedFenceSequence"),F(j)):A(j)}function F(j){return j===s?(x++,g.consume(j),F):x>=o?(g.exit("codeFencedFenceSequence"),ct(j)?Et(g,I,"whitespace")(j):I(j)):A(j)}function I(j){return j===null||Oe(j)?(g.exit("codeFencedFence"),S(j)):A(j)}}}function pj(e,t,r){const a=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n)}function n(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}const Xd={name:"codeIndented",tokenize:hj},mj={partial:!0,tokenize:gj};function hj(e,t,r){const a=this;return i;function i(l){return e.enter("codeIndented"),Et(e,n,"linePrefix",5)(l)}function n(l){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(l):r(l)}function o(l){return l===null?c(l):Oe(l)?e.attempt(mj,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||Oe(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function gj(e,t,r){const a=this;return i;function i(o){return a.parser.lazy[a.now().line]?r(o):Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Et(e,n,"linePrefix",5)(o)}function n(o){const s=a.events[a.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Oe(o)?i(o):r(o)}}const yj={name:"codeText",previous:bj,resolve:vj,tokenize:kj};function vj(e){let t=e.length-4,r=3,a,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function bj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function kj(e,t,r){let a=0,i,n;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),a++,s):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(n=e.enter("codeTextSequence"),i=0,u(f)):Oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||Oe(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function u(f){return f===96?(e.consume(f),i++,u):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",l(f))}}class wj{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const i=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&Zo(this.left,a),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Zo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Zo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Zo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Zo(this.left,r.reverse())}}}function Zo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function e0(e){const t={};let r=-1,a,i,n,o,s,c,l;const u=new wj(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(a=u.get(r),r&&a[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(c=a[1]._tokenizer.events,n=0,n<c.length&&c[n][1].type==="lineEndingBlank"&&(n+=2),n<c.length&&c[n][1].type==="content"))for(;++n<c.length&&c[n][1].type!=="content";)c[n][1].type==="chunkText"&&(c[n][1]._isInFirstContentOfListItem=!0,n++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,Sj(u,r)),r=t[r],l=!0);else if(a[1]._container){for(n=r,i=void 0;n--;)if(o=u.get(n),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=n);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(a[1].end={...u.get(i)[1].start},s=u.slice(i,r),s.unshift(a),u.splice(i,r-i+1,s))}}return On(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Sj(e,t){const r=e.get(t)[1],a=e.get(t)[2];let i=t-1;const n=[];let o=r._tokenizer;o||(o=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,c=[],l={};let u,f,p=-1,d=r,h=0,k=0;const v=[k];for(;d;){for(;e.get(++i)[1]!==d;);n.push(i),d._tokenizer||(u=a.sliceStream(d),d.next||u.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(k=p+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),p=v.length;p--;){const y=s.slice(v[p],v[p+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),p=-1;++p<c.length;)l[h+c[p][0]]=h+c[p][1],h+=c[p][1]-c[p][0]-1;return l}const Ej={resolve:Aj,tokenize:_j},Cj={partial:!0,tokenize:Oj};function Aj(e){return e0(e),e}function _j(e,t){let r;return a;function a(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?n(s):Oe(s)?e.check(Cj,o,n)(s):(e.consume(s),i)}function n(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Oj(e,t,r){const a=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Et(e,n,"linePrefix")}function n(o){if(o===null||Oe(o))return r(o);const s=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(a.parser.constructs.flow,r,t)(o)}}function t0(e,t,r,a,i,n,o,s,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(a),e.enter(i),e.enter(n),e.consume(y),e.exit(n),p):y===null||y===32||y===41||Kd(y)?r(y):(e.enter(a),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(n),e.consume(y),e.exit(n),e.exit(i),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),p(y)):y===null||y===60||Oe(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function k(y){return!u&&(y===null||y===41||br(y))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(a),t(y)):u<l&&y===40?(e.consume(y),u++,k):y===41?(e.consume(y),u--,k):y===null||y===32||y===40||Kd(y)?r(y):(e.consume(y),y===92?v:k)}function v(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function r0(e,t,r,a,i,n){const o=this;let s=0,c;return l;function l(d){return e.enter(a),e.enter(i),e.consume(d),e.exit(i),e.enter(n),u}function u(d){return s>999||d===null||d===91||d===93&&!c||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(n),e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):Oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Oe(d)||s++>999?(e.exit("chunkString"),u(d)):(e.consume(d),c||(c=!ct(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function n0(e,t,r,a,i,n){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(a),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,c):r(p)}function c(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(a),t):(e.enter(n),l(p))}function l(p){return p===o?(e.exit(n),c(o)):p===null?r(p):Oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||Oe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?f:u)}function f(p){return p===o||p===92?(e.consume(p),u):u(p)}}function Qo(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ct(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const xj={name:"definition",tokenize:Pj},Tj={partial:!0,tokenize:Ij};function Pj(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),o(d)}function o(d){return r0.call(a,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):r(d)}function c(d){return br(d)?Qo(e,l)(d):l(d)}function l(d){return t0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(Tj,f,f)(d)}function f(d){return ct(d)?Et(e,p,"whitespace")(d):p(d)}function p(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function Ij(e,t,r){return a;function a(s){return br(s)?Qo(e,i)(s):r(s)}function i(s){return n0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function n(s){return ct(s)?Et(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Oe(s)?t(s):r(s)}}const Nj={name:"hardBreakEscape",tokenize:Dj};function Dj(e,t,r){return a;function a(n){return e.enter("hardBreakEscape"),e.consume(n),i}function i(n){return Oe(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Fj={name:"headingAtx",resolve:Mj,tokenize:jj};function Mj(e,t){let r=e.length-2,a=3,i,n;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},n={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},On(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function jj(e,t,r){let a=0;return i;function i(u){return e.enter("atxHeading"),n(u)}function n(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&a++<6?(e.consume(u),o):u===null||br(u)?(e.exit("atxHeadingSequence"),s(u)):r(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||Oe(u)?(e.exit("atxHeading"),t(u)):ct(u)?Et(e,s,"whitespace")(u):(e.enter("atxHeadingText"),l(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),s(u))}function l(u){return u===null||u===35||br(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),l)}}const Lj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],a0=["pre","script","style","textarea"],Rj={concrete:!0,name:"htmlFlow",resolveTo:$j,tokenize:Uj},qj={partial:!0,tokenize:Vj},zj={partial:!0,tokenize:Bj};function $j(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Uj(e,t,r){const a=this;let i,n,o,s,c;return l;function l(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),p):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):xn(T)?(e.consume(T),o=String.fromCharCode(T),v):r(T)}function p(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,s=0,h):xn(T)?(e.consume(T),i=4,a.interrupt?t:P):r(T)}function d(T){return T===45?(e.consume(T),a.interrupt?t:P):r(T)}function h(T){const N="CDATA[";return T===N.charCodeAt(s++)?(e.consume(T),s===N.length?a.interrupt?t:_:h):r(T)}function k(T){return xn(T)?(e.consume(T),o=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||br(T)){const N=T===47,L=o.toLowerCase();return!N&&!n&&a0.includes(L)?(i=1,a.interrupt?t(T):_(T)):Lj.includes(o.toLowerCase())?(i=6,N?(e.consume(T),y):a.interrupt?t(T):_(T)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(T):n?b(T):w(T))}return T===45||Ir(T)?(e.consume(T),o+=String.fromCharCode(T),v):r(T)}function y(T){return T===62?(e.consume(T),a.interrupt?t:_):r(T)}function b(T){return ct(T)?(e.consume(T),b):O(T)}function w(T){return T===47?(e.consume(T),O):T===58||T===95||xn(T)?(e.consume(T),E):ct(T)?(e.consume(T),w):O(T)}function E(T){return T===45||T===46||T===58||T===95||Ir(T)?(e.consume(T),E):m(T)}function m(T){return T===61?(e.consume(T),g):ct(T)?(e.consume(T),m):w(T)}function g(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),c=T,S):ct(T)?(e.consume(T),g):A(T)}function S(T){return T===c?(e.consume(T),c=null,x):T===null||Oe(T)?r(T):(e.consume(T),S)}function A(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||br(T)?m(T):(e.consume(T),A)}function x(T){return T===47||T===62||ct(T)?w(T):r(T)}function O(T){return T===62?(e.consume(T),C):r(T)}function C(T){return T===null||Oe(T)?_(T):ct(T)?(e.consume(T),C):r(T)}function _(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),M):T===63&&i===3?(e.consume(T),P):T===93&&i===5?(e.consume(T),ie):Oe(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(qj,U,F)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),F(T)):(e.consume(T),_)}function F(T){return e.check(zj,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return T===null||Oe(T)?F(T):(e.enter("htmlFlowData"),_(T))}function $(T){return T===45?(e.consume(T),P):_(T)}function Y(T){return T===47?(e.consume(T),o="",Z):_(T)}function Z(T){if(T===62){const N=o.toLowerCase();return a0.includes(N)?(e.consume(T),M):_(T)}return xn(T)&&o.length<8?(e.consume(T),o+=String.fromCharCode(T),Z):_(T)}function ie(T){return T===93?(e.consume(T),P):_(T)}function P(T){return T===62?(e.consume(T),M):T===45&&i===2?(e.consume(T),P):_(T)}function M(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),M)}function U(T){return e.exit("htmlFlow"),t(T)}}function Bj(e,t,r){const a=this;return i;function i(o){return Oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):r(o)}function n(o){return a.parser.lazy[a.now().line]?r(o):t(o)}}function Vj(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(oc,t,r)}}const Hj={name:"htmlText",tokenize:Wj};function Wj(e,t,r){const a=this;let i,n,o;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),c}function c(P){return P===33?(e.consume(P),l):P===47?(e.consume(P),m):P===63?(e.consume(P),w):xn(P)?(e.consume(P),A):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):xn(P)?(e.consume(P),b):r(P)}function u(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),p):Oe(P)?(o=f,Y(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?p(P):f(P)}function h(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:h):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):Oe(P)?(o=k,Y(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),y):k(P)}function y(P){return P===62?$(P):P===93?(e.consume(P),y):k(P)}function b(P){return P===null||P===62?$(P):Oe(P)?(o=b,Y(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):Oe(P)?(o=w,Y(P)):(e.consume(P),w)}function E(P){return P===62?$(P):w(P)}function m(P){return xn(P)?(e.consume(P),g):r(P)}function g(P){return P===45||Ir(P)?(e.consume(P),g):S(P)}function S(P){return Oe(P)?(o=S,Y(P)):ct(P)?(e.consume(P),S):$(P)}function A(P){return P===45||Ir(P)?(e.consume(P),A):P===47||P===62||br(P)?x(P):r(P)}function x(P){return P===47?(e.consume(P),$):P===58||P===95||xn(P)?(e.consume(P),O):Oe(P)?(o=x,Y(P)):ct(P)?(e.consume(P),x):$(P)}function O(P){return P===45||P===46||P===58||P===95||Ir(P)?(e.consume(P),O):C(P)}function C(P){return P===61?(e.consume(P),_):Oe(P)?(o=C,Y(P)):ct(P)?(e.consume(P),C):x(P)}function _(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,F):Oe(P)?(o=_,Y(P)):ct(P)?(e.consume(P),_):(e.consume(P),I)}function F(P){return P===i?(e.consume(P),i=void 0,j):P===null?r(P):Oe(P)?(o=F,Y(P)):(e.consume(P),F)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||br(P)?x(P):(e.consume(P),I)}function j(P){return P===47||P===62||br(P)?x(P):r(P)}function $(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function Y(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Z}function Z(P){return ct(P)?Et(e,ie,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return e.enter("htmlTextData"),o(P)}}const Zd={name:"labelEnd",resolveAll:Yj,resolveTo:Xj,tokenize:Zj},Kj={tokenize:Qj},Gj={tokenize:eL},Jj={tokenize:tL};function Yj(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==r.length&&On(e,0,e.length,r),e}function Xj(e,t){let r=e.length,a=0,i,n,o,s;for(;r--;)if(i=e[r][1],n){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(n=r,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(o=r);const c={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[n][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[n+a+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",c,t],["enter",l,t]],s=Gr(s,e.slice(n+1,n+a+3)),s=Gr(s,[["enter",u,t]]),s=Gr(s,Jd(t.parser.constructs.insideSpan.null,e.slice(n+a+4,o-3),t)),s=Gr(s,[["exit",u,t],e[o-2],e[o-1],["exit",l,t]]),s=Gr(s,e.slice(o+1)),s=Gr(s,[["exit",c,t]]),On(e,n,e.length,s),e}function Zj(e,t,r){const a=this;let i=a.events.length,n,o;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){n=a.events[i][1];break}return s;function s(p){return n?n._inactive?f(p):(o=a.parser.defined.includes(Ki(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),c):r(p)}function c(p){return p===40?e.attempt(Kj,u,o?u:f)(p):p===91?e.attempt(Gj,u,o?l:f)(p):o?u(p):f(p)}function l(p){return e.attempt(Jj,u,f)(p)}function u(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function Qj(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return br(f)?Qo(e,n)(f):n(f)}function n(f){return f===41?u(f):t0(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return br(f)?Qo(e,c)(f):u(f)}function s(f){return r(f)}function c(f){return f===34||f===39||f===40?n0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return br(f)?Qo(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function eL(e,t,r){const a=this;return i;function i(s){return r0.call(a,e,n,o,"reference","referenceMarker","referenceString")(s)}function n(s){return a.parser.defined.includes(Ki(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function tL(e,t,r){return a;function a(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),i}function i(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const rL={name:"labelStartImage",resolveAll:Zd.resolveAll,tokenize:nL};function nL(e,t,r){const a=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),n}function n(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}const aL={name:"labelStartLink",resolveAll:Zd.resolveAll,tokenize:iL};function iL(e,t,r){const a=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),n}function n(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(o):t(o)}}const Qd={name:"lineEnding",tokenize:oL};function oL(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const sc={name:"thematicBreak",tokenize:sL};function sL(e,t,r){let a=0,i;return n;function n(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):a>=3&&(l===null||Oe(l))?(e.exit("thematicBreak"),t(l)):r(l)}function c(l){return l===i?(e.consume(l),a++,c):(e.exit("thematicBreakSequence"),ct(l)?Et(e,s,"whitespace")(l):s(l))}}const kr={continuation:{tokenize:fL},exit:pL,name:"list",tokenize:uL},lL={partial:!0,tokenize:mL},cL={partial:!0,tokenize:dL};function uL(e,t,r){const a=this,i=a.events[a.events.length-1];let n=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(d){const h=a.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!a.containerState.marker||d===a.containerState.marker:Gd(d)){if(a.containerState.type||(a.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(sc,r,l)(d):l(d);if(!a.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return r(d)}function c(d){return Gd(d)&&++o<10?(e.consume(d),c):(!a.interrupt||o<2)&&(a.containerState.marker?d===a.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):r(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||d,e.check(oc,a.interrupt?r:u,e.attempt(lL,p,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return ct(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function fL(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(oc,i,n);function i(s){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Et(e,t,"listItemIndent",a.containerState.size+1)(s)}function n(s){return a.containerState.furtherBlankLines||!ct(s)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,o(s)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(cL,t,o)(s))}function o(s){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(kr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function dL(e,t,r){const a=this;return Et(e,i,"listItemIndent",a.containerState.size+1);function i(n){const o=a.events[a.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===a.containerState.size?t(n):r(n)}}function pL(e){e.exit(this.containerState.type)}function mL(e,t,r){const a=this;return Et(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(n){const o=a.events[a.events.length-1];return!ct(n)&&o&&o[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const i0={name:"setextUnderline",resolveTo:hL,tokenize:gL};function hL(e,t){let r=e.length,a,i,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",n?(e.splice(i,0,["enter",o,t]),e.splice(n+1,0,["exit",e[a][1],t]),e[a][1].end={...e[n][1].end}):e[a][1]=o,e.push(["exit",o,t]),e}function gL(e,t,r){const a=this;let i;return n;function n(l){let u=a.events.length,f;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){f=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),i=l,o(l)):r(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ct(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const yL={tokenize:vL};function vL(e){const t=this,r=e.attempt(oc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ej,i)),"linePrefix")));return r;function a(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const bL={resolveAll:s0()},kL=o0("string"),wL=o0("text");function o0(e){return{resolveAll:s0(e==="text"?SL:void 0),tokenize:t};function t(r){const a=this,i=this.parser.constructs[e],n=r.attempt(i,o,s);return o;function o(u){return l(u)?n(u):s(u)}function s(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),c}function c(u){return l(u)?(r.exit("data"),n(u)):(r.consume(u),c)}function l(u){if(u===null)return!0;const f=i[u];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function s0(e){return t;function t(r,a){let i=-1,n;for(;++i<=r.length;)n===void 0?r[i]&&r[i][1].type==="data"&&(n=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==n+2&&(r[n][1].end=r[i-1][1].end,r.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(r,a):r}}function SL(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],i=t.sliceStream(a);let n=i.length,o=-1,s=0,c;for(;n--;){const l=i[n];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)c=!0,s++;else if(l!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const l={type:r===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?o:a.start._bufferIndex+o,_index:a.start._index+n,line:a.end.line,column:a.end.column-s,offset:a.end.offset-s},end:{...a.end}};a.end={...l.start},a.start.offset===a.end.offset?Object.assign(a,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const EL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:xj},disable:{null:[]},document:{42:kr,43:kr,45:kr,48:kr,49:kr,50:kr,51:kr,52:kr,53:kr,54:kr,55:kr,56:kr,57:kr,62:Jk},flow:{35:Fj,42:sc,45:[i0,sc],60:Rj,61:i0,95:sc,96:Qk,126:Qk},flowInitial:{[-2]:Xd,[-1]:Xd,32:Xd},insideSpan:{null:[Yd,bL]},string:{38:Xk,92:Yk},text:{[-5]:Qd,[-4]:Qd,[-3]:Qd,33:rL,38:Xk,42:Yd,60:[aj,Hj],91:aL,92:[Nj,Yk],93:Zd,95:Yd,96:yj}},Symbol.toStringTag,{value:"Module"}));function CL(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},n=[];let o=[],s=[];const c={attempt:S(m),check:S(g),consume:b,enter:w,exit:E,interrupt:S(g,{interrupt:!0})},l={code:null,containerState:{},defineSkip:k,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(C){return o=Gr(o,C),v(),o[o.length-1]!==null?[]:(A(t,0),l.events=Jd(n,l.events,l),l.events)}function p(C,_){return _L(d(C),_)}function d(C){return AL(o,C)}function h(){const{_bufferIndex:C,_index:_,line:F,column:I,offset:j}=a;return{_bufferIndex:C,_index:_,line:F,column:I,offset:j}}function k(C){i[C.line]=C.column,O()}function v(){let C;for(;a._index<o.length;){const _=o[a._index];if(typeof _=="string")for(C=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===C&&a._bufferIndex<_.length;)y(_.charCodeAt(a._bufferIndex));else y(_)}}function y(C){u=u(C)}function b(C){Oe(C)?(a.line++,a.column=1,a.offset+=C===-3?2:1,O()):C!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===o[a._index].length&&(a._bufferIndex=-1,a._index++)),l.previous=C}function w(C,_){const F=_||{};return F.type=C,F.start=h(),l.events.push(["enter",F,l]),s.push(F),F}function E(C){const _=s.pop();return _.end=h(),l.events.push(["exit",_,l]),_}function m(C,_){A(C,_.from)}function g(C,_){_.restore()}function S(C,_){return F;function F(I,j,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):M(I);function M(B){return V;function V(K){const J=K!==null&&B[K],Q=K!==null&&B.null,q=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return U(q)(K)}}function U(B){return Y=B,Z=0,B.length===0?$:T(B[Z])}function T(B){return V;function V(K){return P=x(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(_?Object.assign(Object.create(l),_):l,c,N,L)(K)}}function N(B){return C(ie,P),j}function L(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function A(C,_){C.resolveAll&&!n.includes(C)&&n.push(C),C.resolve&&On(l.events,_,l.events.length-_,C.resolve(l.events.slice(_),l)),C.resolveTo&&(l.events=C.resolveTo(l.events,l))}function x(){const C=h(),_=l.previous,F=l.currentConstruct,I=l.events.length,j=Array.from(s);return{from:I,restore:$};function $(){a=C,l.previous=_,l.currentConstruct=F,l.events.length=I,s=j,O()}}function O(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function AL(e,t){const r=t.start._index,a=t.start._bufferIndex,i=t.end._index,n=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(a,n)];else{if(o=e.slice(r,i),a>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(a):o.shift()}n>0&&o.push(e[i].slice(0,n))}return o}function _L(e,t){let r=-1;const a=[];let i;for(;++r<e.length;){const n=e[r];let o;if(typeof n=="string")o=n;else switch(n){case-5:{o="\r";break}case-4:{o=`
|
|
107
|
+
`;break}case-3:{o=`\r
|
|
108
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(n)}i=n===-2,a.push(o)}return a.join("")}function OL(e){const a={constructs:BM([EL,...(e||{}).extensions||[]]),content:i(XM),defined:[],document:i(QM),flow:i(yL),lazy:{},string:i(kL),text:i(wL)};return a;function i(n){return o;function o(s){return CL(a,n,s)}}}function xL(e){for(;!e0(e););return e}const l0=/[\0\t\n\r]/g;function TL(){let e=1,t="",r=!0,a;return i;function i(n,o,s){const c=[];let l,u,f,p,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(o||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(l0.lastIndex=f,l=l0.exec(n),p=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(p),!l){t=n.slice(f);break}if(d===10&&f===p&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<p&&(c.push(n.slice(f,p)),e+=p-f),d){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:a=!0,e=1}f=p+1}return s&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const PL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function IL(e){return e.replace(PL,NL)}function NL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return Hk(r.slice(n?2:1),n?16:10)}return Wd(r)||e}const c0={}.hasOwnProperty;function DL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),FL(r)(xL(OL(r).document().write(TL()(e,t,!0))))}function FL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ae),autolinkProtocol:x,autolinkEmail:x,atxHeading:n(te),blockQuote:n(Q),characterEscape:x,characterReference:x,codeFenced:n(q),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:n(q,o),codeText:n(z,o),codeTextData:x,data:x,codeFlowValue:x,definition:n(W),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(pe,o),htmlFlowData:x,htmlText:n(pe,o),htmlTextData:x,image:n(ve),label:o,link:n(Ae),listItem:n(De),listItemValue:p,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:n(te),strong:n(Le),thematicBreak:n(ke)},exit:{atxHeading:c(),atxHeadingSequence:m,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:O,codeIndented:c(y),codeText:c(j),codeTextData:O,data:O,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(_),hardBreakTrailing:c(_),htmlFlow:c(F),htmlFlowData:O,htmlText:c(I),htmlTextData:O,image:c(Y),label:ie,labelText:Z,lineEnding:C,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:N,resourceDestinationString:P,resourceTitleString:M,resource:U,setextHeading:c(A),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};u0(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ee){let re={type:"root",children:[]};const ne={stack:[re],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:r},we=[];let me=-1;for(;++me<ee.length;)if(ee[me][1].type==="listOrdered"||ee[me][1].type==="listUnordered")if(ee[me][0]==="enter")we.push(me);else{const at=we.pop();me=i(ee,at,me)}for(me=-1;++me<ee.length;){const at=t[ee[me][0]];c0.call(at,ee[me][1].type)&&at[ee[me][1].type].call(Object.assign({sliceSerialize:ee[me][2].sliceSerialize},ne),ee[me][1])}if(ne.tokenStack.length>0){const at=ne.tokenStack[ne.tokenStack.length-1];(at[1]||f0).call(ne,void 0,at[0])}for(re.position={start:Ea(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Ea(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)re=t.transforms[me](re)||re;return re}function i(ee,re,ne){let we=re-1,me=-1,at=!1,Re,Ge,Ct,It;for(;++we<=ne;){const it=ee[we];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?me++:me--,It=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Re&&!It&&!me&&!Ct&&(Ct=we),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!me&&it[0]==="enter"&&it[1].type==="listItemPrefix"||me===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Re){let wt=we;for(Ge=void 0;wt--;){const ot=ee[wt];if(ot[1].type==="lineEnding"||ot[1].type==="lineEndingBlank"){if(ot[0]==="exit")continue;Ge&&(ee[Ge][1].type="lineEndingBlank",at=!0),ot[1].type="lineEnding",Ge=wt}else if(!(ot[1].type==="linePrefix"||ot[1].type==="blockQuotePrefix"||ot[1].type==="blockQuotePrefixWhitespace"||ot[1].type==="blockQuoteMarker"||ot[1].type==="listItemIndent"))break}Ct&&(!Ge||Ct<Ge)&&(Re._spread=!0),Re.end=Object.assign({},Ge?ee[Ge][1].start:it[1].end),ee.splice(Ge||we,0,["exit",Re,it[2]]),we++,ne++}if(it[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Re=wt,ee.splice(we,0,["enter",wt,it[2]]),we++,ne++,Ct=void 0,It=!0}}}return ee[re][1]._spread=at,ne}function n(ee,re){return ne;function ne(we){s.call(this,ee(we),we),re&&re.call(this,we)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ee,re,ne){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([re,ne||void 0]),ee.position={start:Ea(re.start),end:void 0}}function c(ee){return re;function re(ne){ee&&ee.call(this,ne),l.call(this,ne)}}function l(ee,re){const ne=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==ee.type&&(re?re.call(this,ee,we[0]):(we[1]||f0).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Yo({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=Ea(ee.end)}function u(){return $M(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(ee){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function d(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.lang=ee}function h(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/(\r?\n|\r)$/g,"")}function b(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function E(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function m(ee){const re=this.stack[this.stack.length-1];if(!re.depth){const ne=this.sliceSerialize(ee).length;re.depth=ne}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function S(ee){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function x(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=We(),we.position={start:Ea(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function O(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=Ea(ee.end)}function C(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=Ea(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(x.call(this,ee),O.call(this,ee))}function _(){this.data.atHardBreak=!0}function F(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function I(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function j(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function $(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Y(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(ee){const re=this.sliceSerialize(ee),ne=this.stack[this.stack.length-2];ne.label=IL(re),ne.identifier=Ki(re).toLowerCase()}function ie(){const ee=this.stack[this.stack.length-1],re=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const we=ee.children;ne.children=we}else ne.alt=re}function P(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function M(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function N(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Ki(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function L(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=Hk(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Wd(re);const me=this.stack[this.stack.length-1];me.value+=we}function V(ee){const re=this.stack.pop();re.position.end=Ea(ee.end)}function K(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){O.call(this,ee);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function z(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function ae(){return{type:"break"}}function pe(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ae(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function De(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function Le(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function ke(){return{type:"thematicBreak"}}}function Ea(e){return{line:e.line,column:e.column,offset:e.offset}}function u0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?u0(e,a):ML(e,a)}}function ML(e,t){let r;for(r in t)if(c0.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function f0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Yo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Yo({start:t.start,end:t.end})+") is still open")}function jL(e){const t=this;t.parser=r;function r(a){return DL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function LL(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function RL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
+
`}]}function qL(e,t){const r=t.value?t.value+`
|
|
110
|
+
`:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function zL(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $L(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UL(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=Gi(a.toLowerCase()),n=e.footnoteOrder.indexOf(a);let o,s=e.footnoteCounts.get(a);s===void 0?(s=0,e.footnoteOrder.push(a),o=e.footnoteOrder.length):o=n+1,s+=1,e.footnoteCounts.set(a,s);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function BL(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function VL(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function d0(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),n=i[0];n&&n.type==="text"?n.value="["+n.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=a:i.push({type:"text",value:a}),i}function HL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return d0(e,t);const i={src:Gi(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,n),e.applyData(t,n)}function WL(e,t){const r={src:Gi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function KL(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function GL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return d0(e,t);const i={href:Gi(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JL(e,t){const r={href:Gi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function YL(e,t,r){const a=e.all(t),i=r?XL(r):p0(t),n={},o=[];if(typeof t.checked=="boolean"){const u=a[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},a.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let s=-1;for(;++s<a.length;){const u=a[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
|
|
111
|
+
`}),u.type==="element"&&u.tagName==="p"&&!i?o.push(...u.children):o.push(u)}const c=a[a.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
|
112
|
+
`});const l={type:"element",tagName:"li",properties:n,children:o};return e.patch(t,l),e.applyData(t,l)}function XL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=p0(r[a])}return t}function p0(e){const t=e.spread;return t??e.children.length>1}function ZL(e,t){const r={},a=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<a.length;){const o=a[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function QL(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eR(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function tR(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rR(e,t){const r=e.all(t),a=r.shift(),i=[];if(a){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=zd(t.children[1]),c=Dk(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),i.push(o)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function nR(e,t,r){const a=r?r.children:void 0,n=(a?a.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let c=-1;const l=[];for(;++c<s;){const f=t.children[c],p={},d=o?o[c]:void 0;d&&(p.align=d);let h={type:"element",tagName:n,properties:p,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),l.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function aR(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const m0=9,h0=32;function iR(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),i=0;const n=[];for(;a;)n.push(g0(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=r.exec(t);return n.push(g0(t.slice(i),i>0,!1)),n.join("")}function g0(e,t,r){let a=0,i=e.length;if(t){let n=e.codePointAt(a);for(;n===m0||n===h0;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(i-1);for(;n===m0||n===h0;)i--,n=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function oR(e,t){const r={type:"text",value:iR(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function sR(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const lR={blockquote:LL,break:RL,code:qL,delete:zL,emphasis:$L,footnoteReference:UL,heading:BL,html:VL,imageReference:HL,image:WL,inlineCode:KL,linkReference:GL,link:JL,listItem:YL,list:ZL,paragraph:QL,root:eR,strong:tR,table:rR,tableCell:aR,tableRow:nR,text:oR,thematicBreak:sR,toml:lc,yaml:lc,definition:lc,footnoteDefinition:lc};function lc(){}const y0=-1,cc=0,es=1,uc=2,ep=3,tp=4,rp=5,np=6,v0=7,b0=8,cR=typeof self=="object"?self:globalThis,k0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new cR[e](t)},uR=(e,t)=>{const r=(i,n)=>(e.set(n,i),i),a=i=>{if(e.has(i))return e.get(i);const[n,o]=t[i];switch(n){case cc:case y0:return r(o,i);case es:{const s=r([],i);for(const c of o)s.push(a(c));return s}case uc:{const s=r({},i);for(const[c,l]of o)s[a(c)]=a(l);return s}case ep:return r(new Date(o),i);case tp:{const{source:s,flags:c}=o;return r(new RegExp(s,c),i)}case rp:{const s=r(new Map,i);for(const[c,l]of o)s.set(a(c),a(l));return s}case np:{const s=r(new Set,i);for(const c of o)s.add(a(c));return s}case v0:{const{name:s,message:c}=o;return r(k0(s,c),i)}case b0:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(k0(n,o),i)};return a},w0=e=>uR(new Map,e)(0),Ji="",{toString:fR}={},{keys:dR}=Object,ts=e=>{const t=typeof e;if(t!=="object"||!e)return[cc,t];const r=fR.call(e).slice(8,-1);switch(r){case"Array":return[es,Ji];case"Object":return[uc,Ji];case"Date":return[ep,Ji];case"RegExp":return[tp,Ji];case"Map":return[rp,Ji];case"Set":return[np,Ji];case"DataView":return[es,r]}return r.includes("Array")?[es,r]:r.includes("Error")?[v0,r]:[uc,r]},fc=([e,t])=>e===cc&&(t==="function"||t==="symbol"),pR=(e,t,r,a)=>{const i=(o,s)=>{const c=a.push(o)-1;return r.set(s,c),c},n=o=>{if(r.has(o))return r.get(o);let[s,c]=ts(o);switch(s){case cc:{let u=o;switch(c){case"bigint":s=b0,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([y0],o)}return i([s,u],o)}case es:{if(c){let p=o;return c==="DataView"?p=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(o)),i([c,[...p]],o)}const u=[],f=i([s,u],o);for(const p of o)u.push(n(p));return f}case uc:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return n(o.toJSON());const u=[],f=i([s,u],o);for(const p of dR(o))(e||!fc(ts(o[p])))&&u.push([n(p),n(o[p])]);return f}case ep:return i([s,o.toISOString()],o);case tp:{const{source:u,flags:f}=o;return i([s,{source:u,flags:f}],o)}case rp:{const u=[],f=i([s,u],o);for(const[p,d]of o)(e||!(fc(ts(p))||fc(ts(d))))&&u.push([n(p),n(d)]);return f}case np:{const u=[],f=i([s,u],o);for(const p of o)(e||!fc(ts(p)))&&u.push(n(p));return f}}const{message:l}=o;return i([s,{name:c,message:l}],o)};return n},S0=(e,{json:t,lossy:r}={})=>{const a=[];return pR(!(t||r),!!t,new Map,a)(e),a},dc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?w0(S0(e,t)):structuredClone(e):(e,t)=>w0(S0(e,t));function mR(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function hR(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gR(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||mR,a=e.options.footnoteBackLabel||hR,i=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const u=e.all(l),f=String(l.identifier).toUpperCase(),p=Gi(f.toLowerCase());let d=0;const h=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){h.length>0&&h.push({type:"text",value:" "});let b=typeof r=="string"?r:r(c,d);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(c,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...h)}else u.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(l,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...dc(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
113
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
114
|
+
`}]}}const E0=(function(e){if(e==null)return kR;if(typeof e=="function")return pc(e);if(typeof e=="object")return Array.isArray(e)?yR(e):vR(e);if(typeof e=="string")return bR(e);throw new Error("Expected function, string, or object as test")});function yR(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=E0(e[r]);return pc(a);function a(...i){let n=-1;for(;++n<t.length;)if(t[n].apply(this,i))return!0;return!1}}function vR(e){const t=e;return pc(r);function r(a){const i=a;let n;for(n in e)if(i[n]!==t[n])return!1;return!0}}function bR(e){return pc(t);function t(r){return r&&r.type===e}}function pc(e){return t;function t(r,a,i){return!!(wR(r)&&e.call(this,r,typeof a=="number"?a:void 0,i||void 0))}}function kR(){return!0}function wR(e){return e!==null&&typeof e=="object"&&"type"in e}function vz(e){return e}const C0=[],SR=!0,A0=!1,ER="skip";function CR(e,t,r,a){let i;typeof t=="function"&&typeof r!="function"?(a=r,r=t):i=t;const n=E0(i),o=a?-1:1;s(e,void 0,[])();function s(c,l,u){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=C0,h,k,v;if((!t||n(c,l,u[u.length-1]||void 0))&&(d=AR(r(c,u)),d[0]===A0))return d;if("children"in c&&c.children){const y=c;if(y.children&&d[0]!==ER)for(k=(a?y.children.length:-1)+o,v=u.concat(y);k>-1&&k<y.children.length;){const b=y.children[k];if(h=s(b,k,v)(),h[0]===A0)return h;k=typeof h[1]=="number"?h[1]:k+o}}return d}}}function AR(e){return Array.isArray(e)?e:typeof e=="number"?[SR,e]:e==null?C0:[e]}function _0(e,t,r,a){let i,n,o;typeof t=="function"&&typeof r!="function"?(n=void 0,o=t,i=r):(n=t,o=r,i=a),CR(e,n,s,i);function s(c,l){const u=l[l.length-1],f=u?u.children.indexOf(c):void 0;return o(c,f,u)}}const ap={}.hasOwnProperty,_R={};function OR(e,t){const r=t||_R,a=new Map,i=new Map,n=new Map,o={...lR,...r.handlers},s={all:l,applyData:TR,definitionById:a,footnoteById:i,footnoteCounts:n,footnoteOrder:[],handlers:o,one:c,options:r,patch:xR,wrap:IR};return _0(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?a:i,p=String(u.identifier).toUpperCase();f.has(p)||f.set(p,u)}}),s;function c(u,f){const p=u.type,d=s.handlers[p];if(ap.call(s.handlers,p)&&d)return d(s,u,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in u){const{children:k,...v}=u,y=dc(v);return y.children=s.all(u),y}return dc(u)}return(s.options.unknownHandler||PR)(s,u,f)}function l(u){const f=[];if("children"in u){const p=u.children;let d=-1;for(;++d<p.length;){const h=s.one(p[d],u);if(h){if(d&&p[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=O0(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=O0(k.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function xR(e,t){e.position&&(t.position=bM(e))}function TR(e,t){let r=t;if(e&&e.data){const a=e.data.hName,i=e.data.hChildren,n=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const o="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:o}}r.type==="element"&&n&&Object.assign(r.properties,dc(n)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function PR(e,t){const r=t.data||{},a="value"in t&&!(ap.call(r,"hProperties")||ap.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function IR(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
|
|
115
115
|
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
116
116
|
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
117
|
-
`}),r}function
|
|
118
|
-
`},i),n}function P2(e,t){return e&&"run"in e?async function(r,a){const i=O0(r,{file:a,...t});await e.run(i,a)}:function(r,a){return O0(r,{file:a,...e||t})}}function x0(e){if(e)throw e}var ip,T0;function I2(){if(T0)return ip;T0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},n=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var u=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!f)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},s=function(l,u){r&&u.name==="__proto__"?r(l,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):l[u.name]=u.newValue},o=function(l,u){if(u==="__proto__")if(e.call(l,u)){if(a)return a(l,u).value}else return;return l[u]};return ip=function c(){var l,u,f,p,d,h,k=arguments[0],v=1,y=arguments.length,b=!1;for(typeof k=="boolean"&&(b=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<y;++v)if(l=arguments[v],l!=null)for(u in l)f=o(k,u),p=o(l,u),k!==p&&(b&&p&&(n(p)||(d=i(p)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},s(k,{name:u,newValue:c(b,h,p)})):typeof p<"u"&&s(k,{name:u,newValue:p}));return k},ip}var N2=I2();const sp=gn(N2);function op(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function D2(){const e=[],t={run:r,use:a};return t;function r(...i){let n=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(c,...l){const u=e[++n];let f=-1;if(c){s(c);return}for(;++f<i.length;)(l[f]===null||l[f]===void 0)&&(l[f]=i[f]);i=l,u?F2(u,o)(...l):s(null,...l)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function F2(e,t){let r;return a;function a(...s){const o=e.length>s.length;let c;o&&s.push(i);try{c=e.apply(this,s)}catch(l){const u=l;if(o&&r)throw u;return i(u)}o||(c&&c.then&&typeof c.then=="function"?c.then(n,i):c instanceof Error?i(c):n(c))}function i(s,...o){r||(r=!0,t(s,...o))}function n(s){i(null,s)}}const Tn={basename:M2,dirname:j2,extname:L2,join:R2,sep:"/"};function M2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');to(e);let r=0,a=-1,i=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(a=i):(o=-1,a=s));return r===a?a=s:a<0&&(a=e.length),e.slice(r,a)}function j2(e){if(to(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function L2(e){to(e);let t=e.length,r=-1,a=0,i=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){a=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:n!==1&&(n=1):i>-1&&(n=-1)}return i<0||r<0||n===0||n===1&&i===r-1&&i===a+1?"":e.slice(i,r)}function R2(...e){let t=-1,r;for(;++t<e.length;)to(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":q2(r)}function q2(e){to(e);const t=e.codePointAt(0)===47;let r=z2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function z2(e,t){let r="",a=0,i=-1,n=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||n===1))if(i!==s-1&&n===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf("/")),i=s,n=0;continue}}else if(r.length>0){r="",a=0,i=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),a=s-i-1;i=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function to(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $2={cwd:U2};function U2(){return"/"}function lp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function B2(e){if(typeof e=="string")e=new URL(e);else if(!lp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return V2(e)}function V2(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const cp=["history","path","basename","stem","extname","dirname"];class P0{constructor(t){let r;t?lp(t)?r={path:t}:typeof t=="string"||H2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<cp.length;){const n=cp[a];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let i;for(i in r)cp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(t){fp(t,"basename"),up(t,"basename"),this.path=Tn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(t){I0(this.basename,"dirname"),this.path=Tn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(t){if(up(t,"extname"),I0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lp(t)&&(t=B2(t)),fp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(t){fp(t,"stem"),up(t,"stem"),this.path=Tn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const i=this.message(t,r,a);throw i.fatal=!0,i}info(t,r,a){const i=this.message(t,r,a);return i.fatal=void 0,i}message(t,r,a){const i=new ir(t,r,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function up(e,t){if(e&&e.includes(Tn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tn.sep+"`")}function fp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function I0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function H2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const W2=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),K2={}.hasOwnProperty;class dp extends W2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=D2()}copy(){const t=new dp;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(sp(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hp("data",this.frozen),this.namespace[t]=r,this):K2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=r.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=mc(t),a=this.parser||this.Parser;return pp("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),pp("process",this.parser||this.Parser),mp("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,s){const o=mc(t),c=a.parse(o);a.run(c,o,function(u,f,p){if(u||!f||!p)return l(u);const d=f,h=a.stringify(d,p);Y2(h)?p.value=h:p.result=h,l(u,p)});function l(u,f){u||!f?s(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),pp("processSync",this.parser||this.Parser),mp("processSync",this.compiler||this.Compiler),this.process(t,i),D0("processSync","process",r),a;function i(n,s){r=!0,x0(n),a=s}}run(t,r,a){N0(t),this.freeze();const i=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?n(void 0,a):new Promise(n);function n(s,o){const c=mc(r);i.run(t,c,l);function l(u,f,p){const d=f||t;u?o(u):s?s(d):a(void 0,d,p)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),D0("runSync","run",a),i;function n(s,o){x0(s),i=o,a=!0}}stringify(t,r){this.freeze();const a=mc(r),i=this.compiler||this.Compiler;return mp("stringify",i),N0(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(hp("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[u,...f]=l;c(u,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=sp(!0,i.settings,l.settings))}function o(l){let u=-1;if(l!=null)if(Array.isArray(l))for(;++u<l.length;){const f=l[u];n(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,u){let f=-1,p=-1;for(;++f<a.length;)if(a[f][0]===l){p=f;break}if(p===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[p][1];op(k)&&op(d)&&(d=sp(!0,k,d)),a[p]=[l,d,...h]}}}}const G2=new dp().freeze();function pp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function N0(e){if(!op(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function D0(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mc(e){return J2(e)?e:new P0(e)}function J2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Y2(e){return typeof e=="string"||X2(e)}function X2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Z2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",F0=[],M0={allowDangerousHtml:!0},Q2=/^(https?|ircs?|mailto|xmpp)$/i,eR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tR(e){const t=rR(e),r=nR(e);return aR(t.runSync(t.parse(r),r),e)}function rR(e){const t=e.rehypePlugins||F0,r=e.remarkPlugins||F0,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...M0}:M0;return G2().use(FL).use(r).use(P2,a).use(t)}function nR(e){const t=e.children||"",r=new P0;return typeof t=="string"&&(r.value=t),r}function aR(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||iR;for(const u of eR)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+Z2+u.id,void 0);return A0(e,l),SM(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(u,f,p){if(u.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in Hd)if(Object.hasOwn(Hd,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=Hd[d];(k===null||k.includes(u.tagName))&&(u.properties[d]=c(String(h||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):n?n.includes(u.tagName):!1;if(!d&&a&&typeof f=="number"&&(d=!a(u,f,p)),d&&p&&typeof f=="number")return o&&u.children?p.children.splice(f,1,...u.children):p.children.splice(f,1),f}}}function iR(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||a!==-1&&t>a||Q2.test(e.slice(0,t))?e:""}const sR=tR,oR=e=>D.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function dn(e){const t=e.components||{};return t.a||(t.a=oR),D.jsx(sR,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function lR({id:e,description:t}){return t?D.jsx("div",{children:D.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?D.jsx(dn,{children:t}):t})}):null}function cR({errors:e=[],fieldPathId:t}){return e.length===0?null:D.jsx("ul",{className:"list-group",id:of(t),children:e.filter(Boolean).map((r,a)=>D.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:D.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?D.jsx(dn,{children:r}):r})},`${r}-${a}`))})}function uR({fieldPathId:e,help:t,hasErrors:r}){return t?D.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:cf(e),children:t}):null}const j0=({content:e})=>{const t=H.useMemo(()=>jc(e),[e]);return D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function fR(e){var y,b;const{id:t,children:r,displayLabel:a,rawErrors:i=[],errors:n,help:s,rawDescription:o,hidden:c,label:l,required:u,schema:f,uiSchema:p,registry:d}=e,h=be(p),k=Ce("WrapIfAdditionalTemplate",d,h);if(c)return D.jsx("div",{className:"hidden",children:r});const v=i.length>0;return D.jsxs(D.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&D.jsx(j0,{content:f.rawHtml.before}),D.jsx(k,{...e,children:D.jsxs("div",{className:"form-group",children:[a&&D.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[D.jsx(dn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&o&&D.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:D.jsx(dn,{children:o})}),n,s]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&D.jsx(j0,{content:f.rawHtml.after})]})}function dR(e){const{description:t,disabled:r,formData:a,fieldPathId:i,onAddProperty:n,optionalDataControl:s,properties:o,readonly:c,registry:l,required:u,schema:f,title:p,uiSchema:d}=e,h=be(d),k=Ce("TitleFieldTemplate",l,h),v=Ce("DescriptionFieldTemplate",l,h),{AddButton:y}=l.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!c&&!r;return D.jsxs(D.Fragment,{children:[p&&D.jsx(k,{id:Go(i),title:p,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?s:void 0}),t&&D.jsx(v,{id:la(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:s,D.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>D.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:D.jsx("div",{className:"col-12",children:E.content})},E.name)),Tm(f,d,a)&&D.jsx("div",{className:"row",children:D.jsx("div",{className:"col-3 py-4",children:D.jsx(y,{id:xr(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function pR({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=be(r);return D.jsxs("div",{id:e,className:"my-1",children:[D.jsx("h5",{children:D.jsx(dn,{children:i.title||t})}),D.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function mR(e){const{id:t,classNames:r,style:a,disabled:i,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:c,required:l,schema:u,hideError:f,rawErrors:p,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=Xn in u,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const m=E.filter(Boolean).join(" ").trim();if(!w)return D.jsx("div",{className:m,style:a,children:d});const g=`${t}-key`;return D.jsx("div",{className:m,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col",children:D.jsxs("div",{className:"form-group",children:[D.jsx("label",{className:"form-label",htmlFor:g,children:y(Me.KeyLabel,[n])}),D.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:s})]})}),D.jsx("div",{className:"col",children:d}),D.jsx("div",{className:"col-auto py-4",children:D.jsx(b,{disabled:i||c,onClick:o,uiSchema:h,registry:k})})]})})}const hR=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:DF,ArrayFieldItemTemplate:FF,ArrayFieldTemplate:MF,ButtonTemplates:KF,DescriptionFieldTemplate:lR,FieldErrorTemplate:cR,FieldHelpTemplate:uR,FieldTemplate:fR,ObjectFieldTemplate:dR,TitleFieldTemplate:pR,WrapIfAdditionalTemplate:mR},Symbol.toStringTag,{value:"Module"}));function gR({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:s,label:o,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d}){const h=Ce("DescriptionFieldTemplate",d,r),k=Ns(e),v=H.useCallback(g=>p(g.target.checked),[p]),y=H.useCallback(g=>u(a,g.target.checked),[u,a]),b=H.useCallback(g=>f(a,g.target.checked),[f,a]),m=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!c&&m&&D.jsx(h,{id:la(a),description:m,schema:e,uiSchema:t,registry:d}),D.jsxs("div",{className:"form-check",children:[D.jsx("input",{type:"checkbox",className:"form-check-input",id:a,name:a,checked:typeof i>"u"?!1:i,required:k,disabled:n||s,autoFocus:l,onChange:v,onBlur:y,onFocus:b,"aria-describedby":rn(a)}),!c&&!!o&&D.jsx("label",{className:"form-check-label",htmlFor:a,children:D.jsx(dn,{components:{p:"span"},children:o})})]})]})}function yR({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,required:s,onChange:o,onBlur:c,onFocus:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=Is(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=H.useCallback(({target:b})=>l(e,tn(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return D.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=Jo(e,w),S=A=>{A.target.checked?o(Kg(w,k,f)):o(Hg(w,k,f))};return D.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[D.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:Ps(b.value,w,h),required:s,disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("label",{className:"custom-control-label",htmlFor:g,children:D.jsx(dn,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function vR({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:s,onFocus:o,onChange:c,id:l}){const{enumOptions:u,enumDisabled:f,inline:p,emptyValue:d}=e,h=Is(e),k=H.useCallback(({target:y})=>s(l,tn(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]),v=H.useCallback(({target:y})=>o(l,tn(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]);return D.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ti(y.value,t),E=Array.isArray(f)&&f.includes(y.value),m=Jo(l,b);return D.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[D.jsx("input",{type:"radio",className:"form-check-input",id:m,name:l,checked:w,value:Ps(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":rn(l)}),D.jsx("label",{className:"form-check-label",htmlFor:m,children:D.jsx(dn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const bR=5;function kR({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:s,autofocus:o=!1,onChange:c,onBlur:l,onFocus:u}){const f=H.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),p=H.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=H.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return D.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||bR,onChange:f,onBlur:p,onFocus:d,"aria-describedby":rn(e)})}const L0={templates:hR,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:gR,CheckboxesWidget:yR,RadioWidget:vR,TextareaWidget:kR},Symbol.toStringTag,{value:"Module"}))},wR=e=>e==="{}"?`{
|
|
117
|
+
`}),r}function O0(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function x0(e,t){const r=OR(e,t),a=r.one(e,void 0),i=gR(r),n=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&n.children.push({type:"text",value:`
|
|
118
|
+
`},i),n}function NR(e,t){return e&&"run"in e?async function(r,a){const i=x0(r,{file:a,...t});await e.run(i,a)}:function(r,a){return x0(r,{file:a,...e||t})}}function T0(e){if(e)throw e}var ip,P0;function DR(){if(P0)return ip;P0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},n=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var u=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!f)return!1;var p;for(p in l);return typeof p>"u"||e.call(l,p)},o=function(l,u){r&&u.name==="__proto__"?r(l,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):l[u.name]=u.newValue},s=function(l,u){if(u==="__proto__")if(e.call(l,u)){if(a)return a(l,u).value}else return;return l[u]};return ip=function c(){var l,u,f,p,d,h,k=arguments[0],v=1,y=arguments.length,b=!1;for(typeof k=="boolean"&&(b=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<y;++v)if(l=arguments[v],l!=null)for(u in l)f=s(k,u),p=s(l,u),k!==p&&(b&&p&&(n(p)||(d=i(p)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},o(k,{name:u,newValue:c(b,h,p)})):typeof p<"u"&&o(k,{name:u,newValue:p}));return k},ip}var FR=DR();const op=gn(FR);function sp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function MR(){const e=[],t={run:r,use:a};return t;function r(...i){let n=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(c,...l){const u=e[++n];let f=-1;if(c){o(c);return}for(;++f<i.length;)(l[f]===null||l[f]===void 0)&&(l[f]=i[f]);i=l,u?jR(u,s)(...l):o(null,...l)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function jR(e,t){let r;return a;function a(...o){const s=e.length>o.length;let c;s&&o.push(i);try{c=e.apply(this,o)}catch(l){const u=l;if(s&&r)throw u;return i(u)}s||(c&&c.then&&typeof c.then=="function"?c.then(n,i):c instanceof Error?i(c):n(c))}function i(o,...s){r||(r=!0,t(o,...s))}function n(o){i(null,o)}}const Tn={basename:LR,dirname:RR,extname:qR,join:zR,sep:"/"};function LR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');rs(e);let r=0,a=-1,i=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));return r===a?a=o:a<0&&(a=e.length),e.slice(r,a)}function RR(e){if(rs(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qR(e){rs(e);let t=e.length,r=-1,a=0,i=-1,n=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){a=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:n!==1&&(n=1):i>-1&&(n=-1)}return i<0||r<0||n===0||n===1&&i===r-1&&i===a+1?"":e.slice(i,r)}function zR(...e){let t=-1,r;for(;++t<e.length;)rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":$R(r)}function $R(e){rs(e);const t=e.codePointAt(0)===47;let r=UR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function UR(e,t){let r="",a=0,i=-1,n=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||n===1))if(i!==o-1&&n===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf("/")),i=o,n=0;continue}}else if(r.length>0){r="",a=0,i=o,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),a=o-i-1;i=o,n=0}else s===46&&n>-1?n++:n=-1}return r}function rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BR={cwd:VR};function VR(){return"/"}function lp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function HR(e){if(typeof e=="string")e=new URL(e);else if(!lp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return WR(e)}function WR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const cp=["history","path","basename","stem","extname","dirname"];class I0{constructor(t){let r;t?lp(t)?r={path:t}:typeof t=="string"||KR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":BR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<cp.length;){const n=cp[a];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let i;for(i in r)cp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Tn.basename(this.path):void 0}set basename(t){fp(t,"basename"),up(t,"basename"),this.path=Tn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Tn.dirname(this.path):void 0}set dirname(t){N0(this.basename,"dirname"),this.path=Tn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Tn.extname(this.path):void 0}set extname(t){if(up(t,"extname"),N0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Tn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lp(t)&&(t=HR(t)),fp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Tn.basename(this.path,this.extname):void 0}set stem(t){fp(t,"stem"),up(t,"stem"),this.path=Tn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const i=this.message(t,r,a);throw i.fatal=!0,i}info(t,r,a){const i=this.message(t,r,a);return i.fatal=void 0,i}message(t,r,a){const i=new ir(t,r,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function up(e,t){if(e&&e.includes(Tn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Tn.sep+"`")}function fp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function N0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function KR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GR=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),JR={}.hasOwnProperty;class dp extends GR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=MR()}copy(){const t=new dp;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(op(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hp("data",this.frozen),this.namespace[t]=r,this):JR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=r.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=mc(t),a=this.parser||this.Parser;return pp("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),pp("process",this.parser||this.Parser),mp("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,o){const s=mc(t),c=a.parse(s);a.run(c,s,function(u,f,p){if(u||!f||!p)return l(u);const d=f,h=a.stringify(d,p);ZR(h)?p.value=h:p.result=h,l(u,p)});function l(u,f){u||!f?o(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),pp("processSync",this.parser||this.Parser),mp("processSync",this.compiler||this.Compiler),this.process(t,i),F0("processSync","process",r),a;function i(n,o){r=!0,T0(n),a=o}}run(t,r,a){D0(t),this.freeze();const i=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?n(void 0,a):new Promise(n);function n(o,s){const c=mc(r);i.run(t,c,l);function l(u,f,p){const d=f||t;u?s(u):o?o(d):a(void 0,d,p)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),F0("runSync","run",a),i;function n(o,s){T0(o),i=s,a=!0}}stringify(t,r){this.freeze();const a=mc(r),i=this.compiler||this.Compiler;return mp("stringify",i),D0(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(hp("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[u,...f]=l;c(u,f)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=op(!0,i.settings,l.settings))}function s(l){let u=-1;if(l!=null)if(Array.isArray(l))for(;++u<l.length;){const f=l[u];n(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,u){let f=-1,p=-1;for(;++f<a.length;)if(a[f][0]===l){p=f;break}if(p===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[p][1];sp(k)&&sp(d)&&(d=op(!0,k,d)),a[p]=[l,d,...h]}}}}const YR=new dp().freeze();function pp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function hp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function D0(e){if(!sp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function F0(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function mc(e){return XR(e)?e:new I0(e)}function XR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ZR(e){return typeof e=="string"||QR(e)}function QR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const e2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",M0=[],j0={allowDangerousHtml:!0},t2=/^(https?|ircs?|mailto|xmpp)$/i,r2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function n2(e){const t=a2(e),r=i2(e);return o2(t.runSync(t.parse(r),r),e)}function a2(e){const t=e.rehypePlugins||M0,r=e.remarkPlugins||M0,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...j0}:j0;return YR().use(jL).use(r).use(NR,a).use(t)}function i2(e){const t=e.children||"",r=new I0;return typeof t=="string"&&(r.value=t),r}function o2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||s2;for(const u of r2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+e2+u.id,void 0);return _0(e,l),CM(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function l(u,f,p){if(u.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in Hd)if(Object.hasOwn(Hd,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=Hd[d];(k===null||k.includes(u.tagName))&&(u.properties[d]=c(String(h||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):n?n.includes(u.tagName):!1;if(!d&&a&&typeof f=="number"&&(d=!a(u,f,p)),d&&p&&typeof f=="number")return s&&u.children?p.children.splice(f,1,...u.children):p.children.splice(f,1),f}}}function s2(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||a!==-1&&t>a||t2.test(e.slice(0,t))?e:""}const l2=n2,c2=e=>D.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function dn(e){const t=e.components||{};return t.a||(t.a=c2),D.jsx(l2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function u2({id:e,description:t}){return t?D.jsx("div",{children:D.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?D.jsx(dn,{children:t}):t})}):null}function f2({errors:e=[],fieldPathId:t}){return e.length===0?null:D.jsx("ul",{className:"list-group",id:sf(t),children:e.filter(Boolean).map((r,a)=>D.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:D.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?D.jsx(dn,{children:r}):r})},`${r}-${a}`))})}function d2({fieldPathId:e,help:t,hasErrors:r}){return t?D.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:cf(e),children:t}):null}const L0=({content:e})=>{const t=H.useMemo(()=>jc(e),[e]);return D.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function p2(e){var y,b;const{id:t,children:r,displayLabel:a,rawErrors:i=[],errors:n,help:o,rawDescription:s,hidden:c,label:l,required:u,schema:f,uiSchema:p,registry:d}=e,h=be(p),k=Ce("WrapIfAdditionalTemplate",d,h);if(c)return D.jsx("div",{className:"hidden",children:r});const v=i.length>0;return D.jsxs(D.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&D.jsx(L0,{content:f.rawHtml.before}),D.jsx(k,{...e,children:D.jsxs("div",{className:"form-group",children:[a&&D.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[D.jsx(dn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&s&&D.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:D.jsx(dn,{children:s})}),n,o]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&D.jsx(L0,{content:f.rawHtml.after})]})}function m2(e){const{description:t,disabled:r,formData:a,fieldPathId:i,onAddProperty:n,optionalDataControl:o,properties:s,readonly:c,registry:l,required:u,schema:f,title:p,uiSchema:d}=e,h=be(d),k=Ce("TitleFieldTemplate",l,h),v=Ce("DescriptionFieldTemplate",l,h),{AddButton:y}=l.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&s.length===0)return null;const w=!c&&!r;return D.jsxs(D.Fragment,{children:[p&&D.jsx(k,{id:Gs(i),title:p,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?o:void 0}),t&&D.jsx(v,{id:la(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:o,D.jsxs("div",{className:"container-fluid p-0",children:[s.map(E=>D.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:D.jsx("div",{className:"col-12",children:E.content})},E.name)),Pm(f,d,a)&&D.jsx("div",{className:"row",children:D.jsx("div",{className:"col-3 py-4",children:D.jsx(y,{id:Or(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function h2({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=be(r);return D.jsxs("div",{id:e,className:"my-1",children:[D.jsx("h5",{children:D.jsx(dn,{children:i.title||t})}),D.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function g2(e){const{id:t,classNames:r,style:a,disabled:i,label:n,onKeyRenameBlur:o,onRemoveProperty:s,readonly:c,required:l,schema:u,hideError:f,rawErrors:p,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=Xn in u,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const m=E.filter(Boolean).join(" ").trim();if(!w)return D.jsx("div",{className:m,style:a,children:d});const g=`${t}-key`;return D.jsx("div",{className:m,style:a,children:D.jsxs("div",{className:"row",children:[D.jsx("div",{className:"col",children:D.jsxs("div",{className:"form-group",children:[D.jsx("label",{className:"form-label",htmlFor:g,children:y(Me.KeyLabel,[n])}),D.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:o})]})}),D.jsx("div",{className:"col",children:d}),D.jsx("div",{className:"col-auto py-4",children:D.jsx(b,{disabled:i||c,onClick:s,uiSchema:h,registry:k})})]})})}const y2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:MF,ArrayFieldItemTemplate:jF,ArrayFieldTemplate:LF,ButtonTemplates:JF,DescriptionFieldTemplate:u2,FieldErrorTemplate:f2,FieldHelpTemplate:d2,FieldTemplate:p2,ObjectFieldTemplate:m2,TitleFieldTemplate:h2,WrapIfAdditionalTemplate:g2},Symbol.toStringTag,{value:"Module"}));function v2({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:o,label:s,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:p,registry:d}){const h=Ce("DescriptionFieldTemplate",d,r),k=Do(e),v=H.useCallback(g=>p(g.target.checked),[p]),y=H.useCallback(g=>u(a,g.target.checked),[u,a]),b=H.useCallback(g=>f(a,g.target.checked),[f,a]),m=be(t).widget==="checkbox"?void 0:r.description??e.description;return D.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`.trim(),children:[!c&&m&&D.jsx(h,{id:la(a),description:m,schema:e,uiSchema:t,registry:d}),D.jsxs("div",{className:"form-check",children:[D.jsx("input",{type:"checkbox",className:"form-check-input",id:a,name:a,checked:typeof i>"u"?!1:i,required:k,disabled:n||o,autoFocus:l,onChange:v,onBlur:y,onFocus:b,"aria-describedby":rn(a)}),!c&&!!s&&D.jsx("label",{className:"form-check-label",htmlFor:a,children:D.jsx(dn,{components:{p:"span"},children:s})})]})]})}function b2({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,required:o,onChange:s,onBlur:c,onFocus:l}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=No(r),k=Array.isArray(a)?a:[a],v=H.useCallback(({target:b})=>c(e,tn(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=H.useCallback(({target:b})=>l(e,tn(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return D.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ti(b.value,k),m=Array.isArray(p)&&p.includes(b.value),g=Js(e,w),S=A=>{A.target.checked?s(Gg(w,k,f)):s(Wg(w,k,f))};return D.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[D.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:Io(b.value,w,h),required:o,disabled:t||m||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":rn(e)}),D.jsx("label",{className:"custom-control-label",htmlFor:g,children:D.jsx(dn,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function k2({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:o,onFocus:s,onChange:c,id:l}){const{enumOptions:u,enumDisabled:f,inline:p,emptyValue:d}=e,h=No(e),k=H.useCallback(({target:y})=>o(l,tn(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]),v=H.useCallback(({target:y})=>s(l,tn(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]);return D.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ti(y.value,t),E=Array.isArray(f)&&f.includes(y.value),m=Js(l,b);return D.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[D.jsx("input",{type:"radio",className:"form-check-input",id:m,name:l,checked:w,value:Io(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":rn(l)}),D.jsx("label",{className:"form-check-label",htmlFor:m,children:D.jsx(dn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const w2=5;function S2({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:o,autofocus:s=!1,onChange:c,onBlur:l,onFocus:u}){const f=H.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),p=H.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=H.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return D.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:o,autoFocus:s,rows:t.rows||w2,onChange:f,onBlur:p,onFocus:d,"aria-describedby":rn(e)})}const R0={templates:y2,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:v2,CheckboxesWidget:b2,RadioWidget:k2,TextareaWidget:S2},Symbol.toStringTag,{value:"Module"}))},E2=e=>e==="{}"?`{
|
|
119
119
|
|
|
120
|
-
}`:e,
|
|
121
|
-
`).length,value:y,className:hi(["form-control","textarea"]),onChange:d,onKeyDown:h,onFocus:v,onBlur:k,readOnly:c,disabled:l}),D.jsx("div",{className:"shadow",children:f})]}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:
|
|
122
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
120
|
+
}`:e,C2=e=>{const{onChange:t,onBlur:r,onFocus:a,fieldPathId:i,schema:{title:n,description:o},formData:s,readonly:c,disabled:l}=e,u=H.useRef(null),[f,p]=H.useState(E2(JSON.stringify(s||{},null,2))),d=H.useCallback(b=>{p(b.target.value)},[t]),h=H.useCallback(function(b){u.current&&b.key=="Tab"&&b.preventDefault()},[]),k=H.useCallback(()=>{try{const b=JSON.parse(f);t(b,i.path),r(i.$id,b)}catch{t(null,i.path,{__errors:["Invalid JSON"]}),r(i.$id,null)}},[f,r,t,i]),v=H.useCallback(b=>{a(i.$id,b.target.value)},[a,i]),y=f||JSON.stringify(s,null,2)||"{}";return D.jsxs("div",{className:"form-group",children:[n&&D.jsx("label",{className:"form-label",htmlFor:i.$id,children:n}),D.jsxs("div",{className:"wrapper",children:[D.jsx("textarea",{id:i.$id,ref:u,rows:y.split(`
|
|
121
|
+
`).length,value:y,className:hi(["form-control","textarea"]),onChange:d,onKeyDown:h,onFocus:v,onBlur:k,readOnly:c,disabled:l}),D.jsx("div",{className:"shadow",children:f})]}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:o})})]})},A2=e=>{const{fieldPathId:t,onChange:r,schema:{title:a,description:i},disabled:n}=e;return D.jsxs("div",{className:"form-group",children:[D.jsx("div",{className:"wrapper",children:D.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:a})}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:i})})]})};function q0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function _2(e){if(Array.isArray(e))return e}function O2(e,t,r){return(t=F2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,n,o,s=[],c=!0,l=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(c=(a=n.call(r)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function T2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
122
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a)}return r}function $0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z0(Object(r),!0).forEach(function(a){O2(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function P2(e,t){if(e==null)return{};var r,a,i=I2(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function I2(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function N2(e,t){return _2(e)||x2(e,t)||M2(e,t)||T2()}function D2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2(e){var t=D2(e,"string");return typeof t=="symbol"?t:t+""}function M2(e,t){if(e){if(typeof e=="string")return q0(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?q0(e,t):void 0}}function j2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a)}return r}function B0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U0(Object(r),!0).forEach(function(a){j2(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U0(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function L2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(a){return t.reduceRight(function(i,n){return n(i)},a)}}function ns(e){return function t(){for(var r=this,a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return t.apply(r,[].concat(i,s))}}}function hc(e){return{}.toString.call(e).includes("Object")}function R2(e){return!Object.keys(e).length}function as(e){return typeof e=="function"}function q2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z2(e,t){return hc(t)||Ca("changeType"),Object.keys(t).some(function(r){return!q2(e,r)})&&Ca("changeField"),t}function $2(e){as(e)||Ca("selectorType")}function U2(e){as(e)||hc(e)||Ca("handlerType"),hc(e)&&Object.values(e).some(function(t){return!as(t)})&&Ca("handlersType")}function B2(e){e||Ca("initialIsRequired"),hc(e)||Ca("initialType"),R2(e)&&Ca("initialContent")}function V2(e,t){throw new Error(e[t]||e.default)}var H2={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Ca=ns(V2)(H2),gc={changes:z2,selector:$2,handler:U2,initial:B2};function W2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gc.initial(e),gc.handler(t);var r={current:e},a=ns(J2)(r,t),i=ns(G2)(r),n=ns(gc.changes)(e),o=ns(K2)(r);function s(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return gc.selector(l),l(r.current)}function c(l){L2(a,i,n,o)(l)}return[s,c]}function K2(e,t){return as(t)?t(e.current):t}function G2(e,t){return e.current=B0(B0({},e.current),t),t}function J2(e,t,r){return as(t)?t(e.current):Object.keys(r).forEach(function(a){var i;return(i=t[a])===null||i===void 0?void 0:i.call(t,e.current[a])}),r}var Y2={create:W2},X2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Z2(e){return function t(){for(var r=this,a=arguments.length,i=new Array(a),n=0;n<a;n++)i[n]=arguments[n];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return t.apply(r,[].concat(i,s))}}}function Q2(e){return{}.toString.call(e).includes("Object")}function eq(e){return e||H0("configIsRequired"),Q2(e)||H0("configType"),e.urls?(tq(),{paths:{vs:e.urls.monacoBase}}):e}function tq(){console.warn(V0.deprecation)}function rq(e,t){throw new Error(e[t]||e.default)}var V0={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
123
123
|
You are using deprecated way of configuration.
|
|
124
124
|
|
|
125
125
|
Instead of using
|
|
@@ -128,5 +128,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
128
128
|
monaco.config({ paths: { vs: '...' } })
|
|
129
129
|
|
|
130
130
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
131
|
-
`},V0=YR(eq)(B0),tq={config:ZR},rq=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(i){return r.reduceRight(function(n,s){return s(n)},i)}};function H0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],H0(e[r],t[r]))}),z0(z0({},e),t)}var nq={type:"cancelation",msg:"operation is manually canceled"};function gp(e){var t=!1,r=new Promise(function(a,i){e.then(function(n){return t?i(nq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var aq=["monaco"],iq=GR.create({config:JR,isInitialized:!1,resolve:null,reject:null,monaco:null}),W0=PR(iq,2),ao=W0[0],yc=W0[1];function sq(e){var t=tq.config(e),r=t.monaco,a=xR(t,aq);yc(function(i){return{config:H0(i.config,a),monaco:r}})}function oq(){var e=ao(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(yc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),gp(yp);if(window.monaco&&window.monaco.editor)return K0(window.monaco),e.resolve(window.monaco),gp(yp);rq(lq,uq)(fq)}return gp(yp)}function lq(e){return document.body.appendChild(e)}function cq(e){var t=document.createElement("script");return e&&(t.src=e),t}function uq(e){var t=ao(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=cq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function fq(){var e=ao(function(r){var a=r.config,i=r.resolve,n=r.reject;return{config:a,resolve:i,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var a=r.m||r;K0(a),e.resolve(a)},function(r){e.reject(r)})}function K0(e){ao().monaco||yc({monaco:e})}function dq(){return ao(function(e){var t=e.monaco;return t})}var yp=new Promise(function(e,t){return yc({resolve:e,reject:t})}),vc={config:sq,init:oq,__getMonacoInstance:dq},pq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vp=pq,mq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},hq=mq;function gq({children:e}){return H.createElement("div",{style:hq.container},e)}var yq=gq,vq=yq;function bq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:s}){return H.createElement("section",{style:{...vp.wrapper,width:e,height:t},...s},!r&&H.createElement(vq,null,a),H.createElement("div",{ref:i,style:{...vp.fullWidth,...!r&&vp.hide},className:n}))}var kq=bq,G0=H.memo(kq);function wq(e){H.useEffect(e,[])}var bp=wq;function Sq(e,t,r=!0){let a=H.useRef(!0);H.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Dr=Sq;function io(){}function Yi(e,t,r,a){return Eq(e,a)||Cq(e,t,r,a)}function Eq(e,t){return e.editor.getModel(J0(e,t))}function Cq(e,t,r,a){return e.editor.createModel(t,r,a?J0(e,a):void 0)}function J0(e,t){return e.Uri.parse(t)}function Aq({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:i,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:c=!1,theme:l="light",loading:u="Loading...",options:f={},height:p="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=io,onMount:y=io}){let[b,w]=H.useState(!1),[E,m]=H.useState(!0),g=H.useRef(null),S=H.useRef(null),A=H.useRef(null),x=H.useRef(y),O=H.useRef(v),C=H.useRef(!1);bp(()=>{let j=vc.init();return j.then($=>(S.current=$)&&m(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():j.cancel()}),Dr(()=>{if(g.current&&S.current){let j=g.current.getOriginalEditor(),$=Yi(S.current,e||"",a||r||"text",n||"");$!==j.getModel()&&j.setModel($)}},[n],b),Dr(()=>{if(g.current&&S.current){let j=g.current.getModifiedEditor(),$=Yi(S.current,t||"",i||r||"text",s||"");$!==j.getModel()&&j.setModel($)}},[s],b),Dr(()=>{let j=g.current.getModifiedEditor();j.getOption(S.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),Dr(()=>{var j,$;($=(j=g.current)==null?void 0:j.getModel())==null||$.original.setValue(e||"")},[e],b),Dr(()=>{let{original:j,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(j,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Dr(()=>{var j;(j=S.current)==null||j.editor.setTheme(l)},[l],b),Dr(()=>{var j;(j=g.current)==null||j.updateOptions(f)},[f],b);let _=H.useCallback(()=>{var Y;if(!S.current)return;O.current(S.current);let j=Yi(S.current,e||"",a||r||"text",n||""),$=Yi(S.current,t||"",i||r||"text",s||"");(Y=g.current)==null||Y.setModel({original:j,modified:$})},[r,t,i,e,a,n,s]),F=H.useCallback(()=>{var j;!C.current&&A.current&&(g.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),_(),(j=S.current)==null||j.editor.setTheme(l),w(!0),C.current=!0)},[f,l,_]);H.useEffect(()=>{b&&x.current(g.current,S.current)},[b]),H.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function I(){var $,Y,Z,ie;let j=($=g.current)==null?void 0:$.getModel();o||((Y=j==null?void 0:j.original)==null||Y.dispose()),c||((Z=j==null?void 0:j.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return H.createElement(G0,{width:d,height:p,isEditorReady:b,loading:u,_ref:A,className:h,wrapperProps:k})}var _q=Aq;H.memo(_q);function Oq(){let[e,t]=H.useState(vc.__getMonacoInstance());return bp(()=>{let r;return e||(r=vc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var xq=Oq;function Tq(e){let t=H.useRef();return H.useEffect(()=>{t.current=e},[e]),t.current}var Pq=Tq,bc=new Map;function Iq({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:i,path:n,theme:s="light",line:o,loading:c="Loading...",options:l={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:p=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=io,onMount:b=io,onChange:w,onValidate:E=io}){let[m,g]=H.useState(!1),[S,A]=H.useState(!0),x=H.useRef(null),O=H.useRef(null),C=H.useRef(null),_=H.useRef(b),F=H.useRef(y),I=H.useRef(),j=H.useRef(a),$=Pq(n),Y=H.useRef(!1),Z=H.useRef(!1);bp(()=>{let M=vc.init();return M.then(U=>(x.current=U)&&A(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>O.current?P():M.cancel()}),Dr(()=>{var U,T,N,L;let M=Yi(x.current,e||a||"",t||i||"",n||r||"");M!==((U=O.current)==null?void 0:U.getModel())&&(f&&bc.set($,(T=O.current)==null?void 0:T.saveViewState()),(N=O.current)==null||N.setModel(M),f&&((L=O.current)==null||L.restoreViewState(bc.get(n))))},[n],m),Dr(()=>{var M;(M=O.current)==null||M.updateOptions(l)},[l],m),Dr(()=>{!O.current||a===void 0||(O.current.getOption(x.current.editor.EditorOption.readOnly)?O.current.setValue(a):a!==O.current.getValue()&&(Z.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),O.current.pushUndoStop(),Z.current=!1))},[a],m),Dr(()=>{var U,T;let M=(U=O.current)==null?void 0:U.getModel();M&&i&&((T=x.current)==null||T.editor.setModelLanguage(M,i))},[i],m),Dr(()=>{var M;o!==void 0&&((M=O.current)==null||M.revealLine(o))},[o],m),Dr(()=>{var M;(M=x.current)==null||M.editor.setTheme(s)},[s],m);let ie=H.useCallback(()=>{var M;if(!(!C.current||!x.current)&&!Y.current){F.current(x.current);let U=n||r,T=Yi(x.current,a||e||"",t||i||"",U||"");O.current=(M=x.current)==null?void 0:M.editor.create(C.current,{model:T,automaticLayout:!0,...l},u),f&&O.current.restoreViewState(bc.get(U)),x.current.editor.setTheme(s),o!==void 0&&O.current.revealLine(o),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,s,o]);H.useEffect(()=>{m&&_.current(O.current,x.current)},[m]),H.useEffect(()=>{!S&&!m&&ie()},[S,m,ie]),j.current=a,H.useEffect(()=>{var M,U;m&&w&&((M=I.current)==null||M.dispose(),I.current=(U=O.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(O.current.getValue(),T)}))},[m,w]),H.useEffect(()=>{if(m){let M=x.current.editor.onDidChangeMarkers(U=>{var N;let T=(N=O.current.getModel())==null?void 0:N.uri;if(T&&U.find(L=>L.path===T.path)){let L=x.current.editor.getModelMarkers({resource:T});E==null||E(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[m,E]);function P(){var M,U;(M=I.current)==null||M.dispose(),p?f&&bc.set(n,O.current.saveViewState()):(U=O.current.getModel())==null||U.dispose(),O.current.dispose()}return H.createElement(G0,{width:d,height:h,isEditorReady:m,loading:c,_ref:C,className:k,wrapperProps:v})}var Nq=Iq,Dq=H.memo(Nq),Fq=Dq;const Mq={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},jq=Object.freeze(Object.defineProperty({__proto__:null,button:ER,json:SR,sourceCode:e=>{const{fieldPathId:t,schema:{title:r,description:a},uiSchema:{"ui:options":i={}}={},formData:n,readonly:s,disabled:o,onChange:c,...l}=e,{language:u="html",height:f="20vh",width:p="100%",theme:d="dracula",...h}=i,k=xq();H.useEffect(()=>{k&&k.editor.defineTheme("dracula",Mq)});const v=H.useCallback(b=>{if(b!==void 0)if(u==="json")try{c(JSON.parse(b),t.path)}catch{c(null,t.path,{__errors:["Invalid JSON"]})}else c(b,t.path)},[c,t,u]),y=H.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return D.jsxs("div",{className:"form-group",children:[r&&D.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),D.jsx("div",{className:"wrapper",children:D.jsx(Fq,{id:t.$id,className:hi(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...h},...l})}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:a})})]})}},Symbol.toStringTag,{value:"Module"})),Lq=tD,Rq=(e,t)=>e&&e in Vs?ac({},Vs[e]):t&&t in Vs?ac({},Vs[t]):ac({},Vs.en),qq=(e,t)=>e.map(r=>{var n,s;const a=(n=r.property)==null?void 0:n.replace(/^\./,""),i=(s=t.properties)==null?void 0:s[a];return i!=null&&i.errorMessage&&i.errorMessage[r.name]&&(r.message=i.errorMessage[r.name]),r}),Y0=({id:e,templates:t,widgets:r,fields:a,locale:i,fallbackLocale:n,validator:s,className:o,embedFormOptions:c={},rjsfTheme:l,...u})=>{const{theme:f}=c;Gp(c);const p=H.useMemo(()=>Rq(i,n),[i,n]),[d,h]=H.useState(u.formData);return D.jsx(Lq,{id:e,idPrefix:`root_${e}`,validator:s||p,transformErrors:k=>qq(k,u.schema),className:hi(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...jq,...l==null?void 0:l.fields,...a},templates:{...L0.templates,...l==null?void 0:l.templates,...t},widgets:{...L0.widgets,...l==null?void 0:l.widgets,...r},...u,formData:d,onChange:k=>{u.onChange&&u.onChange(k);const{schema:v,formData:y}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&y[b]===!1&&delete y[b]}h(y)}})},X0={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},kp=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=pw,onSuccess:s=dw,onError:o=mw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:p,...d})=>{const[h,k]=H.useState({processId:a,steps:[],variables:{...p&&p.variables}}),[v]=$1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,async:l}),y=H.useMemo(()=>{const U=xp();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=H.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=H.useState(!1),[m,g]=H.useState(b),[S,A]=H.useState({}),x=H.useCallback(U=>{A({}),E(!0),g(U.formData),v({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...h.steps.length>0&&{steps:h.steps},...Object.keys(h.variables).length>0&&{variables:h.variables},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(T=>{if(g(b),T.nextProcessId){const N=h.steps;N.push({processId:h.processId,data:U.formData,result:T}),k({processId:T.nextProcessId,steps:N,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}s(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?A(yw(T==null?void 0:T.formErrors)):o(y,T,U.formData)}).finally(()=>E(!1))},[y,b,s,o,v,h]),{loading:O,formSpecs:C,error:_}=U1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i}),F={...X0,...p};Gp(F),H.useEffect(()=>{_&&o(y,_,{})},[_]);const I=hi(["fcode-form-wrapper",F.className]);if(O)return D.jsx("div",{className:hi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:D.jsx(pm,{active:!0,content:F.loadingContent,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(mm,{})})})});if(_||!C)return D.jsx("div",{className:I,"data-testid":"fcode-form",children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:gw(_)})})});C.schema.embedFormOptions={...X0,...C.schema.embedFormOptions,...p,variables:{...C.schema.embedFormOptions&&C.schema.embedFormOptions.variables,...h.variables,...p&&p.variables}};const j=bm(C),$=Object.keys(j.schema.properties||{}),Y=Object.fromEntries(Object.entries(m).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:M}=j.embedFormOptions;return D.jsx("div",{className:hi(["fcode-form-wrapper",j.embedFormOptions.className]),"data-testid":"fcode-form",children:D.jsx(pm,{active:w,content:ie,disabled:Z,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(Y0,{id:y,schema:j.schema,uiSchema:j.uiSchema,embedFormOptions:j.embedFormOptions,locale:P,fallbackLocale:M,formData:Y,onSubmit:x,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};kp.displayName="FcodeForm",ot.FcodeForm=kp,ot.FcodeJsonSchemaForm=Y0,ot.buildId=xp,ot.default=kp,ot.processFormSpecs=bm,Object.defineProperties(ot,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
131
|
+
`},H0=Z2(rq)(V0),nq={config:eq},aq=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(i){return r.reduceRight(function(n,o){return o(n)},i)}};function W0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],W0(e[r],t[r]))}),$0($0({},e),t)}var iq={type:"cancelation",msg:"operation is manually canceled"};function gp(e){var t=!1,r=new Promise(function(a,i){e.then(function(n){return t?i(iq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var oq=["monaco"],sq=Y2.create({config:X2,isInitialized:!1,resolve:null,reject:null,monaco:null}),K0=N2(sq,2),is=K0[0],yc=K0[1];function lq(e){var t=nq.config(e),r=t.monaco,a=P2(t,oq);yc(function(i){return{config:W0(i.config,a),monaco:r}})}function cq(){var e=is(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(yc({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),gp(yp);if(window.monaco&&window.monaco.editor)return G0(window.monaco),e.resolve(window.monaco),gp(yp);aq(uq,dq)(pq)}return gp(yp)}function uq(e){return document.body.appendChild(e)}function fq(e){var t=document.createElement("script");return e&&(t.src=e),t}function dq(e){var t=is(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=fq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function pq(){var e=is(function(r){var a=r.config,i=r.resolve,n=r.reject;return{config:a,resolve:i,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var a=r.m||r;G0(a),e.resolve(a)},function(r){e.reject(r)})}function G0(e){is().monaco||yc({monaco:e})}function mq(){return is(function(e){var t=e.monaco;return t})}var yp=new Promise(function(e,t){return yc({resolve:e,reject:t})}),vc={config:lq,init:cq,__getMonacoInstance:mq},hq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},vp=hq,gq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},yq=gq;function vq({children:e}){return H.createElement("div",{style:yq.container},e)}var bq=vq,kq=bq;function wq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:o}){return H.createElement("section",{style:{...vp.wrapper,width:e,height:t},...o},!r&&H.createElement(kq,null,a),H.createElement("div",{ref:i,style:{...vp.fullWidth,...!r&&vp.hide},className:n}))}var Sq=wq,J0=H.memo(Sq);function Eq(e){H.useEffect(e,[])}var bp=Eq;function Cq(e,t,r=!0){let a=H.useRef(!0);H.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Nr=Cq;function os(){}function Yi(e,t,r,a){return Aq(e,a)||_q(e,t,r,a)}function Aq(e,t){return e.editor.getModel(Y0(e,t))}function _q(e,t,r,a){return e.editor.createModel(t,r,a?Y0(e,a):void 0)}function Y0(e,t){return e.Uri.parse(t)}function Oq({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:i,originalModelPath:n,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:c=!1,theme:l="light",loading:u="Loading...",options:f={},height:p="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=os,onMount:y=os}){let[b,w]=H.useState(!1),[E,m]=H.useState(!0),g=H.useRef(null),S=H.useRef(null),A=H.useRef(null),x=H.useRef(y),O=H.useRef(v),C=H.useRef(!1);bp(()=>{let j=vc.init();return j.then($=>(S.current=$)&&m(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():j.cancel()}),Nr(()=>{if(g.current&&S.current){let j=g.current.getOriginalEditor(),$=Yi(S.current,e||"",a||r||"text",n||"");$!==j.getModel()&&j.setModel($)}},[n],b),Nr(()=>{if(g.current&&S.current){let j=g.current.getModifiedEditor(),$=Yi(S.current,t||"",i||r||"text",o||"");$!==j.getModel()&&j.setModel($)}},[o],b),Nr(()=>{let j=g.current.getModifiedEditor();j.getOption(S.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),Nr(()=>{var j,$;($=(j=g.current)==null?void 0:j.getModel())==null||$.original.setValue(e||"")},[e],b),Nr(()=>{let{original:j,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(j,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Nr(()=>{var j;(j=S.current)==null||j.editor.setTheme(l)},[l],b),Nr(()=>{var j;(j=g.current)==null||j.updateOptions(f)},[f],b);let _=H.useCallback(()=>{var Y;if(!S.current)return;O.current(S.current);let j=Yi(S.current,e||"",a||r||"text",n||""),$=Yi(S.current,t||"",i||r||"text",o||"");(Y=g.current)==null||Y.setModel({original:j,modified:$})},[r,t,i,e,a,n,o]),F=H.useCallback(()=>{var j;!C.current&&A.current&&(g.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),_(),(j=S.current)==null||j.editor.setTheme(l),w(!0),C.current=!0)},[f,l,_]);H.useEffect(()=>{b&&x.current(g.current,S.current)},[b]),H.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function I(){var $,Y,Z,ie;let j=($=g.current)==null?void 0:$.getModel();s||((Y=j==null?void 0:j.original)==null||Y.dispose()),c||((Z=j==null?void 0:j.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return H.createElement(J0,{width:d,height:p,isEditorReady:b,loading:u,_ref:A,className:h,wrapperProps:k})}var xq=Oq;H.memo(xq);function Tq(){let[e,t]=H.useState(vc.__getMonacoInstance());return bp(()=>{let r;return e||(r=vc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var Pq=Tq;function Iq(e){let t=H.useRef();return H.useEffect(()=>{t.current=e},[e]),t.current}var Nq=Iq,bc=new Map;function Dq({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:i,path:n,theme:o="light",line:s,loading:c="Loading...",options:l={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:p=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=os,onMount:b=os,onChange:w,onValidate:E=os}){let[m,g]=H.useState(!1),[S,A]=H.useState(!0),x=H.useRef(null),O=H.useRef(null),C=H.useRef(null),_=H.useRef(b),F=H.useRef(y),I=H.useRef(),j=H.useRef(a),$=Nq(n),Y=H.useRef(!1),Z=H.useRef(!1);bp(()=>{let M=vc.init();return M.then(U=>(x.current=U)&&A(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>O.current?P():M.cancel()}),Nr(()=>{var U,T,N,L;let M=Yi(x.current,e||a||"",t||i||"",n||r||"");M!==((U=O.current)==null?void 0:U.getModel())&&(f&&bc.set($,(T=O.current)==null?void 0:T.saveViewState()),(N=O.current)==null||N.setModel(M),f&&((L=O.current)==null||L.restoreViewState(bc.get(n))))},[n],m),Nr(()=>{var M;(M=O.current)==null||M.updateOptions(l)},[l],m),Nr(()=>{!O.current||a===void 0||(O.current.getOption(x.current.editor.EditorOption.readOnly)?O.current.setValue(a):a!==O.current.getValue()&&(Z.current=!0,O.current.executeEdits("",[{range:O.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),O.current.pushUndoStop(),Z.current=!1))},[a],m),Nr(()=>{var U,T;let M=(U=O.current)==null?void 0:U.getModel();M&&i&&((T=x.current)==null||T.editor.setModelLanguage(M,i))},[i],m),Nr(()=>{var M;s!==void 0&&((M=O.current)==null||M.revealLine(s))},[s],m),Nr(()=>{var M;(M=x.current)==null||M.editor.setTheme(o)},[o],m);let ie=H.useCallback(()=>{var M;if(!(!C.current||!x.current)&&!Y.current){F.current(x.current);let U=n||r,T=Yi(x.current,a||e||"",t||i||"",U||"");O.current=(M=x.current)==null?void 0:M.editor.create(C.current,{model:T,automaticLayout:!0,...l},u),f&&O.current.restoreViewState(bc.get(U)),x.current.editor.setTheme(o),s!==void 0&&O.current.revealLine(s),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,o,s]);H.useEffect(()=>{m&&_.current(O.current,x.current)},[m]),H.useEffect(()=>{!S&&!m&&ie()},[S,m,ie]),j.current=a,H.useEffect(()=>{var M,U;m&&w&&((M=I.current)==null||M.dispose(),I.current=(U=O.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(O.current.getValue(),T)}))},[m,w]),H.useEffect(()=>{if(m){let M=x.current.editor.onDidChangeMarkers(U=>{var N;let T=(N=O.current.getModel())==null?void 0:N.uri;if(T&&U.find(L=>L.path===T.path)){let L=x.current.editor.getModelMarkers({resource:T});E==null||E(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[m,E]);function P(){var M,U;(M=I.current)==null||M.dispose(),p?f&&bc.set(n,O.current.saveViewState()):(U=O.current.getModel())==null||U.dispose(),O.current.dispose()}return H.createElement(J0,{width:d,height:h,isEditorReady:m,loading:c,_ref:C,className:k,wrapperProps:v})}var Fq=Dq,Mq=H.memo(Fq),jq=Mq;const Lq={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},Rq=Object.freeze(Object.defineProperty({__proto__:null,button:A2,json:C2,sourceCode:e=>{const{fieldPathId:t,schema:{title:r,description:a},uiSchema:{"ui:options":i={}}={},formData:n,readonly:o,disabled:s,onChange:c,...l}=e,{language:u="html",height:f="20vh",width:p="100%",theme:d="dracula",...h}=i,k=Pq();H.useEffect(()=>{k&&k.editor.defineTheme("dracula",Lq)});const v=H.useCallback(b=>{if(b!==void 0)if(u==="json")try{c(JSON.parse(b),t.path)}catch{c(null,t.path,{__errors:["Invalid JSON"]})}else c(b,t.path)},[c,t,u]),y=H.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return D.jsxs("div",{className:"form-group",children:[r&&D.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),D.jsx("div",{className:"wrapper",children:D.jsx(jq,{id:t.$id,className:hi(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:s||o,tabSize:2,minimap:{enabled:!1},...h},...l})}),D.jsx("small",{className:"text-muted form-text",children:D.jsx(dn,{children:a})})]})}},Symbol.toStringTag,{value:"Module"})),qq=nD,zq=(e,t)=>e&&e in Ho?ac({},Ho[e]):t&&t in Ho?ac({},Ho[t]):ac({},Ho.en),$q=(e,t)=>e.map(r=>{var n,o;const a=(n=r.property)==null?void 0:n.replace(/^\./,""),i=(o=t.properties)==null?void 0:o[a];return i!=null&&i.errorMessage&&i.errorMessage[r.name]&&(r.message=i.errorMessage[r.name]),r}),X0=({id:e,templates:t,widgets:r,fields:a,locale:i,fallbackLocale:n,validator:o,className:s,embedFormOptions:c={},rjsfTheme:l,...u})=>{const{theme:f}=c;Jp(c);const p=H.useMemo(()=>zq(i,n),[i,n]),[d,h]=H.useState(u.formData);return D.jsx(qq,{id:e,idPrefix:`root_${e}`,validator:o||p,transformErrors:k=>$q(k,u.schema),className:hi(["fcode-form",s,{[`theme-${f}`]:f}]),fields:{...Rq,...l==null?void 0:l.fields,...a},templates:{...R0.templates,...l==null?void 0:l.templates,...t},widgets:{...R0.widgets,...l==null?void 0:l.widgets,...r},...u,formData:d,onChange:k=>{u.onChange&&u.onChange(k);const{schema:v,formData:y}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&y[b]===!1&&delete y[b]}h(y)}})},Z0={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},kp=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=hw,onSuccess:o=mw,onError:s=gw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:p,...d})=>{const[h,k]=H.useState({processId:a,steps:[],variables:{...p&&p.variables}}),[v]=B1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:p==null?void 0:p.locale,async:l}),y=H.useMemo(()=>{const U=xp();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=H.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=H.useState(!1),[m,g]=H.useState(b),[S,A]=H.useState({}),x=H.useCallback(U=>{A({}),E(!0),g(U.formData),v({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...h.steps.length>0&&{steps:h.steps},...Object.keys(h.variables).length>0&&{variables:h.variables},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(T=>{if(g(b),T.nextProcessId){const N=h.steps;N.push({processId:h.processId,data:U.formData,result:T}),k({processId:T.nextProcessId,steps:N,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}o(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?A(bw(T==null?void 0:T.formErrors)):s(y,T,U.formData)}).finally(()=>E(!1))},[y,b,o,s,v,h]),{loading:O,formSpecs:C,error:_}=V1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:p==null?void 0:p.locale}),F={...Z0,...p};Jp(F),H.useEffect(()=>{_&&s(y,_,{})},[_]);const I=hi(["fcode-form-wrapper",F.className]);if(O)return D.jsx("div",{className:hi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:D.jsx(mm,{active:!0,content:F.loadingContent,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(hm,{})})})});if(_||!C)return D.jsx("div",{className:I,"data-testid":"fcode-form",children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:vw(_)})})});C.schema.embedFormOptions={...Z0,...C.schema.embedFormOptions,...p,variables:{...C.schema.embedFormOptions&&C.schema.embedFormOptions.variables,...h.variables,...p&&p.variables}};const j=km(C),$=Object.keys(j.schema.properties||{}),Y=Object.fromEntries(Object.entries(m).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:M}=j.embedFormOptions;return D.jsx("div",{className:hi(["fcode-form-wrapper",j.embedFormOptions.className]),"data-testid":"fcode-form",children:D.jsx(mm,{active:w,content:ie,disabled:Z,children:D.jsx("div",{className:"fcode-form-outer",children:D.jsx(X0,{id:y,schema:j.schema,uiSchema:j.uiSchema,embedFormOptions:j.embedFormOptions,locale:P,fallbackLocale:M,formData:Y,onSubmit:x,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};kp.displayName="FcodeForm",st.FcodeForm=kp,st.FcodeJsonSchemaForm=X0,st.buildId=xp,st.default=kp,st.processFormSpecs=km,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
132
132
|
//# sourceMappingURL=fcode-form.umd.js.map
|