@factorialco/fcode-react-forms 2.0.0 → 2.0.1
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/fcode-form.cjs.js +54 -54
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +2771 -2753
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +54 -54
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/services/fcode.d.ts +2 -2
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
package/dist/fcode-form.cjs.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u1(e,t){return o1(e)||l1(e,t)||f1(e,t)||c1()}function f1(e,t){if(e){if(typeof e=="string")return Am(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)?Am(e,t):void 0}}const jv=Object.entries,_m=Object.setPrototypeOf,d1=Object.isFrozen,m1=Object.getPrototypeOf,p1=Object.getOwnPropertyDescriptor;let Qt=Object.freeze,tr=Object.seal,ki=Object.create,Dv=typeof Reflect<"u"&&Reflect,wf=Dv.apply,Sf=Dv.construct;Qt||(Qt=function(t){return t});tr||(tr=function(t){return t});wf||(wf=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)});Sf||(Sf=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 fi=$t(Array.prototype.forEach),h1=$t(Array.prototype.lastIndexOf),Om=$t(Array.prototype.pop),di=$t(Array.prototype.push),g1=$t(Array.prototype.splice),sa=Array.isArray,ks=$t(String.prototype.toLowerCase),jc=$t(String.prototype.toString),Tm=$t(String.prototype.match),ss=$t(String.prototype.replace),Pm=$t(String.prototype.indexOf),y1=$t(String.prototype.trim),v1=$t(Number.prototype.toString),b1=$t(Boolean.prototype.toString),Im=typeof BigInt>"u"?null:$t(BigInt.prototype.toString),Rm=typeof Symbol>"u"?null:$t(Symbol.prototype.toString),Yt=$t(Object.prototype.hasOwnProperty),os=$t(Object.prototype.toString),Jt=$t(RegExp.prototype.test),Ia=k1(TypeError);function $t(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 wf(e,t,a)}}function k1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Sf(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ks;if(_m&&_m(e,null),!sa(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(d1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function w1(e){for(let t=0;t<e.length;t++)Yt(e,t)||(e[t]=null);return e}function ur(e){const t=ki(null);for(const a of jv(e)){var r=u1(a,2);const i=r[0],n=r[1];Yt(e,i)&&(sa(n)?t[i]=w1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=ur(n):t[i]=n)}return t}function S1(e){switch(typeof e){case"string":return e;case"number":return v1(e);case"boolean":return b1(e);case"bigint":return Im?Im(e):"0";case"symbol":return Rm?Rm(e):"Symbol()";case"undefined":return os(e);case"function":case"object":{if(e===null)return os(e);const t=e,r=vn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:os(a)}return os(e)}default:return os(e)}}function vn(e,t){for(;e!==null;){const a=p1(e,t);if(a){if(a.get)return $t(a.get);if(typeof a.value=="function")return $t(a.value)}e=m1(e)}function r(){return null}return r}function E1(e){try{return Jt(e,""),!0}catch{return!1}}const Nm=Qt(["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"]),Dc=Qt(["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"]),Fc=Qt(["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"]),x1=Qt(["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"]),Mc=Qt(["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"]),C1=Qt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jm=Qt(["#text"]),Dm=Qt(["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"]),Lc=Qt(["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"]),Fm=Qt(["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"]),So=Qt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A1=tr(/{{[\w\W]*|^[\w\W]*}}/g),_1=tr(/<%[\w\W]*|^[\w\W]*%>/g),O1=tr(/\${[\w\W]*/g),T1=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),P1=tr(/^aria-[\-\w]+$/),Mm=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I1=tr(/^(?:\w+script|data):/i),R1=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N1=tr(/^html$/i),j1=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Lm=tr(/<[/\w!]/g),qm=tr(/<[/\w]/g),D1=tr(/<\/no(script|embed|frames)/i),F1=tr(/\/>/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},M1=function(){return typeof window>"u"?null:window},L1=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}},zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Zn=function(t,r,a,i){return Yt(t,r)&&sa(t[r])?Ze(i.base?ur(i.base):{},t[r],i.transform):a};function Fv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M1();const t=fe=>Fv(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,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,m=o.prototype,d=vn(m,"cloneNode"),h=vn(m,"remove"),k=vn(m,"nextSibling"),v=vn(m,"childNodes"),y=vn(m,"parentNode"),b=vn(m,"shadowRoot"),w=vn(m,"attributes"),E=s&&s.prototype?vn(s.prototype,"nodeType"):null,p=s&&s.prototype?vn(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="",C,O=!1,_=0;const x=function(){if(_>0)throw Ia('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.')},A=function(L){x(),_++;try{return g.createHTML(L)}finally{_--}},N=function(L){x(),_++;try{return g.createScriptURL(L)}finally{_--}},I=function(){return O||(C=L1(f,i),O=!0),C},F=r,$=F.implementation,Y=F.createNodeIterator,Z=F.createDocumentFragment,ie=F.getElementsByTagName,P=a.importNode;let D=zm();t.isSupported=typeof jv=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=A1,T=_1,R=O1,M=T1,B=P1,V=I1,K=R1,J=j1;let Q=Mm,q=null;const z=Ze({},[...Nm,...Dc,...Fc,...Mc,...jm]);let H=null;const G=Ze({},[...Dm,...Lc,...Fm,...So]);let te=Object.seal(ki(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,me=null;const ve=Object.seal(ki(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Se=!0,Re=!1,he=!0,je=!1,Ve=!0,be=!1,ee=!1,re=null,ne=null,we=!1,pe=!1,tt=!1,De=!1,Ke=!0,wt=!1;const Ot="user-content-";let rt=!0,bt=!1,nt={},Ht=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 xt=null;const pn=Ze({},["audio","video","img","source","image","track"]);let Gn=null;const Dr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fr="http://www.w3.org/1998/Math/MathML",Cr="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Ft=Dt,gr=!1,hn=null;const Nn=Ze({},[Fr,Cr,Dt],jc),yr=Qt(["mi","mo","mn","ms","mtext"]);let es=Ze({},yr);const fo=Qt(["annotation-xml"]);let gn=Ze({},fo);const sr=Ze({},["title","style","font","a","script"]);let Mr=null;const Oc=["application/xhtml+xml","text/html"],Tc="text/html";let Ct=null,Jn=null;const mo=r.createElement("form"),ts=function(L){return L instanceof RegExp||L instanceof Function},Oa=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jn&&Jn===L)return;(!L||typeof L!="object")&&(L={}),L=ur(L),Mr=Oc.indexOf(L.PARSER_MEDIA_TYPE)===-1?Tc:L.PARSER_MEDIA_TYPE,Ct=Mr==="application/xhtml+xml"?jc:ks,q=Zn(L,"ALLOWED_TAGS",z,{transform:Ct}),H=Zn(L,"ALLOWED_ATTR",G,{transform:Ct}),hn=Zn(L,"ALLOWED_NAMESPACES",Nn,{transform:jc}),Gn=Zn(L,"ADD_URI_SAFE_ATTR",Dr,{transform:Ct,base:Dr}),xt=Zn(L,"ADD_DATA_URI_TAGS",pn,{transform:Ct,base:pn}),Ht=Zn(L,"FORBID_CONTENTS",jr,{transform:Ct}),ae=Zn(L,"FORBID_TAGS",ur({}),{transform:Ct}),me=Zn(L,"FORBID_ATTR",ur({}),{transform:Ct}),nt=Yt(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?ur(L.USE_PROFILES):L.USE_PROFILES:!1,Ce=L.ALLOW_ARIA_ATTR!==!1,Se=L.ALLOW_DATA_ATTR!==!1,Re=L.ALLOW_UNKNOWN_PROTOCOLS||!1,he=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=L.SAFE_FOR_TEMPLATES||!1,Ve=L.SAFE_FOR_XML!==!1,be=L.WHOLE_DOCUMENT||!1,pe=L.RETURN_DOM||!1,tt=L.RETURN_DOM_FRAGMENT||!1,De=L.RETURN_TRUSTED_TYPE||!1,we=L.FORCE_BODY||!1,Ke=L.SANITIZE_DOM!==!1,wt=L.SANITIZE_NAMED_PROPS||!1,rt=L.KEEP_CONTENT!==!1,bt=L.IN_PLACE||!1,Q=E1(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:Mm,Ft=typeof L.NAMESPACE=="string"?L.NAMESPACE:Dt,es=Yt(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?ur(L.MATHML_TEXT_INTEGRATION_POINTS):Ze({},yr),gn=Yt(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?ur(L.HTML_INTEGRATION_POINTS):Ze({},fo);const X=Yt(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?ur(L.CUSTOM_ELEMENT_HANDLING):ki(null);if(te=ki(null),Yt(X,"tagNameCheck")&&ts(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Yt(X,"attributeNameCheck")&&ts(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Yt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),tr(te),je&&(Se=!1),tt&&(pe=!0),nt&&(q=Ze({},jm),H=ki(null),nt.html===!0&&(Ze(q,Nm),Ze(H,Dm)),nt.svg===!0&&(Ze(q,Dc),Ze(H,Lc),Ze(H,So)),nt.svgFilters===!0&&(Ze(q,Fc),Ze(H,Lc),Ze(H,So)),nt.mathMl===!0&&(Ze(q,Mc),Ze(H,Fm),Ze(H,So))),ve.tagCheck=null,ve.attributeCheck=null,Yt(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?ve.tagCheck=L.ADD_TAGS:sa(L.ADD_TAGS)&&(q===z&&(q=ur(q)),Ze(q,L.ADD_TAGS,Ct))),Yt(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?ve.attributeCheck=L.ADD_ATTR:sa(L.ADD_ATTR)&&(H===G&&(H=ur(H)),Ze(H,L.ADD_ATTR,Ct))),Yt(L,"ADD_URI_SAFE_ATTR")&&sa(L.ADD_URI_SAFE_ATTR)&&Ze(Gn,L.ADD_URI_SAFE_ATTR,Ct),Yt(L,"FORBID_CONTENTS")&&sa(L.FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.FORBID_CONTENTS,Ct)),Yt(L,"ADD_FORBID_CONTENTS")&&sa(L.ADD_FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.ADD_FORBID_CONTENTS,Ct)),rt&&(q["#text"]=!0),be&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=L.TRUSTED_TYPES_POLICY;try{S=A("")}catch(ge){throw g=le,ge}}else L.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=A("")));Qt&&Qt(L),Jn=L},po=Ze({},[...Dc,...Fc,...x1]),ho=Ze({},[...Mc,...C1]),go=function(L,X,le){return X.namespaceURI===Dt?L==="svg":X.namespaceURI===Fr?L==="svg"&&(le==="annotation-xml"||es[le]):!!po[L]},Pc=function(L,X,le){return X.namespaceURI===Dt?L==="math":X.namespaceURI===Cr?L==="math"&&gn[le]:!!ho[L]},Ic=function(L,X,le){return X.namespaceURI===Cr&&!gn[le]||X.namespaceURI===Fr&&!es[le]?!1:!ho[L]&&(sr[L]||!po[L])},Rc=function(L){let X=y(L);(!X||!X.tagName)&&(X={namespaceURI:Ft,tagName:"template"});const le=ks(L.tagName),ge=ks(X.tagName);return hn[L.namespaceURI]?L.namespaceURI===Cr?go(le,X,ge):L.namespaceURI===Fr?Pc(le,X,ge):L.namespaceURI===Dt?Ic(le,X,ge):!!(Mr==="application/xhtml+xml"&&hn[L.namespaceURI]):!1},vr=function(L){di(t.removed,{element:L});try{y(L).removeChild(L)}catch{if(h(L),!y(L))throw Ia("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},or=function(L){Yn(L);const X=v(L);if(X){const ge=[];fi(X,Ee=>{di(ge,Ee)}),fi(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(L);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],_e=Ee&&Ee.name;if(typeof _e=="string")try{L.removeAttribute(_e)}catch{}}},yn=function(L,X){try{di(t.removed,{attribute:X.getAttributeNode(L),from:X})}catch{di(t.removed,{attribute:null,from:X})}if(X.removeAttribute(L),L==="is")if(pe||tt)try{vr(X)}catch{}else try{X.setAttribute(L,"")}catch{}},yo=function(L){const X=w(L);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||H[Ct(Ee)]))try{L.removeAttribute(Ee)}catch{}}},Yn=function(L){const X=[L];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===_r.element&&yo(le);const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},rs=function(L){if(!Ve)return;const X=[L];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===_r.processingInstruction||ge===_r.comment&&Jt(qm,le.data)){try{h(le)}catch{}continue}if(ge===_r.element){const _e=le,Tt=Ct(p?p(le):le.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Tt!=="label"&&Tt!=="output"&&_e.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},ns=function(L){let X=null,le=null;if(we)L="<remove></remove>"+L;else{const _e=Tm(L,/^[\r\n\t ]+/);le=_e&&_e[0]}Mr==="application/xhtml+xml"&&Ft===Dt&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const ge=g?A(L):L;if(Ft===Dt)try{X=new u().parseFromString(ge,Mr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Ft,"template",null);try{X.documentElement.innerHTML=gr?S:ge}catch{}}const Ee=X.body||X.documentElement;return L&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Ft===Dt?ie.call(X,be?"html":"body")[0]:be?X.documentElement:Ee},oi=function(L){return Y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ta=function(L){return L=ss(L,U," "),L=ss(L,T," "),L=ss(L,R," "),L},li=function(L){var X;L.normalize();const le=Y.call(L.ownerDocument||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=Ta(ge.data),ge=le.nextNode();const Ee=(X=L.querySelectorAll)===null||X===void 0?void 0:X.call(L,"template");Ee&&fi(Ee,_e=>{Xn(_e.content)&&li(_e.content)})},jn=function(L){const X=p?p(L):null;return typeof X!="string"||Ct(X)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==w(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==E(L)||L.childNodes!==v(L)},Xn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return E(L)===_r.documentFragment}catch{return!1}},Dn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return typeof E(L)=="number"}catch{return!1}};function br(fe,L,X){fe.length!==0&&fi(fe,le=>{le.call(t,L,X,Jn)})}const vo=function(L,X){return!!(Ve&&L.hasChildNodes()&&!Dn(L.firstElementChild)&&Jt(Lm,L.textContent)&&Jt(Lm,L.innerHTML)||Ve&&L.namespaceURI===Dt&&X==="style"&&Dn(L.firstElementChild)||L.nodeType===_r.processingInstruction||Ve&&L.nodeType===_r.comment&&Jt(qm,L.data))},bo=function(L,X){if(!ae[X]&&Zr(X)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(rt&&!Ht[X]){const le=y(L),ge=v(L);if(ge&&le){const Ee=ge.length;for(let _e=Ee-1;_e>=0;--_e){const Tt=bt?ge[_e]:d(ge[_e],!0);le.insertBefore(Tt,k(L))}}}return vr(L),!0},Pa=function(L,X){if(br(D.beforeSanitizeElements,L,null),L!==X&&y(L)===null)return!0;if(jn(L))return vr(L),!0;const le=Ct(p?p(L):L.nodeName);if(br(D.uponSanitizeElement,L,{tagName:le,allowedTags:q}),L!==X&&y(L)===null)return!0;if(vo(L,le))return vr(L),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=bo(L,le);return Ee===!1&&br(D.afterSanitizeElements,L,null),Ee}if((E?E(L):L.nodeType)===_r.element&&!Rc(L)||(le==="noscript"||le==="noembed"||le==="noframes")&&Jt(D1,L.innerHTML))return vr(L),!0;if(je&&L.nodeType===_r.text){const Ee=Ta(L.textContent);L.textContent!==Ee&&(di(t.removed,{element:L.cloneNode()}),L.textContent=Ee)}return br(D.afterSanitizeElements,L,null),!1},ci=function(L,X,le){if(me[X]||Ve&&X==="patchsrc"||Ve&&X==="for"&&L!=="label"&&L!=="output"||Ke&&(X==="id"||X==="name")&&(le in r||le in mo))return!1;const ge=H[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,L);if(!(Se&&Jt(M,X))){if(!(Ce&&Jt(B,X))){if(ge){if(!Gn[X]){if(!Jt(Q,ss(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&L!=="script"&&Pm(le,"data:")===0&&xt[L])){if(!(Re&&!Jt(V,ss(le,K,"")))){if(le)return!1}}}}}else if(!(Zr(L)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,L)||te.tagNameCheck instanceof Function&&te.tagNameCheck(L))&&(te.attributeNameCheck instanceof RegExp&&Jt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,L))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Wt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zr=function(L){return!Wt[ks(L)]&&Jt(J,L)},as=function(L,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(L,X)){case"TrustedHTML":return A(ge);case"TrustedScriptURL":return N(ge)}return ge},ko=function(L,X,le,ge){try{le?L.setAttributeNS(le,X,ge):L.setAttribute(X,ge),jn(L)?vr(L):Om(t.removed)}catch{yn(X,L)}},ui=function(L){br(D.beforeSanitizeAttributes,L,null);const X=L.attributes;if(!X||jn(L))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let ge=X.length;const Ee=Ct(L.nodeName);for(;ge--;){const _e=X[ge],Tt=_e.name,Kt=_e.namespaceURI,Ar=_e.value,rr=Ct(Tt),kr=Ar;let Gt=Tt==="value"?kr:y1(kr);if(le.attrName=rr,le.attrValue=Gt,le.keepAttr=!0,le.forceKeepAttr=void 0,br(D.uponSanitizeAttribute,L,le),Gt=le.attrValue,wt&&(rr==="id"||rr==="name")&&Pm(Gt,Ot)!==0&&(yn(Tt,L),Gt=Ot+Gt),Ve&&Jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Gt)){yn(Tt,L);continue}if(rr==="attributename"&&Tm(Gt,"href")){yn(Tt,L);continue}if(!le.forceKeepAttr){if(!le.keepAttr){yn(Tt,L);continue}if(!he&&Jt(F1,Gt)){yn(Tt,L);continue}if(je&&(Gt=Ta(Gt)),!ci(Ee,rr,Gt)){yn(Tt,L);continue}Gt=as(Ee,rr,Kt,Gt),Gt!==kr&&ko(L,Tt,Kt,Gt)}}br(D.afterSanitizeAttributes,L,null)},Qr=function(L){let X=null;const le=oi(L);for(br(D.beforeSanitizeShadowDOM,L,null);X=le.nextNode();)if(br(D.uponSanitizeShadowNode,X,null),Pa(X,L),ui(X),Xn(X.content)&&Qr(X.content),(E?E(X):X.nodeType)===_r.element){const Ee=b(X);Xn(Ee)&&(Fn(Ee),Qr(Ee))}br(D.afterSanitizeShadowDOM,L,null)},Fn=function(L){const X=[{node:L,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){Qr(le.shadow);continue}const ge=le.node,_e=(E?E(ge):ge.nodeType)===_r.element,Tt=v(ge);if(Tt)for(let Kt=Tt.length-1;Kt>=0;--Kt)X.push({node:Tt[Kt],shadow:null});if(_e){const Kt=p?p(ge):null;if(typeof Kt=="string"&&Ct(Kt)==="template"){const Ar=ge.content;Xn(Ar)&&X.push({node:Ar,shadow:null})}}if(_e){const Kt=b(ge);Xn(Kt)&&X.push({node:null,shadow:Kt},{node:Kt,shadow:null})}}};return t.sanitize=function(fe){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(gr=!fe,gr&&(fe="<!-->"),typeof fe!="string"&&!Dn(fe)&&(fe=S1(fe),typeof fe!="string"))throw Ia("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,H=ne):Oa(L),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(q=ur(q)),D.uponSanitizeAttribute.length>0&&(H=ur(H)),t.removed=[];const _e=bt&&typeof fe!="string"&&Dn(fe);if(_e){rs(fe);const rr=p?p(fe):fe.nodeName;if(typeof rr=="string"){const kr=Ct(rr);if(!q[kr]||ae[kr])throw or(fe),Ia("root node is forbidden and cannot be sanitized in-place")}if(jn(fe))throw or(fe),Ia("root node is clobbered and cannot be sanitized in-place");try{Fn(fe)}catch(kr){throw or(fe),kr}}else if(Dn(fe))X=ns("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===_r.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Fn(le);else{if(!pe&&!je&&!be&&fe.indexOf("<")===-1)return g&&De?A(fe):fe;if(X=ns(fe),!X)return pe?null:De?S:""}X&&we&&vr(X.firstChild);const Tt=_e?fe:X,Kt=oi(Tt);try{for(;ge=Kt.nextNode();)Pa(ge,Tt),ui(ge),Xn(ge.content)&&Qr(ge.content)}catch(rr){throw _e&&(or(fe),fi(t.removed,kr=>{kr.element&&Yn(kr.element)})),rr}if(_e)return fi(t.removed,rr=>{rr.element&&Yn(rr.element)}),je&&li(fe),fe;if(pe){if(je&&li(X),tt)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(H.shadowroot||H.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Ar=be?X.outerHTML:X.innerHTML;return be&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Jt(N1,X.ownerDocument.doctype.name)&&(Ar="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
-
`+Ar),je&&(Ar=Ta(Ar)),g&&De?A(Ar):Ar},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oa(fe),ee=!0,re=q,ne=H},t.clearConfig=function(){Jn=null,ee=!1,re=null,ne=null,g=C,S=""},t.isValidAttribute=function(fe,L,X){Jn||Oa({});const le=Ct(fe),ge=Ct(L);return ci(le,ge,X)},t.addHook=function(fe,L){typeof L=="function"&&Yt(D,fe)&&di(D[fe],L)},t.removeHook=function(fe,L){if(Yt(D,fe)){if(L!==void 0){const X=
|
|
1
|
+
"use strict";var a1=Object.defineProperty;var i1=(e,t,r)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var lr=(e,t,r)=>i1(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("react/jsx-runtime"),W=require("react"),wo=require("react-dom");function s1(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 zn=s1(W),Nv=(e,t,r)=>`${e}/api/${t}/forms/${r}`,jv=()=>Math.random().toString(36).substring(2,10),o1=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 Am(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 l1(e){if(Array.isArray(e))return e}function c1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,n,s,o=[],c=!0,l=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(c=(a=n.call(r)).done)&&(o.push(a.value),o.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function u1(){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 f1(e,t){return l1(e)||c1(e,t)||d1(e,t)||u1()}function d1(e,t){if(e){if(typeof e=="string")return Am(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)?Am(e,t):void 0}}const Dv=Object.entries,_m=Object.setPrototypeOf,m1=Object.isFrozen,p1=Object.getPrototypeOf,h1=Object.getOwnPropertyDescriptor;let Qt=Object.freeze,tr=Object.seal,ki=Object.create,Fv=typeof Reflect<"u"&&Reflect,wf=Fv.apply,Sf=Fv.construct;Qt||(Qt=function(t){return t});tr||(tr=function(t){return t});wf||(wf=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)});Sf||(Sf=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 fi=$t(Array.prototype.forEach),g1=$t(Array.prototype.lastIndexOf),Om=$t(Array.prototype.pop),di=$t(Array.prototype.push),y1=$t(Array.prototype.splice),sa=Array.isArray,ks=$t(String.prototype.toLowerCase),jc=$t(String.prototype.toString),Tm=$t(String.prototype.match),ss=$t(String.prototype.replace),Pm=$t(String.prototype.indexOf),v1=$t(String.prototype.trim),b1=$t(Number.prototype.toString),k1=$t(Boolean.prototype.toString),Im=typeof BigInt>"u"?null:$t(BigInt.prototype.toString),Rm=typeof Symbol>"u"?null:$t(Symbol.prototype.toString),Yt=$t(Object.prototype.hasOwnProperty),os=$t(Object.prototype.toString),Jt=$t(RegExp.prototype.test),Ia=w1(TypeError);function $t(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 wf(e,t,a)}}function w1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Sf(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ks;if(_m&&_m(e,null),!sa(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(m1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function S1(e){for(let t=0;t<e.length;t++)Yt(e,t)||(e[t]=null);return e}function ur(e){const t=ki(null);for(const a of Dv(e)){var r=f1(a,2);const i=r[0],n=r[1];Yt(e,i)&&(sa(n)?t[i]=S1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=ur(n):t[i]=n)}return t}function E1(e){switch(typeof e){case"string":return e;case"number":return b1(e);case"boolean":return k1(e);case"bigint":return Im?Im(e):"0";case"symbol":return Rm?Rm(e):"Symbol()";case"undefined":return os(e);case"function":case"object":{if(e===null)return os(e);const t=e,r=vn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:os(a)}return os(e)}default:return os(e)}}function vn(e,t){for(;e!==null;){const a=h1(e,t);if(a){if(a.get)return $t(a.get);if(typeof a.value=="function")return $t(a.value)}e=p1(e)}function r(){return null}return r}function x1(e){try{return Jt(e,""),!0}catch{return!1}}const Nm=Qt(["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"]),Dc=Qt(["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"]),Fc=Qt(["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"]),C1=Qt(["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"]),Mc=Qt(["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"]),A1=Qt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jm=Qt(["#text"]),Dm=Qt(["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"]),Lc=Qt(["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"]),Fm=Qt(["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"]),So=Qt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_1=tr(/{{[\w\W]*|^[\w\W]*}}/g),O1=tr(/<%[\w\W]*|^[\w\W]*%>/g),T1=tr(/\${[\w\W]*/g),P1=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),I1=tr(/^aria-[\-\w]+$/),Mm=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),R1=tr(/^(?:\w+script|data):/i),N1=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j1=tr(/^html$/i),D1=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Lm=tr(/<[/\w!]/g),qm=tr(/<[/\w]/g),F1=tr(/<\/no(script|embed|frames)/i),M1=tr(/\/>/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},L1=function(){return typeof window>"u"?null:window},q1=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}},zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Zn=function(t,r,a,i){return Yt(t,r)&&sa(t[r])?Ze(i.base?ur(i.base):{},t[r],i.transform):a};function Mv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L1();const t=fe=>Mv(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,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,m=o.prototype,d=vn(m,"cloneNode"),h=vn(m,"remove"),k=vn(m,"nextSibling"),v=vn(m,"childNodes"),y=vn(m,"parentNode"),b=vn(m,"shadowRoot"),w=vn(m,"attributes"),E=s&&s.prototype?vn(s.prototype,"nodeType"):null,p=s&&s.prototype?vn(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="",C,O=!1,_=0;const x=function(){if(_>0)throw Ia('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.')},A=function(L){x(),_++;try{return g.createHTML(L)}finally{_--}},N=function(L){x(),_++;try{return g.createScriptURL(L)}finally{_--}},I=function(){return O||(C=q1(f,i),O=!0),C},F=r,$=F.implementation,Y=F.createNodeIterator,Z=F.createDocumentFragment,ie=F.getElementsByTagName,P=a.importNode;let D=zm();t.isSupported=typeof Dv=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=_1,T=O1,R=T1,M=P1,B=I1,V=R1,K=N1,J=D1;let Q=Mm,q=null;const z=Ze({},[...Nm,...Dc,...Fc,...Mc,...jm]);let H=null;const G=Ze({},[...Dm,...Lc,...Fm,...So]);let te=Object.seal(ki(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,me=null;const ve=Object.seal(ki(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Se=!0,Re=!1,he=!0,je=!1,Ve=!0,be=!1,ee=!1,re=null,ne=null,we=!1,pe=!1,tt=!1,De=!1,Ke=!0,wt=!1;const Ot="user-content-";let rt=!0,bt=!1,nt={},Ht=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 xt=null;const pn=Ze({},["audio","video","img","source","image","track"]);let Gn=null;const Dr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fr="http://www.w3.org/1998/Math/MathML",Cr="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Ft=Dt,gr=!1,hn=null;const Nn=Ze({},[Fr,Cr,Dt],jc),yr=Qt(["mi","mo","mn","ms","mtext"]);let es=Ze({},yr);const fo=Qt(["annotation-xml"]);let gn=Ze({},fo);const sr=Ze({},["title","style","font","a","script"]);let Mr=null;const Oc=["application/xhtml+xml","text/html"],Tc="text/html";let Ct=null,Jn=null;const mo=r.createElement("form"),ts=function(L){return L instanceof RegExp||L instanceof Function},Oa=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jn&&Jn===L)return;(!L||typeof L!="object")&&(L={}),L=ur(L),Mr=Oc.indexOf(L.PARSER_MEDIA_TYPE)===-1?Tc:L.PARSER_MEDIA_TYPE,Ct=Mr==="application/xhtml+xml"?jc:ks,q=Zn(L,"ALLOWED_TAGS",z,{transform:Ct}),H=Zn(L,"ALLOWED_ATTR",G,{transform:Ct}),hn=Zn(L,"ALLOWED_NAMESPACES",Nn,{transform:jc}),Gn=Zn(L,"ADD_URI_SAFE_ATTR",Dr,{transform:Ct,base:Dr}),xt=Zn(L,"ADD_DATA_URI_TAGS",pn,{transform:Ct,base:pn}),Ht=Zn(L,"FORBID_CONTENTS",jr,{transform:Ct}),ae=Zn(L,"FORBID_TAGS",ur({}),{transform:Ct}),me=Zn(L,"FORBID_ATTR",ur({}),{transform:Ct}),nt=Yt(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?ur(L.USE_PROFILES):L.USE_PROFILES:!1,Ce=L.ALLOW_ARIA_ATTR!==!1,Se=L.ALLOW_DATA_ATTR!==!1,Re=L.ALLOW_UNKNOWN_PROTOCOLS||!1,he=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=L.SAFE_FOR_TEMPLATES||!1,Ve=L.SAFE_FOR_XML!==!1,be=L.WHOLE_DOCUMENT||!1,pe=L.RETURN_DOM||!1,tt=L.RETURN_DOM_FRAGMENT||!1,De=L.RETURN_TRUSTED_TYPE||!1,we=L.FORCE_BODY||!1,Ke=L.SANITIZE_DOM!==!1,wt=L.SANITIZE_NAMED_PROPS||!1,rt=L.KEEP_CONTENT!==!1,bt=L.IN_PLACE||!1,Q=x1(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:Mm,Ft=typeof L.NAMESPACE=="string"?L.NAMESPACE:Dt,es=Yt(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?ur(L.MATHML_TEXT_INTEGRATION_POINTS):Ze({},yr),gn=Yt(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?ur(L.HTML_INTEGRATION_POINTS):Ze({},fo);const X=Yt(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?ur(L.CUSTOM_ELEMENT_HANDLING):ki(null);if(te=ki(null),Yt(X,"tagNameCheck")&&ts(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Yt(X,"attributeNameCheck")&&ts(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Yt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),tr(te),je&&(Se=!1),tt&&(pe=!0),nt&&(q=Ze({},jm),H=ki(null),nt.html===!0&&(Ze(q,Nm),Ze(H,Dm)),nt.svg===!0&&(Ze(q,Dc),Ze(H,Lc),Ze(H,So)),nt.svgFilters===!0&&(Ze(q,Fc),Ze(H,Lc),Ze(H,So)),nt.mathMl===!0&&(Ze(q,Mc),Ze(H,Fm),Ze(H,So))),ve.tagCheck=null,ve.attributeCheck=null,Yt(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?ve.tagCheck=L.ADD_TAGS:sa(L.ADD_TAGS)&&(q===z&&(q=ur(q)),Ze(q,L.ADD_TAGS,Ct))),Yt(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?ve.attributeCheck=L.ADD_ATTR:sa(L.ADD_ATTR)&&(H===G&&(H=ur(H)),Ze(H,L.ADD_ATTR,Ct))),Yt(L,"ADD_URI_SAFE_ATTR")&&sa(L.ADD_URI_SAFE_ATTR)&&Ze(Gn,L.ADD_URI_SAFE_ATTR,Ct),Yt(L,"FORBID_CONTENTS")&&sa(L.FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.FORBID_CONTENTS,Ct)),Yt(L,"ADD_FORBID_CONTENTS")&&sa(L.ADD_FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.ADD_FORBID_CONTENTS,Ct)),rt&&(q["#text"]=!0),be&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=L.TRUSTED_TYPES_POLICY;try{S=A("")}catch(ge){throw g=le,ge}}else L.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=A("")));Qt&&Qt(L),Jn=L},po=Ze({},[...Dc,...Fc,...C1]),ho=Ze({},[...Mc,...A1]),go=function(L,X,le){return X.namespaceURI===Dt?L==="svg":X.namespaceURI===Fr?L==="svg"&&(le==="annotation-xml"||es[le]):!!po[L]},Pc=function(L,X,le){return X.namespaceURI===Dt?L==="math":X.namespaceURI===Cr?L==="math"&&gn[le]:!!ho[L]},Ic=function(L,X,le){return X.namespaceURI===Cr&&!gn[le]||X.namespaceURI===Fr&&!es[le]?!1:!ho[L]&&(sr[L]||!po[L])},Rc=function(L){let X=y(L);(!X||!X.tagName)&&(X={namespaceURI:Ft,tagName:"template"});const le=ks(L.tagName),ge=ks(X.tagName);return hn[L.namespaceURI]?L.namespaceURI===Cr?go(le,X,ge):L.namespaceURI===Fr?Pc(le,X,ge):L.namespaceURI===Dt?Ic(le,X,ge):!!(Mr==="application/xhtml+xml"&&hn[L.namespaceURI]):!1},vr=function(L){di(t.removed,{element:L});try{y(L).removeChild(L)}catch{if(h(L),!y(L))throw Ia("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},or=function(L){Yn(L);const X=v(L);if(X){const ge=[];fi(X,Ee=>{di(ge,Ee)}),fi(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(L);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],_e=Ee&&Ee.name;if(typeof _e=="string")try{L.removeAttribute(_e)}catch{}}},yn=function(L,X){try{di(t.removed,{attribute:X.getAttributeNode(L),from:X})}catch{di(t.removed,{attribute:null,from:X})}if(X.removeAttribute(L),L==="is")if(pe||tt)try{vr(X)}catch{}else try{X.setAttribute(L,"")}catch{}},yo=function(L){const X=w(L);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||H[Ct(Ee)]))try{L.removeAttribute(Ee)}catch{}}},Yn=function(L){const X=[L];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===_r.element&&yo(le);const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},rs=function(L){if(!Ve)return;const X=[L];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===_r.processingInstruction||ge===_r.comment&&Jt(qm,le.data)){try{h(le)}catch{}continue}if(ge===_r.element){const _e=le,Tt=Ct(p?p(le):le.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Tt!=="label"&&Tt!=="output"&&_e.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},ns=function(L){let X=null,le=null;if(we)L="<remove></remove>"+L;else{const _e=Tm(L,/^[\r\n\t ]+/);le=_e&&_e[0]}Mr==="application/xhtml+xml"&&Ft===Dt&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const ge=g?A(L):L;if(Ft===Dt)try{X=new u().parseFromString(ge,Mr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Ft,"template",null);try{X.documentElement.innerHTML=gr?S:ge}catch{}}const Ee=X.body||X.documentElement;return L&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Ft===Dt?ie.call(X,be?"html":"body")[0]:be?X.documentElement:Ee},oi=function(L){return Y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ta=function(L){return L=ss(L,U," "),L=ss(L,T," "),L=ss(L,R," "),L},li=function(L){var X;L.normalize();const le=Y.call(L.ownerDocument||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=Ta(ge.data),ge=le.nextNode();const Ee=(X=L.querySelectorAll)===null||X===void 0?void 0:X.call(L,"template");Ee&&fi(Ee,_e=>{Xn(_e.content)&&li(_e.content)})},jn=function(L){const X=p?p(L):null;return typeof X!="string"||Ct(X)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==w(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==E(L)||L.childNodes!==v(L)},Xn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return E(L)===_r.documentFragment}catch{return!1}},Dn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return typeof E(L)=="number"}catch{return!1}};function br(fe,L,X){fe.length!==0&&fi(fe,le=>{le.call(t,L,X,Jn)})}const vo=function(L,X){return!!(Ve&&L.hasChildNodes()&&!Dn(L.firstElementChild)&&Jt(Lm,L.textContent)&&Jt(Lm,L.innerHTML)||Ve&&L.namespaceURI===Dt&&X==="style"&&Dn(L.firstElementChild)||L.nodeType===_r.processingInstruction||Ve&&L.nodeType===_r.comment&&Jt(qm,L.data))},bo=function(L,X){if(!ae[X]&&Zr(X)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(rt&&!Ht[X]){const le=y(L),ge=v(L);if(ge&&le){const Ee=ge.length;for(let _e=Ee-1;_e>=0;--_e){const Tt=bt?ge[_e]:d(ge[_e],!0);le.insertBefore(Tt,k(L))}}}return vr(L),!0},Pa=function(L,X){if(br(D.beforeSanitizeElements,L,null),L!==X&&y(L)===null)return!0;if(jn(L))return vr(L),!0;const le=Ct(p?p(L):L.nodeName);if(br(D.uponSanitizeElement,L,{tagName:le,allowedTags:q}),L!==X&&y(L)===null)return!0;if(vo(L,le))return vr(L),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=bo(L,le);return Ee===!1&&br(D.afterSanitizeElements,L,null),Ee}if((E?E(L):L.nodeType)===_r.element&&!Rc(L)||(le==="noscript"||le==="noembed"||le==="noframes")&&Jt(F1,L.innerHTML))return vr(L),!0;if(je&&L.nodeType===_r.text){const Ee=Ta(L.textContent);L.textContent!==Ee&&(di(t.removed,{element:L.cloneNode()}),L.textContent=Ee)}return br(D.afterSanitizeElements,L,null),!1},ci=function(L,X,le){if(me[X]||Ve&&X==="patchsrc"||Ve&&X==="for"&&L!=="label"&&L!=="output"||Ke&&(X==="id"||X==="name")&&(le in r||le in mo))return!1;const ge=H[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,L);if(!(Se&&Jt(M,X))){if(!(Ce&&Jt(B,X))){if(ge){if(!Gn[X]){if(!Jt(Q,ss(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&L!=="script"&&Pm(le,"data:")===0&&xt[L])){if(!(Re&&!Jt(V,ss(le,K,"")))){if(le)return!1}}}}}else if(!(Zr(L)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,L)||te.tagNameCheck instanceof Function&&te.tagNameCheck(L))&&(te.attributeNameCheck instanceof RegExp&&Jt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,L))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Wt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zr=function(L){return!Wt[ks(L)]&&Jt(J,L)},as=function(L,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(L,X)){case"TrustedHTML":return A(ge);case"TrustedScriptURL":return N(ge)}return ge},ko=function(L,X,le,ge){try{le?L.setAttributeNS(le,X,ge):L.setAttribute(X,ge),jn(L)?vr(L):Om(t.removed)}catch{yn(X,L)}},ui=function(L){br(D.beforeSanitizeAttributes,L,null);const X=L.attributes;if(!X||jn(L))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let ge=X.length;const Ee=Ct(L.nodeName);for(;ge--;){const _e=X[ge],Tt=_e.name,Kt=_e.namespaceURI,Ar=_e.value,rr=Ct(Tt),kr=Ar;let Gt=Tt==="value"?kr:v1(kr);if(le.attrName=rr,le.attrValue=Gt,le.keepAttr=!0,le.forceKeepAttr=void 0,br(D.uponSanitizeAttribute,L,le),Gt=le.attrValue,wt&&(rr==="id"||rr==="name")&&Pm(Gt,Ot)!==0&&(yn(Tt,L),Gt=Ot+Gt),Ve&&Jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Gt)){yn(Tt,L);continue}if(rr==="attributename"&&Tm(Gt,"href")){yn(Tt,L);continue}if(!le.forceKeepAttr){if(!le.keepAttr){yn(Tt,L);continue}if(!he&&Jt(M1,Gt)){yn(Tt,L);continue}if(je&&(Gt=Ta(Gt)),!ci(Ee,rr,Gt)){yn(Tt,L);continue}Gt=as(Ee,rr,Kt,Gt),Gt!==kr&&ko(L,Tt,Kt,Gt)}}br(D.afterSanitizeAttributes,L,null)},Qr=function(L){let X=null;const le=oi(L);for(br(D.beforeSanitizeShadowDOM,L,null);X=le.nextNode();)if(br(D.uponSanitizeShadowNode,X,null),Pa(X,L),ui(X),Xn(X.content)&&Qr(X.content),(E?E(X):X.nodeType)===_r.element){const Ee=b(X);Xn(Ee)&&(Fn(Ee),Qr(Ee))}br(D.afterSanitizeShadowDOM,L,null)},Fn=function(L){const X=[{node:L,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){Qr(le.shadow);continue}const ge=le.node,_e=(E?E(ge):ge.nodeType)===_r.element,Tt=v(ge);if(Tt)for(let Kt=Tt.length-1;Kt>=0;--Kt)X.push({node:Tt[Kt],shadow:null});if(_e){const Kt=p?p(ge):null;if(typeof Kt=="string"&&Ct(Kt)==="template"){const Ar=ge.content;Xn(Ar)&&X.push({node:Ar,shadow:null})}}if(_e){const Kt=b(ge);Xn(Kt)&&X.push({node:null,shadow:Kt},{node:Kt,shadow:null})}}};return t.sanitize=function(fe){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(gr=!fe,gr&&(fe="<!-->"),typeof fe!="string"&&!Dn(fe)&&(fe=E1(fe),typeof fe!="string"))throw Ia("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,H=ne):Oa(L),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(q=ur(q)),D.uponSanitizeAttribute.length>0&&(H=ur(H)),t.removed=[];const _e=bt&&typeof fe!="string"&&Dn(fe);if(_e){rs(fe);const rr=p?p(fe):fe.nodeName;if(typeof rr=="string"){const kr=Ct(rr);if(!q[kr]||ae[kr])throw or(fe),Ia("root node is forbidden and cannot be sanitized in-place")}if(jn(fe))throw or(fe),Ia("root node is clobbered and cannot be sanitized in-place");try{Fn(fe)}catch(kr){throw or(fe),kr}}else if(Dn(fe))X=ns("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===_r.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Fn(le);else{if(!pe&&!je&&!be&&fe.indexOf("<")===-1)return g&&De?A(fe):fe;if(X=ns(fe),!X)return pe?null:De?S:""}X&&we&&vr(X.firstChild);const Tt=_e?fe:X,Kt=oi(Tt);try{for(;ge=Kt.nextNode();)Pa(ge,Tt),ui(ge),Xn(ge.content)&&Qr(ge.content)}catch(rr){throw _e&&(or(fe),fi(t.removed,kr=>{kr.element&&Yn(kr.element)})),rr}if(_e)return fi(t.removed,rr=>{rr.element&&Yn(rr.element)}),je&&li(fe),fe;if(pe){if(je&&li(X),tt)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(H.shadowroot||H.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Ar=be?X.outerHTML:X.innerHTML;return be&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Jt(j1,X.ownerDocument.doctype.name)&&(Ar="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
+
`+Ar),je&&(Ar=Ta(Ar)),g&&De?A(Ar):Ar},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oa(fe),ee=!0,re=q,ne=H},t.clearConfig=function(){Jn=null,ee=!1,re=null,ne=null,g=C,S=""},t.isValidAttribute=function(fe,L,X){Jn||Oa({});const le=Ct(fe),ge=Ct(L);return ci(le,ge,X)},t.addHook=function(fe,L){typeof L=="function"&&Yt(D,fe)&&di(D[fe],L)},t.removeHook=function(fe,L){if(Yt(D,fe)){if(L!==void 0){const X=g1(D[fe],L);return X===-1?void 0:y1(D[fe],X,1)[0]}return Om(D[fe])}},t.removeHooks=function(fe){Yt(D,fe)&&(D[fe]=[])},t.removeAllHooks=function(){D=zm()},t}var jl=Mv();const z1=["script","iframe","object","embed","base","form"],$1=["srcdoc","formaction"];jl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noreferrer")});const U1=(e,t)=>jl.removed.length>0||t===""&&e.trim()!=="";function gd(e){const t=jl.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:z1,FORBID_ATTR:$1,ADD_ATTR:["target"]});return U1(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.",jl.removed),t}const B1="Fcode-Version-Tag",V1="Fcode-Locale",$m="Fcode-Resolved-Files",Lv=e=>e?{[B1]:e}:{},qv=e=>e?{[V1]:e}:{},H1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const s={...t,...Lv(i),...qv(n)},o=await fetch(Nv(e,r,a),{cache:"force-cache",...Object.keys(s).length>0&&{headers:s}}),c=await o.json();if(o.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(o.ok)return c;throw c},W1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,K1=e=>{const t=W1.exec(e);if(!t)return null;const[,r="application/octet-stream",a="file",i]=t,s=e.includes(";base64,")?Uint8Array.from(atob(i),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(i));return{mime:r,name:a,blob:new Blob([s],{type:r})}},G1=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=K1(i);n&&(r.push({key:a,file:new File([n.blob],n.name,{type:n.mime})}),delete t[a])}return{sanitized:t,files:r}},J1=e=>{var r,a;const t=(a=(r=e.headers)==null?void 0:r.get)==null?void 0:a.call(r,$m);if(t)try{const i=JSON.parse(t);if(i&&typeof i=="object"&&!Array.isArray(i))return i}catch(i){console.error(`Unexpected ${$m} header`,i)}},Y1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,locale:s,formData:o})=>{const{sanitized:c,files:l}=G1(o),u=Nv(e,r,a),f={"Fcode-Async":n?"true":"false"},m=Lv(i),d=qv(s);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,...m,...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,...m,...d},method:"POST",body:JSON.stringify(o)});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{results:k,resolvedFiles:J1(h)};throw k},X1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:s=!1})=>{const[o,c]=W.useState(!1),[l,u]=W.useState(void 0),[f,m]=W.useState(void 0),[d,h]=W.useState(void 0),k=W.useCallback(()=>{c(!1),u(void 0),h(void 0),m(void 0)},[]);return[W.useCallback(async y=>{try{m(y),c(!0);const b=await Y1({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:s,formData:y});return c(!1),u(b.results),b}catch(b){throw h(b),c(!1),b}},[e,t,r,a,i,n,s]),{loading:o,results:l,error:d,formData:f,reset:k}]},Z1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const[s,o]=W.useState(!0),[c,l]=W.useState(),[u,f]=W.useState(),m=JSON.stringify(t??null),d=W.useMemo(()=>t,[m]);return W.useEffect(()=>{let h=!1;return o(!0),f(void 0),H1({hostUrl:e,headers:d,team:r,processId:a,processVersion:i,locale:n}).then(k=>{h||l(k)}).catch(k=>{h||f(k)}).finally(()=>{h||o(!1)}),()=>{h=!0}},[e,d,r,a,i,n]),{loading:s,formSpecs:c,error:u}},Q1=e=>o1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),ew=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},tw=e=>{if(ew(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},rw=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function nw({stylesheets:e}){W.useEffect(()=>{const t=e.map(r=>Q1(r)?tw(r):rw(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function zv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:a,themeStylesheet:i}=e,n=W.useMemo(()=>{if(t)return[t];if(a==="none")return[];const s=[`${r}/styles.css`];return i?s.push(i):a&&s.push(`${r}/styles-theme-${a}.css`),s},[t,r,a,i]);nw({stylesheets:n})}function Dl(){return Dl=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},Dl.apply(null,arguments)}function $v(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 Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ef(e,t)}function Uv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ef(e,t)}function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo={exports:{}},xo={exports:{}},ct={};/** @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 Um;function aw(){if(Um)return ct;Um=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,s=e?Symbol.for("react.provider"):60109,o=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,m=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(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case t:switch(p=p.type,p){case c:case l:case a:case n:case i:case f:return p;default:switch(p=p&&p.$$typeof,p){case o:case u:case h:case d:case s:return p;default:return g}}case r:return g}}}function E(p){return w(p)===l}return ct.AsyncMode=c,ct.ConcurrentMode=l,ct.ContextConsumer=o,ct.ContextProvider=s,ct.Element=t,ct.ForwardRef=u,ct.Fragment=a,ct.Lazy=h,ct.Memo=d,ct.Portal=r,ct.Profiler=n,ct.StrictMode=i,ct.Suspense=f,ct.isAsyncMode=function(p){return E(p)||w(p)===c},ct.isConcurrentMode=E,ct.isContextConsumer=function(p){return w(p)===o},ct.isContextProvider=function(p){return w(p)===s},ct.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ct.isForwardRef=function(p){return w(p)===u},ct.isFragment=function(p){return w(p)===a},ct.isLazy=function(p){return w(p)===h},ct.isMemo=function(p){return w(p)===d},ct.isPortal=function(p){return w(p)===r},ct.isProfiler=function(p){return w(p)===n},ct.isStrictMode=function(p){return w(p)===i},ct.isSuspense=function(p){return w(p)===f},ct.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===a||p===l||p===n||p===i||p===f||p===m||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===d||p.$$typeof===s||p.$$typeof===o||p.$$typeof===u||p.$$typeof===v||p.$$typeof===y||p.$$typeof===b||p.$$typeof===k)},ct.typeOf=w,ct}var ut={};/** @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 Bm;function iw(){return Bm||(Bm=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,s=e?Symbol.for("react.provider"):60109,o=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,m=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===m||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===d||z.$$typeof===s||z.$$typeof===o||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 H=z.$$typeof;switch(H){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 o:case u:case h:case d:case s:return te;default:return H}}case r:return H}}}var p=c,g=l,S=o,C=s,O=t,_=u,x=a,A=h,N=d,I=r,F=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 D(z){return E(z)===o}function U(z){return E(z)===s}function T(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function R(z){return E(z)===u}function M(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}ut.AsyncMode=p,ut.ConcurrentMode=g,ut.ContextConsumer=S,ut.ContextProvider=C,ut.Element=O,ut.ForwardRef=_,ut.Fragment=x,ut.Lazy=A,ut.Memo=N,ut.Portal=I,ut.Profiler=F,ut.StrictMode=$,ut.Suspense=Y,ut.isAsyncMode=ie,ut.isConcurrentMode=P,ut.isContextConsumer=D,ut.isContextProvider=U,ut.isElement=T,ut.isForwardRef=R,ut.isFragment=M,ut.isLazy=B,ut.isMemo=V,ut.isPortal=K,ut.isProfiler=J,ut.isStrictMode=Q,ut.isSuspense=q,ut.isValidElementType=w,ut.typeOf=E})()),ut}var Vm;function Bv(){return Vm||(Vm=1,process.env.NODE_ENV==="production"?xo.exports=aw():xo.exports=iw()),xo.exports}/*
|
|
18
18
|
object-assign
|
|
19
19
|
(c) Sindre Sorhus
|
|
20
20
|
@license MIT
|
|
21
|
-
*/var qc,
|
|
22
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,R,M,B+"."+Q,r);if(z)return z}return null}return v(D)}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 D=f(P);if(D){var U=D.call(P),T;if(D!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var R=T.value;if(R&&!I(R[1]))return!1}}else return!1;return!0;default:return!1}}function F(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function $(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":F(D,P)?"symbol":D}function Y(P){if(typeof P>"u"||P===null)return""+P;var D=$(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Z(P){var D=Y(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function ie(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,Jm;function ow(){if(Jm)return Vc;Jm=1;var e=yd();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(s,o,c,l,u,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}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 Ym;function lw(){if(Ym)return Eo.exports;if(Ym=1,process.env.NODE_ENV!=="production"){var e=Uv(),t=!0;Eo.exports=sw()(e.isElement,t)}else Eo.exports=ow()();return Eo.exports}var cw=lw();const Ie=Pn(cw);function uw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function fw(e,t){e.classList?e.classList.add(t):uw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xm(e.className,t):e.setAttribute("class",Xm(e.className&&e.className.baseVal||"",t))}const Zm={disabled:!1};var mw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,pw=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 Vv=W.createContext(null);var Hv=function(t){return t.scrollTop},ws="unmounted",qa="exited",za="entering",wi="entered",xf="exiting",In=(function(e){$v(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=qa,n.appearStatus=za):c=wi:a.unmountOnExit||a.mountOnEnter?c=ws:c=qa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ws?{status:qa}: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!==za&&s!==wi&&(n=za):(s===za||s===wi)&&(n=xf)}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===za){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);s&&Hv(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qa&&this.setState({status:ws})},r.performEnter=function(i){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[wo.findDOMNode(this),o],l=c[0],u=c[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!i&&!s||Zm.disabled){this.safeSetState({status:wi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:za},function(){n.props.onEntering(l,u),n.onTransitionEnd(m,function(){n.safeSetState({status:wi},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:wo.findDOMNode(this);if(!n||Zm.disabled){this.safeSetState({status:qa},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:xf},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:qa},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:wo.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===ws)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=zv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Vv.Provider,{value:null},typeof s=="function"?s(i,o):W.cloneElement(W.Children.only(s),o))},t})(W.Component);In.contextType=Vv;In.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=mw;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 mi(){}In.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};In.UNMOUNTED=ws;In.EXITED=qa;In.ENTERING=za;In.ENTERED=wi;In.EXITING=xf;var hw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return fw(t,a)})},Hc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return dw(t,a)})},vd=(function(e){$v(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],m=f?"appear":"enter";a.addClass(u,m,"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],m=f?"appear":"enter";a.removeClasses(u,m),a.addClass(u,m,"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],m=l?f+"-active":c[o+"Active"],d=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:m,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&&Hv(i),o&&(this.appliedClasses[n][s]=o,hw(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&&Hc(i,o),c&&Hc(i,c),l&&Hc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=zv(i,["classNames"]);return W.createElement(In,Dl({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(W.Component);vd.defaultProps={classNames:""};vd.propTypes=process.env.NODE_ENV!=="production"?Dl({},In.propTypes,{classNames:pw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const gw=vd,Qm=({active:e,children:t,content:r,disabled:a})=>{const i=W.useRef(null);return a?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(gw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},yw=["first","second"],Wv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),yw.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});Wv.displayName="FormSkeleton";const bd=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},vw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=gd(r)},bw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},kw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),bd("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),vw(e,t),t.redirect&&bw(t.redirect)},ww=(e,t)=>{bd("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},Sw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),bd("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">${gd(r)}</p>`)},Ew="The form couldn't be loaded",xw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Ew},Kv=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]=Kv(e[t]);break}return e},Cw=e=>{let t={};return e.fields&&(t={...Kv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
21
|
+
*/var qc,Hm;function sw(){if(Hm)return qc;Hm=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 s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var c=Object.getOwnPropertyNames(s).map(function(u){return s[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 qc=i()?Object.assign:function(n,s){for(var o,c=a(n),l,u=1;u<arguments.length;u++){o=Object(arguments[u]);for(var f in o)t.call(o,f)&&(c[f]=o[f]);if(e){l=e(o);for(var m=0;m<l.length;m++)r.call(o,l[m])&&(c[l[m]]=o[l[m]])}}return c},qc}var zc,Wm;function yd(){if(Wm)return zc;Wm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var $c,Km;function Vv(){return Km||(Km=1,$c=Function.call.bind(Object.prototype.hasOwnProperty)),$c}var Uc,Gm;function ow(){if(Gm)return Uc;Gm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=yd(),r={},a=Vv();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(n,s,o,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 m=Error((c||"React class")+": "+o+" 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 m.name="Invariant Violation",m}f=n[u](s,u,c,o,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Uc=i,Uc}var Bc,Jm;function lw(){if(Jm)return Bc;Jm=1;var e=Bv(),t=sw(),r=yd(),a=Vv(),i=ow(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(o){var c="Warning: "+o;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Bc=function(o,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(P){var D=P&&(l&&P[l]||P[u]);if(typeof D=="function")return D}var m="<<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:p(),instanceOf:g,node:_(),objectOf:C,oneOf:S,oneOfType:O,shape:A,exact:N};function h(P,D){return P===D?P!==0||1/P===1/D:P!==P&&D!==D}function k(P,D){this.message=P,this.data=D&&typeof D=="object"?D:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var D={},U=0;function T(M,B,V,K,J,Q,q){if(K=K||m,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 H=K+":"+V;!D[H]&&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."),D[H]=!0,U++)}}return B[V]==null?M?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 R=T.bind(null,!1);return R.isRequired=T.bind(null,!0),R}function y(P){function D(U,T,R,M,B,V){var K=U[T],J=$(K);if(J!==P){var Q=Y(K);return new k("Invalid "+M+" `"+B+"` of type "+("`"+Q+"` supplied to `"+R+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(D)}function b(){return v(s)}function w(P){function D(U,T,R,M,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var V=U[T];if(!Array.isArray(V)){var K=$(V);return new k("Invalid "+M+" `"+B+"` of type "+("`"+K+"` supplied to `"+R+"`, expected an array."))}for(var J=0;J<V.length;J++){var Q=P(V,J,R,M,B+"["+J+"]",r);if(Q instanceof Error)return Q}return null}return v(D)}function E(){function P(D,U,T,R,M){var B=D[U];if(!o(B)){var V=$(B);return new k("Invalid "+R+" `"+M+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return v(P)}function p(){function P(D,U,T,R,M){var B=D[U];if(!e.isValidElementType(B)){var V=$(B);return new k("Invalid "+R+" `"+M+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return v(P)}function g(P){function D(U,T,R,M,B){if(!(U[T]instanceof P)){var V=P.name||m,K=ie(U[T]);return new k("Invalid "+M+" `"+B+"` of type "+("`"+K+"` supplied to `"+R+"`, expected ")+("instance of `"+V+"`."))}return null}return v(D)}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.")),s;function D(U,T,R,M,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 H=Y(z);return H==="symbol"?String(z):z});return new k("Invalid "+M+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+R+"`, expected one of "+J+"."))}return v(D)}function C(P){function D(U,T,R,M,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+M+" `"+B+"` of type "+("`"+K+"` supplied to `"+R+"`, expected an object."));for(var J in V)if(a(V,J)){var Q=P(V,J,R,M,B+"."+J,r);if(Q instanceof Error)return Q}return null}return v(D)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<P.length;D++){var U=P[D];if(typeof U!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(U)+" at index "+D+"."),s}function T(R,M,B,V,K){for(var J=[],Q=0;Q<P.length;Q++){var q=P[Q],z=q(R,M,B,V,K,r);if(z==null)return null;z.data&&a(z.data,"expectedType")&&J.push(z.data.expectedType)}var H=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new k("Invalid "+V+" `"+K+"` supplied to "+("`"+B+"`"+H+"."))}return v(T)}function _(){function P(D,U,T,R,M){return I(D[U])?null:new k("Invalid "+R+" `"+M+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return v(P)}function x(P,D,U,T,R){return new k((P||"React class")+": "+D+" type `"+U+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function A(P){function D(U,T,R,M,B){var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+M+" `"+B+"` of type `"+K+"` "+("supplied to `"+R+"`, expected `object`."));for(var J in P){var Q=P[J];if(typeof Q!="function")return x(R,M,B,J,Y(Q));var q=Q(V,J,R,M,B+"."+J,r);if(q)return q}return null}return v(D)}function N(P){function D(U,T,R,M,B){var V=U[T],K=$(V);if(K!=="object")return new k("Invalid "+M+" `"+B+"` of type `"+K+"` "+("supplied to `"+R+"`, 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 x(R,M,B,Q,Y(q));if(!q)return new k("Invalid "+M+" `"+B+"` key `"+Q+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(U[T],null," ")+`
|
|
22
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,R,M,B+"."+Q,r);if(z)return z}return null}return v(D)}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 D=f(P);if(D){var U=D.call(P),T;if(D!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var R=T.value;if(R&&!I(R[1]))return!1}}else return!1;return!0;default:return!1}}function F(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function $(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":F(D,P)?"symbol":D}function Y(P){if(typeof P>"u"||P===null)return""+P;var D=$(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Z(P){var D=Y(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function ie(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,Ym;function cw(){if(Ym)return Vc;Ym=1;var e=yd();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(s,o,c,l,u,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}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 Xm;function uw(){if(Xm)return Eo.exports;if(Xm=1,process.env.NODE_ENV!=="production"){var e=Bv(),t=!0;Eo.exports=lw()(e.isElement,t)}else Eo.exports=cw()();return Eo.exports}var fw=uw();const Ie=Pn(fw);function dw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mw(e,t){e.classList?e.classList.add(t):dw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function pw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zm(e.className,t):e.setAttribute("class",Zm(e.className&&e.className.baseVal||"",t))}const Qm={disabled:!1};var hw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,gw=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 Hv=W.createContext(null);var Wv=function(t){return t.scrollTop},ws="unmounted",qa="exited",za="entering",wi="entered",xf="exiting",In=(function(e){Uv(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=qa,n.appearStatus=za):c=wi:a.unmountOnExit||a.mountOnEnter?c=ws:c=qa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ws?{status:qa}: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!==za&&s!==wi&&(n=za):(s===za||s===wi)&&(n=xf)}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===za){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);s&&Wv(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qa&&this.setState({status:ws})},r.performEnter=function(i){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[wo.findDOMNode(this),o],l=c[0],u=c[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!i&&!s||Qm.disabled){this.safeSetState({status:wi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:za},function(){n.props.onEntering(l,u),n.onTransitionEnd(m,function(){n.safeSetState({status:wi},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:wo.findDOMNode(this);if(!n||Qm.disabled){this.safeSetState({status:qa},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:xf},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:qa},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:wo.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===ws)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=$v(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Hv.Provider,{value:null},typeof s=="function"?s(i,o):W.cloneElement(W.Children.only(s),o))},t})(W.Component);In.contextType=Hv;In.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=hw;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 mi(){}In.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};In.UNMOUNTED=ws;In.EXITED=qa;In.ENTERING=za;In.ENTERED=wi;In.EXITING=xf;var yw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return mw(t,a)})},Hc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return pw(t,a)})},vd=(function(e){Uv(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],m=f?"appear":"enter";a.addClass(u,m,"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],m=f?"appear":"enter";a.removeClasses(u,m),a.addClass(u,m,"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],m=l?f+"-active":c[o+"Active"],d=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:m,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&&Wv(i),o&&(this.appliedClasses[n][s]=o,yw(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&&Hc(i,o),c&&Hc(i,c),l&&Hc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=$v(i,["classNames"]);return W.createElement(In,Dl({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(W.Component);vd.defaultProps={classNames:""};vd.propTypes=process.env.NODE_ENV!=="production"?Dl({},In.propTypes,{classNames:gw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const vw=vd,ep=({active:e,children:t,content:r,disabled:a})=>{const i=W.useRef(null);return a?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(vw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},bw=["first","second"],Kv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),bw.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});Kv.displayName="FormSkeleton";const bd=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},kw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=gd(r)},ww=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},Sw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),bd("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),kw(e,t),t.redirect&&ww(t.redirect)},Ew=(e,t)=>{bd("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},xw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),bd("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">${gd(r)}</p>`)},Cw="The form couldn't be loaded",Aw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Cw},Gv=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]=Gv(e[t]);break}return e},_w=e=>{let t={};return e.fields&&(t={...Gv(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(s=!0,y=k.scan(
|
|
25
|
+
*/var Ow=Object.prototype.toString,Bi=Array.isArray||function(t){return Ow.call(t)==="[object Array]"};function kd(e){return typeof e=="function"}function Tw(e){return Bi(e)?"array":typeof e}function Wc(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tp(e,t){return e!=null&&typeof e=="object"&&t in e}function Pw(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Iw=RegExp.prototype.test;function Rw(e,t){return Iw.call(e,t)}var Nw=/\S/;function jw(e){return!Rw(Nw,e)}var Dw={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Fw(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Dw[r]})}var Mw=/\s*/,Lw=/\s+/,rp=/\s*=/,qw=/\s*\}/,zw=/#|\^|\/|>|\{|&|=|!/;function $w(e,t){if(!e)return[];var r=!1,a=[],i=[],n=[],s=!1,o=!1,c="",l=0;function u(){if(s&&!o)for(;n.length;)delete i[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function h(C){if(typeof C=="string"&&(C=C.split(Lw,2)),!Bi(C)||C.length!==2)throw new Error("Invalid tags: "+C);f=new RegExp(Wc(C[0])+"\\s*"),m=new RegExp("\\s*"+Wc(C[1])),d=new RegExp("\\s*"+Wc("}"+C[1]))}h(t||Wr.tags);for(var k=new Gs(e),v,y,b,w,E,p;!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),jw(w)?(n.push(i.length),c+=w):(o=!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(s=!0,y=k.scan(zw)||"name",k.scan(Mw),y==="="?(b=k.scanUntil(rp),k.scan(rp),k.scanUntil(m)):y==="{"?(b=k.scanUntil(d),k.scan(qw),k.scanUntil(m),y="&"):b=k.scanUntil(m),!k.scan(m))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(p=a.pop(),!p)throw new Error('Unopened section "'+b+'" at '+v);if(p[1]!==b)throw new Error('Unclosed section "'+p[1]+'" at '+v)}else y==="name"||y==="{"||y==="&"?o=!0:y==="="&&h(b)}if(u(),p=a.pop(),p)throw new Error('Unclosed section "'+p[1]+'" at '+k.pos);return Bw(Uw(i))}function Uw(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 Bw(e){for(var t=[],r=t,a=[],i,n,s=0,o=e.length;s<o;++s)switch(i=e[s],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 Gs(e){this.string=e,this.tail=e,this.pos=0}Gs.prototype.eos=function(){return this.tail===""};Gs.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};Gs.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 Fi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Fi.prototype.push=function(t){return new Fi(t,this)};Fi.prototype.lookup=function(t){var r=this.cache,a;if(r.hasOwnProperty(t))a=r[t];else{for(var i=this,n,s,o,c=!1;i;){if(t.indexOf(".")>0)for(n=i.view,s=t.split("."),o=0;n!=null&&o<s.length;)o===s.length-1&&(c=tp(n,s[o])||Pw(n,s[o])),n=n[s[o++]];else n=i.view[t],c=tp(i.view,t);if(c){a=n;break}i=i.parent}r[t]=a}return kd(a)&&(a=a.call(this.view)),a};function hr(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}hr.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};hr.prototype.parse=function(t,r){var a=this.templateCache,i=t+":"+(r||Wr.tags).join(":"),n=typeof a<"u",s=n?a.get(i):void 0;return s==null&&(s=$w(t,r),n&&a.set(i,s)),s};hr.prototype.render=function(t,r,a,i){var n=this.getConfigTags(i),s=this.parse(t,n),o=r instanceof Fi?r:new Fi(r,void 0);return this.renderTokens(s,o,a,t,i)};hr.prototype.renderTokens=function(t,r,a,i,n){for(var s="",o,c,l,u=0,f=t.length;u<f;++u)l=void 0,o=t[u],c=o[0],c==="#"?l=this.renderSection(o,r,a,i,n):c==="^"?l=this.renderInverted(o,r,a,i,n):c===">"?l=this.renderPartial(o,r,a,n):c==="&"?l=this.unescapedValue(o,r):c==="name"?l=this.escapedValue(o,r,n):c==="text"&&(l=this.rawValue(o)),l!==void 0&&(s+=l);return s};hr.prototype.renderSection=function(t,r,a,i,n){var s=this,o="",c=r.lookup(t[1]);function l(m){return s.render(m,r,a,n)}if(c){if(Bi(c))for(var u=0,f=c.length;u<f;++u)o+=this.renderTokens(t[4],r.push(c[u]),a,i,n);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")o+=this.renderTokens(t[4],r.push(c),a,i,n);else if(kd(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&&(o+=c)}else o+=this.renderTokens(t[4],r,a,i,n);return o}};hr.prototype.renderInverted=function(t,r,a,i,n){var s=r.lookup(t[1]);if(!s||Bi(s)&&s.length===0)return this.renderTokens(t[4],r,a,i,n)};hr.prototype.indentPartial=function(t,r,a){for(var i=r.replace(/[^ \t]/g,""),n=t.split(`
|
|
27
27
|
`),s=0;s<n.length;s++)n[s].length&&(s>0||!a)&&(n[s]=i+n[s]);return n.join(`
|
|
28
|
-
`)};hr.prototype.renderPartial=function(t,r,a,i){if(a){var n=this.getConfigTags(i),s=kd(a)?a(t[1]):a[t[1]];if(s!=null){var o=t[6],c=t[5],l=t[4],u=s;c==0&&l&&(u=this.indentPartial(s,l,o));var f=this.parse(u,n);return this.renderTokens(f,r,a,u,i)}}};hr.prototype.unescapedValue=function(t,r){var a=r.lookup(t[1]);if(a!=null)return a};hr.prototype.escapedValue=function(t,r,a){var i=this.getConfigEscape(a)||Wr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&i===Wr.escape?String(n):i(n)};hr.prototype.rawValue=function(t){return t[1]};hr.prototype.getConfigTags=function(t){return Bi(t)?t:t&&typeof t=="object"?t.tags:void 0};hr.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Bi(t))return t.escape};var Wr={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){Fs.templateCache=e},get templateCache(){return Fs.templateCache}},Fs=new hr;Wr.clearCache=function(){return Fs.clearCache()};Wr.parse=function(t,r){return Fs.parse(t,r)};Wr.render=function(t,r,a,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+
|
|
28
|
+
`)};hr.prototype.renderPartial=function(t,r,a,i){if(a){var n=this.getConfigTags(i),s=kd(a)?a(t[1]):a[t[1]];if(s!=null){var o=t[6],c=t[5],l=t[4],u=s;c==0&&l&&(u=this.indentPartial(s,l,o));var f=this.parse(u,n);return this.renderTokens(f,r,a,u,i)}}};hr.prototype.unescapedValue=function(t,r){var a=r.lookup(t[1]);if(a!=null)return a};hr.prototype.escapedValue=function(t,r,a){var i=this.getConfigEscape(a)||Wr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&i===Wr.escape?String(n):i(n)};hr.prototype.rawValue=function(t){return t[1]};hr.prototype.getConfigTags=function(t){return Bi(t)?t:t&&typeof t=="object"?t.tags:void 0};hr.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Bi(t))return t.escape};var Wr={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){Fs.templateCache=e},get templateCache(){return Fs.templateCache}},Fs=new hr;Wr.clearCache=function(){return Fs.clearCache()};Wr.parse=function(t,r){return Fs.parse(t,r)};Wr.render=function(t,r,a,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Tw(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Fs.render(t,r,a,i)};Wr.escape=Fw;Wr.Scanner=Gs;Wr.Context=Fi;Wr.Writer=hr;const Kc=e=>e&&typeof e=="object"&&!Array.isArray(e),Cf=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Kc(e)&&Kc(r))for(const a in r)Kc(r[a])?(e[a]||Object.assign(e,{[a]:{}}),Cf(e[a],r[a])):Object.assign(e,{[a]:r[a]});return Cf(e,...t)},Vw=(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()},Hw=([e,t],r,a)=>{const{ui:i,uiSchema:n,["ui:schema"]:s}=t;return{...r===0&&a.focusOnFirst&&{"ui:autofocus":!0},...a.isSensitive&&{"ui:widget":"password"},...s,...n,...i,...t.properties&&{...Fl(t.properties,a.globalUiSchema)},...t.oneOf&&Cf({},...t.oneOf.map(o=>Fl(o.properties,a.globalUiSchema))),...a.globalUiSchema[e]}},Fl=(e,t,r=!1)=>Object.entries(e??{}).reduce((a,[i,n],s)=>{const o=Hw([i,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...a,[i]:{...o,"ui:classNames":Vw(o,n)}}},{}),Af=(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=>Af(n,t)):r[a]=Af(i,t):r[a]=i}return r},Ww=e=>{const{embedFormOptions:t,ui:r,uiSchema:a,...i}=e;return Af(i,["ui","isSensitive","isTransient"])},Kw=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const a=Fl(e.schema.dependencies,t);for(const i in a){const n=a[i];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Fl(e.schema.properties,t)}},Jv=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Jv(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),Gw=(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(Jv(JSON.parse(a))):a},Jw=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(Wr.render(Gw(e,r),r))};function Yv(e){const t=Jw(e,e.schema.embedFormOptions);return{schema:Ww(t.schema),uiSchema:Kw(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Gc={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 rp;function Gw(){return rp||(rp=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})()})(Gc)),Gc.exports}var Jw=Gw();const Pi=Pn(Jw);function Ae(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 Yw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Ae(e.additionalItems)}function Yv(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 np(e){if(e==="")return;if(e===null)return null;const t=Yv(),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 la=Symbol("__additional_property"),xi="additionalProperties",_n="allOf",We="anyOf",mr="const",Ha="default",wd="dependencies",Xw="enum",Zt="__errors",pt="$id",Sd="if",Mi="items",Zw="_$junk_option_schema_id$_",El="$name",Fe="oneOf",_f="patternProperties",Ye="properties",Jc="readonly",Xv="required",Ml="submitButtonOptions",gt="$ref",xl=Symbol("__rjsf_ref"),Ed=Symbol("__rjsf_ref_cycle"),Ss="$schema",Zv="root",Qv="_",Qw=["discriminator","propertyName"],ap="formContext",eS="layoutGridLookupMap",eb="__rjsf",xd=`${eb}_additionalProperties`,tb=`${eb}_rootSchema`,tS="ui:field",Cd="ui:widget",ca="ui:options",Of="ui:globalOptions",rS="ui:definitions",nS="https://json-schema.org/draft/2019-09/schema",Cl="https://json-schema.org/draft/2020-12/schema";function ke(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===Cd&&Ae(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===ca&&Ae(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function rb(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=ke(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var nb=typeof global=="object"&&global&&global.Object===Object&&global,aS=typeof self=="object"&&self&&self.Object===Object&&self,Rn=nb||aS||Function("return this")(),Kr=Rn.Symbol,ab=Object.prototype,iS=ab.hasOwnProperty,sS=ab.toString,ls=Kr?Kr.toStringTag:void 0;function oS(e){var t=iS.call(e,ls),r=e[ls];try{e[ls]=void 0;var a=!0}catch{}var i=sS.call(e);return a&&(t?e[ls]=r:delete e[ls]),i}var lS=Object.prototype,cS=lS.toString;function uS(e){return cS.call(e)}var fS="[object Null]",dS="[object Undefined]",ip=Kr?Kr.toStringTag:void 0;function Bn(e){return e==null?e===void 0?dS:fS:ip&&ip in Object(e)?oS(e):uS(e)}function ib(e,t){return function(r){return e(t(r))}}var rc=ib(Object.getPrototypeOf,Object);function Gr(e){return e!=null&&typeof e=="object"}var mS="[object Object]",pS=Function.prototype,hS=Object.prototype,sb=pS.toString,gS=hS.hasOwnProperty,yS=sb.call(Object);function ya(e){if(!Gr(e)||Bn(e)!=mS)return!1;var t=rc(e);if(t===null)return!0;var r=gS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&sb.call(r)==yS}function Tf(e){const t={[Zt]:[],addError(r){this[Zt].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:Tf(a)}),t);if(ya(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:Tf(r[i])}),t)}return t}var Vt=Array.isArray,vS="[object Symbol]";function Js(e){return typeof e=="symbol"||Gr(e)&&Bn(e)==vS}var bS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kS=/^\w*$/;function Ad(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Js(e)?!0:kS.test(e)||!bS.test(e)||t!=null&&e in Object(t)}function Xe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wS="[object AsyncFunction]",SS="[object Function]",ES="[object GeneratorFunction]",xS="[object Proxy]";function Ys(e){if(!Xe(e))return!1;var t=Bn(e);return t==SS||t==ES||t==wS||t==xS}var Yc=Rn["__core-js_shared__"],sp=(function(){var e=/[^.]+$/.exec(Yc&&Yc.keys&&Yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function CS(e){return!!sp&&sp in e}var AS=Function.prototype,_S=AS.toString;function ti(e){if(e!=null){try{return _S.call(e)}catch{}try{return e+""}catch{}}return""}var OS=/[\\^$.*+?()[\]{}|]/g,TS=/^\[object .+?Constructor\]$/,PS=Function.prototype,IS=Object.prototype,RS=PS.toString,NS=IS.hasOwnProperty,jS=RegExp("^"+RS.call(NS).replace(OS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function DS(e){if(!Xe(e)||CS(e))return!1;var t=Ys(e)?jS:TS;return t.test(ti(e))}function FS(e,t){return e==null?void 0:e[t]}function ri(e,t){var r=FS(e,t);return DS(r)?r:void 0}var Ms=ri(Object,"create");function MS(){this.__data__=Ms?Ms(null):{},this.size=0}function LS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qS="__lodash_hash_undefined__",zS=Object.prototype,$S=zS.hasOwnProperty;function US(e){var t=this.__data__;if(Ms){var r=t[e];return r===qS?void 0:r}return $S.call(t,e)?t[e]:void 0}var BS=Object.prototype,VS=BS.hasOwnProperty;function HS(e){var t=this.__data__;return Ms?t[e]!==void 0:VS.call(t,e)}var WS="__lodash_hash_undefined__";function KS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ms&&t===void 0?WS:t,this}function Wa(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])}}Wa.prototype.clear=MS;Wa.prototype.delete=LS;Wa.prototype.get=US;Wa.prototype.has=HS;Wa.prototype.set=KS;function GS(){this.__data__=[],this.size=0}function Xs(e,t){return e===t||e!==e&&t!==t}function nc(e,t){for(var r=e.length;r--;)if(Xs(e[r][0],t))return r;return-1}var JS=Array.prototype,YS=JS.splice;function XS(e){var t=this.__data__,r=nc(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():YS.call(t,r,1),--this.size,!0}function ZS(e){var t=this.__data__,r=nc(t,e);return r<0?void 0:t[r][1]}function QS(e){return nc(this.__data__,e)>-1}function eE(e,t){var r=this.__data__,a=nc(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Vn(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])}}Vn.prototype.clear=GS;Vn.prototype.delete=XS;Vn.prototype.get=ZS;Vn.prototype.has=QS;Vn.prototype.set=eE;var Ls=ri(Rn,"Map");function tE(){this.size=0,this.__data__={hash:new Wa,map:new(Ls||Vn),string:new Wa}}function rE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ac(e,t){var r=e.__data__;return rE(t)?r[typeof t=="string"?"string":"hash"]:r.map}function nE(e){var t=ac(this,e).delete(e);return this.size-=t?1:0,t}function aE(e){return ac(this,e).get(e)}function iE(e){return ac(this,e).has(e)}function sE(e,t){var r=ac(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Hn(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])}}Hn.prototype.clear=tE;Hn.prototype.delete=nE;Hn.prototype.get=aE;Hn.prototype.has=iE;Hn.prototype.set=sE;var oE="Expected a function";function _d(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oE);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(_d.Cache||Hn),r}_d.Cache=Hn;var lE=500;function cE(e){var t=_d(e,function(a){return r.size===lE&&r.clear(),a}),r=t.cache;return t}var uE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fE=/\\(\\)?/g,ob=cE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uE,function(r,a,i,n){t.push(i?n.replace(fE,"$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 op=Kr?Kr.prototype:void 0,lp=op?op.toString:void 0;function lb(e){if(typeof e=="string")return e;if(Vt(e))return Vi(e,lb)+"";if(Js(e))return lp?lp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Od(e){return e==null?"":lb(e)}function Hi(e,t){return Vt(e)?e:Ad(e,t)?[e]:ob(Od(e))}function va(e){if(typeof e=="string"||Js(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ic(e,t){t=Hi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[va(t[r++])];return r&&r==a?e:void 0}function oe(e,t,r){var a=e==null?void 0:ic(e,t);return a===void 0?r:a}const{getOwnPropertyNames:cp,getOwnPropertySymbols:dE}=Object,{hasOwnProperty:mE}=Object.prototype;function Xc(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function Co(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 up(e){const t=dE(e);return t.length?cp(e).concat(t):cp(e)}const pE=Object.hasOwn||((e,t)=>mE.call(e,t)),hE="__v",gE="__o",yE="_owner",{getOwnPropertyDescriptor:fp,keys:dp}=Object,ni=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function vE(e,t){return e===t}function bE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e),new Uint8Array(t))}function kE(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 wE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function SE(e,t){return ni(e.getTime(),t.getTime())}function EE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mp(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 m=s.value,d=o.value;if(r.equals(m[0],d[0],c,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function xE(e,t,r){const a=dp(e);let i=a.length;if(dp(t).length!==i)return!1;for(;i-- >0;)if(!cb(e,t,r,a[i]))return!1;return!0}function cs(e,t,r){const a=up(e);let i=a.length;if(up(t).length!==i)return!1;let n,s,o;for(;i-- >0;)if(n=a[i],!cb(e,t,r,n)||(s=fp(e,n),o=fp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function CE(e,t){return ni(e.valueOf(),t.valueOf())}function AE(e,t){return e.source===t.source&&e.flags===t.flags}function pp(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 Ll(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 _E(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 cb(e,t,r,a){return(a===yE||a===gE||a===hE)&&(e.$$typeof||t.$$typeof)?!0:pE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const OE=Object.prototype.toString;function TE(e){const t=NE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(m,d,h){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(m,d,h):k==="function"?i(m,d,h):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(m,d,h);if(v===Array)return r(m,d,h);if(v===Date)return a(m,d,h);if(v===RegExp)return c(m,d,h);if(v===Map)return n(m,d,h);if(v===Set)return l(m,d,h);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,h);const y=OE.call(m),b=t[y];if(b)return b(m,d,h);const w=u&&u(m,d,h,y);return w?w(m,d,h):!1}}function PE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:bE,areArraysEqual:r?cs:kE,areDataViewsEqual:wE,areDatesEqual:SE,areErrorsEqual:EE,areFunctionsEqual:vE,areMapsEqual:r?Xc(mp,cs):mp,areNumbersEqual:ni,areObjectsEqual:r?cs:xE,arePrimitiveWrappersEqual:CE,areRegExpsEqual:AE,areSetsEqual:r?Xc(pp,cs):pp,areTypedArraysEqual:r?Xc(Ll,cs):Ll,areUrlsEqual:_E,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=Co(a.areArraysEqual),n=Co(a.areMapsEqual),s=Co(a.areObjectsEqual),o=Co(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return a}function IE(e){return function(t,r,a,i,n,s,o){return e(t,r,o)}}function RE({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 NE({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:m,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[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]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}Wn();Wn({strict:!0});Wn({circular:!0});Wn({circular:!0,strict:!0});Wn({createInternalComparator:()=>ni});Wn({strict:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni,strict:!0});function Wn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=PE(e),s=TE(n),o=r?r(s):IE(s);return RE({circular:t,comparator:s,createState:a,equals:o,strict:i})}const Je=Wn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var us={exports:{}},Zc,hp;function ub(){if(hp)return Zc;hp=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(_){let x="",A=0,N=0;for(N=0;N<_.length;N++)if(A=_[N].charCodeAt(0),A!==48){if(!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N];break}for(N+=1;N<_.length;N++){if(A=_[N].charCodeAt(0),!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(_){return _.length=0,!0}function l(_,x,A){if(_.length){const N=s(_);if(N!=="")x.push(N);else return A.error=!0,!1;_.length=0}return!0}function u(_){let x=0;const A={error:!1,address:"",zone:""},N=[],I=[];let F=!1,$=!1,Y=l;for(let Z=0;Z<_.length;Z++){const ie=_[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(F===!0&&($=!0),!Y(I,N,A))break;if(++x>7){A.error=!0;break}Z>0&&_[Z-1]===":"&&(F=!0),N.push(":");continue}else if(ie==="%"){if(!Y(I,N,A))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?A.zone=I.join(""):$?N.push(I.join("")):N.push(s(I))),A.address=N.join(""),A}function f(_){if(m(_,":")<2)return{host:_,isIPV6:!1};const x=u(_);if(x.error)return{host:_,isIPV6:!1};{let A=x.address,N=x.address;return x.zone&&(A+="%"+x.zone,N+="%25"+x.zone),{host:A,isIPV6:!0,escapedHost:N}}}function m(_,x){let A=0;for(let N=0;N<_.length;N++)_[N]===x&&A++;return A}function d(_){let x=_;const A=[];let N=-1,I=0;for(;I=x.length;){if(I===1){if(x===".")break;if(x==="/"){A.push("/");break}else{A.push(x);break}}else if(I===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){A.push("/");break}}else if(I===3&&x==="/.."){A.length!==0&&A.pop(),A.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),A.length!==0&&A.pop();continue}}if((N=x.indexOf("/",1))===-1){A.push(x);break}else A.push(x.slice(0,N)),x=x.slice(N)}return A.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(_,x){const A=x?v:k;return A.lastIndex=0,_.replace(A,N=>h[N])}function b(_,x=!1){if(_.indexOf("%")===-1)return _;let A="";for(let N=0;N<_.length;N++){if(_[N]==="%"&&N+2<_.length){const I=_.slice(N+1,N+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));x&&a($)?A+=$:A+="%"+F,N+=2;continue}}A+=_[N]}return A}const w=new Array(256);{const _="0123456789ABCDEF";for(let x=0;x<256;x++)w[x]="%"+_[x>>4]+_[x&15]}function E(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function p(_){return _<2048?w[192|_>>6]+w[128|_&63]:_<65536?w[224|_>>12]+w[128|_>>6&63]+w[128|_&63]:w[240|_>>18]+w[128|_>>12&63]+w[128|_>>6&63]+w[128|_&63]}function g(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));$!=="."&&a($)?x+=$:x+="%"+F,A+=2;continue}}if(i(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function S(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));a($)?x+=$:x+="%"+F,A+=2;continue}}if(n(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function C(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const F=_.slice(A+1,A+3);if(r(F)){x+="%"+F.toUpperCase(),A+=2;continue}}const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}return x}function O(_){const x=[];if(_.userinfo!==void 0&&(x.push(_.userinfo),x.push("@")),_.host!==void 0){let A=unescape(_.host);if(!t(A)){const N=f(A);N.isIPV6===!0?A=`[${N.escapedHost}]`:A=y(A,!1)}x.push(A)}return(typeof _.port=="number"||typeof _.port=="string")&&(x.push(":"),x.push(String(_.port))),x.length?x.join(""):void 0}return Zc={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:C,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Zc}var Qc,gp;function jE(){if(gp)return Qc;gp=1;const{isUUID:e}=ub(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;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 m(p){const g=p;return g.nss=(p.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:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Qc={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Qc}var yp;function DE(){if(yp)return us.exports;yp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:c,nonSimpleDomain:l}=ub(),{SCHEMES:u,getSchemeHandler:f}=jE();function m(x,A){return typeof x=="string"?x=S(x,A):typeof x=="object"&&(x=g(v(x,A),A)),x}function d(x,A,N){const I=N?Object.assign({scheme:"null"},N):{scheme:"null"},{parsed:F,malformedAuthorityOrPort:$}=p(x,I),{parsed:Y,malformedAuthorityOrPort:Z}=p(A,I);if($||Z)throw new Error(F.error||Y.error||"URI is malformed.");const ie=h(F,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(x,A,N,I){const F={};return I||(x=g(v(x,N),N),A=g(v(A,N),N)),N=N||{},!N.tolerant&&A.scheme?(F.scheme=A.scheme,F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.path?(A.path[0]==="/"?F.path=t(A.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?F.path="/"+A.path:x.path?F.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+A.path:F.path=A.path,F.path=t(F.path)),F.query=A.query):(F.path=x.path,A.query!==void 0?F.query=A.query:F.query=x.query),F.userinfo=x.userinfo,F.host=x.host,F.port=x.port),F.scheme=x.scheme),F.fragment=A.fragment,F}function k(x,A,N){const I=O(x,N),F=O(A,N);return I!==void 0&&F!==void 0&&I.toLowerCase()===F.toLowerCase()}function v(x,A){const N={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},I=Object.assign({},A),F=[],$=f(I.scheme||N.scheme);$&&$.serialize&&$.serialize(N,I),N.path!==void 0&&(I.skipEscape?N.path=a(N.path):(N.path=s(N.path),N.scheme!==void 0&&(N.path=N.path.split("%3A").join(":")))),I.reference!=="suffix"&&N.scheme&&F.push(N.scheme,":");const Y=r(N);if(Y!==void 0&&(I.reference!=="suffix"&&F.push("//"),F.push(Y),N.path&&N.path[0]!=="/"&&F.push("/")),N.path!==void 0){let Z=N.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),F.push(Z)}return N.query!==void 0&&F.push("?",N.query),N.fragment!==void 0&&F.push("#",N.fragment),F.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(x,A){if(A[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function p(x,A){const N=Object.assign({},A),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let F=!1,$=!1;N.reference==="suffix"&&(N.scheme?x=N.scheme+":"+x:x="//"+x);const Y=x.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",F=!0);const Z=x.match(w);if(Z!==null){const P=Z[1],D=P.replace(/[\t\n\r]/g,"");D.length>=2&&(D.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",F=!0):P.length!==D.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",F=!0))}const ie=x.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,F=!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",N.reference&&N.reference!=="suffix"&&N.reference!==I.reference&&(I.error=I.error||"URI is not a "+N.reference+" reference.");const D=f(N.scheme||I.scheme);if(!N.unicodeSupport&&(!D||!D.unicodeSupport)&&I.host&&(N.domainHost||D&&D.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}(!D||D&&!D.skipNormalize)&&(x.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))),D&&D.parse&&D.parse(I,N)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:F}}function g(x,A){return p(x,A).parsed}function S(x,A){return C(x,A).normalized}function C(x,A){const{parsed:N,malformedAuthorityOrPort:I}=p(x,A);return{normalized:I?x:v(N,A),malformedAuthorityOrPort:I}}function O(x,A){if(typeof x=="string"){const{normalized:N,malformedAuthorityOrPort:I}=C(x,A);return I?void 0:N}if(typeof x=="object")return v(x,A)}const _={SCHEMES:u,normalize:m,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return us.exports=_,us.exports.default=_,us.exports.fastUri=_,us.exports}var FE=DE();const Td=Pn(FE);var fs={},vp;function ME(){if(vp)return fs;vp=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 m,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(m=a(u[h++]),d=k>h,typeof l[m]>"u"&&(Array.isArray(l)&&m==="-"&&(m=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[m]=[]:l[m]={})),!d)break;l=l[m]}var v=l[m];return f===void 0?delete l[m]:l[m]=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 m=1;m<f;){if(l=l[a(u[m++])],f===m)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,m){return o(f,u,m)}}}return fs.get=s,fs.set=o,fs.compile=c,fs}var LE=ME();const eu=Pn(LE);var qE=Object.prototype;function sc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qE;return e===r}var zE=ib(Object.keys,Object),$E=Object.prototype,UE=$E.hasOwnProperty;function fb(e){if(!sc(e))return zE(e);var t=[];for(var r in Object(e))UE.call(e,r)&&r!="constructor"&&t.push(r);return t}var Pf=ri(Rn,"DataView"),If=ri(Rn,"Promise"),Ii=ri(Rn,"Set"),Rf=ri(Rn,"WeakMap"),bp="[object Map]",BE="[object Object]",kp="[object Promise]",wp="[object Set]",Sp="[object WeakMap]",Ep="[object DataView]",VE=ti(Pf),HE=ti(Ls),WE=ti(If),KE=ti(Ii),GE=ti(Rf),$r=Bn;(Pf&&$r(new Pf(new ArrayBuffer(1)))!=Ep||Ls&&$r(new Ls)!=bp||If&&$r(If.resolve())!=kp||Ii&&$r(new Ii)!=wp||Rf&&$r(new Rf)!=Sp)&&($r=function(e){var t=Bn(e),r=t==BE?e.constructor:void 0,a=r?ti(r):"";if(a)switch(a){case VE:return Ep;case HE:return bp;case WE:return kp;case KE:return wp;case GE:return Sp}return t});var JE="[object Arguments]";function xp(e){return Gr(e)&&Bn(e)==JE}var db=Object.prototype,YE=db.hasOwnProperty,XE=db.propertyIsEnumerable,Li=xp((function(){return arguments})())?xp:function(e){return Gr(e)&&YE.call(e,"callee")&&!XE.call(e,"callee")},ZE=9007199254740991;function Pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}function ai(e){return e!=null&&Pd(e.length)&&!Ys(e)}function QE(){return!1}var mb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cp=mb&&typeof module=="object"&&module&&!module.nodeType&&module,ex=Cp&&Cp.exports===mb,Ap=ex?Rn.Buffer:void 0,tx=Ap?Ap.isBuffer:void 0,Ka=tx||QE,rx="[object Arguments]",nx="[object Array]",ax="[object Boolean]",ix="[object Date]",sx="[object Error]",ox="[object Function]",lx="[object Map]",cx="[object Number]",ux="[object Object]",fx="[object RegExp]",dx="[object Set]",mx="[object String]",px="[object WeakMap]",hx="[object ArrayBuffer]",gx="[object DataView]",yx="[object Float32Array]",vx="[object Float64Array]",bx="[object Int8Array]",kx="[object Int16Array]",wx="[object Int32Array]",Sx="[object Uint8Array]",Ex="[object Uint8ClampedArray]",xx="[object Uint16Array]",Cx="[object Uint32Array]",At={};At[yx]=At[vx]=At[bx]=At[kx]=At[wx]=At[Sx]=At[Ex]=At[xx]=At[Cx]=!0;At[rx]=At[nx]=At[hx]=At[ax]=At[gx]=At[ix]=At[sx]=At[ox]=At[lx]=At[cx]=At[ux]=At[fx]=At[dx]=At[mx]=At[px]=!1;function Ax(e){return Gr(e)&&Pd(e.length)&&!!At[Bn(e)]}function Id(e){return function(t){return e(t)}}var pb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=pb&&typeof module=="object"&&module&&!module.nodeType&&module,_x=Os&&Os.exports===pb,tu=_x&&nb.process,qi=(function(){try{var e=Os&&Os.require&&Os.require("util").types;return e||tu&&tu.binding&&tu.binding("util")}catch{}})(),_p=qi&&qi.isTypedArray,Zs=_p?Id(_p):Ax,Ox="[object Map]",Tx="[object Set]",Px=Object.prototype,Ix=Px.hasOwnProperty;function Rt(e){if(e==null)return!0;if(ai(e)&&(Vt(e)||typeof e=="string"||typeof e.splice=="function"||Ka(e)||Zs(e)||Li(e)))return!e.length;var t=$r(e);if(t==Ox||t==Tx)return!e.size;if(sc(e))return!fb(e).length;for(var r in e)if(Ix.call(e,r))return!1;return!0}function Rx(){this.__data__=new Vn,this.size=0}function Nx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function jx(e){return this.__data__.get(e)}function Dx(e){return this.__data__.has(e)}var Fx=200;function Mx(e,t){var r=this.__data__;if(r instanceof Vn){var a=r.__data__;if(!Ls||a.length<Fx-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hn(a)}return r.set(e,t),this.size=r.size,this}function sn(e){var t=this.__data__=new Vn(e);this.size=t.size}sn.prototype.clear=Rx;sn.prototype.delete=Nx;sn.prototype.get=jx;sn.prototype.has=Dx;sn.prototype.set=Mx;function Rd(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var ql=(function(){try{var e=ri(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Nd(e,t,r){t=="__proto__"&&ql?ql(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Lx=Object.prototype,qx=Lx.hasOwnProperty;function jd(e,t,r){var a=e[t];(!(qx.call(e,t)&&Xs(a,r))||r===void 0&&!(t in e))&&Nd(e,t,r)}function Wi(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?Nd(r,o,c):jd(r,o,c)}return r}function hb(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var zx=9007199254740991,$x=/^(?:0|[1-9]\d*)$/;function oc(e,t){var r=typeof e;return t=t??zx,!!t&&(r=="number"||r!="symbol"&&$x.test(e))&&e>-1&&e%1==0&&e<t}var Ux=Object.prototype,Bx=Ux.hasOwnProperty;function gb(e,t){var r=Vt(e),a=!r&&Li(e),i=!r&&!a&&Ka(e),n=!r&&!a&&!i&&Zs(e),s=r||a||i||n,o=s?hb(e.length,String):[],c=o.length;for(var l in e)(t||Bx.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||oc(l,c)))&&o.push(l);return o}function nn(e){return ai(e)?gb(e):fb(e)}function Vx(e,t){return e&&Wi(t,nn(t),e)}function Hx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wx=Object.prototype,Kx=Wx.hasOwnProperty;function Gx(e){if(!Xe(e))return Hx(e);var t=sc(e),r=[];for(var a in e)a=="constructor"&&(t||!Kx.call(e,a))||r.push(a);return r}function Qs(e){return ai(e)?gb(e,!0):Gx(e)}function Jx(e,t){return e&&Wi(t,Qs(t),e)}var yb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=yb&&typeof module=="object"&&module&&!module.nodeType&&module,Yx=Op&&Op.exports===yb,Tp=Yx?Rn.Buffer:void 0,Pp=Tp?Tp.allocUnsafe:void 0;function vb(e,t){if(t)return e.slice();var r=e.length,a=Pp?Pp(r):new e.constructor(r);return e.copy(a),a}function Dd(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function Xx(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 bb(){return[]}var Zx=Object.prototype,Qx=Zx.propertyIsEnumerable,Ip=Object.getOwnPropertySymbols,Fd=Ip?function(e){return e==null?[]:(e=Object(e),Xx(Ip(e),function(t){return Qx.call(e,t)}))}:bb;function eC(e,t){return Wi(e,Fd(e),t)}function Md(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var tC=Object.getOwnPropertySymbols,kb=tC?function(e){for(var t=[];e;)Md(t,Fd(e)),e=rc(e);return t}:bb;function rC(e,t){return Wi(e,kb(e),t)}function wb(e,t,r){var a=t(e);return Vt(e)?a:Md(a,r(e))}function Nf(e){return wb(e,nn,Fd)}function Ld(e){return wb(e,Qs,kb)}var nC=Object.prototype,aC=nC.hasOwnProperty;function iC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&aC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var zl=Rn.Uint8Array;function qd(e){var t=new e.constructor(e.byteLength);return new zl(t).set(new zl(e)),t}function sC(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oC=/\w*$/;function lC(e){var t=new e.constructor(e.source,oC.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=Kr?Kr.prototype:void 0,Np=Rp?Rp.valueOf:void 0;function cC(e){return Np?Object(Np.call(e)):{}}function Sb(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var uC="[object Boolean]",fC="[object Date]",dC="[object Map]",mC="[object Number]",pC="[object RegExp]",hC="[object Set]",gC="[object String]",yC="[object Symbol]",vC="[object ArrayBuffer]",bC="[object DataView]",kC="[object Float32Array]",wC="[object Float64Array]",SC="[object Int8Array]",EC="[object Int16Array]",xC="[object Int32Array]",CC="[object Uint8Array]",AC="[object Uint8ClampedArray]",_C="[object Uint16Array]",OC="[object Uint32Array]";function TC(e,t,r){var a=e.constructor;switch(t){case vC:return qd(e);case uC:case fC:return new a(+e);case bC:return sC(e,r);case kC:case wC:case SC:case EC:case xC:case CC:case AC:case _C:case OC:return Sb(e,r);case dC:return new a;case mC:case gC:return new a(e);case pC:return lC(e);case hC:return new a;case yC:return cC(e)}}var jp=Object.create,Eb=(function(){function e(){}return function(t){if(!Xe(t))return{};if(jp)return jp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function xb(e){return typeof e.constructor=="function"&&!sc(e)?Eb(rc(e)):{}}var PC="[object Map]";function IC(e){return Gr(e)&&$r(e)==PC}var Dp=qi&&qi.isMap,RC=Dp?Id(Dp):IC,NC="[object Set]";function jC(e){return Gr(e)&&$r(e)==NC}var Fp=qi&&qi.isSet,DC=Fp?Id(Fp):jC,FC=1,MC=2,LC=4,Cb="[object Arguments]",qC="[object Array]",zC="[object Boolean]",$C="[object Date]",UC="[object Error]",Ab="[object Function]",BC="[object GeneratorFunction]",VC="[object Map]",HC="[object Number]",_b="[object Object]",WC="[object RegExp]",KC="[object Set]",GC="[object String]",JC="[object Symbol]",YC="[object WeakMap]",XC="[object ArrayBuffer]",ZC="[object DataView]",QC="[object Float32Array]",eA="[object Float64Array]",tA="[object Int8Array]",rA="[object Int16Array]",nA="[object Int32Array]",aA="[object Uint8Array]",iA="[object Uint8ClampedArray]",sA="[object Uint16Array]",oA="[object Uint32Array]",St={};St[Cb]=St[qC]=St[XC]=St[ZC]=St[zC]=St[$C]=St[QC]=St[eA]=St[tA]=St[rA]=St[nA]=St[VC]=St[HC]=St[_b]=St[WC]=St[KC]=St[GC]=St[JC]=St[aA]=St[iA]=St[sA]=St[oA]=!0;St[UC]=St[Ab]=St[YC]=!1;function Ts(e,t,r,a,i,n){var s,o=t&FC,c=t&MC,l=t&LC;if(r&&(s=i?r(e,a,i,n):r(e)),s!==void 0)return s;if(!Xe(e))return e;var u=Vt(e);if(u){if(s=iC(e),!o)return Dd(e,s)}else{var f=$r(e),m=f==Ab||f==BC;if(Ka(e))return vb(e,o);if(f==_b||f==Cb||m&&!i){if(s=c||m?{}:xb(e),!o)return c?rC(e,Jx(s,e)):eC(e,Vx(s,e))}else{if(!St[f])return i?e:{};s=TC(e,f,o)}}n||(n=new sn);var d=n.get(e);if(d)return d;n.set(e,s),DC(e)?e.forEach(function(v){s.add(Ts(v,t,r,v,e,n))}):RC(e)&&e.forEach(function(v,y){s.set(y,Ts(v,t,r,y,e,n))});var h=l?c?Ld:Nf:c?Qs:nn,k=u?void 0:h(e);return Rd(k||e,function(v,y){k&&(y=v,v=e[y]),jd(s,y,Ts(v,t,r,y,e,n))}),s}function Ob(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function lA(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 cA(e,t){return t.length<2?e:ic(e,lA(t,0,-1))}var uA=Object.prototype,fA=uA.hasOwnProperty;function Tb(e,t){t=Hi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=va(t[r]);if(i==="__proto__"&&!fA.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=cA(e,t);return n==null||delete n[va(Ob(t))]}function dA(e){return ya(e)?void 0:e}var Mp=Kr?Kr.isConcatSpreadable:void 0;function mA(e){return Vt(e)||Li(e)||!!(Mp&&e&&e[Mp])}function eo(e,t,r,a,i){var n=-1,s=e.length;for(r||(r=mA),i||(i=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?eo(o,t-1,r,a,i):Md(i,o):a||(i[i.length]=o)}return i}function jf(e){var t=e==null?0:e.length;return t?eo(e,1):[]}function pA(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 Lp=Math.max;function Pb(e,t,r){return t=Lp(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=Lp(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),pA(e,this,o)}}function hA(e){return function(){return e}}function lc(e){return e}var gA=ql?function(e,t){return ql(e,"toString",{configurable:!0,enumerable:!1,value:hA(t),writable:!0})}:lc,yA=800,vA=16,bA=Date.now;function kA(e){var t=0,r=0;return function(){var a=bA(),i=vA-(a-r);if(r=a,i>0){if(++t>=yA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ib=kA(gA);function Rb(e){return Ib(Pb(e,void 0,jf),e+"")}var wA=1,SA=2,EA=4,qs=Rb(function(e,t){var r={};if(e==null)return r;var a=!1;t=Vi(t,function(n){return n=Hi(n,e),a||(a=n.length>1),n}),Wi(e,Ld(e),r),a&&(r=Ts(r,wA|SA|EA,dA));for(var i=t.length;i--;)Tb(r,t[i]);return r});function $l(e,t){if(pt in e&&Td.equal(e[pt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Xe(a)){const i=$l(a,t);if(i!==void 0)return i}}else if(Xe(r)){const a=$l(r,t);if(a!==void 0)return a}}function Df(e,t){const r=oe(e,pt,t);let a=e;gt in a&&(a={...a,[gt]:Td.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(s=>Xe(s)?Df(s,r):s)}:Xe(n)&&(a={...a,[i]:Df(n,r)});return a}function zd(e,t){const r=t[e];return[qs(t,[e]),r]}function Nb(e,t={},r=[],a=oe(t,[pt])){const i=e||"";let n,s=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));s===void 0||pt in t&&t[pt]===s?n=eu.get(t,c):t[Ss]===Cl&&(n=$l(t,s.replace(/\/$/,"")),n!==void 0&&(n=eu.get(n,c)))}else if(t[Ss]===Cl){const c=s?Td.resolve(s,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=$l(t,l.replace(/\/$/,"")),n!==void 0&&(s=n[pt],Rt(u)||(n=eu.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,...m]=r,d=[...m,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=zd(gt,n),u=Nb(l,t,[...r,i],s);return Object.keys(c).length>0?t[Ss]===nS||t[Ss]===Cl?{[_n]:[c,u]}:{...c,...u}:u}return n}function zs(e,t={},r=oe(t,[pt])){return Nb(e,t,[],r)}var xA=Object.prototype,CA=xA.hasOwnProperty;function AA(e,t){return e!=null&&CA.call(e,t)}function jb(e,t,r){t=Hi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var s=va(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&&Pd(i)&&oc(s,i)&&(Vt(e)||Li(e)))}function Ge(e,t){return e!=null&&jb(e,t,AA)}var _A="[object String]";function ba(e){return typeof e=="string"||!Vt(e)&&Gr(e)&&Bn(e)==_A}function Jr(e){let t;const r=oe(e,Qw);return ba(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var OA=1/0;function TA(e){var t=e==null?0:e.length;return t?eo(e,OA):[]}function Ff(e,t,r){(r!==void 0&&!Xs(e[t],r)||r===void 0&&!(t in e))&&Nd(e,t,r)}function PA(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 Db=PA();function $s(e){return Gr(e)&&ai(e)}function Mf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function IA(e){return Wi(e,Qs(e))}function RA(e,t,r,a,i,n,s){var o=Mf(e,r),c=Mf(t,r),l=s.get(c);if(l){Ff(e,r,l);return}var u=n?n(o,c,r+"",e,t,s):void 0,f=u===void 0;if(f){var m=Vt(c),d=!m&&Ka(c),h=!m&&!d&&Zs(c);u=c,m||d||h?Vt(o)?u=o:$s(o)?u=Dd(o):d?(f=!1,u=vb(c,!0)):h?(f=!1,u=Sb(c,!0)):u=[]:ya(c)||Li(c)?(u=o,Li(o)?u=IA(o):(!Xe(o)||Ys(o))&&(u=xb(c))):f=!1}f&&(s.set(c,u),i(u,c,a,n,s),s.delete(c)),Ff(e,r,u)}function Fb(e,t,r,a,i){e!==t&&Db(t,function(n,s){if(i||(i=new sn),Xe(n))RA(e,t,s,r,Fb,a,i);else{var o=a?a(Mf(e,s),n,s+"",e,t,i):void 0;o===void 0&&(o=n),Ff(e,s,o)}},Qs)}function cc(e,t){return Ib(Pb(e,t,lc),e+"")}function NA(e,t,r){if(!Xe(r))return!1;var a=typeof t;return(a=="number"?ai(r)&&oc(t,r.length):a=="string"&&t in r)?Xs(r[t],e):!1}function jA(e){return cc(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&&NA(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 DA=jA(function(e,t,r){Fb(e,t,r)});function $d(e,t,r,a){if(!Xe(e))return e;t=Hi(t,e);for(var i=-1,n=t.length,s=n-1,o=e;o!=null&&++i<n;){var c=va(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=Xe(u)?u:oc(t[i+1])?[]:{})}jd(o,c,l),o=o[c]}return e}function yt(e,t,r){return e==null?e:$d(e,t,r)}function Mb(e){return typeof e=="function"?e:lc}var FA=/\s/;function MA(e){for(var t=e.length;t--&&FA.test(e.charAt(t)););return t}var LA=/^\s+/;function qA(e){return e&&e.slice(0,MA(e)+1).replace(LA,"")}var qp=NaN,zA=/^[-+]0x[0-9a-f]+$/i,$A=/^0b[01]+$/i,UA=/^0o[0-7]+$/i,BA=parseInt;function VA(e){if(typeof e=="number")return e;if(Js(e))return qp;if(Xe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qA(e);var r=$A.test(e);return r||UA.test(e)?BA(e.slice(2),r?2:8):zA.test(e)?qp:+e}var zp=1/0,HA=17976931348623157e292;function WA(e){if(!e)return e===0?e:0;if(e=VA(e),e===zp||e===-zp){var t=e<0?-1:1;return t*HA}return e===e?e:0}function Lb(e){var t=WA(e),r=t%1;return t===t?r?t-r:t:0}var KA=9007199254740991,ru=4294967295,GA=Math.min;function qb(e,t){if(e=Lb(e),e<1||e>KA)return[];var r=ru,a=GA(e,ru);t=Mb(t),e-=ru;for(var i=hb(a,t);++r<e;)t(r);return i}function zb(e,t){return e&&Db(e,t,nn)}var JA="__lodash_hash_undefined__";function YA(e){return this.__data__.set(e,JA),this}function XA(e){return this.__data__.has(e)}function Ga(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Hn;++t<r;)this.add(e[t])}Ga.prototype.add=Ga.prototype.push=YA;Ga.prototype.has=XA;function ZA(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 Us(e,t){return e.has(t)}var QA=1,e_=2;function $b(e,t,r,a,i,n){var s=r&QA,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,m=!0,d=r&e_?new Ga: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;m=!1;break}if(d){if(!ZA(t,function(y,b){if(!Us(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){m=!1;break}}else if(!(h===k||i(h,k,r,a,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function t_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function Ud(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var r_=1,n_=2,a_="[object Boolean]",i_="[object Date]",s_="[object Error]",o_="[object Map]",l_="[object Number]",c_="[object RegExp]",u_="[object Set]",f_="[object String]",d_="[object Symbol]",m_="[object ArrayBuffer]",p_="[object DataView]",$p=Kr?Kr.prototype:void 0,nu=$p?$p.valueOf:void 0;function h_(e,t,r,a,i,n,s){switch(r){case p_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m_:return!(e.byteLength!=t.byteLength||!n(new zl(e),new zl(t)));case a_:case i_:case l_:return Xs(+e,+t);case s_:return e.name==t.name&&e.message==t.message;case c_:case f_:return e==t+"";case o_:var o=t_;case u_:var c=a&r_;if(o||(o=Ud),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;a|=n_,s.set(e,t);var u=$b(o(e),o(t),a,i,n,s);return s.delete(e),u;case d_:if(nu)return nu.call(e)==nu.call(t)}return!1}var g_=1,y_=Object.prototype,v_=y_.hasOwnProperty;function b_(e,t,r,a,i,n){var s=r&g_,o=Nf(e),c=o.length,l=Nf(t),u=l.length;if(c!=u&&!s)return!1;for(var f=c;f--;){var m=o[f];if(!(s?m in t:v_.call(t,m)))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;){m=o[f];var y=e[m],b=t[m];if(a)var w=s?a(b,y,m,t,e,n):a(y,b,m,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var E=e.constructor,p=t.constructor;E!=p&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof p=="function"&&p instanceof p)&&(k=!1)}return n.delete(e),n.delete(t),k}var k_=1,Up="[object Arguments]",Bp="[object Array]",Ao="[object Object]",w_=Object.prototype,Vp=w_.hasOwnProperty;function S_(e,t,r,a,i,n){var s=Vt(e),o=Vt(t),c=s?Bp:$r(e),l=o?Bp:$r(t);c=c==Up?Ao:c,l=l==Up?Ao:l;var u=c==Ao,f=l==Ao,m=c==l;if(m&&Ka(e)){if(!Ka(t))return!1;s=!0,u=!1}if(m&&!u)return n||(n=new sn),s||Zs(e)?$b(e,t,r,a,i,n):h_(e,t,c,r,a,i,n);if(!(r&k_)){var d=u&&Vp.call(e,"__wrapped__"),h=f&&Vp.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new sn),i(k,v,r,a,n)}}return m?(n||(n=new sn),b_(e,t,r,a,i,n)):!1}function uc(e,t,r,a,i){return e===t?!0:e==null||t==null||!Gr(e)&&!Gr(t)?e!==e&&t!==t:S_(e,t,r,a,uc,i)}var E_=1,x_=2;function C_(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 sn,f;if(!(f===void 0?uc(l,c,E_|x_,a,u):f))return!1}}return!0}function Ub(e){return e===e&&!Xe(e)}function A_(e){for(var t=nn(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,Ub(i)]}return t}function Bb(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function __(e){var t=A_(e);return t.length==1&&t[0][2]?Bb(t[0][0],t[0][1]):function(r){return r===e||C_(r,e,t)}}function O_(e,t){return e!=null&&t in Object(e)}function Vb(e,t){return e!=null&&jb(e,t,O_)}var T_=1,P_=2;function I_(e,t){return Ad(e)&&Ub(t)?Bb(va(e),t):function(r){var a=oe(r,e);return a===void 0&&a===t?Vb(r,e):uc(t,a,T_|P_)}}function R_(e){return function(t){return t==null?void 0:t[e]}}function N_(e){return function(t){return ic(t,e)}}function j_(e){return Ad(e)?R_(va(e)):N_(e)}function Bd(e){return typeof e=="function"?e:e==null?lc:typeof e=="object"?Vt(e)?I_(e[0],e[1]):__(e):j_(e)}function D_(e,t,r){var a=Vt(e),i=a||Ka(e)||Zs(e);if(t=Bd(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Xe(e)?r=Ys(n)?Eb(rc(e)):{}:r={}}return(i?Rd:zb)(e,function(s,o,c){return t(r,s,o,c)}),r}function F_(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 M_(e){return e!==e}function L_(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function Hb(e,t,r){return t===t?L_(e,t,r):F_(e,M_,r)}function Vd(e,t){var r=e==null?0:e.length;return!!r&&Hb(e,t,0)>-1}function Al(){}var q_=1/0,z_=Ii&&1/Ud(new Ii([,-0]))[1]==q_?function(e){return new Ii(e)}:Al,$_=200;function Wb(e,t,r){var a=-1,i=Vd,n=e.length,s=!0,o=[],c=o;if(n>=$_){var l=z_(e);if(l)return Ud(l);s=!1,i=Us,c=new Ga}else c=o;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=c.length;m--;)if(c[m]===f)continue e;o.push(u)}else i(c,f,r)||(c!==o&&c.push(f),o.push(u))}return o}function Kb(e){return e&&e.length?Wb(e):[]}function Bs(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 U_=cc(function(e){return Wb(eo(e,1,$s,!0))});function Yr(e){let{type:t}=e;return!t&&e.const?Bs(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 Un(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&&Ae(o)?i[n]=Un(s,o):e&&t&&(Yr(e)==="object"||Yr(t)==="object")&&n===Xv&&Array.isArray(s)&&Array.isArray(o)?i[n]=U_(s,o):i[n]=o,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var B_="[object Number]";function Gb(e){return typeof e=="number"||Gr(e)&&Bn(e)==B_}function Jb(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,[Ye,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===i||!((a=o.enum)===null||a===void 0)&&a.includes(i)))return n}}}function Ul(e,t,r,a,i){if(t===void 0)return 0;const n=Jb(t,r,i);if(Gb(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(i&&Ge(o,[Ye,i])){const c=oe(t,i),l=oe(o,[Ye,i],{});if(e.isValid(l,c,a))return s}else if(o[Ye]){const c={anyOf:Object.keys(o[Ye]).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 V_=Object.prototype;function Es(e){for(const t in e)if(V_.hasOwnProperty.call(e,t))return!1;return!0}const H_=["array","boolean","integer","null","number","object","string"];new Set(H_);const W_=["$defs","definitions","properties","patternProperties","dependencies"];new Set(W_);const K_=["items","allOf","oneOf","anyOf"];new Set(K_);const G_=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(G_);function _l(e){return typeof e=="object"}function kn(e){return _l(e)?Es(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function au(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 J_(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 Hp(e){return e.length===0}function iu(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 Yb(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 Y_(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 X_(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const Wp=X_,Xb=()=>0,Z_=e=>e===void 0,Q_=e=>typeof e!="object",Kp={boolean:0,number:1,string:2};function eO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):Kp[r]-Kp[a]}function tO(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 fc(e,t,r=Xb){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Si(e){return fc(Z_,e)}function na(e,t){return fc(r=>r===void 0||e(r),t)}function su(e,t){return fc(Array.isArray,e,t)}const Mt=Si(Ci),ou=na(e=>e===0,(e,t)=>e-t);function rO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Wp(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 p=0;p<E;p++){const g=Ci(b[p],w[p]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let p=0;p<E;p++){const g=b[p],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=iu(k),y=Wp(e,Yb(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function s(k,v){if(_l(k)){if(_l(v)){const y=Object.keys(k),b=Object.keys(v),w=tO(y,b),E=w.length;for(let p=0;p<E;p++){const g=w[p];if(k[g]===v[g])continue;const C=(h[g]??o)(k[g],v[g]);if(C!==0)return C}return 0}return v===!0&&Es(k)?0:1}return _l(v)?k===!0&&Es(v)?0:-1:Ci(k,v)}const o=Si(l),c=fc(Q_,su(a(o),iu(l)),eO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Si(s),f=na(Es,a(u)),m=Si(i(s)),d=na(kn,s),h={$id:Mt,$comment:Mt,$defs:f,$ref:Mt,$schema:Mt,const:o,contains:u,contentEncoding:Mt,contentMediaType:Mt,default:o,definitions:f,description:Mt,else:u,examples:o,exclusiveMaximum:Mt,exclusiveMinimum:Mt,format:Mt,if:u,maximum:Mt,maxItems:Mt,maxLength:Mt,maxProperties:Mt,minimum:Mt,multipleOf:Mt,not:u,pattern:Mt,propertyNames:u,readOnly:Mt,then:u,title:Mt,writeOnly:Mt,uniqueItems:na(k=>k===!1,Xb),minLength:ou,minItems:ou,minProperties:ou,required:na(Hp,n),enum:na(Hp,i(l)),type:Si((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:na(k=>!Array.isArray(k)&&kn(k),su(s,iu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:na(Es,a(Si(su(s,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:s}}function Gp(e){return e}const Zb=(e,t)=>e?Zb(t%e,e):t,nO=(e,t)=>Math.abs(e*t)/Zb(e,t);function aO(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function lu(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 cu(e,t){return e||t}function Jp(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 iO(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function Ra(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const sO=["properties","patternProperties","additionalProperties"];function Yp(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 Xp=[[],[]];function Zp(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 oO=["items","additionalItems"],lO=["if","then","else"];function Qp(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 uu(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 Na(e,t,r){return[e,t,r]}function cO(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 uO=[Na("minimum","maximum",e=>e.maximum>=e.minimum),Na("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Na("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Na("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Na("minLength","maxLength",e=>e.maxLength>=e.minLength),Na("minItems","maxItems",e=>e.maxItems>=e.minItems),Na("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function fO({mergePatterns:e=aO,isSubRegExp:t=Object.is,intersectJson:r=J_,deduplicateJsonSchemaDef:a=Gp,defaultMerger:i=Gp,assigners:n=[],checks:s=uO,mergers:o}={}){function c(E){const p=E.length;let g=E[0];for(let S=1;S<p;S++){const C=y(g,E[S]);if(C===!1)return!1;kn(C)||(g=C)}return g}function l(E,p,g,S,C,O,_){if(E.length=0,g===!1)return!1;if(E.push(g),C!==void 0){if(C===!1)return!1;E.push(C)}if(Zp(E,p,O))return!1;const A=E.length<2;if(_===!1){if(A)return;if(Zp(E,p,S))return!1}else A&&_!==void 0&&E.push(_);return E.length===1?E[0]:c(E)}function u(E,p,g,S,C,O){const _=g.length;if(_>0&&C!==!1)if(O)Object.assign(E,p);else for(let x=0;x<_;x++){const A=g[x];S.has(A)||(E[A]=y(p[A],C))}return E}const f=(E,{properties:p={},patternProperties:g,additionalProperties:S=!0},{properties:C={},patternProperties:O,additionalProperties:_=!0})=>{const x=kn(S),A=kn(_);if(x&&A)return Ra(E,"properties",b(p,C)),Ra(E,"patternProperties",g&&O?b(g,O):g??O),delete E.additionalProperties,E;const N=y(S,_);Ra(E,"additionalProperties",N);const I={},F=Object.keys(p),$=F.length,[Y,Z]=g?Yp(g):Xp,[ie,P]=O?Yp(O):Xp,D=[],U=new Set,T=A?void 0:_;for(let J=0;J<$;J++){const Q=F[J];U.add(Q);const q=l(D,Q,p[Q],Y,C[Q],ie,T);q!==void 0&&(I[Q]=q)}const R=Object.keys(C),M=R.length,B=x?void 0:S;for(let J=0;J<M;J++){const Q=R[J];if(U.has(Q))continue;const q=l(D,Q,C[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}Ra(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&lu(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],O[Q])}),V=u(V,g,Z,K,_,A),V=u(V,O,P,K,S,x),Ra(E,"patternProperties",V),E},m=(E,{items:p=[],additionalItems:g},{items:S=[],additionalItems:C})=>{const O=Array.isArray(p),_=Array.isArray(S),x=[];if(E.items=x,O&&_){const[A,N,I]=p.length<S.length?[p.length,g,S]:[S.length,C,p];let F=0;for(;F<A;F++)x.push(y(p[F],S[F]));if(N===!1)E.additionalItems=!1;else{const $=N===void 0||kn(N);for(;F<I.length;F++)x.push($?I[F]:y(I[F],N));Ra(E,"additionalItems",g!==void 0&&C!==void 0?y(g,C):g??C)}}else if(O||_){const[A,N,I]=O?[p,S,g]:[S,p,C];Ra(E,"additionalItems",I&&y(I,N));for(let F=0;F<A.length;F++)x.push(y(A[F],N))}else delete E.additionalItems,E.items=y(p,S);return E},d=(E,p,g)=>{Qp(E,p);const S=Qp({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,p){const g=[];if(lu(E,p,(S,C)=>{try{g.push(y(S,C))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(p)}"; the merged result is empty`);return a(g)}const k=iO([[sO,f],[oO,m],[lO,d],...n]),v=cO(s);function y(E,p){if(E===!1||p===!1)return!1;if(kn(E))return kn(p)?!0:p;if(kn(p))return E;let g={...E};const S=new Set,C=new Set,O=Reflect.ownKeys(p),_=O.length;for(let x=0;x<_;x++){const A=O[x],N=p[A];if(N===void 0)continue;const I=v.get(A);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&C.add(P.check)}}const F=E[A];if(F===void 0){g[A]=N;continue}const $=k.get(A);if($){S.add($);continue}const Y=w[A]??i;g[A]=Y(F,N)}for(const x of S)g=x(g,E,p);for(const x of C)x(g);return g}const b=Jp(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,p)=>{if(E===p)return E;const g=Array.isArray(E),S=Array.isArray(p);if(!g&&!S){const C=uu(E,p);if(C!==void 0)return C}else if(g||S){const C=new Set;if(g&&S)lu(E,p,(_,x)=>{const A=uu(_,x);A!==void 0&&C.add(A)});else{const _=g?E:p,x=g?p:E,A=_.length;for(let N=0;N<A;N++){const I=uu(x,_[N]);I!==void 0&&C.add(I)}}const O=C.size;if(O===1)return C.values().next().value;if(O>1)return Array.from(C)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${p.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,p)=>{const g=a([E,p]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:cu,writeOnly:cu,enum:(E,p)=>{const g=r(E,p);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(p)}"`);return g},anyOf:h,oneOf:h,allOf:(E,p)=>a(E.concat(p)),propertyNames:y,contains:y,dependencies:Jp((E,p)=>Array.isArray(E)?Array.isArray(p)?au(E,p):y(p,{required:E}):Array.isArray(p)?y(E,{required:p}):y(E,p)),examples:(E,p)=>{if(!Array.isArray(E)||!Array.isArray(p))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(p)}"`);return au(E,p)},multipleOf:(E,p)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(p);)g*=10,E*=10,p*=10;return nO(E,p)/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:cu,required:au,...o};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function dO(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 mO(e){return t=>e(dO(t))}const{compareSchemaDefinitions:pO,compareSchemaValues:hO}=rO(),{mergeArrayOfSchemaDefinitions:gO}=fO({intersectJson:Y_(hO),deduplicateJsonSchemaDef:Yb(pO)}),Qb=mO(gO);function er(e,t,r={},a,i,n=!1){return xn(e,t,r,a,void 0,void 0,i,n)[0]}function ek(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function yO(e,t,r,a,i,n,s){const{if:o,then:c,else:l,...u}=t,f=e.isValid(o,n||{},r);let m=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(xn(e,h,r,n,a,i,s))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(xn(e,h,r,n,a,i,s))}}else{const h=f?c:l;if(h!==void 0){const k=ek(h);d=d.concat(xn(e,k,r,n,a,i,s))}}return d.length&&(m=d.map(h=>Un(u,h))),m.flatMap(h=>xn(e,h,r,n,a,i,s))}function tk(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>qb(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function rk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(yt(r,[a],e.patternProperties[a]),r),{})}function vO(e,t,r,a,i,n,s,o){const c=nk(e,t,r,a,i,n,s,o);if(c.length>1||c[0]!==t)return c;if(wd in t)return ik(e,t,r,a,i,n,s).flatMap(u=>xn(e,u,r,n,a,i,s));if(_n in t&&Array.isArray(t[_n])){const l=t.allOf.map(f=>xn(e,f,r,n,a,i,s));return tk(l).map(f=>({...t,allOf:f}))}return[t]}function nk(e,t,r,a,i,n,s,o){const c=ua(t,r,i,void 0,o);return c!==t?xn(e,c,r,n,a,i,s,o):[t]}function ua(e,t,r,a,i,n=!1){if(!Ae(e))return e;let s=e,o=a;if(gt in s){const{$ref:c,...l}=s;if(r.includes(c))return n?{...s,[Ed]:!0}:s;r.push(c),s={...zs(c,t,o),...l,[xl]:c},pt in s&&(o=s[pt])}if(Ye in s){const c=[],l=D_(s[Ye],(u,f,m)=>{const d=[...r];u[m]=ua(f,t,d,o,i,!i),c.push(d)},{});DA(r,Kb(TA(c))),s={...s,[Ye]:l}}if(Mi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:ua(s.items,t,r,o,i)}),i){let c,l;We in e&&Array.isArray(e[We])?(c=We,l=s[We]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=s[Fe]),c&&l&&(s={...s,[c]:l.map(u=>ua(u,t,r,o,i))})}return Je(e,s)?e:s}function bO(e,t,r,a,i){const n={...t,properties:{...t.properties}},s=a&&Ae(a)?a:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(_f in n){const c=rk(n,o);if(!Rt(c)){n.properties[o]=er(e,{[_n]:Object.values(c)},r,oe(s,[o]),i),n.properties[o][la]=!0;return}}if(xi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=er(e,{[gt]:oe(n.additionalProperties,[gt])},r,oe(s,[o]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:We in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:Bs(oe(s,[o]))}:c={type:Bs(oe(s,[o]))},n.properties[o]=c,n.properties[o][la]=!0}else n.properties[o]={type:"null"},n.properties[o][la]=!0}}),n}function kO(e){return Qb(e)}function xn(e,t,r,a,i=!1,n=[],s,o){return Ae(t)?vO(e,t,r,i,n,a,s,o).flatMap(l=>{var u;let f=l;if(Sd in f)return yO(e,f,r,i,n,a,s);if(_n 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):kO(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 Ye in f&&_f in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=rk(d,h);return Rt(k)||(d.properties[h]=er(e,{allOf:[d.properties[h],...Object.values(k)]},r,oe(a,[h]),s)),d},{...f,properties:{...f.properties}})),_f in f||xi in f&&f.additionalProperties!==!1?bO(e,f,r,a,s):f}):[{}]}function wO(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=Jr(t);n=n.map(m=>ua(m,r,[]));const f=Ul(e,l,n,r,u);if(a){const m=ak(n,!1,r);return Ul(e,l,m,r,u),n.map(d=>Un(c,d))}return[Un(c,n[f])]}return[t]}function ak(e,t=!1,r){return e.map(a=>{if(!Ae(a))return ek(a);const i=t&&r?ua(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function ik(e,t,r,a,i,n,s){const{dependencies:o,...c}=t;return wO(e,c,r,a,n).flatMap(u=>sk(e,o,u,r,a,i,n,s))}function sk(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]=zd(l,t);return Array.isArray(f)?c[0]=SO(r,f):Ae(f)&&(c=EO(e,r,a,l,f,i,n,s,o)),c.flatMap(m=>sk(e,u,m,a,i,n,s,o))}return c}function SO(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 EO(e,t,r,a,i,n,s,o,c){return xn(e,i,r,o,n,s,c).flatMap(u=>{const{oneOf:f,...m}=u,d=Un(t,m);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:nk(e,v,r,n,s,o));return tk(h).flatMap(v=>xO(e,d,r,a,v,n,s,o,c))})}function xO(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 m={type:"object",properties:{[a]:f}};return e.isValid(m,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,[m]=zd(a,f.properties),d={...f,properties:m};return xn(e,d,r,o,n,s,c).map(k=>Un(t,k))})}function xs(e,t,r,a,i,n={},s){if(Array.isArray(r[i])){const c=Jr(r)||a,l=r[i].map(f=>er(e,f,t,n,s)),u=oe(n,c);if(u!==void 0)return l.find(f=>Je(oe(f,[Ye,c,Ha],oe(f,[Ye,c,mr])),u))}}function ok(e,t,r,a,i){let n=r;if(Ge(r,gt)&&(n=er(e,r,t,void 0,i)),Rt(a))return n;const s=Array.isArray(a)?[...a]:a.split("."),[o,...c]=s;if(o!==void 0&&o!==""&&Ge(n,o))return n=oe(n,o),ok(e,t,n,c,i)}function Ol(e,t,r,a,i,n){const s=ok(e,t,r,a,n);return s===void 0?i:s}const eh={title:"!@#$_UNKNOWN_$#@!"};function CO(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=Ol(e,t,o,[Ye,d],{},n),Ge(o,Fe)?o=xs(e,t,o,l,Fe,oe(i,d),n):Ge(o,We)&&(o=xs(e,t,o,l,We,oe(i,d),n))}),Ge(o,Fe)?o=xs(e,t,o,l,Fe,i,n):Ge(o,We)&&(o=xs(e,t,o,l,We,i,n));let u=Ol(e,t,o,[Ye,c],eh,n);u===eh&&(u=void 0);const f=Ol(e,t,o,Xv,[],n);let m;return u&&Array.isArray(f)&&(m=f.includes(l)),{field:u,isRequired:m}}function AO(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 _O(e,t){return function(r,a){if(r==null)return r;if(!ai(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 lk=_O(zb);function OO(e,t,r,a,i){return i(e,function(n,s,o){r=a?(a=!1,n):t(r,n,s,o)}),r}function TO(e,t,r){var a=Vt(e)?AO:OO,i=arguments.length<3;return a(e,Bd(t),r,i,lk)}const PO={type:"object",$id:Zw,properties:{__not_really_there__:{type:"number"}}};function Lf(e,t,r,a,i){let n=0;return r&&(Xe(r.properties)?n+=TO(r.properties,(s,o,c)=>{const l=oe(a,c);if(typeof o=="boolean")return s;if(Ge(o,gt)){const u=er(e,o,t,l,i);return s+Lf(e,t,u,l||{},i)}if((Ge(o,Fe)||Ge(o,We))&&l){const u=Ge(o,Fe)?Fe:We,f=Jr(o);return s+zi(e,t,l,oe(o,u),-1,f,i)}if(o.type==="object"){const u=Xe(l)?1:0;return s+u+Lf(e,t,o,l,i)}if(o.type===Bs(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):ba(r.type)&&r.type===Bs(a)&&(n+=1)),n}function zi(e,t,r,a,i=-1,n,s){const o=a.map(m=>ua(m,t,[])),c=Jb(r,a,n);if(Gb(c))return c;const l=o.reduce((m,d,h)=>(Ul(e,r,[PO,d],t,n)===1&&m.push(h),m),[]);if(l.length===1)return l[0];l.length||qb(o.length,m=>l.push(m));const u=new Set,{bestIndex:f}=l.reduce((m,d)=>{const{bestScore:h}=m,k=o[d],v=Lf(e,t,k,r,s);return u.add(v),v>h?{bestIndex:d,bestScore:v}:m},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function ck(e){const t=e[mr],r=Yr(e);return Ae(t)&&ba(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function uk(e){return Array.isArray(e.enum)&&e.enum.length===1||mr in e}function Hd(e){return Array.isArray(e.items)&&e.items.every(t=>Ae(t))}function $i(e){return e==null}function Vs(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?Vs(n[u],t[u],r,a,i):l);return(r||i)&&c.length<o.length&&c.push(...o.slice(c.length)),c}if(Ae(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var c;const l=oe(t,o),u=Ae(e)&&o in e,f=o in t,m=(c=oe(e,o))!==null&&c!==void 0?c:{},d=u&&Ae(m)&&Object.values(m).some(v=>Ae(v)),h=u&&Ae(oe(e,o)),k=f&&Ae(l);return h&&k&&!d?(s[o]={...oe(e,o),...l},s):(s[o]=Vs(oe(e,o),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&$i(t)||typeof t=="number"&&Number.isNaN(t))||i&&!$i(t)?e:t}function ka(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},s=t[i];if(e&&i in e&&Ae(s))a[i]=ka(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 IO(e){if(Xw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(mr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function RO(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 Ja(e,t){if(e.enum){let n,s;if(t){const{enumNames:c,enumOrder:l}=ke(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=RO(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=Jr(e);if(t){const{optionsSchemaSelector:n=i}=ke(t);i=n}return r==null?void 0:r.map((n,s)=>{var o,c,l;const{title:u}=ke(a==null?void 0:a[s]),f=n;let m,d=u;if(i){const h=oe(f,[Ye,i],{});m=oe(h,Ha,oe(h,mr)),d=(c=(o=d??(h==null?void 0:h.title))!==null&&o!==void 0?o:f.title)!==null&&c!==void 0?c:String(m)}else m=IO(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(m);return{schema:f,label:d,value:m}})}function dc(e,t,r={},a){const i=er(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"&&uk(s)):!1}function Wd(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:dc(e,t.items,r,a)}const NO=["string","number","integer","boolean","null"];var Ui;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ui||(Ui={}));function fu(e,t=Ui.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!==Ui.Ignore&&Ae(e.additionalItems)?e.additionalItems:{}}function fk(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Rt(t)&&r===null?null:t}function th(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||!Ae(r)||!Rt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;Ae(r)?l==="skipEmptyDefaults"?Rt(r)||(e[t]=r):(!Rt(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 fa(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:m}=r;let d=Ae(i)?i:{};const h=Ae(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=o;if(h[mr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!ck(h))k=h[mr];else if(Ae(k)&&Ae(h.default)&&!h[We]&&!h[Fe]&&!h[gt])v?k=ka(h.default,k):k=ka(k,h.default);else if(Ha in h&&!v&&!h[We]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];o.includes(g)||(w=o.concat(g),y=zs(g,n));const S=i===void 0||Ae(i)&&Rt(i);y&&!k&&S&&(k=h.default),f&&y&&!Ae(i)&&(d=i)}else if(wd in h){const g={...rh(e,h,r,k),...d};[y]=ik(e,h,n,!1,[],g,l)}else if(Hd(h)&&!v)k=h.items.map((g,S)=>fa(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 C=Jr(h),{type:O="null"}=S;!Array.isArray(O)&&NO.includes(O)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}else if(We in h){const{anyOf:g,...S}=h;if(g.length===0)return;const C=Jr(h);y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}if(y)return fa(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=h.default);const E=rh(e,h,r,k);let p=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,C=Kd(e,h,n,i,c,l);(!Ae(i)||_n in h)&&(p=Vs(p,C,S,!0))}return p}function Kd(e,t,r,a,i,n){const s=(i==null?void 0:i.allOf)==="populateDefaults"&&_n in t,o=s?er(e,t,r,a,n):t,c=!uk(o)&&dc(e,o,r,n);let l=a;if(c){const f=Ja(o);l=(f==null?void 0:f.some(d=>Je(d.value,a)))?a:void 0}return o[mr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=o.const:Ae(l)&&Ae(o.properties)&&(l=Object.keys(o.properties).reduce((f,m)=>{const d=oe(o,[Ye,m],{});return m in f&&(s||Ae(d)&&_n in d)&&(f[m]=Kd(e,d,r,oe(f,m),i,n)),f},{...l})),l}function jO(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 m=Ae(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&_n in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Sd in d?er(e,d,a,m,o):d,v=k[mr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const p=oe(k,[Ye,w],{}),g=Ae(v)&&v[w]!==void 0,S=(Ae(p)&&mr in p||g)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!ck(p),C=fa(e,p,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[w]),rawFormData:oe(m,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return th(b,w,C,i,c,k.required,s,S,(p==null?void 0:p.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=Ae(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(m).filter(p=>!k.properties||!k.properties[p]).forEach(p=>{w.add(p),E.push(p)}),Ae(f)&&E.length===0&&Object.keys(f).filter(p=>!k.properties||!k.properties[p]).forEach(p=>w.add(p)),w.forEach(p=>{var g;const S=fa(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[p]),rawFormData:oe(m,[p]),required:(g=k.required)===null||g===void 0?void 0:g.includes(p),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});th(y,p,S,i,c,E)})}return fk(t,y)}}function DO(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 m,d;let h=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",p=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),C=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((x,A)=>{const N=fu(k,Ui.Fallback,A),I=Array.isArray(r)?r[A]:void 0;return fa(e,N,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:x,rawFormData:I,required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const x=fu(k);if(w)h=r;else{const A=r.map((I,F)=>fa(e,x,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:I,parentDefaults:oe(h,[F]),required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Vs(h,A,(E&&o||p)&&b)}}const O=Array.isArray(h)?h.length:0;if(w)return l&&!o?h:h??C;if(E&&!o)return h||void 0;let _;if(!k.minItems||Wd(e,k,a,s)||g(e,k,a)||k.minItems<=O)_=h||!o&&!c?h:C;else{const x=h||[],A=fu(k,Ui.Invert),N=A.default,I=Array.from({length:k.minItems-O},()=>fa(e,A,{parentDefaults:N,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:l}));_=x.concat(I)}return fk(t,_)}function rh(e,t,r={},a){switch(Yr(t)){case"object":return jO(e,t,r,a);case"array":return DO(e,t,r,a);default:return}}function dk(e,t,r,a,i=!1,n,s,o){if(!Ae(t))throw new Error(`Invalid schema: ${t}`);const c=er(e,t,a,r,s),l=fa(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(c.type!=="object"&&Ae(c.default))return{...l,...r};if(Ae(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",m=Kd(e,c,a??c,r,n,s);return Vs(l,m,!0,f,!0)}return l}function mk(e={}){return"widget"in ke(e)&&ke(e).widget!=="hidden"}function pk(e,t,r={},a,i){if(r[Cd]==="files")return!0;if(t.items){const n=er(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function FO(e,t,r={},a,i,n){const s=ke(r,i),{label:o=!0}=s;let c=!!o;if(c){const l=Yr(t),u=!!t[la];l==="array"&&(c=u||Wd(e,t,a,n)||pk(e,t,r,a,n)||mk(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[Cd]&&(c=!1),r!=null&&r[tS]&&(c=!1)}return c}function hk(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var s=t[a],o=ic(e,s);r(o,s)&&$d(n,Hi(s,e),o)}return n}function MO(e,t){return hk(e,t,function(r,a){return Vb(e,a)})}var gk=Rb(function(e,t){return e==null?{}:MO(e,t)});function LO(e,t){if(t.length===0&&typeof e!="object")return e;const r=gk(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function qO(e,t){const r=(i,n)=>typeof i!="object"||Rt(i)||n&&!Rt(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[xd]&&l[El]!==""?n.push(l[El]):a(l,n,u)}else c===El&&l!==""&&s.forEach(u=>{const f=oe(t,u),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(u)})}),n};return a(e)}function yk(e){return $i(e)||e===""?!0:Array.isArray(e)?e.length===0:Ae(e)?Object.values(e).every(yk):!1}function zO(e,t){return t?t(e):Qb(e)}function $O(e,t,r={},a,i){function n(h){return Ae(h)}function s(h){return Ae(h)}function o(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:p}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(O,_,x,A=!1){var N;const I=d(_,x,v[O]);if(!A&&Ae(I)){let F=s(_)?_:{};F.$ref!==void 0&&(F=zs(F.$ref,r));const $=new Set((N=F.required)!==null&&N!==void 0?N:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&yk(ie)))return}I!==void 0&&(v[O]=I)}if(b!==void 0)for(const[O,_]of Object.entries(b))S(O,_,k[O],g.has(O));let C;if(E!==void 0){C=[];const O=Object.entries(E).map(([x,A])=>[new RegExp(x),A]),_=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))if(!_.has(x)){const N=O.find(([I])=>I.test(x));N===void 0?C.push(x):S(x,N[1],A)}}if(w!==void 0&&w!==!1){const O=w;if(C!==void 0)for(const _ of C)S(_,O,k[_]);else{const _=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))_.has(x)||S(x,O,A)}}if(p!==void 0)for(const[O,_]of Object.entries(k))v[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 p=(s(y)?e.isValid(y,k,r):y)?b:w;return p===void 0?v:d(p,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||dc(e,k,r,i))return y;const b=ak(h,!0,r),w=zi(e,r,v,b,0,Jr(k),i),E=h[w],p=Ae(E)?ua(E,r,[]):b[w];return d(p,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||Ae(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 m(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||Rt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(zs(b,r),k,v);if(w){y=zO(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 p=Yr(y);if(p==="object"){if(!n(k))return;E=o(y,k,n(E)?E:{})}else if(p==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return m(y,k,l(y,k,E))}return d(t,a)}const qr=Symbol("no Value");function vk(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=>mr in a?a[mr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:qr).filter(a=>a!==qr);return r.length>0?r:void 0}function UO(e,t){const r=vk(e);if(!r||r.some(i=>Je(i,t)))return qr;const a=oe(e,Ha,qr);return a!==qr&&r.some(i=>Je(i,a))?a:r.length===1?r[0]:void 0}function qf(e,t,r,a,i={},n){let s;if(Ge(r,Ye)){const o={};if(Ge(a,Ye)){const u=oe(a,Ye,{});Object.keys(u).forEach(f=>{Ge(i,f)&&(o[f]=void 0)})}const c=Object.keys(oe(r,Ye,{})),l={};c.forEach(u=>{const f=oe(i,u);let m=oe(a,[Ye,u],{}),d=oe(r,[Ye,u],{});Ge(m,gt)&&(m=er(e,m,t,f,n)),Ge(d,gt)&&(d=er(e,d,t,f,n));const h=oe(m,"type"),k=oe(d,"type");if(!h||h===k)if(Ge(o,u)&&delete o[u],k==="object"||k==="array"&&Array.isArray(f)){const v=qf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=oe(d,Ha,qr),y=oe(m,Ha,qr);v!==qr&&v!==f&&(y===f?o[u]=v:oe(d,"readOnly")===!0&&(o[u]=void 0));const b=oe(d,mr,qr),w=oe(m,mr,qr);if(b!==qr&&b!==f&&(o[u]=w===f?b:void 0),Ge(i,u)){const E=UO(d,f);E!==qr&&(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)){Ge(o,gt)&&(o=er(e,o,t,i,n)),Ge(c,gt)&&(c=er(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((m,d)=>{const h=qf(e,t,c,o,d,n);return h!==void 0&&(f<0||m.length<f)&&m.push(h),m},[]);else{const m=vk(c),d=m?i.filter(h=>m.some(k=>Je(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 aa(e,t,r,a,i,n=[],s){if(gt in t||wd in t||_n in t||Sd in t){const c=er(e,t,a,i,s);if(n.findIndex(u=>Je(u,c))===-1)return aa(e,c,r,a,i,n.concat(c),s)}let o={[El]:r.replace(/^\./,"")};if(Fe in t||We in t){const c=Fe in t?t.oneOf:t.anyOf,l=Jr(t),u=zi(e,a,i,c,0,l,s),f=c[u];o={...o,...aa(e,f,r,a,i,n,s)}}if(xi in t&&t[xi]!==!1){yt(o,xd,!0);const c=Xe(t[xi])?t[xi]:{},l=oe(t,Ye,{});for(const u of Object.keys(i??{}))u in l||(o[u]=aa(e,c,`${r}.${u}`,a,oe(i,[u]),n,s))}if(Mi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?o[f]=aa(e,c[f],`${r}.${f}`,a,u,n,s):l?o[f]=aa(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]=aa(e,c,`${r}.${f}`,a,u,n,s)})}else if(Ye in t)for(const c in t.properties){const l=oe(t,[Ye,c],{});o[c]=aa(e,l,`${r}.${c}`,a,oe(i,[c]),n,s)}return o}function BO(e,t,r="",a,i,n){return aa(e,t,r,a,i,void 0,n)}class VO{constructor(t,r,a,i){(r==null?void 0:r[Ss])===Cl?this.rootSchema=Df(r,oe(r,pt,"#")):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||!Je(this.rootSchema,r)||!Je(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return CO(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 dk(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return FO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return zi(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return Ul(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Ol(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return pk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Wd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return dc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return $O(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return er(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return qf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return BO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function HO(e,t,r={},a){return new VO(e,t,r,a)}function WO(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 ia(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function bk(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 bk(t,e).reverse();const o=[];for(let c=n;c<=s;c+=1)o.push({value:c,label:ia(c,2)});return o}function KO(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 GO(e,t){return KO(e,t)}function mc(e,t=[],r){if(Array.isArray(e))return e.map(n=>mc(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function kk(e,t,r=[]){const a=mc(e,r);return Array.isArray(t)?t.filter(i=>!Je(i,a)):Je(a,t)?void 0:t}function Ki(e,t){return Array.isArray(t)?t.some(r=>Je(r,e)):Je(t,e)}function wk(e,t=[],r=!1){const a=t.map((i,n)=>Ki(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function JO(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=wk(e,t,r);return typeof s>"u"?i:s}function Sk(e,t,r=[]){const a=mc(e,r);if(!$i(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 nh(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 on(e,t,r="indexed",a){return r!=="realValue"?mc(e,t,a):Array.isArray(e)?e.map(i=>nh(i,t,a)):nh(e,t,a)}function to(e,t,r="indexed"){return r!=="realValue"?String(t):$i(e)?"":String(typeof e=="object"?t:e)}var YO=1,XO=4;function Bl(e){return Ts(e,YO|XO)}function ZO(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:$d(e,t,r,a)}class Ek{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={},ZO(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Bl(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=oe(a,Zt);return Array.isArray(i)||(i=[],a[Zt]=i),Array.isArray(t)?yt(a,Zt,[...new Set([...i,...t])]):yt(a,Zt,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return yt(a,Zt,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return yt(r,Zt,[]),this}}var QO=200;function eT(e,t,r,a){var i=-1,n=Vd,s=!0,o=e.length,c=[],l=t.length;if(!o)return c;t.length>=QO&&(n=Us,s=!1,t=new Ga(t));e:for(;++i<o;){var u=e[i],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=l;m--;)if(t[m]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var tT=cc(function(e,t){return $s(e)?eT(e,eo(t,1,$s,!0)):[]});function rT(e,t){if(e==null)return{};var r=Vi(Ld(e),function(a){return[a]});return t=Bd(t),hk(e,r,function(a,i){return t(a,i[0])})}function ah(e,t){const r=ya(e),a=ya(t);if(e===t||!r&&!a)return[];if(r&&!a)return nn(e);if(!r&&a)return nn(t);const i=nn(rT(e,(s,o)=>!Je(s,oe(t,o)))),n=tT(nn(t),nn(e));return[...i,...n]}function nT(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},m={type:"year",range:r,value:s},d=[];switch(a){case"MDY":d.push(f,u,m);break;case"DMY":d.push(u,f,m);break;case"YMD":default:d.push(m,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 aT(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 iT(e,t,r={},a=!0){const i={type:t||"text",...aT(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 ro(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const ih={props:{disabled:!1},submitText:"Submit",norender:!1};function xk(e={}){const t=ke(e);if(t!=null&&t[Ml]){const r=t[Ml];return{...ih,...r}}return ih}function xe(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 sT=0;function Ck(e){var t=++sT;return Od(e)+t}function Gd(){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,Ck("test-id-")),e.get(r)}})}var _o={exports:{}},ft={};/**
|
|
32
|
+
*/var np;function Yw(){return np||(np=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})()})(Gc)),Gc.exports}var Xw=Yw();const Pi=Pn(Xw);function Ae(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 Zw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Ae(e.additionalItems)}function Xv(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 ap(e){if(e==="")return;if(e===null)return null;const t=Xv(),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 la=Symbol("__additional_property"),xi="additionalProperties",_n="allOf",We="anyOf",mr="const",Ha="default",wd="dependencies",Qw="enum",Zt="__errors",pt="$id",Sd="if",Mi="items",eS="_$junk_option_schema_id$_",El="$name",Fe="oneOf",_f="patternProperties",Ye="properties",Jc="readonly",Zv="required",Ml="submitButtonOptions",gt="$ref",xl=Symbol("__rjsf_ref"),Ed=Symbol("__rjsf_ref_cycle"),Ss="$schema",Qv="root",eb="_",tS=["discriminator","propertyName"],ip="formContext",rS="layoutGridLookupMap",tb="__rjsf",xd=`${tb}_additionalProperties`,rb=`${tb}_rootSchema`,nS="ui:field",Cd="ui:widget",ca="ui:options",Of="ui:globalOptions",aS="ui:definitions",iS="https://json-schema.org/draft/2019-09/schema",Cl="https://json-schema.org/draft/2020-12/schema";function ke(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===Cd&&Ae(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===ca&&Ae(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function nb(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=ke(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var ab=typeof global=="object"&&global&&global.Object===Object&&global,sS=typeof self=="object"&&self&&self.Object===Object&&self,Rn=ab||sS||Function("return this")(),Kr=Rn.Symbol,ib=Object.prototype,oS=ib.hasOwnProperty,lS=ib.toString,ls=Kr?Kr.toStringTag:void 0;function cS(e){var t=oS.call(e,ls),r=e[ls];try{e[ls]=void 0;var a=!0}catch{}var i=lS.call(e);return a&&(t?e[ls]=r:delete e[ls]),i}var uS=Object.prototype,fS=uS.toString;function dS(e){return fS.call(e)}var mS="[object Null]",pS="[object Undefined]",sp=Kr?Kr.toStringTag:void 0;function Bn(e){return e==null?e===void 0?pS:mS:sp&&sp in Object(e)?cS(e):dS(e)}function sb(e,t){return function(r){return e(t(r))}}var rc=sb(Object.getPrototypeOf,Object);function Gr(e){return e!=null&&typeof e=="object"}var hS="[object Object]",gS=Function.prototype,yS=Object.prototype,ob=gS.toString,vS=yS.hasOwnProperty,bS=ob.call(Object);function ya(e){if(!Gr(e)||Bn(e)!=hS)return!1;var t=rc(e);if(t===null)return!0;var r=vS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ob.call(r)==bS}function Tf(e){const t={[Zt]:[],addError(r){this[Zt].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:Tf(a)}),t);if(ya(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:Tf(r[i])}),t)}return t}var Vt=Array.isArray,kS="[object Symbol]";function Js(e){return typeof e=="symbol"||Gr(e)&&Bn(e)==kS}var wS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SS=/^\w*$/;function Ad(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Js(e)?!0:SS.test(e)||!wS.test(e)||t!=null&&e in Object(t)}function Xe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ES="[object AsyncFunction]",xS="[object Function]",CS="[object GeneratorFunction]",AS="[object Proxy]";function Ys(e){if(!Xe(e))return!1;var t=Bn(e);return t==xS||t==CS||t==ES||t==AS}var Yc=Rn["__core-js_shared__"],op=(function(){var e=/[^.]+$/.exec(Yc&&Yc.keys&&Yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function _S(e){return!!op&&op in e}var OS=Function.prototype,TS=OS.toString;function ti(e){if(e!=null){try{return TS.call(e)}catch{}try{return e+""}catch{}}return""}var PS=/[\\^$.*+?()[\]{}|]/g,IS=/^\[object .+?Constructor\]$/,RS=Function.prototype,NS=Object.prototype,jS=RS.toString,DS=NS.hasOwnProperty,FS=RegExp("^"+jS.call(DS).replace(PS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MS(e){if(!Xe(e)||_S(e))return!1;var t=Ys(e)?FS:IS;return t.test(ti(e))}function LS(e,t){return e==null?void 0:e[t]}function ri(e,t){var r=LS(e,t);return MS(r)?r:void 0}var Ms=ri(Object,"create");function qS(){this.__data__=Ms?Ms(null):{},this.size=0}function zS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $S="__lodash_hash_undefined__",US=Object.prototype,BS=US.hasOwnProperty;function VS(e){var t=this.__data__;if(Ms){var r=t[e];return r===$S?void 0:r}return BS.call(t,e)?t[e]:void 0}var HS=Object.prototype,WS=HS.hasOwnProperty;function KS(e){var t=this.__data__;return Ms?t[e]!==void 0:WS.call(t,e)}var GS="__lodash_hash_undefined__";function JS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ms&&t===void 0?GS:t,this}function Wa(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])}}Wa.prototype.clear=qS;Wa.prototype.delete=zS;Wa.prototype.get=VS;Wa.prototype.has=KS;Wa.prototype.set=JS;function YS(){this.__data__=[],this.size=0}function Xs(e,t){return e===t||e!==e&&t!==t}function nc(e,t){for(var r=e.length;r--;)if(Xs(e[r][0],t))return r;return-1}var XS=Array.prototype,ZS=XS.splice;function QS(e){var t=this.__data__,r=nc(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():ZS.call(t,r,1),--this.size,!0}function eE(e){var t=this.__data__,r=nc(t,e);return r<0?void 0:t[r][1]}function tE(e){return nc(this.__data__,e)>-1}function rE(e,t){var r=this.__data__,a=nc(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Vn(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])}}Vn.prototype.clear=YS;Vn.prototype.delete=QS;Vn.prototype.get=eE;Vn.prototype.has=tE;Vn.prototype.set=rE;var Ls=ri(Rn,"Map");function nE(){this.size=0,this.__data__={hash:new Wa,map:new(Ls||Vn),string:new Wa}}function aE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ac(e,t){var r=e.__data__;return aE(t)?r[typeof t=="string"?"string":"hash"]:r.map}function iE(e){var t=ac(this,e).delete(e);return this.size-=t?1:0,t}function sE(e){return ac(this,e).get(e)}function oE(e){return ac(this,e).has(e)}function lE(e,t){var r=ac(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Hn(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])}}Hn.prototype.clear=nE;Hn.prototype.delete=iE;Hn.prototype.get=sE;Hn.prototype.has=oE;Hn.prototype.set=lE;var cE="Expected a function";function _d(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cE);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(_d.Cache||Hn),r}_d.Cache=Hn;var uE=500;function fE(e){var t=_d(e,function(a){return r.size===uE&&r.clear(),a}),r=t.cache;return t}var dE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mE=/\\(\\)?/g,lb=fE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dE,function(r,a,i,n){t.push(i?n.replace(mE,"$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 lp=Kr?Kr.prototype:void 0,cp=lp?lp.toString:void 0;function cb(e){if(typeof e=="string")return e;if(Vt(e))return Vi(e,cb)+"";if(Js(e))return cp?cp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Od(e){return e==null?"":cb(e)}function Hi(e,t){return Vt(e)?e:Ad(e,t)?[e]:lb(Od(e))}function va(e){if(typeof e=="string"||Js(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ic(e,t){t=Hi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[va(t[r++])];return r&&r==a?e:void 0}function oe(e,t,r){var a=e==null?void 0:ic(e,t);return a===void 0?r:a}const{getOwnPropertyNames:up,getOwnPropertySymbols:pE}=Object,{hasOwnProperty:hE}=Object.prototype;function Xc(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function Co(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 fp(e){const t=pE(e);return t.length?up(e).concat(t):up(e)}const gE=Object.hasOwn||((e,t)=>hE.call(e,t)),yE="__v",vE="__o",bE="_owner",{getOwnPropertyDescriptor:dp,keys:mp}=Object,ni=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function kE(e,t){return e===t}function wE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e),new Uint8Array(t))}function SE(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 EE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function xE(e,t){return ni(e.getTime(),t.getTime())}function CE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function pp(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 m=s.value,d=o.value;if(r.equals(m[0],d[0],c,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function AE(e,t,r){const a=mp(e);let i=a.length;if(mp(t).length!==i)return!1;for(;i-- >0;)if(!ub(e,t,r,a[i]))return!1;return!0}function cs(e,t,r){const a=fp(e);let i=a.length;if(fp(t).length!==i)return!1;let n,s,o;for(;i-- >0;)if(n=a[i],!ub(e,t,r,n)||(s=dp(e,n),o=dp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function _E(e,t){return ni(e.valueOf(),t.valueOf())}function OE(e,t){return e.source===t.source&&e.flags===t.flags}function hp(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 Ll(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 TE(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 ub(e,t,r,a){return(a===bE||a===vE||a===yE)&&(e.$$typeof||t.$$typeof)?!0:gE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const PE=Object.prototype.toString;function IE(e){const t=DE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(m,d,h){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(m,d,h):k==="function"?i(m,d,h):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(m,d,h);if(v===Array)return r(m,d,h);if(v===Date)return a(m,d,h);if(v===RegExp)return c(m,d,h);if(v===Map)return n(m,d,h);if(v===Set)return l(m,d,h);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,h);const y=PE.call(m),b=t[y];if(b)return b(m,d,h);const w=u&&u(m,d,h,y);return w?w(m,d,h):!1}}function RE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:wE,areArraysEqual:r?cs:SE,areDataViewsEqual:EE,areDatesEqual:xE,areErrorsEqual:CE,areFunctionsEqual:kE,areMapsEqual:r?Xc(pp,cs):pp,areNumbersEqual:ni,areObjectsEqual:r?cs:AE,arePrimitiveWrappersEqual:_E,areRegExpsEqual:OE,areSetsEqual:r?Xc(hp,cs):hp,areTypedArraysEqual:r?Xc(Ll,cs):Ll,areUrlsEqual:TE,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=Co(a.areArraysEqual),n=Co(a.areMapsEqual),s=Co(a.areObjectsEqual),o=Co(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return a}function NE(e){return function(t,r,a,i,n,s,o){return e(t,r,o)}}function jE({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 DE({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:m,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[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]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}Wn();Wn({strict:!0});Wn({circular:!0});Wn({circular:!0,strict:!0});Wn({createInternalComparator:()=>ni});Wn({strict:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni,strict:!0});function Wn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=RE(e),s=IE(n),o=r?r(s):NE(s);return jE({circular:t,comparator:s,createState:a,equals:o,strict:i})}const Je=Wn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var us={exports:{}},Zc,gp;function fb(){if(gp)return Zc;gp=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(_){let x="",A=0,N=0;for(N=0;N<_.length;N++)if(A=_[N].charCodeAt(0),A!==48){if(!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N];break}for(N+=1;N<_.length;N++){if(A=_[N].charCodeAt(0),!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(_){return _.length=0,!0}function l(_,x,A){if(_.length){const N=s(_);if(N!=="")x.push(N);else return A.error=!0,!1;_.length=0}return!0}function u(_){let x=0;const A={error:!1,address:"",zone:""},N=[],I=[];let F=!1,$=!1,Y=l;for(let Z=0;Z<_.length;Z++){const ie=_[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(F===!0&&($=!0),!Y(I,N,A))break;if(++x>7){A.error=!0;break}Z>0&&_[Z-1]===":"&&(F=!0),N.push(":");continue}else if(ie==="%"){if(!Y(I,N,A))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?A.zone=I.join(""):$?N.push(I.join("")):N.push(s(I))),A.address=N.join(""),A}function f(_){if(m(_,":")<2)return{host:_,isIPV6:!1};const x=u(_);if(x.error)return{host:_,isIPV6:!1};{let A=x.address,N=x.address;return x.zone&&(A+="%"+x.zone,N+="%25"+x.zone),{host:A,isIPV6:!0,escapedHost:N}}}function m(_,x){let A=0;for(let N=0;N<_.length;N++)_[N]===x&&A++;return A}function d(_){let x=_;const A=[];let N=-1,I=0;for(;I=x.length;){if(I===1){if(x===".")break;if(x==="/"){A.push("/");break}else{A.push(x);break}}else if(I===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){A.push("/");break}}else if(I===3&&x==="/.."){A.length!==0&&A.pop(),A.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),A.length!==0&&A.pop();continue}}if((N=x.indexOf("/",1))===-1){A.push(x);break}else A.push(x.slice(0,N)),x=x.slice(N)}return A.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(_,x){const A=x?v:k;return A.lastIndex=0,_.replace(A,N=>h[N])}function b(_,x=!1){if(_.indexOf("%")===-1)return _;let A="";for(let N=0;N<_.length;N++){if(_[N]==="%"&&N+2<_.length){const I=_.slice(N+1,N+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));x&&a($)?A+=$:A+="%"+F,N+=2;continue}}A+=_[N]}return A}const w=new Array(256);{const _="0123456789ABCDEF";for(let x=0;x<256;x++)w[x]="%"+_[x>>4]+_[x&15]}function E(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function p(_){return _<2048?w[192|_>>6]+w[128|_&63]:_<65536?w[224|_>>12]+w[128|_>>6&63]+w[128|_&63]:w[240|_>>18]+w[128|_>>12&63]+w[128|_>>6&63]+w[128|_&63]}function g(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));$!=="."&&a($)?x+=$:x+="%"+F,A+=2;continue}}if(i(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function S(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));a($)?x+=$:x+="%"+F,A+=2;continue}}if(n(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function C(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const F=_.slice(A+1,A+3);if(r(F)){x+="%"+F.toUpperCase(),A+=2;continue}}const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}return x}function O(_){const x=[];if(_.userinfo!==void 0&&(x.push(_.userinfo),x.push("@")),_.host!==void 0){let A=unescape(_.host);if(!t(A)){const N=f(A);N.isIPV6===!0?A=`[${N.escapedHost}]`:A=y(A,!1)}x.push(A)}return(typeof _.port=="number"||typeof _.port=="string")&&(x.push(":"),x.push(String(_.port))),x.length?x.join(""):void 0}return Zc={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:C,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Zc}var Qc,yp;function FE(){if(yp)return Qc;yp=1;const{isUUID:e}=fb(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;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 m(p){const g=p;return g.nss=(p.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:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Qc={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Qc}var vp;function ME(){if(vp)return us.exports;vp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:c,nonSimpleDomain:l}=fb(),{SCHEMES:u,getSchemeHandler:f}=FE();function m(x,A){return typeof x=="string"?x=S(x,A):typeof x=="object"&&(x=g(v(x,A),A)),x}function d(x,A,N){const I=N?Object.assign({scheme:"null"},N):{scheme:"null"},{parsed:F,malformedAuthorityOrPort:$}=p(x,I),{parsed:Y,malformedAuthorityOrPort:Z}=p(A,I);if($||Z)throw new Error(F.error||Y.error||"URI is malformed.");const ie=h(F,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(x,A,N,I){const F={};return I||(x=g(v(x,N),N),A=g(v(A,N),N)),N=N||{},!N.tolerant&&A.scheme?(F.scheme=A.scheme,F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.path?(A.path[0]==="/"?F.path=t(A.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?F.path="/"+A.path:x.path?F.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+A.path:F.path=A.path,F.path=t(F.path)),F.query=A.query):(F.path=x.path,A.query!==void 0?F.query=A.query:F.query=x.query),F.userinfo=x.userinfo,F.host=x.host,F.port=x.port),F.scheme=x.scheme),F.fragment=A.fragment,F}function k(x,A,N){const I=O(x,N),F=O(A,N);return I!==void 0&&F!==void 0&&I.toLowerCase()===F.toLowerCase()}function v(x,A){const N={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},I=Object.assign({},A),F=[],$=f(I.scheme||N.scheme);$&&$.serialize&&$.serialize(N,I),N.path!==void 0&&(I.skipEscape?N.path=a(N.path):(N.path=s(N.path),N.scheme!==void 0&&(N.path=N.path.split("%3A").join(":")))),I.reference!=="suffix"&&N.scheme&&F.push(N.scheme,":");const Y=r(N);if(Y!==void 0&&(I.reference!=="suffix"&&F.push("//"),F.push(Y),N.path&&N.path[0]!=="/"&&F.push("/")),N.path!==void 0){let Z=N.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),F.push(Z)}return N.query!==void 0&&F.push("?",N.query),N.fragment!==void 0&&F.push("#",N.fragment),F.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(x,A){if(A[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function p(x,A){const N=Object.assign({},A),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let F=!1,$=!1;N.reference==="suffix"&&(N.scheme?x=N.scheme+":"+x:x="//"+x);const Y=x.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",F=!0);const Z=x.match(w);if(Z!==null){const P=Z[1],D=P.replace(/[\t\n\r]/g,"");D.length>=2&&(D.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",F=!0):P.length!==D.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",F=!0))}const ie=x.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,F=!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",N.reference&&N.reference!=="suffix"&&N.reference!==I.reference&&(I.error=I.error||"URI is not a "+N.reference+" reference.");const D=f(N.scheme||I.scheme);if(!N.unicodeSupport&&(!D||!D.unicodeSupport)&&I.host&&(N.domainHost||D&&D.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}(!D||D&&!D.skipNormalize)&&(x.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))),D&&D.parse&&D.parse(I,N)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:F}}function g(x,A){return p(x,A).parsed}function S(x,A){return C(x,A).normalized}function C(x,A){const{parsed:N,malformedAuthorityOrPort:I}=p(x,A);return{normalized:I?x:v(N,A),malformedAuthorityOrPort:I}}function O(x,A){if(typeof x=="string"){const{normalized:N,malformedAuthorityOrPort:I}=C(x,A);return I?void 0:N}if(typeof x=="object")return v(x,A)}const _={SCHEMES:u,normalize:m,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return us.exports=_,us.exports.default=_,us.exports.fastUri=_,us.exports}var LE=ME();const Td=Pn(LE);var fs={},bp;function qE(){if(bp)return fs;bp=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 m,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(m=a(u[h++]),d=k>h,typeof l[m]>"u"&&(Array.isArray(l)&&m==="-"&&(m=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[m]=[]:l[m]={})),!d)break;l=l[m]}var v=l[m];return f===void 0?delete l[m]:l[m]=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 m=1;m<f;){if(l=l[a(u[m++])],f===m)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,m){return o(f,u,m)}}}return fs.get=s,fs.set=o,fs.compile=c,fs}var zE=qE();const eu=Pn(zE);var $E=Object.prototype;function sc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$E;return e===r}var UE=sb(Object.keys,Object),BE=Object.prototype,VE=BE.hasOwnProperty;function db(e){if(!sc(e))return UE(e);var t=[];for(var r in Object(e))VE.call(e,r)&&r!="constructor"&&t.push(r);return t}var Pf=ri(Rn,"DataView"),If=ri(Rn,"Promise"),Ii=ri(Rn,"Set"),Rf=ri(Rn,"WeakMap"),kp="[object Map]",HE="[object Object]",wp="[object Promise]",Sp="[object Set]",Ep="[object WeakMap]",xp="[object DataView]",WE=ti(Pf),KE=ti(Ls),GE=ti(If),JE=ti(Ii),YE=ti(Rf),$r=Bn;(Pf&&$r(new Pf(new ArrayBuffer(1)))!=xp||Ls&&$r(new Ls)!=kp||If&&$r(If.resolve())!=wp||Ii&&$r(new Ii)!=Sp||Rf&&$r(new Rf)!=Ep)&&($r=function(e){var t=Bn(e),r=t==HE?e.constructor:void 0,a=r?ti(r):"";if(a)switch(a){case WE:return xp;case KE:return kp;case GE:return wp;case JE:return Sp;case YE:return Ep}return t});var XE="[object Arguments]";function Cp(e){return Gr(e)&&Bn(e)==XE}var mb=Object.prototype,ZE=mb.hasOwnProperty,QE=mb.propertyIsEnumerable,Li=Cp((function(){return arguments})())?Cp:function(e){return Gr(e)&&ZE.call(e,"callee")&&!QE.call(e,"callee")},ex=9007199254740991;function Pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ex}function ai(e){return e!=null&&Pd(e.length)&&!Ys(e)}function tx(){return!1}var pb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ap=pb&&typeof module=="object"&&module&&!module.nodeType&&module,rx=Ap&&Ap.exports===pb,_p=rx?Rn.Buffer:void 0,nx=_p?_p.isBuffer:void 0,Ka=nx||tx,ax="[object Arguments]",ix="[object Array]",sx="[object Boolean]",ox="[object Date]",lx="[object Error]",cx="[object Function]",ux="[object Map]",fx="[object Number]",dx="[object Object]",mx="[object RegExp]",px="[object Set]",hx="[object String]",gx="[object WeakMap]",yx="[object ArrayBuffer]",vx="[object DataView]",bx="[object Float32Array]",kx="[object Float64Array]",wx="[object Int8Array]",Sx="[object Int16Array]",Ex="[object Int32Array]",xx="[object Uint8Array]",Cx="[object Uint8ClampedArray]",Ax="[object Uint16Array]",_x="[object Uint32Array]",At={};At[bx]=At[kx]=At[wx]=At[Sx]=At[Ex]=At[xx]=At[Cx]=At[Ax]=At[_x]=!0;At[ax]=At[ix]=At[yx]=At[sx]=At[vx]=At[ox]=At[lx]=At[cx]=At[ux]=At[fx]=At[dx]=At[mx]=At[px]=At[hx]=At[gx]=!1;function Ox(e){return Gr(e)&&Pd(e.length)&&!!At[Bn(e)]}function Id(e){return function(t){return e(t)}}var hb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=hb&&typeof module=="object"&&module&&!module.nodeType&&module,Tx=Os&&Os.exports===hb,tu=Tx&&ab.process,qi=(function(){try{var e=Os&&Os.require&&Os.require("util").types;return e||tu&&tu.binding&&tu.binding("util")}catch{}})(),Op=qi&&qi.isTypedArray,Zs=Op?Id(Op):Ox,Px="[object Map]",Ix="[object Set]",Rx=Object.prototype,Nx=Rx.hasOwnProperty;function Rt(e){if(e==null)return!0;if(ai(e)&&(Vt(e)||typeof e=="string"||typeof e.splice=="function"||Ka(e)||Zs(e)||Li(e)))return!e.length;var t=$r(e);if(t==Px||t==Ix)return!e.size;if(sc(e))return!db(e).length;for(var r in e)if(Nx.call(e,r))return!1;return!0}function jx(){this.__data__=new Vn,this.size=0}function Dx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Fx(e){return this.__data__.get(e)}function Mx(e){return this.__data__.has(e)}var Lx=200;function qx(e,t){var r=this.__data__;if(r instanceof Vn){var a=r.__data__;if(!Ls||a.length<Lx-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hn(a)}return r.set(e,t),this.size=r.size,this}function sn(e){var t=this.__data__=new Vn(e);this.size=t.size}sn.prototype.clear=jx;sn.prototype.delete=Dx;sn.prototype.get=Fx;sn.prototype.has=Mx;sn.prototype.set=qx;function Rd(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var ql=(function(){try{var e=ri(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Nd(e,t,r){t=="__proto__"&&ql?ql(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zx=Object.prototype,$x=zx.hasOwnProperty;function jd(e,t,r){var a=e[t];(!($x.call(e,t)&&Xs(a,r))||r===void 0&&!(t in e))&&Nd(e,t,r)}function Wi(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?Nd(r,o,c):jd(r,o,c)}return r}function gb(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Ux=9007199254740991,Bx=/^(?:0|[1-9]\d*)$/;function oc(e,t){var r=typeof e;return t=t??Ux,!!t&&(r=="number"||r!="symbol"&&Bx.test(e))&&e>-1&&e%1==0&&e<t}var Vx=Object.prototype,Hx=Vx.hasOwnProperty;function yb(e,t){var r=Vt(e),a=!r&&Li(e),i=!r&&!a&&Ka(e),n=!r&&!a&&!i&&Zs(e),s=r||a||i||n,o=s?gb(e.length,String):[],c=o.length;for(var l in e)(t||Hx.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||oc(l,c)))&&o.push(l);return o}function nn(e){return ai(e)?yb(e):db(e)}function Wx(e,t){return e&&Wi(t,nn(t),e)}function Kx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Gx=Object.prototype,Jx=Gx.hasOwnProperty;function Yx(e){if(!Xe(e))return Kx(e);var t=sc(e),r=[];for(var a in e)a=="constructor"&&(t||!Jx.call(e,a))||r.push(a);return r}function Qs(e){return ai(e)?yb(e,!0):Yx(e)}function Xx(e,t){return e&&Wi(t,Qs(t),e)}var vb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tp=vb&&typeof module=="object"&&module&&!module.nodeType&&module,Zx=Tp&&Tp.exports===vb,Pp=Zx?Rn.Buffer:void 0,Ip=Pp?Pp.allocUnsafe:void 0;function bb(e,t){if(t)return e.slice();var r=e.length,a=Ip?Ip(r):new e.constructor(r);return e.copy(a),a}function Dd(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function Qx(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 kb(){return[]}var eC=Object.prototype,tC=eC.propertyIsEnumerable,Rp=Object.getOwnPropertySymbols,Fd=Rp?function(e){return e==null?[]:(e=Object(e),Qx(Rp(e),function(t){return tC.call(e,t)}))}:kb;function rC(e,t){return Wi(e,Fd(e),t)}function Md(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var nC=Object.getOwnPropertySymbols,wb=nC?function(e){for(var t=[];e;)Md(t,Fd(e)),e=rc(e);return t}:kb;function aC(e,t){return Wi(e,wb(e),t)}function Sb(e,t,r){var a=t(e);return Vt(e)?a:Md(a,r(e))}function Nf(e){return Sb(e,nn,Fd)}function Ld(e){return Sb(e,Qs,wb)}var iC=Object.prototype,sC=iC.hasOwnProperty;function oC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var zl=Rn.Uint8Array;function qd(e){var t=new e.constructor(e.byteLength);return new zl(t).set(new zl(e)),t}function lC(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var cC=/\w*$/;function uC(e){var t=new e.constructor(e.source,cC.exec(e));return t.lastIndex=e.lastIndex,t}var Np=Kr?Kr.prototype:void 0,jp=Np?Np.valueOf:void 0;function fC(e){return jp?Object(jp.call(e)):{}}function Eb(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var dC="[object Boolean]",mC="[object Date]",pC="[object Map]",hC="[object Number]",gC="[object RegExp]",yC="[object Set]",vC="[object String]",bC="[object Symbol]",kC="[object ArrayBuffer]",wC="[object DataView]",SC="[object Float32Array]",EC="[object Float64Array]",xC="[object Int8Array]",CC="[object Int16Array]",AC="[object Int32Array]",_C="[object Uint8Array]",OC="[object Uint8ClampedArray]",TC="[object Uint16Array]",PC="[object Uint32Array]";function IC(e,t,r){var a=e.constructor;switch(t){case kC:return qd(e);case dC:case mC:return new a(+e);case wC:return lC(e,r);case SC:case EC:case xC:case CC:case AC:case _C:case OC:case TC:case PC:return Eb(e,r);case pC:return new a;case hC:case vC:return new a(e);case gC:return uC(e);case yC:return new a;case bC:return fC(e)}}var Dp=Object.create,xb=(function(){function e(){}return function(t){if(!Xe(t))return{};if(Dp)return Dp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Cb(e){return typeof e.constructor=="function"&&!sc(e)?xb(rc(e)):{}}var RC="[object Map]";function NC(e){return Gr(e)&&$r(e)==RC}var Fp=qi&&qi.isMap,jC=Fp?Id(Fp):NC,DC="[object Set]";function FC(e){return Gr(e)&&$r(e)==DC}var Mp=qi&&qi.isSet,MC=Mp?Id(Mp):FC,LC=1,qC=2,zC=4,Ab="[object Arguments]",$C="[object Array]",UC="[object Boolean]",BC="[object Date]",VC="[object Error]",_b="[object Function]",HC="[object GeneratorFunction]",WC="[object Map]",KC="[object Number]",Ob="[object Object]",GC="[object RegExp]",JC="[object Set]",YC="[object String]",XC="[object Symbol]",ZC="[object WeakMap]",QC="[object ArrayBuffer]",eA="[object DataView]",tA="[object Float32Array]",rA="[object Float64Array]",nA="[object Int8Array]",aA="[object Int16Array]",iA="[object Int32Array]",sA="[object Uint8Array]",oA="[object Uint8ClampedArray]",lA="[object Uint16Array]",cA="[object Uint32Array]",St={};St[Ab]=St[$C]=St[QC]=St[eA]=St[UC]=St[BC]=St[tA]=St[rA]=St[nA]=St[aA]=St[iA]=St[WC]=St[KC]=St[Ob]=St[GC]=St[JC]=St[YC]=St[XC]=St[sA]=St[oA]=St[lA]=St[cA]=!0;St[VC]=St[_b]=St[ZC]=!1;function Ts(e,t,r,a,i,n){var s,o=t&LC,c=t&qC,l=t&zC;if(r&&(s=i?r(e,a,i,n):r(e)),s!==void 0)return s;if(!Xe(e))return e;var u=Vt(e);if(u){if(s=oC(e),!o)return Dd(e,s)}else{var f=$r(e),m=f==_b||f==HC;if(Ka(e))return bb(e,o);if(f==Ob||f==Ab||m&&!i){if(s=c||m?{}:Cb(e),!o)return c?aC(e,Xx(s,e)):rC(e,Wx(s,e))}else{if(!St[f])return i?e:{};s=IC(e,f,o)}}n||(n=new sn);var d=n.get(e);if(d)return d;n.set(e,s),MC(e)?e.forEach(function(v){s.add(Ts(v,t,r,v,e,n))}):jC(e)&&e.forEach(function(v,y){s.set(y,Ts(v,t,r,y,e,n))});var h=l?c?Ld:Nf:c?Qs:nn,k=u?void 0:h(e);return Rd(k||e,function(v,y){k&&(y=v,v=e[y]),jd(s,y,Ts(v,t,r,y,e,n))}),s}function Tb(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function uA(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 fA(e,t){return t.length<2?e:ic(e,uA(t,0,-1))}var dA=Object.prototype,mA=dA.hasOwnProperty;function Pb(e,t){t=Hi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=va(t[r]);if(i==="__proto__"&&!mA.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=fA(e,t);return n==null||delete n[va(Tb(t))]}function pA(e){return ya(e)?void 0:e}var Lp=Kr?Kr.isConcatSpreadable:void 0;function hA(e){return Vt(e)||Li(e)||!!(Lp&&e&&e[Lp])}function eo(e,t,r,a,i){var n=-1,s=e.length;for(r||(r=hA),i||(i=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?eo(o,t-1,r,a,i):Md(i,o):a||(i[i.length]=o)}return i}function jf(e){var t=e==null?0:e.length;return t?eo(e,1):[]}function gA(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 qp=Math.max;function Ib(e,t,r){return t=qp(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=qp(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),gA(e,this,o)}}function yA(e){return function(){return e}}function lc(e){return e}var vA=ql?function(e,t){return ql(e,"toString",{configurable:!0,enumerable:!1,value:yA(t),writable:!0})}:lc,bA=800,kA=16,wA=Date.now;function SA(e){var t=0,r=0;return function(){var a=wA(),i=kA-(a-r);if(r=a,i>0){if(++t>=bA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Rb=SA(vA);function Nb(e){return Rb(Ib(e,void 0,jf),e+"")}var EA=1,xA=2,CA=4,qs=Nb(function(e,t){var r={};if(e==null)return r;var a=!1;t=Vi(t,function(n){return n=Hi(n,e),a||(a=n.length>1),n}),Wi(e,Ld(e),r),a&&(r=Ts(r,EA|xA|CA,pA));for(var i=t.length;i--;)Pb(r,t[i]);return r});function $l(e,t){if(pt in e&&Td.equal(e[pt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Xe(a)){const i=$l(a,t);if(i!==void 0)return i}}else if(Xe(r)){const a=$l(r,t);if(a!==void 0)return a}}function Df(e,t){const r=oe(e,pt,t);let a=e;gt in a&&(a={...a,[gt]:Td.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(s=>Xe(s)?Df(s,r):s)}:Xe(n)&&(a={...a,[i]:Df(n,r)});return a}function zd(e,t){const r=t[e];return[qs(t,[e]),r]}function jb(e,t={},r=[],a=oe(t,[pt])){const i=e||"";let n,s=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));s===void 0||pt in t&&t[pt]===s?n=eu.get(t,c):t[Ss]===Cl&&(n=$l(t,s.replace(/\/$/,"")),n!==void 0&&(n=eu.get(n,c)))}else if(t[Ss]===Cl){const c=s?Td.resolve(s,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=$l(t,l.replace(/\/$/,"")),n!==void 0&&(s=n[pt],Rt(u)||(n=eu.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,...m]=r,d=[...m,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=zd(gt,n),u=jb(l,t,[...r,i],s);return Object.keys(c).length>0?t[Ss]===iS||t[Ss]===Cl?{[_n]:[c,u]}:{...c,...u}:u}return n}function zs(e,t={},r=oe(t,[pt])){return jb(e,t,[],r)}var AA=Object.prototype,_A=AA.hasOwnProperty;function OA(e,t){return e!=null&&_A.call(e,t)}function Db(e,t,r){t=Hi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var s=va(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&&Pd(i)&&oc(s,i)&&(Vt(e)||Li(e)))}function Ge(e,t){return e!=null&&Db(e,t,OA)}var TA="[object String]";function ba(e){return typeof e=="string"||!Vt(e)&&Gr(e)&&Bn(e)==TA}function Jr(e){let t;const r=oe(e,tS);return ba(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var PA=1/0;function IA(e){var t=e==null?0:e.length;return t?eo(e,PA):[]}function Ff(e,t,r){(r!==void 0&&!Xs(e[t],r)||r===void 0&&!(t in e))&&Nd(e,t,r)}function RA(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 Fb=RA();function $s(e){return Gr(e)&&ai(e)}function Mf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function NA(e){return Wi(e,Qs(e))}function jA(e,t,r,a,i,n,s){var o=Mf(e,r),c=Mf(t,r),l=s.get(c);if(l){Ff(e,r,l);return}var u=n?n(o,c,r+"",e,t,s):void 0,f=u===void 0;if(f){var m=Vt(c),d=!m&&Ka(c),h=!m&&!d&&Zs(c);u=c,m||d||h?Vt(o)?u=o:$s(o)?u=Dd(o):d?(f=!1,u=bb(c,!0)):h?(f=!1,u=Eb(c,!0)):u=[]:ya(c)||Li(c)?(u=o,Li(o)?u=NA(o):(!Xe(o)||Ys(o))&&(u=Cb(c))):f=!1}f&&(s.set(c,u),i(u,c,a,n,s),s.delete(c)),Ff(e,r,u)}function Mb(e,t,r,a,i){e!==t&&Fb(t,function(n,s){if(i||(i=new sn),Xe(n))jA(e,t,s,r,Mb,a,i);else{var o=a?a(Mf(e,s),n,s+"",e,t,i):void 0;o===void 0&&(o=n),Ff(e,s,o)}},Qs)}function cc(e,t){return Rb(Ib(e,t,lc),e+"")}function DA(e,t,r){if(!Xe(r))return!1;var a=typeof t;return(a=="number"?ai(r)&&oc(t,r.length):a=="string"&&t in r)?Xs(r[t],e):!1}function FA(e){return cc(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&&DA(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 MA=FA(function(e,t,r){Mb(e,t,r)});function $d(e,t,r,a){if(!Xe(e))return e;t=Hi(t,e);for(var i=-1,n=t.length,s=n-1,o=e;o!=null&&++i<n;){var c=va(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=Xe(u)?u:oc(t[i+1])?[]:{})}jd(o,c,l),o=o[c]}return e}function yt(e,t,r){return e==null?e:$d(e,t,r)}function Lb(e){return typeof e=="function"?e:lc}var LA=/\s/;function qA(e){for(var t=e.length;t--&&LA.test(e.charAt(t)););return t}var zA=/^\s+/;function $A(e){return e&&e.slice(0,qA(e)+1).replace(zA,"")}var zp=NaN,UA=/^[-+]0x[0-9a-f]+$/i,BA=/^0b[01]+$/i,VA=/^0o[0-7]+$/i,HA=parseInt;function WA(e){if(typeof e=="number")return e;if(Js(e))return zp;if(Xe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$A(e);var r=BA.test(e);return r||VA.test(e)?HA(e.slice(2),r?2:8):UA.test(e)?zp:+e}var $p=1/0,KA=17976931348623157e292;function GA(e){if(!e)return e===0?e:0;if(e=WA(e),e===$p||e===-$p){var t=e<0?-1:1;return t*KA}return e===e?e:0}function qb(e){var t=GA(e),r=t%1;return t===t?r?t-r:t:0}var JA=9007199254740991,ru=4294967295,YA=Math.min;function zb(e,t){if(e=qb(e),e<1||e>JA)return[];var r=ru,a=YA(e,ru);t=Lb(t),e-=ru;for(var i=gb(a,t);++r<e;)t(r);return i}function $b(e,t){return e&&Fb(e,t,nn)}var XA="__lodash_hash_undefined__";function ZA(e){return this.__data__.set(e,XA),this}function QA(e){return this.__data__.has(e)}function Ga(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Hn;++t<r;)this.add(e[t])}Ga.prototype.add=Ga.prototype.push=ZA;Ga.prototype.has=QA;function e_(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 Us(e,t){return e.has(t)}var t_=1,r_=2;function Ub(e,t,r,a,i,n){var s=r&t_,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,m=!0,d=r&r_?new Ga: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;m=!1;break}if(d){if(!e_(t,function(y,b){if(!Us(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){m=!1;break}}else if(!(h===k||i(h,k,r,a,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function n_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function Ud(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var a_=1,i_=2,s_="[object Boolean]",o_="[object Date]",l_="[object Error]",c_="[object Map]",u_="[object Number]",f_="[object RegExp]",d_="[object Set]",m_="[object String]",p_="[object Symbol]",h_="[object ArrayBuffer]",g_="[object DataView]",Up=Kr?Kr.prototype:void 0,nu=Up?Up.valueOf:void 0;function y_(e,t,r,a,i,n,s){switch(r){case g_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case h_:return!(e.byteLength!=t.byteLength||!n(new zl(e),new zl(t)));case s_:case o_:case u_:return Xs(+e,+t);case l_:return e.name==t.name&&e.message==t.message;case f_:case m_:return e==t+"";case c_:var o=n_;case d_:var c=a&a_;if(o||(o=Ud),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;a|=i_,s.set(e,t);var u=Ub(o(e),o(t),a,i,n,s);return s.delete(e),u;case p_:if(nu)return nu.call(e)==nu.call(t)}return!1}var v_=1,b_=Object.prototype,k_=b_.hasOwnProperty;function w_(e,t,r,a,i,n){var s=r&v_,o=Nf(e),c=o.length,l=Nf(t),u=l.length;if(c!=u&&!s)return!1;for(var f=c;f--;){var m=o[f];if(!(s?m in t:k_.call(t,m)))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;){m=o[f];var y=e[m],b=t[m];if(a)var w=s?a(b,y,m,t,e,n):a(y,b,m,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var E=e.constructor,p=t.constructor;E!=p&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof p=="function"&&p instanceof p)&&(k=!1)}return n.delete(e),n.delete(t),k}var S_=1,Bp="[object Arguments]",Vp="[object Array]",Ao="[object Object]",E_=Object.prototype,Hp=E_.hasOwnProperty;function x_(e,t,r,a,i,n){var s=Vt(e),o=Vt(t),c=s?Vp:$r(e),l=o?Vp:$r(t);c=c==Bp?Ao:c,l=l==Bp?Ao:l;var u=c==Ao,f=l==Ao,m=c==l;if(m&&Ka(e)){if(!Ka(t))return!1;s=!0,u=!1}if(m&&!u)return n||(n=new sn),s||Zs(e)?Ub(e,t,r,a,i,n):y_(e,t,c,r,a,i,n);if(!(r&S_)){var d=u&&Hp.call(e,"__wrapped__"),h=f&&Hp.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new sn),i(k,v,r,a,n)}}return m?(n||(n=new sn),w_(e,t,r,a,i,n)):!1}function uc(e,t,r,a,i){return e===t?!0:e==null||t==null||!Gr(e)&&!Gr(t)?e!==e&&t!==t:x_(e,t,r,a,uc,i)}var C_=1,A_=2;function __(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 sn,f;if(!(f===void 0?uc(l,c,C_|A_,a,u):f))return!1}}return!0}function Bb(e){return e===e&&!Xe(e)}function O_(e){for(var t=nn(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,Bb(i)]}return t}function Vb(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function T_(e){var t=O_(e);return t.length==1&&t[0][2]?Vb(t[0][0],t[0][1]):function(r){return r===e||__(r,e,t)}}function P_(e,t){return e!=null&&t in Object(e)}function Hb(e,t){return e!=null&&Db(e,t,P_)}var I_=1,R_=2;function N_(e,t){return Ad(e)&&Bb(t)?Vb(va(e),t):function(r){var a=oe(r,e);return a===void 0&&a===t?Hb(r,e):uc(t,a,I_|R_)}}function j_(e){return function(t){return t==null?void 0:t[e]}}function D_(e){return function(t){return ic(t,e)}}function F_(e){return Ad(e)?j_(va(e)):D_(e)}function Bd(e){return typeof e=="function"?e:e==null?lc:typeof e=="object"?Vt(e)?N_(e[0],e[1]):T_(e):F_(e)}function M_(e,t,r){var a=Vt(e),i=a||Ka(e)||Zs(e);if(t=Bd(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Xe(e)?r=Ys(n)?xb(rc(e)):{}:r={}}return(i?Rd:$b)(e,function(s,o,c){return t(r,s,o,c)}),r}function L_(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 q_(e){return e!==e}function z_(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function Wb(e,t,r){return t===t?z_(e,t,r):L_(e,q_,r)}function Vd(e,t){var r=e==null?0:e.length;return!!r&&Wb(e,t,0)>-1}function Al(){}var $_=1/0,U_=Ii&&1/Ud(new Ii([,-0]))[1]==$_?function(e){return new Ii(e)}:Al,B_=200;function Kb(e,t,r){var a=-1,i=Vd,n=e.length,s=!0,o=[],c=o;if(n>=B_){var l=U_(e);if(l)return Ud(l);s=!1,i=Us,c=new Ga}else c=o;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=c.length;m--;)if(c[m]===f)continue e;o.push(u)}else i(c,f,r)||(c!==o&&c.push(f),o.push(u))}return o}function Gb(e){return e&&e.length?Kb(e):[]}function Bs(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 V_=cc(function(e){return Kb(eo(e,1,$s,!0))});function Yr(e){let{type:t}=e;return!t&&e.const?Bs(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 Un(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&&Ae(o)?i[n]=Un(s,o):e&&t&&(Yr(e)==="object"||Yr(t)==="object")&&n===Zv&&Array.isArray(s)&&Array.isArray(o)?i[n]=V_(s,o):i[n]=o,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var H_="[object Number]";function Jb(e){return typeof e=="number"||Gr(e)&&Bn(e)==H_}function Yb(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,[Ye,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===i||!((a=o.enum)===null||a===void 0)&&a.includes(i)))return n}}}function Ul(e,t,r,a,i){if(t===void 0)return 0;const n=Yb(t,r,i);if(Jb(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(i&&Ge(o,[Ye,i])){const c=oe(t,i),l=oe(o,[Ye,i],{});if(e.isValid(l,c,a))return s}else if(o[Ye]){const c={anyOf:Object.keys(o[Ye]).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 W_=Object.prototype;function Es(e){for(const t in e)if(W_.hasOwnProperty.call(e,t))return!1;return!0}const K_=["array","boolean","integer","null","number","object","string"];new Set(K_);const G_=["$defs","definitions","properties","patternProperties","dependencies"];new Set(G_);const J_=["items","allOf","oneOf","anyOf"];new Set(J_);const Y_=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Y_);function _l(e){return typeof e=="object"}function kn(e){return _l(e)?Es(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function au(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 X_(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 Wp(e){return e.length===0}function iu(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 Xb(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 Z_(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 Q_(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const Kp=Q_,Zb=()=>0,eO=e=>e===void 0,tO=e=>typeof e!="object",Gp={boolean:0,number:1,string:2};function rO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):Gp[r]-Gp[a]}function nO(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 fc(e,t,r=Zb){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Si(e){return fc(eO,e)}function na(e,t){return fc(r=>r===void 0||e(r),t)}function su(e,t){return fc(Array.isArray,e,t)}const Mt=Si(Ci),ou=na(e=>e===0,(e,t)=>e-t);function aO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Kp(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 p=0;p<E;p++){const g=Ci(b[p],w[p]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let p=0;p<E;p++){const g=b[p],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=iu(k),y=Kp(e,Xb(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function s(k,v){if(_l(k)){if(_l(v)){const y=Object.keys(k),b=Object.keys(v),w=nO(y,b),E=w.length;for(let p=0;p<E;p++){const g=w[p];if(k[g]===v[g])continue;const C=(h[g]??o)(k[g],v[g]);if(C!==0)return C}return 0}return v===!0&&Es(k)?0:1}return _l(v)?k===!0&&Es(v)?0:-1:Ci(k,v)}const o=Si(l),c=fc(tO,su(a(o),iu(l)),rO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Si(s),f=na(Es,a(u)),m=Si(i(s)),d=na(kn,s),h={$id:Mt,$comment:Mt,$defs:f,$ref:Mt,$schema:Mt,const:o,contains:u,contentEncoding:Mt,contentMediaType:Mt,default:o,definitions:f,description:Mt,else:u,examples:o,exclusiveMaximum:Mt,exclusiveMinimum:Mt,format:Mt,if:u,maximum:Mt,maxItems:Mt,maxLength:Mt,maxProperties:Mt,minimum:Mt,multipleOf:Mt,not:u,pattern:Mt,propertyNames:u,readOnly:Mt,then:u,title:Mt,writeOnly:Mt,uniqueItems:na(k=>k===!1,Zb),minLength:ou,minItems:ou,minProperties:ou,required:na(Wp,n),enum:na(Wp,i(l)),type:Si((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:na(k=>!Array.isArray(k)&&kn(k),su(s,iu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:na(Es,a(Si(su(s,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:s}}function Jp(e){return e}const Qb=(e,t)=>e?Qb(t%e,e):t,iO=(e,t)=>Math.abs(e*t)/Qb(e,t);function sO(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function lu(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 cu(e,t){return e||t}function Yp(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 oO(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function Ra(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const lO=["properties","patternProperties","additionalProperties"];function Xp(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 Zp=[[],[]];function Qp(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 cO=["items","additionalItems"],uO=["if","then","else"];function eh(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 uu(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 Na(e,t,r){return[e,t,r]}function fO(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 dO=[Na("minimum","maximum",e=>e.maximum>=e.minimum),Na("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Na("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Na("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Na("minLength","maxLength",e=>e.maxLength>=e.minLength),Na("minItems","maxItems",e=>e.maxItems>=e.minItems),Na("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function mO({mergePatterns:e=sO,isSubRegExp:t=Object.is,intersectJson:r=X_,deduplicateJsonSchemaDef:a=Jp,defaultMerger:i=Jp,assigners:n=[],checks:s=dO,mergers:o}={}){function c(E){const p=E.length;let g=E[0];for(let S=1;S<p;S++){const C=y(g,E[S]);if(C===!1)return!1;kn(C)||(g=C)}return g}function l(E,p,g,S,C,O,_){if(E.length=0,g===!1)return!1;if(E.push(g),C!==void 0){if(C===!1)return!1;E.push(C)}if(Qp(E,p,O))return!1;const A=E.length<2;if(_===!1){if(A)return;if(Qp(E,p,S))return!1}else A&&_!==void 0&&E.push(_);return E.length===1?E[0]:c(E)}function u(E,p,g,S,C,O){const _=g.length;if(_>0&&C!==!1)if(O)Object.assign(E,p);else for(let x=0;x<_;x++){const A=g[x];S.has(A)||(E[A]=y(p[A],C))}return E}const f=(E,{properties:p={},patternProperties:g,additionalProperties:S=!0},{properties:C={},patternProperties:O,additionalProperties:_=!0})=>{const x=kn(S),A=kn(_);if(x&&A)return Ra(E,"properties",b(p,C)),Ra(E,"patternProperties",g&&O?b(g,O):g??O),delete E.additionalProperties,E;const N=y(S,_);Ra(E,"additionalProperties",N);const I={},F=Object.keys(p),$=F.length,[Y,Z]=g?Xp(g):Zp,[ie,P]=O?Xp(O):Zp,D=[],U=new Set,T=A?void 0:_;for(let J=0;J<$;J++){const Q=F[J];U.add(Q);const q=l(D,Q,p[Q],Y,C[Q],ie,T);q!==void 0&&(I[Q]=q)}const R=Object.keys(C),M=R.length,B=x?void 0:S;for(let J=0;J<M;J++){const Q=R[J];if(U.has(Q))continue;const q=l(D,Q,C[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}Ra(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&lu(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],O[Q])}),V=u(V,g,Z,K,_,A),V=u(V,O,P,K,S,x),Ra(E,"patternProperties",V),E},m=(E,{items:p=[],additionalItems:g},{items:S=[],additionalItems:C})=>{const O=Array.isArray(p),_=Array.isArray(S),x=[];if(E.items=x,O&&_){const[A,N,I]=p.length<S.length?[p.length,g,S]:[S.length,C,p];let F=0;for(;F<A;F++)x.push(y(p[F],S[F]));if(N===!1)E.additionalItems=!1;else{const $=N===void 0||kn(N);for(;F<I.length;F++)x.push($?I[F]:y(I[F],N));Ra(E,"additionalItems",g!==void 0&&C!==void 0?y(g,C):g??C)}}else if(O||_){const[A,N,I]=O?[p,S,g]:[S,p,C];Ra(E,"additionalItems",I&&y(I,N));for(let F=0;F<A.length;F++)x.push(y(A[F],N))}else delete E.additionalItems,E.items=y(p,S);return E},d=(E,p,g)=>{eh(E,p);const S=eh({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,p){const g=[];if(lu(E,p,(S,C)=>{try{g.push(y(S,C))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(p)}"; the merged result is empty`);return a(g)}const k=oO([[lO,f],[cO,m],[uO,d],...n]),v=fO(s);function y(E,p){if(E===!1||p===!1)return!1;if(kn(E))return kn(p)?!0:p;if(kn(p))return E;let g={...E};const S=new Set,C=new Set,O=Reflect.ownKeys(p),_=O.length;for(let x=0;x<_;x++){const A=O[x],N=p[A];if(N===void 0)continue;const I=v.get(A);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&C.add(P.check)}}const F=E[A];if(F===void 0){g[A]=N;continue}const $=k.get(A);if($){S.add($);continue}const Y=w[A]??i;g[A]=Y(F,N)}for(const x of S)g=x(g,E,p);for(const x of C)x(g);return g}const b=Yp(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,p)=>{if(E===p)return E;const g=Array.isArray(E),S=Array.isArray(p);if(!g&&!S){const C=uu(E,p);if(C!==void 0)return C}else if(g||S){const C=new Set;if(g&&S)lu(E,p,(_,x)=>{const A=uu(_,x);A!==void 0&&C.add(A)});else{const _=g?E:p,x=g?p:E,A=_.length;for(let N=0;N<A;N++){const I=uu(x,_[N]);I!==void 0&&C.add(I)}}const O=C.size;if(O===1)return C.values().next().value;if(O>1)return Array.from(C)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${p.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,p)=>{const g=a([E,p]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:cu,writeOnly:cu,enum:(E,p)=>{const g=r(E,p);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(p)}"`);return g},anyOf:h,oneOf:h,allOf:(E,p)=>a(E.concat(p)),propertyNames:y,contains:y,dependencies:Yp((E,p)=>Array.isArray(E)?Array.isArray(p)?au(E,p):y(p,{required:E}):Array.isArray(p)?y(E,{required:p}):y(E,p)),examples:(E,p)=>{if(!Array.isArray(E)||!Array.isArray(p))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(p)}"`);return au(E,p)},multipleOf:(E,p)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(p);)g*=10,E*=10,p*=10;return iO(E,p)/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:cu,required:au,...o};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function pO(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 hO(e){return t=>e(pO(t))}const{compareSchemaDefinitions:gO,compareSchemaValues:yO}=aO(),{mergeArrayOfSchemaDefinitions:vO}=mO({intersectJson:Z_(yO),deduplicateJsonSchemaDef:Xb(gO)}),ek=hO(vO);function er(e,t,r={},a,i,n=!1){return xn(e,t,r,a,void 0,void 0,i,n)[0]}function tk(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function bO(e,t,r,a,i,n,s){const{if:o,then:c,else:l,...u}=t,f=e.isValid(o,n||{},r);let m=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(xn(e,h,r,n,a,i,s))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(xn(e,h,r,n,a,i,s))}}else{const h=f?c:l;if(h!==void 0){const k=tk(h);d=d.concat(xn(e,k,r,n,a,i,s))}}return d.length&&(m=d.map(h=>Un(u,h))),m.flatMap(h=>xn(e,h,r,n,a,i,s))}function rk(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>zb(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function nk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(yt(r,[a],e.patternProperties[a]),r),{})}function kO(e,t,r,a,i,n,s,o){const c=ak(e,t,r,a,i,n,s,o);if(c.length>1||c[0]!==t)return c;if(wd in t)return sk(e,t,r,a,i,n,s).flatMap(u=>xn(e,u,r,n,a,i,s));if(_n in t&&Array.isArray(t[_n])){const l=t.allOf.map(f=>xn(e,f,r,n,a,i,s));return rk(l).map(f=>({...t,allOf:f}))}return[t]}function ak(e,t,r,a,i,n,s,o){const c=ua(t,r,i,void 0,o);return c!==t?xn(e,c,r,n,a,i,s,o):[t]}function ua(e,t,r,a,i,n=!1){if(!Ae(e))return e;let s=e,o=a;if(gt in s){const{$ref:c,...l}=s;if(r.includes(c))return n?{...s,[Ed]:!0}:s;r.push(c),s={...zs(c,t,o),...l,[xl]:c},pt in s&&(o=s[pt])}if(Ye in s){const c=[],l=M_(s[Ye],(u,f,m)=>{const d=[...r];u[m]=ua(f,t,d,o,i,!i),c.push(d)},{});MA(r,Gb(IA(c))),s={...s,[Ye]:l}}if(Mi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:ua(s.items,t,r,o,i)}),i){let c,l;We in e&&Array.isArray(e[We])?(c=We,l=s[We]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=s[Fe]),c&&l&&(s={...s,[c]:l.map(u=>ua(u,t,r,o,i))})}return Je(e,s)?e:s}function wO(e,t,r,a,i){const n={...t,properties:{...t.properties}},s=a&&Ae(a)?a:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(_f in n){const c=nk(n,o);if(!Rt(c)){n.properties[o]=er(e,{[_n]:Object.values(c)},r,oe(s,[o]),i),n.properties[o][la]=!0;return}}if(xi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=er(e,{[gt]:oe(n.additionalProperties,[gt])},r,oe(s,[o]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:We in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:Bs(oe(s,[o]))}:c={type:Bs(oe(s,[o]))},n.properties[o]=c,n.properties[o][la]=!0}else n.properties[o]={type:"null"},n.properties[o][la]=!0}}),n}function SO(e){return ek(e)}function xn(e,t,r,a,i=!1,n=[],s,o){return Ae(t)?kO(e,t,r,i,n,a,s,o).flatMap(l=>{var u;let f=l;if(Sd in f)return bO(e,f,r,i,n,a,s);if(_n 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):SO(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 Ye in f&&_f in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=nk(d,h);return Rt(k)||(d.properties[h]=er(e,{allOf:[d.properties[h],...Object.values(k)]},r,oe(a,[h]),s)),d},{...f,properties:{...f.properties}})),_f in f||xi in f&&f.additionalProperties!==!1?wO(e,f,r,a,s):f}):[{}]}function EO(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=Jr(t);n=n.map(m=>ua(m,r,[]));const f=Ul(e,l,n,r,u);if(a){const m=ik(n,!1,r);return Ul(e,l,m,r,u),n.map(d=>Un(c,d))}return[Un(c,n[f])]}return[t]}function ik(e,t=!1,r){return e.map(a=>{if(!Ae(a))return tk(a);const i=t&&r?ua(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function sk(e,t,r,a,i,n,s){const{dependencies:o,...c}=t;return EO(e,c,r,a,n).flatMap(u=>ok(e,o,u,r,a,i,n,s))}function ok(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]=zd(l,t);return Array.isArray(f)?c[0]=xO(r,f):Ae(f)&&(c=CO(e,r,a,l,f,i,n,s,o)),c.flatMap(m=>ok(e,u,m,a,i,n,s,o))}return c}function xO(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 CO(e,t,r,a,i,n,s,o,c){return xn(e,i,r,o,n,s,c).flatMap(u=>{const{oneOf:f,...m}=u,d=Un(t,m);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:ak(e,v,r,n,s,o));return rk(h).flatMap(v=>AO(e,d,r,a,v,n,s,o,c))})}function AO(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 m={type:"object",properties:{[a]:f}};return e.isValid(m,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,[m]=zd(a,f.properties),d={...f,properties:m};return xn(e,d,r,o,n,s,c).map(k=>Un(t,k))})}function xs(e,t,r,a,i,n={},s){if(Array.isArray(r[i])){const c=Jr(r)||a,l=r[i].map(f=>er(e,f,t,n,s)),u=oe(n,c);if(u!==void 0)return l.find(f=>Je(oe(f,[Ye,c,Ha],oe(f,[Ye,c,mr])),u))}}function lk(e,t,r,a,i){let n=r;if(Ge(r,gt)&&(n=er(e,r,t,void 0,i)),Rt(a))return n;const s=Array.isArray(a)?[...a]:a.split("."),[o,...c]=s;if(o!==void 0&&o!==""&&Ge(n,o))return n=oe(n,o),lk(e,t,n,c,i)}function Ol(e,t,r,a,i,n){const s=lk(e,t,r,a,n);return s===void 0?i:s}const th={title:"!@#$_UNKNOWN_$#@!"};function _O(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=Ol(e,t,o,[Ye,d],{},n),Ge(o,Fe)?o=xs(e,t,o,l,Fe,oe(i,d),n):Ge(o,We)&&(o=xs(e,t,o,l,We,oe(i,d),n))}),Ge(o,Fe)?o=xs(e,t,o,l,Fe,i,n):Ge(o,We)&&(o=xs(e,t,o,l,We,i,n));let u=Ol(e,t,o,[Ye,c],th,n);u===th&&(u=void 0);const f=Ol(e,t,o,Zv,[],n);let m;return u&&Array.isArray(f)&&(m=f.includes(l)),{field:u,isRequired:m}}function OO(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 TO(e,t){return function(r,a){if(r==null)return r;if(!ai(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 ck=TO($b);function PO(e,t,r,a,i){return i(e,function(n,s,o){r=a?(a=!1,n):t(r,n,s,o)}),r}function IO(e,t,r){var a=Vt(e)?OO:PO,i=arguments.length<3;return a(e,Bd(t),r,i,ck)}const RO={type:"object",$id:eS,properties:{__not_really_there__:{type:"number"}}};function Lf(e,t,r,a,i){let n=0;return r&&(Xe(r.properties)?n+=IO(r.properties,(s,o,c)=>{const l=oe(a,c);if(typeof o=="boolean")return s;if(Ge(o,gt)){const u=er(e,o,t,l,i);return s+Lf(e,t,u,l||{},i)}if((Ge(o,Fe)||Ge(o,We))&&l){const u=Ge(o,Fe)?Fe:We,f=Jr(o);return s+zi(e,t,l,oe(o,u),-1,f,i)}if(o.type==="object"){const u=Xe(l)?1:0;return s+u+Lf(e,t,o,l,i)}if(o.type===Bs(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):ba(r.type)&&r.type===Bs(a)&&(n+=1)),n}function zi(e,t,r,a,i=-1,n,s){const o=a.map(m=>ua(m,t,[])),c=Yb(r,a,n);if(Jb(c))return c;const l=o.reduce((m,d,h)=>(Ul(e,r,[RO,d],t,n)===1&&m.push(h),m),[]);if(l.length===1)return l[0];l.length||zb(o.length,m=>l.push(m));const u=new Set,{bestIndex:f}=l.reduce((m,d)=>{const{bestScore:h}=m,k=o[d],v=Lf(e,t,k,r,s);return u.add(v),v>h?{bestIndex:d,bestScore:v}:m},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function uk(e){const t=e[mr],r=Yr(e);return Ae(t)&&ba(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function fk(e){return Array.isArray(e.enum)&&e.enum.length===1||mr in e}function Hd(e){return Array.isArray(e.items)&&e.items.every(t=>Ae(t))}function $i(e){return e==null}function Vs(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?Vs(n[u],t[u],r,a,i):l);return(r||i)&&c.length<o.length&&c.push(...o.slice(c.length)),c}if(Ae(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var c;const l=oe(t,o),u=Ae(e)&&o in e,f=o in t,m=(c=oe(e,o))!==null&&c!==void 0?c:{},d=u&&Ae(m)&&Object.values(m).some(v=>Ae(v)),h=u&&Ae(oe(e,o)),k=f&&Ae(l);return h&&k&&!d?(s[o]={...oe(e,o),...l},s):(s[o]=Vs(oe(e,o),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&$i(t)||typeof t=="number"&&Number.isNaN(t))||i&&!$i(t)?e:t}function ka(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},s=t[i];if(e&&i in e&&Ae(s))a[i]=ka(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 NO(e){if(Qw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(mr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function jO(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 Ja(e,t){if(e.enum){let n,s;if(t){const{enumNames:c,enumOrder:l}=ke(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=jO(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=Jr(e);if(t){const{optionsSchemaSelector:n=i}=ke(t);i=n}return r==null?void 0:r.map((n,s)=>{var o,c,l;const{title:u}=ke(a==null?void 0:a[s]),f=n;let m,d=u;if(i){const h=oe(f,[Ye,i],{});m=oe(h,Ha,oe(h,mr)),d=(c=(o=d??(h==null?void 0:h.title))!==null&&o!==void 0?o:f.title)!==null&&c!==void 0?c:String(m)}else m=NO(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(m);return{schema:f,label:d,value:m}})}function dc(e,t,r={},a){const i=er(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"&&fk(s)):!1}function Wd(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:dc(e,t.items,r,a)}const DO=["string","number","integer","boolean","null"];var Ui;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ui||(Ui={}));function fu(e,t=Ui.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!==Ui.Ignore&&Ae(e.additionalItems)?e.additionalItems:{}}function dk(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Rt(t)&&r===null?null:t}function rh(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||!Ae(r)||!Rt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;Ae(r)?l==="skipEmptyDefaults"?Rt(r)||(e[t]=r):(!Rt(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 fa(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:m}=r;let d=Ae(i)?i:{};const h=Ae(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=o;if(h[mr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!uk(h))k=h[mr];else if(Ae(k)&&Ae(h.default)&&!h[We]&&!h[Fe]&&!h[gt])v?k=ka(h.default,k):k=ka(k,h.default);else if(Ha in h&&!v&&!h[We]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];o.includes(g)||(w=o.concat(g),y=zs(g,n));const S=i===void 0||Ae(i)&&Rt(i);y&&!k&&S&&(k=h.default),f&&y&&!Ae(i)&&(d=i)}else if(wd in h){const g={...nh(e,h,r,k),...d};[y]=sk(e,h,n,!1,[],g,l)}else if(Hd(h)&&!v)k=h.items.map((g,S)=>fa(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 C=Jr(h),{type:O="null"}=S;!Array.isArray(O)&&DO.includes(O)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}else if(We in h){const{anyOf:g,...S}=h;if(g.length===0)return;const C=Jr(h);y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}if(y)return fa(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=h.default);const E=nh(e,h,r,k);let p=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,C=Kd(e,h,n,i,c,l);(!Ae(i)||_n in h)&&(p=Vs(p,C,S,!0))}return p}function Kd(e,t,r,a,i,n){const s=(i==null?void 0:i.allOf)==="populateDefaults"&&_n in t,o=s?er(e,t,r,a,n):t,c=!fk(o)&&dc(e,o,r,n);let l=a;if(c){const f=Ja(o);l=(f==null?void 0:f.some(d=>Je(d.value,a)))?a:void 0}return o[mr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=o.const:Ae(l)&&Ae(o.properties)&&(l=Object.keys(o.properties).reduce((f,m)=>{const d=oe(o,[Ye,m],{});return m in f&&(s||Ae(d)&&_n in d)&&(f[m]=Kd(e,d,r,oe(f,m),i,n)),f},{...l})),l}function FO(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 m=Ae(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&_n in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Sd in d?er(e,d,a,m,o):d,v=k[mr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const p=oe(k,[Ye,w],{}),g=Ae(v)&&v[w]!==void 0,S=(Ae(p)&&mr in p||g)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!uk(p),C=fa(e,p,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[w]),rawFormData:oe(m,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return rh(b,w,C,i,c,k.required,s,S,(p==null?void 0:p.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=Ae(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(m).filter(p=>!k.properties||!k.properties[p]).forEach(p=>{w.add(p),E.push(p)}),Ae(f)&&E.length===0&&Object.keys(f).filter(p=>!k.properties||!k.properties[p]).forEach(p=>w.add(p)),w.forEach(p=>{var g;const S=fa(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[p]),rawFormData:oe(m,[p]),required:(g=k.required)===null||g===void 0?void 0:g.includes(p),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});rh(y,p,S,i,c,E)})}return dk(t,y)}}function MO(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 m,d;let h=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",p=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),C=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((x,A)=>{const N=fu(k,Ui.Fallback,A),I=Array.isArray(r)?r[A]:void 0;return fa(e,N,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:x,rawFormData:I,required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const x=fu(k);if(w)h=r;else{const A=r.map((I,F)=>fa(e,x,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:I,parentDefaults:oe(h,[F]),required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Vs(h,A,(E&&o||p)&&b)}}const O=Array.isArray(h)?h.length:0;if(w)return l&&!o?h:h??C;if(E&&!o)return h||void 0;let _;if(!k.minItems||Wd(e,k,a,s)||g(e,k,a)||k.minItems<=O)_=h||!o&&!c?h:C;else{const x=h||[],A=fu(k,Ui.Invert),N=A.default,I=Array.from({length:k.minItems-O},()=>fa(e,A,{parentDefaults:N,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:l}));_=x.concat(I)}return dk(t,_)}function nh(e,t,r={},a){switch(Yr(t)){case"object":return FO(e,t,r,a);case"array":return MO(e,t,r,a);default:return}}function mk(e,t,r,a,i=!1,n,s,o){if(!Ae(t))throw new Error(`Invalid schema: ${t}`);const c=er(e,t,a,r,s),l=fa(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(c.type!=="object"&&Ae(c.default))return{...l,...r};if(Ae(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",m=Kd(e,c,a??c,r,n,s);return Vs(l,m,!0,f,!0)}return l}function pk(e={}){return"widget"in ke(e)&&ke(e).widget!=="hidden"}function hk(e,t,r={},a,i){if(r[Cd]==="files")return!0;if(t.items){const n=er(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function LO(e,t,r={},a,i,n){const s=ke(r,i),{label:o=!0}=s;let c=!!o;if(c){const l=Yr(t),u=!!t[la];l==="array"&&(c=u||Wd(e,t,a,n)||hk(e,t,r,a,n)||pk(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[Cd]&&(c=!1),r!=null&&r[nS]&&(c=!1)}return c}function gk(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var s=t[a],o=ic(e,s);r(o,s)&&$d(n,Hi(s,e),o)}return n}function qO(e,t){return gk(e,t,function(r,a){return Hb(e,a)})}var yk=Nb(function(e,t){return e==null?{}:qO(e,t)});function zO(e,t){if(t.length===0&&typeof e!="object")return e;const r=yk(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function $O(e,t){const r=(i,n)=>typeof i!="object"||Rt(i)||n&&!Rt(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[xd]&&l[El]!==""?n.push(l[El]):a(l,n,u)}else c===El&&l!==""&&s.forEach(u=>{const f=oe(t,u),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(u)})}),n};return a(e)}function vk(e){return $i(e)||e===""?!0:Array.isArray(e)?e.length===0:Ae(e)?Object.values(e).every(vk):!1}function UO(e,t){return t?t(e):ek(e)}function BO(e,t,r={},a,i){function n(h){return Ae(h)}function s(h){return Ae(h)}function o(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:p}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(O,_,x,A=!1){var N;const I=d(_,x,v[O]);if(!A&&Ae(I)){let F=s(_)?_:{};F.$ref!==void 0&&(F=zs(F.$ref,r));const $=new Set((N=F.required)!==null&&N!==void 0?N:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&vk(ie)))return}I!==void 0&&(v[O]=I)}if(b!==void 0)for(const[O,_]of Object.entries(b))S(O,_,k[O],g.has(O));let C;if(E!==void 0){C=[];const O=Object.entries(E).map(([x,A])=>[new RegExp(x),A]),_=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))if(!_.has(x)){const N=O.find(([I])=>I.test(x));N===void 0?C.push(x):S(x,N[1],A)}}if(w!==void 0&&w!==!1){const O=w;if(C!==void 0)for(const _ of C)S(_,O,k[_]);else{const _=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))_.has(x)||S(x,O,A)}}if(p!==void 0)for(const[O,_]of Object.entries(k))v[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 p=(s(y)?e.isValid(y,k,r):y)?b:w;return p===void 0?v:d(p,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||dc(e,k,r,i))return y;const b=ik(h,!0,r),w=zi(e,r,v,b,0,Jr(k),i),E=h[w],p=Ae(E)?ua(E,r,[]):b[w];return d(p,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||Ae(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 m(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||Rt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(zs(b,r),k,v);if(w){y=UO(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 p=Yr(y);if(p==="object"){if(!n(k))return;E=o(y,k,n(E)?E:{})}else if(p==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return m(y,k,l(y,k,E))}return d(t,a)}const qr=Symbol("no Value");function bk(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=>mr in a?a[mr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:qr).filter(a=>a!==qr);return r.length>0?r:void 0}function VO(e,t){const r=bk(e);if(!r||r.some(i=>Je(i,t)))return qr;const a=oe(e,Ha,qr);return a!==qr&&r.some(i=>Je(i,a))?a:r.length===1?r[0]:void 0}function qf(e,t,r,a,i={},n){let s;if(Ge(r,Ye)){const o={};if(Ge(a,Ye)){const u=oe(a,Ye,{});Object.keys(u).forEach(f=>{Ge(i,f)&&(o[f]=void 0)})}const c=Object.keys(oe(r,Ye,{})),l={};c.forEach(u=>{const f=oe(i,u);let m=oe(a,[Ye,u],{}),d=oe(r,[Ye,u],{});Ge(m,gt)&&(m=er(e,m,t,f,n)),Ge(d,gt)&&(d=er(e,d,t,f,n));const h=oe(m,"type"),k=oe(d,"type");if(!h||h===k)if(Ge(o,u)&&delete o[u],k==="object"||k==="array"&&Array.isArray(f)){const v=qf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=oe(d,Ha,qr),y=oe(m,Ha,qr);v!==qr&&v!==f&&(y===f?o[u]=v:oe(d,"readOnly")===!0&&(o[u]=void 0));const b=oe(d,mr,qr),w=oe(m,mr,qr);if(b!==qr&&b!==f&&(o[u]=w===f?b:void 0),Ge(i,u)){const E=VO(d,f);E!==qr&&(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)){Ge(o,gt)&&(o=er(e,o,t,i,n)),Ge(c,gt)&&(c=er(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((m,d)=>{const h=qf(e,t,c,o,d,n);return h!==void 0&&(f<0||m.length<f)&&m.push(h),m},[]);else{const m=bk(c),d=m?i.filter(h=>m.some(k=>Je(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 aa(e,t,r,a,i,n=[],s){if(gt in t||wd in t||_n in t||Sd in t){const c=er(e,t,a,i,s);if(n.findIndex(u=>Je(u,c))===-1)return aa(e,c,r,a,i,n.concat(c),s)}let o={[El]:r.replace(/^\./,"")};if(Fe in t||We in t){const c=Fe in t?t.oneOf:t.anyOf,l=Jr(t),u=zi(e,a,i,c,0,l,s),f=c[u];o={...o,...aa(e,f,r,a,i,n,s)}}if(xi in t&&t[xi]!==!1){yt(o,xd,!0);const c=Xe(t[xi])?t[xi]:{},l=oe(t,Ye,{});for(const u of Object.keys(i??{}))u in l||(o[u]=aa(e,c,`${r}.${u}`,a,oe(i,[u]),n,s))}if(Mi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?o[f]=aa(e,c[f],`${r}.${f}`,a,u,n,s):l?o[f]=aa(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]=aa(e,c,`${r}.${f}`,a,u,n,s)})}else if(Ye in t)for(const c in t.properties){const l=oe(t,[Ye,c],{});o[c]=aa(e,l,`${r}.${c}`,a,oe(i,[c]),n,s)}return o}function HO(e,t,r="",a,i,n){return aa(e,t,r,a,i,void 0,n)}class WO{constructor(t,r,a,i){(r==null?void 0:r[Ss])===Cl?this.rootSchema=Df(r,oe(r,pt,"#")):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||!Je(this.rootSchema,r)||!Je(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return _O(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 mk(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return LO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return zi(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return Ul(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Ol(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return hk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Wd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return dc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return BO(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return er(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return qf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return HO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function KO(e,t,r={},a){return new WO(e,t,r,a)}function GO(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 ia(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function kk(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 kk(t,e).reverse();const o=[];for(let c=n;c<=s;c+=1)o.push({value:c,label:ia(c,2)});return o}function JO(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 YO(e,t){return JO(e,t)}function mc(e,t=[],r){if(Array.isArray(e))return e.map(n=>mc(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function wk(e,t,r=[]){const a=mc(e,r);return Array.isArray(t)?t.filter(i=>!Je(i,a)):Je(a,t)?void 0:t}function Ki(e,t){return Array.isArray(t)?t.some(r=>Je(r,e)):Je(t,e)}function Sk(e,t=[],r=!1){const a=t.map((i,n)=>Ki(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function XO(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=Sk(e,t,r);return typeof s>"u"?i:s}function Ek(e,t,r=[]){const a=mc(e,r);if(!$i(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 ah(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 on(e,t,r="indexed",a){return r!=="realValue"?mc(e,t,a):Array.isArray(e)?e.map(i=>ah(i,t,a)):ah(e,t,a)}function to(e,t,r="indexed"){return r!=="realValue"?String(t):$i(e)?"":String(typeof e=="object"?t:e)}var ZO=1,QO=4;function Bl(e){return Ts(e,ZO|QO)}function eT(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:$d(e,t,r,a)}class xk{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={},eT(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Bl(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=oe(a,Zt);return Array.isArray(i)||(i=[],a[Zt]=i),Array.isArray(t)?yt(a,Zt,[...new Set([...i,...t])]):yt(a,Zt,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return yt(a,Zt,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return yt(r,Zt,[]),this}}var tT=200;function rT(e,t,r,a){var i=-1,n=Vd,s=!0,o=e.length,c=[],l=t.length;if(!o)return c;t.length>=tT&&(n=Us,s=!1,t=new Ga(t));e:for(;++i<o;){var u=e[i],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=l;m--;)if(t[m]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var nT=cc(function(e,t){return $s(e)?rT(e,eo(t,1,$s,!0)):[]});function aT(e,t){if(e==null)return{};var r=Vi(Ld(e),function(a){return[a]});return t=Bd(t),gk(e,r,function(a,i){return t(a,i[0])})}function ih(e,t){const r=ya(e),a=ya(t);if(e===t||!r&&!a)return[];if(r&&!a)return nn(e);if(!r&&a)return nn(t);const i=nn(aT(e,(s,o)=>!Je(s,oe(t,o)))),n=nT(nn(t),nn(e));return[...i,...n]}function iT(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},m={type:"year",range:r,value:s},d=[];switch(a){case"MDY":d.push(f,u,m);break;case"DMY":d.push(u,f,m);break;case"YMD":default:d.push(m,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 sT(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 oT(e,t,r={},a=!0){const i={type:t||"text",...sT(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 ro(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const sh={props:{disabled:!1},submitText:"Submit",norender:!1};function Ck(e={}){const t=ke(e);if(t!=null&&t[Ml]){const r=t[Ml];return{...sh,...r}}return sh}function xe(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 lT=0;function Ak(e){var t=++lT;return Od(e)+t}function Gd(){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,Ak("test-id-")),e.get(r)}})}var _o={exports:{}},ft={};/**
|
|
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,R,M,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 oh;function cT(){if(oh)return ft;oh=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"),s=Symbol.for("react.context"),o=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"),m=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 o:case s:case c:case m:case f:case n:return v;default:return y}}case t:return y}}}return ft.ContextConsumer=s,ft.ContextProvider=n,ft.Element=e,ft.ForwardRef=c,ft.Fragment=r,ft.Lazy=m,ft.Memo=f,ft.Portal=t,ft.Profiler=i,ft.StrictMode=a,ft.Suspense=l,ft.SuspenseList=u,ft.isAsyncMode=function(){return!1},ft.isConcurrentMode=function(){return!1},ft.isContextConsumer=function(v){return k(v)===s},ft.isContextProvider=function(v){return k(v)===n},ft.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ft.isForwardRef=function(v){return k(v)===c},ft.isFragment=function(v){return k(v)===r},ft.isLazy=function(v){return k(v)===m},ft.isMemo=function(v){return k(v)===f},ft.isPortal=function(v){return k(v)===t},ft.isProfiler=function(v){return k(v)===i},ft.isStrictMode=function(v){return k(v)===a},ft.isSuspense=function(v){return k(v)===l},ft.isSuspenseList=function(v){return k(v)===u},ft.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===m||v.$$typeof===f||v.$$typeof===n||v.$$typeof===s||v.$$typeof===c||v.$$typeof===h||v.getModuleId!==void 0)},ft.typeOf=k,ft}var dt={};/**
|
|
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,R,M,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,We]){const f=l[u];if(Array.isArray(f)&&f.length>0){const m=c[u],d=Array.isArray(m)?[...m]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[xl])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in s){const b=d[k]||{};d[k]=ka(s[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Ps(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 Ps(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Ps(e.oneOf[0]);if(e.allOf){const i=n=>Ps(n);return e.allOf.some(i)}return!1}function kT({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}=ke(n,i.globalUiOptions);if(!l)return null;const u=(o=a.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Ki(d,s)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const m=xe("DescriptionFieldTemplate",i,a);return j.jsx(m,{id:Ca(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function zf(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 wT(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:s,state:o}=e;return!zf(s,t)||!zf(o,r)}const{props:i,state:n}=e;return!Je(i,t)||!Je(n,r)}function uh(e){const t=Kb(e.map(r=>Xe(r)?Yr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function no(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=ke(a,e.globalUiOptions);let n;return We in t&&Array.isArray(t[We])?n=uh(t[We]):Fe in t&&Array.isArray(t[Fe])?n=uh(t[Fe]):n=Yr(t),!pT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(s=>s===n)}function fh(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 Qd(e,t=[]){if(!e)return[];let r=[];return Zt in e&&(r=r.concat(e[Zt].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==Zt){const n=e[i];if(ya(n))return a.concat(Qd(n,[...t,i]))}return a},r)}function Ok(e){return Vt(e)?Vi(e,va):Js(e)?[e]:Dd(ob(Od(e)))}function ST(e){const t=new Ek;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:Ok(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function cn(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,[pt]:o,...c!==void 0&&{name:c}}}function Tk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return ya(a)?{...t,[r]:Tk(a)}:{...t,[r]:a}},{})}function ET(e){return Object.values(e).every(t=>t!==-1)}function xT(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:m,onFocus:d}=e,h=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=W.useCallback(y=>n(r,y),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:h,name:o,className:t,options:{enumOptions:bk(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":dn(s)})}function CT(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:s}=e,[o,c]=W.useState(pu(s,t));W.useEffect(()=>{c(pu(s,t))},[t,s]);const l=W.useCallback((d,h)=>{const k={...o,[d]:typeof h>"u"?-1:h};ET(k)?n(fh(k,t)):c(k)},[o,n,t]),u=W.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=W.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=pu(new Date().toJSON(),t);n(fh(h,t))},[r,a,t,n]);return{elements:W.useMemo(()=>nT(o,t,i.yearsRange,i.format),[o,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ji(e){const t=W.useRef(e);return Je(e,t.current)||(t.current=e),t.current}function AT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function _T(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:AT(o.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},s.readAsDataURL(e)})}async function OT(e){return Promise.all(Array.from(e).map(_T))}function dh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=WO(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function TT(e,t,r=!1){const a=W.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=W.useMemo(()=>Array.isArray(e)?dh(e):dh([e||""]),[e]),n=W.useCallback(async o=>{const l=(await OT(o)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),s=W.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 PT(e){if(!e)return"";const t=new Date(e),r=ia(t.getFullYear(),4),a=ia(t.getMonth()+1,2),i=ia(t.getDate(),2),n=ia(t.getHours(),2),s=ia(t.getMinutes(),2),o=ia(t.getSeconds(),2),c=ia(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${s}:${o}.${c}`}function Cs(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=Qd(t),s=t;return Rt(i)||(s=ka(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:s,errors:n}}function IT(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]=tb+a:t[r]=em(a)}return e}function RT(e){return e.map(t=>em(t))}function em(e){return Array.isArray(e)?RT([...e]):Xe(e)?IT({...e}):e}var Le;(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)"})(Le||(Le={}));function NT(e,t){var r=Vt(e)?Rd:lk;return r(e,Mb(t))}function jT(e,t){return e==null?!0:Tb(e,t)}function $f(){return Ck("rjsf-array-item-")}function mh(e){return Array.isArray(e)?e.map(t=>({key:$f(),item:t})):[]}function Pk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function DT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Ik(e,t,r,a){let{addable:i}=ke(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function Rk(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 FT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Hd(t)&&Yw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function MT(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:m,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=m,E=y.retrieveSchema(t.items,i),p=(a==null?void 0:a.items)??a,g=Ja(E,p),{widget:S="select",title:C,...O}=ke(a,w),_=On(t,S,v),x=C??t.title??h,A=y.getDisplayLabel(t,a,w),N=Ji(cn("",b,r,!0));return j.jsx(_,{id:N[pt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...O,enumOptions:g},schema:t,uiSchema:a,registry:m,value:i,disabled:n,readonly:s,required:c,label:x,hideLabel:!A,placeholder:l,autofocus:o,rawErrors:d,htmlName:N.name})}function LT(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:m=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:p,title:g,...S}=ke(a,E),C=On(t,p,y),O=g??t.title??k,_=b.getDisplayLabel(t,a,E),x=Ji(cn("",w,r,!0));return j.jsx(C,{id:x[pt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:m,disabled:i,readonly:n,hideError:c,required:o,label:O,hideLabel:!_,placeholder:l,autofocus:s,rawErrors:h,htmlName:x.name})}function qT(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:m=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...p}=ke(r,b),g=On(t,w,k),S=E??t.title??i,C=v.getDisplayLabel(t,r,b),O=Ji(cn("",y,a,!0));return j.jsx(g,{options:p,id:O[pt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:c,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!C,htmlName:O.name})}function zT(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:m,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:p,onChange:g,rawErrors:S,totalItems:C,title:O,handleAddItem:_,handleCopyItem:x,handleRemoveItem:A,handleReorderItems:N}=e,{schemaUtils:I,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=o,ie=W.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=W.useMemo(()=>cn(r,Z,y),[r,Z,y]),D=F||$,U=xe("ArrayFieldItemTemplate",o,c),T=I.getDisplayLabel(ie,v,Y),{description:R}=ke(v),M=!!R||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&m,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=W.useCallback(ae=>{_(ae,r+1)},[_,r]),q=W.useCallback(ae=>{x(ae,r)},[x,r]),z=W.useCallback(ae=>{A(ae,r)},[A,r]),H=W.useCallback(ae=>{N(ae,r,r-1)},[N,r]),G=W.useCallback(ae=>{N(ae,r,r+1)},[N,r]),te={children:j.jsx(D,{name:a,title:O,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:DT(ie),onChange:g,onBlur:E,onFocus:p,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:C,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:H,onMoveDownItem:G,registry:o,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:C,readonly:s,registry:o,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:M};return j.jsx(U,{...te})}const Nk=W.memo(zT);function $T(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:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e,S=t.title||o||s,{schemaUtils:C,fields:O,formContext:_,globalUiOptions:x}=d,{OptionalDataControlsField:A}=O,N=W.useMemo(()=>ke(r,x),[r,x]),I=W.useMemo(()=>Xe(t.items)?t.items:{},[t.items]),F=W.useMemo(()=>C.retrieveSchema(I),[C,I]),$=W.useMemo(()=>Pk(b),[b]),Y=no(d,t,f,r),Z=Gi(n),ie=W.useMemo(()=>Ik(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],D=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?j.jsx(A,{...e,fieldPathId:U}):void 0,R={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=Rk(r,J,V,_),H={itemKey:K,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:N,parentUiSchema:r,hideError:m,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:p,handleReorderItems:g,onChange:y};return j.jsx(Nk,{...H},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${D}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},M=xe("ArrayFieldTemplate",d,N);return j.jsx(M,{...R})}function UT(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:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e;let{formData:S=[]}=e;const C=t.title||o||s,{fields:O,formContext:_,globalUiOptions:x}=d,A=W.useMemo(()=>ke(r,x),[r,x]),{OptionalDataControlsField:N}=O,I=no(d,t,f,r),F=Gi(a),$=W.useMemo(()=>Xe(t.items)?t.items:[],[t.items]),Y=Xe(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=F?y:[],P=I?" rjsf-optional-array-field":"",D=I?j.jsx(N,{...e,fieldPathId:Z}):void 0,U=Ik(d,t,S,r)&&Y&&(!I||F),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((M,B)=>{const{key:V,item:K}=M,J=K,Q=B>=$.length,q=(Q&&Xe(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=Rk(r,K,B,_);const H=i?i[B]:void 0,G={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:A,parentUiSchema:r,hideError:m,readonly:l,disabled:c,required:f,title:C?`${C}-${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:H,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g};return j.jsx(Nk,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:C,errorSchema:i,rawErrors:v,optionalDataControl:D},R=xe("ArrayFieldTemplate",d,A);return j.jsx(R,{...T})}function BT(e=[]){const t=W.useMemo(()=>Br(e),[e]),[r,a]=W.useState(()=>({formDataHash:t,keyedFormData:mh(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]})):mh(o),n=t,a({formDataHash:n,keyedFormData:i})}const s=W.useCallback(o=>{const c=Pk(o),l=Br(c);return a({formDataHash:l,keyedFormData:o}),c},[]);return{keyedFormData:i,updateKeyedFormData:s}}function VT(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:m}=BT(s),d=W.useRef(f);d.current=f;const h=W.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);O===void 0||I<O?yt(_,[I],h.current[I]):I>=O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:FT(n,t)},A=[...d.current];O!==void 0?A.splice(O,0,x):A.push(x),o(m(A),k.path,_)},[n,t,o,m,k]),y=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);I<=O?yt(_,[I],h.current[I]):I>O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:Bl(d.current[O].item)},A=[...d.current];O!==void 0?A.splice(O+1,0,x):A.push(x),o(m(A),k.path,_)},[o,m,k]),b=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const A of Object.keys(h.current)){const N=parseInt(A,10);N<O?yt(_,[N],h.current[N]):N>O&&yt(_,[N-1],h.current[N])}}const x=d.current.filter((A,N)=>N!==O);o(m(x),k.path,_)},[o,m,k]),w=W.useCallback((C,O,_)=>{C&&(C.preventDefault(),C.currentTarget.blur());let x;if(h.current){x={};for(const I of Object.keys(h.current)){const F=parseInt(I,10);F===O?yt(x,[_],h.current[O]):F===_?yt(x,[O],h.current[_]):yt(x,[I],h.current[F])}}function A(){const I=d.current.slice();return I.splice(O,1),I.splice(_,0,d.current[O]),I}const N=A();o(m(N),k.path,x)},[o,m,k]),E=W.useCallback((C,O,_,x)=>{const A=typeof O.at(-1)=="number";o(A&&C===void 0?null:C,O,_,x)},[o]),p=W.useCallback(C=>{o(C,k.path,void 0,k==null?void 0:k[pt])},[o,k]),g={...e,formData:s,fieldPathId:k,onSelectChange:p},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(Mi in t)){if(!c.useFallbackUiForUnsupportedType){const O=ke(r),_=xe("UnsupportedFieldTemplate",n,O);return j.jsx(_,{schema:t,fieldPathId:i,reason:u(Le.MissingItems),registry:n})}const C={...t,[Mi]:{type:void 0}};g.schema=C,S.schema=C}return l.isMultiSelect(g.schema)?j.jsx(MT,{...g}):mk(r)?j.jsx(LT,{...g}):Hd(g.schema)?j.jsx(UT,{...S}):l.isFilesArray(g.schema,r)?j.jsx(qT,{...g}):j.jsx($T,{...S})}function HT(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:m,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:p="checkbox",title:g,label:S=!0,enumNames:C,...O}=ke(a,E),_=On(t,p,b),x=w(Le.YesLabel),A=w(Le.NoLabel);let N;const I=g??y??m??r;if(Array.isArray(t.oneOf))N=Ja({oneOf:t.oneOf.map($=>{if(Xe($))return{...$,title:$.title||($.const===!0?x:A)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!C&&$.length===2&&$.every(Y=>typeof Y=="boolean")?N=[{value:$[0],label:$[0]?x:A},{value:$[1],label:$[1]?x:A}]:N=Ja({enum:$},a)}const F=W.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return j.jsx(_,{options:{...O,enumOptions:N},schema:t,uiSchema:a,id:i.$id,name:r,onChange:F,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 WT(e){const[t,r]=W.useState(!1),{name:a,registry:i,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:c}=i,l=ke(s,c),u=xe("CyclicSchemaExpandTemplate",i,l);if(!t)return j.jsx(u,{registry:i,schema:n,uiSchema:s,name:a,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[Ed]:!1}})}function KT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function GT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function JT(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 YT(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:m,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=m,[w,E]=W.useState(GT(r)),p=ke(s),g=Ji(cn("__internal_type_selector",b,d)),S=v(Le.Type),C=W.useMemo(()=>KT(S),[S]),O=A=>{A!=null&&(E(A),h(JT(r,A),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:A=v(Le.UnknownFieldType,[String(i.type)])}=e,N=xe("UnsupportedFieldTemplate",m,p);return j.jsx(N,{schema:i,fieldPathId:d,reason:A,registry:m})}const _=xe("FallbackFieldTemplate",m,p),{SchemaField:x}=y;return j.jsx(_,{schema:i,registry:m,typeSelector:j.jsx(x,{fieldPathId:g,name:`${n}__fallback_type`,schema:C,formData:w,onChange:O,onBlur:u,onFocus:f,registry:m,hideLabel:!a,disabled:c,readonly:l,required:o},r?Br(r):"__empty__"),schemaField:j.jsx(x,{...e,schema:{type:w,title:v(Le.Value),...w==="object"&&{additionalProperties:!0}}})})}function XT(e,t){return Vi(t,function(r){return e[r]})}function ZT(e){return e==null?[]:XT(e,nn(e))}var QT=Math.max;function eP(e,t,r,a){e=ai(e)?e:ZT(e),r=r?Lb(r):0;var i=e.length;return r<0&&(r=QT(i+r,0)),ba(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Hb(e,t,r)>-1}var tP=Math.min;function rP(e,t,r){for(var a=Vd,i=e[0].length,n=e.length,s=n,o=Array(n),c=1/0,l=[];s--;){var u=e[s];c=tP(u.length,c),o[s]=i>=120&&u.length>=120?new Ga(s&&u):void 0}u=e[0];var f=-1,m=o[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(m?Us(m,h):a(l,h))){for(s=n;--s;){var k=o[s];if(!(k?Us(k,h):a(e[s],h)))continue e}m&&m.push(h),l.push(d)}}return l}function nP(e){return $s(e)?e:[]}var ph=cc(function(e){var t=Vi(e,nP);return t.length&&t[0]===e[0]?rP(t):[]});function aP(e,t){return uc(e,t)}function jk(e){return e===void 0}var Cn;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Cn||(Cn={}));var Is;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Is||(Is={}));const iP=/^\$lookup=(.+)/,hu="layoutGrid";function hh(e,t){return e??t}function sP(e){return/^\d+?$/.test(e)}const da=Gd();function oP(e,t,r,a,i){const n=oe(r,[Of],{}),s=oe(r,e),o={...oe(s,[ca],{}),...t,...n},c={...s};Rt(o)||yt(c,[ca],o),Rt(n)||yt(c,[Of],n);let{readonly:l}=ke(c);return(i===!0||jk(l)&&a===!0)&&(l=!0,Ge(o,Jc)?yt(c,[ca,Jc],!0):yt(c,`ui:${Jc}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function lP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=jf([t]).sort(),i=jf([r]).sort();switch(e){case Is.ALL:return aP(a,i);case Is.SOME:return ph(a,i).length>0;case Is.NONE:return ph(a,i).length===0;default:return!1}}function gc(e,t,r){let a={},i=e[t];if(ya(i)){const{children:n,className:s,...o}=i;if(i=n,s){const l=s.split(" ").map(u=>Zd(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 gh(e,t,r){let a,i=t;if(sP(r)&&e&&(e==null?void 0:e.type)==="array"&&Ge(e,Mi)){const n=Number(r),s=e[Mi];Array.isArray(s)?n>s.length?a=Ob(s):a=s[n]:a=s,i={[pt]:t[pt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function cP(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),m=a,d=f.readOnly;l.forEach(v=>{if(c=cn(v,s,c),Ge(f,Ye))o=oe(f,[Ye,v],{});else if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=n.findSelectedOptionInXxxOf(f,v,y,m);o=oe(b,[Ye,v],{})}else{const y=gh(f,c,v);o=y.rawSchema??{},c=y.fieldPathId}m=oe(m,v,{}),f=n.retrieveSchema(o,m),d=hh(f.readOnly,d)});let h,k=!1;if(Rt(f)&&(f=void 0),f&&u){if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We;f=n.findSelectedOptionInXxxOf(f,u,y,m)}c=cn(u,s,c),k=f!==void 0&&Array.isArray(f.required)&&eP(f.required,u);const v=gh(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=oe(f,[Ye,u]),f=f&&n.retrieveSchema(f)),d=hh(f==null?void 0:f.readOnly,d),f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=Jr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function uP(e,t){let r=e;return ba(r)&&(r=Zd(t,r)),Ys(r)?r:null}function fP(e,t){let r,a=null,i={},n;if(ba(t)||jk(t))r=t??"";else{const{name:s="",render:o,...c}=t;r=s,i=c,Rt(i)||NT(i,(l,u)=>{if(ba(l)){const f=iP.exec(l);if(Array.isArray(f)&&f.length>1){const m=f[1];i[u]=Zd(e,m,m)}}}),a=uP(o,e),!s&&a&&(n=j.jsx(a,{...c,"data-testid":da.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function yc(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=>W.createElement(tm,{...r,key:`layoutGrid-${Br(c)}`,schema:o,layoutGridSchema:c}))}function dP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:s}=gc(t,Cn.CONDITION,i),{operator:o,field:c="",value:l}=s,u=oe(a,c,null);return lP(o,u,l)?j.jsx(yc,{...r,childrenLayoutGridSchemaId:n}):null}function mP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMN,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function pP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMNS,a),o=ke(i),c=xe("GridTemplate",a,o);return n.map(l=>j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Br(l)}`))}function hP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.ROW,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{...s,"data-testid":da.row,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function gP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:s,onFocus:o,formData:c,readonly:l,registry:u,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=fP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:p,isRequired:g,isReadonly:S,optionsInfo:C,fieldPathId:O}=cP(u,b,r,c,n),_=Ji(O);if(y.rendered)return y.rendered;if(p){const x=C!=null&&C.hasDiscriminator?v:k,{fieldUiSchema:A,uiReadonly:N}=oP(b,E,a,S,l);return j.jsx(x,{"data-testid":C!=null&&C.hasDiscriminator?da.layoutMultiSchemaField:da.field,...m,name:b,required:g,readonly:N,schema:p,uiSchema:A,errorSchema:oe(i,b),fieldPathId:_,formData:oe(c,b),onChange:d,onBlur:s,onFocus:o,options:C==null?void 0:C.options,registry:u})}return w?j.jsx(w,{"data-testid":da.uiComponent,...m,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 tm(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=ke(t);if(!r&&hu in a&&Xe(a[hu])&&(r=a[hu]),Xe(r)){if(Cn.ROW in r)return j.jsx(hP,{...e,layoutGridSchema:r});if(Cn.COLUMN in r)return j.jsx(mP,{...e,layoutGridSchema:r});if(Cn.COLUMNS in r)return j.jsx(pP,{...e,layoutGridSchema:r});if(Cn.CONDITION in r)return j.jsx(dP,{...e,layoutGridSchema:r})}return j.jsx(gP,{...e,gridSchema:r})}tm.TEST_IDS=da;function yP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,name:o}=e,c=ke(i,s.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||o;if(!f)return null;const m=xe("TitleFieldTemplate",s,c);return j.jsx(m,{id:pc(t),title:f,required:n,schema:a,uiSchema:i,registry:s})}function gu(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=oe(n,[Ye,t]);return oe(s,Ha,oe(s,mr,a))===r})}function yh(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let s=e;Ge(e,Fe)?s={...e,[Fe]:n}:Ge(e,We)&&(s={...e,[We]:n});const o=Ja(s,a);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function vP(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:m,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[p,g]=W.useState(yh(m,c,w,f,i)),S=oe(n,pt),C=Jr(m),O=xe("FieldErrorTemplate",u,c),_=xe("FieldTemplate",u,c),x=Br(m),A=Br(c),N=f?Br(f):"",I=i?Br(i):"";W.useEffect(()=>{g(yh(m,c,w,f,i))},[x,A,w,N,I]);const{widget:F=C?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=C,hideError:ie,...P}=ke(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const D=oe(i,Z);let U=oe((z=p[0])==null?void 0:z.schema,[Ye,Z],{});const T=gu(p,Z,D);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const R=On(U,F,b),M=ie===void 0?y:!!ie,B=oe(v,[Zt],[]),V=qs(v,[Zt]),K=w.getDisplayLabel(m,f,E),J=H=>{if(a||h)return;const G=gu(p,Z,H),te=gu(p,Z,D);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&yt(ae,Z,H),o(ae,n.path,void 0,S)},Q={enumOptions:p,...P},q=!M&&B.length>0?j.jsx(O,{fieldPathId:n,schema:m,errors:B,registry:u}):void 0;return j.jsx(_,{fieldPathId:n,id:S,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:o,onKeyRename:Al,onKeyRenameBlur:Al,onRemoveProperty:Al,children:j.jsx(R,{id:S,name:t,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:M,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:s,onFocus:l,value:D,options:Q,htmlName:n.name})})}function vh(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:m=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Br(i??null),y=W.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=W.useState(()=>{const ae=Jr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=W.useRef(!1),p=W.useRef(i),g=W.useRef(n.$id);W.useEffect(()=>{const ae=p.current,me=g.current;if(p.current=i,g.current=n.$id,!Je(i,ae)&&n.$id===me){if(E.current){E.current=!1;return}const ve=Jr(d),Ce=k.getClosestMatchingOption(i,y,b,ve);Ce!==b&&w(Ce)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,C=W.useCallback(ae=>{if(r||u)return;const me=ae!==void 0?parseInt(ae,10):-1;if(me===b)return;const ve=me>=0?y[me]:void 0,Ce=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ce,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(me),E.current=!0,o(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,o,S]),{widgets:O,fields:_,translateString:x,globalUiOptions:A}=f,{SchemaField:N}=_,I=xe("MultiSchemaFieldTemplate",f,A),F=no(f,d,m,h),$=Gi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:D=d.title,...U}=ke(h,A),T=On({type:"number"},Y,O),R=oe(a,Zt,[]),M=qs(a,[Zt]),B=k.getDisplayLabel(d,h,A),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:me}=d,ve={};ae&&(ve.required=ae),me!==void 0&&!("type"in V)&&(ve.type=me),K=Object.keys(ve).length>0?Un(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 "${D||t}"`):We in d&&h&&We in h&&(Array.isArray(h[We])?J=h[We]:console.warn(`uiSchema.anyOf is not an array for "${D||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=D?Le.TitleOptionPrefix:Le.OptionPrefix,z=D?[D]:[],H=y.map((ae,me)=>{const{title:ve=ae.title}=ke(J[me]);return{label:ve||x(q,z.concat(String(me+1))),value:me}}),G=!F||$?j.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:C,onBlur:s,onFocus:c,disabled:r||Rt(H),multiple:!1,rawErrors:R,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:H,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:D??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&j.jsx(N,{...e,schema:K,uiSchema:Q})||null;return j.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function bP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return W.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const kP=/\.([0-9]*0)*$/,wP=/[0.]0*$/;function SP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,s]=W.useState(i),{StringField:o}=t.fields,c=Yv(),l=c==="."?"\\.":c;let u=a;const f=W.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"&&kP.exec(b)?np(b.replace(wP,"")):np(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 m=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ja(d,h):void 0)?"select":"text",{widget:b=y}=ke(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(u).replace(".",c))}return j.jsx(o,{...e,formData:m,onChange:f})}var Oo;function EP(e){if(!Oo){if(typeof document>"u")return;Oo=document.createElement("textarea")}var t=`&${e};`;Oo.innerHTML=t;var r=Oo.value;return r===t?void 0:r}var ce=32,de=9,wa=13,ye=10,it=96,qt=126,It=91,Kn=94,Ue=62,Xr=35,Uf=37,Me=45,Vr=61,Bt=92,Nt=42,_t=95,mt=60,Dk=64,un=93,pr=33,vc=38,ar=58,Bf=70,Ya=102,Vl=104,Ba=119,Ri=116,Vf=112,Fk=115,xP=160,CP=12,AP=44,Hl=59,Yi=63,Hr=46,Pt=47,Xa=39,Za=34,Sa=43,Ut=124,Qa=123,rm=125,an=40,ln=41,_P=78,OP=110,TP=79,PP=111,Mk=120,Lk=88,Hf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,vt=122,bc=128,rn=32,IP={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=IP;function RP(e){if(!kh(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 lh;function uT(){return lh||(lh=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"),s=Symbol.for("react.context"),o=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"),m=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===m||G.$$typeof===f||G.$$typeof===n||G.$$typeof===s||G.$$typeof===c||G.$$typeof===w||G.getModuleId!==void 0))}function p(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 me=ae&&ae.$$typeof;switch(me){case o:case s:case c:case m:case f:case n:return me;default:return te}}case t:return te}}}var g=s,S=n,C=e,O=c,_=r,x=m,A=f,N=t,I=i,F=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 D(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 p(G)===s}function T(G){return p(G)===n}function R(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function M(G){return p(G)===c}function B(G){return p(G)===r}function V(G){return p(G)===m}function K(G){return p(G)===f}function J(G){return p(G)===t}function Q(G){return p(G)===i}function q(G){return p(G)===a}function z(G){return p(G)===l}function H(G){return p(G)===u}dt.ContextConsumer=g,dt.ContextProvider=S,dt.Element=C,dt.ForwardRef=O,dt.Fragment=_,dt.Lazy=x,dt.Memo=A,dt.Portal=N,dt.Profiler=I,dt.StrictMode=F,dt.Suspense=$,dt.SuspenseList=Y,dt.isAsyncMode=P,dt.isConcurrentMode=D,dt.isContextConsumer=U,dt.isContextProvider=T,dt.isElement=R,dt.isForwardRef=M,dt.isFragment=B,dt.isLazy=V,dt.isMemo=K,dt.isPortal=J,dt.isProfiler=Q,dt.isStrictMode=q,dt.isSuspense=z,dt.isSuspenseList=H,dt.isValidElementType=E,dt.typeOf=p})()),dt}var ch;function fT(){return ch||(ch=1,process.env.NODE_ENV==="production"?_o.exports=cT():_o.exports=uT()),_o.exports}var dT=fT();const uh=Pn(dT),du={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 mT(e){var t;let r=oe(e,"MergedWidget");if(!r){const a=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:i,...n})=>j.jsx(e,{options:{...a,...i},...n}),yt(e,"MergedWidget",r)}return r}function On(e,t,r={}){const a=Yr(e);if(typeof t=="function"||t&&uh.isForwardRef(W.createElement(t))||uh.isMemo(t))return mT(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 On(e,i,r)}if(typeof a=="string"){if(!(a in du))throw new Error(`No widget for type '${a}' in schema: ${JSON.stringify(e)}`);if(t in du[a]){const i=r[du[a][t]];return On(e,i,r)}}throw new Error(`No widget '${t}' for type '${a}' in schema: ${JSON.stringify(e)}`)}function _k(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 Ok(e){const t=new Set;return JSON.stringify(e,(r,a)=>(t.add(r),a)),JSON.stringify(e,Array.from(t).sort())}function Br(e){return _k(Ok(e))}function pT(e){return _k(Ok(e))}function hT(e,t,r={}){try{return On(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 ii(e,t){return`${ba(e)?e:e[pt]}__${t}`}function Ca(e){return ii(e,"description")}function Jd(e){return ii(e,"error")}function Yd(e){return ii(e,"examples")}function Xd(e){return ii(e,"help")}function pc(e){return ii(e,"title")}function dn(e,t=!1){const r=t?` ${Yd(e)}`:"";return`${Jd(e)} ${Ca(e)} ${Xd(e)}${r}`}function hc(e,t){return`${e}-${t}`}function Rr(e,t){return ii(e,t)}function mu(e,t){return ii(e,`optional${t}`)}function Gi(e){return!$i(e)&&(!Xe(e)||Array.isArray(e)||!Rt(e))}function gT(e,t){const{rootSchema:r,schemaUtils:a}=e;if(Je(t,r))return!0;if(gt in r){const i=a.retrieveSchema(r);return Je(t,i)}return!1}function yT(e,t,r){return t?r:e}function vT(e){return e?new Date(e).toJSON():void 0}function bT(e,t,r,a=!1){!a&&Array.isArray(r)&&t.default!==void 0&&Sk(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 Zd(e,t,r){const a=[rS];return Ge(e,ip)&&a.unshift(ip),oe(e,[...a,t],r)}function kT(e,t){if(!Array.isArray(t))return e;const r=u=>u.reduce((f,m)=>(f[m]=!0,f),{}),a=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=r(e),n=t.filter(u=>u==="*"||i[u]),s=r(n),o=e.filter(u=>!s[u]),c=n.indexOf("*");if(c===-1){if(o.length)throw new Error(`uiSchema order list does not contain ${a(o)}`);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,...o),l}function pu(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 wT(e,t,r){var a,i;const n=(a=e[xl])!==null&&a!==void 0?a:e[gt],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let c;if(o?!t||Rt(t)?c={...o}:c=ka(o,t):c=t||{},s){let l=e;if(n&&e[gt]&&!e[xl])try{l=zs(n,r.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
50
|
+
`,u),c}for(const u of[Fe,We]){const f=l[u];if(Array.isArray(f)&&f.length>0){const m=c[u],d=Array.isArray(m)?[...m]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[xl])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in s){const b=d[k]||{};d[k]=ka(s[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Ps(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 Ps(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Ps(e.oneOf[0]);if(e.allOf){const i=n=>Ps(n);return e.allOf.some(i)}return!1}function ST({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}=ke(n,i.globalUiOptions);if(!l)return null;const u=(o=a.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Ki(d,s)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const m=xe("DescriptionFieldTemplate",i,a);return j.jsx(m,{id:Ca(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function zf(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 ET(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:s,state:o}=e;return!zf(s,t)||!zf(o,r)}const{props:i,state:n}=e;return!Je(i,t)||!Je(n,r)}function fh(e){const t=Gb(e.map(r=>Xe(r)?Yr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function no(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=ke(a,e.globalUiOptions);let n;return We in t&&Array.isArray(t[We])?n=fh(t[We]):Fe in t&&Array.isArray(t[Fe])?n=fh(t[Fe]):n=Yr(t),!gT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(s=>s===n)}function dh(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 Qd(e,t=[]){if(!e)return[];let r=[];return Zt in e&&(r=r.concat(e[Zt].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==Zt){const n=e[i];if(ya(n))return a.concat(Qd(n,[...t,i]))}return a},r)}function Tk(e){return Vt(e)?Vi(e,va):Js(e)?[e]:Dd(lb(Od(e)))}function xT(e){const t=new xk;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:Tk(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function cn(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,[pt]:o,...c!==void 0&&{name:c}}}function Pk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return ya(a)?{...t,[r]:Pk(a)}:{...t,[r]:a}},{})}function CT(e){return Object.values(e).every(t=>t!==-1)}function AT(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:m,onFocus:d}=e,h=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=W.useCallback(y=>n(r,y),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:h,name:o,className:t,options:{enumOptions:kk(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":dn(s)})}function _T(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:s}=e,[o,c]=W.useState(pu(s,t));W.useEffect(()=>{c(pu(s,t))},[t,s]);const l=W.useCallback((d,h)=>{const k={...o,[d]:typeof h>"u"?-1:h};CT(k)?n(dh(k,t)):c(k)},[o,n,t]),u=W.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=W.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=pu(new Date().toJSON(),t);n(dh(h,t))},[r,a,t,n]);return{elements:W.useMemo(()=>iT(o,t,i.yearsRange,i.format),[o,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ji(e){const t=W.useRef(e);return Je(e,t.current)||(t.current=e),t.current}function OT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function TT(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:OT(o.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},s.readAsDataURL(e)})}async function PT(e){return Promise.all(Array.from(e).map(TT))}function mh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=GO(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function IT(e,t,r=!1){const a=W.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=W.useMemo(()=>Array.isArray(e)?mh(e):mh([e||""]),[e]),n=W.useCallback(async o=>{const l=(await PT(o)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),s=W.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 RT(e){if(!e)return"";const t=new Date(e),r=ia(t.getFullYear(),4),a=ia(t.getMonth()+1,2),i=ia(t.getDate(),2),n=ia(t.getHours(),2),s=ia(t.getMinutes(),2),o=ia(t.getSeconds(),2),c=ia(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${s}:${o}.${c}`}function Cs(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=Qd(t),s=t;return Rt(i)||(s=ka(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:s,errors:n}}function NT(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]=rb+a:t[r]=em(a)}return e}function jT(e){return e.map(t=>em(t))}function em(e){return Array.isArray(e)?jT([...e]):Xe(e)?NT({...e}):e}var Le;(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)"})(Le||(Le={}));function DT(e,t){var r=Vt(e)?Rd:ck;return r(e,Lb(t))}function FT(e,t){return e==null?!0:Pb(e,t)}function $f(){return Ak("rjsf-array-item-")}function ph(e){return Array.isArray(e)?e.map(t=>({key:$f(),item:t})):[]}function Ik(e){return Array.isArray(e)?e.map(t=>t.item):[]}function MT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Rk(e,t,r,a){let{addable:i}=ke(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function Nk(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 LT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Hd(t)&&Zw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function qT(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:m,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=m,E=y.retrieveSchema(t.items,i),p=(a==null?void 0:a.items)??a,g=Ja(E,p),{widget:S="select",title:C,...O}=ke(a,w),_=On(t,S,v),x=C??t.title??h,A=y.getDisplayLabel(t,a,w),N=Ji(cn("",b,r,!0));return j.jsx(_,{id:N[pt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...O,enumOptions:g},schema:t,uiSchema:a,registry:m,value:i,disabled:n,readonly:s,required:c,label:x,hideLabel:!A,placeholder:l,autofocus:o,rawErrors:d,htmlName:N.name})}function zT(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:m=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:p,title:g,...S}=ke(a,E),C=On(t,p,y),O=g??t.title??k,_=b.getDisplayLabel(t,a,E),x=Ji(cn("",w,r,!0));return j.jsx(C,{id:x[pt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:m,disabled:i,readonly:n,hideError:c,required:o,label:O,hideLabel:!_,placeholder:l,autofocus:s,rawErrors:h,htmlName:x.name})}function $T(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:m=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...p}=ke(r,b),g=On(t,w,k),S=E??t.title??i,C=v.getDisplayLabel(t,r,b),O=Ji(cn("",y,a,!0));return j.jsx(g,{options:p,id:O[pt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:c,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!C,htmlName:O.name})}function UT(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:m,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:p,onChange:g,rawErrors:S,totalItems:C,title:O,handleAddItem:_,handleCopyItem:x,handleRemoveItem:A,handleReorderItems:N}=e,{schemaUtils:I,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=o,ie=W.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=W.useMemo(()=>cn(r,Z,y),[r,Z,y]),D=F||$,U=xe("ArrayFieldItemTemplate",o,c),T=I.getDisplayLabel(ie,v,Y),{description:R}=ke(v),M=!!R||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&m,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=W.useCallback(ae=>{_(ae,r+1)},[_,r]),q=W.useCallback(ae=>{x(ae,r)},[x,r]),z=W.useCallback(ae=>{A(ae,r)},[A,r]),H=W.useCallback(ae=>{N(ae,r,r-1)},[N,r]),G=W.useCallback(ae=>{N(ae,r,r+1)},[N,r]),te={children:j.jsx(D,{name:a,title:O,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:MT(ie),onChange:g,onBlur:E,onFocus:p,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:C,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:H,onMoveDownItem:G,registry:o,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:C,readonly:s,registry:o,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:M};return j.jsx(U,{...te})}const jk=W.memo(UT);function BT(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:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e,S=t.title||o||s,{schemaUtils:C,fields:O,formContext:_,globalUiOptions:x}=d,{OptionalDataControlsField:A}=O,N=W.useMemo(()=>ke(r,x),[r,x]),I=W.useMemo(()=>Xe(t.items)?t.items:{},[t.items]),F=W.useMemo(()=>C.retrieveSchema(I),[C,I]),$=W.useMemo(()=>Ik(b),[b]),Y=no(d,t,f,r),Z=Gi(n),ie=W.useMemo(()=>Rk(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],D=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?j.jsx(A,{...e,fieldPathId:U}):void 0,R={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=Nk(r,J,V,_),H={itemKey:K,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:N,parentUiSchema:r,hideError:m,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:p,handleReorderItems:g,onChange:y};return j.jsx(jk,{...H},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${D}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},M=xe("ArrayFieldTemplate",d,N);return j.jsx(M,{...R})}function VT(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:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e;let{formData:S=[]}=e;const C=t.title||o||s,{fields:O,formContext:_,globalUiOptions:x}=d,A=W.useMemo(()=>ke(r,x),[r,x]),{OptionalDataControlsField:N}=O,I=no(d,t,f,r),F=Gi(a),$=W.useMemo(()=>Xe(t.items)?t.items:[],[t.items]),Y=Xe(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=F?y:[],P=I?" rjsf-optional-array-field":"",D=I?j.jsx(N,{...e,fieldPathId:Z}):void 0,U=Rk(d,t,S,r)&&Y&&(!I||F),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((M,B)=>{const{key:V,item:K}=M,J=K,Q=B>=$.length,q=(Q&&Xe(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=Nk(r,K,B,_);const H=i?i[B]:void 0,G={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:A,parentUiSchema:r,hideError:m,readonly:l,disabled:c,required:f,title:C?`${C}-${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:H,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g};return j.jsx(jk,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:C,errorSchema:i,rawErrors:v,optionalDataControl:D},R=xe("ArrayFieldTemplate",d,A);return j.jsx(R,{...T})}function HT(e=[]){const t=W.useMemo(()=>Br(e),[e]),[r,a]=W.useState(()=>({formDataHash:t,keyedFormData:ph(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]})):ph(o),n=t,a({formDataHash:n,keyedFormData:i})}const s=W.useCallback(o=>{const c=Ik(o),l=Br(c);return a({formDataHash:l,keyedFormData:o}),c},[]);return{keyedFormData:i,updateKeyedFormData:s}}function WT(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:m}=HT(s),d=W.useRef(f);d.current=f;const h=W.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);O===void 0||I<O?yt(_,[I],h.current[I]):I>=O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:LT(n,t)},A=[...d.current];O!==void 0?A.splice(O,0,x):A.push(x),o(m(A),k.path,_)},[n,t,o,m,k]),y=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);I<=O?yt(_,[I],h.current[I]):I>O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:Bl(d.current[O].item)},A=[...d.current];O!==void 0?A.splice(O+1,0,x):A.push(x),o(m(A),k.path,_)},[o,m,k]),b=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const A of Object.keys(h.current)){const N=parseInt(A,10);N<O?yt(_,[N],h.current[N]):N>O&&yt(_,[N-1],h.current[N])}}const x=d.current.filter((A,N)=>N!==O);o(m(x),k.path,_)},[o,m,k]),w=W.useCallback((C,O,_)=>{C&&(C.preventDefault(),C.currentTarget.blur());let x;if(h.current){x={};for(const I of Object.keys(h.current)){const F=parseInt(I,10);F===O?yt(x,[_],h.current[O]):F===_?yt(x,[O],h.current[_]):yt(x,[I],h.current[F])}}function A(){const I=d.current.slice();return I.splice(O,1),I.splice(_,0,d.current[O]),I}const N=A();o(m(N),k.path,x)},[o,m,k]),E=W.useCallback((C,O,_,x)=>{const A=typeof O.at(-1)=="number";o(A&&C===void 0?null:C,O,_,x)},[o]),p=W.useCallback(C=>{o(C,k.path,void 0,k==null?void 0:k[pt])},[o,k]),g={...e,formData:s,fieldPathId:k,onSelectChange:p},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(Mi in t)){if(!c.useFallbackUiForUnsupportedType){const O=ke(r),_=xe("UnsupportedFieldTemplate",n,O);return j.jsx(_,{schema:t,fieldPathId:i,reason:u(Le.MissingItems),registry:n})}const C={...t,[Mi]:{type:void 0}};g.schema=C,S.schema=C}return l.isMultiSelect(g.schema)?j.jsx(qT,{...g}):pk(r)?j.jsx(zT,{...g}):Hd(g.schema)?j.jsx(VT,{...S}):l.isFilesArray(g.schema,r)?j.jsx($T,{...g}):j.jsx(BT,{...S})}function KT(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:m,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:p="checkbox",title:g,label:S=!0,enumNames:C,...O}=ke(a,E),_=On(t,p,b),x=w(Le.YesLabel),A=w(Le.NoLabel);let N;const I=g??y??m??r;if(Array.isArray(t.oneOf))N=Ja({oneOf:t.oneOf.map($=>{if(Xe($))return{...$,title:$.title||($.const===!0?x:A)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!C&&$.length===2&&$.every(Y=>typeof Y=="boolean")?N=[{value:$[0],label:$[0]?x:A},{value:$[1],label:$[1]?x:A}]:N=Ja({enum:$},a)}const F=W.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return j.jsx(_,{options:{...O,enumOptions:N},schema:t,uiSchema:a,id:i.$id,name:r,onChange:F,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 GT(e){const[t,r]=W.useState(!1),{name:a,registry:i,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:c}=i,l=ke(s,c),u=xe("CyclicSchemaExpandTemplate",i,l);if(!t)return j.jsx(u,{registry:i,schema:n,uiSchema:s,name:a,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[Ed]:!1}})}function JT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function YT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function XT(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 ZT(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:m,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=m,[w,E]=W.useState(YT(r)),p=ke(s),g=Ji(cn("__internal_type_selector",b,d)),S=v(Le.Type),C=W.useMemo(()=>JT(S),[S]),O=A=>{A!=null&&(E(A),h(XT(r,A),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:A=v(Le.UnknownFieldType,[String(i.type)])}=e,N=xe("UnsupportedFieldTemplate",m,p);return j.jsx(N,{schema:i,fieldPathId:d,reason:A,registry:m})}const _=xe("FallbackFieldTemplate",m,p),{SchemaField:x}=y;return j.jsx(_,{schema:i,registry:m,typeSelector:j.jsx(x,{fieldPathId:g,name:`${n}__fallback_type`,schema:C,formData:w,onChange:O,onBlur:u,onFocus:f,registry:m,hideLabel:!a,disabled:c,readonly:l,required:o},r?Br(r):"__empty__"),schemaField:j.jsx(x,{...e,schema:{type:w,title:v(Le.Value),...w==="object"&&{additionalProperties:!0}}})})}function QT(e,t){return Vi(t,function(r){return e[r]})}function eP(e){return e==null?[]:QT(e,nn(e))}var tP=Math.max;function rP(e,t,r,a){e=ai(e)?e:eP(e),r=r?qb(r):0;var i=e.length;return r<0&&(r=tP(i+r,0)),ba(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Wb(e,t,r)>-1}var nP=Math.min;function aP(e,t,r){for(var a=Vd,i=e[0].length,n=e.length,s=n,o=Array(n),c=1/0,l=[];s--;){var u=e[s];c=nP(u.length,c),o[s]=i>=120&&u.length>=120?new Ga(s&&u):void 0}u=e[0];var f=-1,m=o[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(m?Us(m,h):a(l,h))){for(s=n;--s;){var k=o[s];if(!(k?Us(k,h):a(e[s],h)))continue e}m&&m.push(h),l.push(d)}}return l}function iP(e){return $s(e)?e:[]}var hh=cc(function(e){var t=Vi(e,iP);return t.length&&t[0]===e[0]?aP(t):[]});function sP(e,t){return uc(e,t)}function Dk(e){return e===void 0}var Cn;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Cn||(Cn={}));var Is;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Is||(Is={}));const oP=/^\$lookup=(.+)/,hu="layoutGrid";function gh(e,t){return e??t}function lP(e){return/^\d+?$/.test(e)}const da=Gd();function cP(e,t,r,a,i){const n=oe(r,[Of],{}),s=oe(r,e),o={...oe(s,[ca],{}),...t,...n},c={...s};Rt(o)||yt(c,[ca],o),Rt(n)||yt(c,[Of],n);let{readonly:l}=ke(c);return(i===!0||Dk(l)&&a===!0)&&(l=!0,Ge(o,Jc)?yt(c,[ca,Jc],!0):yt(c,`ui:${Jc}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function uP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=jf([t]).sort(),i=jf([r]).sort();switch(e){case Is.ALL:return sP(a,i);case Is.SOME:return hh(a,i).length>0;case Is.NONE:return hh(a,i).length===0;default:return!1}}function gc(e,t,r){let a={},i=e[t];if(ya(i)){const{children:n,className:s,...o}=i;if(i=n,s){const l=s.split(" ").map(u=>Zd(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 yh(e,t,r){let a,i=t;if(lP(r)&&e&&(e==null?void 0:e.type)==="array"&&Ge(e,Mi)){const n=Number(r),s=e[Mi];Array.isArray(s)?n>s.length?a=Tb(s):a=s[n]:a=s,i={[pt]:t[pt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function fP(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),m=a,d=f.readOnly;l.forEach(v=>{if(c=cn(v,s,c),Ge(f,Ye))o=oe(f,[Ye,v],{});else if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=n.findSelectedOptionInXxxOf(f,v,y,m);o=oe(b,[Ye,v],{})}else{const y=yh(f,c,v);o=y.rawSchema??{},c=y.fieldPathId}m=oe(m,v,{}),f=n.retrieveSchema(o,m),d=gh(f.readOnly,d)});let h,k=!1;if(Rt(f)&&(f=void 0),f&&u){if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We;f=n.findSelectedOptionInXxxOf(f,u,y,m)}c=cn(u,s,c),k=f!==void 0&&Array.isArray(f.required)&&rP(f.required,u);const v=yh(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=oe(f,[Ye,u]),f=f&&n.retrieveSchema(f)),d=gh(f==null?void 0:f.readOnly,d),f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=Jr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function dP(e,t){let r=e;return ba(r)&&(r=Zd(t,r)),Ys(r)?r:null}function mP(e,t){let r,a=null,i={},n;if(ba(t)||Dk(t))r=t??"";else{const{name:s="",render:o,...c}=t;r=s,i=c,Rt(i)||DT(i,(l,u)=>{if(ba(l)){const f=oP.exec(l);if(Array.isArray(f)&&f.length>1){const m=f[1];i[u]=Zd(e,m,m)}}}),a=dP(o,e),!s&&a&&(n=j.jsx(a,{...c,"data-testid":da.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function yc(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=>W.createElement(tm,{...r,key:`layoutGrid-${Br(c)}`,schema:o,layoutGridSchema:c}))}function pP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:s}=gc(t,Cn.CONDITION,i),{operator:o,field:c="",value:l}=s,u=oe(a,c,null);return uP(o,u,l)?j.jsx(yc,{...r,childrenLayoutGridSchemaId:n}):null}function hP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMN,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function gP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMNS,a),o=ke(i),c=xe("GridTemplate",a,o);return n.map(l=>j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Br(l)}`))}function yP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.ROW,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{...s,"data-testid":da.row,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function vP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:s,onFocus:o,formData:c,readonly:l,registry:u,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=mP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:p,isRequired:g,isReadonly:S,optionsInfo:C,fieldPathId:O}=fP(u,b,r,c,n),_=Ji(O);if(y.rendered)return y.rendered;if(p){const x=C!=null&&C.hasDiscriminator?v:k,{fieldUiSchema:A,uiReadonly:N}=cP(b,E,a,S,l);return j.jsx(x,{"data-testid":C!=null&&C.hasDiscriminator?da.layoutMultiSchemaField:da.field,...m,name:b,required:g,readonly:N,schema:p,uiSchema:A,errorSchema:oe(i,b),fieldPathId:_,formData:oe(c,b),onChange:d,onBlur:s,onFocus:o,options:C==null?void 0:C.options,registry:u})}return w?j.jsx(w,{"data-testid":da.uiComponent,...m,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 tm(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=ke(t);if(!r&&hu in a&&Xe(a[hu])&&(r=a[hu]),Xe(r)){if(Cn.ROW in r)return j.jsx(yP,{...e,layoutGridSchema:r});if(Cn.COLUMN in r)return j.jsx(hP,{...e,layoutGridSchema:r});if(Cn.COLUMNS in r)return j.jsx(gP,{...e,layoutGridSchema:r});if(Cn.CONDITION in r)return j.jsx(pP,{...e,layoutGridSchema:r})}return j.jsx(vP,{...e,gridSchema:r})}tm.TEST_IDS=da;function bP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,name:o}=e,c=ke(i,s.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||o;if(!f)return null;const m=xe("TitleFieldTemplate",s,c);return j.jsx(m,{id:pc(t),title:f,required:n,schema:a,uiSchema:i,registry:s})}function gu(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=oe(n,[Ye,t]);return oe(s,Ha,oe(s,mr,a))===r})}function vh(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let s=e;Ge(e,Fe)?s={...e,[Fe]:n}:Ge(e,We)&&(s={...e,[We]:n});const o=Ja(s,a);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function kP(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:m,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[p,g]=W.useState(vh(m,c,w,f,i)),S=oe(n,pt),C=Jr(m),O=xe("FieldErrorTemplate",u,c),_=xe("FieldTemplate",u,c),x=Br(m),A=Br(c),N=f?Br(f):"",I=i?Br(i):"";W.useEffect(()=>{g(vh(m,c,w,f,i))},[x,A,w,N,I]);const{widget:F=C?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=C,hideError:ie,...P}=ke(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const D=oe(i,Z);let U=oe((z=p[0])==null?void 0:z.schema,[Ye,Z],{});const T=gu(p,Z,D);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const R=On(U,F,b),M=ie===void 0?y:!!ie,B=oe(v,[Zt],[]),V=qs(v,[Zt]),K=w.getDisplayLabel(m,f,E),J=H=>{if(a||h)return;const G=gu(p,Z,H),te=gu(p,Z,D);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&yt(ae,Z,H),o(ae,n.path,void 0,S)},Q={enumOptions:p,...P},q=!M&&B.length>0?j.jsx(O,{fieldPathId:n,schema:m,errors:B,registry:u}):void 0;return j.jsx(_,{fieldPathId:n,id:S,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:o,onKeyRename:Al,onKeyRenameBlur:Al,onRemoveProperty:Al,children:j.jsx(R,{id:S,name:t,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:M,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:s,onFocus:l,value:D,options:Q,htmlName:n.name})})}function bh(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:m=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Br(i??null),y=W.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=W.useState(()=>{const ae=Jr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=W.useRef(!1),p=W.useRef(i),g=W.useRef(n.$id);W.useEffect(()=>{const ae=p.current,me=g.current;if(p.current=i,g.current=n.$id,!Je(i,ae)&&n.$id===me){if(E.current){E.current=!1;return}const ve=Jr(d),Ce=k.getClosestMatchingOption(i,y,b,ve);Ce!==b&&w(Ce)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,C=W.useCallback(ae=>{if(r||u)return;const me=ae!==void 0?parseInt(ae,10):-1;if(me===b)return;const ve=me>=0?y[me]:void 0,Ce=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ce,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(me),E.current=!0,o(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,o,S]),{widgets:O,fields:_,translateString:x,globalUiOptions:A}=f,{SchemaField:N}=_,I=xe("MultiSchemaFieldTemplate",f,A),F=no(f,d,m,h),$=Gi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:D=d.title,...U}=ke(h,A),T=On({type:"number"},Y,O),R=oe(a,Zt,[]),M=qs(a,[Zt]),B=k.getDisplayLabel(d,h,A),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:me}=d,ve={};ae&&(ve.required=ae),me!==void 0&&!("type"in V)&&(ve.type=me),K=Object.keys(ve).length>0?Un(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 "${D||t}"`):We in d&&h&&We in h&&(Array.isArray(h[We])?J=h[We]:console.warn(`uiSchema.anyOf is not an array for "${D||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=D?Le.TitleOptionPrefix:Le.OptionPrefix,z=D?[D]:[],H=y.map((ae,me)=>{const{title:ve=ae.title}=ke(J[me]);return{label:ve||x(q,z.concat(String(me+1))),value:me}}),G=!F||$?j.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:C,onBlur:s,onFocus:c,disabled:r||Rt(H),multiple:!1,rawErrors:R,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:H,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:D??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&j.jsx(N,{...e,schema:K,uiSchema:Q})||null;return j.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function wP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return W.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const SP=/\.([0-9]*0)*$/,EP=/[0.]0*$/;function xP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,s]=W.useState(i),{StringField:o}=t.fields,c=Xv(),l=c==="."?"\\.":c;let u=a;const f=W.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"&&SP.exec(b)?ap(b.replace(EP,"")):ap(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 m=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ja(d,h):void 0)?"select":"text",{widget:b=y}=ke(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(u).replace(".",c))}return j.jsx(o,{...e,formData:m,onChange:f})}var Oo;function CP(e){if(!Oo){if(typeof document>"u")return;Oo=document.createElement("textarea")}var t=`&${e};`;Oo.innerHTML=t;var r=Oo.value;return r===t?void 0:r}var ce=32,de=9,wa=13,ye=10,it=96,qt=126,It=91,Kn=94,Ue=62,Xr=35,Uf=37,Me=45,Vr=61,Bt=92,Nt=42,_t=95,mt=60,Fk=64,un=93,pr=33,vc=38,ar=58,Bf=70,Ya=102,Vl=104,Ba=119,Ri=116,Vf=112,Mk=115,AP=160,_P=12,OP=44,Hl=59,Yi=63,Hr=46,Pt=47,Xa=39,Za=34,Sa=43,Ut=124,Qa=123,rm=125,an=40,ln=41,TP=78,PP=110,IP=79,RP=111,Lk=120,qk=88,Hf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,vt=122,bc=128,rn=32,NP={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=NP;function jP(e){if(!wh(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):s===0&&(i<n&&ja.push(e.slice(i,n)),ja.push("�"),i=n+1)}return i<a&&ja.push(e.slice(i)),ja.join("")}function
|
|
55
|
-
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(
|
|
53
|
+
`&&t++,wh(e,"---",a))return{endPos:t,hasValidYaml:r};if(!r){let n=HP(e,a,i);if(n<i){let s=e.charCodeAt(n);if(s>=lt&&s<=vt||s>=Te&&s<=Ne||s>=ze&&s<=$e||s===_t){for(n++;n<i&&(s=e.charCodeAt(n),s>=lt&&s<=vt||s>=Te&&s<=Ne||s>=ze&&s<=$e||s===_t||s===Me||s===Hr);)n++;n<i&&e.charCodeAt(n)===ar&&(n++,n>=i?r=!0:(s=e.charCodeAt(n),(s===ce||s===de)&&(r=!0)))}}}}return null}var DP=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,FP={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"},MP={};function zk(e){if(!e)return MP;var t={};for(var r in e){var a=r.toLowerCase(),i=FP[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 LP=/(\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 ma(e){return e.indexOf("&")===-1?e:e.replace(DP,(t,r)=>{var a=CP(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 kh=/(javascript|vbscript|data(?!:image)):/i;function $n(e){if(kh.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(kh.test(t))return null}catch{return null}return e}var nr={},fr,zt;for(fr=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],zt=0;zt<fr.length;zt++)nr[fr[zt]]="a";for(nr[231]=nr[199]="c",nr[240]=nr[208]="d",fr=[200,201,202,203,233,232,234,235],zt=0;zt<fr.length;zt++)nr[fr[zt]]="e";for(fr=[207,239,206,238,205,237,204,236],zt=0;zt<fr.length;zt++)nr[fr[zt]]="i";for(nr[209]=nr[241]="n",fr=[248,216,339,338,213,245,212,244,211,243,210,242],zt=0;zt<fr.length;zt++)nr[fr[zt]]="o";for(fr=[220,252,219,251,218,250,217,249],zt=0;zt<fr.length;zt++)nr[fr[zt]]="u";nr[376]=nr[255]=nr[221]=nr[253]="y";function ei(e){for(var t="",r=-1,a=e.length,i=0;i<a;i++){var n=e.charCodeAt(i);if(n>=lt&&n<=vt||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+rn);continue}if(n===ce||n===Me){r>=0&&(t+=e.slice(r,i),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,i),r=-1);var s=nr[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function wh(e,t,r){return e.startsWith(t,r)}var Sh=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 ao(e){let t=e.toLowerCase();if(Sh.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Sh.has(t)):!1}var Ua=1,Eh=2,Ai=4,xh=8,qP=16,en=32,Qn=64,zP=(()=>{var e=new Uint8Array(128),t;for(e[de]=Ua,e[ye]=Ua|Eh,e[_P]=Ua,e[wa]=Ua|Eh,e[ce]=Ua,t=pr;t<=Pt;t++)e[t]=Ai;for(t=ar;t<=Fk;t++)e[t]=Ai;for(t=It;t<=it;t++)e[t]=Ai;for(t=Qa;t<=qt;t++)e[t]=Ai;for(t=ze;t<=$e;t++)e[t]=qP;for(t=Te;t<=Ne;t++)e[t]=xh;for(t=lt;t<=vt;t++)e[t]=xh;return e})(),$P=/[\p{P}\p{S}]/u,UP=new RegExp("\\p{Zs}","u"),ja=[];function BP(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var a=e.length;ja.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 s=e.charCodeAt(n);s===wa?(i<n&&ja.push(e.slice(i,n)),n+1<a&&e.charCodeAt(n+1)===ye&&n++,ja.push(`
|
|
54
|
+
`),i=n+1):s===0&&(i<n&&ja.push(e.slice(i,n)),ja.push("�"),i=n+1)}return i<a&&ja.push(e.slice(i)),ja.join("")}function VP(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function HP(e,t,r){let a=r??e.length;for(;t<a&&(e[t]===" "||e[t]===" ");)t++;return t}function $k(e){if(!e)return!1;for(var t in e)return!0;return!1}function WP(e){return{attrs:{},children:[{type:se.text,text:e}],c:!0,type:se.htmlBlock,tag:"header"}}var KP=/^\n+/;function GP(e){for(var t=e.length;t>0&&(e[t-1]===`
|
|
55
|
+
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(KP,"")}
|
|
56
56
|
|
|
57
|
-
`}function _i(e){var r,a;if((e.type===se.htmlSelfClosing||e.type===se.htmlBlock)&&e.a)return[];if(e.type===se.paragraph){var t=e.children;return t?t.flatMap(_i):[]}return e.type===se.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===se.htmlBlock&&e.children?[{...e,children:(a=e.children)==null?void 0:a.flatMap(_i)}]:[e]}function
|
|
58
|
-
`,a),c=o<0?i:o,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=o<0?i:o+1;continue}if(u<4){var f=e.charCodeAt(l);if(f===it||f===qt){for(var m=f,d=0,h=l;h<c&&e.charCodeAt(h)===m;)d++,h++;if(d>=3){var k=!0;if(m===it){for(var v=h;v<c;v++)if(e.charCodeAt(v)===it){k=!1;break}}if(k){n=!1;for(var y=o<0?i:o+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)===m){for(var p=0;b<i&&e.charCodeAt(b)===m;)p++,b++;if(p>=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,s=!0);continue}}}}for(var g=l;g<c&&e.charCodeAt(g)===Ue;){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)===It&&!(g+1<i&&e.charCodeAt(g+1)===Kn)){var C=
|
|
57
|
+
`}function _i(e){var r,a;if((e.type===se.htmlSelfClosing||e.type===se.htmlBlock)&&e.a)return[];if(e.type===se.paragraph){var t=e.children;return t?t.flatMap(_i):[]}return e.type===se.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===se.htmlBlock&&e.children?[{...e,children:(a=e.children)==null?void 0:a.flatMap(_i)}]:[e]}function Uk(e){for(var t=0;t<e.length;t++){if(e[t].type===se.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()}>`,s=i.toLowerCase().indexOf(n);if(s!==-1){var o=i.slice(s+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");o.trim()&&(a=!0)}}a||(r.c=!1)}"children"in e[t]&&e[t].children&&Uk(e[t].children)}}function JP(e,t){for(var r=0;r<e.length;r++){var a=e[r];if(a.type===se.paragraph&&a.children)for(var i=a.children,n=0;n<i.length;n++){var s=i[n];if(s.type===se.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.push({type:se.paragraph,children:i.slice(0,n)});var c=[];if(n+1<i.length){var l=i.slice(n+1).filter(u=>!(u.type===se.htmlSelfClosing&&u.a));l.length>0&&(c=l)}return c=c.concat(e.slice(r+1)),{found:!0,beforeClose:o,afterClose:c}}}if((a.type===se.htmlSelfClosing||a.type===se.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 YP(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 Ch(e,t,r,a){var i;return t===void 0?i=YP(r):i=t.length>0&&t.charCodeAt(0)>ce?` ${t}`:t,`<${e}${i}${a}`}function Ah(e){var t=e.tag,r=e.type===se.htmlSelfClosing,a=e,i=a.b,n=`</${t}>`;if(!r&&a.a)return{kind:"literal",literal:(a.h||n)+(a.e||"")};if(r){var s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:Ch(t,i,e.attrs," />")}}var o=Ch(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:o,close:n}:{kind:"literal",literal:a.j};if(a.c&&!l)return{kind:"literal",literal:o+(a.e||"")+(a.h||n)};if(c!=null&&c.length>0){for(var u="",f=0;f<c.length;f++){var m=c[f];if(m.type!==se.text)return{kind:"sandwich",open:o,close:n};u+=m.text}return{kind:"literal",literal:o+u+n}}var d=a.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function XP(e,t,r){var a=[],i=e,n=r;if(i&&a.push(i),Array.isArray(t))for(var s=0;s<t.length;s++)a.push(t[s]);else t!=null&&a.push(t);n&&a.push(n);for(var o=[],c=0;c<a.length;c++){var l=a[c];typeof l=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+l:o.push(l)}return o}function Ei(e){return e==null||e.tagfilter!==!1}function ZP(e,t,r,a){var i=t(e,r,a);return i===null?null:eI(i)}function QP(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 Wf(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 eI(e){for(var t=!1,r=0;r<e.length;r++){var a=e.charCodeAt(r);if(a<=ce||a===Za||a===Uf||a===mt||a===Ue||a===It||a===Bt||a===un||a===Kn||a===it||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===Uf&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=ze&&n<=$e||n>=Te&&n<=Bf||n>=lt&&n<=Ya)&&(s>=ze&&s<=$e||s>=Te&&s<=Bf||s>=lt&&s<=Ya)){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 o=e.charCodeAt(r+1);if(o>=56320&&o<=57343){i+=encodeURI(e[r]+e[r+1]),r++;continue}}i+=e[r];continue}i+=encodeURI(e[r])}return i}function tI(...e){return e.filter(Boolean).join(" ")}var rI=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Wl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function _h(e){return rI.has(e.toLowerCase())}function nI(e){return Wl.lastIndex=0,Wl.test(e)}function Oh(e){return Wl.lastIndex=0,e.replace(Wl,(t,r,a,i)=>`<${r}${a}${i}`)}function nm(e,t){var r=e||{},a=r.slugify,i;if(a){var n=a;i=s=>n(s,ei)}else i=ei;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:Ei(r)}}var aI=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,iI=/^<[A-Z]/,Kf=["script","pre","style","textarea"],io=new Set(Kf),sI=/<(?:pre|script|style|textarea)\b/i,Th=/<(?:pre|script|style|textarea)\b/iy,yu=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Ph=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,Bk=new Uint8Array(128);(()=>{for(var e=[it,Nt,_t,qt,Vr,It,pr,mt,Bt,vc,ye,Vl,Ba,Ya],t=0;t<e.length;t++)Bk[e[t]]=1})();var Ih=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function oI(e){return io.has(e)}function lI(e){return sI.test(e)}function Vk(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)===Ut&&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)===Ut&&n>0){for(var s=a+1;s<i&&(e.charCodeAt(s)===ce||e.charCodeAt(s)===de);)s++;if(s>=i)return!0}if(e.charCodeAt(a)===ar&&a++,a>=i||e.charCodeAt(a)!==Me)return!1;for(;a<i&&e.charCodeAt(a)===Me;)a++;for(a<i&&e.charCodeAt(a)===ar&&a++,n++;a<i&&(e.charCodeAt(a)===ce||e.charCodeAt(a)===de);)a++;if(a<i)if(e.charCodeAt(a)===Ut)a++;else return!1}return n>0}var cI=/[\u0000-\u001F\u007F]/g,uI={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},fI=/&#(x[0-9a-f]+|[0-9]+);?/gi;function dI(e){return e.indexOf("&#")===-1?e:e.replace(fI,(t,r)=>{var a=r.charCodeAt(0)===Lk||r.charCodeAt(0)===qk?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return a>0&&a<=1114111?String.fromCodePoint(a):t})}function mI(e,t,r){if(r&&t.charCodeAt(0)===Qa)return!1;var a=e.charCodeAt(0),i=e.charCodeAt(1);if((a===RP||a===IP)&&(i===PP||i===TP))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(uI[n]===1){var s=dI(ma(t));if($n(s)===null)return!0;var o=s.replace(cI,"");return o!==s&&$n(o)===null}return!1}function Gf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Rh(e,t,r,a){for(var i=[],n=t,s=0;s<a.length;s+=2){var o=a[s];if(o>n){var c=e.slice(n,o).trim();c&&i.push(c)}n=a[s+1]}if(n<r){var l=e.slice(n,r).trim();l&&i.push(l)}return i.join(" ")}function Sn(e,t){if(e.charCodeAt(t)!==mt)return null;let r=t+1,a=e.length,i=!1;e.charCodeAt(r)===Pt&&(r++,i=!0);let n=r,s=e.charCodeAt(r);if(!(s>=lt&&s<=vt||s>=Te&&s<=Ne))return null;for(;r<a&&(e.charCodeAt(r)>=lt&&e.charCodeAt(r)<=vt||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=Ne||e.charCodeAt(r)>=ze&&e.charCodeAt(r)<=$e||e.charCodeAt(r)===Me);)r++;let o=e.slice(n,r);if(!o)return null;let c=o.charCodeAt(0),l=c>=Te&&c<=Ne||o.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 m=e.charCodeAt(r);if(m!==Ue&&m!==Pt)return null}let d=r,h={},k=!1;for(var v=null;r<a;){let N=e.charCodeAt(r);if(N===Ue){let I=v?Rh(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:o}}if(N===ce||N===de||N===ye){r++;continue}if(N===Pt&&r+1<a&&e.charCodeAt(r+1)===Ue){k=r>d&&e.charCodeAt(r-1)===ce;let I=v?Rh(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:o}}var y=r,b=e.charCodeAt(r);if(!(b>=lt&&b<=vt||b>=Te&&b<=Ne||b===_t||b===ar))return null;for(r++;r<a;){var w=e.charCodeAt(r);if(w>=lt&&w<=vt||w>=Te&&w<=Ne||w>=ze&&w<=$e||w===_t||w===Hr||w===ar||w===Me)r++;else break}for(var E=e.slice(y,r),p=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 C=e.charCodeAt(r);if(C===Za||C===Xa){r++;for(var O=r;r<a&&e.charCodeAt(r)!==C;)r++;if(r>=a)return null;if(g=e.slice(O,r),r++,r<a){var _=e.charCodeAt(r);if(_!==ce&&_!==de&&_!==ye&&_!==Ue&&_!==Pt)return null}S=r}else if(C===Qa){var x=1,O=r;for(r++;r<a&&x>0;){var w=e.charCodeAt(r);w===Qa?x++:w===rm&&x--,r++}g=e.slice(O,r),S=r}else{for(var O=r;r<a;){var A=e.charCodeAt(r);if(A===ce||A===de||A===Ue||A===ye||A===Za||A===Xa||A===Vr||A===mt||A===it)break;r++}if(r===O)return null;g=e.slice(O,r),S=r}}else g="",S=p;mI(E,g,l)?(v===null&&(v=[]),v.push(y,S)):h[E]=g}return null}function Pr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",a=0,i=!1;t!==-1;){var n=Sn(e,t);n?(n.q&&(r+=e.slice(a,t)+Gf(n),a=n.end,i=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return i?r+e.slice(a):e}function pI(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var a=0,i=e.length,n=!1,s=!1;a<i;){for(var o=e.indexOf(`
|
|
58
|
+
`,a),c=o<0?i:o,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=o<0?i:o+1;continue}if(u<4){var f=e.charCodeAt(l);if(f===it||f===qt){for(var m=f,d=0,h=l;h<c&&e.charCodeAt(h)===m;)d++,h++;if(d>=3){var k=!0;if(m===it){for(var v=h;v<c;v++)if(e.charCodeAt(v)===it){k=!1;break}}if(k){n=!1;for(var y=o<0?i:o+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)===m){for(var p=0;b<i&&e.charCodeAt(b)===m;)p++,b++;if(p>=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,s=!0);continue}}}}for(var g=l;g<c&&e.charCodeAt(g)===Ue;){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)===It&&!(g+1<i&&e.charCodeAt(g+1)===Kn)){var C=Hk(e,g,t);if(C){a=C,n=!1;continue}}var O=e.charCodeAt(l);if(O===Xr&&u<4)n=!1;else if(u<4&&(O===Me||O===Nt||O===_t)){for(var _=l,x=0;_<c;){var A=e.charCodeAt(_);if(A===O)x++;else if(A!==ce&&A!==de)break;_++}n=!(x>=3&&_>=c)}else n=!0;a=o<0?i:o+1}return s}function Hk(e,t,r){let a=e.length;if(e.charCodeAt(t)!==It)return null;let i=t+1<a&&e.charCodeAt(t+1)===Kn,n=t+1;for(;n<a;){var s=e.charCodeAt(n);if(s===un){n++;break}if(s===It)return null;s===Bt&&n+1<a&&n++,n++}if(n>a||e.charCodeAt(n-1)!==un)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let c=Tl(o);if(!c||n>=a||e.charCodeAt(n)!==ar)return null;n++;let l=!1;for(;n<a;){let N=e.charCodeAt(n);if(N===ce||N===de)n++;else if(N===ye&&!l)l=!0,n++;else break}if(i){let N=e.indexOf(`
|
|
59
59
|
`,n),I=N<0?a:N,F=e.slice(n,I).trim();return r[c]={target:F,title:void 0},N<0?a:N+1}var u;if(n<a&&e.charCodeAt(n)===mt){n++;for(var f=n;n<a&&e.charCodeAt(n)!==Ue&&e.charCodeAt(n)!==ye;)e.charCodeAt(n)===Bt&&n+1<a&&n++,n++;if(n>=a||e.charCodeAt(n)!==Ue)return null;u=e.slice(f,n),n++;for(var m=e.indexOf(`
|
|
60
60
|
`,n),d=m<0?a:m,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!==Za&&k!==Xa&&k!==an)return null}}else{for(var f=n,v=0;n<a;){var s=e.charCodeAt(n);if(s===an)v++;else if(s===ln){if(v===0)break;v--}else{if(s===ce||s===de||s===ye)break;s===Bt&&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,p=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===Za||S===Xa||S===an){for(var C=S===an?41:S,O=g+1,_=O;O<a;){var x=e.charCodeAt(O);if(x===C){for(var A=O+1;A<a&&(e.charCodeAt(A)===ce||e.charCodeAt(A)===de);)A++;(A>=a||e.charCodeAt(A)===ye)&&(w=e.slice(_,O),E=!0,p=A<a?A+1:a);break}if(x===Bt&&O+1<a){O+=2;continue}if(x===ye&&O+1<a&&e.charCodeAt(O+1)===ye)break;O++}if(!E&&g===n)return null}}if(E)return r[c]||(r[c]={target:ma(Ni(u)),title:w===void 0?w:ma(Ni(w))}),p;for(;n<b&&(e.charCodeAt(n)===ce||e.charCodeAt(n)===de);)n++;return n<b?null:(r[c]||(r[c]={target:ma(Ni(u)),title:w}),y<0?a:y+1)}var wr=new Uint8Array(
|
|
62
|
-
`,t),a=r<0?e.length:r;return Jf=e,Yf=t,Pl=a,a}function He(e,t){let r=st(e,t);return r<e.length?r+1:r}function Hs(e,t,r){for(;t<r;){let a=e.charCodeAt(t);if(a!==ce&&a!==de)break;t++}return t}function
|
|
63
|
-
`,x=He(e,A)}_.length>0&&_.charCodeAt(_.length-1)===ye&&(_=_.slice(0,-1))}return{node:{type:se.codeBlock,lang:f||void 0,text:_,infoString:m||void 0,attrs:h},end:b}}function
|
|
64
|
-
`,s=He(e,m);s<e.length;){var o=st(e,s);if(dr(e,s,o)){n+=`${
|
|
61
|
+
`,n),b=y<0?a:y,w,E=!1,p=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===Za||S===Xa||S===an){for(var C=S===an?41:S,O=g+1,_=O;O<a;){var x=e.charCodeAt(O);if(x===C){for(var A=O+1;A<a&&(e.charCodeAt(A)===ce||e.charCodeAt(A)===de);)A++;(A>=a||e.charCodeAt(A)===ye)&&(w=e.slice(_,O),E=!0,p=A<a?A+1:a);break}if(x===Bt&&O+1<a){O+=2;continue}if(x===ye&&O+1<a&&e.charCodeAt(O+1)===ye)break;O++}if(!E&&g===n)return null}}if(E)return r[c]||(r[c]={target:ma(Ni(u)),title:w===void 0?w:ma(Ni(w))}),p;for(;n<b&&(e.charCodeAt(n)===ce||e.charCodeAt(n)===de);)n++;return n<b?null:(r[c]||(r[c]={target:ma(Ni(u)),title:w}),y<0?a:y+1)}var wr=new Uint8Array(zP);for(wr[Xr]|=en,wr[Ue]|=en,wr[Me]|=en|Qn,wr[Sa]|=en,wr[Nt]|=en|Qn,wr[_t]|=en|Qn,wr[it]|=en|Qn,wr[qt]|=en|Qn,wr[mt]|=en|Qn,wr[It]|=Qn,wr[pr]|=Qn,wr[Ut]|=en,To=ze;To<=$e;To++)wr[To]|=en;var To;function Nh(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Bt){t++;continue}if(e.charCodeAt(t)===It||e.charCodeAt(t)===un)return!0}return!1}function Tl(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 s=e.replace(/\s+/g," ").trim();return s.indexOf("ẞ")!==-1?s.replace(/\u1E9E/g,"ss").toLowerCase():s.toLowerCase()}function am(e){return e<bc?wr[e]:e===AP?Ua:0}function Ni(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Jf=null,Yf=-1,Pl=-1;function st(e,t){if(t>=Yf&&t<=Pl&&e===Jf)return Pl;var r=e.indexOf(`
|
|
62
|
+
`,t),a=r<0?e.length:r;return Jf=e,Yf=t,Pl=a,a}function He(e,t){let r=st(e,t);return r<e.length?r+1:r}function Hs(e,t,r){for(;t<r;){let a=e.charCodeAt(t);if(a!==ce&&a!==de)break;t++}return t}function jh(e,t){let r=He(e,t);for(;r<e.length;){let a=st(e,r);if(dr(e,r,a))return r;r=He(e,r)}return e.length}function Ea(e,t,r,a){let i=0;for(;t+i<r&&e.charCodeAt(t+i)===a;)i++;return i}var at=0,Qe=0;function jt(e,t,r){for(at=0,Qe=0;t+Qe<r;){let a=e.charCodeAt(t+Qe);if(a===de)at+=4-at%4;else if(a===ce)at++;else break;Qe++}}function dr(e,t,r){return Hs(e,t,r)>=r}function hI(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 gI(e,t,r,a){let i=st(e,t);if(jt(e,t,i),at>3)return null;let n=t+Qe;if(e.charCodeAt(n)!==Xr)return null;let s=Ea(e,n,i,35);if(s<1||s>6||(n+=s,n<i&&e.charCodeAt(n)!==ce&&e.charCodeAt(n)!==de))return null;n=Hs(e,n,i);for(var o=i;o>n&&e.charCodeAt(o-1)===ce;)o--;for(var c=o;o>n&&e.charCodeAt(o-1)===Xr;)o--;if(o<c)if(o===n||e.charCodeAt(o-1)===ce)for(;o>n&&e.charCodeAt(o-1)===ce;)o--;else o=c;let l=e.slice(n,o),u=ji(l,!1,r,a);return{node:{type:se.heading,level:s,children:u,id:""},end:He(e,i)}}function yI(e,t,r){var a=e.charCodeAt(t);if(a!==Vr&&a!==Me)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 pa(e,t){let r=st(e,t);if(jt(e,t,r),at>3)return null;let a=t+Qe,i=e.charCodeAt(a);if(i!==Me&&i!==Nt&&i!==_t)return null;let n=0;for(;a<r;){let s=e.charCodeAt(a);if(s===i)n++;else if(s!==ce&&s!==de)return null;a++}return n<3?null:{node:{type:se.breakThematic},end:He(e,r)}}var Dh=0,Fh=0,Mh="";function vI(e,t,r){let a=st(e,t);if(jt(e,t,a),at>3)return null;let i=at,n=t+Qe,s=e.charCodeAt(n);if(s!==it&&s!==qt)return null;let o=Ea(e,n,a,s);if(o<3)return null;n+=o;let c=Hs(e,n,a),l=a;if(s===it){for(let I=c;I<a;I++)if(e.charCodeAt(I)===it)return null}for(;l>c&&(e.charCodeAt(l-1)===ce||e.charCodeAt(l-1)===de);)l--;let u=e.slice(c,l),f="",m="",d=u.indexOf(" ");d===-1?f=u:(f=u.slice(0,d),m=u.slice(d+1).trim()),f=Ni(f);var h;if(m){Ih.lastIndex=0;for(var k;(k=Ih.exec(m))!=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;s===Dh&&o===Fh?w=Mh:(w=String.fromCharCode(s).repeat(o),Dh=s,Fh=o,Mh=w);for(var E=v;E<e.length;){var p=e.indexOf(w,E);if(p===-1)break;for(var g=p,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 C=p+o;C<e.length&&e.charCodeAt(C)===s;)C++;var O=st(e,C);if(dr(e,C,O)){y=g,b=He(e,O);break}}E=p+1}var _;if(i===0)_=y>v&&e.charCodeAt(y-1)===ye?e.slice(v,y-1):e.slice(v,y);else{_="";for(var x=v;x<y;){var A=st(e,x);jt(e,x,A);var N=Math.min(Qe,i);_+=`${e.slice(x+N,A)}
|
|
63
|
+
`,x=He(e,A)}_.length>0&&_.charCodeAt(_.length-1)===ye&&(_=_.slice(0,-1))}return{node:{type:se.codeBlock,lang:f||void 0,text:_,infoString:m||void 0,attrs:h},end:b}}function Lh(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="",s=4;s<a;s++)n+=" ";return n+e.slice(i,r)}function bI(e,t){let r=st(e,t);if(jt(e,t,r),at<4)return null;let a="",i=t;for(;i<e.length;){let m=st(e,i);if(jt(e,i,m),dr(e,i,m)){for(var n=`${Lh(e,i,m)}
|
|
64
|
+
`,s=He(e,m);s<e.length;){var o=st(e,s);if(dr(e,s,o)){n+=`${Lh(e,s,o)}
|
|
65
65
|
`,s=He(e,o);continue}jt(e,s,o),at>=4&&(a+=n,i=s);break}if(i!==s)break;continue}if(at<4)break;let d=0,h=0;var c=0;for(let k=i;k<m&&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,m),a+=`${u}
|
|
66
|
-
`,i=He(e,m)}for(;a.length>0&&a.charCodeAt(a.length-1)===ye;)a=a.slice(0,-1);return a?{node:{type:se.codeBlock,lang:void 0,text:a,infoString:void 0,attrs:void 0},end:i}:null}function
|
|
66
|
+
`,i=He(e,m)}for(;a.length>0&&a.charCodeAt(a.length-1)===ye;)a=a.slice(0,-1);return a?{node:{type:se.codeBlock,lang:void 0,text:a,infoString:void 0,attrs:void 0},end:i}:null}function kI(e,t,r,a){let i=st(e,t);if(jt(e,t,i),at>3)return null;let n=t+Qe;if(e.charCodeAt(n)!==Ue)return null;let s="",o=t,c,l=!1,u=!1,f=!1;for(;o<e.length;){let $=st(e,o);jt(e,o,$);let Y=o+Qe;if(e.charCodeAt(Y)===Ue){let Z=Y+1;var m=at+1,d=!1;if(Z<$){var h=e.charCodeAt(Z);h===ce?(Z++,m++,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=m;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 p=Z;p<$;p++)if(e.charCodeAt(p)===de){for(var g=4-b%4,S=0;S<g;S++)k+=" ";b+=g}else k+=e[p],b++}else k=e.slice(Z,$);if(!(s||c)){let ie=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(ie){c=ie[1].toUpperCase(),o=He(e,$);continue}}s+=`${k}
|
|
67
67
|
`;var C=k.trimStart();C.startsWith("```")||C.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),u=C.length>0,o=He(e,$)}else if(s&&!dr(e,o,$)&&u){if(at<4){var O=o+Qe,_=O<$?e.charCodeAt(O):0;if(_===Xr||_===Ue||_===it||_===qt||_===mt||(_===Me||_===Nt||_===_t)&&pa(e,o)||(_===Me||_===Nt||_===Sa)&&O+1<$&&(e.charCodeAt(O+1)===ce||e.charCodeAt(O+1)===de))break;if(_>=ze&&_<=$e){for(var x=O;x<$&&e.charCodeAt(x)>=ze&&e.charCodeAt(x)<=$e;)x++;if(x<$&&(e.charCodeAt(x)===Hr||e.charCodeAt(x)===ln))break}}if(f)break;s+=`${e.slice(o,$)}
|
|
68
|
-
`,l=!0,o=He(e,$)}else break}if(!(s||c))return null;var{inBlockQuote:A,l:N}=r;r.inBlockQuote=!0,l&&(r.l=!0);var I=r.i;r.i=I||!dr(e,o,e.length);let F=ha(s||"",r,a);return r.i=I,r.inBlockQuote=A,r.l=N,{node:{type:se.blockQuote,children:F,alert:c||void 0},end:o}}function
|
|
68
|
+
`,l=!0,o=He(e,$)}else break}if(!(s||c))return null;var{inBlockQuote:A,l:N}=r;r.inBlockQuote=!0,l&&(r.l=!0);var I=r.i;r.i=I||!dr(e,o,e.length);let F=ha(s||"",r,a);return r.i=I,r.inBlockQuote=A,r.l=N,{node:{type:se.blockQuote,children:F,alert:c||void 0},end:o}}function Wk(e,t,r){for(var a=0,i=t;i<r;i++)e.charCodeAt(i)===de?a+=4-a%4:a++;return a}function ea(e,t,r){if(jt(e,t,r),at>3)return null;var a=t+Qe;if(a>=r)return null;var i=e.charCodeAt(a),n=at,s=a,o=a;if(i===Me||i===Nt||i===Sa){if(s=a+1,s<r&&e.charCodeAt(s)!==ce&&e.charCodeAt(s)!==de&&e.charCodeAt(s)!==ye)return null}else if(i>=ze&&i<=$e){for(;o<r&&o-a<9;){var c=e.charCodeAt(o);if(c<ze||c>$e)break;o++}if(o>a&&o<r){var l=e.charCodeAt(o);if(l===Hr||l===ln){if(s=o+1,s<r&&e.charCodeAt(s)!==ce&&e.charCodeAt(s)!==de&&e.charCodeAt(s)!==ye)return null}else return null}else return null}else return null;var u=s,f=Wk(e,t,s),m=0,d=u,h=f;if(u>=r)return{ordered:i>=ze&&i<=$e,marker:i>=ze&&i<=$e?e[o]:e[a],start:i>=ze&&i<=$e?Number.parseInt(e.slice(a,o),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++,m++}var v=d>=r,y=h-f;return v||y>4?(h=f+1,d=u+1,m=1):m===0&&(h=f+1,d=u,m=1),{ordered:i>=ze&&i<=$e,marker:i>=ze&&i<=$e?e[o]:e[a],start:i>=ze&&i<=$e?Number.parseInt(e.slice(a,o),10):void 0,contentStart:d,contentCol:h,markerCol:n,isEmpty:v}}var Oi=0;function qh(e,t,r,a){var i=0,n=t;for(Oi=0;n<r&&i<a;){var s=e.charCodeAt(n);if(s===de){var o=4-i%4;if(i+o>a){Oi=i+o-a,n++,i=a;break}i+=o}else if(s===ce)i++;else break;n++}return n}function zh(e,t,r,a){var i=st(e,t),n=ea(e,t,i);if(!n)return null;var s=[],o=t,c=n.contentCol,l="",u=n.isEmpty,f=!1,m=!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=Wk(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,p=0;p<E;p++)k+=" ";v+=E}else k+=e[w],v++;l=`${k}
|
|
69
69
|
`}else l=`${e.slice(n.contentStart,i)}
|
|
70
70
|
`}for(o=He(e,i);o<e.length;){var g=st(e,o);jt(e,o,g);var S=e.charCodeAt(o+Qe);if(at<c&&(S===Me||S===Nt||S===_t)&&at<=3&&pa(e,o))break;var C=ea(e,o,g);if(C&&C.ordered===n.ordered&&C.marker===n.marker&&C.markerCol<c){s.push({contentCol:c,raw:l,hasBlankAfter:f,isEmpty:u}),f&&(m=!0),c=C.contentCol,u=C.isEmpty,f=!1,l=C.isEmpty?"":`${e.slice(C.contentStart,g)}
|
|
71
|
-
`,o=He(e,g);continue}if(dr(e,o,g)){var O=
|
|
71
|
+
`,o=He(e,g);continue}if(dr(e,o,g)){var O=qh(e,o,g,c);if(Oi>0||O<g){for(var _="",x=0;x<Oi;x++)_+=" ";l+=`${_+e.slice(O,g)}
|
|
72
72
|
`}else l+=`
|
|
73
|
-
`;o=He(e,g);for(var A=!1,N=0;N<l.length;N++){var I=l.charCodeAt(N);if(I!==ye&&I!==wa&&I!==ce&&I!==de){A=!0;break}}if(u&&!A)if(o<e.length){var F=st(e,o),$=ea(e,o,F);if(!$||$.ordered!==n.ordered||$.marker!==n.marker)break;f=!0}else break;if(o<e.length){var Y=st(e,o);jt(e,o,Y);var Z=e.charCodeAt(o+Qe);if((Z===Me||Z===Nt||Z===_t)&&at<=3&&pa(e,o))break;var ie=ea(e,o,Y);if(ie&&ie.ordered===n.ordered&&ie.marker===n.marker&&ie.markerCol<c){f=!0;continue}if(!dr(e,o,Y)&&at<c)break}continue}if(at>=c){var P=
|
|
73
|
+
`;o=He(e,g);for(var A=!1,N=0;N<l.length;N++){var I=l.charCodeAt(N);if(I!==ye&&I!==wa&&I!==ce&&I!==de){A=!0;break}}if(u&&!A)if(o<e.length){var F=st(e,o),$=ea(e,o,F);if(!$||$.ordered!==n.ordered||$.marker!==n.marker)break;f=!0}else break;if(o<e.length){var Y=st(e,o);jt(e,o,Y);var Z=e.charCodeAt(o+Qe);if((Z===Me||Z===Nt||Z===_t)&&at<=3&&pa(e,o))break;var ie=ea(e,o,Y);if(ie&&ie.ordered===n.ordered&&ie.marker===n.marker&&ie.markerCol<c){f=!0;continue}if(!dr(e,o,Y)&&at<c)break}continue}if(at>=c){var P=qh(e,o,g,c);if(Oi>0){for(var D="",U=c,T=0;T<Oi;T++)D+=" ",U++;for(var R=P;R<g;R++)if(e.charCodeAt(R)===de){for(var M=4-U%4,B=0;B<M;B++)D+=" ";U+=M}else D+=e[R],U++;l+=`${D}
|
|
74
74
|
`}else l+=`${e.slice(P,g)}
|
|
75
75
|
`;o=He(e,g);continue}for(var V=!1,K=0;K<l.length;K++){var J=l.charCodeAt(K);if(J!==ye&&J!==wa&&J!==ce&&J!==de){V=!0;break}}if(!f&&V&&!u){var Q=o+Qe,q=e.charCodeAt(Q),z=q===Xr||q===Ue||q===mt||q===it||q===qt||(q===Me||q===Nt||q===_t||q===Sa)&&(pa(e,o)!=null||ea(e,o,g)!=null)||q>=ze&&q<=$e&&ea(e,o,g)!=null;if(!z){l+=`${e.slice(Q,g)}
|
|
76
76
|
`,o=He(e,g);continue}}break}if(s.push({contentCol:c,raw:l,hasBlankAfter:f,isEmpty:u}),s.length===0)return null;var H=m;if(!H)for(var G=0;G<s.length;G++){if(s[G].hasBlankAfter&&G<s.length-1){H=!0;break}if(!s[G].isEmpty){for(var te=s[G].raw,ae=te.length,me=0,ve=!1,Ce=!1,Se=!1,Re=!1,he=0,je=0,Ve=-1;me<ae;){var be=te.indexOf(`
|
|
77
|
-
`,me);if(be<0&&(be=ae),Re){jt(te,me,be);for(var ee=te.slice(me+Qe,be),re=0;re<ee.length&&ee.charCodeAt(re)===he;)re++;re>=je&&ee.slice(re).trim()===""&&(Re=!1),me=be<ae?be+1:ae;continue}if(dr(te,me,be)){Ve>=0?Se=!0:ve&&(Ce=!0),me=be<ae?be+1:ae;continue}if(jt(te,me,be),Ve>=0){if(at>=Ve){me=be<ae?be+1:ae;continue}var ne=ea(te,me,be);if(ne&&ne.markerCol<Ve&&ne.contentCol<=Ve){me=be<ae?be+1:ae;continue}if(ne){me=be<ae?be+1:ae;continue}Ve=-1,Se&&(Ce=!0,Se=!1)}var we=te.slice(me+Qe,be),pe=we.charCodeAt(0);if((pe===it||pe===qt)&&at<=3){for(var tt=0;tt<we.length&&we.charCodeAt(tt)===pe;)tt++;if(tt>=3){if(Ce&&ve){H=!0;break}Re=!0,he=pe,je=tt,ve=!0,me=be<ae?be+1:ae;continue}}var De=at<=3?ea(te,me,be):null;if(De&&ve){if(Ce){H=!0;break}Ve=De.contentCol,Se=!1,me=be<ae?be+1:ae,ve=!0;continue}if(Ce){H=!0;break}ve=!0,me=be<ae?be+1:ae}if(H)break}}for(var Ke=[],wt=0;wt<s.length;wt++){for(var Ot=s[wt],rt=Ot.raw,bt=rt.length;bt>0&&rt.charCodeAt(bt-1)===ye;)bt--;var nt=bt<rt.length?rt.slice(0,bt):rt,Ht=null;if(nt.length>=3&&nt.charCodeAt(0)===It){var jr=nt[1];(jr===" "||jr==="x"||jr==="X")&&nt.charCodeAt(2)===un&&(Ht={type:se.gfmTask,completed:jr==="x"||jr==="X"},nt=nt.slice(3))}var xt;if(Ot.isEmpty&&nt.trim()==="")xt=[];else if(H){var pn=r.inList;r.inList=!0;var Gn=r.i;r.i=Gn||wt!==s.length-1,xt=ha(nt,r,a),r.i=Gn,r.inList=pn}else{var Dr=r.inList;r.inList=!0;var Fr=r.i;if(r.i=Fr||wt!==s.length-1,xt=ha(nt,r,a),r.i=Fr,r.inList=Dr,xt.length===1&&xt[0].type===se.paragraph)xt=xt[0].children;else if(r.p){var Cr=[];r.p.push({src:xt,dest:Cr,unwrap:!0}),xt=Cr}else{for(var Dt=[],Ft=0;Ft<xt.length;Ft++)if(xt[Ft].type===se.paragraph)for(var gr=xt[Ft].children,hn=0;hn<gr.length;hn++)Dt.push(gr[hn]);else Dt.push(xt[Ft]);xt=Dt}}if(Ht){var Nn=[Ht,{type:se.text,text:" "}];if(r.p)r.p.push({src:xt,dest:Nn,unwrap:!1});else for(var yr=0;yr<xt.length;yr++)Nn.push(xt[yr]);Ke.push(Nn)}else Ke.push(xt)}return{node:{type:n.ordered?se.orderedList:se.unorderedList,start:n.ordered?n.start:void 0,items:Ke},end:o}}var Kl=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 wn(e,t,r){let a={};for(let[s,o]of Object.entries(e)){let c=s.toLowerCase();if(c==="style"&&typeof o=="string"){let l={},u=[],f=0,m=0;for(let h=0;h<o.length;h++){let k=o.charCodeAt(h);k===an?f++:k===ln?f--:k===Hl&&f===0&&(u.push(o.slice(m,h)),m=h+1)}m<o.length&&u.push(o.slice(m));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[s]=l)}else if((c==="href"||c==="src")&&(r!=null&&r.sanitizer)){let l=r.sanitizer(o,t,c);l!=null&&(a[s]=l)}else if(o==="")a[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===Qa&&o.charCodeAt(o.length-1)===rm){var i=o.slice(1,-1);if(i.length>0){var n=i.charCodeAt(0);if(n===It||n===Qa)try{a[s]=JSON.parse(i);continue}catch{}}if(i==="true"){a[s]=!0;continue}if(i==="false"){a[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{a[s]=(0,eval)(`(${i})`);continue}catch{}a[s]=i}else a[s]=o}return a}function oa(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<=vt;if(!n){for(var s=String.fromCharCode(i),o=e.length-a,c=r;c<=o;){var l=e.indexOf(s,c);if(l===-1||l>o)return-1;for(var u=!0,f=1;f<a;f++){var m=e.charCodeAt(l+f),d=t.charCodeAt(f);if(m>=Te&&m<=Ne&&(m+=rn),d>=Te&&d<=Ne&&(d+=rn),m!==d){u=!1;break}}if(u)return l;c=l+1}return-1}i>=Te&&i<=Ne&&(i+=rn);for(let k=r;k<=e.length-a;k++){var h=e.charCodeAt(k);if(h>=Te&&h<=Ne&&(h+=rn),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+=rn),w>=Te&&w<=Ne&&(w+=rn),b!==w){v=!1;break}}if(v)return k}return-1}function
|
|
77
|
+
`,me);if(be<0&&(be=ae),Re){jt(te,me,be);for(var ee=te.slice(me+Qe,be),re=0;re<ee.length&&ee.charCodeAt(re)===he;)re++;re>=je&&ee.slice(re).trim()===""&&(Re=!1),me=be<ae?be+1:ae;continue}if(dr(te,me,be)){Ve>=0?Se=!0:ve&&(Ce=!0),me=be<ae?be+1:ae;continue}if(jt(te,me,be),Ve>=0){if(at>=Ve){me=be<ae?be+1:ae;continue}var ne=ea(te,me,be);if(ne&&ne.markerCol<Ve&&ne.contentCol<=Ve){me=be<ae?be+1:ae;continue}if(ne){me=be<ae?be+1:ae;continue}Ve=-1,Se&&(Ce=!0,Se=!1)}var we=te.slice(me+Qe,be),pe=we.charCodeAt(0);if((pe===it||pe===qt)&&at<=3){for(var tt=0;tt<we.length&&we.charCodeAt(tt)===pe;)tt++;if(tt>=3){if(Ce&&ve){H=!0;break}Re=!0,he=pe,je=tt,ve=!0,me=be<ae?be+1:ae;continue}}var De=at<=3?ea(te,me,be):null;if(De&&ve){if(Ce){H=!0;break}Ve=De.contentCol,Se=!1,me=be<ae?be+1:ae,ve=!0;continue}if(Ce){H=!0;break}ve=!0,me=be<ae?be+1:ae}if(H)break}}for(var Ke=[],wt=0;wt<s.length;wt++){for(var Ot=s[wt],rt=Ot.raw,bt=rt.length;bt>0&&rt.charCodeAt(bt-1)===ye;)bt--;var nt=bt<rt.length?rt.slice(0,bt):rt,Ht=null;if(nt.length>=3&&nt.charCodeAt(0)===It){var jr=nt[1];(jr===" "||jr==="x"||jr==="X")&&nt.charCodeAt(2)===un&&(Ht={type:se.gfmTask,completed:jr==="x"||jr==="X"},nt=nt.slice(3))}var xt;if(Ot.isEmpty&&nt.trim()==="")xt=[];else if(H){var pn=r.inList;r.inList=!0;var Gn=r.i;r.i=Gn||wt!==s.length-1,xt=ha(nt,r,a),r.i=Gn,r.inList=pn}else{var Dr=r.inList;r.inList=!0;var Fr=r.i;if(r.i=Fr||wt!==s.length-1,xt=ha(nt,r,a),r.i=Fr,r.inList=Dr,xt.length===1&&xt[0].type===se.paragraph)xt=xt[0].children;else if(r.p){var Cr=[];r.p.push({src:xt,dest:Cr,unwrap:!0}),xt=Cr}else{for(var Dt=[],Ft=0;Ft<xt.length;Ft++)if(xt[Ft].type===se.paragraph)for(var gr=xt[Ft].children,hn=0;hn<gr.length;hn++)Dt.push(gr[hn]);else Dt.push(xt[Ft]);xt=Dt}}if(Ht){var Nn=[Ht,{type:se.text,text:" "}];if(r.p)r.p.push({src:xt,dest:Nn,unwrap:!1});else for(var yr=0;yr<xt.length;yr++)Nn.push(xt[yr]);Ke.push(Nn)}else Ke.push(xt)}return{node:{type:n.ordered?se.orderedList:se.unorderedList,start:n.ordered?n.start:void 0,items:Ke},end:o}}var Kl=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 wn(e,t,r){let a={};for(let[s,o]of Object.entries(e)){let c=s.toLowerCase();if(c==="style"&&typeof o=="string"){let l={},u=[],f=0,m=0;for(let h=0;h<o.length;h++){let k=o.charCodeAt(h);k===an?f++:k===ln?f--:k===Hl&&f===0&&(u.push(o.slice(m,h)),m=h+1)}m<o.length&&u.push(o.slice(m));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[s]=l)}else if((c==="href"||c==="src")&&(r!=null&&r.sanitizer)){let l=r.sanitizer(o,t,c);l!=null&&(a[s]=l)}else if(o==="")a[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===Qa&&o.charCodeAt(o.length-1)===rm){var i=o.slice(1,-1);if(i.length>0){var n=i.charCodeAt(0);if(n===It||n===Qa)try{a[s]=JSON.parse(i);continue}catch{}}if(i==="true"){a[s]=!0;continue}if(i==="false"){a[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{a[s]=(0,eval)(`(${i})`);continue}catch{}a[s]=i}else a[s]=o}return a}function oa(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<=vt;if(!n){for(var s=String.fromCharCode(i),o=e.length-a,c=r;c<=o;){var l=e.indexOf(s,c);if(l===-1||l>o)return-1;for(var u=!0,f=1;f<a;f++){var m=e.charCodeAt(l+f),d=t.charCodeAt(f);if(m>=Te&&m<=Ne&&(m+=rn),d>=Te&&d<=Ne&&(d+=rn),m!==d){u=!1;break}}if(u)return l;c=l+1}return-1}i>=Te&&i<=Ne&&(i+=rn);for(let k=r;k<=e.length-a;k++){var h=e.charCodeAt(k);if(h>=Te&&h<=Ne&&(h+=rn),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+=rn),w>=Te&&w<=Ne&&(w+=rn),b!==w){v=!1;break}}if(v)return k}return-1}function wI(e,t,r){let a=t.length;var i=t.charCodeAt(0);i>=Te&&i<=Ne&&(i+=rn);for(let s=Math.min(r,e.length-a);s>=0;s--){var n=e.charCodeAt(s);if(n>=Te&&n<=Ne&&(n+=rn),n!==i)continue;let o=!0;for(let c=1;c<a;c++){let l=e.charCodeAt(s+c),u=t.charCodeAt(c);if(l>=Te&&l<=Ne&&(l+=rn),u>=Te&&u<=Ne&&(u+=rn),l!==u){o=!1;break}}if(o)return s}return-1}var Gl=-1;function Xf(e,t,r){let a=r.toLowerCase(),i=`<${a}`,n=`</${a}`,s=1,o=t,c=e.length;for(Gl=-1;o<c&&s>0;){let f=oa(e,i,o),m=oa(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=Sn(e,f);d?(d.tag.toLowerCase()===a&&!d.f&&!d.n&&!ao(d.tag)&&s++,o=d.end):o=f+1}else{var l=m+n.length,u=l<c?e.charCodeAt(l):62;if((u===Ue||u===ce||u===de||u===ye)&&(s--,s===0)){Gl=m;let d=m+n.length;for(;d<c&&e.charCodeAt(d)!==Ue;)d++;return d+1}o=m+1}}return-1}function Kk(e,t,r,a){if(a.ignoreHTMLBlocks||a.disableParsingRawHTML)return null;var i=st(e,t);if(jt(e,t,i),at>3&&!r.inHTML)return null;var n=t+Qe;if(e.charCodeAt(n)!==mt)return null;var s=e.indexOf(">",n+1);if(s!==-1&&s<i){var o=e.slice(n+1,s);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)||/^[^\s@]+@[^\s@]+$/.test(o))return null}var c=SI(e,n);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,f=0;f<Kf.length;f++){var m=oa(e,`</${Kf[f]}>`,n);m>=0&&m<u&&(u=m)}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:se.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=Sn(e,n),E={},p;w&&!w.f&&(E=wn(w.attrs,y,a),p=w.g+w.b);var g=[],S=y.toLowerCase(),C=`</${S}`,O=oa(v,C,0),_="",x,A,N;if(w!=null&&w.f){N=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&&(A=Pr(I))}else if(w&&!w.f){var F=w.end-n;if(O===-1){for(var $=v;$.length>0&&$.charCodeAt($.length-1)===ye;)$=$.slice(0,-1);x=Pr($)}else{var Y=F;v.charCodeAt(Y)===ye&&Y++;for(var Z=O;Z>Y;){var ie=v.charCodeAt(Z-1);if(ie!==ce&&ie!==de&&ie!==ye&&ie!==wa)break;Z--}var P=v.slice(Y,Z);P&&(A=Pr(P));for(var D=v.slice(O);D.length>0&&D.charCodeAt(D.length-1)===ye;)D=D.slice(0,-1);N=Pr(D),_=v.slice(F,O).trim()}}var U=w?w.f:!1;return{node:{type:se.htmlBlock,tag:y,attrs:E,b:p,children:g,e:A,h:N,j:x,text:_,c:!0,a:U},end:l}}if(c===6||c===7){var T=jh(e,t),R=T<e.length?T:e.length,M=e.slice(n,R),B=T<e.length?He(e,T):e.length,V=Sn(e,n);if(V){var K=V.tag,J=K.toLowerCase(),Q=V.f;if(Q){var q=e.slice(V.end,R);return{node:{type:se.htmlBlock,tag:K,attrs:{},children:[],h:e.slice(n,V.end),e:q?Pr(q):void 0,text:q,c:!0,a:!0},end:B}}if(V.n||ao(K))return{node:{type:se.htmlBlock,tag:K,attrs:wn(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,H=e.slice(n,R),G=-1,te=-1,ae=!1;if(z<10){for(var me=`</${J}`,ve=V.end-n,Ce=1,Se=ve;Se<H.length&&Ce>0;){var Re=oa(H,`<${J}`,Se),he=oa(H,me,Se);if(he===-1)break;if(Re!==-1&&Re<he){var je=Re+J.length+1;if(je<H.length){var Ve=H.charCodeAt(je);(Ve===ce||Ve===de||Ve===ye||Ve===Ue||Ve===Pt)&&Ce++}Se=Re+1}else{var be=he+me.length;if(be<H.length){var ee=H.charCodeAt(be);if((ee===Ue||ee===ce||ee===de||ee===ye)&&(Ce--,Ce===0)){G=he;for(var re=be;re<H.length&&H.charCodeAt(re)!==Ue;)re++;te=re+1;break}}else if(Ce--,Ce===0){G=he,te=H.length;break}Se=he+1}}if(G===-1&&!V.f&&(c===6||V.u)){var ne=Xf(e,V.end,J);if(ne!==-1){for(var we=Gl,pe=V.end,tt=!1,De=!1,Ke=!1,wt=0,Ot=!1,rt=!1,bt=pe;bt<we;){var nt=e.charCodeAt(bt);if(nt===ye)rt&&(tt=!0),Ot||wt++,rt=!0,bt++;else if(nt===ce||nt===de)bt++;else{if(!Ot&&(Ot=!0,wt>=2&&nt===mt)){Ke=!0;break}if(rt=!1,nt===mt){var Ht=e.charCodeAt(bt+1)|32;if((Ht===Vf||Ht===Mk||Ht===Ri)&&(Th.lastIndex=bt,Th.test(e))){De=!0;break}}bt++}}if(tt&&!Ke&&!De){var jr=st(e,ne);R=jr,B=He(e,jr),H=e.slice(n,R),M=e.slice(n,R),G=we-n,te=ne-n,ae=!0}}}}var xt=V.b.indexOf(`
|
|
78
78
|
`)!==-1||V.g.indexOf(`
|
|
79
79
|
`)!==-1,pn=!1;if(G!==-1){var Gn=H.slice(te).trim();pn=Gn.length===0}var Dr=!1,Fr=R,Cr=B;if(G!==-1){var Dt=n+te,Ft=st(e,Dt-1);if(Dt<Ft){for(var gr=Dt;gr<Ft&&(e.charCodeAt(gr)===ce||e.charCodeAt(gr)===de);)gr++;if(gr<Ft&&e.charCodeAt(gr)===mt){var hn=Sn(e,gr);hn&&!hn.f&&(Dr=!0,Fr=Dt,Cr=Dt,pn=!0)}}if(!Dr){var Nn=He(e,Ft);if(Nn<R){for(var yr=Nn;yr<R&&(e.charCodeAt(yr)===ce||e.charCodeAt(yr)===de);)yr++;if(yr<R&&e.charCodeAt(yr)===mt){var es=Sn(e,yr);es&&(Dr=!0,Fr=Ft,Cr=Nn,pn=!0)}}}if(!Dr&&r.inHTML){Dr=!0,Fr=Ft,Cr=He(e,Ft);var fo=e.slice(Dt,Ft).trim();pn=fo.length===0}}var gn=[],sr="";if(G!==-1){sr=H.slice(V.end-n,G);var Mr=sr.trim();if(Mr){var{inline:Oc,inHTML:Tc,d:Ct}=r;r.inHTML=!0,r.d=z+1;var Jn=J==="p";if(Jn)r.inline=!0,gn=ji(Mr,!1,r,a);else{var mo=sr.indexOf(`
|
|
80
80
|
|
|
81
|
-
`)!==-1,ts=yu.test(Mr),Oa=
|
|
81
|
+
`)!==-1,ts=yu.test(Mr),Oa=Ph.test(Mr),po=mo||ts||r.inHTML&&Oa,ho=sr.length>=2&&sr.charCodeAt(0)===ye&&sr.charCodeAt(sr.length-1)===ye&&!mo;ho&&!ts&&!Oa?gn=[{type:se.text,text:Mr}]:po||Oa?(r.inline=!1,gn=ha(sr,r,a)):(r.inline=!0,gn=ji(Mr,!1,r,a))}r.inline=Oc,r.inHTML=Tc,r.d=Ct}}var go=!1;if(c===6&&G!==-1&&!r.inHTML&&!xt){var Pc=/<[a-zA-Z][^>]*>/.test(sr),Ic=sr.indexOf(`
|
|
82
82
|
|
|
83
83
|
`)!==-1||yu.test(sr);Pc&&!Ic&&(go=!0)}var Rc=!ae&&(r.inHTML||c===7||xt||!pn||go);if(Rc){var vr,or,yn=!1;if(G!==-1&&Dr){var yo=!1;if(r.inHTML&&te<H.length){for(var Yn=te;Yn<H.length&&H.charCodeAt(Yn)!==ye;)Yn++;var rs=H.slice(te,Yn).trim();yo=rs.length>1&&rs.charCodeAt(0)===mt&&rs.charCodeAt(1)!==Pt}or=yo?H.slice(V.end-n):sr,yn=!0}else(c===7||r.inHTML)&&G!==-1?(or=H.slice(V.end-n),or.charCodeAt(0)===ye&&(or=or.slice(1))):Dr?vr=e.slice(n,Fr):xt?vr=M:(or=H.slice(V.end-n),or.charCodeAt(0)===ye&&(or=or.slice(1)));var ns=vr!==void 0,oi=Pr(vr===void 0?or||"":vr),Ta={type:se.htmlBlock,tag:K,attrs:wn(V.attrs,K,a),b:V.g+V.b,children:gn,e:ns?void 0:oi,j:ns?oi:void 0,text:oi,c:!0,a:!1};return yn&&(Ta.x=!0),{node:Ta,end:Cr}}var li=Pr(sr);return{node:{type:se.htmlBlock,tag:K,attrs:wn(V.attrs,K,a),b:V.g+V.b,children:gn,e:ae?void 0:li,text:li,c:!1,a:!1},end:Cr}}var jn=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Xn=jn?jn[2]:"div",Dn=jn?jn[1]==="/":!1,br,vo,bo,Pa="";if(Dn){var ci=M.indexOf(">");ci===-1?br=M:(br=M.slice(0,ci+1),Pa=M.slice(ci+1),Pa&&(vo=Pr(Pa)))}else bo=Pr(M);return{node:{type:se.htmlBlock,tag:Xn,attrs:{},children:[],e:vo,h:br,j:bo,text:Dn?Pa:M,c:!0,a:Dn},end:B}}var Wt=Sn(e,n);if(!Wt)return null;var Zr=Wt.tag,as=Zr.toLowerCase(),ko=Zr.charCodeAt(0),ui=ko>=Te&&ko<=Ne;if(!(ui||Kl.has(as)||io.has(as)||as.includes("-")))return null;if(Wt.f)return{node:{type:se.htmlSelfClosing,tag:Zr,attrs:{},h:e.slice(n,Wt.end),a:!0},end:Wt.end};var Qr=Xf(e,Wt.end,Zr),Fn=[];if(Qr!==-1){var fe=Gl,L=e.slice(Wt.end,fe),X=L.trim();if(X){var le=L.indexOf(`
|
|
84
84
|
|
|
85
|
-
`)!==-1,ge=yu.test(X),Ee=
|
|
85
|
+
`)!==-1,ge=yu.test(X),Ee=Ph.test(X),_e=r.inline,Tt=r.inHTML,Kt=r.d;r.inHTML=!0,r.d=(r.d||0)+1,le||ge||Ee?(r.inline=!1,Fn=ha(L,r,a)):(r.inline=!0,Fn=ji(X,!1,r,a)),r.inline=_e,r.inHTML=Tt,r.d=Kt}var Ar=st(e,Qr),rr=e.slice(Qr,Ar).trim(),kr=rr?Qr:He(e,Qr),Gt=ui?e.slice(n,Qr):e.slice(n,kr);return{node:{type:se.htmlBlock,tag:Zr,attrs:wn(Wt.attrs,Zr,a),b:Wt.g+Wt.b,children:Fn,j:Pr(Gt),text:ui?L:Gt,c:!0,a:!1},end:kr}}var is=jh(e,Wt.end),Q0=is<e.length?He(e,is):is,Nc=e.slice(Wt.end,is);if(Nc.trim()){var{inline:e1,inHTML:t1,d:r1}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,Fn=ha(Nc,r,a),r.inline=e1,r.inHTML=t1,r.d=r1}var n1=e.slice(Wt.end,is);return{node:{type:se.htmlBlock,tag:Zr,attrs:wn(Wt.attrs,Zr,a),b:Wt.g+Wt.b,children:Fn,e:Pr(n1),text:Nc,c:!0,a:!1},end:Q0}}function SI(e,t){if(e.charCodeAt(t)!==mt)return 0;var r=t+1,a=e.length;if(e.charCodeAt(r)===pr&&e.charCodeAt(r+1)===Me&&e.charCodeAt(r+2)===Me)return 2;if(e.charCodeAt(r)===Yi)return 3;if(e.charCodeAt(r)===pr){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,s=n?r+1:r,o=s;o<a;){var c=e.charCodeAt(o);if(c>=Te&&c<=Ne||c>=lt&&c<=vt||c>=ze&&c<=$e||c===Me)o++;else break}if(o===s)return 0;var l=e.slice(s,o);if(io.has(l.toLowerCase())){if(n)return 0;var u=e.charCodeAt(o);return u===ce||u===de||u===Ue||u===ye||o>=a?1:0}if(Kl.has(l.toLowerCase())){if(n){for(var f=o;f<a&&(e.charCodeAt(f)===ce||e.charCodeAt(f)===de);)f++;return f<a&&e.charCodeAt(f)===Ue?6:0}var m=o<a?e.charCodeAt(o):-1;return m===ce||m===de||m===Ue||m===ye||m===Pt||m===-1?6:0}if(n){for(var d=o;d<a&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de);)d++;if(d<a&&e.charCodeAt(d)===Ue){var h=st(e,t),k=e.slice(d+1,h).trim();if(k==="")return 7}}else{var v=st(e,t),y=Sn(e,t);if(y&&y.end<=v){var b=e.slice(y.end,v).trim();if(b==="")return 7}}return 0}function $h(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)===Ut&&a++,i>a&&e.charCodeAt(i-1)===Ut&&(i-2<a||e.charCodeAt(i-2)!==Bt)&&i--;for(var n=[],s=a,o=!1,c=[],l=a;l<i;){var u=e.charCodeAt(l);if(u===Bt&&l+1<i){e.charCodeAt(l+1)===Ut?(o||(o=!0,c=[]),c.push(e.slice(s,l)),c.push("|"),l+=2,s=l):l+=2;continue}if(u===it){for(var f=0;l<i&&e.charCodeAt(l)===it;)f++,l++;for(var m=!1;l<i&&!m;){for(var d=0;l<i&&e.charCodeAt(l)===it;)d++,l++;d===f?m=!0:d===0&&l++}continue}if(u===Ut){var h=o?(c.push(e.slice(s,l)),c.join("")):e.slice(s,l);n.push(h.trim()),l++,s=l,o=!1,c=[];continue}l++}var k=o?(c.push(e.slice(s,i)),c.join("")):e.slice(s,i);return n.push(k.trim()),n.map(v=>{var y=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return y?ji(y,!1,t,r):[]})}function Uh(e,t,r,a){let i=st(e,t);var n=e.indexOf("|",t);if(n<0||n>=i)return null;let s=He(e,i);if(s>=e.length)return null;let o=st(e,s);if(!Vk(e,s,o))return null;let c=e.slice(t,i),l=e.slice(s,o);for(var u=[],f=0,m=l.length;f<m&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;for(f<m&&l.charCodeAt(f)===Ut&&f++;f<m;){for(;f<m&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;if(f>=m||l.charCodeAt(f)===Ut)break;var d=l.charCodeAt(f)===ar;for(d&&f++;f<m&&l.charCodeAt(f)===Me;)f++;var h=f<m&&l.charCodeAt(f)===ar;for(h&&f++,u.push(d&&h?"center":h?"right":d?"left":null);f<m&&(l.charCodeAt(f)===ce||l.charCodeAt(f)===de);)f++;f<m&&l.charCodeAt(f)===Ut&&f++}let k=$h(c,r,a);if(u.length!==k.length)return null;let v=[],y=He(e,o);for(;y<e.length;){let S=st(e,y),C=e.slice(y,S);if(dr(e,y,S))break;if(jt(e,y,S),at<4){var b=e.charCodeAt(y+Qe);if(b===Ue||b===Xr||(b===Me||b===Nt||b===_t)&&pa(e,y))break;if(b===it||b===qt){for(var w=y+Qe,E=0;w<S&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}v.push($h(C,r,a)),y=He(e,S)}if(a.optimizeForStreaming&&v.length===0)return null;for(var p=k.length,g=0;g<v.length;g++)if(v[g].length<p)for(;v[g].length<p;)v[g].push([]);else v[g].length>p&&(v[g].length=p);return{node:{type:se.table,header:k,cells:v,align:u},end:y}}function EI(e,t,r){var a=st(e,t);if(jt(e,t,a),at>3)return null;var i=t+Qe;if(e.charCodeAt(i)!==It)return null;if(i+1<e.length&&e.charCodeAt(i+1)===Kn){var n=xI(e,i,r);return n||null}r.refs||(r.refs={});var s=Hk(e,i,r.refs);return s===null?null:{node:{type:se.refCollection},end:s}}function xI(e,t,r){var a=e.length;if(e.charCodeAt(t)!==It||t+1>=a||e.charCodeAt(t+1)!==Kn)return null;for(var i=t+2,n=i;i<a&&e.charCodeAt(i)!==un;){if(e.charCodeAt(i)===ye)return null;i++}if(i>=a)return null;var s=`^${e.slice(n,i)}`.toLowerCase();if(i++,i>=a||e.charCodeAt(i)!==ar)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 o=e.indexOf(`
|
|
86
86
|
`,i);o<0&&(o=a);for(var c=e.slice(i,o).trim(),l=o<a?o+1:a;l<a;){var u=st(e,l);if(jt(e,l,u),at>=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 m=st(e,f);if(jt(e,f,m),at>=2){c+=`
|
|
88
|
-
`,l=He(e,u);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:c,title:void 0}),{node:{type:se.footnote},end:l}}function
|
|
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 im(e,t,r){if(e.charCodeAt(t)!==it)return t;let a=Ea(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let s=Ea(e,n,r,96);if(s===a)return n+s;i=n+s}return t}function CI(e,t,r){if(e.charCodeAt(t)!==mt)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==Ue;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===pr&&e.charCodeAt(t+2)===Me&&e.charCodeAt(t+3)===Me){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<=vt||l>=ze&&l<=$e||l===Me)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===Ue){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===Ue){a+=2,s=!0;break}if(l===Za||l===Xa){var o=l;for(a++;a<r&&e.charCodeAt(a)!==o;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(s||ao(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===mt)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)<=vt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==Ue;)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)<=vt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function AI(e,t,r,a,i){if(e.charCodeAt(t)!==qt||t+1>=r||e.charCodeAt(t+1)!==qt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===it){let o=im(e,n,r);if(o>n){n=o;continue}}if(s===qt&&e.charCodeAt(n+1)===qt){let o=e.slice(t+2,n),c=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"del",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function _I(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===it){let o=im(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=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"mark",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function Uh(e,t,r){return e<bc?!!(am(e)&Ai):qP.test(t[r])}function Bh(e,t,r){return e<bc?!!(am(e)&Ua):zP.test(t[r])}function OI(e,t,r){var a=e.charCodeAt(t);if(a!==Nt&&a!==_t)return null;var i=Ea(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=Bh(n,e,t-1),c=Bh(s,e,t+i),l=t>0?Uh(n,e,t-1):!1,u=t+i<r?Uh(s,e,t+i):!1,f=!c&&(!u||o||l),m=!o&&(!l||c||u),d,h;return a===Nt?(d=f,h=m):(d=f&&(!m||l),h=m&&(!f||u)),{len:i,canOpen:d,canClose:h}}function TI(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 m=[],d=0;d<12;d++)m[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===Nt?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=m[y]===void 0?-1:m[y],w=-1,E=h-1;E>b;E--){var p=t[E];if(!(!p.active||p.ch!==k.ch||!p.canOpen)&&!((k.canOpen||p.canClose)&&(p.len+k.len)%3===0&&p.len%3!==0)){w=E;break}}if(w<0){m[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,C=S?2:1;g.len-=C,k.len-=C;var O=u[w],_=u[h],x=O.node,A=_.node;x.text=x.text.slice(0,x.text.length-C),A.text=A.text.slice(C);for(var N=[],I=O.next;I&&I!==_;)N.push(I.node),I=I.next;var F={type:se.textFormatted,tag:S?"strong":"em",children:N},$={node:F,prev:O,next:_};O.next=$,_.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,x.text==="")){var Z=O.prev;$.prev=Z,Z?Z.next=$:s=$}if(k.len===0){if(k.active=!1,A.text===""){var ie=_.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,D=s;D;){var U=D.node;if(U.type===se.text){var T=U;if(T.text===""){D=D.next;continue}if(P>0&&e[P-1].type===se.text){e[P-1].text+=T.text,D=D.next;continue}}e[P++]=U,D=D.next}e.length=P}}function Po(e,t,r,a){return t(e,r,a)===null?null:e}var Vh=0,Zf=0,Hh=0,Qf=0,Wh=0,ed=0,vu=0,zr=0;function PI(){return vu===2147483647&&(Zf=0,Qf=0,ed=0,Il=0,vu=0),++vu}var bu=null,Il=0,Io=[],ku=256;function Kh(e,t,r,a,i){var K;let n=e.charCodeAt(t)===pr,s=n?t+1:t;if(e.charCodeAt(s)!==It||Qf===zr&&s>=Hh)return null;var o=Il===zr?bu: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 Hh=s,Qf=zr,null;l=s+1;var f=0;Io[f++]=s;for(var m=r-s>=ku;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Bt&&l+1<r){l+=2;continue}if(d===it){var h=im(e,l,r);if(h>l){l=h;continue}}if(d===mt){var k=Kk(e,l,r);if(k){l=k.end;continue}var v=CI(e,l,r);if(v>l){l=v;continue}}if(d===It)Io[f++]=l;else if(d===un){var y=Io[--f];o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null&&(o[y]=l+1)}l++}if(f>0){if(o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null)for(;f>0;)o[Io[--f]]=-1;return null}}var b=l-1,w=e.slice(s+1,b),E=l<r?e.charCodeAt(l):0,p=!1;if(E===an){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",C=l;if(l<r&&e.charCodeAt(l)===mt){for(l++,C=l;C<r&&e.charCodeAt(C)!==Ue;){if(e.charCodeAt(C)===Bt&&C+1<r){C+=2;continue}if(e.charCodeAt(C)===ye){g=!1;break}C++}g&&(C>=r||e.charCodeAt(C)!==Ue)&&(g=!1),g&&(S=e.slice(l,C),C++)}else if(g){var O=Zf===zr?Vh:-1;if(O>=0&&l>=O)g=!1;else{for(var _=0,x=!1;C<r;){var A=e.charCodeAt(C);if(A===Bt&&C+1<r){C+=2;continue}if(A===an)_++;else if(A===ln){if(x=!0,_===0)break;_--}else if(A===ce||A===ye)break;C++}C>=r&&!x&&(O<0||l<O)&&(Vh=l,Zf=zr),S=e.slice(l,C)}}if(g){for(l=C;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var N;if(l<r){var I=e.charCodeAt(l);if(I===Za||I===Xa||I===an){var F=I===an?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==F;)e.charCodeAt(l)===Bt&&l+1<r&&l++,l++;l>=r?g=!1:(N=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==ln)&&(g=!1)}}if(g){if(l++,S=ma(Ni(S)),N!==void 0&&(N=ma(Ni(N))),n){var Y=An(w,0,w.length,a,i),Z=Jl(Y);return{node:{type:se.image,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:N},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:N,children:V},end:l}}l=b+1,p=!0}var P="",D=l;if(!p&&E===It){var U=l+1;D=U;for(var T=!1;D<r&&e.charCodeAt(D)!==un;){if(e.charCodeAt(D)===Bt&&D+1<r){D+=2;continue}if(e.charCodeAt(D)===It){T=!0;break}D++}if(T||D>=r)return null;var R=e.slice(U,D);if(R.trim())P=Tl(R);else{if(Rh(w))return null;P=Tl(w)}D+=1}else{if(Rh(w))return null;P=Tl(w)}var M=(K=a.refs)==null?void 0:K[P];if(!M)return null;if(n)return{node:{type:se.image,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Jl(An(w,0,w.length,a,i)),title:M.title},end:D};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:M.title,children:V},end:D}}function Kk(e,t,r){if(e.charCodeAt(t)!==mt)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===Ue)break;if(i===ce||i===ye||i===wa||i===mt)return null;a++}if(a>=r||e.charCodeAt(a)!==Ue)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 II(e,t,r,a){if(e.charCodeAt(t)!==It||t+1>=r||e.charCodeAt(t+1)!==Kn||ed===zr&&t>=Wh)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==un&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return Wh=t,ed=zr,null;if(e.charCodeAt(i)!==un)return null;let n=e.slice(t+2,i);return n?{node:{type:se.footnoteReference,target:`#${ei(n)}`,text:n},end:i+1}:null}function RI(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,s=e.charCodeAt(t);if(s===Vl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Ri&&e.charCodeAt(t+3)===Vf&&(e.charCodeAt(t+4)===Fk&&e.charCodeAt(t+5)===ar&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===ar&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):s===Ya||s===70?t+6<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Vf&&e.charCodeAt(t+3)===ar&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(s===Ba||s===87)&&t+4<=r&&e.charCodeAt(t+1)===Ba&&e.charCodeAt(t+2)===Ba&&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===wa||g===mt||g===Ue)break;o++}for(var c=0,l=0,u=t;u<o;u++){var f=e.charCodeAt(u);f===an?c++:f===ln&&l++}let m=o;for(;m>t+i.length;){let g=e.charCodeAt(m-1);if(g===Hr||g===AP||g===ar||g===pr||g===Yi||g===ln||g===Nt||g===_t||g===qt){if(g===ln){if(c>=l)break;l--}m--}else if(g===Hl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=vt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===vc?m=d:m--}else break}if(m<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>m)&&(k=m),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,m),p=n?`http://${E}`:E;return{node:{type:se.link,target:p,title:void 0,children:[{type:se.text,text:E}]},end:m}}function NI(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<=vt||s>=ze&&s<=$e||s===Hr||s===pr||s===Xr||s===36||s===Uf||s===vc||s===Xa||s===Nt||s===Sa||s===Pt||s===Vr||s===Yi||s===Kn||s===_t||s===it||s===Qa||s===Ut||s===rm||s===qt||s===Me)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Dk)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<=vt||s>=ze&&s<=$e)i++;else if((s===Me||s===_t)&&i>o)i++;else if(s===Hr){if(i===o)break;var u=e.charCodeAt(i-1);if(u===Me||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=vt||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 m=e.charCodeAt(i-1);if(!(m>=Te&&m<=Ne||m>=lt&&m<=vt||m>=ze&&m<=$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 td(e){for(var t=0;t<e.length;t++)if(e[t].type===se.link||"children"in e[t]&&Array.isArray(e[t].children)&&td(e[t].children))return!0;return!1}function Jl(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+=Jl(i.children,t):!t&&i.type===se.image&&(r+=i.alt||"")}return r}function rd(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=mI(r(Jl(n.children,!0)),t)}if("children"in i){var s=i.children;Array.isArray(s)&&rd(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++)rd(o[c],t,r)}}function Da(e){return{type:se.text,text:e}}function jI(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Xr){a++;var i=a<r&&(e.charCodeAt(a)===Mk||e.charCodeAt(a)===Lk);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<=Bf||o>=lt&&o<=Ya);if(!c)break;a++}return a===n||a-n>s?-1:a<r&&e.charCodeAt(a)===Hl?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<=vt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===Hl?a+1:-1}function DI(e,t,r,a,i){if(e.charCodeAt(t)!==mt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===pr&&n+1<r&&e.charCodeAt(n+1)===Me&&n+2<r&&e.charCodeAt(n+2)===Me){var o=n+3;if(o<r&&e.charCodeAt(o)===Ue)return{node:{type:se.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Me&&e.charCodeAt(o+1)===Ue)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===Yi){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===pr&&n+1<r){var u=e.charCodeAt(n+1);if(u===It&&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 m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:se.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+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<=vt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=vt||k>=ze&&k<=$e||k===Me)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)===Ue){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<=vt))return null;var y=Sn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||ao(b))return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var p=io.has(w),g=Xf(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var S=bI(e,`</${w}`,g),C=e.slice(y.end,S);if(p){var O=Pr(C);return{node:{type:se.htmlBlock,tag:b,attrs:wn(y.attrs,b,i),b:y.g+y.b,children:[],e:O||void 0,h:e.slice(S,g),text:O,c:!0,a:!1},end:g}}var _=[],x=C.trim();if(x){var{inAnchor:A,inline:N,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var F=x.indexOf(`
|
|
88
|
+
`,l=He(e,u);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:c,title:void 0}),{node:{type:se.footnote},end:l}}function CI(e,t,r,a){let i=t,n=0,s=0,o=-1;for(;i<e.length;){let N=o>=0?o:st(e,i);if(o=-1,dr(e,i,N))break;if(jt(e,i,N),at<4&&s>0&&!r.l){let F=e.charCodeAt(i+Qe);if(F===Vr||F===Me){let $=i+Qe;for(;$<N&&e.charCodeAt($)===F;)$++;for(;$<N&&(e.charCodeAt($)===ce||e.charCodeAt($)===de);)$++;if($>=N){n=F===Vr?1:2,i=He(e,N);break}}}s=N;let I=He(e,N);if(I<e.length){if(e.charCodeAt(I)===Hf){var c=st(e,I);i=He(e,c),s=c;continue}let F=st(e,I);if(o=F,jt(e,I,F),at<4){let $=e.charCodeAt(I+Qe);if($===Ue){i=I;break}if($===Xr){for(var l=I+Qe,u=0;l<F&&e.charCodeAt(l)===Xr&&u<=6;)u++,l++;if(u>=1&&u<=6&&(l>=F||e.charCodeAt(l)===ce||e.charCodeAt(l)===de)){i=I;break}}if($===it||$===qt){for(var f=I+Qe,m=0;f<F&&e.charCodeAt(f)===$;)m++,f++;if(m>=3){i=I;break}}if($===mt){var d=I+Qe+1,h=d<F?e.charCodeAt(d):0,k=h===pr||h===Yi;if(!k&&h===Pt){for(var v=d+1,y=v;y<F&&(e.charCodeAt(y)>=Te&&e.charCodeAt(y)<=Ne||e.charCodeAt(y)>=lt&&e.charCodeAt(y)<=vt||e.charCodeAt(y)>=ze&&e.charCodeAt(y)<=$e||e.charCodeAt(y)===Me);)y++;y>v&&(k=Kl.has(e.slice(v,y).toLowerCase()))}else if(!k){for(var b=d;b<F&&(e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=Ne||e.charCodeAt(b)>=lt&&e.charCodeAt(b)<=vt||e.charCodeAt(b)>=ze&&e.charCodeAt(b)<=$e||e.charCodeAt(b)===Me);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=Kl.has(w)||io.has(w)}}if(k&&Kk(e,I,r,a)){i=I;break}}if($===Me||$===Nt||$===Sa){let Y=I+Qe+1;if(Y<F&&(e.charCodeAt(Y)===ce||e.charCodeAt(Y)===de)){var E=Hs(e,Y,F);if(E<F&&!pa(e,I)){i=I;break}}}if($>=ze&&$<=$e){let Y=I+Qe;for(;Y<F&&e.charCodeAt(Y)>=ze&&e.charCodeAt(Y)<=$e;)Y++;if(Y<F&&(e.charCodeAt(Y)===Hr||e.charCodeAt(Y)===ln)&&Y-(I+Qe)===1&&e.charCodeAt(I+Qe)===49){var p=Y+1;if(p<F&&(e.charCodeAt(p)===ce||e.charCodeAt(p)===de)){var g=Hs(e,p,F);if(g<F){i=I;break}}}}if($===Ut){let Y=He(e,F);if(Y<e.length){let Z=st(e,Y);if(Vk(e,Y,Z)){i=I;break}}}if(($===Me||$===Nt||$===_t)&&pa(e,I)){if($!==Me){i=I;break}let Y=I+Qe;for(;Y<F&&e.charCodeAt(Y)===Me;)Y++;for(;Y<F&&(e.charCodeAt(Y)===ce||e.charCodeAt(Y)===de);)Y++;if(Y<F){i=I;break}}}}i=He(e,N)}for(var S=n?s:i;S>t&&(e.charCodeAt(S-1)===ye||e.charCodeAt(S-1)===wa||e.charCodeAt(S-1)===ce||e.charCodeAt(S-1)===de);)S--;for(var C=t;C<S&&(e.charCodeAt(C)===ce||e.charCodeAt(C)===de);)C++;if(C>=S)return null;for(var O=!1,_=C;_<S;_++)if(e.charCodeAt(_)===Hf){O=!0;break}var x=O?e.slice(C,S).replace(/\u001E/g,""):e.slice(C,S);if(!x)return null;let A=ji(x,!0,r,a);return n?{node:{type:se.heading,level:n,children:A,id:""},end:i}:{node:{type:se.paragraph,children:A},end:i}}function ji(e,t,r,a){var i=r.t;if(!i){var n=r.k;r.k=t;var s=An(e,0,e.length,r,a);return r.k=n,s}var o=[];return i.push({dest:o,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}),o}function AI(e,t,r){if(e.charCodeAt(t)!==it)return null;let a=Ea(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return null;let s=Ea(e,n,r,96);if(s===a){let o=e.slice(t+a,n);return o.indexOf(`
|
|
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 im(e,t,r){if(e.charCodeAt(t)!==it)return t;let a=Ea(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let s=Ea(e,n,r,96);if(s===a)return n+s;i=n+s}return t}function _I(e,t,r){if(e.charCodeAt(t)!==mt)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==Ue;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===pr&&e.charCodeAt(t+2)===Me&&e.charCodeAt(t+3)===Me){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<=vt||l>=ze&&l<=$e||l===Me)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===Ue){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===Ue){a+=2,s=!0;break}if(l===Za||l===Xa){var o=l;for(a++;a<r&&e.charCodeAt(a)!==o;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(s||ao(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===mt)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)<=vt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==Ue;)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)<=vt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function OI(e,t,r,a,i){if(e.charCodeAt(t)!==qt||t+1>=r||e.charCodeAt(t+1)!==qt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===it){let o=im(e,n,r);if(o>n){n=o;continue}}if(s===qt&&e.charCodeAt(n+1)===qt){let o=e.slice(t+2,n),c=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"del",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function TI(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===it){let o=im(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=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"mark",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function Bh(e,t,r){return e<bc?!!(am(e)&Ai):$P.test(t[r])}function Vh(e,t,r){return e<bc?!!(am(e)&Ua):UP.test(t[r])}function PI(e,t,r){var a=e.charCodeAt(t);if(a!==Nt&&a!==_t)return null;var i=Ea(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=Vh(n,e,t-1),c=Vh(s,e,t+i),l=t>0?Bh(n,e,t-1):!1,u=t+i<r?Bh(s,e,t+i):!1,f=!c&&(!u||o||l),m=!o&&(!l||c||u),d,h;return a===Nt?(d=f,h=m):(d=f&&(!m||l),h=m&&(!f||u)),{len:i,canOpen:d,canClose:h}}function II(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 m=[],d=0;d<12;d++)m[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===Nt?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=m[y]===void 0?-1:m[y],w=-1,E=h-1;E>b;E--){var p=t[E];if(!(!p.active||p.ch!==k.ch||!p.canOpen)&&!((k.canOpen||p.canClose)&&(p.len+k.len)%3===0&&p.len%3!==0)){w=E;break}}if(w<0){m[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,C=S?2:1;g.len-=C,k.len-=C;var O=u[w],_=u[h],x=O.node,A=_.node;x.text=x.text.slice(0,x.text.length-C),A.text=A.text.slice(C);for(var N=[],I=O.next;I&&I!==_;)N.push(I.node),I=I.next;var F={type:se.textFormatted,tag:S?"strong":"em",children:N},$={node:F,prev:O,next:_};O.next=$,_.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,x.text==="")){var Z=O.prev;$.prev=Z,Z?Z.next=$:s=$}if(k.len===0){if(k.active=!1,A.text===""){var ie=_.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,D=s;D;){var U=D.node;if(U.type===se.text){var T=U;if(T.text===""){D=D.next;continue}if(P>0&&e[P-1].type===se.text){e[P-1].text+=T.text,D=D.next;continue}}e[P++]=U,D=D.next}e.length=P}}function Po(e,t,r,a){return t(e,r,a)===null?null:e}var Hh=0,Zf=0,Wh=0,Qf=0,Kh=0,ed=0,vu=0,zr=0;function RI(){return vu===2147483647&&(Zf=0,Qf=0,ed=0,Il=0,vu=0),++vu}var bu=null,Il=0,Io=[],ku=256;function Gh(e,t,r,a,i){var K;let n=e.charCodeAt(t)===pr,s=n?t+1:t;if(e.charCodeAt(s)!==It||Qf===zr&&s>=Wh)return null;var o=Il===zr?bu: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 Wh=s,Qf=zr,null;l=s+1;var f=0;Io[f++]=s;for(var m=r-s>=ku;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Bt&&l+1<r){l+=2;continue}if(d===it){var h=im(e,l,r);if(h>l){l=h;continue}}if(d===mt){var k=Gk(e,l,r);if(k){l=k.end;continue}var v=_I(e,l,r);if(v>l){l=v;continue}}if(d===It)Io[f++]=l;else if(d===un){var y=Io[--f];o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null&&(o[y]=l+1)}l++}if(f>0){if(o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null)for(;f>0;)o[Io[--f]]=-1;return null}}var b=l-1,w=e.slice(s+1,b),E=l<r?e.charCodeAt(l):0,p=!1;if(E===an){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",C=l;if(l<r&&e.charCodeAt(l)===mt){for(l++,C=l;C<r&&e.charCodeAt(C)!==Ue;){if(e.charCodeAt(C)===Bt&&C+1<r){C+=2;continue}if(e.charCodeAt(C)===ye){g=!1;break}C++}g&&(C>=r||e.charCodeAt(C)!==Ue)&&(g=!1),g&&(S=e.slice(l,C),C++)}else if(g){var O=Zf===zr?Hh:-1;if(O>=0&&l>=O)g=!1;else{for(var _=0,x=!1;C<r;){var A=e.charCodeAt(C);if(A===Bt&&C+1<r){C+=2;continue}if(A===an)_++;else if(A===ln){if(x=!0,_===0)break;_--}else if(A===ce||A===ye)break;C++}C>=r&&!x&&(O<0||l<O)&&(Hh=l,Zf=zr),S=e.slice(l,C)}}if(g){for(l=C;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var N;if(l<r){var I=e.charCodeAt(l);if(I===Za||I===Xa||I===an){var F=I===an?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==F;)e.charCodeAt(l)===Bt&&l+1<r&&l++,l++;l>=r?g=!1:(N=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==ln)&&(g=!1)}}if(g){if(l++,S=ma(Ni(S)),N!==void 0&&(N=ma(Ni(N))),n){var Y=An(w,0,w.length,a,i),Z=Jl(Y);return{node:{type:se.image,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:N},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:N,children:V},end:l}}l=b+1,p=!0}var P="",D=l;if(!p&&E===It){var U=l+1;D=U;for(var T=!1;D<r&&e.charCodeAt(D)!==un;){if(e.charCodeAt(D)===Bt&&D+1<r){D+=2;continue}if(e.charCodeAt(D)===It){T=!0;break}D++}if(T||D>=r)return null;var R=e.slice(U,D);if(R.trim())P=Tl(R);else{if(Nh(w))return null;P=Tl(w)}D+=1}else{if(Nh(w))return null;P=Tl(w)}var M=(K=a.refs)==null?void 0:K[P];if(!M)return null;if(n)return{node:{type:se.image,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Jl(An(w,0,w.length,a,i)),title:M.title},end:D};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:M.title,children:V},end:D}}function Gk(e,t,r){if(e.charCodeAt(t)!==mt)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===Ue)break;if(i===ce||i===ye||i===wa||i===mt)return null;a++}if(a>=r||e.charCodeAt(a)!==Ue)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 NI(e,t,r,a){if(e.charCodeAt(t)!==It||t+1>=r||e.charCodeAt(t+1)!==Kn||ed===zr&&t>=Kh)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==un&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return Kh=t,ed=zr,null;if(e.charCodeAt(i)!==un)return null;let n=e.slice(t+2,i);return n?{node:{type:se.footnoteReference,target:`#${ei(n)}`,text:n},end:i+1}:null}function jI(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,s=e.charCodeAt(t);if(s===Vl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Ri&&e.charCodeAt(t+3)===Vf&&(e.charCodeAt(t+4)===Mk&&e.charCodeAt(t+5)===ar&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===ar&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):s===Ya||s===70?t+6<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Vf&&e.charCodeAt(t+3)===ar&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(s===Ba||s===87)&&t+4<=r&&e.charCodeAt(t+1)===Ba&&e.charCodeAt(t+2)===Ba&&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===wa||g===mt||g===Ue)break;o++}for(var c=0,l=0,u=t;u<o;u++){var f=e.charCodeAt(u);f===an?c++:f===ln&&l++}let m=o;for(;m>t+i.length;){let g=e.charCodeAt(m-1);if(g===Hr||g===OP||g===ar||g===pr||g===Yi||g===ln||g===Nt||g===_t||g===qt){if(g===ln){if(c>=l)break;l--}m--}else if(g===Hl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=vt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===vc?m=d:m--}else break}if(m<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>m)&&(k=m),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,m),p=n?`http://${E}`:E;return{node:{type:se.link,target:p,title:void 0,children:[{type:se.text,text:E}]},end:m}}function DI(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<=vt||s>=ze&&s<=$e||s===Hr||s===pr||s===Xr||s===36||s===Uf||s===vc||s===Xa||s===Nt||s===Sa||s===Pt||s===Vr||s===Yi||s===Kn||s===_t||s===it||s===Qa||s===Ut||s===rm||s===qt||s===Me)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Fk)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<=vt||s>=ze&&s<=$e)i++;else if((s===Me||s===_t)&&i>o)i++;else if(s===Hr){if(i===o)break;var u=e.charCodeAt(i-1);if(u===Me||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=vt||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 m=e.charCodeAt(i-1);if(!(m>=Te&&m<=Ne||m>=lt&&m<=vt||m>=ze&&m<=$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 td(e){for(var t=0;t<e.length;t++)if(e[t].type===se.link||"children"in e[t]&&Array.isArray(e[t].children)&&td(e[t].children))return!0;return!1}function Jl(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+=Jl(i.children,t):!t&&i.type===se.image&&(r+=i.alt||"")}return r}function rd(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=hI(r(Jl(n.children,!0)),t)}if("children"in i){var s=i.children;Array.isArray(s)&&rd(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++)rd(o[c],t,r)}}function Da(e){return{type:se.text,text:e}}function FI(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Xr){a++;var i=a<r&&(e.charCodeAt(a)===Lk||e.charCodeAt(a)===qk);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<=Bf||o>=lt&&o<=Ya);if(!c)break;a++}return a===n||a-n>s?-1:a<r&&e.charCodeAt(a)===Hl?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<=vt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===Hl?a+1:-1}function MI(e,t,r,a,i){if(e.charCodeAt(t)!==mt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===pr&&n+1<r&&e.charCodeAt(n+1)===Me&&n+2<r&&e.charCodeAt(n+2)===Me){var o=n+3;if(o<r&&e.charCodeAt(o)===Ue)return{node:{type:se.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Me&&e.charCodeAt(o+1)===Ue)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===Yi){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===pr&&n+1<r){var u=e.charCodeAt(n+1);if(u===It&&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 m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:se.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+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<=vt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=vt||k>=ze&&k<=$e||k===Me)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)===Ue){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<=vt))return null;var y=Sn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||ao(b))return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var p=io.has(w),g=Xf(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var S=wI(e,`</${w}`,g),C=e.slice(y.end,S);if(p){var O=Pr(C);return{node:{type:se.htmlBlock,tag:b,attrs:wn(y.attrs,b,i),b:y.g+y.b,children:[],e:O||void 0,h:e.slice(S,g),text:O,c:!0,a:!1},end:g}}var _=[],x=C.trim();if(x){var{inAnchor:A,inline:N,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var F=x.indexOf(`
|
|
90
90
|
|
|
91
|
-
`)!==-1||/^#{1,6}\s/.test(x);F?(a.inline=!1,_=ha(x,a,i)):_=An(x,0,x.length,a,i),a.inAnchor=A,a.inline=N,a.k=I}return{node:{type:se.htmlBlock,tag:b,attrs:wn(y.attrs,b,i),b:y.b,children:_,text:Pr(C),c:!1,a:!1},end:g}}var
|
|
92
|
-
`,t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}}if(ne)(J||t>K)&&(B.push(Da(J+e.slice(K,t))),J=""),B.push(ne.node),t=ne.end,K=t;else{if(re===Bt&&t+1<r){let we=e.charCodeAt(t+1);if(am(we)&Ai){(J||t>K)&&(B.push(Da(J+e.slice(K,t))),J=""),B.push(Da(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<bc&&!
|
|
93
|
-
`),Q=J===-1?0:J+1,q=K,z=Q,H=0;z<q&&e.charCodeAt(z)===ce&&H<3;)z++,H++;if(z<q){var G=e.charCodeAt(z),te=!1;if(G===Nt||G===Me||G===Sa){var ae=z+1;if(ae>=q||e.charCodeAt(ae)===ce||e.charCodeAt(ae)===de){for(var me=ae;me<q&&(e.charCodeAt(me)===ce||e.charCodeAt(me)===de);)me++;me>=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)===ln)){var Ce=ve+1;if(Ce>=q||e.charCodeAt(Ce)===ce||e.charCodeAt(Ce)===de){for(var Se=Ce;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 An(e,0,e.length,t,r);let Re=[],he=0,je=e.length;if(he===0&&!r.disableFrontmatter&&e.startsWith("---")){let pe=
|
|
91
|
+
`)!==-1||/^#{1,6}\s/.test(x);F?(a.inline=!1,_=ha(x,a,i)):_=An(x,0,x.length,a,i),a.inAnchor=A,a.inline=N,a.k=I}return{node:{type:se.htmlBlock,tag:b,attrs:wn(y.attrs,b,i),b:y.b,children:_,text:Pr(C),c:!1,a:!1},end:g}}var LI=200,As=0;function An(e,t,r,a,i){if(As++,As>LI)return As--,[{type:se.text,text:e.slice(t,r)}];var n=zr;zr=RI();let s=a;if(i.optimizeForStreaming){let re=function(Ke,wt){for(var Ot=1,rt=wt+1;rt<Ke.length;rt++){var bt=Ke.charCodeAt(rt);if(bt===It)Ot++;else if(bt===un&&(Ot--,Ot===0))return rt}return-1},ne=e.slice(t,r),we=ne;for(var o=0,c=0,l=0,u=0,f=0,m=-1,d=-1,h=-1,k=-1,v=-1,y=0;y<ne.length;y++){var b=ne.charCodeAt(y);b===Nt?y+1<ne.length&&ne.charCodeAt(y+1)===Nt?(o++,m=y,y++):(c++,d=y):b===_t?y+1<ne.length&&ne.charCodeAt(y+1)===_t?(l++,h=y,y++):(u++,k=y):b===qt&&y+1<ne.length&&ne.charCodeAt(y+1)===qt&&(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]),o%2===1&&m>=0&&w.push([m,2]),c%2===1&&d>=0&&w.push([d,1]),w.sort((Ke,wt)=>wt[0]-Ke[0]);for(var E=0;E<w.length;E++){var p=w[E][0],g=w[E][1];ne=ne.slice(0,p)+ne.slice(p+g)}let pe=0,tt=-1;for(let Ke=0;Ke<ne.length;Ke++)ne.charCodeAt(Ke)===it&&(pe++,tt=Ke);if(pe%2===1&&tt!==-1){let Ke=!1,wt=-1,Ot=0;for(;Ot<ne.length;)ne.charCodeAt(Ot)===it&&(Ke?(Ke=!1,wt=-1):(wt=Ot,Ke=!0)),Ot++;Ke&&wt!==-1&&(ne=ne.slice(0,wt))}for(var S=!0;S;){S=!1;for(var C=-1,O=-1,_=-1,x=!1,A=0;A<ne.length;A++){var N=ne.charCodeAt(A);if(N===It&&(A===0||ne.charCodeAt(A-1)!==Bt)){var I=A>0&&ne.charCodeAt(A-1)===pr,F=I?A-1:A,$=re(ne,A);if($===-1)C=F,x=I,O=A+1,_=ne.length;else{var Y=$+1;if(Y>=ne.length)C=F,x=I,O=A+1,_=$;else if(ne.charCodeAt(Y)===an){var Z=ne.indexOf(")",Y+1);Z===-1?(C=F,x=I,O=A+1,_=$,A=ne.length):A=Z}else if(ne.charCodeAt(Y)===It){var ie=ne.indexOf("]",Y+1);ie===-1?(C=F,x=I,O=A+1,_=$,A=ne.length):A=ie}else A=$}}}if(C>=0){var P=x?"":ne.slice(O,_);ne=ne.slice(0,C)+P,S=!0}}let De=ne.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(De&&De.index!==void 0){var D=De[0].length-De[2].length,U=D>=2&&De[0].charCodeAt(D-2)===Pt;if(!U){for(var T=!1,R=0,M=0;M<De.index;M++)ne.charCodeAt(M)===it&&R++;if(T=R%2===1,!T){let Ke=De[1];oa(ne,`</${Ke}`,0)===-1&&(ne=ne.slice(0,De.index)+De[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||s.inAnchor?-1:e.indexOf("@",t);for(Q>=r&&(Q=-1);t<r;){let re=e.charCodeAt(t),ne=null;if(re===it){if(ne=AI(e,t,r),!ne){var q=Ea(e,t,r,it);t+=q-1}}else if(re===Nt||re===_t){var z=PI(e,t,r);if(z){if(z.canOpen||z.canClose){(J||t>K)&&(B.push(Da(J+e.slice(K,t))),J="");var H=e.slice(t,t+z.len),G=Da(H);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===qt)ne=OI(e,t,r,s,i);else if(re===Vr)ne=TI(e,t,r,s,i);else if(re===It)t+1<r&&e.charCodeAt(t+1)===Kn&&(ne=NI(e,t,r)),ne||(ne=Gh(e,t,r,s,i));else if(re===pr&&t+1<r&&e.charCodeAt(t+1)===It)ne=Gh(e,t,r,s,i);else if(re===mt)ne=Gk(e,t,r),!(ne||i.disableParsingRawHTML||i.ignoreHTMLBlocks)&&(ne=MI(e,t,r,s,i));else if(re===vc){var te=FI(e,t,r);if(te!==-1){var ae=e.slice(t,te),me=ma(ae);if(me!==ae){J=J+e.slice(K,t)+me,t=te,K=te;continue}}}else if((re===Vl||re===Ba||re===Ya)&&!s.inAnchor&&!i.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==mt)){var ve=t+1<r?e.charCodeAt(t+1):0;(re===Vl&&ve===Ri||re===Ya&&ve===Ri||re===Ba&&ve===Ba)&&(ne=jI(e,t,r,i))}if(!ne&&Q>=0&&Q-t<=64&&!s.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(re>=Te&&re<=Ne||re>=lt&&re<=vt||re>=ze&&re<=$e)&&(ne=DI(e,t,r,i),!ne&&t>=Q&&(Q=e.indexOf("@",t+1),Q>=r&&(Q=-1))),re===ye&&s.k){var Ce=!1,Se=0;if(t>K&&e.charCodeAt(t-1)===Bt)Ce=!0,Se=1;else{for(var Re=0,he=t-1;he>=K&&e.charCodeAt(he)===ce;)Re++,he--;Re>=2&&(Ce=!0,Se=Re)}if(Ce){for((J||t-Se>K)&&(B.push(Da(J+e.slice(K,t-Se))),J=""),B.push({type:se.breakLine}),t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}var je=t>K&&e.charCodeAt(t-1)===ce,Ve=t+1<r&&e.charCodeAt(t+1)===ce;if(je||Ve){for(var be=t;be>K&&e.charCodeAt(be-1)===ce;)be--;for(J+=`${e.slice(K,be)}
|
|
92
|
+
`,t++;t<r&&e.charCodeAt(t)===ce;)t++;K=t;continue}}if(ne)(J||t>K)&&(B.push(Da(J+e.slice(K,t))),J=""),B.push(ne.node),t=ne.end,K=t;else{if(re===Bt&&t+1<r){let we=e.charCodeAt(t+1);if(am(we)&Ai){(J||t>K)&&(B.push(Da(J+e.slice(K,t))),J=""),B.push(Da(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<bc&&!Bk[ee])t++;else break}}}return(J||r>K)&&(B.push(Da(J+e.slice(K,r))),J=""),V.length>0&&II(B,V),zr=n,As--,B}var qI=500;function ha(e,t,r){var a=t.o||0;if(a>qI)return[{type:se.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)===Ut){for(var s=!1,o=n+1;o<i;o++){var c=e.charCodeAt(o);if(c!==ce&&c!==de&&c!==Ut&&c!==ar&&c!==Me){s=!0;break}}for(var l=!1,u=!1,f=0,m=n,d=n-1;d>0;){for(var h=d;h>0&&e.charCodeAt(h-1)!==ye;)h--;if(e.charCodeAt(h)!==Ut)break;m=h;for(var k=!0,v=!1,y=h;y<d;y++){var b=e.charCodeAt(y);if(b===Me)v=!0;else if(b!==ce&&b!==de&&b!==ar&&b!==Ut){k=!1;break}}k&&v?(l=!0,u=!0):u||f++,d=h-1}s?l||(e=e.slice(0,n).trimEnd()):e=l&&f>0?e.slice(0,n).trimEnd():e.slice(0,m).trimEnd()}for(var w=-1,E=-1,p=-1,g=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===mt){for(var C=S+1<e.length?e.charCodeAt(S+1):0,O=C>=Te&&C<=Ne||C>=lt&&C<=vt,_=C===Pt&&S+2<e.length&&(e.charCodeAt(S+2)>=Te&&e.charCodeAt(S+2)<=Ne||e.charCodeAt(S+2)>=lt&&e.charCodeAt(S+2)<=vt),x=C===pr||C===Yi,A=e.length;A>S+1&&e.charCodeAt(A-1)===ye;)A--;var N=S+1>=A;if(O||_||x||N){var I=S+1;if((_||O)&&(I=S+2),O||_)for(;I<e.length;){var F=e.charCodeAt(I);if(F>=Te&&F<=Ne||F>=lt&&F<=vt||F>=ze&&F<=$e)I++;else break}for(var $=O||_?I:S+2;$<e.length&&e.charCodeAt($)!==Ue;)$++;if($>=e.length)w=S,g=!0;else if((O||_)&&e.charCodeAt($-1)!==Pt){for(var Y=!1,Z=$+1;Z<e.length;Z++)if(e.charCodeAt(Z)===mt){Y=!0;break}Y||(w=S,E=I,p=$+1)}}break}if(w>=0){for(var ie=0,P=0;P<w;P++)e.charCodeAt(P)===it&&ie++;if(ie%2===0)if(g)e=e.slice(0,w);else{var D=e.slice(w+1,E);oa(e,`</${D}`,0)===-1&&(e=e.slice(0,w)+e.slice(p))}}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 R=T,M=0;R<U&&e.charCodeAt(R)===ce&&M<3;)R++,M++;if(T>0&&R<U&&yI(e,R,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,H=0;z<q&&e.charCodeAt(z)===ce&&H<3;)z++,H++;if(z<q){var G=e.charCodeAt(z),te=!1;if(G===Nt||G===Me||G===Sa){var ae=z+1;if(ae>=q||e.charCodeAt(ae)===ce||e.charCodeAt(ae)===de){for(var me=ae;me<q&&(e.charCodeAt(me)===ce||e.charCodeAt(me)===de);)me++;me>=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)===ln)){var Ce=ve+1;if(Ce>=q||e.charCodeAt(Ce)===ce||e.charCodeAt(Ce)===de){for(var Se=Ce;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 An(e,0,e.length,t,r);let Re=[],he=0,je=e.length;if(he===0&&!r.disableFrontmatter&&e.startsWith("---")){let pe=jP(e);if(pe!=null&&pe.hasValidYaml){if(r.preserveFrontmatter!==!1){let tt=e.slice(0,pe.endPos).trimEnd();Re.push({type:se.frontmatter,text:tt})}he=pe.endPos}}for(;he<je;){for(var Ve=e.indexOf(`
|
|
94
94
|
`,he),be=Ve<0?je:Ve;he<je&&dr(e,he,be);)he=be<je?be+1:be,he<je&&(Ve=e.indexOf(`
|
|
95
|
-
`,he),be=Ve<0?je:Ve);if(he>=je)break;var ee=e.charCodeAt(he)===Hf;jt(e,he,be);let pe=null;if(Jf=e,Yf=he,Pl=be,!ee&&at>=4&&!t.inHTML)pe=
|
|
96
|
-
`,he);he=we<0?je:we+1}}return t.o=a,Re}function
|
|
95
|
+
`,he),be=Ve<0?je:Ve);if(he>=je)break;var ee=e.charCodeAt(he)===Hf;jt(e,he,be);let pe=null;if(Jf=e,Yf=he,Pl=be,!ee&&at>=4&&!t.inHTML)pe=bI(e,he);else if(!ee){let tt=he+Qe,De=e.charCodeAt(tt);De===Xr?pe=gI(e,he,t,r):De===Ue?pe=kI(e,he,t,r):De===it||De===qt?pe=vI(e,he):De===Me||De===Nt||De===_t?(pe=pa(e,he),!pe&&(pe=zh(e,he,t,r))):De===Sa||De>=ze&&De<=$e?pe=zh(e,he,t,r):De===mt?pe=Kk(e,he,t,r):De===Ut?pe=Uh(e,he,t,r):De===It&&(pe=EI(e,he,t))}if(!pe){for(var re=!1,ne=he;ne<be;ne++)if(e.charCodeAt(ne)===Ut){re=!0;break}re&&(pe=Uh(e,he,t,r))}if(pe||(pe=CI(e,he,t,r)),pe)pe.node.type!==se.refCollection&&Re.push(pe.node),he=pe.end;else{var we=e.indexOf(`
|
|
96
|
+
`,he);he=we<0?je:we+1}}return t.o=a,Re}function zI(e,t,r,a){var i=Sn(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 sm(e,t,r){As=0,e=$P(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=dI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=ha(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=An(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 m=i,d=0;d<m.length;d++)for(var h=m[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,rd(n,t,r.slugify)}return zk(t.refs)?[{type:se.refCollection,refs:t.refs},...n]:n}var nd;try{pi=zn.createElement("div"),nd=pi!=null&&typeof pi=="object"&&"$$typeof"in pi&&typeof pi.$$typeof=="symbol"?pi.$$typeof:Symbol.for("react.transitional.element")}catch{nd=Symbol.for("react.transitional.element")}var pi;function ad(e,t,r){return{$$typeof:nd,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Lr(e,t){var r={key:e};if(t){var a=qk(t);for(var i in a)r[i]=a[i]}return r}var Gh=typeof zn.createContext>"u"?void 0:zn.createContext(void 0);function Jh(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(),ei)}`,e.children.unshift(VP(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?ma(e.lang):"";var l=e.attrs?qk(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(Ei(o)&&Ah(y.tag)){var u=Ch(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...JP(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 p=y.tag.toLowerCase(),g=iI(p),S=y.children,C=S!=null&&S.length>0;if(g){let F=w?b:y.e||"",$=Ei(o)?_h(F):F;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Lr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Lr(r.key,e.attrs),$)}let O=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(C&&!O.test(E)&&Ei(o)&&tI(E))return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(sI(E)){let F=Ei(o)?_h(E):E;var m=Lr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},c(e.tag,m)}let _=nm({slugify:o.slugify,sanitizer:i,tagfilter:!0}),x=UP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(x))return y.children&&y.children.length>0?c(e.tag,Lr(r.key,e.attrs),t(y.children,r)):c(e.tag,Lr(r.key,e.attrs));let A=sm(x,{inline:!1,refs:s,inHTML:!1},_);$k(A);let N=y.tag.toLowerCase(),I=w;if(I&&C)return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(I)return t(A.flatMap(_i),r);var d=KP(A,N);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(_i),k=d.afterClose.flatMap(_i);return ad(zn.Fragment,{children:[c(e.tag,Lr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Lr(r.key,e.attrs),t(A.flatMap(_i),r))}return ao(e.tag)?c(e.tag,Lr(r.key,e.attrs)):c(e.tag,Lr(r.key,e.attrs),e.children?t(e.children,r):"")}case se.htmlSelfClosing:{let y=e;if(Ei(o)&&Ah(y.tag)){var v=Ch(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Lr(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=YP(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,p){return a("td",{key:p,style:y.align[p]===null?{}:{textAlign:y.align[p]}},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 qI=(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],m=(u.renderDepth||0)+1;if(m>2500)return o(f);u.renderDepth=m;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=Jh.bind(null,f[v],c,u,t,r,a,i,n,s);y=e(b,f[v],c,u)}else y=Jh(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 p=0;p<y.length;p++)h.push(y[p]);else h.push(y);k=w}return u.key=d,u.renderDepth=m-1,h};return c},zI=(e,t)=>{let r=Wf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Wf(t,`${e}.component`,e):e};function $I(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||ei,i=r.sanitizer||$n,n=r.createElement,s=zk(r.overrides),o=w=>id(w,{...r,wrapper:null});function c(w){for(var E in w){var p=w[E];if(typeof p=="string"&&p.length>0&&p.charCodeAt(0)===mt&&(rI.test(p)||nI.test(p)||LI(p,0))){var g=o(p.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...p){var g=E||{},S=w;if(s){var C=Wf(r.overrides,`${w}.props`,{});S=zI(w,r.overrides),g={...g,...C,className:QP(g.className,C.className)||void 0}}if(!n){var O=g.key;return O!=null&&delete g.key,p.length===1?g.children=p[0]:p.length>1&&(g.children=p),ad(S,g,O)}return n(S,g,...p)}function u(w,E,...p){return E&&c(E),l(w,E,...p)}let f=nm(r,r.forceInline),m=e[0]&&e[0].type===se.refCollection?e[0].refs:{},d=qI(r.renderRule,l,i,a,m,r,u),h=d(e,{inline:r.forceInline,refs:m}),k=XP(m);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===Kn?w.identifier.slice(1):w.identifier,p=sm(w.footnote,{inline:!0,refs:m},f);return l("div",{id:a(E,ei),key:w.identifier},`${E}: `,d(p,{inline:!0,refs:m}))}))),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,ad(v,b,"outer")}function id(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let s=r.forceInline||!(r.forceBlock||FP.test(n)),o=nm(r,s),c=s?n:WP(n),l=sm(c,{inline:s,refs:i},o);return $I(l,{...r,forceInline:s})}let i={};return a(e)}function UI(e){let t=zn.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 so=({children:e,options:t,...r})=>{if(!(typeof zn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return id(e??"",o)}let a=Gh?zn.useContext(Gh):void 0,i=UI(r),n=zn.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 zn.useMemo(()=>id(s,n),[s,n])};const Gk=Symbol("remove-this-key"),Yh=Symbol("reset");function BI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function VI(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(Le.NewStringDefault)}}function Jk(e){return!!(e!=null&&e[la])}function Xh(e){return Object.keys(e).filter(t=>Jk(e[t]))}function HI(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:m,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=W.useState(!1),{globalFormOptions:E,fields:p}=a,{SchemaField:g}=p,S=Ji(cn(h,E,t.path)),C=W.useCallback((A,N,I,F)=>{let $=A;A===void 0&&y&&($=""),o($,N,I,F)},[o,y]),O=W.useCallback(A=>{h!==A&&w(!0),k(h,A)},[h,k]),_=W.useCallback(A=>{const{target:{value:N}}=A;O(N)},[O]),x=W.useCallback(()=>{v(h)},[h,v]);return j.jsx(g,{name:h,required:m,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:O,onKeyRenameBlur:_,onRemoveProperty:x,onChange:C,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const WI=W.memo(HI);function KI(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:m,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,p=W.useRef(a);p.current=a;const g=W.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=W.useMemo(()=>ke(r,w),[r,w]),C=W.useMemo(()=>g.properties??{},[g.properties]),O=e.childFieldPathId??n,_=W.useRef({previousKey:"",currentKey:void 0}),[x,A]=W.useState(()=>Xh(C)),N=W.useMemo(()=>{const V=new Set(Xh(C));return Object.keys(C).filter(K=>!V.has(K))},[C]),I=S.title??g.title??k??s,F=S.description??g.description,$=no(h,g,o,r),Y=Gi(a);let Z=[];const ie=W.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=ke(r,w);let Q=0,q=V;for(;Ge(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=W.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)yt(V,K,null);else{let J,Q,q;if(Xe(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let H=g.additionalProperties;gt in H&&(H=y.retrieveSchema({[gt]:H[gt]},a),J=H.type,Q=H.const,q=y.getDefaultFormState(H,q)),!J&&(We in H||Fe in H)&&(J="object")}const z=Q??q??VI(b,J);yt(V,K,z)}_.current.previousKey===K&&(_.current.currentKey=K,_.current.previousKey=ie(K,V)),A(J=>[...J,K]),d(V,O.path)},[a,d,b,y,O,ie,g]),D=W.useCallback((V,K)=>{if(V!==K){const J=p.current,Q=ie(K,J),q={...J},z={[V]:Q},H=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...H);p.current=G,V!==_.current.currentKey&&(_.current.previousKey=V),_.current.currentKey=Q,A(te=>te.map(ae=>ae===V?Q:ae)),d(G,O.path)}},[d,O,ie]),U=W.useCallback(V=>{A(K=>K.filter(J=>J!==V)),d(Gk,[...O.path,V])},[d,O]),T=W.useCallback(V=>_.current.currentKey===V?_.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(N),K=x.filter(J=>Object.hasOwn(C,J)&&!V.has(J));Z=vT([...N,...K],S.order)}catch(V){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:b(Le.InvalidObjectField,[s||"root",V.message])})}),j.jsx("pre",{children:JSON.stringify(g)})]})}const R=xe("ObjectFieldTemplate",h,S),M=$?j.jsx(E,{...e,fieldPathId:O,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:F,properties:Z.map(V=>{var z;const K=Jk((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=ke(J).widget==="hidden";return{content:j.jsx(WI,{propertyName:V,required:BI(g,V),schema:oe(g,[Ye,V],{}),uiSchema:J,errorSchema:oe(i,[V]),fieldPathId:O,formData:oe(a,[V]),handleKeyRename:D,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:m,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:M,className:$?"rjsf-optional-object-field":void 0};return j.jsx(R,{...B,onAddProperty:P})}function GI(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:m}=l,d=ke(r,u),h=xe("OptionalDataControlsTemplate",l,d),k=Gi(a);let v,y,b,w;if(i||n)v=mu(c,"Msg"),y=k?void 0:m(Le.OptionalObjectEmptyMsg);else{const E=k?Le.OptionalObjectRemove:Le.OptionalObjectAdd;y=m(E),k?(v=mu(c,"Remove"),w=()=>s(void 0,c.path,o)):(v=mu(c,"Add"),b=()=>{let p=f.getDefaultFormState(t,a,"excludeObjectChildren");p===void 0&&(p=Yr(t)==="array"?[]:{}),s(p,c.path,o)})}return y&&j.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const JI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function YI(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=Yr(e),o=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=JI[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 XI(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:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,p=r[pt],g=W.useCallback((Se,Re,he,je)=>o(Se,Re,he,je||p),[p,o]);if(t[Ed])return j.jsx(E,{...e});const S=bT(t,a,m),C=ke(S,v),O=xe("FieldTemplate",m,C),_=xe("DescriptionFieldTemplate",m,C),x=xe("FieldHelpTemplate",m,C),A=xe("FieldErrorTemplate",m,C),N=h.retrieveSchema(t,i),I=YI(N,C,m),$=!!N.deprecated?C.deprecatedHandling??"label":void 0,Y=!!(C.disabled??e.disabled)||$==="disable",Z=!!(C.readonly??(e.readonly||e.schema.readOnly||N.readOnly)),ie=C.hideError,P=ie===void 0?e.hideError:!!ie,D=!!(C.autofocus??e.autofocus);if(Object.keys(N).length===0)return null;let U=h.getDisplayLabel(N,S,v);const T=C.field&&C.fieldReplacesAnyOrOneOf===!0;let R,M,B={fieldPathId:r};if((We in N||Fe in N)&&!T&&!h.isSelect(N)){N[We]?(R=b,M=N[We].map(he=>h.retrieveSchema(Xe(he)?he:{},i))):N[Fe]&&(R=w,M=N[Fe].map(he=>h.retrieveSchema(Xe(he)?he:{},i)));const Se=no(m,N,f,S),Re=Gi(i);U=U&&(!Se||Re),B={childFieldPathId:r,fieldPathId:cn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=qs(S,["ui:classNames","classNames","ui:style"]);ca in J&&(J[ca]=qs(J[ca],["classNames","style"]));const Q=j.jsx(I,{...e,onChange:g,...B,schema:N,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:D,errorSchema:K,rawErrors:V}),q=r[pt];let z;d?z=s:z=la in N?s:C.title||e.schema.title||N.title||e.title||s,$==="label"&&(z=m.translateString(Le.DeprecatedLabel,[z]));const H=C.description||e.schema.description||N.description||"",{help:G}=C,te=C.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${Yr(N)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),C.classNames&&ae.push(C.classNames);const me=j.jsx(x,{help:G,fieldPathId:r,schema:N,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:m}),ve=P||R&&!h.isSelect(N)?void 0:j.jsx(A,{errors:V,errorSchema:n,fieldPathId:r,schema:N,uiSchema:S,registry:m}),Ce={description:j.jsx(_,{id:Ca(q),description:H,schema:N,uiSchema:S,registry:m}),rawDescription:H,help:me,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:C.style,formData:i,schema:N,uiSchema:S,registry:m};return j.jsx(O,{...Ce,children:j.jsxs(j.Fragment,{children:[Q,R&&j.jsx(R,{name:s,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:N,uiSchema:S})]})})}const ZI=W.memo(XI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?zf(e,t):Je(e,t)});function QI(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:m,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:p}=d,g=E.isSelect(t)?Ja(t,a):void 0;let S=g?"select":"text";b&&mT(t,b,w)&&(S=b);const{widget:C=S,placeholder:O="",title:_,...x}=ke(a),A=E.getDisplayLabel(t,a,p),N=_??v??y??r,I=On(t,C,w),F=W.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return j.jsx(I,{options:{...x,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:N,hideLabel:!A,hideError:k,value:n,onChange:F,onBlur:f,onFocus:m,required:s,disabled:o,readonly:c,autofocus:l,registry:d,placeholder:O,rawErrors:h,htmlName:i.name})}function eR(){return{AnyOfField:vh,ArrayField:VT,BooleanField:HT,CyclicSchemaField:WT,FallbackField:YT,LayoutGridField:tm,LayoutHeaderField:yP,LayoutMultiSchemaField:vP,NumberField:SP,ObjectField:KI,OneOfField:vh,OptionalDataControlsField:GI,SchemaField:ZI,StringField:QI,NullField:bP}}function tR(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,s=ke(n,a.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const c=xe("DescriptionFieldTemplate",a,s);return j.jsx(c,{id:Ca(t),description:r,schema:i,uiSchema:n,registry:a})}function rR(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:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs(j.Fragment,{children:[(i||a)&&j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),(i||a)&&j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:m}),r&&j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:m})]})}function nR(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:s,registry:o,uiSchema:c}=e,l=ke(c),u=xe("ArrayFieldItemButtonsTemplate",o,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${m}px`:0};return j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:h,children:j.jsx(u,{...a,style:f})})})]})}function aR(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:m,title:d}=e,h=ke(n),k=xe("ArrayFieldDescriptionTemplate",u,h),v=xe("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return j.jsxs("fieldset",{className:r,id:i.$id,children:[j.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:m,uiSchema:n,registry:u,optionalDataControl:y?o:void 0}),j.jsx(k,{fieldPathId:i,description:h.description||m.description,schema:m,uiSchema:n,registry:u}),y?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:Rr(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function iR(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,optionalDataControl:o}=e,c=ke(i,s.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=xe("TitleFieldTemplate",s,c);return j.jsx(u,{id:pc(t),title:r,required:n,schema:a,uiSchema:i,registry:s,optionalDataControl:o})}function sR(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?j.jsx("datalist",{id:Yd(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function oR(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:m,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:p}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...iT(d,y,m)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const C=W.useCallback(({target:{value:A}})=>u(A===""?m.emptyValue:A),[u,m]),O=W.useCallback(({target:A})=>c(t,A==null?void 0:A.value),[c,t]),_=W.useCallback(({target:A})=>l(t,A==null?void 0:A.value),[l,t]),x=W.useCallback(A=>{A.preventDefault(),A.stopPropagation(),u(m.emptyValue??"")},[u,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...g,list:d.examples?Yd(t):void 0,onChange:f||C,onBlur:O,onFocus:_,"aria-describedby":dn(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(p,{registry:k,onClick:x}),j.jsx(sR,{id:t,schema:d})]})}function lR(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const xa=W.memo(lR);function cR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.CopyButton),...e,icon:"copy"})}const uR=W.memo(cR);function fR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveDownButton),...e,icon:"arrow-down"})}const dR=W.memo(fR);function mR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveUpButton),...e,icon:"arrow-up"})}const pR=W.memo(mR);function hR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.RemoveButton),...e,iconType:"danger",icon:"remove"})}const gR=W.memo(hR);function yR({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:s}=i;return j.jsx(xa,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Le.ClearButton),onClick:r,disabled:a,registry:i,...n})}const vR=W.memo(yR);function bR({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return j.jsx("div",{className:"row",children:j.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:j.jsx(xa,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Le.AddButton),onClick:r,disabled:a,registry:i})})})}function kR({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=xk(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function wR(){return{SubmitButton:kR,AddButton:bR,CopyButton:uR,MoveDownButton:dR,MoveUpButton:pR,RemoveButton:gR,ClearButton:vR}}function SR(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,s=`${r[pt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(Le.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[pt]),children:n(Le.ExpandButton)})," "]})]})}const Yk=Gd();function Xk({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInDescription&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Yk.markdown,children:e}):e}Xk.TEST_IDS=Yk;function ER(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(Xk,{description:r,registry:a,uiSchema:i})}):null}function xR({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(Le.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((a,i)=>j.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function CR(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=xe("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function AR(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=Jd(r);return j.jsx("div",{children:j.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>j.jsx("li",{className:"text-danger",children:i},n))})})}const Zk=Gd();function Qk({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInHelp&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Zk.markdown,children:e}):e}Qk.TEST_IDS=Zk;function _R(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?j.jsx("div",{id:Xd(t),className:"help-block",children:j.jsx(Qk,{help:r,registry:i,uiSchema:a})}):null}const OR="*";function e0(e){const{label:t,required:r,id:a}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&j.jsx("span",{className:"required",children:OR})]}):null}function TR(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,m=ke(f),d=xe("WrapIfAdditionalTemplate",u,m);if(o)return j.jsx("div",{className:"hidden",children:a});const h=m.widget==="checkbox";return j.jsxs(d,{...e,children:[l&&!h&&j.jsx(e0,{label:r,required:c,id:t}),l&&s?s:null,a,i,n]})}function PR(e){const{children:t,column:r,className:a,...i}=e;return j.jsx("div",{className:a,...i,children:t})}function IR(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function RR(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:m,title:d,uiSchema:h}=e,k=ke(h),v=xe("TitleFieldTemplate",u,k),y=xe("DescriptionFieldTemplate",u,k);if((m.oneOf||m.anyOf)&&!m.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:pc(n),title:d,required:f,schema:m,uiSchema:h,registry:u,optionalDataControl:w?o:void 0}),r&&j.jsx(y,{id:Ca(n),description:r,schema:m,uiSchema:h,registry:u}),w?void 0:o,c.map(p=>p.content),rb(m,h,i)&&j.jsx(E,{id:Rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:a||l,uiSchema:h,registry:u})]})}function NR(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?j.jsx(xa,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?j.jsx(xa,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):j.jsx("em",{id:t,children:a})}const jR="*";function DR(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return j.jsxs("legend",{id:t,children:[r,a&&j.jsx("span",{className:"required",children:jR}),i&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function FR(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let s=Le.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Le.UnsupportedFieldWithId,o.push(r.$id)),a&&(s=s===Le.UnsupportedField?Le.UnsupportedFieldWithReason:Le.UnsupportedFieldWithIdAndReason,o.push(a)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function MR(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:m,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,p=w(Le.KeyLabel,[s]),g=la in m,S=!!l,C=["form-group",r];!d&&h&&h.length>0&&C.push("has-error has-danger");const O=C.join(" ").trim();if(!g)return j.jsx("div",{className:O,style:a,children:k});const _=S?46:26;return j.jsx("div",{className:O,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(e0,{label:p,required:f,id:`${t}-key`}),n&&l&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${_}px`:void 0},children:j.jsx(E,{id:Rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function LR(){return{ArrayFieldDescriptionTemplate:tR,ArrayFieldItemTemplate:nR,ArrayFieldItemButtonsTemplate:rR,ArrayFieldTemplate:aR,ArrayFieldTitleTemplate:iR,ButtonTemplates:wR(),BaseInputTemplate:oR,CyclicSchemaExpandTemplate:SR,DescriptionFieldTemplate:ER,ErrorListTemplate:xR,FallbackFieldTemplate:CR,FieldTemplate:TR,FieldErrorTemplate:AR,FieldHelpTemplate:_R,GridTemplate:PR,MultiSchemaFieldTemplate:IR,ObjectFieldTemplate:RR,OptionalDataControlsTemplate:NR,TitleFieldTemplate:DR,UnsupportedFieldTemplate:FR,WrapIfAdditionalTemplate:MR}}function qR({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function zR(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:m,handleClear:d,handleSetNow:h}=CT(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(xT,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Le.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Le.ClearLabel)})})]})}function $R({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:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>o(e,on(b==null?void 0:b.value,f,h,d)),[o,e,f,d,h]),y=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=t||p||n?"disabled":"",S=O=>{O.target.checked?s(Sk(w,k,f)):s(kk(w,k,f))},C=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:hc(e,w),name:l||e,checked:E,value:to(b.value,w,h),disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("span",{children:b.label})]});return u?j.jsx("label",{className:`checkbox-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`checkbox ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function UR({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:m,registry:d,htmlName:h}){const k=xe("DescriptionFieldTemplate",d,r),v=Ps(e),y=W.useCallback(S=>m(S.target.checked),[m]),b=W.useCallback(S=>u(a,S.target.checked),[u,a]),w=W.useCallback(S=>f(a,S.target.checked),[f,a]),g=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!c&&g&&j.jsx(k,{id:Ca(a),description:g,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.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":dn(a)}),hT(j.jsx("span",{children:o}),c)]})]})}function BR(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"color",...e,disabled:t||r})}function VR(e){const{onChange:t,value:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"datetime-local",...e,value:PT(r),onChange:s=>t(gT(s))})}function HR(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s||void 0),[t]);return j.jsx(i,{type:"date",...e,onChange:n})}function WR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"email",...e})}function KR({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const s=r(Le.PreviewLabel);return["image/jpeg","image/png"].includes(i)?j.jsx("img",{src:a,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:s})]})}function GR({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=xe("ButtonTemplates",t,i);return j.jsx("ul",{className:"file-info",children:e.map((o,c)=>{const{name:l,size:u,type:f}=o,m=()=>a(c);return j.jsxs("li",{children:[j.jsx(so,{children:n(Le.FilesInfo,[l,f,String(u)])}),r&&j.jsx(KR,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},c)})})}function JR(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}=TT(s,n,i),m=xe("BaseInputTemplate",c,o),d=h=>{h.target.files&&u(h.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:a,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(GR,{filesInfo:l,onRemove:f,registry:c,preview:o.filePreview,options:o})]})}function YR({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function XR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"password",...e})}function ZR({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:m,inline:d,emptyValue:h}=e,k=ro(e),v=W.useCallback(({target:b})=>s(l,on(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]),y=W.useCallback(({target:b})=>o(l,on(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]);return j.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,t),p=Array.isArray(m)&&m.includes(b.value),g=a||p||i?"disabled":"",S=()=>c(b.value),C=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:hc(l,w),checked:E,name:u||l,required:r,value:to(b.value,w,k),disabled:a||p||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(l)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`radio ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function QR(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function eN({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:m=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(m,1),5),k=l.minimum||0,v=W.useCallback(E=>{!a&&!i&&s(E)},[s,a,i]),y=W.useCallback(E=>{if(o){const p=Number(E.target.dataset.value);o(e,p)}},[o,e]),b=W.useCallback(E=>{if(c){const p=Number(E.target.dataset.value);c(e,p)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,p)=>{const g=k+p,S=g<=t;return j.jsx("span",{onClick:()=>v(g),onKeyDown:C=>(C.key==="Enter"||C.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)},p)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function wu(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function tN({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:m,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=o?[]:"",E=ro(r),p=W.useCallback(_=>{const x=wu(_,o);return f(t,on(x,v,E,b))},[f,t,o,v,b,E]),g=W.useCallback(_=>{const x=wu(_,o);return u(t,on(x,v,E,b))},[u,t,o,v,b,E]),S=W.useCallback(_=>{const x=wu(_,o);return l(on(x,v,E,b))},[l,o,v,b,E]),C=JO(a,v,o,E,w),O=!o&&e.default===void 0;return yT(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(kT,{id:t,multiple:o,options:r,registry:h,uiSchema:k,value:a}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:C,required:i,disabled:n||s,autoFocus:c,onBlur:g,onFocus:p,onChange:S,"aria-describedby":dn(t),children:[O&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:_,label:x},A)=>{const N=y&&y.includes(_);return j.jsx("option",{value:to(_,A,E),disabled:N,children:x},String(_))})]})]})}function rN({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 m=W.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=W.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=W.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return j.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:m,"aria-describedby":dn(e)})}function nN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{...e})}function aN(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(i,{type:"time",...e,onChange:n})}function iN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"number",...e})}function sN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"url",...e})}function oN(){return{AltDateWidget:zR,AltDateTimeWidget:qR,CheckboxWidget:UR,CheckboxesWidget:$R,ColorWidget:BR,DateWidget:HR,DateTimeWidget:VR,EmailWidget:WR,FileWidget:JR,HiddenWidget:YR,PasswordWidget:XR,RadioWidget:ZR,RangeWidget:QR,RatingWidget:eN,SelectWidget:tN,TextWidget:nN,TextareaWidget:rN,TimeWidget:aN,UpDownWidget:iN,URLWidget:sN}}function lN(){return{fields:eR(),templates:LR(),widgets:oN(),rootSchema:{},formContext:{},translateString:GO,globalFormOptions:{idPrefix:Zv,idSeparator:Qv,useFallbackUiForUnsupportedType:!1}}}function hi(e,t){return{...gk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let cN=class $a extends W.Component{constructor(r){super(r);lr(this,"formElement");lr(this,"pendingChanges",[]);lr(this,"isProcessingUserChange",!1);lr(this,"getUsedFormData",(r,a)=>LO(r,a));lr(this,"getFieldNames",(r,a)=>qO(r,a));lr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});lr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),s=cn("",i.globalFormOptions,n);this.onChange(a,n,void 0,s[pt])});lr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});lr(this,"reset",()=>{const{formData:r,initialFormData:a=Yh,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(hi({...this.state,...o})))});lr(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,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(u),m={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);m={formData:f,...w,customErrors:y}}const d=Object.keys(m).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=oe(this.state,h),v=oe(m,h);return!Je(k,v)});this.setState(m,()=>{c&&d&&c(hi({...this.state,...m}),r)})}});lr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});lr(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?Qd(i):[];this.setState({formData:o,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(hi({...this.state,formData:o},"submitted"),r)})}});lr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});lr(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?$a.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&&!Je(this.state.formData,s)&&n(hi(this.state)),this.formElement=W.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}=Cs(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:s}=Cs({errors:n,errorSchema:s},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,a){if(!Je(this.props,r)){const i=ah(this.props.formData,r.formData),n=ah(this.props.formData,this.state.formData),s=!Je(r.schema,this.props.schema),o=i.length>0||!Je(r.formData,this.props.formData),c=n.length>0||!Je(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=!Je(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,s=!Je(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Je(n.formData,a.formData)&&this.props.onChange&&this.props.onChange(hi(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,m=("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=HO(f,u,y,b));const E=w.getRootSchema();let p=a;a===Yh?p=void 0:a===void 0&&d&&(p=l.formData);let g,S,C=!1;const O=[];do{g=w.getDefaultFormState(E,p,!1,l.initialDefaultsGenerated);const P=c?Br({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!O.includes(P)&&!Je(S,l.retrievedSchema)){const D=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(C=!Je(D,g),C){g=D,p=D;const U=Br({formData:D});C=!O.includes(U),O.push(U)}O.push(P)}else C=!1}while(C);const _=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let x,A,{schemaValidationErrors:N,schemaValidationErrorSchema:I}=l;if(v&&!o){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);x=P.errors,A=P.errorSchema,N=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=_();if(x=P.errors,A=P.errorSchema,s.length>0&&!v){const U=s.reduce((T,R)=>(T[R]=void 0,T),{});I=ka(P.errorSchema,U,"preventDuplicates"),A=I}const D=$a.mergeErrors({errorSchema:A,errors:x},r.extraErrors,l.customErrors);x=D.errors,A=D.errorSchema}const F=$a.getRegistry(r,E,w),$=Je(l.registry,F)?l.registry:F,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[pt])===$.globalFormOptions.idPrefix?l.fieldPathId:cn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:m,fieldPathId:Y,formData:g,edit:h,errors:x,errorSchema:A,schemaValidationErrors:N,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return wT(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=ke(s),c=xe("ErrorListTemplate",r,o);return a!=null&&a.length?j.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=Cs(r,a);n=o.errorSchema,s=o.errors}if(i){const o=Cs({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:m}=u;l&&(m=ka(i,u.errorSchema,"preventDuplicates"));const d=f,h=m;return{...$a.mergeErrors({errorSchema:m,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:m,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:p}=this.state,g=b;const S=y.path[0]||"",C=!a||a.length===0||a.length===1&&a[0]===S;let O=C?r:Bl(h);const _=Ae(O)&&Object.keys(O).length>0&&Object.values(O).every($=>$===void 0),x=h==null,A=_&&x?void 0:O;if(Ae(O)||Array.isArray(O)){let $=!1;if(r===Gk)jT(O,a);else if(!C){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:D}=k.findFieldInSchema(v,a,h),U=D;!(U&&(Fe in U||We in U))&&U!==void 0&&($=!0)}$?yt(O,a,void 0):yt(O,a,ie)}const Y=p&&!C&&!Ae(r)&&!Array.isArray(r)&&!m&&!d,Z=this.getStateFromProps(this.props,A,void 0,void 0,void 0,!0,Y);O=Z.formData,p=Z.retrievedSchema,$&&O&&yt(O,a,void 0)}const N=!l&&(u===!0||u==="onChange");let I={formData:O,retrievedSchema:p},F=O;if(o===!0&&(c===!0||c==="onChange")&&(F=this.omitExtraData(O),I={...I,formData:F}),n){const $=C?b:oe(b,a);if(!Rt($))C?g=n:(g=Bl(b),yt(g,a,n));else if(E||(E=new Ek),C){const Y=oe(n,Zt);Y&&E.setErrors(Y)}else yt(E.ErrorSchema,a,n)}else E&&oe(E.ErrorSchema,[...a,Zt])&&E.clearErrors(a);if(N&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,F,s,E,p);I={...I,formData:F,...$,customErrors:E}}else if(!l&&n){const $=$a.mergeErrors({errorSchema:g,errors:w},s,E);I={...I,formData:F,...$,customErrors:E}}this.setState(I,()=>{f&&f(hi({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Je(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=Qv,idPrefix:s=Zv,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 m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:c,widgets:l,formContext:u,translateString:f}=lN();return{fields:{...o,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:s[Of],globalFormOptions:$a.getGlobalFormOptions(r),uiSchemaDefinitions:s[rS]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,s=Ok(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:m,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:p,fieldPathId:g,registry:S}=this.state,{SchemaField:C}=S.fields,{SubmitButton:O}=S.templates.ButtonTemplates,_=y?n:void 0,x=y||n||"form";let{[Ml]:A={}}=ke(w);h&&(A={...A,props:{...A.props,disabled:!0}});const N={[ca]:{[Ml]:A}};return j.jsxs(x,{className:i||"rjsf",id:a,name:s,method:o,target:c,action:l,autoComplete:u,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(C,{name:"",schema:b,uiSchema:w,errorSchema:p,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||j.jsx(O,{uiSchema:N,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function uN(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(`/${We}/`):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 fN(e=[],t,r,a){const i=e.map(n=>{var s;const{instancePath:o,keyword:c,params:l,schemaPath:u,parentSchema:f,...m}=n;let{message:d=""}=m,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=ke(oe(t,w.replace(/^\./,""))).title;if(E===void 0){const p=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=ke(oe(t,p)).title}if(E===void 0){const p=h.replace(/^\./,"").split(".").filter(Boolean);E=oe(t,[...p,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const p=oe(f,[Ye,b,"title"]);if(p)d=d.replace(`'${b}'`,`'${p}'`),v=p;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const O of g)S.push(Ye,O);S.push(Ye,b,"title");const C=oe(a,S);C&&(d=d.replace(`'${b}'`,`'${C}'`),v=C)}}}),k=d;else{const b=ke(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 uN(i,r)}function dN(e,t,r,a,i,n,s,o){const{validationError:c}=t;let l=fN(t.errors,s,o,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,s));let u=ST(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=dk(e,a,r,a,!0),m=i(f,Tf(f),s,u),d=Tk(m);return Cs({errors:l,errorSchema:u},d)}var Ro={exports:{}},Su={},Mn={},Fa={},Eu={},xu={},Cu={},Zh;function Yl(){return Zh||(Zh=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 m(y){return new a(d(y))}e.stringify=m;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})(Cu)),Cu}var Au={},Qh;function eg(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Yl();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 m=this.toName(l),{prefix:d}=m,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,m);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,m.setValue(u,{property:d,itemIndex:y}),m}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,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,f)}_reduceValues(l,u,f={},m){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=m==null?void 0:m(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=o})(Au)),Au}var tg;function Be(){return tg||(tg=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=Yl(),r=eg();var a=Yl();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=eg();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(R,M){return this}}class s extends n{constructor(R,M,B){super(),this.varKind=R,this.name=M,this.rhs=B}render({es5:R,_n:M}){const B=R?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+M}optimizeNames(R,M){if(R[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,R,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(R,M,B){super(),this.lhs=R,this.rhs=M,this.sideEffects=B}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,M){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,R,M),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return N(R,this.rhs)}}class c extends o{constructor(R,M,B,V){super(R,B,V),this.op=M}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class l extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class u extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends n{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m extends n{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,M){return this.code=I(this.code,R,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((M,B)=>M+B.render(R),"")}optimizeNodes(){const{nodes:R}=this;let M=R.length;for(;M--;){const B=R[M].optimizeNodes();Array.isArray(B)?R.splice(M,1,...B):B?R[M]=B:R.splice(M,1)}return R.length>0?this:void 0}optimizeNames(R,M){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(R,M)||(F(R,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((R,M)=>A(R,M.names),{})}}class h extends d{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(R,M){super(M),this.condition=R}render(R){let M=`if(${this.condition})`+super.render(R);return this.else&&(M+="else "+this.else.render(R)),M}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let M=this.else;if(M){const B=M.optimizeNodes();M=this.else=Array.isArray(B)?new v(B):B}if(M)return R===!1?M instanceof y?M:M.nodes:this.nodes.length?this:new y($(R),M instanceof y?[M]:M.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,M){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(R,M),!!(super.optimizeNames(R,M)||this.else))return this.condition=I(this.condition,R,M),this}get names(){const R=super.names;return N(R,this.condition),this.else&&A(R,this.else.names),R}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iteration=I(this.iteration,R,M),this}get names(){return A(super.names,this.iteration.names)}}class E extends b{constructor(R,M,B,V){super(),this.varKind=R,this.name=M,this.from=B,this.to=V}render(R){const M=R.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${M} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(R)}get names(){const R=N(super.names,this.from);return N(R,this.to)}}class p extends b{constructor(R,M,B,V){super(),this.loop=R,this.varKind=M,this.name=B,this.iterable=V}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iterable=I(this.iterable,R,M),this}get names(){return A(super.names,this.iterable.names)}}class g extends h{constructor(R,M,B){super(),this.name=R,this.args=M,this.async=B}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}g.kind="func";class S extends d{render(R){return"return "+super.render(R)}}S.kind="return";class C extends h{render(R){let M="try"+super.render(R);return this.catch&&(M+=this.catch.render(R)),this.finally&&(M+=this.finally.render(R)),M}optimizeNodes(){var R,M;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(R,M){var B,V;return super.optimizeNames(R,M),(B=this.catch)===null||B===void 0||B.optimizeNames(R,M),(V=this.finally)===null||V===void 0||V.optimizeNames(R,M),this}get names(){const R=super.names;return this.catch&&A(R,this.catch.names),this.finally&&A(R,this.finally.names),R}}class O extends h{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}O.kind="catch";class _ extends h{render(R){return"finally"+super.render(R)}}_.kind="finally";class x{constructor(R,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
|
|
99
|
-
`:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,M){const B=this._extScope.value(R,M);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(R,M){return this._extScope.getValue(R,M)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,M,B,V){const K=this._scope.toName(M);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new s(R,K,B)),K}const(R,M,B){return this._def(r.varKinds.const,R,M,B)}let(R,M,B){return this._def(r.varKinds.let,R,M,B)}var(R,M,B){return this._def(r.varKinds.var,R,M,B)}assign(R,M,B){return this._leafNode(new o(R,M,B))}add(R,M){return this._leafNode(new c(R,e.operators.ADD,M))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){const M=["{"];for(const[B,V]of R)M.length>1&&M.push(","),M.push(B),(B!==V||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,V));return M.push("}"),new t._Code(M)}if(R,M,B){if(this._blockNode(new y(R)),M&&B)this.code(M).else().code(B).endIf();else if(M)this.code(M).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new y(R))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(R,M){return this._blockNode(R),M&&this.code(M).endFor(),this}for(R,M){return this._for(new w(R),M)}forRange(R,M,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(R);return this._for(new E(K,J,M,B),()=>V(J))}forOf(R,M,B,V=r.varKinds.const){const K=this._scope.toName(R);if(this.opts.es5){const J=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new p("of",V,K,M),()=>B(K))}forIn(R,M,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${M})`,B);const K=this._scope.toName(R);return this._for(new p("in",V,K,M),()=>B(K))}endFor(){return this._endBlockNode(b)}label(R){return this._leafNode(new l(R))}break(R){return this._leafNode(new u(R))}return(R){const M=new S;if(this._blockNode(M),this.code(R),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,M,B){if(!M&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new C;if(this._blockNode(V),this.code(R),M){const K=this.name("e");this._currNode=V.catch=new O(K),M(K)}return B&&(this._currNode=V.finally=new _,this.code(B)),this._endBlockNode(O,_)}throw(R){return this._leafNode(new f(R))}block(R,M){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(M),this}endBlock(R){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-M;if(B<0||R!==void 0&&B!==R)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${R} expected`);return this._nodes.length=M,this}func(R,M=t.nil,B,V){return this._blockNode(new g(R,M,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,M){const B=this._currNode;if(B instanceof R||M&&B instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${R.kind}/${M.kind}`:R.kind}"`)}_elseNode(R){const M=this._currNode;if(!(M instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const M=this._nodes;M[M.length-1]=R}}e.CodeGen=x;function A(T,R){for(const M in R)T[M]=(T[M]||0)+(R[M]||0);return T}function N(T,R){return R instanceof t._CodeOrName?A(T,R.names):T}function I(T,R,M){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=M[K.str];return J===void 0||R[K.str]!==1?K:(delete R[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&R[J.str]===1&&M[J.str]!==void 0)}}function F(T,R){for(const M in R)T[M]=(T[M]||0)-(R[M]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=D(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=D(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function D(T){return(R,M)=>R===t.nil?M:M===t.nil?R:(0,t._)`${U(R)} ${T} ${U(M)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(xu)),xu}var qe={},rg;function et(){if(rg)return qe;rg=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=Be(),t=Yl();function r(p){const g={};for(const S of p)g[S]=!0;return g}qe.toHash=r;function a(p,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(p,g),!n(g,p.self.RULES.all))}qe.alwaysValidSchema=a;function i(p,g=p.schema){const{opts:S,self:C}=p;if(!S.strictSchema||typeof g=="boolean")return;const O=C.RULES.keywords;for(const _ in g)O[_]||E(p,`unknown keyword: "${_}"`)}qe.checkUnknownRules=i;function n(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(g[S])return!0;return!1}qe.schemaHasRules=n;function s(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(S!=="$ref"&&g.all[S])return!0;return!1}qe.schemaHasRulesButRef=s;function o({topSchemaRef:p,schemaPath:g},S,C,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${p}${g}${(0,e.getProperty)(C)}`}qe.schemaRefOrVal=o;function c(p){return f(decodeURIComponent(p))}qe.unescapeFragment=c;function l(p){return encodeURIComponent(u(p))}qe.escapeFragment=l;function u(p){return typeof p=="number"?`${p}`:p.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=u;function f(p){return p.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=f;function m(p,g){if(Array.isArray(p))for(const S of p)g(S);else g(p)}qe.eachItem=m;function d({mergeNames:p,mergeToName:g,mergeValues:S,resultToName:C}){return(O,_,x,A)=>{const N=x===void 0?_:x instanceof e.Name?(_ instanceof e.Name?p(O,_,x):g(O,_,x),x):_ instanceof e.Name?(g(O,x,_),_):S(_,x);return A===e.Name&&!(N instanceof e.Name)?C(O,N):N}}qe.mergeEvaluated={props:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{p.if((0,e._)`${g} === true`,()=>p.assign(S,!0),()=>p.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>{g===!0?p.assign(S,!0):(p.assign(S,(0,e._)`${S} || {}`),k(p,S,g))}),mergeValues:(p,g)=>p===!0?!0:{...p,...g},resultToName:h}),items:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>p.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>p.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(p,g)=>p===!0?!0:Math.max(p,g),resultToName:(p,g)=>p.var("items",g)})};function h(p,g){if(g===!0)return p.var("props",!0);const S=p.var("props",(0,e._)`{}`);return g!==void 0&&k(p,S,g),S}qe.evaluatedPropsToName=h;function k(p,g,S){Object.keys(S).forEach(C=>p.assign((0,e._)`${g}${(0,e.getProperty)(C)}`,!0))}qe.setEvaluated=k;const v={};function y(p,g){return p.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}qe.useFunc=y;var b;(function(p){p[p.Num=0]="Num",p[p.Str=1]="Str"})(b||(qe.Type=b={}));function w(p,g,S){if(p instanceof e.Name){const C=g===b.Num;return S?C?(0,e._)`"[" + ${p} + "]"`:(0,e._)`"['" + ${p} + "']"`:C?(0,e._)`"/" + ${p}`:(0,e._)`"/" + ${p}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(p).toString():"/"+u(p)}qe.getErrorPath=w;function E(p,g,S=p.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);p.self.logger.warn(g)}}return qe.checkStrictMode=E,qe}var No={},ng;function Aa(){if(ng)return No;ng=1,Object.defineProperty(No,"__esModule",{value:!0});const e=Be(),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 No.default=t,No}var ag;function kc(){return ag||(ag=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=Be(),r=et(),a=Aa();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:p,compositeRule:g,allErrors:S}=E,C=f(v,y,b);w??(g||S)?c(p,C):l(E,(0,t._)`[${C}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:p,allErrors:g}=w,S=f(v,y,b);c(E,S),p||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:p}){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,p.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${p.errSchemaPath}/${y}`),p.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._)`{}`:m(v,y,b)}function m(v,y,b={}){const{gen:w,it:E}=v,p=[d(E,b),h(v,b)];return k(v,y,p),w.object(...p)}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:p,schemaValue:g,it:S}=v,{opts:C,propertyName:O,topSchemaRef:_,schemaPath:x}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),C.messages&&w.push([u.message,typeof b=="function"?b(v):b]),C.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${_}${x}`],[a.default.data,p]),O&&w.push([u.propertyName,O])}})(Eu)),Eu}var ig;function mN(){if(ig)return Fa;ig=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.boolOrEmptySchema=Fa.topBoolOrEmptySchema=void 0;const e=kc(),t=Be(),r=Aa(),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))}Fa.topBoolOrEmptySchema=i;function n(o,c){const{gen:l,schema:u}=o;u===!1?(l.var(c,!1),s(o)):l.var(c,!0)}Fa.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 Fa}var Xt={},Ma={},sg;function t0(){if(sg)return Ma;sg=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.getRules=Ma.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)}Ma.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 Ma.getRules=a,Ma}var Ln={},og;function r0(){if(og)return Ln;og=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const s=i.RULES.types[n];return s&&s!==!0&&t(a,s)}Ln.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Ln.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 Ln.shouldUseRule=r,Ln}var lg;function Xl(){if(lg)return Xt;lg=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;const e=t0(),t=r0(),r=kc(),a=Be(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Xt.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}Xt.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(","))}Xt.getJSONTypes=o;function c(b,w){const{gen:E,data:p,opts:g}=b,S=u(w,g.coerceTypes),C=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(C){const O=h(w,p,g.strictNumbers,n.Wrong);E.if(O,()=>{S.length?f(b,w,S):v(b)})}return C}Xt.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:p,data:g,opts:S}=b,C=p.let("dataType",(0,a._)`typeof ${g}`),O=p.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&p.if((0,a._)`${C} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>p.assign(g,(0,a._)`${g}[0]`).assign(C,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>p.assign(O,g))),p.if((0,a._)`${O} !== undefined`);for(const x of E)(l.has(x)||x==="array"&&S.coerceTypes==="array")&&_(x);p.else(),v(b),p.endIf(),p.if((0,a._)`${O} !== undefined`,()=>{p.assign(g,O),m(b,O)});function _(x){switch(x){case"string":p.elseIf((0,a._)`${C} == "number" || ${C} == "boolean"`).assign(O,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(O,(0,a._)`""`);return;case"number":p.elseIf((0,a._)`${C} == "boolean" || ${g} === null
|
|
98
|
+
`),endPos:i.end}:null}function sm(e,t,r){As=0,e=BP(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=pI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=ha(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=An(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 m=i,d=0;d<m.length;d++)for(var h=m[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,rd(n,t,r.slugify)}return $k(t.refs)?[{type:se.refCollection,refs:t.refs},...n]:n}var nd;try{pi=zn.createElement("div"),nd=pi!=null&&typeof pi=="object"&&"$$typeof"in pi&&typeof pi.$$typeof=="symbol"?pi.$$typeof:Symbol.for("react.transitional.element")}catch{nd=Symbol.for("react.transitional.element")}var pi;function ad(e,t,r){return{$$typeof:nd,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Lr(e,t){var r={key:e};if(t){var a=zk(t);for(var i in a)r[i]=a[i]}return r}var Jh=typeof zn.createContext>"u"?void 0:zn.createContext(void 0);function Yh(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(),ei)}`,e.children.unshift(WP(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?ma(e.lang):"";var l=e.attrs?zk(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(Ei(o)&&_h(y.tag)){var u=Ah(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...XP(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 p=y.tag.toLowerCase(),g=oI(p),S=y.children,C=S!=null&&S.length>0;if(g){let F=w?b:y.e||"",$=Ei(o)?Oh(F):F;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Lr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Lr(r.key,e.attrs),$)}let O=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(C&&!O.test(E)&&Ei(o)&&nI(E))return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(lI(E)){let F=Ei(o)?Oh(E):E;var m=Lr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},c(e.tag,m)}let _=nm({slugify:o.slugify,sanitizer:i,tagfilter:!0}),x=VP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(x))return y.children&&y.children.length>0?c(e.tag,Lr(r.key,e.attrs),t(y.children,r)):c(e.tag,Lr(r.key,e.attrs));let A=sm(x,{inline:!1,refs:s,inHTML:!1},_);Uk(A);let N=y.tag.toLowerCase(),I=w;if(I&&C)return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(I)return t(A.flatMap(_i),r);var d=JP(A,N);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(_i),k=d.afterClose.flatMap(_i);return ad(zn.Fragment,{children:[c(e.tag,Lr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Lr(r.key,e.attrs),t(A.flatMap(_i),r))}return ao(e.tag)?c(e.tag,Lr(r.key,e.attrs)):c(e.tag,Lr(r.key,e.attrs),e.children?t(e.children,r):"")}case se.htmlSelfClosing:{let y=e;if(Ei(o)&&_h(y.tag)){var v=Ah(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Lr(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=ZP(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,p){return a("td",{key:p,style:y.align[p]===null?{}:{textAlign:y.align[p]}},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 $I=(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],m=(u.renderDepth||0)+1;if(m>2500)return o(f);u.renderDepth=m;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=Yh.bind(null,f[v],c,u,t,r,a,i,n,s);y=e(b,f[v],c,u)}else y=Yh(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 p=0;p<y.length;p++)h.push(y[p]);else h.push(y);k=w}return u.key=d,u.renderDepth=m-1,h};return c},UI=(e,t)=>{let r=Wf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Wf(t,`${e}.component`,e):e};function BI(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||ei,i=r.sanitizer||$n,n=r.createElement,s=$k(r.overrides),o=w=>id(w,{...r,wrapper:null});function c(w){for(var E in w){var p=w[E];if(typeof p=="string"&&p.length>0&&p.charCodeAt(0)===mt&&(aI.test(p)||iI.test(p)||zI(p,0))){var g=o(p.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...p){var g=E||{},S=w;if(s){var C=Wf(r.overrides,`${w}.props`,{});S=UI(w,r.overrides),g={...g,...C,className:tI(g.className,C.className)||void 0}}if(!n){var O=g.key;return O!=null&&delete g.key,p.length===1?g.children=p[0]:p.length>1&&(g.children=p),ad(S,g,O)}return n(S,g,...p)}function u(w,E,...p){return E&&c(E),l(w,E,...p)}let f=nm(r,r.forceInline),m=e[0]&&e[0].type===se.refCollection?e[0].refs:{},d=$I(r.renderRule,l,i,a,m,r,u),h=d(e,{inline:r.forceInline,refs:m}),k=QP(m);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===Kn?w.identifier.slice(1):w.identifier,p=sm(w.footnote,{inline:!0,refs:m},f);return l("div",{id:a(E,ei),key:w.identifier},`${E}: `,d(p,{inline:!0,refs:m}))}))),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,ad(v,b,"outer")}function id(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let s=r.forceInline||!(r.forceBlock||LP.test(n)),o=nm(r,s),c=s?n:GP(n),l=sm(c,{inline:s,refs:i},o);return BI(l,{...r,forceInline:s})}let i={};return a(e)}function VI(e){let t=zn.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 so=({children:e,options:t,...r})=>{if(!(typeof zn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return id(e??"",o)}let a=Jh?zn.useContext(Jh):void 0,i=VI(r),n=zn.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 zn.useMemo(()=>id(s,n),[s,n])};const Jk=Symbol("remove-this-key"),Xh=Symbol("reset");function HI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function WI(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(Le.NewStringDefault)}}function Yk(e){return!!(e!=null&&e[la])}function Zh(e){return Object.keys(e).filter(t=>Yk(e[t]))}function KI(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:m,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=W.useState(!1),{globalFormOptions:E,fields:p}=a,{SchemaField:g}=p,S=Ji(cn(h,E,t.path)),C=W.useCallback((A,N,I,F)=>{let $=A;A===void 0&&y&&($=""),o($,N,I,F)},[o,y]),O=W.useCallback(A=>{h!==A&&w(!0),k(h,A)},[h,k]),_=W.useCallback(A=>{const{target:{value:N}}=A;O(N)},[O]),x=W.useCallback(()=>{v(h)},[h,v]);return j.jsx(g,{name:h,required:m,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:O,onKeyRenameBlur:_,onRemoveProperty:x,onChange:C,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const GI=W.memo(KI);function JI(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:m,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,p=W.useRef(a);p.current=a;const g=W.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=W.useMemo(()=>ke(r,w),[r,w]),C=W.useMemo(()=>g.properties??{},[g.properties]),O=e.childFieldPathId??n,_=W.useRef({previousKey:"",currentKey:void 0}),[x,A]=W.useState(()=>Zh(C)),N=W.useMemo(()=>{const V=new Set(Zh(C));return Object.keys(C).filter(K=>!V.has(K))},[C]),I=S.title??g.title??k??s,F=S.description??g.description,$=no(h,g,o,r),Y=Gi(a);let Z=[];const ie=W.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=ke(r,w);let Q=0,q=V;for(;Ge(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=W.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)yt(V,K,null);else{let J,Q,q;if(Xe(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let H=g.additionalProperties;gt in H&&(H=y.retrieveSchema({[gt]:H[gt]},a),J=H.type,Q=H.const,q=y.getDefaultFormState(H,q)),!J&&(We in H||Fe in H)&&(J="object")}const z=Q??q??WI(b,J);yt(V,K,z)}_.current.previousKey===K&&(_.current.currentKey=K,_.current.previousKey=ie(K,V)),A(J=>[...J,K]),d(V,O.path)},[a,d,b,y,O,ie,g]),D=W.useCallback((V,K)=>{if(V!==K){const J=p.current,Q=ie(K,J),q={...J},z={[V]:Q},H=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...H);p.current=G,V!==_.current.currentKey&&(_.current.previousKey=V),_.current.currentKey=Q,A(te=>te.map(ae=>ae===V?Q:ae)),d(G,O.path)}},[d,O,ie]),U=W.useCallback(V=>{A(K=>K.filter(J=>J!==V)),d(Jk,[...O.path,V])},[d,O]),T=W.useCallback(V=>_.current.currentKey===V?_.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(N),K=x.filter(J=>Object.hasOwn(C,J)&&!V.has(J));Z=kT([...N,...K],S.order)}catch(V){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:b(Le.InvalidObjectField,[s||"root",V.message])})}),j.jsx("pre",{children:JSON.stringify(g)})]})}const R=xe("ObjectFieldTemplate",h,S),M=$?j.jsx(E,{...e,fieldPathId:O,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:F,properties:Z.map(V=>{var z;const K=Yk((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=ke(J).widget==="hidden";return{content:j.jsx(GI,{propertyName:V,required:HI(g,V),schema:oe(g,[Ye,V],{}),uiSchema:J,errorSchema:oe(i,[V]),fieldPathId:O,formData:oe(a,[V]),handleKeyRename:D,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:m,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:M,className:$?"rjsf-optional-object-field":void 0};return j.jsx(R,{...B,onAddProperty:P})}function YI(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:m}=l,d=ke(r,u),h=xe("OptionalDataControlsTemplate",l,d),k=Gi(a);let v,y,b,w;if(i||n)v=mu(c,"Msg"),y=k?void 0:m(Le.OptionalObjectEmptyMsg);else{const E=k?Le.OptionalObjectRemove:Le.OptionalObjectAdd;y=m(E),k?(v=mu(c,"Remove"),w=()=>s(void 0,c.path,o)):(v=mu(c,"Add"),b=()=>{let p=f.getDefaultFormState(t,a,"excludeObjectChildren");p===void 0&&(p=Yr(t)==="array"?[]:{}),s(p,c.path,o)})}return y&&j.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const XI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function ZI(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=Yr(e),o=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=XI[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 QI(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:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,p=r[pt],g=W.useCallback((Se,Re,he,je)=>o(Se,Re,he,je||p),[p,o]);if(t[Ed])return j.jsx(E,{...e});const S=wT(t,a,m),C=ke(S,v),O=xe("FieldTemplate",m,C),_=xe("DescriptionFieldTemplate",m,C),x=xe("FieldHelpTemplate",m,C),A=xe("FieldErrorTemplate",m,C),N=h.retrieveSchema(t,i),I=ZI(N,C,m),$=!!N.deprecated?C.deprecatedHandling??"label":void 0,Y=!!(C.disabled??e.disabled)||$==="disable",Z=!!(C.readonly??(e.readonly||e.schema.readOnly||N.readOnly)),ie=C.hideError,P=ie===void 0?e.hideError:!!ie,D=!!(C.autofocus??e.autofocus);if(Object.keys(N).length===0)return null;let U=h.getDisplayLabel(N,S,v);const T=C.field&&C.fieldReplacesAnyOrOneOf===!0;let R,M,B={fieldPathId:r};if((We in N||Fe in N)&&!T&&!h.isSelect(N)){N[We]?(R=b,M=N[We].map(he=>h.retrieveSchema(Xe(he)?he:{},i))):N[Fe]&&(R=w,M=N[Fe].map(he=>h.retrieveSchema(Xe(he)?he:{},i)));const Se=no(m,N,f,S),Re=Gi(i);U=U&&(!Se||Re),B={childFieldPathId:r,fieldPathId:cn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=qs(S,["ui:classNames","classNames","ui:style"]);ca in J&&(J[ca]=qs(J[ca],["classNames","style"]));const Q=j.jsx(I,{...e,onChange:g,...B,schema:N,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:D,errorSchema:K,rawErrors:V}),q=r[pt];let z;d?z=s:z=la in N?s:C.title||e.schema.title||N.title||e.title||s,$==="label"&&(z=m.translateString(Le.DeprecatedLabel,[z]));const H=C.description||e.schema.description||N.description||"",{help:G}=C,te=C.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${Yr(N)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),C.classNames&&ae.push(C.classNames);const me=j.jsx(x,{help:G,fieldPathId:r,schema:N,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:m}),ve=P||R&&!h.isSelect(N)?void 0:j.jsx(A,{errors:V,errorSchema:n,fieldPathId:r,schema:N,uiSchema:S,registry:m}),Ce={description:j.jsx(_,{id:Ca(q),description:H,schema:N,uiSchema:S,registry:m}),rawDescription:H,help:me,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:C.style,formData:i,schema:N,uiSchema:S,registry:m};return j.jsx(O,{...Ce,children:j.jsxs(j.Fragment,{children:[Q,R&&j.jsx(R,{name:s,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:N,uiSchema:S})]})})}const eR=W.memo(QI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?zf(e,t):Je(e,t)});function tR(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:m,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:p}=d,g=E.isSelect(t)?Ja(t,a):void 0;let S=g?"select":"text";b&&hT(t,b,w)&&(S=b);const{widget:C=S,placeholder:O="",title:_,...x}=ke(a),A=E.getDisplayLabel(t,a,p),N=_??v??y??r,I=On(t,C,w),F=W.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return j.jsx(I,{options:{...x,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:N,hideLabel:!A,hideError:k,value:n,onChange:F,onBlur:f,onFocus:m,required:s,disabled:o,readonly:c,autofocus:l,registry:d,placeholder:O,rawErrors:h,htmlName:i.name})}function rR(){return{AnyOfField:bh,ArrayField:WT,BooleanField:KT,CyclicSchemaField:GT,FallbackField:ZT,LayoutGridField:tm,LayoutHeaderField:bP,LayoutMultiSchemaField:kP,NumberField:xP,ObjectField:JI,OneOfField:bh,OptionalDataControlsField:YI,SchemaField:eR,StringField:tR,NullField:wP}}function nR(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,s=ke(n,a.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const c=xe("DescriptionFieldTemplate",a,s);return j.jsx(c,{id:Ca(t),description:r,schema:i,uiSchema:n,registry:a})}function aR(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:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs(j.Fragment,{children:[(i||a)&&j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),(i||a)&&j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:m}),r&&j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:m})]})}function iR(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:s,registry:o,uiSchema:c}=e,l=ke(c),u=xe("ArrayFieldItemButtonsTemplate",o,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${m}px`:0};return j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:h,children:j.jsx(u,{...a,style:f})})})]})}function sR(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:m,title:d}=e,h=ke(n),k=xe("ArrayFieldDescriptionTemplate",u,h),v=xe("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return j.jsxs("fieldset",{className:r,id:i.$id,children:[j.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:m,uiSchema:n,registry:u,optionalDataControl:y?o:void 0}),j.jsx(k,{fieldPathId:i,description:h.description||m.description,schema:m,uiSchema:n,registry:u}),y?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:Rr(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function oR(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,optionalDataControl:o}=e,c=ke(i,s.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=xe("TitleFieldTemplate",s,c);return j.jsx(u,{id:pc(t),title:r,required:n,schema:a,uiSchema:i,registry:s,optionalDataControl:o})}function lR(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?j.jsx("datalist",{id:Yd(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function cR(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:m,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:p}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...oT(d,y,m)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const C=W.useCallback(({target:{value:A}})=>u(A===""?m.emptyValue:A),[u,m]),O=W.useCallback(({target:A})=>c(t,A==null?void 0:A.value),[c,t]),_=W.useCallback(({target:A})=>l(t,A==null?void 0:A.value),[l,t]),x=W.useCallback(A=>{A.preventDefault(),A.stopPropagation(),u(m.emptyValue??"")},[u,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...g,list:d.examples?Yd(t):void 0,onChange:f||C,onBlur:O,onFocus:_,"aria-describedby":dn(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(p,{registry:k,onClick:x}),j.jsx(lR,{id:t,schema:d})]})}function uR(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const xa=W.memo(uR);function fR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.CopyButton),...e,icon:"copy"})}const dR=W.memo(fR);function mR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveDownButton),...e,icon:"arrow-down"})}const pR=W.memo(mR);function hR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveUpButton),...e,icon:"arrow-up"})}const gR=W.memo(hR);function yR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.RemoveButton),...e,iconType:"danger",icon:"remove"})}const vR=W.memo(yR);function bR({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:s}=i;return j.jsx(xa,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Le.ClearButton),onClick:r,disabled:a,registry:i,...n})}const kR=W.memo(bR);function wR({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return j.jsx("div",{className:"row",children:j.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:j.jsx(xa,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Le.AddButton),onClick:r,disabled:a,registry:i})})})}function SR({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Ck(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function ER(){return{SubmitButton:SR,AddButton:wR,CopyButton:dR,MoveDownButton:pR,MoveUpButton:gR,RemoveButton:vR,ClearButton:kR}}function xR(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,s=`${r[pt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(Le.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[pt]),children:n(Le.ExpandButton)})," "]})]})}const Xk=Gd();function Zk({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInDescription&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Xk.markdown,children:e}):e}Zk.TEST_IDS=Xk;function CR(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(Zk,{description:r,registry:a,uiSchema:i})}):null}function AR({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(Le.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((a,i)=>j.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function _R(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=xe("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function OR(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=Jd(r);return j.jsx("div",{children:j.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>j.jsx("li",{className:"text-danger",children:i},n))})})}const Qk=Gd();function e0({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInHelp&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Qk.markdown,children:e}):e}e0.TEST_IDS=Qk;function TR(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?j.jsx("div",{id:Xd(t),className:"help-block",children:j.jsx(e0,{help:r,registry:i,uiSchema:a})}):null}const PR="*";function t0(e){const{label:t,required:r,id:a}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&j.jsx("span",{className:"required",children:PR})]}):null}function IR(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,m=ke(f),d=xe("WrapIfAdditionalTemplate",u,m);if(o)return j.jsx("div",{className:"hidden",children:a});const h=m.widget==="checkbox";return j.jsxs(d,{...e,children:[l&&!h&&j.jsx(t0,{label:r,required:c,id:t}),l&&s?s:null,a,i,n]})}function RR(e){const{children:t,column:r,className:a,...i}=e;return j.jsx("div",{className:a,...i,children:t})}function NR(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function jR(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:m,title:d,uiSchema:h}=e,k=ke(h),v=xe("TitleFieldTemplate",u,k),y=xe("DescriptionFieldTemplate",u,k);if((m.oneOf||m.anyOf)&&!m.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:pc(n),title:d,required:f,schema:m,uiSchema:h,registry:u,optionalDataControl:w?o:void 0}),r&&j.jsx(y,{id:Ca(n),description:r,schema:m,uiSchema:h,registry:u}),w?void 0:o,c.map(p=>p.content),nb(m,h,i)&&j.jsx(E,{id:Rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:a||l,uiSchema:h,registry:u})]})}function DR(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?j.jsx(xa,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?j.jsx(xa,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):j.jsx("em",{id:t,children:a})}const FR="*";function MR(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return j.jsxs("legend",{id:t,children:[r,a&&j.jsx("span",{className:"required",children:FR}),i&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function LR(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let s=Le.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Le.UnsupportedFieldWithId,o.push(r.$id)),a&&(s=s===Le.UnsupportedField?Le.UnsupportedFieldWithReason:Le.UnsupportedFieldWithIdAndReason,o.push(a)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function qR(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:m,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,p=w(Le.KeyLabel,[s]),g=la in m,S=!!l,C=["form-group",r];!d&&h&&h.length>0&&C.push("has-error has-danger");const O=C.join(" ").trim();if(!g)return j.jsx("div",{className:O,style:a,children:k});const _=S?46:26;return j.jsx("div",{className:O,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(t0,{label:p,required:f,id:`${t}-key`}),n&&l&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${_}px`:void 0},children:j.jsx(E,{id:Rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function zR(){return{ArrayFieldDescriptionTemplate:nR,ArrayFieldItemTemplate:iR,ArrayFieldItemButtonsTemplate:aR,ArrayFieldTemplate:sR,ArrayFieldTitleTemplate:oR,ButtonTemplates:ER(),BaseInputTemplate:cR,CyclicSchemaExpandTemplate:xR,DescriptionFieldTemplate:CR,ErrorListTemplate:AR,FallbackFieldTemplate:_R,FieldTemplate:IR,FieldErrorTemplate:OR,FieldHelpTemplate:TR,GridTemplate:RR,MultiSchemaFieldTemplate:NR,ObjectFieldTemplate:jR,OptionalDataControlsTemplate:DR,TitleFieldTemplate:MR,UnsupportedFieldTemplate:LR,WrapIfAdditionalTemplate:qR}}function $R({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function UR(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:m,handleClear:d,handleSetNow:h}=_T(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(AT,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Le.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Le.ClearLabel)})})]})}function BR({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:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>o(e,on(b==null?void 0:b.value,f,h,d)),[o,e,f,d,h]),y=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=t||p||n?"disabled":"",S=O=>{O.target.checked?s(Ek(w,k,f)):s(wk(w,k,f))},C=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:hc(e,w),name:l||e,checked:E,value:to(b.value,w,h),disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("span",{children:b.label})]});return u?j.jsx("label",{className:`checkbox-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`checkbox ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function VR({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:m,registry:d,htmlName:h}){const k=xe("DescriptionFieldTemplate",d,r),v=Ps(e),y=W.useCallback(S=>m(S.target.checked),[m]),b=W.useCallback(S=>u(a,S.target.checked),[u,a]),w=W.useCallback(S=>f(a,S.target.checked),[f,a]),g=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!c&&g&&j.jsx(k,{id:Ca(a),description:g,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.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":dn(a)}),yT(j.jsx("span",{children:o}),c)]})]})}function HR(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"color",...e,disabled:t||r})}function WR(e){const{onChange:t,value:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"datetime-local",...e,value:RT(r),onChange:s=>t(vT(s))})}function KR(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s||void 0),[t]);return j.jsx(i,{type:"date",...e,onChange:n})}function GR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"email",...e})}function JR({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const s=r(Le.PreviewLabel);return["image/jpeg","image/png"].includes(i)?j.jsx("img",{src:a,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:s})]})}function YR({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=xe("ButtonTemplates",t,i);return j.jsx("ul",{className:"file-info",children:e.map((o,c)=>{const{name:l,size:u,type:f}=o,m=()=>a(c);return j.jsxs("li",{children:[j.jsx(so,{children:n(Le.FilesInfo,[l,f,String(u)])}),r&&j.jsx(JR,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},c)})})}function XR(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}=IT(s,n,i),m=xe("BaseInputTemplate",c,o),d=h=>{h.target.files&&u(h.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:a,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(YR,{filesInfo:l,onRemove:f,registry:c,preview:o.filePreview,options:o})]})}function ZR({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function QR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"password",...e})}function eN({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:m,inline:d,emptyValue:h}=e,k=ro(e),v=W.useCallback(({target:b})=>s(l,on(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]),y=W.useCallback(({target:b})=>o(l,on(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]);return j.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,t),p=Array.isArray(m)&&m.includes(b.value),g=a||p||i?"disabled":"",S=()=>c(b.value),C=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:hc(l,w),checked:E,name:u||l,required:r,value:to(b.value,w,k),disabled:a||p||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(l)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`radio ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function tN(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function rN({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:m=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(m,1),5),k=l.minimum||0,v=W.useCallback(E=>{!a&&!i&&s(E)},[s,a,i]),y=W.useCallback(E=>{if(o){const p=Number(E.target.dataset.value);o(e,p)}},[o,e]),b=W.useCallback(E=>{if(c){const p=Number(E.target.dataset.value);c(e,p)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,p)=>{const g=k+p,S=g<=t;return j.jsx("span",{onClick:()=>v(g),onKeyDown:C=>(C.key==="Enter"||C.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)},p)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function wu(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function nN({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:m,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=o?[]:"",E=ro(r),p=W.useCallback(_=>{const x=wu(_,o);return f(t,on(x,v,E,b))},[f,t,o,v,b,E]),g=W.useCallback(_=>{const x=wu(_,o);return u(t,on(x,v,E,b))},[u,t,o,v,b,E]),S=W.useCallback(_=>{const x=wu(_,o);return l(on(x,v,E,b))},[l,o,v,b,E]),C=XO(a,v,o,E,w),O=!o&&e.default===void 0;return bT(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(ST,{id:t,multiple:o,options:r,registry:h,uiSchema:k,value:a}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:C,required:i,disabled:n||s,autoFocus:c,onBlur:g,onFocus:p,onChange:S,"aria-describedby":dn(t),children:[O&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:_,label:x},A)=>{const N=y&&y.includes(_);return j.jsx("option",{value:to(_,A,E),disabled:N,children:x},String(_))})]})]})}function aN({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 m=W.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=W.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=W.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return j.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:m,"aria-describedby":dn(e)})}function iN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{...e})}function sN(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(i,{type:"time",...e,onChange:n})}function oN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"number",...e})}function lN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"url",...e})}function cN(){return{AltDateWidget:UR,AltDateTimeWidget:$R,CheckboxWidget:VR,CheckboxesWidget:BR,ColorWidget:HR,DateWidget:KR,DateTimeWidget:WR,EmailWidget:GR,FileWidget:XR,HiddenWidget:ZR,PasswordWidget:QR,RadioWidget:eN,RangeWidget:tN,RatingWidget:rN,SelectWidget:nN,TextWidget:iN,TextareaWidget:aN,TimeWidget:sN,UpDownWidget:oN,URLWidget:lN}}function uN(){return{fields:rR(),templates:zR(),widgets:cN(),rootSchema:{},formContext:{},translateString:YO,globalFormOptions:{idPrefix:Qv,idSeparator:eb,useFallbackUiForUnsupportedType:!1}}}function hi(e,t){return{...yk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let fN=class $a extends W.Component{constructor(r){super(r);lr(this,"formElement");lr(this,"pendingChanges",[]);lr(this,"isProcessingUserChange",!1);lr(this,"getUsedFormData",(r,a)=>zO(r,a));lr(this,"getFieldNames",(r,a)=>$O(r,a));lr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});lr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),s=cn("",i.globalFormOptions,n);this.onChange(a,n,void 0,s[pt])});lr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});lr(this,"reset",()=>{const{formData:r,initialFormData:a=Xh,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(hi({...this.state,...o})))});lr(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,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(u),m={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);m={formData:f,...w,customErrors:y}}const d=Object.keys(m).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=oe(this.state,h),v=oe(m,h);return!Je(k,v)});this.setState(m,()=>{c&&d&&c(hi({...this.state,...m}),r)})}});lr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});lr(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?Qd(i):[];this.setState({formData:o,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(hi({...this.state,formData:o},"submitted"),r)})}});lr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});lr(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?$a.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&&!Je(this.state.formData,s)&&n(hi(this.state)),this.formElement=W.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}=Cs(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:s}=Cs({errors:n,errorSchema:s},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,a){if(!Je(this.props,r)){const i=ih(this.props.formData,r.formData),n=ih(this.props.formData,this.state.formData),s=!Je(r.schema,this.props.schema),o=i.length>0||!Je(r.formData,this.props.formData),c=n.length>0||!Je(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=!Je(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,s=!Je(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Je(n.formData,a.formData)&&this.props.onChange&&this.props.onChange(hi(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,m=("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=KO(f,u,y,b));const E=w.getRootSchema();let p=a;a===Xh?p=void 0:a===void 0&&d&&(p=l.formData);let g,S,C=!1;const O=[];do{g=w.getDefaultFormState(E,p,!1,l.initialDefaultsGenerated);const P=c?Br({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!O.includes(P)&&!Je(S,l.retrievedSchema)){const D=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(C=!Je(D,g),C){g=D,p=D;const U=Br({formData:D});C=!O.includes(U),O.push(U)}O.push(P)}else C=!1}while(C);const _=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let x,A,{schemaValidationErrors:N,schemaValidationErrorSchema:I}=l;if(v&&!o){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);x=P.errors,A=P.errorSchema,N=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=_();if(x=P.errors,A=P.errorSchema,s.length>0&&!v){const U=s.reduce((T,R)=>(T[R]=void 0,T),{});I=ka(P.errorSchema,U,"preventDuplicates"),A=I}const D=$a.mergeErrors({errorSchema:A,errors:x},r.extraErrors,l.customErrors);x=D.errors,A=D.errorSchema}const F=$a.getRegistry(r,E,w),$=Je(l.registry,F)?l.registry:F,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[pt])===$.globalFormOptions.idPrefix?l.fieldPathId:cn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:m,fieldPathId:Y,formData:g,edit:h,errors:x,errorSchema:A,schemaValidationErrors:N,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return ET(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=ke(s),c=xe("ErrorListTemplate",r,o);return a!=null&&a.length?j.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=Cs(r,a);n=o.errorSchema,s=o.errors}if(i){const o=Cs({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:m}=u;l&&(m=ka(i,u.errorSchema,"preventDuplicates"));const d=f,h=m;return{...$a.mergeErrors({errorSchema:m,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:m,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:p}=this.state,g=b;const S=y.path[0]||"",C=!a||a.length===0||a.length===1&&a[0]===S;let O=C?r:Bl(h);const _=Ae(O)&&Object.keys(O).length>0&&Object.values(O).every($=>$===void 0),x=h==null,A=_&&x?void 0:O;if(Ae(O)||Array.isArray(O)){let $=!1;if(r===Jk)FT(O,a);else if(!C){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:D}=k.findFieldInSchema(v,a,h),U=D;!(U&&(Fe in U||We in U))&&U!==void 0&&($=!0)}$?yt(O,a,void 0):yt(O,a,ie)}const Y=p&&!C&&!Ae(r)&&!Array.isArray(r)&&!m&&!d,Z=this.getStateFromProps(this.props,A,void 0,void 0,void 0,!0,Y);O=Z.formData,p=Z.retrievedSchema,$&&O&&yt(O,a,void 0)}const N=!l&&(u===!0||u==="onChange");let I={formData:O,retrievedSchema:p},F=O;if(o===!0&&(c===!0||c==="onChange")&&(F=this.omitExtraData(O),I={...I,formData:F}),n){const $=C?b:oe(b,a);if(!Rt($))C?g=n:(g=Bl(b),yt(g,a,n));else if(E||(E=new xk),C){const Y=oe(n,Zt);Y&&E.setErrors(Y)}else yt(E.ErrorSchema,a,n)}else E&&oe(E.ErrorSchema,[...a,Zt])&&E.clearErrors(a);if(N&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,F,s,E,p);I={...I,formData:F,...$,customErrors:E}}else if(!l&&n){const $=$a.mergeErrors({errorSchema:g,errors:w},s,E);I={...I,formData:F,...$,customErrors:E}}this.setState(I,()=>{f&&f(hi({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Je(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=eb,idPrefix:s=Qv,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 m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:c,widgets:l,formContext:u,translateString:f}=uN();return{fields:{...o,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:s[Of],globalFormOptions:$a.getGlobalFormOptions(r),uiSchemaDefinitions:s[aS]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,s=Tk(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:m,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:p,fieldPathId:g,registry:S}=this.state,{SchemaField:C}=S.fields,{SubmitButton:O}=S.templates.ButtonTemplates,_=y?n:void 0,x=y||n||"form";let{[Ml]:A={}}=ke(w);h&&(A={...A,props:{...A.props,disabled:!0}});const N={[ca]:{[Ml]:A}};return j.jsxs(x,{className:i||"rjsf",id:a,name:s,method:o,target:c,action:l,autoComplete:u,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(C,{name:"",schema:b,uiSchema:w,errorSchema:p,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||j.jsx(O,{uiSchema:N,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function dN(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(`/${We}/`):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 mN(e=[],t,r,a){const i=e.map(n=>{var s;const{instancePath:o,keyword:c,params:l,schemaPath:u,parentSchema:f,...m}=n;let{message:d=""}=m,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=ke(oe(t,w.replace(/^\./,""))).title;if(E===void 0){const p=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=ke(oe(t,p)).title}if(E===void 0){const p=h.replace(/^\./,"").split(".").filter(Boolean);E=oe(t,[...p,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const p=oe(f,[Ye,b,"title"]);if(p)d=d.replace(`'${b}'`,`'${p}'`),v=p;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const O of g)S.push(Ye,O);S.push(Ye,b,"title");const C=oe(a,S);C&&(d=d.replace(`'${b}'`,`'${C}'`),v=C)}}}),k=d;else{const b=ke(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 dN(i,r)}function pN(e,t,r,a,i,n,s,o){const{validationError:c}=t;let l=mN(t.errors,s,o,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,s));let u=xT(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=mk(e,a,r,a,!0),m=i(f,Tf(f),s,u),d=Pk(m);return Cs({errors:l,errorSchema:u},d)}var Ro={exports:{}},Su={},Mn={},Fa={},Eu={},xu={},Cu={},Qh;function Yl(){return Qh||(Qh=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 m(y){return new a(d(y))}e.stringify=m;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})(Cu)),Cu}var Au={},eg;function tg(){return eg||(eg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Yl();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 m=this.toName(l),{prefix:d}=m,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,m);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,m.setValue(u,{property:d,itemIndex:y}),m}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,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,f)}_reduceValues(l,u,f={},m){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=m==null?void 0:m(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=o})(Au)),Au}var rg;function Be(){return rg||(rg=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=Yl(),r=tg();var a=Yl();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=tg();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(R,M){return this}}class s extends n{constructor(R,M,B){super(),this.varKind=R,this.name=M,this.rhs=B}render({es5:R,_n:M}){const B=R?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+M}optimizeNames(R,M){if(R[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,R,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(R,M,B){super(),this.lhs=R,this.rhs=M,this.sideEffects=B}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,M){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,R,M),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return N(R,this.rhs)}}class c extends o{constructor(R,M,B,V){super(R,B,V),this.op=M}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class l extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class u extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends n{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m extends n{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,M){return this.code=I(this.code,R,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((M,B)=>M+B.render(R),"")}optimizeNodes(){const{nodes:R}=this;let M=R.length;for(;M--;){const B=R[M].optimizeNodes();Array.isArray(B)?R.splice(M,1,...B):B?R[M]=B:R.splice(M,1)}return R.length>0?this:void 0}optimizeNames(R,M){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(R,M)||(F(R,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((R,M)=>A(R,M.names),{})}}class h extends d{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(R,M){super(M),this.condition=R}render(R){let M=`if(${this.condition})`+super.render(R);return this.else&&(M+="else "+this.else.render(R)),M}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let M=this.else;if(M){const B=M.optimizeNodes();M=this.else=Array.isArray(B)?new v(B):B}if(M)return R===!1?M instanceof y?M:M.nodes:this.nodes.length?this:new y($(R),M instanceof y?[M]:M.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,M){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(R,M),!!(super.optimizeNames(R,M)||this.else))return this.condition=I(this.condition,R,M),this}get names(){const R=super.names;return N(R,this.condition),this.else&&A(R,this.else.names),R}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iteration=I(this.iteration,R,M),this}get names(){return A(super.names,this.iteration.names)}}class E extends b{constructor(R,M,B,V){super(),this.varKind=R,this.name=M,this.from=B,this.to=V}render(R){const M=R.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${M} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(R)}get names(){const R=N(super.names,this.from);return N(R,this.to)}}class p extends b{constructor(R,M,B,V){super(),this.loop=R,this.varKind=M,this.name=B,this.iterable=V}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iterable=I(this.iterable,R,M),this}get names(){return A(super.names,this.iterable.names)}}class g extends h{constructor(R,M,B){super(),this.name=R,this.args=M,this.async=B}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}g.kind="func";class S extends d{render(R){return"return "+super.render(R)}}S.kind="return";class C extends h{render(R){let M="try"+super.render(R);return this.catch&&(M+=this.catch.render(R)),this.finally&&(M+=this.finally.render(R)),M}optimizeNodes(){var R,M;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(R,M){var B,V;return super.optimizeNames(R,M),(B=this.catch)===null||B===void 0||B.optimizeNames(R,M),(V=this.finally)===null||V===void 0||V.optimizeNames(R,M),this}get names(){const R=super.names;return this.catch&&A(R,this.catch.names),this.finally&&A(R,this.finally.names),R}}class O extends h{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}O.kind="catch";class _ extends h{render(R){return"finally"+super.render(R)}}_.kind="finally";class x{constructor(R,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
|
|
99
|
+
`:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,M){const B=this._extScope.value(R,M);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(R,M){return this._extScope.getValue(R,M)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,M,B,V){const K=this._scope.toName(M);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new s(R,K,B)),K}const(R,M,B){return this._def(r.varKinds.const,R,M,B)}let(R,M,B){return this._def(r.varKinds.let,R,M,B)}var(R,M,B){return this._def(r.varKinds.var,R,M,B)}assign(R,M,B){return this._leafNode(new o(R,M,B))}add(R,M){return this._leafNode(new c(R,e.operators.ADD,M))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){const M=["{"];for(const[B,V]of R)M.length>1&&M.push(","),M.push(B),(B!==V||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,V));return M.push("}"),new t._Code(M)}if(R,M,B){if(this._blockNode(new y(R)),M&&B)this.code(M).else().code(B).endIf();else if(M)this.code(M).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new y(R))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(R,M){return this._blockNode(R),M&&this.code(M).endFor(),this}for(R,M){return this._for(new w(R),M)}forRange(R,M,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(R);return this._for(new E(K,J,M,B),()=>V(J))}forOf(R,M,B,V=r.varKinds.const){const K=this._scope.toName(R);if(this.opts.es5){const J=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new p("of",V,K,M),()=>B(K))}forIn(R,M,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${M})`,B);const K=this._scope.toName(R);return this._for(new p("in",V,K,M),()=>B(K))}endFor(){return this._endBlockNode(b)}label(R){return this._leafNode(new l(R))}break(R){return this._leafNode(new u(R))}return(R){const M=new S;if(this._blockNode(M),this.code(R),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,M,B){if(!M&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new C;if(this._blockNode(V),this.code(R),M){const K=this.name("e");this._currNode=V.catch=new O(K),M(K)}return B&&(this._currNode=V.finally=new _,this.code(B)),this._endBlockNode(O,_)}throw(R){return this._leafNode(new f(R))}block(R,M){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(M),this}endBlock(R){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-M;if(B<0||R!==void 0&&B!==R)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${R} expected`);return this._nodes.length=M,this}func(R,M=t.nil,B,V){return this._blockNode(new g(R,M,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,M){const B=this._currNode;if(B instanceof R||M&&B instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${R.kind}/${M.kind}`:R.kind}"`)}_elseNode(R){const M=this._currNode;if(!(M instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const M=this._nodes;M[M.length-1]=R}}e.CodeGen=x;function A(T,R){for(const M in R)T[M]=(T[M]||0)+(R[M]||0);return T}function N(T,R){return R instanceof t._CodeOrName?A(T,R.names):T}function I(T,R,M){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=M[K.str];return J===void 0||R[K.str]!==1?K:(delete R[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&R[J.str]===1&&M[J.str]!==void 0)}}function F(T,R){for(const M in R)T[M]=(T[M]||0)-(R[M]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=D(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=D(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function D(T){return(R,M)=>R===t.nil?M:M===t.nil?R:(0,t._)`${U(R)} ${T} ${U(M)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(xu)),xu}var qe={},ng;function et(){if(ng)return qe;ng=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=Be(),t=Yl();function r(p){const g={};for(const S of p)g[S]=!0;return g}qe.toHash=r;function a(p,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(p,g),!n(g,p.self.RULES.all))}qe.alwaysValidSchema=a;function i(p,g=p.schema){const{opts:S,self:C}=p;if(!S.strictSchema||typeof g=="boolean")return;const O=C.RULES.keywords;for(const _ in g)O[_]||E(p,`unknown keyword: "${_}"`)}qe.checkUnknownRules=i;function n(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(g[S])return!0;return!1}qe.schemaHasRules=n;function s(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(S!=="$ref"&&g.all[S])return!0;return!1}qe.schemaHasRulesButRef=s;function o({topSchemaRef:p,schemaPath:g},S,C,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${p}${g}${(0,e.getProperty)(C)}`}qe.schemaRefOrVal=o;function c(p){return f(decodeURIComponent(p))}qe.unescapeFragment=c;function l(p){return encodeURIComponent(u(p))}qe.escapeFragment=l;function u(p){return typeof p=="number"?`${p}`:p.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=u;function f(p){return p.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=f;function m(p,g){if(Array.isArray(p))for(const S of p)g(S);else g(p)}qe.eachItem=m;function d({mergeNames:p,mergeToName:g,mergeValues:S,resultToName:C}){return(O,_,x,A)=>{const N=x===void 0?_:x instanceof e.Name?(_ instanceof e.Name?p(O,_,x):g(O,_,x),x):_ instanceof e.Name?(g(O,x,_),_):S(_,x);return A===e.Name&&!(N instanceof e.Name)?C(O,N):N}}qe.mergeEvaluated={props:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{p.if((0,e._)`${g} === true`,()=>p.assign(S,!0),()=>p.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>{g===!0?p.assign(S,!0):(p.assign(S,(0,e._)`${S} || {}`),k(p,S,g))}),mergeValues:(p,g)=>p===!0?!0:{...p,...g},resultToName:h}),items:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>p.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>p.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(p,g)=>p===!0?!0:Math.max(p,g),resultToName:(p,g)=>p.var("items",g)})};function h(p,g){if(g===!0)return p.var("props",!0);const S=p.var("props",(0,e._)`{}`);return g!==void 0&&k(p,S,g),S}qe.evaluatedPropsToName=h;function k(p,g,S){Object.keys(S).forEach(C=>p.assign((0,e._)`${g}${(0,e.getProperty)(C)}`,!0))}qe.setEvaluated=k;const v={};function y(p,g){return p.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}qe.useFunc=y;var b;(function(p){p[p.Num=0]="Num",p[p.Str=1]="Str"})(b||(qe.Type=b={}));function w(p,g,S){if(p instanceof e.Name){const C=g===b.Num;return S?C?(0,e._)`"[" + ${p} + "]"`:(0,e._)`"['" + ${p} + "']"`:C?(0,e._)`"/" + ${p}`:(0,e._)`"/" + ${p}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(p).toString():"/"+u(p)}qe.getErrorPath=w;function E(p,g,S=p.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);p.self.logger.warn(g)}}return qe.checkStrictMode=E,qe}var No={},ag;function Aa(){if(ag)return No;ag=1,Object.defineProperty(No,"__esModule",{value:!0});const e=Be(),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 No.default=t,No}var ig;function kc(){return ig||(ig=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=Be(),r=et(),a=Aa();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:p,compositeRule:g,allErrors:S}=E,C=f(v,y,b);w??(g||S)?c(p,C):l(E,(0,t._)`[${C}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:p,allErrors:g}=w,S=f(v,y,b);c(E,S),p||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:p}){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,p.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${p.errSchemaPath}/${y}`),p.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._)`{}`:m(v,y,b)}function m(v,y,b={}){const{gen:w,it:E}=v,p=[d(E,b),h(v,b)];return k(v,y,p),w.object(...p)}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:p,schemaValue:g,it:S}=v,{opts:C,propertyName:O,topSchemaRef:_,schemaPath:x}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),C.messages&&w.push([u.message,typeof b=="function"?b(v):b]),C.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${_}${x}`],[a.default.data,p]),O&&w.push([u.propertyName,O])}})(Eu)),Eu}var sg;function hN(){if(sg)return Fa;sg=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.boolOrEmptySchema=Fa.topBoolOrEmptySchema=void 0;const e=kc(),t=Be(),r=Aa(),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))}Fa.topBoolOrEmptySchema=i;function n(o,c){const{gen:l,schema:u}=o;u===!1?(l.var(c,!1),s(o)):l.var(c,!0)}Fa.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 Fa}var Xt={},Ma={},og;function r0(){if(og)return Ma;og=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.getRules=Ma.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)}Ma.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 Ma.getRules=a,Ma}var Ln={},lg;function n0(){if(lg)return Ln;lg=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const s=i.RULES.types[n];return s&&s!==!0&&t(a,s)}Ln.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Ln.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 Ln.shouldUseRule=r,Ln}var cg;function Xl(){if(cg)return Xt;cg=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;const e=r0(),t=n0(),r=kc(),a=Be(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Xt.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}Xt.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(","))}Xt.getJSONTypes=o;function c(b,w){const{gen:E,data:p,opts:g}=b,S=u(w,g.coerceTypes),C=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(C){const O=h(w,p,g.strictNumbers,n.Wrong);E.if(O,()=>{S.length?f(b,w,S):v(b)})}return C}Xt.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:p,data:g,opts:S}=b,C=p.let("dataType",(0,a._)`typeof ${g}`),O=p.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&p.if((0,a._)`${C} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>p.assign(g,(0,a._)`${g}[0]`).assign(C,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>p.assign(O,g))),p.if((0,a._)`${O} !== undefined`);for(const x of E)(l.has(x)||x==="array"&&S.coerceTypes==="array")&&_(x);p.else(),v(b),p.endIf(),p.if((0,a._)`${O} !== undefined`,()=>{p.assign(g,O),m(b,O)});function _(x){switch(x){case"string":p.elseIf((0,a._)`${C} == "number" || ${C} == "boolean"`).assign(O,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(O,(0,a._)`""`);return;case"number":p.elseIf((0,a._)`${C} == "boolean" || ${g} === null
|
|
100
100
|
|| (${C} == "string" && ${g} && ${g} == +${g})`).assign(O,(0,a._)`+${g}`);return;case"integer":p.elseIf((0,a._)`${C} === "boolean" || ${g} === null
|
|
101
101
|
|| (${C} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(O,(0,a._)`+${g}`);return;case"boolean":p.elseIf((0,a._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(O,!1).elseIf((0,a._)`${g} === "true" || ${g} === 1`).assign(O,!0);return;case"null":p.elseIf((0,a._)`${g} === "" || ${g} === 0 || ${g} === false`),p.assign(O,null);return;case"array":p.elseIf((0,a._)`${C} === "string" || ${C} === "number"
|
|
102
|
-
|| ${C} === "boolean" || ${g} === null`).assign(O,(0,a._)`[${g}]`)}}}function m({gen:b,parentData:w,parentDataProperty:E},p){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,p))}function d(b,w,E,p=n.Correct){const g=p===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=C((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=C();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return p===n.Correct?S:(0,a.not)(S);function C(O=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,O,E?(0,a._)`isFinite(${w})`:a.nil)}}Xt.checkDataType=d;function h(b,w,E,p){if(b.length===1)return d(b[0],w,E,p);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const C=(0,a._)`typeof ${w} != "object"`;g=S.null?C:(0,a._)`!${w} || ${C}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const C in S)g=(0,a.and)(g,d(C,w,E,p));return g}Xt.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)}Xt.reportTypeError=v;function y(b){const{gen:w,data:E,schema:p}=b,g=(0,i.schemaRefOrVal)(b,p,"type");return{gen:w,keyword:"type",data:E,schema:p.type,schemaCode:g,schemaValue:g,parentSchema:p,params:{},it:b}}return Xt}var ds={},cg;function pN(){if(cg)return ds;cg=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.assignDefaults=void 0;const e=Be(),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))}ds.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 m=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return ds}var tn={},ht={},ug;function mn(){if(ug)return ht;ug=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;const e=Be(),t=et(),r=Aa(),a=et();function i(b,w){const{gen:E,data:p,it:g}=b;E.if(u(E,p,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}ht.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},p,g){return(0,e.or)(...p.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}ht.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}ht.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=o;function c(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}ht.isOwnProperty=c;function l(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return p?(0,e._)`${g} && ${c(b,w,E)}`:g}ht.propertyInData=l;function u(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return p?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}ht.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}ht.allSchemaProperties=f;function m(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}ht.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:p,schemaPath:g,errorPath:S},it:C},O,_,x){const A=x?(0,e._)`${b}, ${w}, ${p}${g}`:w,N=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,C.parentData],[r.default.parentDataProperty,C.parentDataProperty],[r.default.rootData,r.default.rootData]];C.opts.dynamicRef&&N.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${A}, ${E.object(...N)}`;return _!==e.nil?(0,e._)`${O}.call(${_}, ${I})`:(0,e._)`${O}(${I})`}ht.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const p=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,p);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${p})`})}ht.usePattern=k;function v(b){const{gen:w,data:E,keyword:p,it:g}=b,S=w.name("valid");if(g.allErrors){const O=w.let("valid",!0);return C(()=>w.assign(O,!1)),O}return w.var(S,!0),C(()=>w.break()),S;function C(O){const _=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,_,x=>{b.subschema({keyword:p,dataProp:x,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),O)})}}ht.validateArray=v;function y(b){const{gen:w,schema:E,keyword:p,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(_=>(0,t.alwaysValidSchema)(g,_))&&!g.opts.unevaluated)return;const C=w.let("valid",!1),O=w.name("_valid");w.block(()=>E.forEach((_,x)=>{const A=b.subschema({keyword:p,schemaProp:x,compositeRule:!0},O);w.assign(C,(0,e._)`${C} || ${O}`),b.mergeValidEvaluated(A,O)||w.if((0,e.not)(C))})),b.result(C,()=>b.reset(),()=>b.error(!0))}return ht.validateUnion=y,ht}var fg;function hN(){if(fg)return tn;fg=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.validateKeywordUsage=tn.validSchemaType=tn.funcKeywordCode=tn.macroKeywordCode=void 0;const e=Be(),t=Aa(),r=mn(),a=kc();function i(m,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=m,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const p=h.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},p),m.pass(p,()=>m.error(!0))}tn.macroKeywordCode=i;function n(m,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=m;c(E,d);const p=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,p),S=k.let("valid");m.block$data(S,C),m.ok((h=d.valid)!==null&&h!==void 0?h:S);function C(){if(d.errors===!1)x(),d.modifying&&s(m),A(()=>m.error());else{const N=d.async?O():_();d.modifying&&s(m),A(()=>o(m,N))}}function O(){const N=k.let("ruleErrs",null);return k.try(()=>x((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(N,(0,e._)`${I}.errors`),()=>k.throw(I))),N}function _(){const N=(0,e._)`${g}.errors`;return k.assign(N,null),x(e.nil),N}function x(N=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,F=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${N}${(0,r.callValidateCode)(m,g,I,F)}`,d.modifying)}function A(N){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),N)}}tn.funcKeywordCode=n;function s(m){const{gen:d,data:h,it:k}=m;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(m,d){const{gen:h}=m;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)(m)},()=>m.error())}function c({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function l(m,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(m,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||h&&typeof m>"u")}tn.validSchemaType=u;function f({schema:m,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(m,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[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 tn.validateKeywordUsage=f,tn}var qn={},dg;function gN(){if(dg)return qn;dg=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.extendSubschemaMode=qn.extendSubschemaData=qn.getSubschema=void 0;const e=Be(),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 m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[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')}qn.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:m}=s;if(o!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=s,y=m.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:m.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]}}qn.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 qn.extendSubschemaMode=i,qn}var cr={},_u,mg;function n0(){return mg||(mg=1,_u=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}),_u}var Ou={exports:{}},pg;function yN(){if(pg)return Ou.exports;pg=1;var e=Ou.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,m){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,l,u,f,m);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,m)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Ou.exports}var hg;function wc(){if(hg)return cr;hg=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.getSchemaRefs=cr.resolveUrl=cr.normalizeId=cr._getFullPath=cr.getFullPath=cr.inlineRef=void 0;const e=et(),t=n0(),r=yN(),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}cr.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)}cr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}cr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}cr.normalizeId=f;function m(k,v,y){return y=f(y),k.resolve(v,y)}cr.resolveUrl=m;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},p=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(_,x,A,N)=>{if(N===void 0)return;const I=p+x;let F=E[N];typeof _[y]=="string"&&(F=$.call(this,_[y])),Y.call(this,_.$anchor),Y.call(this,_.$dynamicAnchor),E[x]=F;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(F?ie(F,Z):Z),S.has(Z))throw O(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?C(_,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(C(_,g[Z],Z),g[Z]=_):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 C(_,x,A){if(x!==void 0&&!t(_,x))throw O(A)}function O(_){return new Error(`reference "${_}" resolves to more than one schema`)}}return cr.getSchemaRefs=h,cr}var gg;function Sc(){if(gg)return Mn;gg=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.getData=Mn.KeywordCxt=Mn.validateFunctionCode=void 0;const e=mN(),t=Xl(),r=r0(),a=Xl(),i=pN(),n=hN(),s=gN(),o=Be(),c=Aa(),l=wc(),u=et(),f=kc();function m(q){if(p(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Mn.validateFunctionCode=m;function d({gen:q,validateName:z,schema:H,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(H,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,o._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(H,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:H,gen:G}=q;d(q,()=>{H.$comment&&z.$comment&&N(q),_(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),H.unevaluated&&y(q),C(q),I(q)})}function y(q){const{gen:z,validateName:H}=q;q.evaluated=z.const("evaluated",(0,o._)`${H}.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 H=typeof q=="object"&&q[z.schemaId];return H&&(z.code.source||z.code.process)?(0,o._)`/*# sourceURL=${H} */`:o.nil}function w(q,z){if(p(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 H in q)if(z.RULES.all[H])return!0;return!1}function p(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:H,gen:G,opts:te}=q;te.$comment&&H.$comment&&N(q),x(q),A(q);const ae=G.const("_errs",c.default.errors);C(q,ae),G.var(z,(0,o._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),O(q)}function C(q,z){if(q.opts.jtd)return $(q,[],!1,z);const H=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,H);$(q,H,!G,z)}function O(q){const{schema:z,errSchemaPath:H,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 "${H}"`)}function _(q){const{schema:z,opts:H}=q;z.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function x(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function A(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function N({gen:q,schemaEnv:z,schema:H,errSchemaPath:G,opts:te}){const ae=H.$comment;if(te.$comment===!0)q.code((0,o._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const me=(0,o.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,o._)`${c.default.self}.opts.$comment(${ae}, ${me}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:H,validateName:G,ValidationError:te,opts:ae}=q;H.$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&&F(q),z.return((0,o._)`${c.default.errors} === 0`))}function F({gen:q,evaluated:z,props:H,items:G}){H instanceof o.Name&&q.assign((0,o._)`${z}.props`,H),G instanceof o.Name&&q.assign((0,o._)`${z}.items`,G)}function $(q,z,H,G){const{gen:te,schema:ae,data:me,allErrors:ve,opts:Ce,self:Se}=q,{RULES:Re}=Se;if(ae.$ref&&(Ce.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,Re))){te.block(()=>V(q,"$ref",Re.all.$ref.definition));return}Ce.jtd||Z(q,z),te.block(()=>{for(const je of Re.rules)he(je);he(Re.post)});function he(je){(0,r.shouldUseGroup)(ae,je)&&(je.type?(te.if((0,a.checkDataType)(je.type,me,Ce.strictNumbers)),Y(q,je),z.length===1&&z[0]===je.type&&H&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,je),ve||te.if((0,o._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:H,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),H.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),D(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(H=>{T(q.dataTypes,H)||M(q,`type "${H}" not allowed by context "${q.dataTypes.join(",")}"`)}),R(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&M(q,"use allowUnionTypes to allow union type keyword")}function D(q,z){const H=q.self.RULES.all;for(const G in H){const te=H[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(me=>U(z,me))&&M(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 R(q,z){const H=[];for(const G of q.dataTypes)T(z,G)?H.push(G):z.includes("integer")&&G==="number"&&H.push("integer");q.dataTypes=H}function M(q,z){const H=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${H}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,H,G){if((0,n.validateKeywordUsage)(z,H,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=H.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=H.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=H,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,H,G){this.failResult((0,o.not)(z),H,G)}failResult(z,H,G){this.gen.if(z),G?G():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,H){this.failResult((0,o.not)(z),void 0,H)}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:H}=this;this.fail((0,o._)`${H} !== undefined && (${(0,o.or)(this.invalid$data(),z)})`)}error(z,H,G){if(H){this.setParams(H),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,H){(z?f.reportExtraError:f.reportError)(this,this.def.error,H)}$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,H){H?Object.assign(this.params,z):this.params=z}block$data(z,H,G=o.nil){this.gen.block(()=>{this.check$data(z,G),H()})}check$data(z=o.nil,H=o.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:me}=this;G.if((0,o.or)((0,o._)`${te} === undefined`,H)),z!==o.nil&&G.assign(z,!0),(ae.length||me.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==o.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:H,schemaType:G,def:te,it:ae}=this;return(0,o.or)(me(),ve());function me(){if(G.length){if(!(H instanceof o.Name))throw new Error("ajv implementation error");const Ce=Array.isArray(G)?G:[G];return(0,o._)`${(0,a.checkDataTypes)(Ce,H,ae.opts.strictNumbers,a.DataType.Wrong)}`}return o.nil}function ve(){if(te.validateSchema){const Ce=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,o._)`!${Ce}(${H})`}return o.nil}}subschema(z,H){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,H),te}mergeEvaluated(z,H){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,H)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,H)))}mergeValidEvaluated(z,H){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(H,()=>this.mergeEvaluated(z,o.Name)),!0}}Mn.KeywordCxt=B;function V(q,z,H,G){const te=new B(q,H,z);"code"in H?H.code(te,G):te.$data&&H.validate?(0,n.funcKeywordCode)(te,H):"macro"in H?(0,n.macroKeywordCode)(te,H):(H.compile||H.validate)&&(0,n.funcKeywordCode)(te,H)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:H,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 Re=+Se[1];if(te=Se[2],te==="#"){if(Re>=z)throw new Error(Ce("property/index",Re));return G[z-Re]}if(Re>z)throw new Error(Ce("data",Re));if(ae=H[z-Re],!te)return ae}let me=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,o._)`${ae}${(0,o.getProperty)((0,u.unescapeJsonPointer)(Se))}`,me=(0,o._)`${me} && ${ae}`);return me;function Ce(Se,Re){return`Cannot access ${Se} ${Re} levels up, current level is ${z}`}}return Mn.getData=Q,Mn}var jo={},yg;function om(){if(yg)return jo;yg=1,Object.defineProperty(jo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return jo.default=e,jo}var Do={},vg;function Ec(){if(vg)return Do;vg=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=wc();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 Do.default=t,Do}var Or={},bg;function lm(){if(bg)return Or;bg=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.resolveSchema=Or.getCompilingSchema=Or.resolveRef=Or.compileSchema=Or.SchemaEnv=void 0;const e=Be(),t=om(),r=Aa(),a=wc(),i=et(),n=Sc();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={}}}Or.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:p}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:p});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const C=g.scopeName("validate");v.validateName=C;const O={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:C,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 _;try{this._compilations.add(v),(0,n.validateFunctionCode)(O),g.optimize(this.opts.code.optimize);const x=g.toString();_=`${g.scopeRefs(r.default.scope)}return ${x}`,this.opts.code.process&&(_=this.opts.code.process(_,v));const N=new Function(`${r.default.self}`,`${r.default.scope}`,_)(this,this.scope.get());if(this.scope.value(C,{ref:N}),N.errors=null,N.schema=v.schema,N.schemaEnv=v,v.$async&&(N.$async=!0),this.opts.code.source===!0&&(N.source={validateName:C,validateCode:x,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:F}=O;N.evaluated={props:I instanceof e.Name?void 0:I,items:F instanceof e.Name?void 0:F,dynamicProps:I instanceof e.Name,dynamicItems:F instanceof e.Name},N.source&&(N.source.evaluated=(0,e.stringify)(N.evaluated))}return v.validate=N,v}catch(x){throw delete v.validate,delete v.validateName,_&&this.logger.error("Error compiling schema, function code:",_),x}finally{this._compilations.delete(v)}}Or.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 p=m.call(this,v,b);if(p===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(p=new s({schema:g,schemaId:S,root:v,baseId:y}))}if(p!==void 0)return v.refs[b]=l.call(this,p)}Or.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}Or.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function m(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 p=(0,a.normalizeId)(w),g=this.refs[p]||this.schemas[p];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),p===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:C}=this.opts,O=S[C];return O&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,O)),new s({schema:S,schemaId:C,root:v,baseId:E})}return k.call(this,b,g)}}Or.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 C=b[(0,i.unescapeFragment)(S)];if(C===void 0)return;b=C;const O=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&O&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,O))}let p;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);p=d.call(this,w,S)}const{schemaId:g}=this.opts;if(p=p||new s({schema:b,schemaId:g,root:w,baseId:y}),p.schema!==p.root.schema)return p}return Or}const vN="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",bN="Meta-schema for $data reference (JSON AnySchema extension proposal)",kN="object",wN=["$data"],SN={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},EN=!1,xN={$id:vN,description:bN,type:kN,required:wN,properties:SN,additionalProperties:EN};var Fo={},ms={exports:{}},Tu,kg;function a0(){if(kg)return Tu;kg=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(p){let g="",S=0,C=0;for(C=0;C<p.length;C++)if(S=p[C].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C];break}for(C+=1;C<p.length;C++){if(S=p[C].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C]}return g}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(p){return p.length=0,!0}function c(p,g,S){if(p.length){const C=n(p);if(C!=="")g.push(C);else return S.error=!0,!1;p.length=0}return!0}function l(p){let g=0;const S={error:!1,address:"",zone:""},C=[],O=[];let _=!1,x=!1,A=c;for(let N=0;N<p.length;N++){const I=p[N];if(!(I==="["||I==="]"))if(I===":"){if(_===!0&&(x=!0),!A(O,C,S))break;if(++g>7){S.error=!0;break}N>0&&p[N-1]===":"&&(_=!0),C.push(":");continue}else if(I==="%"){if(!A(O,C,S))break;A=o}else{O.push(I);continue}}return O.length&&(A===o?S.zone=O.join(""):x?C.push(O.join("")):C.push(n(O))),S.address=C.join(""),S}function u(p){if(f(p,":")<2)return{host:p,isIPV6:!1};const g=l(p);if(g.error)return{host:p,isIPV6:!1};{let S=g.address,C=g.address;return g.zone&&(S+="%"+g.zone,C+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:C}}}function f(p,g){let S=0;for(let C=0;C<p.length;C++)p[C]===g&&S++;return S}function m(p){let g=p;const S=[];let C=-1,O=0;for(;O=g.length;){if(O===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(O===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(O===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((C=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,C)),g=g.slice(C)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(p,g){const S=g?k:h;return S.lastIndex=0,p.replace(S,C=>d[C])}function y(p,g=!1){if(p.indexOf("%")===-1)return p;let S="";for(let C=0;C<p.length;C++){if(p[C]==="%"&&C+2<p.length){const O=p.slice(C+1,C+3);if(r(O)){const _=O.toUpperCase(),x=String.fromCharCode(parseInt(_,16));g&&a(x)?S+=x:S+="%"+_,C+=2;continue}}S+=p[C]}return S}function b(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){const O=C.toUpperCase(),_=String.fromCharCode(parseInt(O,16));_!=="."&&a(_)?g+=_:g+="%"+O,S+=2;continue}}i(p[S])?g+=p[S]:g+=escape(p[S])}return g}function w(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){g+="%"+C.toUpperCase(),S+=2;continue}}g+=escape(p[S])}return g}function E(p){const g=[];if(p.userinfo!==void 0&&(g.push(p.userinfo),g.push("@")),p.host!==void 0){let S=unescape(p.host);if(!t(S)){const C=u(S);C.isIPV6===!0?S=`[${C.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof p.port=="number"||typeof p.port=="string")&&(g.push(":"),g.push(String(p.port))),g.length?g.join(""):void 0}return Tu={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},Tu}var Pu,wg;function CN(){if(wg)return Pu;wg=1;const{isUUID:e}=a0(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;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 m(p){const g=p;return g.nss=(p.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:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Pu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Pu}var Sg;function AN(){if(Sg)return ms.exports;Sg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=a0(),{SCHEMES:l,getSchemeHandler:u}=CN();function f(C,O){return typeof C=="string"?C=E(C,O):typeof C=="object"&&(C=w(k(C,O),O)),C}function m(C,O,_){const x=_?Object.assign({scheme:"null"},_):{scheme:"null"},A=d(w(C,x),w(O,x),x,!0);return x.skipEscape=!0,k(A,x)}function d(C,O,_,x){const A={};return x||(C=w(k(C,_),_),O=w(k(O,_),_)),_=_||{},!_.tolerant&&O.scheme?(A.scheme=O.scheme,A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.path?(O.path[0]==="/"?A.path=t(O.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?A.path="/"+O.path:C.path?A.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+O.path:A.path=O.path,A.path=t(A.path)),A.query=O.query):(A.path=C.path,O.query!==void 0?A.query=O.query:A.query=C.query),A.userinfo=C.userinfo,A.host=C.host,A.port=C.port),A.scheme=C.scheme),A.fragment=O.fragment,A}function h(C,O,_){const x=g(C,_),A=g(O,_);return x!==void 0&&A!==void 0&&x.toLowerCase()===A.toLowerCase()}function k(C,O){const _={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:""},x=Object.assign({},O),A=[],N=u(x.scheme||_.scheme);N&&N.serialize&&N.serialize(_,x),_.path!==void 0&&(x.skipEscape?_.path=a(_.path):(_.path=n(_.path),_.scheme!==void 0&&(_.path=_.path.split("%3A").join(":")))),x.reference!=="suffix"&&_.scheme&&A.push(_.scheme,":");const I=r(_);if(I!==void 0&&(x.reference!=="suffix"&&A.push("//"),A.push(I),_.path&&_.path[0]!=="/"&&A.push("/")),_.path!==void 0){let F=_.path;!x.absolutePath&&(!N||!N.absolutePath)&&(F=t(F)),I===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),A.push(F)}return _.query!==void 0&&A.push("?",_.query),_.fragment!==void 0&&A.push("#",_.fragment),A.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(C,O){if(O[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 b(C,O){const _=Object.assign({},O),x={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let A=!1,N=!1;_.reference==="suffix"&&(_.scheme?C=_.scheme+":"+C:C="//"+C);const I=C.match(v);if(I){x.scheme=I[1],x.userinfo=I[3],x.host=I[4],x.port=parseInt(I[5],10),x.path=I[6]||"",x.query=I[7],x.fragment=I[8],isNaN(x.port)&&(x.port=I[5]);const F=y(x,I);if(F!==void 0&&(x.error=x.error||F,A=!0),x.host)if(o(x.host)===!1){const Z=e(x.host);x.host=Z.host.toLowerCase(),N=Z.isIPV6}else N=!0;x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&x.query===void 0&&!x.path?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==x.reference&&(x.error=x.error||"URI is not a "+_.reference+" reference.");const $=u(_.scheme||x.scheme);if(!_.unicodeSupport&&(!$||!$.unicodeSupport)&&x.host&&(_.domainHost||$&&$.domainHost)&&N===!1&&c(x.host))try{x.host=URL.domainToASCII(x.host.toLowerCase())}catch(Y){x.error=x.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(C.indexOf("%")!==-1&&(x.scheme!==void 0&&(x.scheme=unescape(x.scheme)),x.host!==void 0&&(x.host=s(unescape(x.host),N))),x.path&&(x.path=i(x.path)),x.fragment))try{x.fragment=encodeURI(decodeURIComponent(x.fragment))}catch{x.error=x.error||"URI malformed"}$&&$.parse&&$.parse(x,_)}else x.error=x.error||"URI can not be parsed.";return{parsed:x,malformedAuthorityOrPort:A}}function w(C,O){return b(C,O).parsed}function E(C,O){return p(C,O).normalized}function p(C,O){const{parsed:_,malformedAuthorityOrPort:x}=b(C,O);return{normalized:x?C:k(_,O),malformedAuthorityOrPort:x}}function g(C,O){if(typeof C=="string"){const{normalized:_,malformedAuthorityOrPort:x}=p(C,O);return x?void 0:_}if(typeof C=="object")return k(C,O)}const S={SCHEMES:l,normalize:f,resolve:m,resolveComponent:d,equal:h,serialize:k,parse:w};return ms.exports=S,ms.exports.default=S,ms.exports.fastUri=S,ms.exports}var Eg;function _N(){if(Eg)return Fo;Eg=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=AN();return e.code='require("ajv/dist/runtime/uri").default',Fo.default=e,Fo}var xg;function ON(){return xg||(xg=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=Sc();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Be();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=om(),i=Ec(),n=t0(),s=lm(),o=Be(),c=wc(),l=Xl(),u=et(),f=xN,m=_N(),d=(P,D)=>new RegExp(P,D);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 D,U,T,R,M,B,V,K,J,Q,q,z,H,G,te,ae,me,ve,Ce,Se,Re,he,je,Ve,be;const ee=P.strict,re=(D=P.code)===null||D===void 0?void 0:D.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,pe=(R=P.uriResolver)!==null&&R!==void 0?R:m.default;return{strictSchema:(B=(M=P.strictSchema)!==null&&M!==void 0?M: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=(H=P.strictRequired)!==null&&H!==void 0?H: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:(me=P.meta)!==null&&me!==void 0?me:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ce=P.inlineRefs)!==null&&Ce!==void 0?Ce:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(Re=P.addUsedSchema)!==null&&Re!==void 0?Re:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(je=P.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(Ve=P.unicodeRegExp)!==null&&Ve!==void 0?Ve:!0,int32range:(be=P.int32range)!==null&&be!==void 0?be:!0,uriResolver:pe}}class E{constructor(D={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...w(D)};const{es5:U,lines:T}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=A(D.logger);const R=D.validateFormats;D.validateFormats=!1,this.RULES=(0,n.getRules)(),p.call(this,v,D,"NOT SUPPORTED"),p.call(this,y,D,"DEPRECATED","warn"),this._metaOpts=_.call(this),D.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&O.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),S.call(this),D.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:U,schemaId:T}=this.opts;let R=f;T==="id"&&(R={...f},R.id=R.$id,delete R.$id),U&&D&&this.addMetaSchema(R,R[T],!1)}defaultMeta(){const{meta:D,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[U]||D:void 0}validate(D,U){let T;if(typeof D=="string"){if(T=this.getSchema(D),!T)throw new Error(`no schema with key or ref "${D}"`)}else T=this.compile(D);const R=T(U);return"$async"in T||(this.errors=T.errors),R}compile(D,U){const T=this._addSchema(D,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(D,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return R.call(this,D,U);async function R(Q,q){await M.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function M(Q){Q&&!this.getSchema(Q)&&await R.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 M.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(D,U,T,R=this.opts.validateSchema){if(Array.isArray(D)){for(const B of D)this.addSchema(B,void 0,T,R);return this}let M;if(typeof D=="object"){const{schemaId:B}=this.opts;if(M=D[B],M!==void 0&&typeof M!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||M),this._checkUnique(U),this.schemas[U]=this._addSchema(D,T,U,R,!0),this}addMetaSchema(D,U,T=this.opts.validateSchema){return this.addSchema(D,U,!0,T),this}validateSchema(D,U){if(typeof D=="boolean")return!0;let T;if(T=D.$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 R=this.validate(T,D);if(!R&&U){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return R}getSchema(D){let U;for(;typeof(U=g.call(this,D))=="string";)D=U;if(U===void 0){const{schemaId:T}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:T});if(U=s.resolveSchema.call(this,R,D),!U)return;this.refs[D]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,D);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const U=D;this._cache.delete(U);let T=D[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(D){for(const U of D)this.addKeyword(U);return this}addKeyword(D,U){let T;if(typeof D=="string")T=D,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof D=="object"&&U===void 0){if(U=D,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,M=>F.call(this,M)),this;Y.call(this,U);const R={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,R.type.length===0?M=>F.call(this,M,R):M=>R.type.forEach(B=>F.call(this,M,R,B))),this}getKeyword(D){const U=this.RULES.all[D];return typeof U=="object"?U.definition:!!U}removeKeyword(D){const{RULES:U}=this;delete U.keywords[D],delete U.all[D];for(const T of U.rules){const R=T.rules.findIndex(M=>M.keyword===D);R>=0&&T.rules.splice(R,1)}return this}addFormat(D,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[D]=U,this}errorsText(D=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!D||D.length===0?"No errors":D.map(R=>`${T}${R.instancePath} ${R.message}`).reduce((R,M)=>R+U+M)}$dataMetaSchema(D,U){const T=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const R of U){const M=R.split("/").slice(1);let B=D;for(const V of M)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 D}_removeAllSchemas(D,U){for(const T in D){const R=D[T];(!U||U.test(T))&&(typeof R=="string"?delete D[T]:R&&!R.meta&&(this._cache.delete(R.schema),delete D[T]))}}_addSchema(D,U,T,R=this.opts.validateSchema,M=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof D=="object")B=D[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(D);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,D,T);return K=new s.SchemaEnv({schema:D,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),M&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),R&&this.validateSchema(D,!0),K}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function p(P,D,U,T="error"){for(const R in P){const M=R;M in D&&this.logger[T](`${U}: option ${R}. ${P[M]}`)}}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 D in P)this.addSchema(P[D],D)}function C(){for(const P in this.opts.formats){const D=this.opts.formats[P];D&&this.addFormat(P,D)}}function O(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in P){const U=P[D];U.keyword||(U.keyword=D),this.addKeyword(U)}}function _(){const P={...this.opts};for(const D of h)delete P[D];return P}const x={log(){},warn(){},error(){}};function A(P){if(P===!1)return x;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 N=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,D){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!N.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function F(P,D,U){var T;const R=D==null?void 0:D.post;if(U&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let B=R?M.post:M.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},M.rules.push(B)),M.keywords[P]=!0,!D)return;const V={keyword:P,definition:{...D,type:(0,l.getJSONTypes)(D.type),schemaType:(0,l.getJSONTypes)(D.schemaType)}};D.before?$.call(this,B,V,D.before):B.rules.push(V),M.all[P]=V,(T=D.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,D,U){const T=P.rules.findIndex(R=>R.keyword===U);T>=0?P.rules.splice(T,0,D):(P.rules.push(D),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:D}=P;D!==void 0&&(P.$data&&this.opts.$data&&(D=ie(D)),P.validateSchema=this.compile(D,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Su)),Su}var Mo={},Lo={},qo={},Cg;function TN(){if(Cg)return qo;Cg=1,Object.defineProperty(qo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return qo.default=e,qo}var ta={},Ag;function PN(){if(Ag)return ta;Ag=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.callRef=ta.getValidate=void 0;const e=Ec(),t=mn(),r=Be(),a=Aa(),i=lm(),n=et(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:m}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=m,{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(m.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return p(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 p(S){const C=o(l,S);c(l,C,S,S.$async)}function g(S){const C=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=u.name("valid"),_=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:C,errSchemaPath:f},O);l.mergeEvaluated(_),l.ok(O)}}};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`}ta.getValidate=o;function c(l,u,f,m){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;m?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)},C=>{d.if((0,r._)`!(${C} instanceof ${h.ValidationError})`,()=>d.throw(C)),p(C),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>p(u))}function p(S){const C=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${C} : ${a.default.vErrors}.concat(${C})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var C;if(!h.opts.unevaluated)return;const O=(C=f==null?void 0:f.validate)===null||C===void 0?void 0:C.evaluated;if(h.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(h.props=n.mergeEvaluated.props(d,O.props,h.props));else{const _=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,_,h.props,r.Name)}if(h.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(h.items=n.mergeEvaluated.items(d,O.items,h.items));else{const _=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,_,h.items,r.Name)}}}return ta.callRef=c,ta.default=s,ta}var _g;function IN(){if(_g)return Lo;_g=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e=TN(),t=PN(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Lo.default=r,Lo}var zo={},$o={},Og;function RN(){if(Og)return $o;Og=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Be(),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 $o.default=i,$o}var Uo={},Tg;function NN(){if(Tg)return Uo;Tg=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Be(),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 Uo.default=r,Uo}var Bo={},Vo={},Pg;function jN(){if(Pg)return Vo;Pg=1,Object.defineProperty(Vo,"__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 Vo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Vo}var Ig;function DN(){if(Ig)return Bo;Ig=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Be(),t=et(),r=jN(),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 Bo.default=i,Bo}var Ho={},Rg;function FN(){if(Rg)return Ho;Rg=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=mn(),t=et(),r=Be(),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,m=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}, ${m}).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 Ho.default=i,Ho}var Wo={},Ng;function MN(){if(Ng)return Wo;Ng=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=Be(),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 Wo.default=r,Wo}var Ko={},jg;function LN(){if(jg)return Ko;jg=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=mn(),t=Be(),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:m}=f;if(!u&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?h():k(),m.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 p=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${p}" (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,m.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),s.forOf(b,c,()=>{s.assign(w,(0,e.propertyInData)(s,l,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Ko.default=i,Ko}var Go={},Dg;function qN(){if(Dg)return Go;Dg=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Be(),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 Go.default=r,Go}var Jo={},Yo={},Fg;function cm(){if(Fg)return Yo;Fg=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=n0();return e.code='require("ajv/dist/runtime/equal").default',Yo.default=e,Yo}var Mg;function zN(){if(Mg)return Jo;Mg=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Xl(),t=Be(),r=et(),a=cm(),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:m,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._)`${m} === false`),s.ok(h);function v(){const E=o.let("i",(0,t._)`${c}.length`),p=o.let("j");s.setParams({i:E,j:p}),o.assign(h,!0),o.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,p))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,p){const g=o.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),C=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 ${C}[${g}] == "number"`,()=>{o.assign(p,(0,t._)`${C}[${g}]`),s.error(),o.assign(h,!1).break()}).code((0,t._)`${C}[${g}] = ${E}`)})}function w(E,p){const g=(0,r.useFunc)(o,a.default),S=o.name("outer");o.label(S).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${p} = ${E}; ${p}--;`,()=>o.if((0,t._)`${g}(${c}[${E}], ${c}[${p}])`,()=>{s.error(),o.assign(h,!1).break(S)})))}}};return Jo.default=n,Jo}var Xo={},Lg;function $N(){if(Lg)return Xo;Lg=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),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 Xo.default=i,Xo}var Zo={},qg;function UN(){if(qg)return Zo;qg=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),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 m=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(m||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 Zo.default=i,Zo}var zg;function BN(){if(zg)return zo;zg=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=RN(),t=NN(),r=DN(),a=FN(),i=MN(),n=LN(),s=qN(),o=zN(),c=$N(),l=UN(),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 zo.default=u,zo}var Qo={},gi={},$g;function i0(){if($g)return gi;$g=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.validateAdditionalItems=void 0;const e=Be(),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 m=o.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){o.forRange("i",s.length,m,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||o.if((0,e.not)(h),()=>o.break())})}}return gi.validateAdditionalItems=i,gi.default=a,gi}var el={},yi={},Ug;function s0(){if(Ug)return yi;Ug=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.validateTuple=void 0;const e=Be(),t=et(),r=mn(),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:m}=n;k(l),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(c,o.length,m.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);o.forEach((v,y)=>{(0,t.alwaysValidSchema)(m,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}=m,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(y.strictTuples&&!E){const p=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,p,y.strictTuples)}}}return yi.validateTuple=i,yi.default=a,yi}var Bg;function VN(){if(Bg)return el;Bg=1,Object.defineProperty(el,"__esModule",{value:!0});const e=s0(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return el.default=t,el}var tl={},Vg;function HN(){if(Vg)return tl;Vg=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Be(),t=et(),r=mn(),a=i0(),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 tl.default=n,tl}var rl={},Hg;function WN(){if(Hg)return rl;Hg=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Be(),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:m,maxContains:d}=o;l.opts.next?(u=m===void 0?1:m,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,p=>{i.subschema({keyword:"contains",dataProp:p,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 rl.default=a,rl}var Iu={},Wg;function KN(){return Wg||(Wg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Be(),r=et(),a=mn();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
|
+
|| ${C} === "boolean" || ${g} === null`).assign(O,(0,a._)`[${g}]`)}}}function m({gen:b,parentData:w,parentDataProperty:E},p){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,p))}function d(b,w,E,p=n.Correct){const g=p===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=C((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=C();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return p===n.Correct?S:(0,a.not)(S);function C(O=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,O,E?(0,a._)`isFinite(${w})`:a.nil)}}Xt.checkDataType=d;function h(b,w,E,p){if(b.length===1)return d(b[0],w,E,p);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const C=(0,a._)`typeof ${w} != "object"`;g=S.null?C:(0,a._)`!${w} || ${C}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const C in S)g=(0,a.and)(g,d(C,w,E,p));return g}Xt.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)}Xt.reportTypeError=v;function y(b){const{gen:w,data:E,schema:p}=b,g=(0,i.schemaRefOrVal)(b,p,"type");return{gen:w,keyword:"type",data:E,schema:p.type,schemaCode:g,schemaValue:g,parentSchema:p,params:{},it:b}}return Xt}var ds={},ug;function gN(){if(ug)return ds;ug=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.assignDefaults=void 0;const e=Be(),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))}ds.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 m=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return ds}var tn={},ht={},fg;function mn(){if(fg)return ht;fg=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;const e=Be(),t=et(),r=Aa(),a=et();function i(b,w){const{gen:E,data:p,it:g}=b;E.if(u(E,p,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}ht.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},p,g){return(0,e.or)(...p.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}ht.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}ht.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=o;function c(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}ht.isOwnProperty=c;function l(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return p?(0,e._)`${g} && ${c(b,w,E)}`:g}ht.propertyInData=l;function u(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return p?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}ht.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}ht.allSchemaProperties=f;function m(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}ht.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:p,schemaPath:g,errorPath:S},it:C},O,_,x){const A=x?(0,e._)`${b}, ${w}, ${p}${g}`:w,N=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,C.parentData],[r.default.parentDataProperty,C.parentDataProperty],[r.default.rootData,r.default.rootData]];C.opts.dynamicRef&&N.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${A}, ${E.object(...N)}`;return _!==e.nil?(0,e._)`${O}.call(${_}, ${I})`:(0,e._)`${O}(${I})`}ht.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const p=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,p);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${p})`})}ht.usePattern=k;function v(b){const{gen:w,data:E,keyword:p,it:g}=b,S=w.name("valid");if(g.allErrors){const O=w.let("valid",!0);return C(()=>w.assign(O,!1)),O}return w.var(S,!0),C(()=>w.break()),S;function C(O){const _=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,_,x=>{b.subschema({keyword:p,dataProp:x,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),O)})}}ht.validateArray=v;function y(b){const{gen:w,schema:E,keyword:p,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(_=>(0,t.alwaysValidSchema)(g,_))&&!g.opts.unevaluated)return;const C=w.let("valid",!1),O=w.name("_valid");w.block(()=>E.forEach((_,x)=>{const A=b.subschema({keyword:p,schemaProp:x,compositeRule:!0},O);w.assign(C,(0,e._)`${C} || ${O}`),b.mergeValidEvaluated(A,O)||w.if((0,e.not)(C))})),b.result(C,()=>b.reset(),()=>b.error(!0))}return ht.validateUnion=y,ht}var dg;function yN(){if(dg)return tn;dg=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.validateKeywordUsage=tn.validSchemaType=tn.funcKeywordCode=tn.macroKeywordCode=void 0;const e=Be(),t=Aa(),r=mn(),a=kc();function i(m,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=m,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const p=h.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},p),m.pass(p,()=>m.error(!0))}tn.macroKeywordCode=i;function n(m,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=m;c(E,d);const p=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,p),S=k.let("valid");m.block$data(S,C),m.ok((h=d.valid)!==null&&h!==void 0?h:S);function C(){if(d.errors===!1)x(),d.modifying&&s(m),A(()=>m.error());else{const N=d.async?O():_();d.modifying&&s(m),A(()=>o(m,N))}}function O(){const N=k.let("ruleErrs",null);return k.try(()=>x((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(N,(0,e._)`${I}.errors`),()=>k.throw(I))),N}function _(){const N=(0,e._)`${g}.errors`;return k.assign(N,null),x(e.nil),N}function x(N=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,F=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${N}${(0,r.callValidateCode)(m,g,I,F)}`,d.modifying)}function A(N){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),N)}}tn.funcKeywordCode=n;function s(m){const{gen:d,data:h,it:k}=m;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(m,d){const{gen:h}=m;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)(m)},()=>m.error())}function c({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function l(m,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(m,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||h&&typeof m>"u")}tn.validSchemaType=u;function f({schema:m,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(m,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[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 tn.validateKeywordUsage=f,tn}var qn={},mg;function vN(){if(mg)return qn;mg=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.extendSubschemaMode=qn.extendSubschemaData=qn.getSubschema=void 0;const e=Be(),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 m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[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')}qn.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:m}=s;if(o!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=s,y=m.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:m.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]}}qn.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 qn.extendSubschemaMode=i,qn}var cr={},_u,pg;function a0(){return pg||(pg=1,_u=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}),_u}var Ou={exports:{}},hg;function bN(){if(hg)return Ou.exports;hg=1;var e=Ou.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,m){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,l,u,f,m);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,m)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Ou.exports}var gg;function wc(){if(gg)return cr;gg=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.getSchemaRefs=cr.resolveUrl=cr.normalizeId=cr._getFullPath=cr.getFullPath=cr.inlineRef=void 0;const e=et(),t=a0(),r=bN(),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}cr.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)}cr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}cr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}cr.normalizeId=f;function m(k,v,y){return y=f(y),k.resolve(v,y)}cr.resolveUrl=m;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},p=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(_,x,A,N)=>{if(N===void 0)return;const I=p+x;let F=E[N];typeof _[y]=="string"&&(F=$.call(this,_[y])),Y.call(this,_.$anchor),Y.call(this,_.$dynamicAnchor),E[x]=F;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(F?ie(F,Z):Z),S.has(Z))throw O(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?C(_,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(C(_,g[Z],Z),g[Z]=_):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 C(_,x,A){if(x!==void 0&&!t(_,x))throw O(A)}function O(_){return new Error(`reference "${_}" resolves to more than one schema`)}}return cr.getSchemaRefs=h,cr}var yg;function Sc(){if(yg)return Mn;yg=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.getData=Mn.KeywordCxt=Mn.validateFunctionCode=void 0;const e=hN(),t=Xl(),r=n0(),a=Xl(),i=gN(),n=yN(),s=vN(),o=Be(),c=Aa(),l=wc(),u=et(),f=kc();function m(q){if(p(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Mn.validateFunctionCode=m;function d({gen:q,validateName:z,schema:H,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(H,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,o._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(H,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:H,gen:G}=q;d(q,()=>{H.$comment&&z.$comment&&N(q),_(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),H.unevaluated&&y(q),C(q),I(q)})}function y(q){const{gen:z,validateName:H}=q;q.evaluated=z.const("evaluated",(0,o._)`${H}.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 H=typeof q=="object"&&q[z.schemaId];return H&&(z.code.source||z.code.process)?(0,o._)`/*# sourceURL=${H} */`:o.nil}function w(q,z){if(p(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 H in q)if(z.RULES.all[H])return!0;return!1}function p(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:H,gen:G,opts:te}=q;te.$comment&&H.$comment&&N(q),x(q),A(q);const ae=G.const("_errs",c.default.errors);C(q,ae),G.var(z,(0,o._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),O(q)}function C(q,z){if(q.opts.jtd)return $(q,[],!1,z);const H=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,H);$(q,H,!G,z)}function O(q){const{schema:z,errSchemaPath:H,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 "${H}"`)}function _(q){const{schema:z,opts:H}=q;z.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function x(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function A(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function N({gen:q,schemaEnv:z,schema:H,errSchemaPath:G,opts:te}){const ae=H.$comment;if(te.$comment===!0)q.code((0,o._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const me=(0,o.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,o._)`${c.default.self}.opts.$comment(${ae}, ${me}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:H,validateName:G,ValidationError:te,opts:ae}=q;H.$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&&F(q),z.return((0,o._)`${c.default.errors} === 0`))}function F({gen:q,evaluated:z,props:H,items:G}){H instanceof o.Name&&q.assign((0,o._)`${z}.props`,H),G instanceof o.Name&&q.assign((0,o._)`${z}.items`,G)}function $(q,z,H,G){const{gen:te,schema:ae,data:me,allErrors:ve,opts:Ce,self:Se}=q,{RULES:Re}=Se;if(ae.$ref&&(Ce.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,Re))){te.block(()=>V(q,"$ref",Re.all.$ref.definition));return}Ce.jtd||Z(q,z),te.block(()=>{for(const je of Re.rules)he(je);he(Re.post)});function he(je){(0,r.shouldUseGroup)(ae,je)&&(je.type?(te.if((0,a.checkDataType)(je.type,me,Ce.strictNumbers)),Y(q,je),z.length===1&&z[0]===je.type&&H&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,je),ve||te.if((0,o._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:H,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),H.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),D(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(H=>{T(q.dataTypes,H)||M(q,`type "${H}" not allowed by context "${q.dataTypes.join(",")}"`)}),R(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&M(q,"use allowUnionTypes to allow union type keyword")}function D(q,z){const H=q.self.RULES.all;for(const G in H){const te=H[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(me=>U(z,me))&&M(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 R(q,z){const H=[];for(const G of q.dataTypes)T(z,G)?H.push(G):z.includes("integer")&&G==="number"&&H.push("integer");q.dataTypes=H}function M(q,z){const H=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${H}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,H,G){if((0,n.validateKeywordUsage)(z,H,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=H.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=H.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=H,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,H,G){this.failResult((0,o.not)(z),H,G)}failResult(z,H,G){this.gen.if(z),G?G():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,H){this.failResult((0,o.not)(z),void 0,H)}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:H}=this;this.fail((0,o._)`${H} !== undefined && (${(0,o.or)(this.invalid$data(),z)})`)}error(z,H,G){if(H){this.setParams(H),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,H){(z?f.reportExtraError:f.reportError)(this,this.def.error,H)}$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,H){H?Object.assign(this.params,z):this.params=z}block$data(z,H,G=o.nil){this.gen.block(()=>{this.check$data(z,G),H()})}check$data(z=o.nil,H=o.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:me}=this;G.if((0,o.or)((0,o._)`${te} === undefined`,H)),z!==o.nil&&G.assign(z,!0),(ae.length||me.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==o.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:H,schemaType:G,def:te,it:ae}=this;return(0,o.or)(me(),ve());function me(){if(G.length){if(!(H instanceof o.Name))throw new Error("ajv implementation error");const Ce=Array.isArray(G)?G:[G];return(0,o._)`${(0,a.checkDataTypes)(Ce,H,ae.opts.strictNumbers,a.DataType.Wrong)}`}return o.nil}function ve(){if(te.validateSchema){const Ce=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,o._)`!${Ce}(${H})`}return o.nil}}subschema(z,H){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,H),te}mergeEvaluated(z,H){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,H)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,H)))}mergeValidEvaluated(z,H){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(H,()=>this.mergeEvaluated(z,o.Name)),!0}}Mn.KeywordCxt=B;function V(q,z,H,G){const te=new B(q,H,z);"code"in H?H.code(te,G):te.$data&&H.validate?(0,n.funcKeywordCode)(te,H):"macro"in H?(0,n.macroKeywordCode)(te,H):(H.compile||H.validate)&&(0,n.funcKeywordCode)(te,H)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:H,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 Re=+Se[1];if(te=Se[2],te==="#"){if(Re>=z)throw new Error(Ce("property/index",Re));return G[z-Re]}if(Re>z)throw new Error(Ce("data",Re));if(ae=H[z-Re],!te)return ae}let me=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,o._)`${ae}${(0,o.getProperty)((0,u.unescapeJsonPointer)(Se))}`,me=(0,o._)`${me} && ${ae}`);return me;function Ce(Se,Re){return`Cannot access ${Se} ${Re} levels up, current level is ${z}`}}return Mn.getData=Q,Mn}var jo={},vg;function om(){if(vg)return jo;vg=1,Object.defineProperty(jo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return jo.default=e,jo}var Do={},bg;function Ec(){if(bg)return Do;bg=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=wc();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 Do.default=t,Do}var Or={},kg;function lm(){if(kg)return Or;kg=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.resolveSchema=Or.getCompilingSchema=Or.resolveRef=Or.compileSchema=Or.SchemaEnv=void 0;const e=Be(),t=om(),r=Aa(),a=wc(),i=et(),n=Sc();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={}}}Or.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:p}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:p});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const C=g.scopeName("validate");v.validateName=C;const O={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:C,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 _;try{this._compilations.add(v),(0,n.validateFunctionCode)(O),g.optimize(this.opts.code.optimize);const x=g.toString();_=`${g.scopeRefs(r.default.scope)}return ${x}`,this.opts.code.process&&(_=this.opts.code.process(_,v));const N=new Function(`${r.default.self}`,`${r.default.scope}`,_)(this,this.scope.get());if(this.scope.value(C,{ref:N}),N.errors=null,N.schema=v.schema,N.schemaEnv=v,v.$async&&(N.$async=!0),this.opts.code.source===!0&&(N.source={validateName:C,validateCode:x,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:F}=O;N.evaluated={props:I instanceof e.Name?void 0:I,items:F instanceof e.Name?void 0:F,dynamicProps:I instanceof e.Name,dynamicItems:F instanceof e.Name},N.source&&(N.source.evaluated=(0,e.stringify)(N.evaluated))}return v.validate=N,v}catch(x){throw delete v.validate,delete v.validateName,_&&this.logger.error("Error compiling schema, function code:",_),x}finally{this._compilations.delete(v)}}Or.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 p=m.call(this,v,b);if(p===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(p=new s({schema:g,schemaId:S,root:v,baseId:y}))}if(p!==void 0)return v.refs[b]=l.call(this,p)}Or.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}Or.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function m(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 p=(0,a.normalizeId)(w),g=this.refs[p]||this.schemas[p];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),p===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:C}=this.opts,O=S[C];return O&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,O)),new s({schema:S,schemaId:C,root:v,baseId:E})}return k.call(this,b,g)}}Or.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 C=b[(0,i.unescapeFragment)(S)];if(C===void 0)return;b=C;const O=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&O&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,O))}let p;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);p=d.call(this,w,S)}const{schemaId:g}=this.opts;if(p=p||new s({schema:b,schemaId:g,root:w,baseId:y}),p.schema!==p.root.schema)return p}return Or}const kN="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",wN="Meta-schema for $data reference (JSON AnySchema extension proposal)",SN="object",EN=["$data"],xN={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},CN=!1,AN={$id:kN,description:wN,type:SN,required:EN,properties:xN,additionalProperties:CN};var Fo={},ms={exports:{}},Tu,wg;function i0(){if(wg)return Tu;wg=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(p){let g="",S=0,C=0;for(C=0;C<p.length;C++)if(S=p[C].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C];break}for(C+=1;C<p.length;C++){if(S=p[C].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C]}return g}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(p){return p.length=0,!0}function c(p,g,S){if(p.length){const C=n(p);if(C!=="")g.push(C);else return S.error=!0,!1;p.length=0}return!0}function l(p){let g=0;const S={error:!1,address:"",zone:""},C=[],O=[];let _=!1,x=!1,A=c;for(let N=0;N<p.length;N++){const I=p[N];if(!(I==="["||I==="]"))if(I===":"){if(_===!0&&(x=!0),!A(O,C,S))break;if(++g>7){S.error=!0;break}N>0&&p[N-1]===":"&&(_=!0),C.push(":");continue}else if(I==="%"){if(!A(O,C,S))break;A=o}else{O.push(I);continue}}return O.length&&(A===o?S.zone=O.join(""):x?C.push(O.join("")):C.push(n(O))),S.address=C.join(""),S}function u(p){if(f(p,":")<2)return{host:p,isIPV6:!1};const g=l(p);if(g.error)return{host:p,isIPV6:!1};{let S=g.address,C=g.address;return g.zone&&(S+="%"+g.zone,C+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:C}}}function f(p,g){let S=0;for(let C=0;C<p.length;C++)p[C]===g&&S++;return S}function m(p){let g=p;const S=[];let C=-1,O=0;for(;O=g.length;){if(O===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(O===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(O===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((C=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,C)),g=g.slice(C)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(p,g){const S=g?k:h;return S.lastIndex=0,p.replace(S,C=>d[C])}function y(p,g=!1){if(p.indexOf("%")===-1)return p;let S="";for(let C=0;C<p.length;C++){if(p[C]==="%"&&C+2<p.length){const O=p.slice(C+1,C+3);if(r(O)){const _=O.toUpperCase(),x=String.fromCharCode(parseInt(_,16));g&&a(x)?S+=x:S+="%"+_,C+=2;continue}}S+=p[C]}return S}function b(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){const O=C.toUpperCase(),_=String.fromCharCode(parseInt(O,16));_!=="."&&a(_)?g+=_:g+="%"+O,S+=2;continue}}i(p[S])?g+=p[S]:g+=escape(p[S])}return g}function w(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){g+="%"+C.toUpperCase(),S+=2;continue}}g+=escape(p[S])}return g}function E(p){const g=[];if(p.userinfo!==void 0&&(g.push(p.userinfo),g.push("@")),p.host!==void 0){let S=unescape(p.host);if(!t(S)){const C=u(S);C.isIPV6===!0?S=`[${C.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof p.port=="number"||typeof p.port=="string")&&(g.push(":"),g.push(String(p.port))),g.length?g.join(""):void 0}return Tu={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},Tu}var Pu,Sg;function _N(){if(Sg)return Pu;Sg=1;const{isUUID:e}=i0(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;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 m(p){const g=p;return g.nss=(p.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:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Pu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Pu}var Eg;function ON(){if(Eg)return ms.exports;Eg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=i0(),{SCHEMES:l,getSchemeHandler:u}=_N();function f(C,O){return typeof C=="string"?C=E(C,O):typeof C=="object"&&(C=w(k(C,O),O)),C}function m(C,O,_){const x=_?Object.assign({scheme:"null"},_):{scheme:"null"},A=d(w(C,x),w(O,x),x,!0);return x.skipEscape=!0,k(A,x)}function d(C,O,_,x){const A={};return x||(C=w(k(C,_),_),O=w(k(O,_),_)),_=_||{},!_.tolerant&&O.scheme?(A.scheme=O.scheme,A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.path?(O.path[0]==="/"?A.path=t(O.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?A.path="/"+O.path:C.path?A.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+O.path:A.path=O.path,A.path=t(A.path)),A.query=O.query):(A.path=C.path,O.query!==void 0?A.query=O.query:A.query=C.query),A.userinfo=C.userinfo,A.host=C.host,A.port=C.port),A.scheme=C.scheme),A.fragment=O.fragment,A}function h(C,O,_){const x=g(C,_),A=g(O,_);return x!==void 0&&A!==void 0&&x.toLowerCase()===A.toLowerCase()}function k(C,O){const _={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:""},x=Object.assign({},O),A=[],N=u(x.scheme||_.scheme);N&&N.serialize&&N.serialize(_,x),_.path!==void 0&&(x.skipEscape?_.path=a(_.path):(_.path=n(_.path),_.scheme!==void 0&&(_.path=_.path.split("%3A").join(":")))),x.reference!=="suffix"&&_.scheme&&A.push(_.scheme,":");const I=r(_);if(I!==void 0&&(x.reference!=="suffix"&&A.push("//"),A.push(I),_.path&&_.path[0]!=="/"&&A.push("/")),_.path!==void 0){let F=_.path;!x.absolutePath&&(!N||!N.absolutePath)&&(F=t(F)),I===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),A.push(F)}return _.query!==void 0&&A.push("?",_.query),_.fragment!==void 0&&A.push("#",_.fragment),A.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(C,O){if(O[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 b(C,O){const _=Object.assign({},O),x={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let A=!1,N=!1;_.reference==="suffix"&&(_.scheme?C=_.scheme+":"+C:C="//"+C);const I=C.match(v);if(I){x.scheme=I[1],x.userinfo=I[3],x.host=I[4],x.port=parseInt(I[5],10),x.path=I[6]||"",x.query=I[7],x.fragment=I[8],isNaN(x.port)&&(x.port=I[5]);const F=y(x,I);if(F!==void 0&&(x.error=x.error||F,A=!0),x.host)if(o(x.host)===!1){const Z=e(x.host);x.host=Z.host.toLowerCase(),N=Z.isIPV6}else N=!0;x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&x.query===void 0&&!x.path?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==x.reference&&(x.error=x.error||"URI is not a "+_.reference+" reference.");const $=u(_.scheme||x.scheme);if(!_.unicodeSupport&&(!$||!$.unicodeSupport)&&x.host&&(_.domainHost||$&&$.domainHost)&&N===!1&&c(x.host))try{x.host=URL.domainToASCII(x.host.toLowerCase())}catch(Y){x.error=x.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(C.indexOf("%")!==-1&&(x.scheme!==void 0&&(x.scheme=unescape(x.scheme)),x.host!==void 0&&(x.host=s(unescape(x.host),N))),x.path&&(x.path=i(x.path)),x.fragment))try{x.fragment=encodeURI(decodeURIComponent(x.fragment))}catch{x.error=x.error||"URI malformed"}$&&$.parse&&$.parse(x,_)}else x.error=x.error||"URI can not be parsed.";return{parsed:x,malformedAuthorityOrPort:A}}function w(C,O){return b(C,O).parsed}function E(C,O){return p(C,O).normalized}function p(C,O){const{parsed:_,malformedAuthorityOrPort:x}=b(C,O);return{normalized:x?C:k(_,O),malformedAuthorityOrPort:x}}function g(C,O){if(typeof C=="string"){const{normalized:_,malformedAuthorityOrPort:x}=p(C,O);return x?void 0:_}if(typeof C=="object")return k(C,O)}const S={SCHEMES:l,normalize:f,resolve:m,resolveComponent:d,equal:h,serialize:k,parse:w};return ms.exports=S,ms.exports.default=S,ms.exports.fastUri=S,ms.exports}var xg;function TN(){if(xg)return Fo;xg=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=ON();return e.code='require("ajv/dist/runtime/uri").default',Fo.default=e,Fo}var Cg;function PN(){return Cg||(Cg=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=Sc();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Be();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=om(),i=Ec(),n=r0(),s=lm(),o=Be(),c=wc(),l=Xl(),u=et(),f=AN,m=TN(),d=(P,D)=>new RegExp(P,D);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 D,U,T,R,M,B,V,K,J,Q,q,z,H,G,te,ae,me,ve,Ce,Se,Re,he,je,Ve,be;const ee=P.strict,re=(D=P.code)===null||D===void 0?void 0:D.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,pe=(R=P.uriResolver)!==null&&R!==void 0?R:m.default;return{strictSchema:(B=(M=P.strictSchema)!==null&&M!==void 0?M: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=(H=P.strictRequired)!==null&&H!==void 0?H: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:(me=P.meta)!==null&&me!==void 0?me:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ce=P.inlineRefs)!==null&&Ce!==void 0?Ce:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(Re=P.addUsedSchema)!==null&&Re!==void 0?Re:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(je=P.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(Ve=P.unicodeRegExp)!==null&&Ve!==void 0?Ve:!0,int32range:(be=P.int32range)!==null&&be!==void 0?be:!0,uriResolver:pe}}class E{constructor(D={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...w(D)};const{es5:U,lines:T}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=A(D.logger);const R=D.validateFormats;D.validateFormats=!1,this.RULES=(0,n.getRules)(),p.call(this,v,D,"NOT SUPPORTED"),p.call(this,y,D,"DEPRECATED","warn"),this._metaOpts=_.call(this),D.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&O.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),S.call(this),D.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:U,schemaId:T}=this.opts;let R=f;T==="id"&&(R={...f},R.id=R.$id,delete R.$id),U&&D&&this.addMetaSchema(R,R[T],!1)}defaultMeta(){const{meta:D,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[U]||D:void 0}validate(D,U){let T;if(typeof D=="string"){if(T=this.getSchema(D),!T)throw new Error(`no schema with key or ref "${D}"`)}else T=this.compile(D);const R=T(U);return"$async"in T||(this.errors=T.errors),R}compile(D,U){const T=this._addSchema(D,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(D,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return R.call(this,D,U);async function R(Q,q){await M.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function M(Q){Q&&!this.getSchema(Q)&&await R.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 M.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(D,U,T,R=this.opts.validateSchema){if(Array.isArray(D)){for(const B of D)this.addSchema(B,void 0,T,R);return this}let M;if(typeof D=="object"){const{schemaId:B}=this.opts;if(M=D[B],M!==void 0&&typeof M!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||M),this._checkUnique(U),this.schemas[U]=this._addSchema(D,T,U,R,!0),this}addMetaSchema(D,U,T=this.opts.validateSchema){return this.addSchema(D,U,!0,T),this}validateSchema(D,U){if(typeof D=="boolean")return!0;let T;if(T=D.$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 R=this.validate(T,D);if(!R&&U){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return R}getSchema(D){let U;for(;typeof(U=g.call(this,D))=="string";)D=U;if(U===void 0){const{schemaId:T}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:T});if(U=s.resolveSchema.call(this,R,D),!U)return;this.refs[D]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,D);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const U=D;this._cache.delete(U);let T=D[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(D){for(const U of D)this.addKeyword(U);return this}addKeyword(D,U){let T;if(typeof D=="string")T=D,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof D=="object"&&U===void 0){if(U=D,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,M=>F.call(this,M)),this;Y.call(this,U);const R={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,R.type.length===0?M=>F.call(this,M,R):M=>R.type.forEach(B=>F.call(this,M,R,B))),this}getKeyword(D){const U=this.RULES.all[D];return typeof U=="object"?U.definition:!!U}removeKeyword(D){const{RULES:U}=this;delete U.keywords[D],delete U.all[D];for(const T of U.rules){const R=T.rules.findIndex(M=>M.keyword===D);R>=0&&T.rules.splice(R,1)}return this}addFormat(D,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[D]=U,this}errorsText(D=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!D||D.length===0?"No errors":D.map(R=>`${T}${R.instancePath} ${R.message}`).reduce((R,M)=>R+U+M)}$dataMetaSchema(D,U){const T=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const R of U){const M=R.split("/").slice(1);let B=D;for(const V of M)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 D}_removeAllSchemas(D,U){for(const T in D){const R=D[T];(!U||U.test(T))&&(typeof R=="string"?delete D[T]:R&&!R.meta&&(this._cache.delete(R.schema),delete D[T]))}}_addSchema(D,U,T,R=this.opts.validateSchema,M=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof D=="object")B=D[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(D);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,D,T);return K=new s.SchemaEnv({schema:D,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),M&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),R&&this.validateSchema(D,!0),K}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function p(P,D,U,T="error"){for(const R in P){const M=R;M in D&&this.logger[T](`${U}: option ${R}. ${P[M]}`)}}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 D in P)this.addSchema(P[D],D)}function C(){for(const P in this.opts.formats){const D=this.opts.formats[P];D&&this.addFormat(P,D)}}function O(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in P){const U=P[D];U.keyword||(U.keyword=D),this.addKeyword(U)}}function _(){const P={...this.opts};for(const D of h)delete P[D];return P}const x={log(){},warn(){},error(){}};function A(P){if(P===!1)return x;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 N=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,D){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!N.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function F(P,D,U){var T;const R=D==null?void 0:D.post;if(U&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let B=R?M.post:M.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},M.rules.push(B)),M.keywords[P]=!0,!D)return;const V={keyword:P,definition:{...D,type:(0,l.getJSONTypes)(D.type),schemaType:(0,l.getJSONTypes)(D.schemaType)}};D.before?$.call(this,B,V,D.before):B.rules.push(V),M.all[P]=V,(T=D.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,D,U){const T=P.rules.findIndex(R=>R.keyword===U);T>=0?P.rules.splice(T,0,D):(P.rules.push(D),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:D}=P;D!==void 0&&(P.$data&&this.opts.$data&&(D=ie(D)),P.validateSchema=this.compile(D,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Su)),Su}var Mo={},Lo={},qo={},Ag;function IN(){if(Ag)return qo;Ag=1,Object.defineProperty(qo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return qo.default=e,qo}var ta={},_g;function RN(){if(_g)return ta;_g=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.callRef=ta.getValidate=void 0;const e=Ec(),t=mn(),r=Be(),a=Aa(),i=lm(),n=et(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:m}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=m,{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(m.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return p(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 p(S){const C=o(l,S);c(l,C,S,S.$async)}function g(S){const C=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=u.name("valid"),_=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:C,errSchemaPath:f},O);l.mergeEvaluated(_),l.ok(O)}}};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`}ta.getValidate=o;function c(l,u,f,m){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;m?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)},C=>{d.if((0,r._)`!(${C} instanceof ${h.ValidationError})`,()=>d.throw(C)),p(C),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>p(u))}function p(S){const C=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${C} : ${a.default.vErrors}.concat(${C})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var C;if(!h.opts.unevaluated)return;const O=(C=f==null?void 0:f.validate)===null||C===void 0?void 0:C.evaluated;if(h.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(h.props=n.mergeEvaluated.props(d,O.props,h.props));else{const _=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,_,h.props,r.Name)}if(h.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(h.items=n.mergeEvaluated.items(d,O.items,h.items));else{const _=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,_,h.items,r.Name)}}}return ta.callRef=c,ta.default=s,ta}var Og;function NN(){if(Og)return Lo;Og=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e=IN(),t=RN(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Lo.default=r,Lo}var zo={},$o={},Tg;function jN(){if(Tg)return $o;Tg=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Be(),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 $o.default=i,$o}var Uo={},Pg;function DN(){if(Pg)return Uo;Pg=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Be(),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 Uo.default=r,Uo}var Bo={},Vo={},Ig;function FN(){if(Ig)return Vo;Ig=1,Object.defineProperty(Vo,"__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 Vo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Vo}var Rg;function MN(){if(Rg)return Bo;Rg=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Be(),t=et(),r=FN(),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 Bo.default=i,Bo}var Ho={},Ng;function LN(){if(Ng)return Ho;Ng=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=mn(),t=et(),r=Be(),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,m=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}, ${m}).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 Ho.default=i,Ho}var Wo={},jg;function qN(){if(jg)return Wo;jg=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=Be(),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 Wo.default=r,Wo}var Ko={},Dg;function zN(){if(Dg)return Ko;Dg=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=mn(),t=Be(),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:m}=f;if(!u&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?h():k(),m.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 p=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${p}" (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,m.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),s.forOf(b,c,()=>{s.assign(w,(0,e.propertyInData)(s,l,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Ko.default=i,Ko}var Go={},Fg;function $N(){if(Fg)return Go;Fg=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Be(),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 Go.default=r,Go}var Jo={},Yo={},Mg;function cm(){if(Mg)return Yo;Mg=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=a0();return e.code='require("ajv/dist/runtime/equal").default',Yo.default=e,Yo}var Lg;function UN(){if(Lg)return Jo;Lg=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Xl(),t=Be(),r=et(),a=cm(),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:m,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._)`${m} === false`),s.ok(h);function v(){const E=o.let("i",(0,t._)`${c}.length`),p=o.let("j");s.setParams({i:E,j:p}),o.assign(h,!0),o.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,p))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,p){const g=o.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),C=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 ${C}[${g}] == "number"`,()=>{o.assign(p,(0,t._)`${C}[${g}]`),s.error(),o.assign(h,!1).break()}).code((0,t._)`${C}[${g}] = ${E}`)})}function w(E,p){const g=(0,r.useFunc)(o,a.default),S=o.name("outer");o.label(S).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${p} = ${E}; ${p}--;`,()=>o.if((0,t._)`${g}(${c}[${E}], ${c}[${p}])`,()=>{s.error(),o.assign(h,!1).break(S)})))}}};return Jo.default=n,Jo}var Xo={},qg;function BN(){if(qg)return Xo;qg=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),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 Xo.default=i,Xo}var Zo={},zg;function VN(){if(zg)return Zo;zg=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),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 m=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(m||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 Zo.default=i,Zo}var $g;function HN(){if($g)return zo;$g=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=jN(),t=DN(),r=MN(),a=LN(),i=qN(),n=zN(),s=$N(),o=UN(),c=BN(),l=VN(),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 zo.default=u,zo}var Qo={},gi={},Ug;function s0(){if(Ug)return gi;Ug=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.validateAdditionalItems=void 0;const e=Be(),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 m=o.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){o.forRange("i",s.length,m,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||o.if((0,e.not)(h),()=>o.break())})}}return gi.validateAdditionalItems=i,gi.default=a,gi}var el={},yi={},Bg;function o0(){if(Bg)return yi;Bg=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.validateTuple=void 0;const e=Be(),t=et(),r=mn(),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:m}=n;k(l),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(c,o.length,m.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);o.forEach((v,y)=>{(0,t.alwaysValidSchema)(m,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}=m,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(y.strictTuples&&!E){const p=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,p,y.strictTuples)}}}return yi.validateTuple=i,yi.default=a,yi}var Vg;function WN(){if(Vg)return el;Vg=1,Object.defineProperty(el,"__esModule",{value:!0});const e=o0(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return el.default=t,el}var tl={},Hg;function KN(){if(Hg)return tl;Hg=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Be(),t=et(),r=mn(),a=s0(),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 tl.default=n,tl}var rl={},Wg;function GN(){if(Wg)return rl;Wg=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Be(),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:m,maxContains:d}=o;l.opts.next?(u=m===void 0?1:m,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,p=>{i.subschema({keyword:"contains",dataProp:p,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 rl.default=a,rl}var Iu={},Kg;function JN(){return Kg||(Kg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Be(),r=et(),a=mn();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 m=Array.isArray(c[f])?l:u;m[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:m}=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,m.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),m.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:m,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:m,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=o,e.default=i})(Iu)),Iu}var nl={},Kg;function GN(){if(Kg)return nl;Kg=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Be(),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 nl.default=a,nl}var al={},Gg;function o0(){if(Gg)return al;Gg=1,Object.defineProperty(al,"__esModule",{value:!0});const e=mn(),t=Be(),r=Aa(),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:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=m;if(m.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(m,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 C=(0,a.schemaRefOrVal)(m,l.properties,"properties");S=(0,e.isOwnProperty)(o,C,g)}else k.length?S=(0,t.or)(...k.map(C=>(0,t._)`${g} === ${C}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(C=>(0,t._)`${(0,e.usePattern)(s,C)}.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)(m,c)){const S=o.name("valid");h.removeAdditional==="failing"?(p(g,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(g)})):(p(g,S),d||o.if((0,t.not)(S),()=>o.break()))}}function p(g,S,C){const O={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};C===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(O,S)}}};return al.default=n,al}var il={},Jg;function JN(){if(Jg)return il;Jg=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Sc(),t=mn(),r=et(),a=o0(),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 m=f.filter(v=>!(0,r.alwaysValidSchema)(u,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)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 il.default=i,il}var sl={},Yg;function YN(){if(Yg)return sl;Yg=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=mn(),t=Be(),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,m=(0,e.allSchemaProperties)(o),d=m.filter(E=>(0,r.alwaysValidSchema)(u,o[E]));if(m.length===0||d.length===m.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 m)h&&b(E),u.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const p in h)new RegExp(E).test(p)&&(0,r.checkStrictMode)(u,`property ${p} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",c,p=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${p})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:p,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${p}]`,!0):!g&&!u.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return sl.default=i,sl}var ol={},Xg;function XN(){if(Xg)return ol;Xg=1,Object.defineProperty(ol,"__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 ol.default=t,ol}var ll={},Zg;function ZN(){if(Zg)return ll;Zg=1,Object.defineProperty(ll,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:mn().validateUnion,error:{message:"must match a schema in anyOf"}};return ll.default=t,ll}var cl={},Qg;function QN(){if(Qg)return cl;Qg=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=Be(),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),m=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(m,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return cl.default=a,cl}var ul={},ey;function ej(){if(ey)return ul;ey=1,Object.defineProperty(ul,"__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 ul.default=t,ul}var fl={},ty;function tj(){if(ty)return fl;ty=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Be(),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),m=s.name("_valid");if(d(),n.reset(),l&&u){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,h("then",k),h("else",k))}else l?s.if(m,h("then")):s.if((0,e.not)(m),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},m);s.assign(f,m),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 fl.default=a,fl}var dl={},ry;function rj(){if(ry)return dl;ry=1,Object.defineProperty(dl,"__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 dl.default=t,dl}var ny;function nj(){if(ny)return Qo;ny=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=i0(),t=VN(),r=s0(),a=HN(),i=WN(),n=KN(),s=GN(),o=o0(),c=JN(),l=YN(),u=XN(),f=ZN(),m=QN(),d=ej(),h=tj(),k=rj();function v(y=!1){const b=[u.default,f.default,m.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 Qo.default=v,Qo}var ml={},pl={},ay;function aj(){if(ay)return pl;ay=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Be(),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:m,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)(p(),g()));function p(){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})`,C=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${C}`}}function v(){const y=h.formats[c];if(!y){p();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function p(){if(f.strictSchema===!1){h.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function g(C){const O=C instanceof RegExp?(0,e.regexpCode)(C):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,_=n.scopeValue("formats",{key:c,ref:C,code:O});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,e._)`${_}.validate`]:["string",C,_]}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 pl.default=r,pl}var iy;function ij(){if(iy)return ml;iy=1,Object.defineProperty(ml,"__esModule",{value:!0});const t=[aj().default];return ml.default=t,ml}var La={},sy;function sj(){return sy||(sy=1,Object.defineProperty(La,"__esModule",{value:!0}),La.contentVocabulary=La.metadataVocabulary=void 0,La.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],La.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),La}var oy;function oj(){if(oy)return Mo;oy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=IN(),t=BN(),r=nj(),a=ij(),i=sj(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Mo.default=n,Mo}var hl={},ps={},ly;function lj(){if(ly)return ps;ly=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(ps.DiscrError=e={})),ps}var cy;function cj(){if(cy)return hl;cy=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Be(),t=lj(),r=lm(),a=Ec(),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:m}=o,{oneOf:d}=f;if(!m.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 p in E)c.elseIf((0,e._)`${v} === ${p}`),c.assign(k,b(E[p]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const p=c.name("valid"),g=o.subschema({keyword:"oneOf",schemaProp:E},p);return o.mergeEvaluated(g,e.Name),p}function w(){var E;const p={},g=C(f);let S=!0;for(let x=0;x<d.length;x++){let A=d[x];if(A!=null&&A.$ref&&!(0,i.schemaHasRulesButRef)(A,m.self.RULES)){const I=A.$ref;if(A=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,I),A instanceof r.SchemaEnv&&(A=A.schema),A===void 0)throw new a.default(m.opts.uriResolver,m.baseId,I)}const N=(E=A==null?void 0:A.properties)===null||E===void 0?void 0:E[h];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||C(A)),O(N,x)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return p;function C({required:x}){return Array.isArray(x)&&x.includes(h)}function O(x,A){if(x.const)_(x.const,A);else if(x.enum)for(const N of x.enum)_(N,A);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function _(x,A){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${h}" values must be unique strings`);p[x]=A}}}};return hl.default=s,hl}const uj="http://json-schema.org/draft-07/schema#",fj="http://json-schema.org/draft-07/schema#",dj="Core schema meta-schema",mj={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:[]}},pj=["object","boolean"],hj={$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:"#"}},gj={$schema:uj,$id:fj,title:dj,definitions:mj,type:pj,properties:hj,default:!0};var uy;function l0(){return uy||(uy=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=ON(),a=oj(),i=cj(),n=gj,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=Sc();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Be();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=om();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Ec();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Ro,Ro.exports)),Ro.exports}var yj=l0();const vj=Pn(yj);var gl={exports:{}},Ru={},fy;function bj(){return fy||(fy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(O,_){return{validate:O,compare:_}}e.fullFormats={date:t(n,s),time:t(c,l),"date-time":t(f,m),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:C,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:p},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,m),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(O){return O%4===0&&(O%100!==0||O%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(O){const _=a.exec(O);if(!_)return!1;const x=+_[1],A=+_[2],N=+_[3];return A>=1&&A<=12&&N>=1&&N<=(A===2&&r(x)?29:i[A])}function s(O,_){if(O&&_)return O>_?1:O<_?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(O,_){const x=o.exec(O);if(!x)return!1;const A=+x[1],N=+x[2],I=+x[3],F=x[5];return(A<=23&&N<=59&&I<=59||A===23&&N===59&&I===60)&&(!_||F!=="")}function l(O,_){if(!(O&&_))return;const x=o.exec(O),A=o.exec(_);if(x&&A)return O=x[1]+x[2]+x[3]+(x[4]||""),_=A[1]+A[2]+A[3]+(A[4]||""),O>_?1:O<_?-1:0}const u=/t|\s/i;function f(O){const _=O.split(u);return _.length===2&&n(_[0])&&c(_[1],!0)}function m(O,_){if(!(O&&_))return;const[x,A]=O.split(u),[N,I]=_.split(u),F=s(x,N);if(F!==void 0)return F||l(A,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(O){return d.test(O)&&h.test(O)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(O){return v.lastIndex=0,v.test(O)}const b=-2147483648,w=2**31-1;function E(O){return Number.isInteger(O)&&O<=w&&O>=b}function p(O){return Number.isInteger(O)}function g(){return!0}const S=/[^\\]\\Z/;function C(O){if(S.test(O))return!1;try{return new RegExp(O),!0}catch{return!1}}})(Ru)),Ru}var Nu={},dy;function kj(){return dy||(dy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=l0(),r=Be(),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:m}=o,{opts:d,self:h}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,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 p=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(p))}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})(Nu)),Nu}var my;function wj(){return my||(my=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=bj(),a=kj(),i=Be(),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,m]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,m),u.keywords&&a.default(l),l};o.get=(l,u="full")=>{const m=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!m)throw new Error(`Unknown format "${l}"`);return m};function c(l,u,f,m){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${m}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(gl,gl.exports)),gl.exports}var Sj=wj();const py=Pn(Sj),Ej={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},xj=/^(#?([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*\)))$/,Cj=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Aj(e,t,r={},a,i=vj,n){let s=new i({...Ej,...r});return a?py(s,a):a!==!1&&py(s),s.addFormat("data-url",Cj),s.addFormat("color",xj),s.addKeyword(xd),Array.isArray(e)&&s.addMetaSchema(e),Xe(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class _j{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=Aj(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[pt]&&(s=this.ajv.getSchema(t[pt])),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 dN(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[pt])!==null&&r!==void 0?r:tb;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Je(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=em(t),s=(i=n[pt])!==null&&i!==void 0?i:dT(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 Rl(e={},t){return new _j(e,t)}Rl();var ju,hy;function Oj(){return hy||(hy=1,ju=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}}),ju}var Du,gy;function Tj(){return gy||(gy=1,Du=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}}),Du}var Fu,yy;function Pj(){return yy||(yy=1,Fu=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}}),Fu}var Mu,vy;function Ij(){return vy||(vy=1,Mu=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}}),Mu}var Lu,by;function Rj(){return by||(by=1,Lu=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}}),Lu}var qu,ky;function Nj(){return ky||(ky=1,qu=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}}),qu}var zu,wy;function jj(){return wy||(wy=1,zu=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}}),zu}var $u,Sy;function Dj(){return Sy||(Sy=1,$u=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}}),$u}var Uu,Ey;function Fj(){return Ey||(Ey=1,Uu=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}}),Uu}var Bu,xy;function Mj(){return xy||(xy=1,Bu=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}}),Bu}var Vu,Cy;function Lj(){return Cy||(Cy=1,Vu=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}}),Vu}var Hu,Ay;function qj(){return Ay||(Ay=1,Hu=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}}),Hu}var Wu,_y;function zj(){return _y||(_y=1,Wu=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}}),Wu}var Ku,Oy;function $j(){return Oy||(Oy=1,Ku=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}}),Ku}var Gu,Ty;function Uj(){return Ty||(Ty=1,Gu=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}}),Gu}var Ju,Py;function Bj(){return Py||(Py=1,Ju=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}}),Ju}var Yu,Iy;function Vj(){return Iy||(Iy=1,Yu=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}}),Yu}var Xu,Ry;function Hj(){return Ry||(Ry=1,Xu=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}}),Xu}var Zu,Ny;function Wj(){return Ny||(Ny=1,Zu=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}}),Zu}var Qu,jy;function Kj(){return jy||(jy=1,Qu=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}}),Qu}var ef,Dy;function Gj(){return Dy||(Dy=1,ef=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}}),ef}var tf,Fy;function Jj(){return Fy||(Fy=1,tf=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}}),tf}var rf,My;function Yj(){return My||(My=1,rf=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}}),rf}var nf,Ly;function Xj(){return Ly||(Ly=1,nf={en:Oj(),ar:Tj(),ca:Pj(),cs:Ij(),de:Rj(),es:Nj(),fi:jj(),fr:Dj(),hu:Fj(),id:Mj(),it:Lj(),ja:qj(),ko:zj(),nb:$j(),nl:Uj(),pl:Bj(),"pt-BR":Vj(),ru:Hj(),sk:Wj(),sv:Kj(),th:Gj(),zh:Jj(),"zh-TW":Yj()}),nf}var Zj=Xj();const hs=Pn(Zj),yl={flex:1,paddingLeft:6,paddingRight:6};function Qj(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:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:yl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:yl,disabled:t||f||!a,onClick:l,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",style:yl,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",style:yl,disabled:t||f,onClick:c,uiSchema:d,registry:m})})]})}function eD(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,s=ke(n),o=xe("ArrayFieldItemButtonsTemplate",i,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function tD(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:m}=e,d=ke(m),h=xe("ArrayFieldTitleTemplate",c,d),k=xe("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:m,registry:c,optionalDataControl:y?n:void 0}),j.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:m,registry:c}),y?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:Rr(a,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:c})})]})]})]})})})}const oo={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},rD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),nD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),aD=()=>j.jsxs("svg",{...oo,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),c0=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M3.5 8h9"})}),iD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Xi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function sD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.CopyButton),...e,icon:j.jsx(aD,{})})}function oD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveUpButton),...e,icon:j.jsx(rD,{})})}function lD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveDownButton),...e,icon:j.jsx(nD,{})})}function cD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.RemoveButton),...e,variant:"danger",icon:j.jsx(c0,{})})}function uD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.ClearButton),...e,icon:j.jsx(c0,{})})}function fD({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(Xi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Le.AddItemButton),icon:j.jsx(iD,{})})}function dD({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=xk(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const mD={SubmitButton:dD,AddButton:fD,CopyButton:sD,MoveDownButton:lD,MoveUpButton:oD,RemoveButton:cD,ClearButton:uD};function pD(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const hD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yD={};function qy(e,t){return(yD.jsx?gD:hD).test(e)}const vD=/[ \t\n\f\r]/g;function bD(e){return typeof e=="object"?e.type==="text"?zy(e.value):!1:zy(e)}function zy(e){return e.replace(vD,"")===""}class lo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}lo.prototype.normal={};lo.prototype.property={};lo.prototype.space=void 0;function u0(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new lo(r,a,t)}function sd(e){return e.toLowerCase()}class xr{constructor(t,r){this.attribute=r,this.property=t}}xr.prototype.attribute="";xr.prototype.booleanish=!1;xr.prototype.boolean=!1;xr.prototype.commaOrSpaceSeparated=!1;xr.prototype.commaSeparated=!1;xr.prototype.defined=!1;xr.prototype.mustUseProperty=!1;xr.prototype.number=!1;xr.prototype.overloadedBoolean=!1;xr.prototype.property="";xr.prototype.spaceSeparated=!1;xr.prototype.space=void 0;let kD=0;const Pe=si(),Lt=si(),od=si(),ue=si(),kt=si(),Va=si(),Tr=si();function si(){return 2**++kD}const ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Lt,commaOrSpaceSeparated:Tr,commaSeparated:Va,number:ue,overloadedBoolean:od,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),af=Object.keys(ld);class um extends xr{constructor(t,r,a,i){let n=-1;if(super(t,r),$y(this,"space",i),typeof a=="number")for(;++n<af.length;){const s=af[n];$y(this,af[n],(a&ld[s])===ld[s])}}}um.prototype.defined=!0;function $y(e,t,r){r&&(e[t]=r)}function Zi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new um(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[sd(a)]=a,r[sd(n.attribute)]=a}return new lo(t,r,e.space)}const f0=Zi({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:kt,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Lt,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 d0(e,t){return t in e?e[t]:t}function m0(e,t){return d0(e,t.toLowerCase())}const wD=Zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Va,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:Lt,controls:Pe,controlsList:kt,coords:ue|Va,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:od,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:od,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:Lt,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:Lt,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:Lt,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:Va,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:m0}),SD=Zi({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:Tr,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:Va,g2:Va,glyphName:Va,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:Tr,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:Tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tr,rev:Tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tr,requiredFeatures:Tr,requiredFonts:Tr,requiredFormats:Tr,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:Tr,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:Tr,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:Tr,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:d0}),p0=Zi({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()}}),h0=Zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:m0}),g0=Zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ED={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"},xD=/[A-Z]/g,Uy=/-[a-z]/g,CD=/^data[-\w.:]+$/i;function AD(e,t){const r=sd(t);let a=t,i=xr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CD.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Uy,OD);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Uy.test(n)){let s=n.replace(xD,_D);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=um}return new i(a,t)}function _D(e){return"-"+e.toLowerCase()}function OD(e){return e.charAt(1).toUpperCase()}const TD=u0([f0,wD,p0,h0,g0],"html"),fm=u0([f0,SD,p0,h0,g0],"svg");function PD(e){return e.join(" ").trim()}var vi={},sf,By;function ID(){if(By)return sf;By=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="",m="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 F=I.match(t);F&&(b+=F.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function p(){var I={line:b,column:w};return function(F){return F.position=new g(I),O(),F}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var F=new Error(y.source+":"+b+":"+w+": "+I);if(F.reason=I,F.filename=y.source,F.line=b,F.column=w,F.source=v,!y.silent)throw F}function C(I){var F=I.exec(v);if(F){var $=F[0];return E($),v=v.slice($.length),F}}function O(){C(r)}function _(I){var F;for(I=I||[];F=x();)F!==!1&&I.push(F);return I}function x(){var I=p();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var F=2;f!=v.charAt(F)&&(u!=v.charAt(F)||l!=v.charAt(F+1));)++F;if(F+=2,f===v.charAt(F-1))return S("End of comment missing");var $=v.slice(2,F-2);return w+=2,E($),v=v.slice(F),w+=2,I({type:m,comment:$})}}function A(){var I=p(),F=C(a);if(F){if(x(),!C(i))return S("property missing ':'");var $=C(n),Y=I({type:d,property:k(F[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return C(s),Y}}function N(){var I=[];_(I);for(var F;F=A();)F!==!1&&(I.push(F),_(I));return I}return O(),N()}function k(v){return v?v.replace(o,f):f}return sf=h,sf}var Vy;function RD(){if(Vy)return vi;Vy=1;var e=vi&&vi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=r;const t=e(ID());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 vi}var gs={},Hy;function ND(){if(Hy)return gs;Hy=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.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 gs.camelCase=c,gs}var ys,Wy;function jD(){if(Wy)return ys;Wy=1;var e=ys&&ys.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(RD()),r=ND();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,ys=a,ys}var DD=jD();const FD=Pn(DD),y0=v0("end"),dm=v0("start");function v0(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 MD(e){const t=dm(e),r=y0(e);if(t&&r)return{start:t,end:r}}function Rs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ky(e.position):"start"in e||"end"in e?Ky(e):"line"in e||"column"in e?cd(e):""}function cd(e){return Gy(e&&e.line)+":"+Gy(e&&e.column)}function Ky(e){return cd(e&&e.start)+"-"+cd(e&&e.end)}function Gy(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=Rs(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 mm={}.hasOwnProperty,LD=new Map,qD=/[A-Z]/g,zD=new Set(["table","tbody","thead","tfoot","tr"]),$D=new Set(["td","th"]),b0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UD(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=YD(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=JD(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"?fm:TD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=k0(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function k0(e,t,r){if(t.type==="element")return BD(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return VD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return WD(e,t,r);if(t.type==="mdxjsEsm")return HD(e,t);if(t.type==="root")return KD(e,t,r);if(t.type==="text")return GD(e,t)}function BD(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=S0(e,t.tagName,!1),s=XD(e,t);let o=hm(e,t);return zD.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!bD(c):!0})),w0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function VD(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)}Ws(e,t.position)}function HD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ws(e,t.position)}function WD(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:S0(e,t.name,!0),s=ZD(e,t),o=hm(e,t);return w0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function KD(e,t,r){const a={};return pm(a,hm(e,t)),e.create(t,e.Fragment,a,r)}function GD(e,t){return t.value}function w0(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function pm(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function JD(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 YD(e,t){return r;function r(a,i,n,s){const o=Array.isArray(n.children),c=dm(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 XD(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&mm.call(t.properties,i)){const n=QD(e,i,t.properties[i]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&$D.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 ZD(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 Ws(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 Ws(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function hm(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:LD;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=k0(e,n,s);o!==void 0&&r.push(o)}return r}function QD(e,t,r){const a=AD(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?pD(r):PD(r)),a.property==="style"){let i=typeof r=="object"?r:eF(e,String(r));return e.stylePropertyNameCase==="css"&&(i=tF(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?ED[a.property]||a.property:a.attribute,r]}}function eF(e,t){try{return FD(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=b0+"#cannot-parse-style-attribute",i}}function S0(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=qy(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=qy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return mm.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ws(e)}function Ws(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=b0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function tF(e){const t={};let r;for(r in e)mm.call(e,r)&&(t[rF(r)]=e[r]);return t}function rF(e){let t=e.replace(qD,nF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nF(e){return"-"+e.toLowerCase()}const of={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"]},aF={};function iF(e,t){const r=aF,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return E0(e,a,i)}function E0(e,t,r){if(sF(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 Jy(e.children,t,r)}return Array.isArray(e)?Jy(e,t,r):""}function Jy(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=E0(e[i],t,r);return a.join("")}function sF(e){return!!(e&&typeof e=="object")}const Yy=document.createElement("i");function gm(e){const t="&"+e+";";Yy.innerHTML=t;const r=Yy.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Tn(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 Ur(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const Xy={}.hasOwnProperty;function oF(e){const t={};let r=-1;for(;++r<e.length;)lF(t,e[r]);return t}function lF(e,t){let r;for(r in t){const i=(Xy.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Xy.call(i,s)||(i[s]=[]);const o=n[s];cF(i[s],Array.isArray(o)?o:o?[o]:[])}}}function cF(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Tn(e,0,0,a)}function x0(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 Di(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const En=_a(/[A-Za-z]/),Nr=_a(/[\dA-Za-z]/),uF=_a(/[#-'*+\--9=?A-Z^-~]/);function ud(e){return e!==null&&(e<32||e===127)}const fd=_a(/\d/),fF=_a(/[\dA-Fa-f]/),dF=_a(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function Er(e){return e!==null&&(e<0||e===32)}function ot(e){return e===-2||e===-1||e===32}const mF=_a(new RegExp("\\p{P}|\\p{S}","u")),pF=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Qi(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 ot(c)?(e.enter(r),o(c)):t(c)}function o(c){return ot(c)&&n++<i?(e.consume(c),o):(e.exit(r),t(c))}}const hF={tokenize:gF};function gF(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 yF={tokenize:vF},Zy={tokenize:bF};function vF(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 p=E,g;for(;p--;)if(t.events[p][0]==="exit"&&t.events[p][1].type==="chunkFlow"){g=t.events[p][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return Tn(t.events,p+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 m(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zy,u,f)(w)}function u(w){return i&&b(),y(a),m(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,s=t.now().offset,h(w)}function m(w){return t.containerState={},e.attempt(Zy,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),m(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 p=t.sliceStream(w);if(E&&p.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(p),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 C=S,O,_;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(O){_=t.events[C][1].end;break}O=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={..._},g++;Tn(t.events,C+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const p=r[E];t.containerState=p[1],p[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 bF(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 Qy(e){if(e===null||Er(e)||pF(e))return 1;if(mF(e))return 2}function ym(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 dd={name:"attention",resolveAll:kF,tokenize:wF};function kF(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},m={...e[r][1].start};ev(f,-c),ev(m,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:m},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=Ur(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Ur(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",n,t]]),l=Ur(l,ym(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Ur(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=Ur(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,Tn(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 wF(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=Qy(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=Qy(c),f=!u||u===2&&i||r.includes(c),m=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!m)),l._close=!!(n===42?m:m&&(u||!f)),t(c)}}function ev(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SF={name:"autolink",tokenize:EF};function EF(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 En(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||ud(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):uF(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):m(d)}function m(d){if((d===45||Nr(d))&&a++<63){const h=d===45?m:f;return e.consume(d),h}return r(d)}}const xc={partial:!0,tokenize:xF};function xF(e,t,r){return a;function a(n){return ot(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const C0={continuation:{tokenize:AF},exit:_F,name:"blockQuote",tokenize:CF};function CF(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 ot(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function AF(e,t,r){const a=this;return i;function i(s){return ot(s)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(C0,t,r)(s)}}function _F(e){e.exit("blockQuote")}const A0={name:"characterEscape",tokenize:OF};function OF(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 dF(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const _0={name:"characterReference",tokenize:TF};function TF(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=fF,u):(e.enter("characterReferenceValue"),n=7,s=fd,u(f))}function u(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return s===Nr&&!gm(a.sliceSerialize(m))?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 tv={partial:!0,tokenize:IF},rv={concrete:!0,name:"codeFenced",tokenize:PF};function PF(e,t,r){const a=this,i={partial:!0,tokenize:p};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"),ot(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(tv,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ot(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===o?r(g):(e.consume(g),m)}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&&ot(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(tv,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 p(g,S,C){let O=0;return _;function _(F){return g.enter("lineEnding"),g.consume(F),g.exit("lineEnding"),x}function x(F){return g.enter("codeFencedFence"),ot(F)?Et(g,A,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===o?(g.enter("codeFencedFenceSequence"),N(F)):C(F)}function N(F){return F===o?(O++,g.consume(F),N):O>=s?(g.exit("codeFencedFenceSequence"),ot(F)?Et(g,I,"whitespace")(F):I(F)):C(F)}function I(F){return F===null||Oe(F)?(g.exit("codeFencedFence"),S(F)):C(F)}}}function IF(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 lf={name:"codeIndented",tokenize:NF},RF={partial:!0,tokenize:jF};function NF(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(RF,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 jF(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 DF={name:"codeText",previous:MF,resolve:FF,tokenize:LF};function FF(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 MF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LF(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 qF{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&&vs(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),vs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vs(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);vs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vs(this.left,r.reverse())}}}function vs(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 O0(e){const t={};let r=-1,a,i,n,s,o,c,l;const u=new qF(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,zF(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 Tn(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function zF(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,m=-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;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+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(),m=v.length;m--;){const y=o.slice(v[m],v[m+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),m=-1;++m<c.length;)l[h+c[m][0]]=h+c[m][1],h+=c[m][1]-c[m][0]-1;return l}const $F={resolve:BF,tokenize:VF},UF={partial:!0,tokenize:HF};function BF(e){return O0(e),e}function VF(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(UF,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 HF(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 T0(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),m):y===null||y===32||y===41||ud(y)?r(y):(e.enter(a),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(y))}function m(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),m(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||Er(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||ud(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 P0(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=!ot(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function I0(e,t,r,a,i,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(a),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,c):r(m)}function c(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),t):(e.enter(n),l(m))}function l(m){return m===s?(e.exit(n),c(s)):m===null?r(m):Oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(m))}function u(m){return m===s||m===null||Oe(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:u)}function f(m){return m===s||m===92?(e.consume(m),u):u(m)}}function Ns(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ot(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const WF={name:"definition",tokenize:GF},KF={partial:!0,tokenize:JF};function GF(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return P0.call(a,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Di(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 Er(d)?Ns(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(KF,f,f)(d)}function f(d){return ot(d)?Et(e,m,"whitespace")(d):m(d)}function m(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function JF(e,t,r){return a;function a(o){return Er(o)?Ns(e,i)(o):r(o)}function i(o){return I0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return ot(o)?Et(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Oe(o)?t(o):r(o)}}const YF={name:"hardBreakEscape",tokenize:XF};function XF(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 ZF={name:"headingAtx",resolve:QF,tokenize:eM};function QF(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"},Tn(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function eM(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||Er(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)):ot(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||Er(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),l)}}const tM=["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"],nv=["pre","script","style","textarea"],rM={concrete:!0,name:"htmlFlow",resolveTo:iM,tokenize:sM},nM={partial:!0,tokenize:lM},aM={partial:!0,tokenize:oM};function iM(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 sM(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),m):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function m(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,o=0,h):En(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 R="CDATA[";return T===R.charCodeAt(o++)?(e.consume(T),o===R.length?a.interrupt?t:A:h):r(T)}function k(T){return En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||Er(T)){const R=T===47,M=s.toLowerCase();return!R&&!n&&nv.includes(M)?(i=1,a.interrupt?t(T):A(T)):tM.includes(s.toLowerCase())?(i=6,R?(e.consume(T),y):a.interrupt?t(T):A(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:A):r(T)}function b(T){return ot(T)?(e.consume(T),b):_(T)}function w(T){return T===47?(e.consume(T),_):T===58||T===95||En(T)?(e.consume(T),E):ot(T)?(e.consume(T),w):_(T)}function E(T){return T===45||T===46||T===58||T===95||Nr(T)?(e.consume(T),E):p(T)}function p(T){return T===61?(e.consume(T),g):ot(T)?(e.consume(T),p):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):ot(T)?(e.consume(T),g):C(T)}function S(T){return T===c?(e.consume(T),c=null,O):T===null||Oe(T)?r(T):(e.consume(T),S)}function C(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Er(T)?p(T):(e.consume(T),C)}function O(T){return T===47||T===62||ot(T)?w(T):r(T)}function _(T){return T===62?(e.consume(T),x):r(T)}function x(T){return T===null||Oe(T)?A(T):ot(T)?(e.consume(T),x):r(T)}function A(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),D):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(nM,U,N)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),N(T)):(e.consume(T),A)}function N(T){return e.check(aM,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),F}function F(T){return T===null||Oe(T)?N(T):(e.enter("htmlFlowData"),A(T))}function $(T){return T===45?(e.consume(T),P):A(T)}function Y(T){return T===47?(e.consume(T),s="",Z):A(T)}function Z(T){if(T===62){const R=s.toLowerCase();return nv.includes(R)?(e.consume(T),D):A(T)}return En(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Z):A(T)}function ie(T){return T===93?(e.consume(T),P):A(T)}function P(T){return T===62?(e.consume(T),D):T===45&&i===2?(e.consume(T),P):A(T)}function D(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),D)}function U(T){return e.exit("htmlFlow"),t(T)}}function oM(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 lM(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(xc,t,r)}}const cM={name:"htmlText",tokenize:uM};function uM(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),p):P===63?(e.consume(P),w):En(P)?(e.consume(P),C):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):En(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),m):Oe(P)?(s=f,Y(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?m(P):f(P)}function h(P){const D="CDATA[";return P===D.charCodeAt(n++)?(e.consume(P),n===D.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 p(P){return En(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)):ot(P)?(e.consume(P),S):$(P)}function C(P){return P===45||Nr(P)?(e.consume(P),C):P===47||P===62||Er(P)?O(P):r(P)}function O(P){return P===47?(e.consume(P),$):P===58||P===95||En(P)?(e.consume(P),_):Oe(P)?(s=O,Y(P)):ot(P)?(e.consume(P),O):$(P)}function _(P){return P===45||P===46||P===58||P===95||Nr(P)?(e.consume(P),_):x(P)}function x(P){return P===61?(e.consume(P),A):Oe(P)?(s=x,Y(P)):ot(P)?(e.consume(P),x):O(P)}function A(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,N):Oe(P)?(s=A,Y(P)):ot(P)?(e.consume(P),A):(e.consume(P),I)}function N(P){return P===i?(e.consume(P),i=void 0,F):P===null?r(P):Oe(P)?(s=N,Y(P)):(e.consume(P),N)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||Er(P)?O(P):(e.consume(P),I)}function F(P){return P===47||P===62||Er(P)?O(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 ot(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 vm={name:"labelEnd",resolveAll:pM,resolveTo:hM,tokenize:gM},fM={tokenize:yM},dM={tokenize:vM},mM={tokenize:bM};function pM(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&&Tn(e,0,e.length,r),e}function hM(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=Ur(o,e.slice(n+1,n+a+3)),o=Ur(o,[["enter",u,t]]),o=Ur(o,ym(t.parser.constructs.insideSpan.null,e.slice(n+a+4,s-3),t)),o=Ur(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=Ur(o,e.slice(s+1)),o=Ur(o,[["exit",c,t]]),Tn(e,n,e.length,o),e}function gM(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(m){return n?n._inactive?f(m):(s=a.parser.defined.includes(Di(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):r(m)}function c(m){return m===40?e.attempt(fM,u,s?u:f)(m):m===91?e.attempt(dM,u,s?l:f)(m):s?u(m):f(m)}function l(m){return e.attempt(mM,u,f)(m)}function u(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function yM(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 Er(f)?Ns(e,n)(f):n(f)}function n(f){return f===41?u(f):T0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Er(f)?Ns(e,c)(f):u(f)}function o(f){return r(f)}function c(f){return f===34||f===39||f===40?I0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return Er(f)?Ns(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 vM(e,t,r){const a=this;return i;function i(o){return P0.call(a,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return a.parser.defined.includes(Di(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function bM(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 kM={name:"labelStartImage",resolveAll:vm.resolveAll,tokenize:wM};function wM(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 SM={name:"labelStartLink",resolveAll:vm.resolveAll,tokenize:EM};function EM(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 cf={name:"lineEnding",tokenize:xM};function xM(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Nl={name:"thematicBreak",tokenize:CM};function CM(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"),ot(l)?Et(e,o,"whitespace")(l):o(l))}}const Sr={continuation:{tokenize:TM},exit:IM,name:"list",tokenize:OM},AM={partial:!0,tokenize:RM},_M={partial:!0,tokenize:PM};function OM(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:fd(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(Nl,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 fd(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(xc,a.interrupt?r:u,e.attempt(AM,m,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return ot(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function TM(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(xc,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||!ot(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(_M,t,s)(o))}function s(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(Sr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function PM(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 IM(e){e.exit(this.containerState.type)}function RM(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!ot(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const av={name:"setextUnderline",resolveTo:NM,tokenize:jM};function NM(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 jM(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"),ot(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const DM={tokenize:FM};function FM(e){const t=this,r=e.attempt(xc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt($F,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 MM={resolveAll:N0()},LM=R0("string"),qM=R0("text");function R0(e){return{resolveAll:N0(e==="text"?zM: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 m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function N0(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 zM(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 $M={42:Sr,43:Sr,45:Sr,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,62:C0},UM={91:WF},BM={[-2]:lf,[-1]:lf,32:lf},VM={35:ZF,42:Nl,45:[av,Nl],60:rM,61:av,95:Nl,96:rv,126:rv},HM={38:_0,92:A0},WM={[-5]:cf,[-4]:cf,[-3]:cf,33:kM,38:_0,42:dd,60:[SF,cM],91:SM,92:[YF,A0],93:vm,95:dd,96:DF},KM={null:[dd,MM]},GM={null:[42,95]},JM={null:[]},YM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:GM,contentInitial:UM,disable:JM,document:$M,flow:VM,flowInitial:BM,insideSpan:KM,string:HM,text:WM},Symbol.toStringTag,{value:"Module"}));function XM(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(p),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:m,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(x){return s=Ur(s,x),v(),s[s.length-1]!==null?[]:(C(t,0),l.events=ym(n,l.events,l),l.events)}function m(x,A){return QM(d(x),A)}function d(x){return ZM(s,x)}function h(){const{_bufferIndex:x,_index:A,line:N,column:I,offset:F}=a;return{_bufferIndex:x,_index:A,line:N,column:I,offset:F}}function k(x){i[x.line]=x.column,_()}function v(){let x;for(;a._index<s.length;){const A=s[a._index];if(typeof A=="string")for(x=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===x&&a._bufferIndex<A.length;)y(A.charCodeAt(a._bufferIndex));else y(A)}}function y(x){u=u(x)}function b(x){Oe(x)?(a.line++,a.column=1,a.offset+=x===-3?2:1,_()):x!==-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=x}function w(x,A){const N=A||{};return N.type=x,N.start=h(),l.events.push(["enter",N,l]),o.push(N),N}function E(x){const A=o.pop();return A.end=h(),l.events.push(["exit",A,l]),A}function p(x,A){C(x,A.from)}function g(x,A){A.restore()}function S(x,A){return N;function N(I,F,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):D(I);function D(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=O(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?M():B.tokenize.call(A?Object.assign(Object.create(l),A):l,c,R,M)(K)}}function R(B){return x(ie,P),F}function M(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function C(x,A){x.resolveAll&&!n.includes(x)&&n.push(x),x.resolve&&Tn(l.events,A,l.events.length-A,x.resolve(l.events.slice(A),l)),x.resolveTo&&(l.events=x.resolveTo(l.events,l))}function O(){const x=h(),A=l.previous,N=l.currentConstruct,I=l.events.length,F=Array.from(o);return{from:I,restore:$};function $(){a=x,l.previous=A,l.currentConstruct=N,l.events.length=I,o=F,_()}}function _(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function ZM(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 QM(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=`
|
|
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 m=Array.isArray(c[f])?l:u;m[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:m}=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,m.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),m.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:m,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:m,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=o,e.default=i})(Iu)),Iu}var nl={},Gg;function YN(){if(Gg)return nl;Gg=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Be(),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 nl.default=a,nl}var al={},Jg;function l0(){if(Jg)return al;Jg=1,Object.defineProperty(al,"__esModule",{value:!0});const e=mn(),t=Be(),r=Aa(),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:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=m;if(m.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(m,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 C=(0,a.schemaRefOrVal)(m,l.properties,"properties");S=(0,e.isOwnProperty)(o,C,g)}else k.length?S=(0,t.or)(...k.map(C=>(0,t._)`${g} === ${C}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(C=>(0,t._)`${(0,e.usePattern)(s,C)}.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)(m,c)){const S=o.name("valid");h.removeAdditional==="failing"?(p(g,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(g)})):(p(g,S),d||o.if((0,t.not)(S),()=>o.break()))}}function p(g,S,C){const O={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};C===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(O,S)}}};return al.default=n,al}var il={},Yg;function XN(){if(Yg)return il;Yg=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Sc(),t=mn(),r=et(),a=l0(),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 m=f.filter(v=>!(0,r.alwaysValidSchema)(u,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)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 il.default=i,il}var sl={},Xg;function ZN(){if(Xg)return sl;Xg=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=mn(),t=Be(),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,m=(0,e.allSchemaProperties)(o),d=m.filter(E=>(0,r.alwaysValidSchema)(u,o[E]));if(m.length===0||d.length===m.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 m)h&&b(E),u.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const p in h)new RegExp(E).test(p)&&(0,r.checkStrictMode)(u,`property ${p} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",c,p=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${p})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:p,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${p}]`,!0):!g&&!u.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return sl.default=i,sl}var ol={},Zg;function QN(){if(Zg)return ol;Zg=1,Object.defineProperty(ol,"__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 ol.default=t,ol}var ll={},Qg;function ej(){if(Qg)return ll;Qg=1,Object.defineProperty(ll,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:mn().validateUnion,error:{message:"must match a schema in anyOf"}};return ll.default=t,ll}var cl={},ey;function tj(){if(ey)return cl;ey=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=Be(),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),m=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(m,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return cl.default=a,cl}var ul={},ty;function rj(){if(ty)return ul;ty=1,Object.defineProperty(ul,"__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 ul.default=t,ul}var fl={},ry;function nj(){if(ry)return fl;ry=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Be(),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),m=s.name("_valid");if(d(),n.reset(),l&&u){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,h("then",k),h("else",k))}else l?s.if(m,h("then")):s.if((0,e.not)(m),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},m);s.assign(f,m),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 fl.default=a,fl}var dl={},ny;function aj(){if(ny)return dl;ny=1,Object.defineProperty(dl,"__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 dl.default=t,dl}var ay;function ij(){if(ay)return Qo;ay=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=s0(),t=WN(),r=o0(),a=KN(),i=GN(),n=JN(),s=YN(),o=l0(),c=XN(),l=ZN(),u=QN(),f=ej(),m=tj(),d=rj(),h=nj(),k=aj();function v(y=!1){const b=[u.default,f.default,m.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 Qo.default=v,Qo}var ml={},pl={},iy;function sj(){if(iy)return pl;iy=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Be(),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:m,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)(p(),g()));function p(){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})`,C=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${C}`}}function v(){const y=h.formats[c];if(!y){p();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function p(){if(f.strictSchema===!1){h.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function g(C){const O=C instanceof RegExp?(0,e.regexpCode)(C):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,_=n.scopeValue("formats",{key:c,ref:C,code:O});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,e._)`${_}.validate`]:["string",C,_]}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 pl.default=r,pl}var sy;function oj(){if(sy)return ml;sy=1,Object.defineProperty(ml,"__esModule",{value:!0});const t=[sj().default];return ml.default=t,ml}var La={},oy;function lj(){return oy||(oy=1,Object.defineProperty(La,"__esModule",{value:!0}),La.contentVocabulary=La.metadataVocabulary=void 0,La.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],La.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),La}var ly;function cj(){if(ly)return Mo;ly=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=NN(),t=HN(),r=ij(),a=oj(),i=lj(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Mo.default=n,Mo}var hl={},ps={},cy;function uj(){if(cy)return ps;cy=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(ps.DiscrError=e={})),ps}var uy;function fj(){if(uy)return hl;uy=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Be(),t=uj(),r=lm(),a=Ec(),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:m}=o,{oneOf:d}=f;if(!m.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 p in E)c.elseIf((0,e._)`${v} === ${p}`),c.assign(k,b(E[p]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const p=c.name("valid"),g=o.subschema({keyword:"oneOf",schemaProp:E},p);return o.mergeEvaluated(g,e.Name),p}function w(){var E;const p={},g=C(f);let S=!0;for(let x=0;x<d.length;x++){let A=d[x];if(A!=null&&A.$ref&&!(0,i.schemaHasRulesButRef)(A,m.self.RULES)){const I=A.$ref;if(A=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,I),A instanceof r.SchemaEnv&&(A=A.schema),A===void 0)throw new a.default(m.opts.uriResolver,m.baseId,I)}const N=(E=A==null?void 0:A.properties)===null||E===void 0?void 0:E[h];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||C(A)),O(N,x)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return p;function C({required:x}){return Array.isArray(x)&&x.includes(h)}function O(x,A){if(x.const)_(x.const,A);else if(x.enum)for(const N of x.enum)_(N,A);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function _(x,A){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${h}" values must be unique strings`);p[x]=A}}}};return hl.default=s,hl}const dj="http://json-schema.org/draft-07/schema#",mj="http://json-schema.org/draft-07/schema#",pj="Core schema meta-schema",hj={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:[]}},gj=["object","boolean"],yj={$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:"#"}},vj={$schema:dj,$id:mj,title:pj,definitions:hj,type:gj,properties:yj,default:!0};var fy;function c0(){return fy||(fy=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=PN(),a=cj(),i=fj(),n=vj,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=Sc();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Be();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=om();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Ec();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Ro,Ro.exports)),Ro.exports}var bj=c0();const kj=Pn(bj);var gl={exports:{}},Ru={},dy;function wj(){return dy||(dy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(O,_){return{validate:O,compare:_}}e.fullFormats={date:t(n,s),time:t(c,l),"date-time":t(f,m),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:C,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:p},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,m),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(O){return O%4===0&&(O%100!==0||O%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(O){const _=a.exec(O);if(!_)return!1;const x=+_[1],A=+_[2],N=+_[3];return A>=1&&A<=12&&N>=1&&N<=(A===2&&r(x)?29:i[A])}function s(O,_){if(O&&_)return O>_?1:O<_?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(O,_){const x=o.exec(O);if(!x)return!1;const A=+x[1],N=+x[2],I=+x[3],F=x[5];return(A<=23&&N<=59&&I<=59||A===23&&N===59&&I===60)&&(!_||F!=="")}function l(O,_){if(!(O&&_))return;const x=o.exec(O),A=o.exec(_);if(x&&A)return O=x[1]+x[2]+x[3]+(x[4]||""),_=A[1]+A[2]+A[3]+(A[4]||""),O>_?1:O<_?-1:0}const u=/t|\s/i;function f(O){const _=O.split(u);return _.length===2&&n(_[0])&&c(_[1],!0)}function m(O,_){if(!(O&&_))return;const[x,A]=O.split(u),[N,I]=_.split(u),F=s(x,N);if(F!==void 0)return F||l(A,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(O){return d.test(O)&&h.test(O)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(O){return v.lastIndex=0,v.test(O)}const b=-2147483648,w=2**31-1;function E(O){return Number.isInteger(O)&&O<=w&&O>=b}function p(O){return Number.isInteger(O)}function g(){return!0}const S=/[^\\]\\Z/;function C(O){if(S.test(O))return!1;try{return new RegExp(O),!0}catch{return!1}}})(Ru)),Ru}var Nu={},my;function Sj(){return my||(my=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=c0(),r=Be(),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:m}=o,{opts:d,self:h}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,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 p=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(p))}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})(Nu)),Nu}var py;function Ej(){return py||(py=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=wj(),a=Sj(),i=Be(),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,m]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,m),u.keywords&&a.default(l),l};o.get=(l,u="full")=>{const m=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!m)throw new Error(`Unknown format "${l}"`);return m};function c(l,u,f,m){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${m}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(gl,gl.exports)),gl.exports}var xj=Ej();const hy=Pn(xj),Cj={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Aj=/^(#?([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*\)))$/,_j=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Oj(e,t,r={},a,i=kj,n){let s=new i({...Cj,...r});return a?hy(s,a):a!==!1&&hy(s),s.addFormat("data-url",_j),s.addFormat("color",Aj),s.addKeyword(xd),Array.isArray(e)&&s.addMetaSchema(e),Xe(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class Tj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=Oj(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[pt]&&(s=this.ajv.getSchema(t[pt])),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 pN(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[pt])!==null&&r!==void 0?r:rb;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Je(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=em(t),s=(i=n[pt])!==null&&i!==void 0?i:pT(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 Rl(e={},t){return new Tj(e,t)}Rl();var ju,gy;function Pj(){return gy||(gy=1,ju=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}}),ju}var Du,yy;function Ij(){return yy||(yy=1,Du=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}}),Du}var Fu,vy;function Rj(){return vy||(vy=1,Fu=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}}),Fu}var Mu,by;function Nj(){return by||(by=1,Mu=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}}),Mu}var Lu,ky;function jj(){return ky||(ky=1,Lu=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}}),Lu}var qu,wy;function Dj(){return wy||(wy=1,qu=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}}),qu}var zu,Sy;function Fj(){return Sy||(Sy=1,zu=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}}),zu}var $u,Ey;function Mj(){return Ey||(Ey=1,$u=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}}),$u}var Uu,xy;function Lj(){return xy||(xy=1,Uu=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}}),Uu}var Bu,Cy;function qj(){return Cy||(Cy=1,Bu=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}}),Bu}var Vu,Ay;function zj(){return Ay||(Ay=1,Vu=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}}),Vu}var Hu,_y;function $j(){return _y||(_y=1,Hu=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}}),Hu}var Wu,Oy;function Uj(){return Oy||(Oy=1,Wu=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}}),Wu}var Ku,Ty;function Bj(){return Ty||(Ty=1,Ku=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}}),Ku}var Gu,Py;function Vj(){return Py||(Py=1,Gu=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}}),Gu}var Ju,Iy;function Hj(){return Iy||(Iy=1,Ju=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}}),Ju}var Yu,Ry;function Wj(){return Ry||(Ry=1,Yu=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}}),Yu}var Xu,Ny;function Kj(){return Ny||(Ny=1,Xu=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}}),Xu}var Zu,jy;function Gj(){return jy||(jy=1,Zu=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}}),Zu}var Qu,Dy;function Jj(){return Dy||(Dy=1,Qu=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}}),Qu}var ef,Fy;function Yj(){return Fy||(Fy=1,ef=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}}),ef}var tf,My;function Xj(){return My||(My=1,tf=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}}),tf}var rf,Ly;function Zj(){return Ly||(Ly=1,rf=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}}),rf}var nf,qy;function Qj(){return qy||(qy=1,nf={en:Pj(),ar:Ij(),ca:Rj(),cs:Nj(),de:jj(),es:Dj(),fi:Fj(),fr:Mj(),hu:Lj(),id:qj(),it:zj(),ja:$j(),ko:Uj(),nb:Bj(),nl:Vj(),pl:Hj(),"pt-BR":Wj(),ru:Kj(),sk:Gj(),sv:Jj(),th:Yj(),zh:Xj(),"zh-TW":Zj()}),nf}var eD=Qj();const hs=Pn(eD),yl={flex:1,paddingLeft:6,paddingRight:6};function tD(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:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:yl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:yl,disabled:t||f||!a,onClick:l,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",style:yl,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",style:yl,disabled:t||f,onClick:c,uiSchema:d,registry:m})})]})}function rD(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,s=ke(n),o=xe("ArrayFieldItemButtonsTemplate",i,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function nD(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:m}=e,d=ke(m),h=xe("ArrayFieldTitleTemplate",c,d),k=xe("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:m,registry:c,optionalDataControl:y?n:void 0}),j.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:m,registry:c}),y?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:Rr(a,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:c})})]})]})]})})})}const oo={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},aD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),iD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),sD=()=>j.jsxs("svg",{...oo,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),u0=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M3.5 8h9"})}),oD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Xi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function lD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.CopyButton),...e,icon:j.jsx(sD,{})})}function cD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveUpButton),...e,icon:j.jsx(aD,{})})}function uD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveDownButton),...e,icon:j.jsx(iD,{})})}function fD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.RemoveButton),...e,variant:"danger",icon:j.jsx(u0,{})})}function dD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.ClearButton),...e,icon:j.jsx(u0,{})})}function mD({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(Xi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Le.AddItemButton),icon:j.jsx(oD,{})})}function pD({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Ck(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const hD={SubmitButton:pD,AddButton:mD,CopyButton:lD,MoveDownButton:uD,MoveUpButton:cD,RemoveButton:fD,ClearButton:dD};function gD(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const yD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bD={};function zy(e,t){return(bD.jsx?vD:yD).test(e)}const kD=/[ \t\n\f\r]/g;function wD(e){return typeof e=="object"?e.type==="text"?$y(e.value):!1:$y(e)}function $y(e){return e.replace(kD,"")===""}class lo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}lo.prototype.normal={};lo.prototype.property={};lo.prototype.space=void 0;function f0(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new lo(r,a,t)}function sd(e){return e.toLowerCase()}class xr{constructor(t,r){this.attribute=r,this.property=t}}xr.prototype.attribute="";xr.prototype.booleanish=!1;xr.prototype.boolean=!1;xr.prototype.commaOrSpaceSeparated=!1;xr.prototype.commaSeparated=!1;xr.prototype.defined=!1;xr.prototype.mustUseProperty=!1;xr.prototype.number=!1;xr.prototype.overloadedBoolean=!1;xr.prototype.property="";xr.prototype.spaceSeparated=!1;xr.prototype.space=void 0;let SD=0;const Pe=si(),Lt=si(),od=si(),ue=si(),kt=si(),Va=si(),Tr=si();function si(){return 2**++SD}const ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Lt,commaOrSpaceSeparated:Tr,commaSeparated:Va,number:ue,overloadedBoolean:od,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),af=Object.keys(ld);class um extends xr{constructor(t,r,a,i){let n=-1;if(super(t,r),Uy(this,"space",i),typeof a=="number")for(;++n<af.length;){const s=af[n];Uy(this,af[n],(a&ld[s])===ld[s])}}}um.prototype.defined=!0;function Uy(e,t,r){r&&(e[t]=r)}function Zi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new um(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[sd(a)]=a,r[sd(n.attribute)]=a}return new lo(t,r,e.space)}const d0=Zi({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:kt,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Lt,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 m0(e,t){return t in e?e[t]:t}function p0(e,t){return m0(e,t.toLowerCase())}const ED=Zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Va,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:Lt,controls:Pe,controlsList:kt,coords:ue|Va,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:od,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:od,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:Lt,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:Lt,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:Lt,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:Va,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:p0}),xD=Zi({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:Tr,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:Va,g2:Va,glyphName:Va,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:Tr,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:Tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tr,rev:Tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tr,requiredFeatures:Tr,requiredFonts:Tr,requiredFormats:Tr,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:Tr,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:Tr,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:Tr,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:m0}),h0=Zi({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()}}),g0=Zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:p0}),y0=Zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),CD={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"},AD=/[A-Z]/g,By=/-[a-z]/g,_D=/^data[-\w.:]+$/i;function OD(e,t){const r=sd(t);let a=t,i=xr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&_D.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(By,PD);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!By.test(n)){let s=n.replace(AD,TD);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=um}return new i(a,t)}function TD(e){return"-"+e.toLowerCase()}function PD(e){return e.charAt(1).toUpperCase()}const ID=f0([d0,ED,h0,g0,y0],"html"),fm=f0([d0,xD,h0,g0,y0],"svg");function RD(e){return e.join(" ").trim()}var vi={},sf,Vy;function ND(){if(Vy)return sf;Vy=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="",m="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 F=I.match(t);F&&(b+=F.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function p(){var I={line:b,column:w};return function(F){return F.position=new g(I),O(),F}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var F=new Error(y.source+":"+b+":"+w+": "+I);if(F.reason=I,F.filename=y.source,F.line=b,F.column=w,F.source=v,!y.silent)throw F}function C(I){var F=I.exec(v);if(F){var $=F[0];return E($),v=v.slice($.length),F}}function O(){C(r)}function _(I){var F;for(I=I||[];F=x();)F!==!1&&I.push(F);return I}function x(){var I=p();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var F=2;f!=v.charAt(F)&&(u!=v.charAt(F)||l!=v.charAt(F+1));)++F;if(F+=2,f===v.charAt(F-1))return S("End of comment missing");var $=v.slice(2,F-2);return w+=2,E($),v=v.slice(F),w+=2,I({type:m,comment:$})}}function A(){var I=p(),F=C(a);if(F){if(x(),!C(i))return S("property missing ':'");var $=C(n),Y=I({type:d,property:k(F[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return C(s),Y}}function N(){var I=[];_(I);for(var F;F=A();)F!==!1&&(I.push(F),_(I));return I}return O(),N()}function k(v){return v?v.replace(o,f):f}return sf=h,sf}var Hy;function jD(){if(Hy)return vi;Hy=1;var e=vi&&vi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=r;const t=e(ND());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 vi}var gs={},Wy;function DD(){if(Wy)return gs;Wy=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.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 gs.camelCase=c,gs}var ys,Ky;function FD(){if(Ky)return ys;Ky=1;var e=ys&&ys.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(jD()),r=DD();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,ys=a,ys}var MD=FD();const LD=Pn(MD),v0=b0("end"),dm=b0("start");function b0(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 qD(e){const t=dm(e),r=v0(e);if(t&&r)return{start:t,end:r}}function Rs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gy(e.position):"start"in e||"end"in e?Gy(e):"line"in e||"column"in e?cd(e):""}function cd(e){return Jy(e&&e.line)+":"+Jy(e&&e.column)}function Gy(e){return cd(e&&e.start)+"-"+cd(e&&e.end)}function Jy(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=Rs(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 mm={}.hasOwnProperty,zD=new Map,$D=/[A-Z]/g,UD=new Set(["table","tbody","thead","tfoot","tr"]),BD=new Set(["td","th"]),k0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VD(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=ZD(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=XD(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"?fm:ID,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=w0(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function w0(e,t,r){if(t.type==="element")return HD(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return WD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return GD(e,t,r);if(t.type==="mdxjsEsm")return KD(e,t);if(t.type==="root")return JD(e,t,r);if(t.type==="text")return YD(e,t)}function HD(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=E0(e,t.tagName,!1),s=QD(e,t);let o=hm(e,t);return UD.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!wD(c):!0})),S0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function WD(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)}Ws(e,t.position)}function KD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ws(e,t.position)}function GD(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:E0(e,t.name,!0),s=eF(e,t),o=hm(e,t);return S0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function JD(e,t,r){const a={};return pm(a,hm(e,t)),e.create(t,e.Fragment,a,r)}function YD(e,t){return t.value}function S0(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function pm(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function XD(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 ZD(e,t){return r;function r(a,i,n,s){const o=Array.isArray(n.children),c=dm(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 QD(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&mm.call(t.properties,i)){const n=tF(e,i,t.properties[i]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&BD.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 eF(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 Ws(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 Ws(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function hm(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:zD;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=w0(e,n,s);o!==void 0&&r.push(o)}return r}function tF(e,t,r){const a=OD(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?gD(r):RD(r)),a.property==="style"){let i=typeof r=="object"?r:rF(e,String(r));return e.stylePropertyNameCase==="css"&&(i=nF(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?CD[a.property]||a.property:a.attribute,r]}}function rF(e,t){try{return LD(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=k0+"#cannot-parse-style-attribute",i}}function E0(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=zy(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=zy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return mm.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ws(e)}function Ws(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=k0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function nF(e){const t={};let r;for(r in e)mm.call(e,r)&&(t[aF(r)]=e[r]);return t}function aF(e){let t=e.replace($D,iF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function iF(e){return"-"+e.toLowerCase()}const of={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"]},sF={};function oF(e,t){const r=sF,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return x0(e,a,i)}function x0(e,t,r){if(lF(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 Yy(e.children,t,r)}return Array.isArray(e)?Yy(e,t,r):""}function Yy(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=x0(e[i],t,r);return a.join("")}function lF(e){return!!(e&&typeof e=="object")}const Xy=document.createElement("i");function gm(e){const t="&"+e+";";Xy.innerHTML=t;const r=Xy.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Tn(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 Ur(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const Zy={}.hasOwnProperty;function cF(e){const t={};let r=-1;for(;++r<e.length;)uF(t,e[r]);return t}function uF(e,t){let r;for(r in t){const i=(Zy.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Zy.call(i,s)||(i[s]=[]);const o=n[s];fF(i[s],Array.isArray(o)?o:o?[o]:[])}}}function fF(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Tn(e,0,0,a)}function C0(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 Di(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const En=_a(/[A-Za-z]/),Nr=_a(/[\dA-Za-z]/),dF=_a(/[#-'*+\--9=?A-Z^-~]/);function ud(e){return e!==null&&(e<32||e===127)}const fd=_a(/\d/),mF=_a(/[\dA-Fa-f]/),pF=_a(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function Er(e){return e!==null&&(e<0||e===32)}function ot(e){return e===-2||e===-1||e===32}const hF=_a(new RegExp("\\p{P}|\\p{S}","u")),gF=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Qi(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 ot(c)?(e.enter(r),o(c)):t(c)}function o(c){return ot(c)&&n++<i?(e.consume(c),o):(e.exit(r),t(c))}}const yF={tokenize:vF};function vF(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 bF={tokenize:kF},Qy={tokenize:wF};function kF(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 p=E,g;for(;p--;)if(t.events[p][0]==="exit"&&t.events[p][1].type==="chunkFlow"){g=t.events[p][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return Tn(t.events,p+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 m(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Qy,u,f)(w)}function u(w){return i&&b(),y(a),m(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,s=t.now().offset,h(w)}function m(w){return t.containerState={},e.attempt(Qy,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),m(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 p=t.sliceStream(w);if(E&&p.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(p),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 C=S,O,_;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(O){_=t.events[C][1].end;break}O=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={..._},g++;Tn(t.events,C+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const p=r[E];t.containerState=p[1],p[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 wF(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 ev(e){if(e===null||Er(e)||gF(e))return 1;if(hF(e))return 2}function ym(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 dd={name:"attention",resolveAll:SF,tokenize:EF};function SF(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},m={...e[r][1].start};tv(f,-c),tv(m,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:m},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=Ur(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Ur(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",n,t]]),l=Ur(l,ym(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Ur(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=Ur(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,Tn(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 EF(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=ev(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=ev(c),f=!u||u===2&&i||r.includes(c),m=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!m)),l._close=!!(n===42?m:m&&(u||!f)),t(c)}}function tv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xF={name:"autolink",tokenize:CF};function CF(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 En(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||ud(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):dF(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):m(d)}function m(d){if((d===45||Nr(d))&&a++<63){const h=d===45?m:f;return e.consume(d),h}return r(d)}}const xc={partial:!0,tokenize:AF};function AF(e,t,r){return a;function a(n){return ot(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const A0={continuation:{tokenize:OF},exit:TF,name:"blockQuote",tokenize:_F};function _F(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 ot(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function OF(e,t,r){const a=this;return i;function i(s){return ot(s)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(A0,t,r)(s)}}function TF(e){e.exit("blockQuote")}const _0={name:"characterEscape",tokenize:PF};function PF(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 pF(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const O0={name:"characterReference",tokenize:IF};function IF(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=mF,u):(e.enter("characterReferenceValue"),n=7,s=fd,u(f))}function u(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return s===Nr&&!gm(a.sliceSerialize(m))?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 rv={partial:!0,tokenize:NF},nv={concrete:!0,name:"codeFenced",tokenize:RF};function RF(e,t,r){const a=this,i={partial:!0,tokenize:p};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"),ot(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(rv,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ot(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===o?r(g):(e.consume(g),m)}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&&ot(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(rv,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 p(g,S,C){let O=0;return _;function _(F){return g.enter("lineEnding"),g.consume(F),g.exit("lineEnding"),x}function x(F){return g.enter("codeFencedFence"),ot(F)?Et(g,A,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===o?(g.enter("codeFencedFenceSequence"),N(F)):C(F)}function N(F){return F===o?(O++,g.consume(F),N):O>=s?(g.exit("codeFencedFenceSequence"),ot(F)?Et(g,I,"whitespace")(F):I(F)):C(F)}function I(F){return F===null||Oe(F)?(g.exit("codeFencedFence"),S(F)):C(F)}}}function NF(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 lf={name:"codeIndented",tokenize:DF},jF={partial:!0,tokenize:FF};function DF(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(jF,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 FF(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 MF={name:"codeText",previous:qF,resolve:LF,tokenize:zF};function LF(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 qF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zF(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 $F{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&&vs(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),vs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vs(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);vs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vs(this.left,r.reverse())}}}function vs(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 T0(e){const t={};let r=-1,a,i,n,s,o,c,l;const u=new $F(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,UF(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 Tn(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function UF(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,m=-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;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+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(),m=v.length;m--;){const y=o.slice(v[m],v[m+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),m=-1;++m<c.length;)l[h+c[m][0]]=h+c[m][1],h+=c[m][1]-c[m][0]-1;return l}const BF={resolve:HF,tokenize:WF},VF={partial:!0,tokenize:KF};function HF(e){return T0(e),e}function WF(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(VF,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 KF(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 P0(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),m):y===null||y===32||y===41||ud(y)?r(y):(e.enter(a),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(y))}function m(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),m(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||Er(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||ud(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 I0(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=!ot(d)),d===92?m:f)}function m(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(m){return m===34||m===39||m===40?(e.enter(a),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,c):r(m)}function c(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),t):(e.enter(n),l(m))}function l(m){return m===s?(e.exit(n),c(s)):m===null?r(m):Oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(m))}function u(m){return m===s||m===null||Oe(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:u)}function f(m){return m===s||m===92?(e.consume(m),u):u(m)}}function Ns(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ot(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const GF={name:"definition",tokenize:YF},JF={partial:!0,tokenize:XF};function YF(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return I0.call(a,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Di(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 Er(d)?Ns(e,l)(d):l(d)}function l(d){return P0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(JF,f,f)(d)}function f(d){return ot(d)?Et(e,m,"whitespace")(d):m(d)}function m(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function XF(e,t,r){return a;function a(o){return Er(o)?Ns(e,i)(o):r(o)}function i(o){return R0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return ot(o)?Et(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Oe(o)?t(o):r(o)}}const ZF={name:"hardBreakEscape",tokenize:QF};function QF(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 eM={name:"headingAtx",resolve:tM,tokenize:rM};function tM(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"},Tn(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function rM(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||Er(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)):ot(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||Er(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),l)}}const nM=["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"],av=["pre","script","style","textarea"],aM={concrete:!0,name:"htmlFlow",resolveTo:oM,tokenize:lM},iM={partial:!0,tokenize:uM},sM={partial:!0,tokenize:cM};function oM(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 lM(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),m):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function m(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,o=0,h):En(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 R="CDATA[";return T===R.charCodeAt(o++)?(e.consume(T),o===R.length?a.interrupt?t:A:h):r(T)}function k(T){return En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||Er(T)){const R=T===47,M=s.toLowerCase();return!R&&!n&&av.includes(M)?(i=1,a.interrupt?t(T):A(T)):nM.includes(s.toLowerCase())?(i=6,R?(e.consume(T),y):a.interrupt?t(T):A(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:A):r(T)}function b(T){return ot(T)?(e.consume(T),b):_(T)}function w(T){return T===47?(e.consume(T),_):T===58||T===95||En(T)?(e.consume(T),E):ot(T)?(e.consume(T),w):_(T)}function E(T){return T===45||T===46||T===58||T===95||Nr(T)?(e.consume(T),E):p(T)}function p(T){return T===61?(e.consume(T),g):ot(T)?(e.consume(T),p):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):ot(T)?(e.consume(T),g):C(T)}function S(T){return T===c?(e.consume(T),c=null,O):T===null||Oe(T)?r(T):(e.consume(T),S)}function C(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Er(T)?p(T):(e.consume(T),C)}function O(T){return T===47||T===62||ot(T)?w(T):r(T)}function _(T){return T===62?(e.consume(T),x):r(T)}function x(T){return T===null||Oe(T)?A(T):ot(T)?(e.consume(T),x):r(T)}function A(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),D):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(iM,U,N)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),N(T)):(e.consume(T),A)}function N(T){return e.check(sM,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),F}function F(T){return T===null||Oe(T)?N(T):(e.enter("htmlFlowData"),A(T))}function $(T){return T===45?(e.consume(T),P):A(T)}function Y(T){return T===47?(e.consume(T),s="",Z):A(T)}function Z(T){if(T===62){const R=s.toLowerCase();return av.includes(R)?(e.consume(T),D):A(T)}return En(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Z):A(T)}function ie(T){return T===93?(e.consume(T),P):A(T)}function P(T){return T===62?(e.consume(T),D):T===45&&i===2?(e.consume(T),P):A(T)}function D(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),D)}function U(T){return e.exit("htmlFlow"),t(T)}}function cM(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 uM(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(xc,t,r)}}const fM={name:"htmlText",tokenize:dM};function dM(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),p):P===63?(e.consume(P),w):En(P)?(e.consume(P),C):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):En(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),m):Oe(P)?(s=f,Y(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?m(P):f(P)}function h(P){const D="CDATA[";return P===D.charCodeAt(n++)?(e.consume(P),n===D.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 p(P){return En(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)):ot(P)?(e.consume(P),S):$(P)}function C(P){return P===45||Nr(P)?(e.consume(P),C):P===47||P===62||Er(P)?O(P):r(P)}function O(P){return P===47?(e.consume(P),$):P===58||P===95||En(P)?(e.consume(P),_):Oe(P)?(s=O,Y(P)):ot(P)?(e.consume(P),O):$(P)}function _(P){return P===45||P===46||P===58||P===95||Nr(P)?(e.consume(P),_):x(P)}function x(P){return P===61?(e.consume(P),A):Oe(P)?(s=x,Y(P)):ot(P)?(e.consume(P),x):O(P)}function A(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,N):Oe(P)?(s=A,Y(P)):ot(P)?(e.consume(P),A):(e.consume(P),I)}function N(P){return P===i?(e.consume(P),i=void 0,F):P===null?r(P):Oe(P)?(s=N,Y(P)):(e.consume(P),N)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||Er(P)?O(P):(e.consume(P),I)}function F(P){return P===47||P===62||Er(P)?O(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 ot(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 vm={name:"labelEnd",resolveAll:gM,resolveTo:yM,tokenize:vM},mM={tokenize:bM},pM={tokenize:kM},hM={tokenize:wM};function gM(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&&Tn(e,0,e.length,r),e}function yM(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=Ur(o,e.slice(n+1,n+a+3)),o=Ur(o,[["enter",u,t]]),o=Ur(o,ym(t.parser.constructs.insideSpan.null,e.slice(n+a+4,s-3),t)),o=Ur(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=Ur(o,e.slice(s+1)),o=Ur(o,[["exit",c,t]]),Tn(e,n,e.length,o),e}function vM(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(m){return n?n._inactive?f(m):(s=a.parser.defined.includes(Di(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):r(m)}function c(m){return m===40?e.attempt(mM,u,s?u:f)(m):m===91?e.attempt(pM,u,s?l:f)(m):s?u(m):f(m)}function l(m){return e.attempt(hM,u,f)(m)}function u(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function bM(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 Er(f)?Ns(e,n)(f):n(f)}function n(f){return f===41?u(f):P0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Er(f)?Ns(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 Er(f)?Ns(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 kM(e,t,r){const a=this;return i;function i(o){return I0.call(a,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return a.parser.defined.includes(Di(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function wM(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 SM={name:"labelStartImage",resolveAll:vm.resolveAll,tokenize:EM};function EM(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 xM={name:"labelStartLink",resolveAll:vm.resolveAll,tokenize:CM};function CM(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 cf={name:"lineEnding",tokenize:AM};function AM(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Nl={name:"thematicBreak",tokenize:_M};function _M(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"),ot(l)?Et(e,o,"whitespace")(l):o(l))}}const Sr={continuation:{tokenize:IM},exit:NM,name:"list",tokenize:PM},OM={partial:!0,tokenize:jM},TM={partial:!0,tokenize:RM};function PM(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:fd(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(Nl,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 fd(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(xc,a.interrupt?r:u,e.attempt(OM,m,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return ot(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function IM(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(xc,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||!ot(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(TM,t,s)(o))}function s(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(Sr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function RM(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 NM(e){e.exit(this.containerState.type)}function jM(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!ot(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const iv={name:"setextUnderline",resolveTo:DM,tokenize:FM};function DM(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 FM(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"),ot(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const MM={tokenize:LM};function LM(e){const t=this,r=e.attempt(xc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(BF,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 qM={resolveAll:j0()},zM=N0("string"),$M=N0("text");function N0(e){return{resolveAll:j0(e==="text"?UM: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 m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function j0(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 UM(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 BM={42:Sr,43:Sr,45:Sr,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,62:A0},VM={91:GF},HM={[-2]:lf,[-1]:lf,32:lf},WM={35:eM,42:Nl,45:[iv,Nl],60:aM,61:iv,95:Nl,96:nv,126:nv},KM={38:O0,92:_0},GM={[-5]:cf,[-4]:cf,[-3]:cf,33:SM,38:O0,42:dd,60:[xF,fM],91:xM,92:[ZF,_0],93:vm,95:dd,96:MF},JM={null:[dd,qM]},YM={null:[42,95]},XM={null:[]},ZM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:YM,contentInitial:VM,disable:XM,document:BM,flow:WM,flowInitial:HM,insideSpan:JM,string:KM,text:GM},Symbol.toStringTag,{value:"Module"}));function QM(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(p),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:m,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(x){return s=Ur(s,x),v(),s[s.length-1]!==null?[]:(C(t,0),l.events=ym(n,l.events,l),l.events)}function m(x,A){return tL(d(x),A)}function d(x){return eL(s,x)}function h(){const{_bufferIndex:x,_index:A,line:N,column:I,offset:F}=a;return{_bufferIndex:x,_index:A,line:N,column:I,offset:F}}function k(x){i[x.line]=x.column,_()}function v(){let x;for(;a._index<s.length;){const A=s[a._index];if(typeof A=="string")for(x=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===x&&a._bufferIndex<A.length;)y(A.charCodeAt(a._bufferIndex));else y(A)}}function y(x){u=u(x)}function b(x){Oe(x)?(a.line++,a.column=1,a.offset+=x===-3?2:1,_()):x!==-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=x}function w(x,A){const N=A||{};return N.type=x,N.start=h(),l.events.push(["enter",N,l]),o.push(N),N}function E(x){const A=o.pop();return A.end=h(),l.events.push(["exit",A,l]),A}function p(x,A){C(x,A.from)}function g(x,A){A.restore()}function S(x,A){return N;function N(I,F,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):D(I);function D(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=O(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?M():B.tokenize.call(A?Object.assign(Object.create(l),A):l,c,R,M)(K)}}function R(B){return x(ie,P),F}function M(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function C(x,A){x.resolveAll&&!n.includes(x)&&n.push(x),x.resolve&&Tn(l.events,A,l.events.length-A,x.resolve(l.events.slice(A),l)),x.resolveTo&&(l.events=x.resolveTo(l.events,l))}function O(){const x=h(),A=l.previous,N=l.currentConstruct,I=l.events.length,F=Array.from(o);return{from:I,restore:$};function $(){a=x,l.previous=A,l.currentConstruct=N,l.events.length=I,o=F,_()}}function _(){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 tL(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
107
|
`;break}case-3:{s=`\r
|
|
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 eL(e){const a={constructs:oF([YM,...(e||{}).extensions||[]]),content:i(hF),defined:[],document:i(yF),flow:i(DM),lazy:{},string:i(LM),text:i(qM)};return a;function i(n){return s;function s(o){return XM(a,n,o)}}}function tL(e){for(;!O0(e););return e}const iv=/[\0\t\n\r]/g;function rL(){let e=1,t="",r=!0,a;return i;function i(n,s,o){const c=[];let l,u,f,m,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(iv.lastIndex=f,l=iv.exec(n),m=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(m),!l){t=n.slice(f);break}if(d===10&&f===m&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<m&&(c.push(n.slice(f,m)),e+=m-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=m+1}return o&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const nL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aL(e){return e.replace(nL,iL)}function iL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return x0(r.slice(n?2:1),n?16:10)}return gm(r)||e}const j0={}.hasOwnProperty;function sL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),oL(r)(tL(eL(r).document().write(rL()(e,t,!0))))}function oL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ce),autolinkProtocol:O,autolinkEmail:O,atxHeading:n(te),blockQuote:n(Q),characterEscape:O,characterReference:O,codeFenced:n(q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(q,s),codeText:n(z,s),codeTextData:O,data:O,codeFlowValue:O,definition:n(H),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(me,s),htmlFlowData:O,htmlText:n(me,s),htmlTextData:O,image:n(ve),label:s,link:n(Ce),listItem:n(Re),listItemValue:m,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(te),strong:n(je),thematicBreak:n(be)},exit:{atxHeading:c(),atxHeadingSequence:p,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:_,codeIndented:c(y),codeText:c(F),codeTextData:_,data:_,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(N),htmlFlowData:_,htmlText:c(I),htmlTextData:_,image:c(Y),label:ie,labelText:Z,lineEnding:x,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:R,resourceDestinationString:P,resourceTitleString:D,resource:U,setextHeading:c(C),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};D0(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 pe=-1;for(;++pe<ee.length;)if(ee[pe][1].type==="listOrdered"||ee[pe][1].type==="listUnordered")if(ee[pe][0]==="enter")we.push(pe);else{const tt=we.pop();pe=i(ee,tt,pe)}for(pe=-1;++pe<ee.length;){const tt=t[ee[pe][0]];j0.call(tt,ee[pe][1].type)&&tt[ee[pe][1].type].call(Object.assign({sliceSerialize:ee[pe][2].sliceSerialize},ne),ee[pe][1])}if(ne.tokenStack.length>0){const tt=ne.tokenStack[ne.tokenStack.length-1];(tt[1]||sv).call(ne,void 0,tt[0])}for(re.position={start:ra(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ra(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)re=t.transforms[pe](re)||re;return re}function i(ee,re,ne){let we=re-1,pe=-1,tt=!1,De,Ke,wt,Ot;for(;++we<=ne;){const rt=ee[we];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?pe++:pe--,Ot=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(De&&!Ot&&!pe&&!wt&&(wt=we),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!pe&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||pe===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(De){let bt=we;for(Ke=void 0;bt--;){const nt=ee[bt];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;Ke&&(ee[Ke][1].type="lineEndingBlank",tt=!0),nt[1].type="lineEnding",Ke=bt}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}wt&&(!Ke||wt<Ke)&&(De._spread=!0),De.end=Object.assign({},Ke?ee[Ke][1].start:rt[1].end),ee.splice(Ke||we,0,["exit",De,rt[2]]),we++,ne++}if(rt[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};De=bt,ee.splice(we,0,["enter",bt,rt[2]]),we++,ne++,wt=void 0,Ot=!0}}}return ee[re][1]._spread=tt,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:ra(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]||sv).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Rs({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=ra(ee.end)}function u(){return iF(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(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=Di(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 p(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 C(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=Ve(),we.position={start:ra(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function _(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=ra(ee.end)}function x(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=ra(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(O.call(this,ee),_.call(this,ee))}function A(){this.data.atHardBreak=!0}function N(){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 F(){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=aL(re),ne.identifier=Di(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 D(){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 R(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Di(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function M(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=x0(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=gm(re);const pe=this.stack[this.stack.length-1];pe.value+=we}function V(ee){const re=this.stack.pop();re.position.end=ra(ee.end)}function K(ee){_.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){_.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 H(){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 me(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Re(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function Ve(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}function ra(e){return{line:e.line,column:e.column,offset:e.offset}}function D0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?D0(e,a):lL(e,a)}}function lL(e,t){let r;for(r in t)if(j0.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 sv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Rs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is still open")}function cL(e){const t=this;t.parser=r;function r(a){return sL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uL(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 fL(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
|
|
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 rL(e){const a={constructs:cF([ZM,...(e||{}).extensions||[]]),content:i(yF),defined:[],document:i(bF),flow:i(MM),lazy:{},string:i(zM),text:i($M)};return a;function i(n){return s;function s(o){return QM(a,n,o)}}}function nL(e){for(;!T0(e););return e}const sv=/[\0\t\n\r]/g;function aL(){let e=1,t="",r=!0,a;return i;function i(n,s,o){const c=[];let l,u,f,m,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(sv.lastIndex=f,l=sv.exec(n),m=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(m),!l){t=n.slice(f);break}if(d===10&&f===m&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<m&&(c.push(n.slice(f,m)),e+=m-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=m+1}return o&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const iL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sL(e){return e.replace(iL,oL)}function oL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return C0(r.slice(n?2:1),n?16:10)}return gm(r)||e}const D0={}.hasOwnProperty;function lL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),cL(r)(nL(rL(r).document().write(aL()(e,t,!0))))}function cL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ce),autolinkProtocol:O,autolinkEmail:O,atxHeading:n(te),blockQuote:n(Q),characterEscape:O,characterReference:O,codeFenced:n(q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(q,s),codeText:n(z,s),codeTextData:O,data:O,codeFlowValue:O,definition:n(H),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(me,s),htmlFlowData:O,htmlText:n(me,s),htmlTextData:O,image:n(ve),label:s,link:n(Ce),listItem:n(Re),listItemValue:m,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(te),strong:n(je),thematicBreak:n(be)},exit:{atxHeading:c(),atxHeadingSequence:p,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:_,codeIndented:c(y),codeText:c(F),codeTextData:_,data:_,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(N),htmlFlowData:_,htmlText:c(I),htmlTextData:_,image:c(Y),label:ie,labelText:Z,lineEnding:x,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:R,resourceDestinationString:P,resourceTitleString:D,resource:U,setextHeading:c(C),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};F0(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 pe=-1;for(;++pe<ee.length;)if(ee[pe][1].type==="listOrdered"||ee[pe][1].type==="listUnordered")if(ee[pe][0]==="enter")we.push(pe);else{const tt=we.pop();pe=i(ee,tt,pe)}for(pe=-1;++pe<ee.length;){const tt=t[ee[pe][0]];D0.call(tt,ee[pe][1].type)&&tt[ee[pe][1].type].call(Object.assign({sliceSerialize:ee[pe][2].sliceSerialize},ne),ee[pe][1])}if(ne.tokenStack.length>0){const tt=ne.tokenStack[ne.tokenStack.length-1];(tt[1]||ov).call(ne,void 0,tt[0])}for(re.position={start:ra(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ra(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)re=t.transforms[pe](re)||re;return re}function i(ee,re,ne){let we=re-1,pe=-1,tt=!1,De,Ke,wt,Ot;for(;++we<=ne;){const rt=ee[we];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?pe++:pe--,Ot=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(De&&!Ot&&!pe&&!wt&&(wt=we),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!pe&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||pe===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(De){let bt=we;for(Ke=void 0;bt--;){const nt=ee[bt];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;Ke&&(ee[Ke][1].type="lineEndingBlank",tt=!0),nt[1].type="lineEnding",Ke=bt}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}wt&&(!Ke||wt<Ke)&&(De._spread=!0),De.end=Object.assign({},Ke?ee[Ke][1].start:rt[1].end),ee.splice(Ke||we,0,["exit",De,rt[2]]),we++,ne++}if(rt[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};De=bt,ee.splice(we,0,["enter",bt,rt[2]]),we++,ne++,wt=void 0,Ot=!0}}}return ee[re][1]._spread=tt,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:ra(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]||ov).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Rs({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=ra(ee.end)}function u(){return oF(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(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=Di(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 p(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 C(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=Ve(),we.position={start:ra(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function _(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=ra(ee.end)}function x(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=ra(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(O.call(this,ee),_.call(this,ee))}function A(){this.data.atHardBreak=!0}function N(){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 F(){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=sL(re),ne.identifier=Di(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 D(){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 R(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Di(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function M(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=C0(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=gm(re);const pe=this.stack[this.stack.length-1];pe.value+=we}function V(ee){const re=this.stack.pop();re.position.end=ra(ee.end)}function K(ee){_.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){_.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 H(){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 me(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Re(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function Ve(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}function ra(e){return{line:e.line,column:e.column,offset:e.offset}}function F0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?F0(e,a):uL(e,a)}}function uL(e,t){let r;for(r in t)if(D0.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 ov(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Rs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is still open")}function fL(e){const t=this;t.parser=r;function r(a){return lL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dL(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 mL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
+
`}]}function pL(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 hL(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gL(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yL(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=Qi(a.toLowerCase()),n=e.footnoteOrder.indexOf(a);let s,o=e.footnoteCounts.get(a);o===void 0?(o=0,e.footnoteOrder.push(a),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(a,o);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function vL(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 bL(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function M0(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 s=i[i.length-1];return s&&s.type==="text"?s.value+=a:i.push({type:"text",value:a}),i}function kL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return M0(e,t);const i={src:Qi(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:Qi(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 SL(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 EL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return M0(e,t);const i={href:Qi(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 xL(e,t){const r={href:Qi(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 CL(e,t,r){const a=e.all(t),i=r?AL(r):L0(t),n={},s=[];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 o=-1;for(;++o<a.length;){const u=a[o];(i||o!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
111
111
|
`}),u.type==="element"&&u.tagName==="p"&&!i?s.push(...u.children):s.push(u)}const c=a[a.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
112
|
-
`});const l={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,l),e.applyData(t,l)}function
|
|
112
|
+
`});const l={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,l),e.applyData(t,l)}function AL(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=L0(r[a])}return t}function L0(e){const t=e.spread;return t??e.children.length>1}function _L(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 s=a[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.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 OL(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TL(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function PL(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IL(e,t){const r=e.all(t),a=r.shift(),i=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=dm(t.children[1]),c=v0(t.children[t.children.length-1]);o&&c&&(s.position={start:o,end:c}),i.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function RL(e,t,r){const a=r?r.children:void 0,n=(a?a.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let c=-1;const l=[];for(;++c<o;){const f=t.children[c],m={},d=s?s[c]:void 0;d&&(m.align=d);let h={type:"element",tagName:n,properties:m,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 NL(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const lv=9,cv=32;function jL(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),i=0;const n=[];for(;a;)n.push(uv(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=r.exec(t);return n.push(uv(t.slice(i),i>0,!1)),n.join("")}function uv(e,t,r){let a=0,i=e.length;if(t){let n=e.codePointAt(a);for(;n===lv||n===cv;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(i-1);for(;n===lv||n===cv;)i--,n=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function DL(e,t){const r={type:"text",value:jL(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function FL(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const ML={blockquote:dL,break:mL,code:pL,delete:hL,emphasis:gL,footnoteReference:yL,heading:vL,html:bL,imageReference:kL,image:wL,inlineCode:SL,linkReference:EL,link:xL,listItem:CL,list:_L,paragraph:OL,root:TL,strong:PL,table:IL,tableCell:NL,tableRow:RL,text:DL,thematicBreak:FL,toml:vl,yaml:vl,definition:vl,footnoteDefinition:vl};function vl(){}const q0=-1,Cc=0,js=1,Zl=2,bm=3,km=4,wm=5,Sm=6,z0=7,$0=8,LL=typeof self=="object"?self:globalThis,fv=(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 LL[e](t)},qL=(e,t)=>{const r=(i,n)=>(e.set(n,i),i),a=i=>{if(e.has(i))return e.get(i);const[n,s]=t[i];switch(n){case Cc:case q0:return r(s,i);case js:{const o=r([],i);for(const c of s)o.push(a(c));return o}case Zl:{const o=r({},i);for(const[c,l]of s)o[a(c)]=a(l);return o}case bm:return r(new Date(s),i);case km:{const{source:o,flags:c}=s;return r(new RegExp(o,c),i)}case wm:{const o=r(new Map,i);for(const[c,l]of s)o.set(a(c),a(l));return o}case Sm:{const o=r(new Set,i);for(const c of s)o.add(a(c));return o}case z0:{const{name:o,message:c}=s;return r(fv(o,c),i)}case $0:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(fv(n,s),i)};return a},dv=e=>qL(new Map,e)(0),bi="",{toString:zL}={},{keys:$L}=Object,bs=e=>{const t=typeof e;if(t!=="object"||!e)return[Cc,t];const r=zL.call(e).slice(8,-1);switch(r){case"Array":return[js,bi];case"Object":return[Zl,bi];case"Date":return[bm,bi];case"RegExp":return[km,bi];case"Map":return[wm,bi];case"Set":return[Sm,bi];case"DataView":return[js,r]}return r.includes("Array")?[js,r]:r.includes("Error")?[z0,r]:[Zl,r]},bl=([e,t])=>e===Cc&&(t==="function"||t==="symbol"),UL=(e,t,r,a)=>{const i=(s,o)=>{const c=a.push(s)-1;return r.set(o,c),c},n=s=>{if(r.has(s))return r.get(s);let[o,c]=bs(s);switch(o){case Cc:{let u=s;switch(c){case"bigint":o=$0,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([q0],s)}return i([o,u],s)}case js:{if(c){let m=s;return c==="DataView"?m=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(s)),i([c,[...m]],s)}const u=[],f=i([o,u],s);for(const m of s)u.push(n(m));return f}case Zl:{if(c)switch(c){case"BigInt":return i([c,s.toString()],s);case"Boolean":case"Number":case"String":return i([c,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const u=[],f=i([o,u],s);for(const m of $L(s))(e||!bl(bs(s[m])))&&u.push([n(m),n(s[m])]);return f}case bm:return i([o,s.toISOString()],s);case km:{const{source:u,flags:f}=s;return i([o,{source:u,flags:f}],s)}case wm:{const u=[],f=i([o,u],s);for(const[m,d]of s)(e||!(bl(bs(m))||bl(bs(d))))&&u.push([n(m),n(d)]);return f}case Sm:{const u=[],f=i([o,u],s);for(const m of s)(e||!bl(bs(m)))&&u.push(n(m));return f}}const{message:l}=s;return i([o,{name:c,message:l}],s)};return n},mv=(e,{json:t,lossy:r}={})=>{const a=[];return UL(!(t||r),!!t,new Map,a)(e),a},Ql=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dv(mv(e,t)):structuredClone(e):(e,t)=>dv(mv(e,t));function BL(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 VL(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function HL(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||BL,a=e.options.footnoteBackLabel||VL,i=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];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(),m=Qi(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-"+m+(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-"+m},children:e.wrap(u,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ql(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
113
113
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
114
|
-
`}]}}const
|
|
114
|
+
`}]}}const U0=(function(e){if(e==null)return JL;if(typeof e=="function")return Ac(e);if(typeof e=="object")return Array.isArray(e)?WL(e):KL(e);if(typeof e=="string")return GL(e);throw new Error("Expected function, string, or object as test")});function WL(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=U0(e[r]);return Ac(a);function a(...i){let n=-1;for(;++n<t.length;)if(t[n].apply(this,i))return!0;return!1}}function KL(e){const t=e;return Ac(r);function r(a){const i=a;let n;for(n in e)if(i[n]!==t[n])return!1;return!0}}function GL(e){return Ac(t);function t(r){return r&&r.type===e}}function Ac(e){return t;function t(r,a,i){return!!(YL(r)&&e.call(this,r,typeof a=="number"?a:void 0,i||void 0))}}function JL(){return!0}function YL(e){return e!==null&&typeof e=="object"&&"type"in e}const B0=[],XL=!0,pv=!1,ZL="skip";function QL(e,t,r,a){let i;typeof t=="function"&&typeof r!="function"?(a=r,r=t):i=t;const n=U0(i),s=a?-1:1;o(e,void 0,[])();function o(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(m,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=B0,h,k,v;if((!t||n(c,l,u[u.length-1]||void 0))&&(d=e2(r(c,u)),d[0]===pv))return d;if("children"in c&&c.children){const y=c;if(y.children&&d[0]!==ZL)for(k=(a?y.children.length:-1)+s,v=u.concat(y);k>-1&&k<y.children.length;){const b=y.children[k];if(h=o(b,k,v)(),h[0]===pv)return h;k=typeof h[1]=="number"?h[1]:k+s}}return d}}}function e2(e){return Array.isArray(e)?e:typeof e=="number"?[XL,e]:e==null?B0:[e]}function V0(e,t,r,a){let i,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,i=r):(n=t,s=r,i=a),QL(e,n,o,i);function o(c,l){const u=l[l.length-1],f=u?u.children.indexOf(c):void 0;return s(c,f,u)}}const md={}.hasOwnProperty,t2={};function r2(e,t){const r=t||t2,a=new Map,i=new Map,n=new Map,s={...ML,...r.handlers},o={all:l,applyData:a2,definitionById:a,footnoteById:i,footnoteCounts:n,footnoteOrder:[],handlers:s,one:c,options:r,patch:n2,wrap:s2};return V0(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?a:i,m=String(u.identifier).toUpperCase();f.has(m)||f.set(m,u)}}),o;function c(u,f){const m=u.type,d=o.handlers[m];if(md.call(o.handlers,m)&&d)return d(o,u,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in u){const{children:k,...v}=u,y=Ql(v);return y.children=o.all(u),y}return Ql(u)}return(o.options.unknownHandler||i2)(o,u,f)}function l(u){const f=[];if("children"in u){const m=u.children;let d=-1;for(;++d<m.length;){const h=o.one(m[d],u);if(h){if(d&&m[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=hv(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=hv(k.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function n2(e,t){e.position&&(t.position=qD(e))}function a2(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 s="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,Ql(n)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function i2(e,t){const r=t.data||{},a="value"in t&&!(md.call(r,"hProperties")||md.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 s2(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 i2(e,t){return e&&"run"in e?async function(r,a){const i=hv(r,{file:a,...t});await e.run(i,a)}:function(r,a){return hv(r,{file:a,...e||t})}}function gv(e){if(e)throw e}var uf,yv;function s2(){if(yv)return uf;yv=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 m;for(m in l);return typeof m>"u"||e.call(l,m)},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 uf=function c(){var l,u,f,m,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),m=o(l,u),k!==m&&(b&&m&&(n(m)||(d=i(m)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},s(k,{name:u,newValue:c(b,h,m)})):typeof m<"u"&&s(k,{name:u,newValue:m}));return k},uf}var o2=s2();const ff=Pn(o2);function pd(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 l2(){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?c2(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 c2(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 bn={basename:u2,dirname:f2,extname:d2,join:m2,sep:"/"};function u2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');co(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 f2(e){if(co(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 d2(e){co(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 m2(...e){let t=-1,r;for(;++t<e.length;)co(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":p2(r)}function p2(e){co(e);const t=e.codePointAt(0)===47;let r=h2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function h2(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 co(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g2={cwd:y2};function y2(){return"/"}function hd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function v2(e){if(typeof e=="string")e=new URL(e);else if(!hd(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 b2(e)}function b2(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 df=["history","path","basename","stem","extname","dirname"];class V0{constructor(t){let r;t?hd(t)?r={path:t}:typeof t=="string"||k2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":g2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<df.length;){const n=df[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)df.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?bn.basename(this.path):void 0}set basename(t){pf(t,"basename"),mf(t,"basename"),this.path=bn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bn.dirname(this.path):void 0}set dirname(t){vv(this.basename,"dirname"),this.path=bn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bn.extname(this.path):void 0}set extname(t){if(mf(t,"extname"),vv(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=bn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hd(t)&&(t=v2(t)),pf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bn.basename(this.path,this.extname):void 0}set stem(t){pf(t,"stem"),mf(t,"stem"),this.path=bn.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 mf(e,t){if(e&&e.includes(bn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bn.sep+"`")}function pf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vv(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k2(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}),S2={}.hasOwnProperty;class Em 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=l2()}copy(){const t=new Em;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(ff(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(yf("data",this.frozen),this.namespace[t]=r,this):S2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yf("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=kl(t),a=this.parser||this.Parser;return hf("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),hf("process",this.parser||this.Parser),gf("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,s){const o=kl(t),c=a.parse(o);a.run(c,o,function(u,f,m){if(u||!f||!m)return l(u);const d=f,h=a.stringify(d,m);C2(h)?m.value=h:m.result=h,l(u,m)});function l(u,f){u||!f?s(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),hf("processSync",this.parser||this.Parser),gf("processSync",this.compiler||this.Compiler),this.process(t,i),kv("processSync","process",r),a;function i(n,s){r=!0,gv(n),a=s}}run(t,r,a){bv(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=kl(r);i.run(t,c,l);function l(u,f,m){const d=f||t;u?o(u):s?s(d):a(void 0,d,m)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),kv("runSync","run",a),i;function n(s,o){gv(s),i=o,a=!0}}stringify(t,r){this.freeze();const a=kl(r),i=this.compiler||this.Compiler;return gf("stringify",i),bv(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(yf("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=ff(!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,m=-1;for(;++f<a.length;)if(a[f][0]===l){m=f;break}if(m===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[m][1];pd(k)&&pd(d)&&(d=ff(!0,k,d)),a[m]=[l,d,...h]}}}}const E2=new Em().freeze();function hf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yf(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 bv(e){if(!pd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kv(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kl(e){return x2(e)?e:new V0(e)}function x2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C2(e){return typeof e=="string"||A2(e)}function A2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wv=[],Sv={allowDangerousHtml:!0},O2=/^(https?|ircs?|mailto|xmpp)$/i,T2=[{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 P2(e){const t=I2(e),r=R2(e);return N2(t.runSync(t.parse(r),r),e)}function I2(e){const t=e.rehypePlugins||wv,r=e.remarkPlugins||wv,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sv}:Sv;return E2().use(cL).use(r).use(i2,a).use(t)}function R2(e){const t=e.children||"",r=new V0;return typeof t=="string"&&(r.value=t),r}function N2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||j2;for(const u of T2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+_2+u.id,void 0);return B0(e,l),UD(e,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function l(u,f,m){if(u.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in of)if(Object.hasOwn(of,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=of[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,m)),d&&m&&typeof f=="number")return o&&u.children?m.children.splice(f,1,...u.children):m.children.splice(f,1),f}}}function j2(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||O2.test(e.slice(0,t))?e:""}const D2=P2,F2=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function fn(e){const t=e.components||{};return t.a||(t.a=F2),j.jsx(D2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function M2({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(fn,{children:t}):t})}):null}function L2({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Jd(t),children:e.filter(Boolean).map((r,a)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(fn,{children:r}):r})},`${r}-${a}`))})}function q2({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Xd(e),children:t}):null}const Ev=({content:e})=>{const t=W.useMemo(()=>gd(e),[e]);return j.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function z2(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:m,registry:d}=e,h=ke(m),k=xe("WrapIfAdditionalTemplate",d,h);if(c)return j.jsx("div",{className:"hidden",children:r});const v=i.length>0;return j.jsxs(j.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&j.jsx(Ev,{content:f.rawHtml.before}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[a&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(fn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(fn,{children:o})}),n,s]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&j.jsx(Ev,{content:f.rawHtml.after})]})}function $2(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:m,uiSchema:d}=e,h=ke(d),k=xe("TitleFieldTemplate",l,h),v=xe("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 j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:pc(i),title:m,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:Ca(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>j.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:E.content})},E.name)),rb(f,d,a)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(y,{id:Rr(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function U2({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=ke(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(fn,{children:i.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function B2(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:m,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=la in u,E=[r];!f&&m&&m.length>0&&E.push("has-error has-danger");const p=E.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:p,style:a,children:d});const g=`${t}-key`;return j.jsx("div",{className:p,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:g,children:y(Le.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:i||c,onClick:o,uiSchema:h,registry:k})})]})})}const V2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Qj,ArrayFieldItemTemplate:eD,ArrayFieldTemplate:tD,ButtonTemplates:mD,DescriptionFieldTemplate:M2,FieldErrorTemplate:L2,FieldHelpTemplate:q2,FieldTemplate:z2,ObjectFieldTemplate:$2,TitleFieldTemplate:U2,WrapIfAdditionalTemplate:B2},Symbol.toStringTag,{value:"Module"}));function H2({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:m,registry:d}){const h=xe("DescriptionFieldTemplate",d,r),k=Ps(e),v=W.useCallback(g=>m(g.target.checked),[m]),y=W.useCallback(g=>u(a,g.target.checked),[u,a]),b=W.useCallback(g=>f(a,g.target.checked),[f,a]),p=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!c&&p&&j.jsx(h,{id:Ca(a),description:p,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.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":dn(a)}),!c&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:a,children:j.jsx(fn,{components:{p:"span"},children:o})})]})]})}function W2({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:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=W.useCallback(({target:b})=>l(e,on(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=hc(e,w),S=C=>{C.target.checked?o(Sk(w,k,f)):o(kk(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:to(b.value,w,h),required:s,disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:g,children:j.jsx(fn,{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:s,onFocus:o,onChange:c,id:l}){const{enumOptions:u,enumDisabled:f,inline:m,emptyValue:d}=e,h=ro(e),k=W.useCallback(({target:y})=>s(l,on(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]),v=W.useCallback(({target:y})=>o(l,on(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]);return j.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ki(y.value,t),E=Array.isArray(f)&&f.includes(y.value),p=hc(l,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:p,name:l,checked:w,value:to(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":dn(l)}),j.jsx("label",{className:"form-check-label",htmlFor:p,children:j.jsx(fn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const G2=5;function J2({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=W.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),m=W.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=W.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||G2,onChange:f,onBlur:m,onFocus:d,"aria-describedby":dn(e)})}const Y2=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:H2,CheckboxesWidget:W2,RadioWidget:K2,TextareaWidget:J2},Symbol.toStringTag,{value:"Module"})),xv={templates:V2,widgets:Y2},X2=e=>e==="{}"?`{
|
|
117
|
+
`}),r}function hv(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function gv(e,t){const r=r2(e,t),a=r.one(e,void 0),i=HL(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 o2(e,t){return e&&"run"in e?async function(r,a){const i=gv(r,{file:a,...t});await e.run(i,a)}:function(r,a){return gv(r,{file:a,...e||t})}}function yv(e){if(e)throw e}var uf,vv;function l2(){if(vv)return uf;vv=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 m;for(m in l);return typeof m>"u"||e.call(l,m)},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 uf=function c(){var l,u,f,m,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),m=o(l,u),k!==m&&(b&&m&&(n(m)||(d=i(m)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},s(k,{name:u,newValue:c(b,h,m)})):typeof m<"u"&&s(k,{name:u,newValue:m}));return k},uf}var c2=l2();const ff=Pn(c2);function pd(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 u2(){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 bn={basename:d2,dirname:m2,extname:p2,join:h2,sep:"/"};function d2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');co(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 m2(e){if(co(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 p2(e){co(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 h2(...e){let t=-1,r;for(;++t<e.length;)co(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":g2(r)}function g2(e){co(e);const t=e.codePointAt(0)===47;let r=y2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function y2(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 co(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const v2={cwd:b2};function b2(){return"/"}function hd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function k2(e){if(typeof e=="string")e=new URL(e);else if(!hd(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 w2(e)}function w2(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 df=["history","path","basename","stem","extname","dirname"];class H0{constructor(t){let r;t?hd(t)?r={path:t}:typeof t=="string"||S2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":v2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<df.length;){const n=df[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)df.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?bn.basename(this.path):void 0}set basename(t){pf(t,"basename"),mf(t,"basename"),this.path=bn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bn.dirname(this.path):void 0}set dirname(t){bv(this.basename,"dirname"),this.path=bn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bn.extname(this.path):void 0}set extname(t){if(mf(t,"extname"),bv(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=bn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hd(t)&&(t=k2(t)),pf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bn.basename(this.path,this.extname):void 0}set stem(t){pf(t,"stem"),mf(t,"stem"),this.path=bn.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 mf(e,t){if(e&&e.includes(bn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bn.sep+"`")}function pf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function bv(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function S2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const E2=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),x2={}.hasOwnProperty;class Em extends E2{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=u2()}copy(){const t=new Em;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(ff(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(yf("data",this.frozen),this.namespace[t]=r,this):x2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yf("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=kl(t),a=this.parser||this.Parser;return hf("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),hf("process",this.parser||this.Parser),gf("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,s){const o=kl(t),c=a.parse(o);a.run(c,o,function(u,f,m){if(u||!f||!m)return l(u);const d=f,h=a.stringify(d,m);_2(h)?m.value=h:m.result=h,l(u,m)});function l(u,f){u||!f?s(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),hf("processSync",this.parser||this.Parser),gf("processSync",this.compiler||this.Compiler),this.process(t,i),wv("processSync","process",r),a;function i(n,s){r=!0,yv(n),a=s}}run(t,r,a){kv(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=kl(r);i.run(t,c,l);function l(u,f,m){const d=f||t;u?o(u):s?s(d):a(void 0,d,m)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),wv("runSync","run",a),i;function n(s,o){yv(s),i=o,a=!0}}stringify(t,r){this.freeze();const a=kl(r),i=this.compiler||this.Compiler;return gf("stringify",i),kv(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(yf("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=ff(!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,m=-1;for(;++f<a.length;)if(a[f][0]===l){m=f;break}if(m===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[m][1];pd(k)&&pd(d)&&(d=ff(!0,k,d)),a[m]=[l,d,...h]}}}}const C2=new Em().freeze();function hf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yf(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 kv(e){if(!pd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wv(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kl(e){return A2(e)?e:new H0(e)}function A2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _2(e){return typeof e=="string"||O2(e)}function O2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const T2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Sv=[],Ev={allowDangerousHtml:!0},P2=/^(https?|ircs?|mailto|xmpp)$/i,I2=[{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 R2(e){const t=N2(e),r=j2(e);return D2(t.runSync(t.parse(r),r),e)}function N2(e){const t=e.rehypePlugins||Sv,r=e.remarkPlugins||Sv,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ev}:Ev;return C2().use(fL).use(r).use(o2,a).use(t)}function j2(e){const t=e.children||"",r=new H0;return typeof t=="string"&&(r.value=t),r}function D2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||F2;for(const u of I2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+T2+u.id,void 0);return V0(e,l),VD(e,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function l(u,f,m){if(u.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in of)if(Object.hasOwn(of,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=of[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,m)),d&&m&&typeof f=="number")return o&&u.children?m.children.splice(f,1,...u.children):m.children.splice(f,1),f}}}function F2(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||P2.test(e.slice(0,t))?e:""}const M2=R2,L2=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function fn(e){const t=e.components||{};return t.a||(t.a=L2),j.jsx(M2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function q2({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(fn,{children:t}):t})}):null}function z2({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Jd(t),children:e.filter(Boolean).map((r,a)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(fn,{children:r}):r})},`${r}-${a}`))})}function $2({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Xd(e),children:t}):null}const xv=({content:e})=>{const t=W.useMemo(()=>gd(e),[e]);return j.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function U2(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:m,registry:d}=e,h=ke(m),k=xe("WrapIfAdditionalTemplate",d,h);if(c)return j.jsx("div",{className:"hidden",children:r});const v=i.length>0;return j.jsxs(j.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&j.jsx(xv,{content:f.rawHtml.before}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[a&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(fn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(fn,{children:o})}),n,s]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&j.jsx(xv,{content:f.rawHtml.after})]})}function B2(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:m,uiSchema:d}=e,h=ke(d),k=xe("TitleFieldTemplate",l,h),v=xe("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 j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:pc(i),title:m,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:Ca(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>j.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:E.content})},E.name)),nb(f,d,a)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(y,{id:Rr(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function V2({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=ke(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(fn,{children:i.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function H2(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:m,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=la in u,E=[r];!f&&m&&m.length>0&&E.push("has-error has-danger");const p=E.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:p,style:a,children:d});const g=`${t}-key`;return j.jsx("div",{className:p,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:g,children:y(Le.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:i||c,onClick:o,uiSchema:h,registry:k})})]})})}const W2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:tD,ArrayFieldItemTemplate:rD,ArrayFieldTemplate:nD,ButtonTemplates:hD,DescriptionFieldTemplate:q2,FieldErrorTemplate:z2,FieldHelpTemplate:$2,FieldTemplate:U2,ObjectFieldTemplate:B2,TitleFieldTemplate:V2,WrapIfAdditionalTemplate:H2},Symbol.toStringTag,{value:"Module"}));function K2({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:m,registry:d}){const h=xe("DescriptionFieldTemplate",d,r),k=Ps(e),v=W.useCallback(g=>m(g.target.checked),[m]),y=W.useCallback(g=>u(a,g.target.checked),[u,a]),b=W.useCallback(g=>f(a,g.target.checked),[f,a]),p=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!c&&p&&j.jsx(h,{id:Ca(a),description:p,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.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":dn(a)}),!c&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:a,children:j.jsx(fn,{components:{p:"span"},children:o})})]})]})}function G2({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:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=W.useCallback(({target:b})=>l(e,on(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=hc(e,w),S=C=>{C.target.checked?o(Ek(w,k,f)):o(wk(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:to(b.value,w,h),required:s,disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:g,children:j.jsx(fn,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function J2({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:m,emptyValue:d}=e,h=ro(e),k=W.useCallback(({target:y})=>s(l,on(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]),v=W.useCallback(({target:y})=>o(l,on(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]);return j.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ki(y.value,t),E=Array.isArray(f)&&f.includes(y.value),p=hc(l,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:p,name:l,checked:w,value:to(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":dn(l)}),j.jsx("label",{className:"form-check-label",htmlFor:p,children:j.jsx(fn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const Y2=5;function X2({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=W.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),m=W.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=W.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||Y2,onChange:f,onBlur:m,onFocus:d,"aria-describedby":dn(e)})}const Z2=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:K2,CheckboxesWidget:G2,RadioWidget:J2,TextareaWidget:X2},Symbol.toStringTag,{value:"Module"})),Cv={templates:W2,widgets:Z2},Q2=e=>e==="{}"?`{
|
|
119
119
|
|
|
120
|
-
}`:e,
|
|
121
|
-
`).length,value:y,className:Pi(["form-control","textarea"]),onChange:d,onKeyDown:h,onFocus:v,onBlur:k,readOnly:c,disabled:l}),j.jsx("div",{className:"shadow",children:f})]}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:s})})]})},
|
|
122
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
120
|
+
}`:e,eq=e=>{const{onChange:t,onBlur:r,onFocus:a,fieldPathId:i,schema:{title:n,description:s},formData:o,readonly:c,disabled:l}=e,u=W.useRef(null),[f,m]=W.useState(Q2(JSON.stringify(o||{},null,2))),d=W.useCallback(b=>{m(b.target.value)},[t]),h=W.useCallback(function(b){u.current&&b.key=="Tab"&&b.preventDefault()},[]),k=W.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=W.useCallback(b=>{a(i.$id,b.target.value)},[a,i]),y=f||JSON.stringify(o,null,2)||"{}";return j.jsxs("div",{className:"form-group",children:[n&&j.jsx("label",{className:"form-label",htmlFor:i.$id,children:n}),j.jsxs("div",{className:"wrapper",children:[j.jsx("textarea",{id:i.$id,ref:u,rows:y.split(`
|
|
121
|
+
`).length,value:y,className:Pi(["form-control","textarea"]),onChange:d,onKeyDown:h,onFocus:v,onBlur:k,readOnly:c,disabled:l}),j.jsx("div",{className:"shadow",children:f})]}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:s})})]})},tq=e=>{const{fieldPathId:t,onChange:r,schema:{title:a,description:i},disabled:n}=e;return j.jsxs("div",{className:"form-group",children:[j.jsx("div",{className:"wrapper",children:j.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:a})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:i})})]})};function Av(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 rq(e){if(Array.isArray(e))return e}function nq(e,t,r){return(t=uq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var a,i,n,s,o=[],c=!0,l=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(c=(a=n.call(r)).done)&&(o.push(a.value),o.length!==t);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function iq(){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 _v(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 Ov(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_v(Object(r),!0).forEach(function(a){nq(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_v(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function sq(e,t){if(e==null)return{};var r,a,i=oq(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 oq(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 lq(e,t){return rq(e)||aq(e,t)||fq(e,t)||iq()}function cq(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 uq(e){var t=cq(e,"string");return typeof t=="symbol"?t:t+""}function fq(e,t){if(e){if(typeof e=="string")return Av(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)?Av(e,t):void 0}}function dq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tv(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 Pv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(r),!0).forEach(function(a){dq(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tv(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function mq(){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 _s(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 s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];return t.apply(r,[].concat(i,o))}}}function ec(e){return{}.toString.call(e).includes("Object")}function pq(e){return!Object.keys(e).length}function Ks(e){return typeof e=="function"}function hq(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gq(e,t){return ec(t)||ga("changeType"),Object.keys(t).some(function(r){return!hq(e,r)})&&ga("changeField"),t}function yq(e){Ks(e)||ga("selectorType")}function vq(e){Ks(e)||ec(e)||ga("handlerType"),ec(e)&&Object.values(e).some(function(t){return!Ks(t)})&&ga("handlersType")}function bq(e){e||ga("initialIsRequired"),ec(e)||ga("initialType"),pq(e)&&ga("initialContent")}function kq(e,t){throw new Error(e[t]||e.default)}var wq={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"},ga=_s(kq)(wq),wl={changes:gq,selector:yq,handler:vq,initial:bq};function Sq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wl.initial(e),wl.handler(t);var r={current:e},a=_s(Cq)(r,t),i=_s(xq)(r),n=_s(wl.changes)(e),s=_s(Eq)(r);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return wl.selector(l),l(r.current)}function c(l){mq(a,i,n,s)(l)}return[o,c]}function Eq(e,t){return Ks(t)?t(e.current):t}function xq(e,t){return e.current=Pv(Pv({},e.current),t),t}function Cq(e,t,r){return Ks(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 Aq={create:Sq},_q={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function Oq(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 s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];return t.apply(r,[].concat(i,o))}}}function Tq(e){return{}.toString.call(e).includes("Object")}function Pq(e){return e||Iv("configIsRequired"),Tq(e)||Iv("configType"),e.urls?(Iq(),{paths:{vs:e.urls.monacoBase}}):e}function Iq(){console.warn(W0.deprecation)}function Rq(e,t){throw new Error(e[t]||e.default)}var W0={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
|
-
`},Pv=Aq(Pq)(H0),Iq={config:Oq},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 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]))}),_v(_v({},e),t)}var Nq={type:"cancelation",msg:"operation is manually canceled"};function vf(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 jq=["monaco"],Dq=xq.create({config:Cq,isInitialized:!1,resolve:null,reject:null,monaco:null}),K0=sq(Dq,2),uo=K0[0],_c=K0[1];function Fq(e){var t=Iq.config(e),r=t.monaco,a=aq(t,jq);_c(function(i){return{config:W0(i.config,a),monaco:r}})}function Mq(){var e=uo(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(_c({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),vf(bf);if(window.monaco&&window.monaco.editor)return G0(window.monaco),e.resolve(window.monaco),vf(bf);Rq(Lq,zq)($q)}return vf(bf)}function Lq(e){return document.body.appendChild(e)}function qq(e){var t=document.createElement("script");return e&&(t.src=e),t}function zq(e){var t=uo(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=qq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function $q(){var e=uo(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){uo().monaco||_c({monaco:e})}function Uq(){return uo(function(e){var t=e.monaco;return t})}var bf=new Promise(function(e,t){return _c({resolve:e,reject:t})}),tc={config:Fq,init:Mq,__getMonacoInstance:Uq},Bq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},kf=Bq,Vq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Hq=Vq;function Wq({children:e}){return W.createElement("div",{style:Hq.container},e)}var Kq=Wq,Gq=Kq;function Jq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:s}){return W.createElement("section",{style:{...kf.wrapper,width:e,height:t},...s},!r&&W.createElement(Gq,null,a),W.createElement("div",{ref:i,style:{...kf.fullWidth,...!r&&kf.hide},className:n}))}var Yq=Jq,J0=W.memo(Yq);function Xq(e){W.useEffect(e,[])}var xm=Xq;function Zq(e,t,r=!0){let a=W.useRef(!0);W.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Ir=Zq;function Ds(){}function Ti(e,t,r,a){return Qq(e,a)||ez(e,t,r,a)}function Qq(e,t){return e.editor.getModel(Y0(e,t))}function ez(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 tz({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:m="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=Ds,onMount:y=Ds}){let[b,w]=W.useState(!1),[E,p]=W.useState(!0),g=W.useRef(null),S=W.useRef(null),C=W.useRef(null),O=W.useRef(y),_=W.useRef(v),x=W.useRef(!1);xm(()=>{let F=tc.init();return F.then($=>(S.current=$)&&p(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():F.cancel()}),Ir(()=>{if(g.current&&S.current){let F=g.current.getOriginalEditor(),$=Ti(S.current,e||"",a||r||"text",n||"");$!==F.getModel()&&F.setModel($)}},[n],b),Ir(()=>{if(g.current&&S.current){let F=g.current.getModifiedEditor(),$=Ti(S.current,t||"",i||r||"text",s||"");$!==F.getModel()&&F.setModel($)}},[s],b),Ir(()=>{let F=g.current.getModifiedEditor();F.getOption(S.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ir(()=>{var F,$;($=(F=g.current)==null?void 0:F.getModel())==null||$.original.setValue(e||"")},[e],b),Ir(()=>{let{original:F,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(F,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Ir(()=>{var F;(F=S.current)==null||F.editor.setTheme(l)},[l],b),Ir(()=>{var F;(F=g.current)==null||F.updateOptions(f)},[f],b);let A=W.useCallback(()=>{var Y;if(!S.current)return;_.current(S.current);let F=Ti(S.current,e||"",a||r||"text",n||""),$=Ti(S.current,t||"",i||r||"text",s||"");(Y=g.current)==null||Y.setModel({original:F,modified:$})},[r,t,i,e,a,n,s]),N=W.useCallback(()=>{var F;!x.current&&C.current&&(g.current=S.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...f}),A(),(F=S.current)==null||F.editor.setTheme(l),w(!0),x.current=!0)},[f,l,A]);W.useEffect(()=>{b&&O.current(g.current,S.current)},[b]),W.useEffect(()=>{!E&&!b&&N()},[E,b,N]);function I(){var $,Y,Z,ie;let F=($=g.current)==null?void 0:$.getModel();o||((Y=F==null?void 0:F.original)==null||Y.dispose()),c||((Z=F==null?void 0:F.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return W.createElement(J0,{width:d,height:m,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:k})}var rz=tz;W.memo(rz);function nz(){let[e,t]=W.useState(tc.__getMonacoInstance());return xm(()=>{let r;return e||(r=tc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var az=nz;function iz(e){let t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}var sz=iz,Sl=new Map;function oz({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:m=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=Ds,onMount:b=Ds,onChange:w,onValidate:E=Ds}){let[p,g]=W.useState(!1),[S,C]=W.useState(!0),O=W.useRef(null),_=W.useRef(null),x=W.useRef(null),A=W.useRef(b),N=W.useRef(y),I=W.useRef(),F=W.useRef(a),$=sz(n),Y=W.useRef(!1),Z=W.useRef(!1);xm(()=>{let D=tc.init();return D.then(U=>(O.current=U)&&C(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>_.current?P():D.cancel()}),Ir(()=>{var U,T,R,M;let D=Ti(O.current,e||a||"",t||i||"",n||r||"");D!==((U=_.current)==null?void 0:U.getModel())&&(f&&Sl.set($,(T=_.current)==null?void 0:T.saveViewState()),(R=_.current)==null||R.setModel(D),f&&((M=_.current)==null||M.restoreViewState(Sl.get(n))))},[n],p),Ir(()=>{var D;(D=_.current)==null||D.updateOptions(l)},[l],p),Ir(()=>{!_.current||a===void 0||(_.current.getOption(O.current.editor.EditorOption.readOnly)?_.current.setValue(a):a!==_.current.getValue()&&(Z.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),_.current.pushUndoStop(),Z.current=!1))},[a],p),Ir(()=>{var U,T;let D=(U=_.current)==null?void 0:U.getModel();D&&i&&((T=O.current)==null||T.editor.setModelLanguage(D,i))},[i],p),Ir(()=>{var D;o!==void 0&&((D=_.current)==null||D.revealLine(o))},[o],p),Ir(()=>{var D;(D=O.current)==null||D.editor.setTheme(s)},[s],p);let ie=W.useCallback(()=>{var D;if(!(!x.current||!O.current)&&!Y.current){N.current(O.current);let U=n||r,T=Ti(O.current,a||e||"",t||i||"",U||"");_.current=(D=O.current)==null?void 0:D.editor.create(x.current,{model:T,automaticLayout:!0,...l},u),f&&_.current.restoreViewState(Sl.get(U)),O.current.editor.setTheme(s),o!==void 0&&_.current.revealLine(o),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,s,o]);W.useEffect(()=>{p&&A.current(_.current,O.current)},[p]),W.useEffect(()=>{!S&&!p&&ie()},[S,p,ie]),F.current=a,W.useEffect(()=>{var D,U;p&&w&&((D=I.current)==null||D.dispose(),I.current=(U=_.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(_.current.getValue(),T)}))},[p,w]),W.useEffect(()=>{if(p){let D=O.current.editor.onDidChangeMarkers(U=>{var R;let T=(R=_.current.getModel())==null?void 0:R.uri;if(T&&U.find(M=>M.path===T.path)){let M=O.current.editor.getModelMarkers({resource:T});E==null||E(M)}});return()=>{D==null||D.dispose()}}return()=>{}},[p,E]);function P(){var D,U;(D=I.current)==null||D.dispose(),m?f&&Sl.set(n,_.current.saveViewState()):(U=_.current.getModel())==null||U.dispose(),_.current.dispose()}return W.createElement(J0,{width:d,height:h,isEditorReady:p,loading:c,_ref:x,className:k,wrapperProps:v})}var lz=oz,cz=W.memo(lz),uz=cz;const fz="vs-dark",dz=!0,mz=[{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"}],pz={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},hz={base:fz,inherit:dz,rules:mz,colors:pz},gz=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:m="100%",theme:d="dracula",...h}=i,k=az();W.useEffect(()=>{k&&k.editor.defineTheme("dracula",hz)});const v=W.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=W.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(uz,{id:t.$id,className:Pi(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...h},...l})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:a})})]})},yz=Object.freeze(Object.defineProperty({__proto__:null,button:Q2,json:Z2,sourceCode:gz},Symbol.toStringTag,{value:"Module"})),vz=cN,bz=(e,t)=>e&&e in hs?Rl({},hs[e]):t&&t in hs?Rl({},hs[t]):Rl({},hs.en),kz=(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}),X0=({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;qv(c);const m=W.useMemo(()=>bz(i,n),[i,n]),[d,h]=W.useState(u.formData);return j.jsx(vz,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:k=>kz(k,u.schema),className:Pi(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...yz,...l==null?void 0:l.fields,...a},templates:{...xv.templates,...l==null?void 0:l.templates,...t},widgets:{...xv.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)}})},Iv={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Cm=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=ww,onSuccess:s=kw,onError:o=Sw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:m,...d})=>{const[h,k]=W.useState({processId:a,steps:[],variables:{...m&&m.variables}}),[v]=J1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale,async:l}),y=W.useMemo(()=>{const U=Nv();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=W.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=W.useState(!1),[p,g]=W.useState(b),[S,C]=W.useState({}),O=W.useCallback(U=>{C({}),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},...m&&m.locale&&{locale:m.locale}},...U.formData}).then(T=>{if(g(b),T.nextProcessId){const R=h.steps;R.push({processId:h.processId,data:U.formData,result:T}),k({processId:T.nextProcessId,steps:R,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}s(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?C(Cw(T==null?void 0:T.formErrors)):o(y,T,U.formData)}).finally(()=>E(!1))},[y,b,s,o,v,h]),{loading:_,formSpecs:x,error:A}=Y1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale}),N={...Iv,...m};qv(N),W.useEffect(()=>{A&&o(y,A,{})},[A]);const I=Pi(["fcode-form-wrapper",N.className]);if(_)return j.jsx("div",{className:Pi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(Qm,{active:!0,content:N.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(Wv,{})})})});if(A||!x)return j.jsx("div",{className:I,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:xw(A)})})});x.schema.embedFormOptions={...Iv,...x.schema.embedFormOptions,...m,variables:{...x.schema.embedFormOptions&&x.schema.embedFormOptions.variables,...h.variables,...m&&m.variables}};const F=Jv(x),$=Object.keys(F.schema.properties||{}),Y=Object.fromEntries(Object.entries(p).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:D}=F.embedFormOptions;return j.jsx("div",{className:Pi(["fcode-form-wrapper",F.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(Qm,{active:w,content:ie,disabled:Z,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(X0,{id:y,schema:F.schema,uiSchema:F.uiSchema,embedFormOptions:F.embedFormOptions,locale:P,fallbackLocale:D,formData:Y,onSubmit:O,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};Cm.displayName="FcodeForm";exports.FcodeForm=Cm;exports.FcodeJsonSchemaForm=X0;exports.buildId=Nv;exports.default=Cm;exports.processFormSpecs=Jv;
|
|
131
|
+
`},Iv=Oq(Rq)(W0),Nq={config:Pq},jq=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 K0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],K0(e[r],t[r]))}),Ov(Ov({},e),t)}var Dq={type:"cancelation",msg:"operation is manually canceled"};function vf(e){var t=!1,r=new Promise(function(a,i){e.then(function(n){return t?i(Dq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var Fq=["monaco"],Mq=Aq.create({config:_q,isInitialized:!1,resolve:null,reject:null,monaco:null}),G0=lq(Mq,2),uo=G0[0],_c=G0[1];function Lq(e){var t=Nq.config(e),r=t.monaco,a=sq(t,Fq);_c(function(i){return{config:K0(i.config,a),monaco:r}})}function qq(){var e=uo(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(_c({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),vf(bf);if(window.monaco&&window.monaco.editor)return J0(window.monaco),e.resolve(window.monaco),vf(bf);jq(zq,Uq)(Bq)}return vf(bf)}function zq(e){return document.body.appendChild(e)}function $q(e){var t=document.createElement("script");return e&&(t.src=e),t}function Uq(e){var t=uo(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=$q("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Bq(){var e=uo(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;J0(a),e.resolve(a)},function(r){e.reject(r)})}function J0(e){uo().monaco||_c({monaco:e})}function Vq(){return uo(function(e){var t=e.monaco;return t})}var bf=new Promise(function(e,t){return _c({resolve:e,reject:t})}),tc={config:Lq,init:qq,__getMonacoInstance:Vq},Hq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},kf=Hq,Wq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Kq=Wq;function Gq({children:e}){return W.createElement("div",{style:Kq.container},e)}var Jq=Gq,Yq=Jq;function Xq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:s}){return W.createElement("section",{style:{...kf.wrapper,width:e,height:t},...s},!r&&W.createElement(Yq,null,a),W.createElement("div",{ref:i,style:{...kf.fullWidth,...!r&&kf.hide},className:n}))}var Zq=Xq,Y0=W.memo(Zq);function Qq(e){W.useEffect(e,[])}var xm=Qq;function ez(e,t,r=!0){let a=W.useRef(!0);W.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Ir=ez;function Ds(){}function Ti(e,t,r,a){return tz(e,a)||rz(e,t,r,a)}function tz(e,t){return e.editor.getModel(X0(e,t))}function rz(e,t,r,a){return e.editor.createModel(t,r,a?X0(e,a):void 0)}function X0(e,t){return e.Uri.parse(t)}function nz({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:m="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=Ds,onMount:y=Ds}){let[b,w]=W.useState(!1),[E,p]=W.useState(!0),g=W.useRef(null),S=W.useRef(null),C=W.useRef(null),O=W.useRef(y),_=W.useRef(v),x=W.useRef(!1);xm(()=>{let F=tc.init();return F.then($=>(S.current=$)&&p(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():F.cancel()}),Ir(()=>{if(g.current&&S.current){let F=g.current.getOriginalEditor(),$=Ti(S.current,e||"",a||r||"text",n||"");$!==F.getModel()&&F.setModel($)}},[n],b),Ir(()=>{if(g.current&&S.current){let F=g.current.getModifiedEditor(),$=Ti(S.current,t||"",i||r||"text",s||"");$!==F.getModel()&&F.setModel($)}},[s],b),Ir(()=>{let F=g.current.getModifiedEditor();F.getOption(S.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ir(()=>{var F,$;($=(F=g.current)==null?void 0:F.getModel())==null||$.original.setValue(e||"")},[e],b),Ir(()=>{let{original:F,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(F,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Ir(()=>{var F;(F=S.current)==null||F.editor.setTheme(l)},[l],b),Ir(()=>{var F;(F=g.current)==null||F.updateOptions(f)},[f],b);let A=W.useCallback(()=>{var Y;if(!S.current)return;_.current(S.current);let F=Ti(S.current,e||"",a||r||"text",n||""),$=Ti(S.current,t||"",i||r||"text",s||"");(Y=g.current)==null||Y.setModel({original:F,modified:$})},[r,t,i,e,a,n,s]),N=W.useCallback(()=>{var F;!x.current&&C.current&&(g.current=S.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...f}),A(),(F=S.current)==null||F.editor.setTheme(l),w(!0),x.current=!0)},[f,l,A]);W.useEffect(()=>{b&&O.current(g.current,S.current)},[b]),W.useEffect(()=>{!E&&!b&&N()},[E,b,N]);function I(){var $,Y,Z,ie;let F=($=g.current)==null?void 0:$.getModel();o||((Y=F==null?void 0:F.original)==null||Y.dispose()),c||((Z=F==null?void 0:F.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return W.createElement(Y0,{width:d,height:m,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:k})}var az=nz;W.memo(az);function iz(){let[e,t]=W.useState(tc.__getMonacoInstance());return xm(()=>{let r;return e||(r=tc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var sz=iz;function oz(e){let t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}var lz=oz,Sl=new Map;function cz({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:m=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=Ds,onMount:b=Ds,onChange:w,onValidate:E=Ds}){let[p,g]=W.useState(!1),[S,C]=W.useState(!0),O=W.useRef(null),_=W.useRef(null),x=W.useRef(null),A=W.useRef(b),N=W.useRef(y),I=W.useRef(),F=W.useRef(a),$=lz(n),Y=W.useRef(!1),Z=W.useRef(!1);xm(()=>{let D=tc.init();return D.then(U=>(O.current=U)&&C(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>_.current?P():D.cancel()}),Ir(()=>{var U,T,R,M;let D=Ti(O.current,e||a||"",t||i||"",n||r||"");D!==((U=_.current)==null?void 0:U.getModel())&&(f&&Sl.set($,(T=_.current)==null?void 0:T.saveViewState()),(R=_.current)==null||R.setModel(D),f&&((M=_.current)==null||M.restoreViewState(Sl.get(n))))},[n],p),Ir(()=>{var D;(D=_.current)==null||D.updateOptions(l)},[l],p),Ir(()=>{!_.current||a===void 0||(_.current.getOption(O.current.editor.EditorOption.readOnly)?_.current.setValue(a):a!==_.current.getValue()&&(Z.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),_.current.pushUndoStop(),Z.current=!1))},[a],p),Ir(()=>{var U,T;let D=(U=_.current)==null?void 0:U.getModel();D&&i&&((T=O.current)==null||T.editor.setModelLanguage(D,i))},[i],p),Ir(()=>{var D;o!==void 0&&((D=_.current)==null||D.revealLine(o))},[o],p),Ir(()=>{var D;(D=O.current)==null||D.editor.setTheme(s)},[s],p);let ie=W.useCallback(()=>{var D;if(!(!x.current||!O.current)&&!Y.current){N.current(O.current);let U=n||r,T=Ti(O.current,a||e||"",t||i||"",U||"");_.current=(D=O.current)==null?void 0:D.editor.create(x.current,{model:T,automaticLayout:!0,...l},u),f&&_.current.restoreViewState(Sl.get(U)),O.current.editor.setTheme(s),o!==void 0&&_.current.revealLine(o),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,s,o]);W.useEffect(()=>{p&&A.current(_.current,O.current)},[p]),W.useEffect(()=>{!S&&!p&&ie()},[S,p,ie]),F.current=a,W.useEffect(()=>{var D,U;p&&w&&((D=I.current)==null||D.dispose(),I.current=(U=_.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(_.current.getValue(),T)}))},[p,w]),W.useEffect(()=>{if(p){let D=O.current.editor.onDidChangeMarkers(U=>{var R;let T=(R=_.current.getModel())==null?void 0:R.uri;if(T&&U.find(M=>M.path===T.path)){let M=O.current.editor.getModelMarkers({resource:T});E==null||E(M)}});return()=>{D==null||D.dispose()}}return()=>{}},[p,E]);function P(){var D,U;(D=I.current)==null||D.dispose(),m?f&&Sl.set(n,_.current.saveViewState()):(U=_.current.getModel())==null||U.dispose(),_.current.dispose()}return W.createElement(Y0,{width:d,height:h,isEditorReady:p,loading:c,_ref:x,className:k,wrapperProps:v})}var uz=cz,fz=W.memo(uz),dz=fz;const mz="vs-dark",pz=!0,hz=[{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"}],gz={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},yz={base:mz,inherit:pz,rules:hz,colors:gz},vz=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:m="100%",theme:d="dracula",...h}=i,k=sz();W.useEffect(()=>{k&&k.editor.defineTheme("dracula",yz)});const v=W.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=W.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(dz,{id:t.$id,className:Pi(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...h},...l})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:a})})]})},bz=Object.freeze(Object.defineProperty({__proto__:null,button:tq,json:eq,sourceCode:vz},Symbol.toStringTag,{value:"Module"})),kz=fN,wz=(e,t)=>e&&e in hs?Rl({},hs[e]):t&&t in hs?Rl({},hs[t]):Rl({},hs.en),Sz=(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}),Z0=({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;zv(c);const m=W.useMemo(()=>wz(i,n),[i,n]),[d,h]=W.useState(u.formData);return j.jsx(kz,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:k=>Sz(k,u.schema),className:Pi(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...bz,...l==null?void 0:l.fields,...a},templates:{...Cv.templates,...l==null?void 0:l.templates,...t},widgets:{...Cv.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)}})},Rv={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Cm=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=Ew,onSuccess:s=Sw,onError:o=xw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:m,...d})=>{const[h,k]=W.useState({processId:a,steps:[],variables:{...m&&m.variables}}),[v]=X1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale,async:l}),y=W.useMemo(()=>{const U=jv();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=W.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=W.useState(!1),[p,g]=W.useState(b),[S,C]=W.useState({}),O=W.useCallback(U=>{C({}),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},...m&&m.locale&&{locale:m.locale}},...U.formData}).then(({results:T,resolvedFiles:R})=>{if(g(b),T.nextProcessId){const M=h.steps;M.push({processId:h.processId,data:{...U.formData,...R},result:T}),k({processId:T.nextProcessId,steps:M,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}s(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?C(_w(T==null?void 0:T.formErrors)):o(y,T,U.formData)}).finally(()=>E(!1))},[y,b,s,o,v,h]),{loading:_,formSpecs:x,error:A}=Z1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale}),N={...Rv,...m};zv(N),W.useEffect(()=>{A&&o(y,A,{})},[A]);const I=Pi(["fcode-form-wrapper",N.className]);if(_)return j.jsx("div",{className:Pi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(ep,{active:!0,content:N.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(Kv,{})})})});if(A||!x)return j.jsx("div",{className:I,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:Aw(A)})})});x.schema.embedFormOptions={...Rv,...x.schema.embedFormOptions,...m,variables:{...x.schema.embedFormOptions&&x.schema.embedFormOptions.variables,...h.variables,...m&&m.variables}};const F=Yv(x),$=Object.keys(F.schema.properties||{}),Y=Object.fromEntries(Object.entries(p).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:D}=F.embedFormOptions;return j.jsx("div",{className:Pi(["fcode-form-wrapper",F.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(ep,{active:w,content:ie,disabled:Z,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(Z0,{id:y,schema:F.schema,uiSchema:F.uiSchema,embedFormOptions:F.embedFormOptions,locale:P,fallbackLocale:D,formData:Y,onSubmit:O,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};Cm.displayName="FcodeForm";exports.FcodeForm=Cm;exports.FcodeJsonSchemaForm=Z0;exports.buildId=jv;exports.default=Cm;exports.processFormSpecs=Yv;
|
|
132
132
|
//# sourceMappingURL=fcode-form.cjs.js.map
|