@factorialco/fcode-react-forms 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/fcode-form/fcode-form.d.ts +76 -0
- package/dist/components/fcode-form/fcode-form.test.d.ts +6 -0
- package/dist/components/fcode-form/fcode-form.utils.d.ts +17 -0
- package/dist/components/fcode-form/fcode-form.utils.test.d.ts +6 -0
- package/dist/components/fcode-form/index.d.ts +1 -0
- package/dist/components/form-skeleton/form-skeleton.d.ts +13 -0
- package/dist/components/json-schema-form/default-theme/default-theme.test.d.ts +1 -0
- package/dist/components/json-schema-form/default-theme/index.d.ts +19 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-item-buttons-template.d.ts +8 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-item-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/button-templates.d.ts +10 -0
- package/dist/components/json-schema-form/default-theme/templates/description-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-error-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-help-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +12 -0
- package/dist/components/json-schema-form/default-theme/templates/index.d.ts +11 -0
- package/dist/components/json-schema-form/default-theme/templates/object-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/title-field-template.d.ts +7 -0
- package/dist/components/json-schema-form/default-theme/templates/wrap-if-additional-template.d.ts +11 -0
- package/dist/components/json-schema-form/default-theme/widgets/checkbox-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/checkboxes-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/index.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/radio-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/textarea-widget.d.ts +4 -0
- package/dist/components/json-schema-form/fcode-json-schema-form.d.ts +18 -0
- package/dist/components/json-schema-form/fields/button-field.d.ts +2 -0
- package/dist/components/json-schema-form/fields/index.d.ts +3 -0
- package/dist/components/json-schema-form/fields/json-field.d.ts +2 -0
- package/dist/components/json-schema-form/fields/source-code-field-editor-theme.json.d.ts +223 -0
- package/dist/components/json-schema-form/fields/source-code-field.d.ts +2 -0
- package/dist/components/json-schema-form/index.d.ts +2 -0
- package/dist/components/json-schema-form/markdown-content.d.ts +2 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +9 -0
- package/dist/data/embed-form-options-with-i18n.d.ts +3 -0
- package/dist/data/embed-form-options.d.ts +3 -0
- package/dist/data/fcode-form-specs-with-i18n.d.ts +3 -0
- package/dist/data/fcode-form-specs-with-ref-replacements.d.ts +3 -0
- package/dist/data/fcode-form-specs.d.ts +3 -0
- package/dist/data/index.d.ts +9 -0
- package/dist/data/schema-with-i18n.d.ts +3 -0
- package/dist/data/schema-with-ref-replacements.d.ts +3 -0
- package/dist/data/schema.d.ts +3 -0
- package/dist/data/ui-schema.d.ts +3 -0
- package/dist/fcode-form.cjs.js +132 -0
- package/dist/fcode-form.cjs.js.map +1 -0
- package/dist/fcode-form.es.js +30199 -0
- package/dist/fcode-form.es.js.map +1 -0
- package/dist/fcode-form.umd.js +132 -0
- package/dist/fcode-form.umd.js.map +1 -0
- package/dist/hooks/use-form-specs.d.ts +7 -0
- package/dist/hooks/use-form-specs.test.d.ts +1 -0
- package/dist/hooks/use-form-stylesheets.d.ts +10 -0
- package/dist/hooks/use-stylesheets.d.ts +6 -0
- package/dist/hooks/use-stylesheets.test.d.ts +1 -0
- package/dist/hooks/use-submit-form.d.ts +9 -0
- package/dist/hooks/use-submit-form.test.d.ts +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/services/fcode.d.ts +3 -0
- package/dist/services/fcode.test.d.ts +1 -0
- package/dist/styles-theme-light.css +79 -0
- package/dist/styles.css +1519 -0
- package/dist/types.d.ts +75 -0
- package/dist/utils/build-id.d.ts +1 -0
- package/dist/utils/build-id.test.d.ts +1 -0
- package/dist/utils/build-process-url.d.ts +1 -0
- package/dist/utils/build-process-url.test.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/is-valid-url.d.ts +1 -0
- package/dist/utils/is-valid-url.test.d.ts +1 -0
- package/dist/utils/merge-deep.d.ts +1 -0
- package/dist/utils/process-form-specs.d.ts +2 -0
- package/dist/utils/process-form-specs.test.d.ts +1 -0
- package/dist/utils/sanitize-html.d.ts +8 -0
- package/dist/utils/sanitize-html.test.d.ts +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";var r1=Object.defineProperty;var n1=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var lr=(e,t,r)=>n1(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 a1(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=a1(W),Rv=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Nv=()=>Math.random().toString(36).substring(2,10),i1=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 s1(e){if(Array.isArray(e))return e}function o1(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 l1(){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 c1(e,t){return s1(e)||o1(e,t)||u1(e,t)||l1()}function u1(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,f1=Object.isFrozen,d1=Object.getPrototypeOf,m1=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),p1=$t(Array.prototype.lastIndexOf),Om=$t(Array.prototype.pop),di=$t(Array.prototype.push),h1=$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),g1=$t(String.prototype.trim),y1=$t(Number.prototype.toString),v1=$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=b1(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 b1(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&&(f1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function k1(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=c1(a,2);const i=r[0],n=r[1];Yt(e,i)&&(sa(n)?t[i]=k1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=ur(n):t[i]=n)}return t}function w1(e){switch(typeof e){case"string":return e;case"number":return y1(e);case"boolean":return v1(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=m1(e,t);if(a){if(a.get)return $t(a.get);if(typeof a.value=="function")return $t(a.value)}e=d1(e)}function r(){return null}return r}function S1(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"]),E1=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"]),x1=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"]),C1=tr(/{{[\w\W]*|^[\w\W]*}}/g),A1=tr(/<%[\w\W]*|^[\w\W]*%>/g),_1=tr(/\${[\w\W]*/g),O1=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),T1=tr(/^aria-[\-\w]+$/),Mm=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),P1=tr(/^(?:\w+script|data):/i),I1=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),R1=tr(/^html$/i),N1=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Lm=tr(/<[/\w!]/g),qm=tr(/<[/\w]/g),j1=tr(/<\/no(script|embed|frames)/i),D1=tr(/\/>/i),Or={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},F1=function(){return typeof window>"u"?null:window},M1=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]:F1();const t=fe=>Fv(fe);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Or.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const a=r,i=a.currentScript;e.DocumentFragment;const n=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,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=M1(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=C1,T=A1,R=_1,M=O1,B=T1,V=P1,K=I1,J=N1;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 Dr=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 Fr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mr="http://www.w3.org/1998/Math/MathML",Ar="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Ft=Dt,gr=!1,hn=null;const Nn=Ze({},[Mr,Ar,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 Lr=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),Lr=Oc.indexOf(L.PARSER_MEDIA_TYPE)===-1?Tc:L.PARSER_MEDIA_TYPE,Ct=Lr==="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",Fr,{transform:Ct,base:Fr}),xt=Zn(L,"ADD_DATA_URI_TAGS",pn,{transform:Ct,base:pn}),Ht=Zn(L,"FORBID_CONTENTS",Dr,{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=S1(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===Dr&&(Ht=ur(Ht)),Ze(Ht,L.FORBID_CONTENTS,Ct)),Yt(L,"ADD_FORBID_CONTENTS")&&sa(L.ADD_FORBID_CONTENTS)&&(Ht===Dr&&(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,...E1]),ho=Ze({},[...Mc,...x1]),go=function(L,X,le){return X.namespaceURI===Dt?L==="svg":X.namespaceURI===Mr?L==="svg"&&(le==="annotation-xml"||es[le]):!!po[L]},Pc=function(L,X,le){return X.namespaceURI===Dt?L==="math":X.namespaceURI===Ar?L==="math"&&gn[le]:!!ho[L]},Ic=function(L,X,le){return X.namespaceURI===Ar&&!gn[le]||X.namespaceURI===Mr&&!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===Ar?go(le,X,ge):L.namespaceURI===Mr?Pc(le,X,ge):L.namespaceURI===Dt?Ic(le,X,ge):!!(Lr==="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)===Or.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===Or.processingInstruction||ge===Or.comment&&Jt(qm,le.data)){try{h(le)}catch{}continue}if(ge===Or.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]}Lr==="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,Lr)}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)===Or.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===Or.processingInstruction||Ve&&L.nodeType===Or.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)===Or.element&&!Rc(L)||(le==="noscript"||le==="noembed"||le==="noframes")&&Jt(j1,L.innerHTML))return vr(L),!0;if(je&&L.nodeType===Or.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,_r=_e.value,rr=Ct(Tt),kr=_r;let Gt=Tt==="value"?kr:g1(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(D1,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)===Or.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)===Or.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 _r=ge.content;Xn(_r)&&X.push({node:_r,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=w1(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===Or.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 _r=be?X.outerHTML:X.innerHTML;return be&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Jt(R1,X.ownerDocument.doctype.name)&&(_r="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
+
`+_r),je&&(_r=Ta(_r)),g&&De?A(_r):_r},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=p1(D[fe],L);return X===-1?void 0:h1(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=Fv();const L1=["script","iframe","object","embed","base","form"],q1=["srcdoc","formaction"];jl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noreferrer")});const z1=(e,t)=>jl.removed.length>0||t===""&&e.trim()!=="";function gd(e){const t=jl.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:L1,FORBID_ATTR:q1,ADD_ATTR:["target"]});return z1(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 $1="Fcode-Version-Tag",Mv=e=>e?{[$1]:e}:{},U1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i})=>{const n={...t,...Mv(i)},s=await fetch(Rv(e,r,a),{cache:"force-cache",...Object.keys(n).length>0&&{headers:n}}),o=await s.json();if(s.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(s.ok)return o;throw o},B1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,V1=e=>{const t=B1.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})}},H1=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=V1(i);n&&(r.push({key:a,file:new File([n.blob],n.name,{type:n.mime})}),delete t[a])}return{sanitized:t,files:r}},W1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,formData:s})=>{const{sanitized:o,files:c}=H1(s),l=Rv(e,r,a),u={"Fcode-Async":n?"true":"false"},f=Mv(i);let m;if(c.length>0){const h=new globalThis.FormData;h.append("parameters",JSON.stringify(o));for(const{key:v,file:y}of c)h.append(v,y,y.name);const k={...t,...u,...f};delete k["Content-Type"],delete k["content-type"],m=await fetch(l,{headers:k,method:"POST",body:h})}else m=await fetch(l,{headers:{...t,"Content-Type":"application/json",...u,...f},method:"POST",body:JSON.stringify(s)});let d={};try{const h=await m.text();h.length&&(d=JSON.parse(h))}catch(h){throw console.error("Unexpected error parsing response",h),h}if(m.ok)return d;throw d},K1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n=!1})=>{const[s,o]=W.useState(!1),[c,l]=W.useState(void 0),[u,f]=W.useState(void 0),[m,d]=W.useState(void 0),h=W.useCallback(()=>{o(!1),l(void 0),d(void 0),f(void 0)},[]);return[W.useCallback(async v=>{try{f(v),o(!0);const y=await W1({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,formData:v});return o(!1),l(y),y}catch(y){throw d(y),o(!1),y}},[e,t,r,a,i,n]),{loading:s,results:c,error:m,formData:u,reset:h}]},G1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i})=>{const[n,s]=W.useState(!0),[o,c]=W.useState(),[l,u]=W.useState(),f=JSON.stringify(t??null),m=W.useMemo(()=>t,[f]);return W.useEffect(()=>{let d=!1;return s(!0),u(void 0),U1({hostUrl:e,headers:m,team:r,processId:a,processVersion:i}).then(h=>{d||c(h)}).catch(h=>{d||u(h)}).finally(()=>{d||s(!1)}),()=>{d=!0}},[e,m,r,a,i]),{loading:n,formSpecs:o,error:l}},J1=e=>i1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),Y1=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},X1=e=>{if(Y1(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},Z1=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function Q1({stylesheets:e}){W.useEffect(()=>{const t=e.map(r=>J1(r)?X1(r):Z1(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Lv(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]);Q1({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 qv(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 zv(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
|
+
* react-is.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var $m;function ew(){if($m)return ct;$m=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
|
+
* react-is.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Um;function tw(){return Um||(Um=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 Bm;function $v(){return Bm||(Bm=1,process.env.NODE_ENV==="production"?xo.exports=ew():xo.exports=tw()),xo.exports}/*
|
|
18
|
+
object-assign
|
|
19
|
+
(c) Sindre Sorhus
|
|
20
|
+
@license MIT
|
|
21
|
+
*/var qc,Vm;function rw(){if(Vm)return qc;Vm=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,Hm;function yd(){if(Hm)return zc;Hm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var $c,Wm;function Uv(){return Wm||(Wm=1,$c=Function.call.bind(Object.prototype.hasOwnProperty)),$c}var Uc,Km;function nw(){if(Km)return Uc;Km=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=yd(),r={},a=Uv();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,Gm;function aw(){if(Gm)return Bc;Gm=1;var e=$v(),t=rw(),r=yd(),a=Uv(),i=nw(),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,Jm;function iw(){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 sw(){if(Ym)return Eo.exports;if(Ym=1,process.env.NODE_ENV!=="production"){var e=$v(),t=!0;Eo.exports=aw()(e.isElement,t)}else Eo.exports=iw()();return Eo.exports}var ow=sw();const Ie=Pn(ow);function lw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function cw(e,t){e.classList?e.classList.add(t):lw(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 uw(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 fw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,dw=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 Bv=W.createContext(null);var Vv=function(t){return t.scrollTop},ws="unmounted",qa="exited",za="entering",wi="entered",xf="exiting",In=(function(e){zv(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&&Vv(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=qv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Bv.Provider,{value:null},typeof s=="function"?s(i,o):W.cloneElement(W.Children.only(s),o))},t})(W.Component);In.contextType=Bv;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=fw;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 mw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return cw(t,a)})},Hc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return uw(t,a)})},vd=(function(e){zv(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&&Vv(i),o&&(this.appliedClasses[n][s]=o,mw(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=qv(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:dw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const pw=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(pw,{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})]})})})]})},hw=["first","second"],Hv=()=>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"}),hw.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"})]});Hv.displayName="FormSkeleton";const bd=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},gw=(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)},yw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},vw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),bd("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),gw(e,t),t.redirect&&yw(t.redirect)},bw=(e,t)=>{bd("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},kw=(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>`)},ww="The form couldn't be loaded",Sw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:ww},Wv=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]=Wv(e[t]);break}return e},Ew=e=>{let t={};return e.fields&&(t={...Wv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
23
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
24
|
+
* http://github.com/janl/mustache.js
|
|
25
|
+
*/var xw=Object.prototype.toString,Bi=Array.isArray||function(t){return xw.call(t)==="[object Array]"};function kd(e){return typeof e=="function"}function Cw(e){return Bi(e)?"array":typeof e}function Wc(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ep(e,t){return e!=null&&typeof e=="object"&&t in e}function Aw(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var _w=RegExp.prototype.test;function Ow(e,t){return _w.call(e,t)}var Tw=/\S/;function Pw(e){return!Ow(Tw,e)}var Iw={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Rw(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Iw[r]})}var Nw=/\s*/,jw=/\s+/,tp=/\s*=/,Dw=/\s*\}/,Fw=/#|\^|\/|>|\{|&|=|!/;function Mw(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(jw,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||Er.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),Pw(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(Fw)||"name",k.scan(Nw),y==="="?(b=k.scanUntil(tp),k.scan(tp),k.scanUntil(m)):y==="{"?(b=k.scanUntil(d),k.scan(Dw),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 qw(Lw(i))}function Lw(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 qw(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=ep(n,s[o])||Aw(n,s[o])),n=n[s[o++]];else n=i.view[t],c=ep(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||Er.tags).join(":"),n=typeof a<"u",s=n?a.get(i):void 0;return s==null&&(s=Mw(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
|
+
`),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)||Er.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&i===Er.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 Er={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;Er.clearCache=function(){return Fs.clearCache()};Er.parse=function(t,r){return Fs.parse(t,r)};Er.render=function(t,r,a,i){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Cw(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Fs.render(t,r,a,i)};Er.escape=Rw;Er.Scanner=Gs;Er.Context=Fi;Er.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)},zw=(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()},$w=([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=$w([i,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...a,[i]:{...o,"ui:classNames":zw(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},Uw=e=>{const{embedFormOptions:t,ui:r,uiSchema:a,...i}=e;return Af(i,["ui","isSensitive","isTransient"])},Bw=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)}},Kv=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Kv(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),Vw=(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(Kv(JSON.parse(a))):a},Hw=(e,t)=>{var n,s;let r=((n=t==null?void 0:t.i18nVariables)==null?void 0:n[t.locale])??{},a=(t.fallbackLocale&&((s=t==null?void 0:t.i18nVariables)==null?void 0:s[t.fallbackLocale]))??{};t!=null&&t.i18nVariables&&(t!=null&&t.variables)&&(r=JSON.parse(Er.render(JSON.stringify(r),t.variables)),a=JSON.parse(Er.render(JSON.stringify(a),t.variables)));const i={...(t==null?void 0:t.variables)??{},...a,...r};return JSON.parse(Er.render(Vw(e,i),i))};function Gv(e){const t=Hw(e,e.schema.embedFormOptions);return{schema:Uw(t.schema),uiSchema:Bw(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Gc={exports:{}};/*!
|
|
29
|
+
Copyright (c) 2018 Jed Watson.
|
|
30
|
+
Licensed under the MIT License (MIT), see
|
|
31
|
+
http://jedwatson.github.io/classnames
|
|
32
|
+
*/var rp;function Ww(){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 Kw=Ww();const Pi=Pn(Kw);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 Gw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Ae(e.additionalItems)}function Jv(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=Jv(),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",Jw="enum",Zt="__errors",pt="$id",Sd="if",Mi="items",Yw="_$junk_option_schema_id$_",El="$name",Fe="oneOf",_f="patternProperties",Ye="properties",Jc="readonly",Yv="required",Ml="submitButtonOptions",gt="$ref",xl=Symbol("__rjsf_ref"),Ed=Symbol("__rjsf_ref_cycle"),Ss="$schema",Xv="root",Zv="_",Xw=["discriminator","propertyName"],ap="formContext",Zw="layoutGridLookupMap",Qv="__rjsf",xd=`${Qv}_additionalProperties`,eb=`${Qv}_rootSchema`,Qw="ui:field",Cd="ui:widget",ca="ui:options",Of="ui:globalOptions",eS="ui:definitions",tS="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 tb(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 rb=typeof global=="object"&&global&&global.Object===Object&&global,rS=typeof self=="object"&&self&&self.Object===Object&&self,Rn=rb||rS||Function("return this")(),Kr=Rn.Symbol,nb=Object.prototype,nS=nb.hasOwnProperty,aS=nb.toString,ls=Kr?Kr.toStringTag:void 0;function iS(e){var t=nS.call(e,ls),r=e[ls];try{e[ls]=void 0;var a=!0}catch{}var i=aS.call(e);return a&&(t?e[ls]=r:delete e[ls]),i}var sS=Object.prototype,oS=sS.toString;function lS(e){return oS.call(e)}var cS="[object Null]",uS="[object Undefined]",ip=Kr?Kr.toStringTag:void 0;function Bn(e){return e==null?e===void 0?uS:cS:ip&&ip in Object(e)?iS(e):lS(e)}function ab(e,t){return function(r){return e(t(r))}}var rc=ab(Object.getPrototypeOf,Object);function Gr(e){return e!=null&&typeof e=="object"}var fS="[object Object]",dS=Function.prototype,mS=Object.prototype,ib=dS.toString,pS=mS.hasOwnProperty,hS=ib.call(Object);function ya(e){if(!Gr(e)||Bn(e)!=fS)return!1;var t=rc(e);if(t===null)return!0;var r=pS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ib.call(r)==hS}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,gS="[object Symbol]";function Js(e){return typeof e=="symbol"||Gr(e)&&Bn(e)==gS}var yS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vS=/^\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:vS.test(e)||!yS.test(e)||t!=null&&e in Object(t)}function Xe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bS="[object AsyncFunction]",kS="[object Function]",wS="[object GeneratorFunction]",SS="[object Proxy]";function Ys(e){if(!Xe(e))return!1;var t=Bn(e);return t==kS||t==wS||t==bS||t==SS}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 ES(e){return!!sp&&sp in e}var xS=Function.prototype,CS=xS.toString;function ti(e){if(e!=null){try{return CS.call(e)}catch{}try{return e+""}catch{}}return""}var AS=/[\\^$.*+?()[\]{}|]/g,_S=/^\[object .+?Constructor\]$/,OS=Function.prototype,TS=Object.prototype,PS=OS.toString,IS=TS.hasOwnProperty,RS=RegExp("^"+PS.call(IS).replace(AS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NS(e){if(!Xe(e)||ES(e))return!1;var t=Ys(e)?RS:_S;return t.test(ti(e))}function jS(e,t){return e==null?void 0:e[t]}function ri(e,t){var r=jS(e,t);return NS(r)?r:void 0}var Ms=ri(Object,"create");function DS(){this.__data__=Ms?Ms(null):{},this.size=0}function FS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var MS="__lodash_hash_undefined__",LS=Object.prototype,qS=LS.hasOwnProperty;function zS(e){var t=this.__data__;if(Ms){var r=t[e];return r===MS?void 0:r}return qS.call(t,e)?t[e]:void 0}var $S=Object.prototype,US=$S.hasOwnProperty;function BS(e){var t=this.__data__;return Ms?t[e]!==void 0:US.call(t,e)}var VS="__lodash_hash_undefined__";function HS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ms&&t===void 0?VS: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=DS;Wa.prototype.delete=FS;Wa.prototype.get=zS;Wa.prototype.has=BS;Wa.prototype.set=HS;function WS(){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 KS=Array.prototype,GS=KS.splice;function JS(e){var t=this.__data__,r=nc(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():GS.call(t,r,1),--this.size,!0}function YS(e){var t=this.__data__,r=nc(t,e);return r<0?void 0:t[r][1]}function XS(e){return nc(this.__data__,e)>-1}function ZS(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=WS;Vn.prototype.delete=JS;Vn.prototype.get=YS;Vn.prototype.has=XS;Vn.prototype.set=ZS;var Ls=ri(Rn,"Map");function QS(){this.size=0,this.__data__={hash:new Wa,map:new(Ls||Vn),string:new Wa}}function eE(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 eE(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tE(e){var t=ac(this,e).delete(e);return this.size-=t?1:0,t}function rE(e){return ac(this,e).get(e)}function nE(e){return ac(this,e).has(e)}function aE(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=QS;Hn.prototype.delete=tE;Hn.prototype.get=rE;Hn.prototype.has=nE;Hn.prototype.set=aE;var iE="Expected a function";function _d(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(iE);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 sE=500;function oE(e){var t=_d(e,function(a){return r.size===sE&&r.clear(),a}),r=t.cache;return t}var lE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cE=/\\(\\)?/g,sb=oE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lE,function(r,a,i,n){t.push(i?n.replace(cE,"$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 ob(e){if(typeof e=="string")return e;if(Vt(e))return Vi(e,ob)+"";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?"":ob(e)}function Hi(e,t){return Vt(e)?e:Ad(e,t)?[e]:sb(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:uE}=Object,{hasOwnProperty:fE}=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=uE(e);return t.length?cp(e).concat(t):cp(e)}const dE=Object.hasOwn||((e,t)=>fE.call(e,t)),mE="__v",pE="__o",hE="_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 gE(e,t){return e===t}function yE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e),new Uint8Array(t))}function vE(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 bE(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 kE(e,t){return ni(e.getTime(),t.getTime())}function wE(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 SE(e,t,r){const a=dp(e);let i=a.length;if(dp(t).length!==i)return!1;for(;i-- >0;)if(!lb(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],!lb(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 EE(e,t){return ni(e.valueOf(),t.valueOf())}function xE(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 CE(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 lb(e,t,r,a){return(a===hE||a===pE||a===mE)&&(e.$$typeof||t.$$typeof)?!0:dE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const AE=Object.prototype.toString;function _E(e){const t=IE(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=AE.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 OE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:yE,areArraysEqual:r?cs:vE,areDataViewsEqual:bE,areDatesEqual:kE,areErrorsEqual:wE,areFunctionsEqual:gE,areMapsEqual:r?Xc(mp,cs):mp,areNumbersEqual:ni,areObjectsEqual:r?cs:SE,arePrimitiveWrappersEqual:EE,areRegExpsEqual:xE,areSetsEqual:r?Xc(pp,cs):pp,areTypedArraysEqual:r?Xc(Ll,cs):Ll,areUrlsEqual:CE,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 TE(e){return function(t,r,a,i,n,s,o){return e(t,r,o)}}function PE({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 IE({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=OE(e),s=_E(n),o=r?r(s):TE(s);return PE({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 cb(){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 RE(){if(gp)return Qc;gp=1;const{isUUID:e}=cb(),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 NE(){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}=cb(),{SCHEMES:u,getSchemeHandler:f}=RE();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 jE=NE();const Td=Pn(jE);var fs={},vp;function DE(){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 FE=DE();const eu=Pn(FE);var ME=Object.prototype;function sc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ME;return e===r}var LE=ab(Object.keys,Object),qE=Object.prototype,zE=qE.hasOwnProperty;function ub(e){if(!sc(e))return LE(e);var t=[];for(var r in Object(e))zE.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]",$E="[object Object]",kp="[object Promise]",wp="[object Set]",Sp="[object WeakMap]",Ep="[object DataView]",UE=ti(Pf),BE=ti(Ls),VE=ti(If),HE=ti(Ii),WE=ti(Rf),Ur=Bn;(Pf&&Ur(new Pf(new ArrayBuffer(1)))!=Ep||Ls&&Ur(new Ls)!=bp||If&&Ur(If.resolve())!=kp||Ii&&Ur(new Ii)!=wp||Rf&&Ur(new Rf)!=Sp)&&(Ur=function(e){var t=Bn(e),r=t==$E?e.constructor:void 0,a=r?ti(r):"";if(a)switch(a){case UE:return Ep;case BE:return bp;case VE:return kp;case HE:return wp;case WE:return Sp}return t});var KE="[object Arguments]";function xp(e){return Gr(e)&&Bn(e)==KE}var fb=Object.prototype,GE=fb.hasOwnProperty,JE=fb.propertyIsEnumerable,Li=xp((function(){return arguments})())?xp:function(e){return Gr(e)&&GE.call(e,"callee")&&!JE.call(e,"callee")},YE=9007199254740991;function Pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YE}function ai(e){return e!=null&&Pd(e.length)&&!Ys(e)}function XE(){return!1}var db=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cp=db&&typeof module=="object"&&module&&!module.nodeType&&module,ZE=Cp&&Cp.exports===db,Ap=ZE?Rn.Buffer:void 0,QE=Ap?Ap.isBuffer:void 0,Ka=QE||XE,ex="[object Arguments]",tx="[object Array]",rx="[object Boolean]",nx="[object Date]",ax="[object Error]",ix="[object Function]",sx="[object Map]",ox="[object Number]",lx="[object Object]",cx="[object RegExp]",ux="[object Set]",fx="[object String]",dx="[object WeakMap]",mx="[object ArrayBuffer]",px="[object DataView]",hx="[object Float32Array]",gx="[object Float64Array]",yx="[object Int8Array]",vx="[object Int16Array]",bx="[object Int32Array]",kx="[object Uint8Array]",wx="[object Uint8ClampedArray]",Sx="[object Uint16Array]",Ex="[object Uint32Array]",At={};At[hx]=At[gx]=At[yx]=At[vx]=At[bx]=At[kx]=At[wx]=At[Sx]=At[Ex]=!0;At[ex]=At[tx]=At[mx]=At[rx]=At[px]=At[nx]=At[ax]=At[ix]=At[sx]=At[ox]=At[lx]=At[cx]=At[ux]=At[fx]=At[dx]=!1;function xx(e){return Gr(e)&&Pd(e.length)&&!!At[Bn(e)]}function Id(e){return function(t){return e(t)}}var mb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=mb&&typeof module=="object"&&module&&!module.nodeType&&module,Cx=Os&&Os.exports===mb,tu=Cx&&rb.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):xx,Ax="[object Map]",_x="[object Set]",Ox=Object.prototype,Tx=Ox.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=Ur(e);if(t==Ax||t==_x)return!e.size;if(sc(e))return!ub(e).length;for(var r in e)if(Tx.call(e,r))return!1;return!0}function Px(){this.__data__=new Vn,this.size=0}function Ix(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Rx(e){return this.__data__.get(e)}function Nx(e){return this.__data__.has(e)}var jx=200;function Dx(e,t){var r=this.__data__;if(r instanceof Vn){var a=r.__data__;if(!Ls||a.length<jx-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=Px;sn.prototype.delete=Ix;sn.prototype.get=Rx;sn.prototype.has=Nx;sn.prototype.set=Dx;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 Fx=Object.prototype,Mx=Fx.hasOwnProperty;function jd(e,t,r){var a=e[t];(!(Mx.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 pb(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Lx=9007199254740991,qx=/^(?:0|[1-9]\d*)$/;function oc(e,t){var r=typeof e;return t=t??Lx,!!t&&(r=="number"||r!="symbol"&&qx.test(e))&&e>-1&&e%1==0&&e<t}var zx=Object.prototype,$x=zx.hasOwnProperty;function hb(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?pb(e.length,String):[],c=o.length;for(var l in e)(t||$x.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)?hb(e):ub(e)}function Ux(e,t){return e&&Wi(t,nn(t),e)}function Bx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Vx=Object.prototype,Hx=Vx.hasOwnProperty;function Wx(e){if(!Xe(e))return Bx(e);var t=sc(e),r=[];for(var a in e)a=="constructor"&&(t||!Hx.call(e,a))||r.push(a);return r}function Qs(e){return ai(e)?hb(e,!0):Wx(e)}function Kx(e,t){return e&&Wi(t,Qs(t),e)}var gb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=gb&&typeof module=="object"&&module&&!module.nodeType&&module,Gx=Op&&Op.exports===gb,Tp=Gx?Rn.Buffer:void 0,Pp=Tp?Tp.allocUnsafe:void 0;function yb(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 Jx(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 vb(){return[]}var Yx=Object.prototype,Xx=Yx.propertyIsEnumerable,Ip=Object.getOwnPropertySymbols,Fd=Ip?function(e){return e==null?[]:(e=Object(e),Jx(Ip(e),function(t){return Xx.call(e,t)}))}:vb;function Zx(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 Qx=Object.getOwnPropertySymbols,bb=Qx?function(e){for(var t=[];e;)Md(t,Fd(e)),e=rc(e);return t}:vb;function eC(e,t){return Wi(e,bb(e),t)}function kb(e,t,r){var a=t(e);return Vt(e)?a:Md(a,r(e))}function Nf(e){return kb(e,nn,Fd)}function Ld(e){return kb(e,Qs,bb)}var tC=Object.prototype,rC=tC.hasOwnProperty;function nC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&rC.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 aC(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var iC=/\w*$/;function sC(e){var t=new e.constructor(e.source,iC.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=Kr?Kr.prototype:void 0,Np=Rp?Rp.valueOf:void 0;function oC(e){return Np?Object(Np.call(e)):{}}function wb(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lC="[object Boolean]",cC="[object Date]",uC="[object Map]",fC="[object Number]",dC="[object RegExp]",mC="[object Set]",pC="[object String]",hC="[object Symbol]",gC="[object ArrayBuffer]",yC="[object DataView]",vC="[object Float32Array]",bC="[object Float64Array]",kC="[object Int8Array]",wC="[object Int16Array]",SC="[object Int32Array]",EC="[object Uint8Array]",xC="[object Uint8ClampedArray]",CC="[object Uint16Array]",AC="[object Uint32Array]";function _C(e,t,r){var a=e.constructor;switch(t){case gC:return qd(e);case lC:case cC:return new a(+e);case yC:return aC(e,r);case vC:case bC:case kC:case wC:case SC:case EC:case xC:case CC:case AC:return wb(e,r);case uC:return new a;case fC:case pC:return new a(e);case dC:return sC(e);case mC:return new a;case hC:return oC(e)}}var jp=Object.create,Sb=(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 Eb(e){return typeof e.constructor=="function"&&!sc(e)?Sb(rc(e)):{}}var OC="[object Map]";function TC(e){return Gr(e)&&Ur(e)==OC}var Dp=qi&&qi.isMap,PC=Dp?Id(Dp):TC,IC="[object Set]";function RC(e){return Gr(e)&&Ur(e)==IC}var Fp=qi&&qi.isSet,NC=Fp?Id(Fp):RC,jC=1,DC=2,FC=4,xb="[object Arguments]",MC="[object Array]",LC="[object Boolean]",qC="[object Date]",zC="[object Error]",Cb="[object Function]",$C="[object GeneratorFunction]",UC="[object Map]",BC="[object Number]",Ab="[object Object]",VC="[object RegExp]",HC="[object Set]",WC="[object String]",KC="[object Symbol]",GC="[object WeakMap]",JC="[object ArrayBuffer]",YC="[object DataView]",XC="[object Float32Array]",ZC="[object Float64Array]",QC="[object Int8Array]",eA="[object Int16Array]",tA="[object Int32Array]",rA="[object Uint8Array]",nA="[object Uint8ClampedArray]",aA="[object Uint16Array]",iA="[object Uint32Array]",St={};St[xb]=St[MC]=St[JC]=St[YC]=St[LC]=St[qC]=St[XC]=St[ZC]=St[QC]=St[eA]=St[tA]=St[UC]=St[BC]=St[Ab]=St[VC]=St[HC]=St[WC]=St[KC]=St[rA]=St[nA]=St[aA]=St[iA]=!0;St[zC]=St[Cb]=St[GC]=!1;function Ts(e,t,r,a,i,n){var s,o=t&jC,c=t&DC,l=t&FC;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=nC(e),!o)return Dd(e,s)}else{var f=Ur(e),m=f==Cb||f==$C;if(Ka(e))return yb(e,o);if(f==Ab||f==xb||m&&!i){if(s=c||m?{}:Eb(e),!o)return c?eC(e,Kx(s,e)):Zx(e,Ux(s,e))}else{if(!St[f])return i?e:{};s=_C(e,f,o)}}n||(n=new sn);var d=n.get(e);if(d)return d;n.set(e,s),NC(e)?e.forEach(function(v){s.add(Ts(v,t,r,v,e,n))}):PC(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 _b(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function sA(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 oA(e,t){return t.length<2?e:ic(e,sA(t,0,-1))}var lA=Object.prototype,cA=lA.hasOwnProperty;function Ob(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__"&&!cA.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=oA(e,t);return n==null||delete n[va(_b(t))]}function uA(e){return ya(e)?void 0:e}var Mp=Kr?Kr.isConcatSpreadable:void 0;function fA(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=fA),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 dA(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 Tb(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),dA(e,this,o)}}function mA(e){return function(){return e}}function lc(e){return e}var pA=ql?function(e,t){return ql(e,"toString",{configurable:!0,enumerable:!1,value:mA(t),writable:!0})}:lc,hA=800,gA=16,yA=Date.now;function vA(e){var t=0,r=0;return function(){var a=yA(),i=gA-(a-r);if(r=a,i>0){if(++t>=hA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Pb=vA(pA);function Ib(e){return Pb(Tb(e,void 0,jf),e+"")}var bA=1,kA=2,wA=4,qs=Ib(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,bA|kA|wA,uA));for(var i=t.length;i--;)Ob(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 Rb(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=Rb(l,t,[...r,i],s);return Object.keys(c).length>0?t[Ss]===tS||t[Ss]===Cl?{[_n]:[c,u]}:{...c,...u}:u}return n}function zs(e,t={},r=oe(t,[pt])){return Rb(e,t,[],r)}var SA=Object.prototype,EA=SA.hasOwnProperty;function xA(e,t){return e!=null&&EA.call(e,t)}function Nb(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&&Nb(e,t,xA)}var CA="[object String]";function ba(e){return typeof e=="string"||!Vt(e)&&Gr(e)&&Bn(e)==CA}function Jr(e){let t;const r=oe(e,Xw);return ba(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var AA=1/0;function _A(e){var t=e==null?0:e.length;return t?eo(e,AA):[]}function Ff(e,t,r){(r!==void 0&&!Xs(e[t],r)||r===void 0&&!(t in e))&&Nd(e,t,r)}function OA(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 jb=OA();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 TA(e){return Wi(e,Qs(e))}function PA(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=yb(c,!0)):h?(f=!1,u=wb(c,!0)):u=[]:ya(c)||Li(c)?(u=o,Li(o)?u=TA(o):(!Xe(o)||Ys(o))&&(u=Eb(c))):f=!1}f&&(s.set(c,u),i(u,c,a,n,s),s.delete(c)),Ff(e,r,u)}function Db(e,t,r,a,i){e!==t&&jb(t,function(n,s){if(i||(i=new sn),Xe(n))PA(e,t,s,r,Db,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 Pb(Tb(e,t,lc),e+"")}function IA(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 RA(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&&IA(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 NA=RA(function(e,t,r){Db(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 Fb(e){return typeof e=="function"?e:lc}var jA=/\s/;function DA(e){for(var t=e.length;t--&&jA.test(e.charAt(t)););return t}var FA=/^\s+/;function MA(e){return e&&e.slice(0,DA(e)+1).replace(FA,"")}var qp=NaN,LA=/^[-+]0x[0-9a-f]+$/i,qA=/^0b[01]+$/i,zA=/^0o[0-7]+$/i,$A=parseInt;function UA(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=MA(e);var r=qA.test(e);return r||zA.test(e)?$A(e.slice(2),r?2:8):LA.test(e)?qp:+e}var zp=1/0,BA=17976931348623157e292;function VA(e){if(!e)return e===0?e:0;if(e=UA(e),e===zp||e===-zp){var t=e<0?-1:1;return t*BA}return e===e?e:0}function Mb(e){var t=VA(e),r=t%1;return t===t?r?t-r:t:0}var HA=9007199254740991,ru=4294967295,WA=Math.min;function Lb(e,t){if(e=Mb(e),e<1||e>HA)return[];var r=ru,a=WA(e,ru);t=Fb(t),e-=ru;for(var i=pb(a,t);++r<e;)t(r);return i}function qb(e,t){return e&&jb(e,t,nn)}var KA="__lodash_hash_undefined__";function GA(e){return this.__data__.set(e,KA),this}function JA(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=GA;Ga.prototype.has=JA;function YA(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 XA=1,ZA=2;function zb(e,t,r,a,i,n){var s=r&XA,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&ZA?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(!YA(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 QA(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 e_=1,t_=2,r_="[object Boolean]",n_="[object Date]",a_="[object Error]",i_="[object Map]",s_="[object Number]",o_="[object RegExp]",l_="[object Set]",c_="[object String]",u_="[object Symbol]",f_="[object ArrayBuffer]",d_="[object DataView]",$p=Kr?Kr.prototype:void 0,nu=$p?$p.valueOf:void 0;function m_(e,t,r,a,i,n,s){switch(r){case d_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case f_:return!(e.byteLength!=t.byteLength||!n(new zl(e),new zl(t)));case r_:case n_:case s_:return Xs(+e,+t);case a_:return e.name==t.name&&e.message==t.message;case o_:case c_:return e==t+"";case i_:var o=QA;case l_:var c=a&e_;if(o||(o=Ud),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;a|=t_,s.set(e,t);var u=zb(o(e),o(t),a,i,n,s);return s.delete(e),u;case u_:if(nu)return nu.call(e)==nu.call(t)}return!1}var p_=1,h_=Object.prototype,g_=h_.hasOwnProperty;function y_(e,t,r,a,i,n){var s=r&p_,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:g_.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 v_=1,Up="[object Arguments]",Bp="[object Array]",Ao="[object Object]",b_=Object.prototype,Vp=b_.hasOwnProperty;function k_(e,t,r,a,i,n){var s=Vt(e),o=Vt(t),c=s?Bp:Ur(e),l=o?Bp:Ur(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)?zb(e,t,r,a,i,n):m_(e,t,c,r,a,i,n);if(!(r&v_)){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),y_(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:k_(e,t,r,a,uc,i)}var w_=1,S_=2;function E_(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,w_|S_,a,u):f))return!1}}return!0}function $b(e){return e===e&&!Xe(e)}function x_(e){for(var t=nn(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,$b(i)]}return t}function Ub(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function C_(e){var t=x_(e);return t.length==1&&t[0][2]?Ub(t[0][0],t[0][1]):function(r){return r===e||E_(r,e,t)}}function A_(e,t){return e!=null&&t in Object(e)}function Bb(e,t){return e!=null&&Nb(e,t,A_)}var __=1,O_=2;function T_(e,t){return Ad(e)&&$b(t)?Ub(va(e),t):function(r){var a=oe(r,e);return a===void 0&&a===t?Bb(r,e):uc(t,a,__|O_)}}function P_(e){return function(t){return t==null?void 0:t[e]}}function I_(e){return function(t){return ic(t,e)}}function R_(e){return Ad(e)?P_(va(e)):I_(e)}function Bd(e){return typeof e=="function"?e:e==null?lc:typeof e=="object"?Vt(e)?T_(e[0],e[1]):C_(e):R_(e)}function N_(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)?Sb(rc(e)):{}:r={}}return(i?Rd:qb)(e,function(s,o,c){return t(r,s,o,c)}),r}function j_(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 D_(e){return e!==e}function F_(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function Vb(e,t,r){return t===t?F_(e,t,r):j_(e,D_,r)}function Vd(e,t){var r=e==null?0:e.length;return!!r&&Vb(e,t,0)>-1}function Al(){}var M_=1/0,L_=Ii&&1/Ud(new Ii([,-0]))[1]==M_?function(e){return new Ii(e)}:Al,q_=200;function Hb(e,t,r){var a=-1,i=Vd,n=e.length,s=!0,o=[],c=o;if(n>=q_){var l=L_(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 Wb(e){return e&&e.length?Hb(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 z_=cc(function(e){return Hb(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===Yv&&Array.isArray(s)&&Array.isArray(o)?i[n]=z_(s,o):i[n]=o,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var $_="[object Number]";function Kb(e){return typeof e=="number"||Gr(e)&&Bn(e)==$_}function Gb(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=Gb(t,r,i);if(Kb(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 U_=Object.prototype;function Es(e){for(const t in e)if(U_.hasOwnProperty.call(e,t))return!1;return!0}const B_=["array","boolean","integer","null","number","object","string"];new Set(B_);const V_=["$defs","definitions","properties","patternProperties","dependencies"];new Set(V_);const H_=["items","allOf","oneOf","anyOf"];new Set(H_);const W_=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(W_);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 K_(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 Jb(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 G_(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 J_(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const Wp=J_,Yb=()=>0,Y_=e=>e===void 0,X_=e=>typeof e!="object",Kp={boolean:0,number:1,string:2};function Z_(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):Kp[r]-Kp[a]}function Q_(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=Yb){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Si(e){return fc(Y_,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 eO({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,Jb(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=Q_(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(X_,su(a(o),iu(l)),Z_);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,Yb),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 Xb=(e,t)=>e?Xb(t%e,e):t,tO=(e,t)=>Math.abs(e*t)/Xb(e,t);function rO(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 nO(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 aO=["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 iO=["items","additionalItems"],sO=["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 oO(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 lO=[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 cO({mergePatterns:e=rO,isSubRegExp:t=Object.is,intersectJson:r=K_,deduplicateJsonSchemaDef:a=Gp,defaultMerger:i=Gp,assigners:n=[],checks:s=lO,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=nO([[aO,f],[iO,m],[sO,d],...n]),v=oO(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 tO(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 uO(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 fO(e){return t=>e(uO(t))}const{compareSchemaDefinitions:dO,compareSchemaValues:mO}=eO(),{mergeArrayOfSchemaDefinitions:pO}=cO({intersectJson:G_(mO),deduplicateJsonSchemaDef:Jb(dO)}),Zb=fO(pO);function er(e,t,r={},a,i,n=!1){return xn(e,t,r,a,void 0,void 0,i,n)[0]}function Qb(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function hO(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=Qb(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 ek(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>Lb(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function tk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(yt(r,[a],e.patternProperties[a]),r),{})}function gO(e,t,r,a,i,n,s,o){const c=rk(e,t,r,a,i,n,s,o);if(c.length>1||c[0]!==t)return c;if(wd in t)return ak(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 ek(l).map(f=>({...t,allOf:f}))}return[t]}function rk(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=N_(s[Ye],(u,f,m)=>{const d=[...r];u[m]=ua(f,t,d,o,i,!i),c.push(d)},{});NA(r,Wb(_A(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 yO(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=tk(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 vO(e){return Zb(e)}function xn(e,t,r,a,i=!1,n=[],s,o){return Ae(t)?gO(e,t,r,i,n,a,s,o).flatMap(l=>{var u;let f=l;if(Sd in f)return hO(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):vO(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=tk(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?yO(e,f,r,a,s):f}):[{}]}function bO(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=nk(n,!1,r);return Ul(e,l,m,r,u),n.map(d=>Un(c,d))}return[Un(c,n[f])]}return[t]}function nk(e,t=!1,r){return e.map(a=>{if(!Ae(a))return Qb(a);const i=t&&r?ua(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function ak(e,t,r,a,i,n,s){const{dependencies:o,...c}=t;return bO(e,c,r,a,n).flatMap(u=>ik(e,o,u,r,a,i,n,s))}function ik(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]=kO(r,f):Ae(f)&&(c=wO(e,r,a,l,f,i,n,s,o)),c.flatMap(m=>ik(e,u,m,a,i,n,s,o))}return c}function kO(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 wO(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]:rk(e,v,r,n,s,o));return ek(h).flatMap(v=>SO(e,d,r,a,v,n,s,o,c))})}function SO(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 sk(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),sk(e,t,n,c,i)}function Ol(e,t,r,a,i,n){const s=sk(e,t,r,a,n);return s===void 0?i:s}const eh={title:"!@#$_UNKNOWN_$#@!"};function EO(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,Yv,[],n);let m;return u&&Array.isArray(f)&&(m=f.includes(l)),{field:u,isRequired:m}}function xO(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 CO(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 ok=CO(qb);function AO(e,t,r,a,i){return i(e,function(n,s,o){r=a?(a=!1,n):t(r,n,s,o)}),r}function _O(e,t,r){var a=Vt(e)?xO:AO,i=arguments.length<3;return a(e,Bd(t),r,i,ok)}const OO={type:"object",$id:Yw,properties:{__not_really_there__:{type:"number"}}};function Lf(e,t,r,a,i){let n=0;return r&&(Xe(r.properties)?n+=_O(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=Gb(r,a,n);if(Kb(c))return c;const l=o.reduce((m,d,h)=>(Ul(e,r,[OO,d],t,n)===1&&m.push(h),m),[]);if(l.length===1)return l[0];l.length||Lb(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 lk(e){const t=e[mr],r=Yr(e);return Ae(t)&&ba(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function ck(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 TO(e){if(Jw 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 PO(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=PO(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=TO(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"&&ck(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 IO=["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 uk(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"&&!lk(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]=ak(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)&&IO.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=!ck(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 RO(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"&&!lk(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 uk(t,y)}}function NO(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 uk(t,_)}function rh(e,t,r={},a){switch(Yr(t)){case"object":return RO(e,t,r,a);case"array":return NO(e,t,r,a);default:return}}function fk(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 dk(e={}){return"widget"in ke(e)&&ke(e).widget!=="hidden"}function mk(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 jO(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)||mk(e,t,r,a,n)||dk(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[Cd]&&(c=!1),r!=null&&r[Qw]&&(c=!1)}return c}function pk(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 DO(e,t){return pk(e,t,function(r,a){return Bb(e,a)})}var hk=Ib(function(e,t){return e==null?{}:DO(e,t)});function FO(e,t){if(t.length===0&&typeof e!="object")return e;const r=hk(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function MO(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 gk(e){return $i(e)||e===""?!0:Array.isArray(e)?e.length===0:Ae(e)?Object.values(e).every(gk):!1}function LO(e,t){return t?t(e):Zb(e)}function qO(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)&&gk(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=nk(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=LO(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 zr=Symbol("no Value");function yk(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]:zr).filter(a=>a!==zr);return r.length>0?r:void 0}function zO(e,t){const r=yk(e);if(!r||r.some(i=>Je(i,t)))return zr;const a=oe(e,Ha,zr);return a!==zr&&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,zr),y=oe(m,Ha,zr);v!==zr&&v!==f&&(y===f?o[u]=v:oe(d,"readOnly")===!0&&(o[u]=void 0));const b=oe(d,mr,zr),w=oe(m,mr,zr);if(b!==zr&&b!==f&&(o[u]=w===f?b:void 0),Ge(i,u)){const E=zO(d,f);E!==zr&&(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=yk(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 $O(e,t,r="",a,i,n){return aa(e,t,r,a,i,void 0,n)}class UO{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 EO(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 fk(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return jO(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 mk(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 qO(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 $O(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function BO(e,t,r={},a){return new UO(e,t,r,a)}function VO(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 vk(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 vk(t,e).reverse();const o=[];for(let c=n;c<=s;c+=1)o.push({value:c,label:ia(c,2)});return o}function HO(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 WO(e,t){return HO(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 bk(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 kk(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 KO(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=kk(e,t,r);return typeof s>"u"?i:s}function wk(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 GO=1,JO=4;function Bl(e){return Ts(e,GO|JO)}function YO(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:$d(e,t,r,a)}class Sk{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={},YO(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 XO=200;function ZO(e,t,r,a){var i=-1,n=Vd,s=!0,o=e.length,c=[],l=t.length;if(!o)return c;t.length>=XO&&(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 QO=cc(function(e,t){return $s(e)?ZO(e,eo(t,1,$s,!0)):[]});function eT(e,t){if(e==null)return{};var r=Vi(Ld(e),function(a){return[a]});return t=Bd(t),pk(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(eT(e,(s,o)=>!Je(s,oe(t,o)))),n=QO(nn(t),nn(e));return[...i,...n]}function tT(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 rT(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 nT(e,t,r={},a=!0){const i={type:t||"text",...rT(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 Ek(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 aT=0;function xk(e){var t=++aT;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,xk("test-id-")),e.get(r)}})}var _o={exports:{}},ft={};/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-is.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var sh;function iT(){if(sh)return ft;sh=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
|
+
* @license React
|
|
43
|
+
* react-is.development.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var oh;function sT(){return oh||(oh=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 lh;function oT(){return lh||(lh=1,process.env.NODE_ENV==="production"?_o.exports=iT():_o.exports=sT()),_o.exports}var lT=oT();const ch=Pn(lT),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 cT(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&&ch.isForwardRef(W.createElement(t))||ch.isMemo(t))return cT(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 Ck(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 Ak(e){const t=new Set;return JSON.stringify(e,(r,a)=>(t.add(r),a)),JSON.stringify(e,Array.from(t).sort())}function Vr(e){return Ck(Ak(e))}function uT(e){return Ck(Ak(e))}function fT(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 Nr(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 dT(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 mT(e,t,r){return t?r:e}function pT(e){return e?new Date(e).toJSON():void 0}function hT(e,t,r,a=!1){!a&&Array.isArray(r)&&t.default!==void 0&&kk(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=[Zw];return Ge(e,ap)&&a.unshift(ap),oe(e,[...a,t],r)}function gT(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 yT(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 vT({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 bT(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=Wb(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),!dT(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 _k(e){return Vt(e)?Vi(e,va):Js(e)?[e]:Dd(sb(Od(e)))}function kT(e){const t=new Sk;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:_k(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 Ok(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return ya(a)?{...t,[r]:Ok(a)}:{...t,[r]:a}},{})}function wT(e){return Object.values(e).every(t=>t!==-1)}function ST(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:vk(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 ET(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};wT(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(()=>tT(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 xT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function CT(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:xT(o.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},s.readAsDataURL(e)})}async function AT(e){return Promise.all(Array.from(e).map(CT))}function dh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=VO(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function _T(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 AT(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 OT(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 TT(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]=eb+a:t[r]=em(a)}return e}function PT(e){return e.map(t=>em(t))}function em(e){return Array.isArray(e)?PT([...e]):Xe(e)?TT({...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 IT(e,t){var r=Vt(e)?Rd:ok;return r(e,Fb(t))}function RT(e,t){return e==null?!0:Ob(e,t)}function $f(){return xk("rjsf-array-item-")}function mh(e){return Array.isArray(e)?e.map(t=>({key:$f(),item:t})):[]}function Tk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function NT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Pk(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 Ik(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 jT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Hd(t)&&Gw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function DT(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 FT(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 MT(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 LT(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:NT(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 Rk=W.memo(LT);function qT(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(()=>Tk(b),[b]),Y=no(d,t,f,r),Z=Gi(n),ie=W.useMemo(()=>Pk(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=Ik(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(Rk,{...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 zT(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=Pk(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=Ik(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(Rk,{...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 $T(e=[]){const t=W.useMemo(()=>Vr(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=Tk(o),l=Vr(c);return a({formDataHash:l,keyedFormData:o}),c},[]);return{keyedFormData:i,updateKeyedFormData:s}}function UT(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}=$T(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:jT(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(DT,{...g}):dk(r)?j.jsx(FT,{...g}):Hd(g.schema)?j.jsx(zT,{...S}):l.isFilesArray(g.schema,r)?j.jsx(MT,{...g}):j.jsx(qT,{...S})}function BT(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 VT(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 HT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function WT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function KT(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 GT(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(WT(r)),p=ke(s),g=Ji(cn("__internal_type_selector",b,d)),S=v(Le.Type),C=W.useMemo(()=>HT(S),[S]),O=A=>{A!=null&&(E(A),h(KT(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?Vr(r):"__empty__"),schemaField:j.jsx(x,{...e,schema:{type:w,title:v(Le.Value),...w==="object"&&{additionalProperties:!0}}})})}function JT(e,t){return Vi(t,function(r){return e[r]})}function YT(e){return e==null?[]:JT(e,nn(e))}var XT=Math.max;function ZT(e,t,r,a){e=ai(e)?e:YT(e),r=r?Mb(r):0;var i=e.length;return r<0&&(r=XT(i+r,0)),ba(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Vb(e,t,r)>-1}var QT=Math.min;function eP(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=QT(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 tP(e){return $s(e)?e:[]}var ph=cc(function(e){var t=Vi(e,tP);return t.length&&t[0]===e[0]?eP(t):[]});function rP(e,t){return uc(e,t)}function Nk(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 nP=/^\$lookup=(.+)/,hu="layoutGrid";function hh(e,t){return e??t}function aP(e){return/^\d+?$/.test(e)}const da=Gd();function iP(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||Nk(l)&&a===!0)&&(l=!0,Ge(o,Jc)?yt(c,[ca,Jc],!0):yt(c,`ui:${Jc}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function sP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=jf([t]).sort(),i=jf([r]).sort();switch(e){case Is.ALL:return rP(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(aP(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=_b(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 oP(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)&&ZT(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 lP(e,t){let r=e;return ba(r)&&(r=Zd(t,r)),Ys(r)?r:null}function cP(e,t){let r,a=null,i={},n;if(ba(t)||Nk(t))r=t??"";else{const{name:s="",render:o,...c}=t;r=s,i=c,Rt(i)||IT(i,(l,u)=>{if(ba(l)){const f=nP.exec(l);if(Array.isArray(f)&&f.length>1){const m=f[1];i[u]=Zd(e,m,m)}}}),a=lP(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-${Vr(c)}`,schema:o,layoutGridSchema:c}))}function uP(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 sP(o,u,l)?j.jsx(yc,{...r,childrenLayoutGridSchemaId:n}):null}function fP(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 dP(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-${Vr(l)}`))}function mP(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 pP(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=cP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:p,isRequired:g,isReadonly:S,optionsInfo:C,fieldPathId:O}=oP(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}=iP(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(mP,{...e,layoutGridSchema:r});if(Cn.COLUMN in r)return j.jsx(fP,{...e,layoutGridSchema:r});if(Cn.COLUMNS in r)return j.jsx(dP,{...e,layoutGridSchema:r});if(Cn.CONDITION in r)return j.jsx(uP,{...e,layoutGridSchema:r})}return j.jsx(pP,{...e,gridSchema:r})}tm.TEST_IDS=da;function hP(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 gP(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=Vr(m),A=Vr(c),N=f?Vr(f):"",I=i?Vr(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=Vr(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 yP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return W.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const vP=/\.([0-9]*0)*$/,bP=/[0.]0*$/;function kP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,s]=W.useState(i),{StringField:o}=t.fields,c=Jv(),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"&&vP.exec(b)?np(b.replace(bP,"")):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 wP(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,Hr=61,Bt=92,Nt=42,_t=95,mt=60,jk=64,un=93,pr=33,vc=38,ar=58,Bf=70,Ya=102,Vl=104,Ba=119,Ri=116,Vf=112,Dk=115,SP=160,EP=12,xP=44,Hl=59,Yi=63,Wr=46,Pt=47,Xa=39,Za=34,Sa=43,Ut=124,Qa=123,rm=125,an=40,ln=41,CP=78,AP=110,_P=79,OP=111,Fk=120,Mk=88,Hf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,vt=122,bc=128,rn=32,TP={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=TP;function PP(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]!==`
|
|
51
|
+
`)return null;t++;let r=!1;for(;t<e.length;){let a=t;for(;t<e.length&&e[t]!==`
|
|
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++,kh(e,"---",a))return{endPos:t,hasValidYaml:r};if(!r){let n=$P(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===Wr);)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 IP=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,RP={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"},NP={};function Lk(e){if(!e)return NP;var t={};for(var r in e){var a=r.toLowerCase(),i=RP[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 jP=/(\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(IP,(t,r)=>{var a=wP(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 bh=/(javascript|vbscript|data(?!:image)):/i;function $n(e){if(bh.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(bh.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 kh(e,t,r){return e.startsWith(t,r)}var wh=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(wh.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),wh.has(t)):!1}var Ua=1,Sh=2,Ai=4,Eh=8,DP=16,en=32,Qn=64,FP=(()=>{var e=new Uint8Array(128),t;for(e[de]=Ua,e[ye]=Ua|Sh,e[EP]=Ua,e[wa]=Ua|Sh,e[ce]=Ua,t=pr;t<=Pt;t++)e[t]=Ai;for(t=ar;t<=jk;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]=DP;for(t=Te;t<=Ne;t++)e[t]=Eh;for(t=lt;t<=vt;t++)e[t]=Eh;return e})(),MP=/[\p{P}\p{S}]/u,LP=new RegExp("\\p{Zs}","u"),ja=[];function qP(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 zP(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function $P(e,t,r){let a=r??e.length;for(;t<a&&(e[t]===" "||e[t]===" ");)t++;return t}function qk(e){if(!e)return!1;for(var t in e)return!0;return!1}function UP(e){return{attrs:{},children:[{type:se.text,text:e}],c:!0,type:se.htmlBlock,tag:"header"}}var BP=/^\n+/;function VP(e){for(var t=e.length;t>0&&(e[t-1]===`
|
|
55
|
+
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(BP,"")}
|
|
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 zk(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&&zk(e[t].children)}}function HP(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 WP(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 xh(e,t,r,a){var i;return t===void 0?i=WP(r):i=t.length>0&&t.charCodeAt(0)>ce?` ${t}`:t,`<${e}${i}${a}`}function Ch(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:xh(t,i,e.attrs," />")}}var o=xh(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 KP(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 GP(e,t,r,a){var i=t(e,r,a);return i===null?null:YP(i)}function JP(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 YP(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 XP(...e){return e.filter(Boolean).join(" ")}var ZP=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Wl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Ah(e){return ZP.has(e.toLowerCase())}function QP(e){return Wl.lastIndex=0,Wl.test(e)}function _h(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 eI=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,tI=/^<[A-Z]/,Kf=["script","pre","style","textarea"],io=new Set(Kf),rI=/<(?:pre|script|style|textarea)\b/i,Oh=/<(?: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,Th=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,$k=new Uint8Array(128);(()=>{for(var e=[it,Nt,_t,qt,Hr,It,pr,mt,Bt,vc,ye,Vl,Ba,Ya],t=0;t<e.length;t++)$k[e[t]]=1})();var Ph=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function nI(e){return io.has(e)}function aI(e){return rI.test(e)}function Uk(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 iI=/[\u0000-\u001F\u007F]/g,sI={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},oI=/&#(x[0-9a-f]+|[0-9]+);?/gi;function lI(e){return e.indexOf("&#")===-1?e:e.replace(oI,(t,r)=>{var a=r.charCodeAt(0)===Fk||r.charCodeAt(0)===Mk?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return a>0&&a<=1114111?String.fromCodePoint(a):t})}function cI(e,t,r){if(r&&t.charCodeAt(0)===Qa)return!1;var a=e.charCodeAt(0),i=e.charCodeAt(1);if((a===OP||a===_P)&&(i===AP||i===CP))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(sI[n]===1){var s=lI(ma(t));if($n(s)===null)return!0;var o=s.replace(iI,"");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 Ih(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?Ih(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?Ih(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===Wr||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)===Hr){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===Hr||A===mt||A===it)break;r++}if(r===O)return null;g=e.slice(O,r),S=r}}else g="",S=p;cI(E,g,l)?(v===null&&(v=[]),v.push(y,S)):h[E]=g}return null}function Ir(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 uI(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=Bk(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 Bk(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
|
+
`,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
|
+
`,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(FP);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 Rh(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===SP?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 Nh(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 fI(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 dI(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 mI(e,t,r){var a=e.charCodeAt(t);if(a!==Hr&&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 jh=0,Dh=0,Fh="";function pI(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){Ph.lastIndex=0;for(var k;(k=Ph.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===jh&&o===Dh?w=Fh:(w=String.fromCharCode(s).repeat(o),jh=s,Dh=o,Fh=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 Mh(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 hI(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=`${Mh(e,i,m)}
|
|
64
|
+
`,s=He(e,m);s<e.length;){var o=st(e,s);if(dr(e,s,o)){n+=`${Mh(e,s,o)}
|
|
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 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)!==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
|
+
`;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)===Wr||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 Vk(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===Wr||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=Vk(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 Lh(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 qh(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=Vk(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
|
+
`}else l=`${e.slice(n.contentStart,i)}
|
|
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=Lh(e,o,g,c);if(Oi>0||O<g){for(var _="",x=0;x<Oi;x++)_+=" ";l+=`${_+e.slice(O,g)}
|
|
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=Lh(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
|
+
`}else l+=`${e.slice(P,g)}
|
|
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
|
+
`,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 Dr=nt[1];(Dr===" "||Dr==="x"||Dr==="X")&&nt.charCodeAt(2)===un&&(Ht={type:se.gfmTask,completed:Dr==="x"||Dr==="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 Fr=r.inList;r.inList=!0;var Mr=r.i;if(r.i=Mr||wt!==s.length-1,xt=ha(nt,r,a),r.i=Mr,r.inList=Fr,xt.length===1&&xt[0].type===se.paragraph)xt=xt[0].children;else if(r.p){var Ar=[];r.p.push({src:xt,dest:Ar,unwrap:!0}),xt=Ar}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 yI(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 Hk(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=vI(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=Ir(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=Ir($)}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=Ir(P));for(var D=v.slice(O);D.length>0&&D.charCodeAt(D.length-1)===ye;)D=D.slice(0,-1);N=Ir(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=Nh(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?Ir(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===Dk||Ht===Ri)&&(Oh.lastIndex=bt,Oh.test(e))){De=!0;break}}bt++}}if(tt&&!Ke&&!De){var Dr=st(e,ne);R=Dr,B=He(e,Dr),H=e.slice(n,R),M=e.slice(n,R),G=we-n,te=ne-n,ae=!0}}}}var xt=V.b.indexOf(`
|
|
78
|
+
`)!==-1||V.g.indexOf(`
|
|
79
|
+
`)!==-1,pn=!1;if(G!==-1){var Gn=H.slice(te).trim();pn=Gn.length===0}var Fr=!1,Mr=R,Ar=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&&(Fr=!0,Mr=Dt,Ar=Dt,pn=!0)}}if(!Fr){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&&(Fr=!0,Mr=Ft,Ar=Nn,pn=!0)}}}if(!Fr&&r.inHTML){Fr=!0,Mr=Ft,Ar=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 Lr=sr.trim();if(Lr){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(Lr,!1,r,a);else{var mo=sr.indexOf(`
|
|
80
|
+
|
|
81
|
+
`)!==-1,ts=yu.test(Lr),Oa=Th.test(Lr),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:Lr}]:po||Oa?(r.inline=!1,gn=ha(sr,r,a)):(r.inline=!0,gn=ji(Lr,!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
|
+
|
|
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&&Fr){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))):Fr?vr=e.slice(n,Mr):xt?vr=M:(or=H.slice(V.end-n),or.charCodeAt(0)===ye&&(or=or.slice(1)));var ns=vr!==void 0,oi=Ir(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:Ar}}var li=Ir(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:Ar}}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=Ir(Pa)))}else bo=Ir(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
|
+
|
|
85
|
+
`)!==-1,ge=yu.test(X),Ee=Th.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 _r=st(e,Qr),rr=e.slice(Qr,_r).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:Ir(Gt),text:ui?L:Gt,c:!0,a:!1},end:kr}}var is=Nh(e,Wt.end),X0=is<e.length?He(e,is):is,Nc=e.slice(Wt.end,is);if(Nc.trim()){var{inline:Z0,inHTML:Q0,d:e1}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,Fn=ha(Nc,r,a),r.inline=Z0,r.inHTML=Q0,r.d=e1}var t1=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:Ir(t1),text:Nc,c:!0,a:!1},end:X0}}function vI(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 zh(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 $h(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(!Uk(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=zh(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(zh(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 bI(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=kI(e,i,r);return n||null}r.refs||(r.refs={});var s=Bk(e,i,r.refs);return s===null?null:{node:{type:se.refCollection},end:s}}function kI(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
|
+
`,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
|
+
${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 wI(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===Hr||F===Me){let $=i+Qe;for(;$<N&&e.charCodeAt($)===F;)$++;for(;$<N&&(e.charCodeAt($)===ce||e.charCodeAt($)===de);)$++;if($>=N){n=F===Hr?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&&Hk(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)===Wr||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(Uk(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 SI(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 EI(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 xI(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 CI(e,t,r,a,i){if(e.charCodeAt(t)!==Hr||t+1>=r||e.charCodeAt(t+1)!==Hr)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===Hr&&e.charCodeAt(n+1)===Hr&&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):MP.test(t[r])}function Bh(e,t,r){return e<bc?!!(am(e)&Ua):LP.test(t[r])}function AI(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 _I(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,$r=0;function OI(){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===$r&&s>=Hh)return null;var o=Il===$r?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=$r,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=Wk(e,l,r);if(k){l=k.end;continue}var v=EI(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=$r),o!==null&&(o[y]=l+1)}l++}if(f>0){if(o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=$r),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===$r?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=$r),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 Wk(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 TI(e,t,r,a){if(e.charCodeAt(t)!==It||t+1>=r||e.charCodeAt(t+1)!==Kn||ed===$r&&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=$r,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 PI(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)===Dk&&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)===Wr&&(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===Wr||g===xP||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)===Wr)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 II(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===Wr||s===pr||s===Xr||s===36||s===Uf||s===vc||s===Xa||s===Nt||s===Sa||s===Pt||s===Hr||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)!==jk)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===Wr){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)===Wr){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=fI(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 RI(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)===Fk||e.charCodeAt(a)===Mk);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 NI(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=yI(e,`</${w}`,g),C=e.slice(y.end,S);if(p){var O=Ir(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
|
+
|
|
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:Ir(C),c:!1,a:!1},end:g}}var jI=200,As=0;function An(e,t,r,a,i){if(As++,As>jI)return As--,[{type:se.text,text:e.slice(t,r)}];var n=$r;$r=OI();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=SI(e,t,r),!ne){var q=Ea(e,t,r,it);t+=q-1}}else if(re===Nt||re===_t){var z=AI(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=xI(e,t,r,s,i);else if(re===Hr)ne=CI(e,t,r,s,i);else if(re===It)t+1<r&&e.charCodeAt(t+1)===Kn&&(ne=TI(e,t,r)),ne||(ne=Kh(e,t,r,s,i));else if(re===pr&&t+1<r&&e.charCodeAt(t+1)===It)ne=Kh(e,t,r,s,i);else if(re===mt)ne=Wk(e,t,r),!(ne||i.disableParsingRawHTML||i.ignoreHTMLBlocks)&&(ne=NI(e,t,r,s,i));else if(re===vc){var te=RI(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=PI(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=II(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&&!$k[ee])t++;else break}}}return(J||r>K)&&(B.push(Da(J+e.slice(K,r))),J=""),V.length>0&&_I(B,V),$r=n,As--,B}var DI=500;function ha(e,t,r){var a=t.o||0;if(a>DI)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&&mI(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)===Wr||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=PP(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
|
+
`,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=hI(e,he);else if(!ee){let tt=he+Qe,De=e.charCodeAt(tt);De===Xr?pe=dI(e,he,t,r):De===Ue?pe=gI(e,he,t,r):De===it||De===qt?pe=pI(e,he):De===Me||De===Nt||De===_t?(pe=pa(e,he),!pe&&(pe=qh(e,he,t,r))):De===Sa||De>=ze&&De<=$e?pe=qh(e,he,t,r):De===mt?pe=Hk(e,he,t,r):De===Ut?pe=$h(e,he,t,r):De===It&&(pe=bI(e,he,t))}if(!pe){for(var re=!1,ne=he;ne<be;ne++)if(e.charCodeAt(ne)===Ut){re=!0;break}re&&(pe=$h(e,he,t,r))}if(pe||(pe=wI(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 FI(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
|
+
`)||i.b.includes(`
|
|
98
|
+
`),endPos:i.end}:null}function sm(e,t,r){As=0,e=qP(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=uI(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 qk(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 qr(e,t){var r={key:e};if(t){var a=Lk(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(UP(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?Lk(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},...KP(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=nI(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=qr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,qr(r.key,e.attrs),$)}let O=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(C&&!O.test(E)&&Ei(o)&&QP(E))return c(e.tag,qr(r.key,e.attrs),t(S,r));if(aI(E)){let F=Ei(o)?_h(E):E;var m=qr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},c(e.tag,m)}let _=nm({slugify:o.slugify,sanitizer:i,tagfilter:!0}),x=zP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(x))return y.children&&y.children.length>0?c(e.tag,qr(r.key,e.attrs),t(y.children,r)):c(e.tag,qr(r.key,e.attrs));let A=sm(x,{inline:!1,refs:s,inHTML:!1},_);zk(A);let N=y.tag.toLowerCase(),I=w;if(I&&C)return c(e.tag,qr(r.key,e.attrs),t(S,r));if(I)return t(A.flatMap(_i),r);var d=HP(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,qr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,qr(r.key,e.attrs),t(A.flatMap(_i),r))}return ao(e.tag)?c(e.tag,qr(r.key,e.attrs)):c(e.tag,qr(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,qr(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=GP(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 MI=(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},LI=(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 qI(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||ei,i=r.sanitizer||$n,n=r.createElement,s=qk(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&&(eI.test(p)||tI.test(p)||FI(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=LI(w,r.overrides),g={...g,...C,className:XP(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=MI(r.renderRule,l,i,a,m,r,u),h=d(e,{inline:r.forceInline,refs:m}),k=JP(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||jP.test(n)),o=nm(r,s),c=s?n:VP(n),l=sm(c,{inline:s,refs:i},o);return qI(l,{...r,forceInline:s})}let i={};return a(e)}function zI(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=zI(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 Kk=Symbol("remove-this-key"),Yh=Symbol("reset");function $I(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function UI(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 Gk(e){return!!(e!=null&&e[la])}function Xh(e){return Object.keys(e).filter(t=>Gk(e[t]))}function BI(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 VI=W.memo(BI);function HI(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??UI(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(Kk,[...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=gT([...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=Gk((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=ke(J).widget==="hidden";return{content:j.jsx(VI,{propertyName:V,required:$I(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 WI(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 KI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function GI(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=KI[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 JI(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=yT(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=GI(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 YI=W.memo(JI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?zf(e,t):Je(e,t)});function XI(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&&fT(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 ZI(){return{AnyOfField:vh,ArrayField:UT,BooleanField:BT,CyclicSchemaField:VT,FallbackField:GT,LayoutGridField:tm,LayoutHeaderField:hP,LayoutMultiSchemaField:gP,NumberField:kP,ObjectField:HI,OneOfField:vh,OptionalDataControlsField:WI,SchemaField:YI,StringField:XI,NullField:yP}}function QI(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 eR(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:Nr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),(i||a)&&j.jsx(k,{id:Nr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:m}),r&&j.jsx(h,{id:Nr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(y,{id:Nr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:m})]})}function tR(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 rR(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:Nr(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function nR(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 aR(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 iR(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,...nT(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(aR,{id:t,schema:d})]})}function sR(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(sR);function oR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.CopyButton),...e,icon:"copy"})}const lR=W.memo(oR);function cR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveDownButton),...e,icon:"arrow-down"})}const uR=W.memo(cR);function fR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveUpButton),...e,icon:"arrow-up"})}const dR=W.memo(fR);function mR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.RemoveButton),...e,iconType:"danger",icon:"remove"})}const pR=W.memo(mR);function hR({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 gR=W.memo(hR);function yR({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 vR({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Ek(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function bR(){return{SubmitButton:vR,AddButton:yR,CopyButton:lR,MoveDownButton:uR,MoveUpButton:dR,RemoveButton:pR,ClearButton:gR}}function kR(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 Jk=Gd();function Yk({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":Jk.markdown,children:e}):e}Yk.TEST_IDS=Jk;function wR(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(Yk,{description:r,registry:a,uiSchema:i})}):null}function SR({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 ER(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 xR(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 Xk=Gd();function Zk({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":Xk.markdown,children:e}):e}Zk.TEST_IDS=Xk;function CR(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(Zk,{help:r,registry:i,uiSchema:a})}):null}const AR="*";function Qk(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:AR})]}):null}function _R(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(Qk,{label:r,required:c,id:t}),l&&s?s:null,a,i,n]})}function OR(e){const{children:t,column:r,className:a,...i}=e;return j.jsx("div",{className:a,...i,children:t})}function TR(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 PR(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),tb(m,h,i)&&j.jsx(E,{id:Nr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:a||l,uiSchema:h,registry:u})]})}function IR(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 RR="*";function NR(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:RR}),i&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function jR(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 DR(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(Qk,{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:Nr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function FR(){return{ArrayFieldDescriptionTemplate:QI,ArrayFieldItemTemplate:tR,ArrayFieldItemButtonsTemplate:eR,ArrayFieldTemplate:rR,ArrayFieldTitleTemplate:nR,ButtonTemplates:bR(),BaseInputTemplate:iR,CyclicSchemaExpandTemplate:kR,DescriptionFieldTemplate:wR,ErrorListTemplate:SR,FallbackFieldTemplate:ER,FieldTemplate:_R,FieldErrorTemplate:xR,FieldHelpTemplate:CR,GridTemplate:OR,MultiSchemaFieldTemplate:TR,ObjectFieldTemplate:PR,OptionalDataControlsTemplate:IR,TitleFieldTemplate:NR,UnsupportedFieldTemplate:jR,WrapIfAdditionalTemplate:DR}}function MR({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function LR(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}=ET(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(ST,{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 qR({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(wk(w,k,f)):s(bk(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 zR({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)}),mT(j.jsx("span",{children:o}),c)]})]})}function $R(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 UR(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:OT(r),onChange:s=>t(pT(s))})}function BR(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 VR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"email",...e})}function HR({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 WR({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(HR,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},c)})})}function KR(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}=_T(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(WR,{filesInfo:l,onRemove:f,registry:c,preview:o.filePreview,options:o})]})}function GR({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function JR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"password",...e})}function YR({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 XR(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 ZR({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 QR({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=KO(a,v,o,E,w),O=!o&&e.default===void 0;return hT(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(vT,{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 eN({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 tN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{...e})}function rN(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 nN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"number",...e})}function aN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"url",...e})}function iN(){return{AltDateWidget:LR,AltDateTimeWidget:MR,CheckboxWidget:zR,CheckboxesWidget:qR,ColorWidget:$R,DateWidget:BR,DateTimeWidget:UR,EmailWidget:VR,FileWidget:KR,HiddenWidget:GR,PasswordWidget:JR,RadioWidget:YR,RangeWidget:XR,RatingWidget:ZR,SelectWidget:QR,TextWidget:tN,TextareaWidget:eN,TimeWidget:rN,UpDownWidget:nN,URLWidget:aN}}function sN(){return{fields:ZI(),templates:FR(),widgets:iN(),rootSchema:{},formContext:{},translateString:WO,globalFormOptions:{idPrefix:Xv,idSeparator:Zv,useFallbackUiForUnsupportedType:!1}}}function hi(e,t){return{...hk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let oN=class $a extends W.Component{constructor(r){super(r);lr(this,"formElement");lr(this,"pendingChanges",[]);lr(this,"isProcessingUserChange",!1);lr(this,"getUsedFormData",(r,a)=>FO(r,a));lr(this,"getFieldNames",(r,a)=>MO(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=BO(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?Vr({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=Vr({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 bT(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===Kk)RT(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 Sk),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=Zv,idPrefix:s=Xv,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}=sN();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[eS]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,s=_k(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 lN(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 cN(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 lN(i,r)}function uN(e,t,r,a,i,n,s,o){const{validationError:c}=t;let l=cN(t.errors,s,o,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,s));let u=kT(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=fk(e,a,r,a,!0),m=i(f,Tf(f),s,u),d=Ok(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 fN(){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 e0(){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 t0(){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=e0(),t=t0(),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
|
+
|| (${C} == "string" && ${g} && ${g} == +${g})`).assign(O,(0,a._)`+${g}`);return;case"integer":p.elseIf((0,a._)`${C} === "boolean" || ${g} === null
|
|
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 dN(){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 mN(){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 pN(){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 r0(){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 hN(){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=r0(),r=hN(),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=fN(),t=Xl(),r=t0(),a=Xl(),i=dN(),n=mN(),s=pN(),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 Tr={},bg;function lm(){if(bg)return Tr;bg=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.resolveSchema=Tr.getCompilingSchema=Tr.resolveRef=Tr.compileSchema=Tr.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={}}}Tr.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)}}Tr.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)}Tr.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}Tr.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)}}Tr.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:y,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const 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 Tr}const gN="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",yN="Meta-schema for $data reference (JSON AnySchema extension proposal)",vN="object",bN=["$data"],kN={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},wN=!1,SN={$id:gN,description:yN,type:vN,required:bN,properties:kN,additionalProperties:wN};var Fo={},ms={exports:{}},Tu,kg;function n0(){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 EN(){if(wg)return Pu;wg=1;const{isUUID:e}=n0(),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 xN(){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}=n0(),{SCHEMES:l,getSchemeHandler:u}=EN();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 CN(){if(Eg)return Fo;Eg=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=xN();return e.code='require("ajv/dist/runtime/uri").default',Fo.default=e,Fo}var xg;function AN(){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=e0(),s=lm(),o=Be(),c=wc(),l=Xl(),u=et(),f=SN,m=CN(),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 _N(){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 ON(){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 TN(){if(_g)return Lo;_g=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e=_N(),t=ON(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Lo.default=r,Lo}var zo={},$o={},Og;function PN(){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 IN(){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 RN(){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 NN(){if(Ig)return Bo;Ig=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Be(),t=et(),r=RN(),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 jN(){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 DN(){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 FN(){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 MN(){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=r0();return e.code='require("ajv/dist/runtime/equal").default',Yo.default=e,Yo}var Mg;function LN(){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 qN(){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 zN(){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 $N(){if(zg)return zo;zg=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=PN(),t=IN(),r=NN(),a=jN(),i=DN(),n=FN(),s=MN(),o=LN(),c=qN(),l=zN(),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 a0(){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 i0(){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 UN(){if(Bg)return el;Bg=1,Object.defineProperty(el,"__esModule",{value:!0});const e=i0(),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 BN(){if(Vg)return tl;Vg=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Be(),t=et(),r=mn(),a=a0(),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 VN(){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 HN(){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},
|
|
103
|
+
missingProperty: ${f},
|
|
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 WN(){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 s0(){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 KN(){if(Jg)return il;Jg=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Sc(),t=mn(),r=et(),a=s0(),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 GN(){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 JN(){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 YN(){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 XN(){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 ZN(){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 QN(){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 ej(){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 tj(){if(ny)return Qo;ny=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=a0(),t=UN(),r=i0(),a=BN(),i=VN(),n=HN(),s=WN(),o=s0(),c=KN(),l=GN(),u=JN(),f=YN(),m=XN(),d=ZN(),h=QN(),k=ej();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 rj(){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 nj(){if(iy)return ml;iy=1,Object.defineProperty(ml,"__esModule",{value:!0});const t=[rj().default];return ml.default=t,ml}var La={},sy;function aj(){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 ij(){if(oy)return Mo;oy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=TN(),t=$N(),r=tj(),a=nj(),i=aj(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Mo.default=n,Mo}var hl={},ps={},ly;function sj(){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 oj(){if(cy)return hl;cy=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Be(),t=sj(),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 lj="http://json-schema.org/draft-07/schema#",cj="http://json-schema.org/draft-07/schema#",uj="Core schema meta-schema",fj={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:[]}},dj=["object","boolean"],mj={$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:"#"}},pj={$schema:lj,$id:cj,title:uj,definitions:fj,type:dj,properties:mj,default:!0};var uy;function o0(){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=AN(),a=ij(),i=oj(),n=pj,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 hj=o0();const gj=Pn(hj);var gl={exports:{}},Ru={},fy;function yj(){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 vj(){return dy||(dy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=o0(),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 bj(){return my||(my=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=yj(),a=vj(),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 kj=bj();const py=Pn(kj),wj={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Sj=/^(#?([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*\)))$/,Ej=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function xj(e,t,r={},a,i=gj,n){let s=new i({...wj,...r});return a?py(s,a):a!==!1&&py(s),s.addFormat("data-url",Ej),s.addFormat("color",Sj),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 Cj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=xj(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 uN(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:eb;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:uT(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 Cj(e,t)}Rl();var ju,hy;function Aj(){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 _j(){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 Oj(){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 Tj(){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 Pj(){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 Ij(){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 Rj(){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 Nj(){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 jj(){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 Dj(){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 Fj(){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 Mj(){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 Lj(){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 qj(){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 zj(){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 $j(){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 Uj(){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 Bj(){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 Vj(){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 Hj(){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 Wj(){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 Kj(){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 Gj(){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 Jj(){return Ly||(Ly=1,nf={en:Aj(),ar:_j(),ca:Oj(),cs:Tj(),de:Pj(),es:Ij(),fi:Rj(),fr:Nj(),hu:jj(),id:Dj(),it:Fj(),ja:Mj(),ko:Lj(),nb:qj(),nl:zj(),pl:$j(),"pt-BR":Uj(),ru:Bj(),sk:Vj(),sv:Hj(),th:Wj(),zh:Kj(),"zh-TW":Gj()}),nf}var Yj=Jj();const hs=Pn(Yj),yl={flex:1,paddingLeft:6,paddingRight:6};function Xj(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:Nr(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:Nr(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:Nr(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:Nr(s,"remove"),className:"rjsf-array-item-remove",style:yl,disabled:t||f,onClick:c,uiSchema:d,registry:m})})]})}function Zj(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 Qj(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:Nr(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},eD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),tD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),rD=()=>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"})]}),l0=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M3.5 8h9"})}),nD=()=>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 aD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.CopyButton),...e,icon:j.jsx(rD,{})})}function iD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveUpButton),...e,icon:j.jsx(eD,{})})}function sD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveDownButton),...e,icon:j.jsx(tD,{})})}function oD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.RemoveButton),...e,variant:"danger",icon:j.jsx(l0,{})})}function lD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.ClearButton),...e,icon:j.jsx(l0,{})})}function cD({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(nD,{})})}function uD({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=Ek(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const fD={SubmitButton:uD,AddButton:cD,CopyButton:aD,MoveDownButton:sD,MoveUpButton:iD,RemoveButton:oD,ClearButton:lD};function dD(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const mD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hD={};function qy(e,t){return(hD.jsx?pD:mD).test(e)}const gD=/[ \t\n\f\r]/g;function yD(e){return typeof e=="object"?e.type==="text"?zy(e.value):!1:zy(e)}function zy(e){return e.replace(gD,"")===""}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 c0(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 Cr{constructor(t,r){this.attribute=r,this.property=t}}Cr.prototype.attribute="";Cr.prototype.booleanish=!1;Cr.prototype.boolean=!1;Cr.prototype.commaOrSpaceSeparated=!1;Cr.prototype.commaSeparated=!1;Cr.prototype.defined=!1;Cr.prototype.mustUseProperty=!1;Cr.prototype.number=!1;Cr.prototype.overloadedBoolean=!1;Cr.prototype.property="";Cr.prototype.spaceSeparated=!1;Cr.prototype.space=void 0;let vD=0;const Pe=si(),Lt=si(),od=si(),ue=si(),kt=si(),Va=si(),Pr=si();function si(){return 2**++vD}const ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Lt,commaOrSpaceSeparated:Pr,commaSeparated:Va,number:ue,overloadedBoolean:od,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),af=Object.keys(ld);class um extends Cr{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 u0=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 f0(e,t){return t in e?e[t]:t}function d0(e,t){return f0(e,t.toLowerCase())}const bD=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:d0}),kD=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:Pr,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1: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:Pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pr,rev:Pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pr,requiredFeatures:Pr,requiredFonts:Pr,requiredFormats:Pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pr,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:f0}),m0=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()}}),p0=Zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d0}),h0=Zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),wD={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"},SD=/[A-Z]/g,Uy=/-[a-z]/g,ED=/^data[-\w.:]+$/i;function xD(e,t){const r=sd(t);let a=t,i=Cr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ED.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Uy,AD);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Uy.test(n)){let s=n.replace(SD,CD);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=um}return new i(a,t)}function CD(e){return"-"+e.toLowerCase()}function AD(e){return e.charAt(1).toUpperCase()}const _D=c0([u0,bD,m0,p0,h0],"html"),fm=c0([u0,kD,m0,p0,h0],"svg");function OD(e){return e.join(" ").trim()}var vi={},sf,By;function TD(){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 PD(){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(TD());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 ID(){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 RD(){if(Wy)return ys;Wy=1;var e=ys&&ys.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(PD()),r=ID();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 ND=RD();const jD=Pn(ND),g0=y0("end"),dm=y0("start");function y0(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 DD(e){const t=dm(e),r=g0(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,FD=new Map,MD=/[A-Z]/g,LD=new Set(["table","tbody","thead","tfoot","tr"]),qD=new Set(["td","th"]),v0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zD(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=GD(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=KD(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:_D,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=b0(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function b0(e,t,r){if(t.type==="element")return $D(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return UD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VD(e,t,r);if(t.type==="mdxjsEsm")return BD(e,t);if(t.type==="root")return HD(e,t,r);if(t.type==="text")return WD(e,t)}function $D(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=w0(e,t.tagName,!1),s=JD(e,t);let o=hm(e,t);return LD.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!yD(c):!0})),k0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function UD(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 BD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ws(e,t.position)}function VD(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:w0(e,t.name,!0),s=YD(e,t),o=hm(e,t);return k0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function HD(e,t,r){const a={};return pm(a,hm(e,t)),e.create(t,e.Fragment,a,r)}function WD(e,t){return t.value}function k0(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 KD(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 GD(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 JD(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&mm.call(t.properties,i)){const n=XD(e,i,t.properties[i]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&qD.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 YD(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:FD;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=b0(e,n,s);o!==void 0&&r.push(o)}return r}function XD(e,t,r){const a=xD(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?dD(r):OD(r)),a.property==="style"){let i=typeof r=="object"?r:ZD(e,String(r));return e.stylePropertyNameCase==="css"&&(i=QD(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?wD[a.property]||a.property:a.attribute,r]}}function ZD(e,t){try{return jD(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=v0+"#cannot-parse-style-attribute",i}}function w0(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=v0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function QD(e){const t={};let r;for(r in e)mm.call(e,r)&&(t[eF(r)]=e[r]);return t}function eF(e){let t=e.replace(MD,tF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function tF(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"]},rF={};function nF(e,t){const r=rF,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return S0(e,a,i)}function S0(e,t,r){if(aF(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]=S0(e[i],t,r);return a.join("")}function aF(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 Br(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const Xy={}.hasOwnProperty;function iF(e){const t={};let r=-1;for(;++r<e.length;)sF(t,e[r]);return t}function sF(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];oF(i[s],Array.isArray(o)?o:o?[o]:[])}}}function oF(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 E0(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]/),jr=_a(/[\dA-Za-z]/),lF=_a(/[#-'*+\--9=?A-Z^-~]/);function ud(e){return e!==null&&(e<32||e===127)}const fd=_a(/\d/),cF=_a(/[\dA-Fa-f]/),uF=_a(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function xr(e){return e!==null&&(e<0||e===32)}function ot(e){return e===-2||e===-1||e===32}const fF=_a(new RegExp("\\p{P}|\\p{S}","u")),dF=_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&&jr(e.charCodeAt(r+1))&&jr(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 mF={tokenize:pF};function pF(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 hF={tokenize:gF},Zy={tokenize:yF};function gF(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 yF(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||xr(e)||dF(e))return 1;if(fF(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:vF,tokenize:bF};function vF(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=Br(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Br(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",n,t]]),l=Br(l,ym(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Br(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=Br(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 bF(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 kF={name:"autolink",tokenize:wF};function wF(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||jr(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||jr(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):lF(d)?(e.consume(d),l):r(d)}function u(d){return jr(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||jr(d))&&a++<63){const h=d===45?m:f;return e.consume(d),h}return r(d)}}const xc={partial:!0,tokenize:SF};function SF(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 x0={continuation:{tokenize:xF},exit:CF,name:"blockQuote",tokenize:EF};function EF(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 xF(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(x0,t,r)(s)}}function CF(e){e.exit("blockQuote")}const C0={name:"characterEscape",tokenize:AF};function AF(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 uF(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const A0={name:"characterReference",tokenize:_F};function _F(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=jr,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=cF,u):(e.enter("characterReferenceValue"),n=7,s=fd,u(f))}function u(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return s===jr&&!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:TF},rv={concrete:!0,name:"codeFenced",tokenize:OF};function OF(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 TF(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:IF},PF={partial:!0,tokenize:RF};function IF(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(PF,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 RF(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 NF={name:"codeText",previous:DF,resolve:jF,tokenize:FF};function jF(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 DF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function FF(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 MF{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 _0(e){const t={};let r=-1,a,i,n,s,o,c,l;const u=new MF(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,LF(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 LF(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 qF={resolve:$F,tokenize:UF},zF={partial:!0,tokenize:BF};function $F(e){return _0(e),e}function UF(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(zF,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 BF(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 O0(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||xr(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 T0(e,t,r,a,i,n){const s=this;let o=0,c;return l;function l(d){return e.enter(a),e.enter(i),e.consume(d),e.exit(i),e.enter(n),u}function u(d){return o>999||d===null||d===91||d===93&&!c||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):Oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Oe(d)||o++>999?(e.exit("chunkString"),u(d)):(e.consume(d),c||(c=!ot(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function P0(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 VF={name:"definition",tokenize:WF},HF={partial:!0,tokenize:KF};function WF(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return T0.call(a,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=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 xr(d)?Ns(e,l)(d):l(d)}function l(d){return O0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(HF,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 KF(e,t,r){return a;function a(o){return xr(o)?Ns(e,i)(o):r(o)}function i(o){return P0(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 GF={name:"hardBreakEscape",tokenize:JF};function JF(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 YF={name:"headingAtx",resolve:XF,tokenize:ZF};function XF(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 ZF(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||xr(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||xr(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),l)}}const QF=["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"],eM={concrete:!0,name:"htmlFlow",resolveTo:nM,tokenize:aM},tM={partial:!0,tokenize:sM},rM={partial:!0,tokenize:iM};function nM(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 aM(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||xr(T)){const R=T===47,M=s.toLowerCase();return!R&&!n&&nv.includes(M)?(i=1,a.interrupt?t(T):A(T)):QF.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||jr(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||jr(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||xr(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(tM,U,N)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),N(T)):(e.consume(T),A)}function N(T){return e.check(rM,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 iM(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 sM(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(xc,t,r)}}const oM={name:"htmlText",tokenize:lM};function lM(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||jr(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||jr(P)?(e.consume(P),C):P===47||P===62||xr(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||jr(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||xr(P)?O(P):(e.consume(P),I)}function F(P){return P===47||P===62||xr(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:dM,resolveTo:mM,tokenize:pM},cM={tokenize:hM},uM={tokenize:gM},fM={tokenize:yM};function dM(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 mM(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=Br(o,e.slice(n+1,n+a+3)),o=Br(o,[["enter",u,t]]),o=Br(o,ym(t.parser.constructs.insideSpan.null,e.slice(n+a+4,s-3),t)),o=Br(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=Br(o,e.slice(s+1)),o=Br(o,[["exit",c,t]]),Tn(e,n,e.length,o),e}function pM(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(cM,u,s?u:f)(m):m===91?e.attempt(uM,u,s?l:f)(m):s?u(m):f(m)}function l(m){return e.attempt(fM,u,f)(m)}function u(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function hM(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 xr(f)?Ns(e,n)(f):n(f)}function n(f){return f===41?u(f):O0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return xr(f)?Ns(e,c)(f):u(f)}function o(f){return r(f)}function c(f){return f===34||f===39||f===40?P0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return xr(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 gM(e,t,r){const a=this;return i;function i(o){return T0.call(a,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return a.parser.defined.includes(Di(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function yM(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 vM={name:"labelStartImage",resolveAll:vm.resolveAll,tokenize:bM};function bM(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 kM={name:"labelStartLink",resolveAll:vm.resolveAll,tokenize:wM};function wM(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:SM};function SM(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:EM};function EM(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:_M},exit:TM,name:"list",tokenize:AM},xM={partial:!0,tokenize:PM},CM={partial:!0,tokenize:OM};function AM(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(xM,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 _M(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(CM,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 OM(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 TM(e){e.exit(this.containerState.type)}function PM(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:IM,tokenize:RM};function IM(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 RM(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 NM={tokenize:jM};function jM(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(qF,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 DM={resolveAll:R0()},FM=I0("string"),MM=I0("text");function I0(e){return{resolveAll:R0(e==="text"?LM: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 R0(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 LM(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 qM={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:x0},zM={91:VF},$M={[-2]:lf,[-1]:lf,32:lf},UM={35:YF,42:Nl,45:[av,Nl],60:eM,61:av,95:Nl,96:rv,126:rv},BM={38:A0,92:C0},VM={[-5]:cf,[-4]:cf,[-3]:cf,33:vM,38:A0,42:dd,60:[kF,oM],91:kM,92:[GF,C0],93:vm,95:dd,96:NF},HM={null:[dd,DM]},WM={null:[42,95]},KM={null:[]},GM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WM,contentInitial:zM,disable:KM,document:qM,flow:UM,flowInitial:$M,insideSpan:HM,string:BM,text:VM},Symbol.toStringTag,{value:"Module"}));function JM(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=Br(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 XM(d(x),A)}function d(x){return YM(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 YM(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 XM(e,t){let r=-1;const a=[];let i;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
|
|
107
|
+
`;break}case-3:{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 ZM(e){const a={constructs:iF([GM,...(e||{}).extensions||[]]),content:i(mF),defined:[],document:i(hF),flow:i(NM),lazy:{},string:i(FM),text:i(MM)};return a;function i(n){return s;function s(o){return JM(a,n,o)}}}function QM(e){for(;!_0(e););return e}const iv=/[\0\t\n\r]/g;function eL(){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 tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rL(e){return e.replace(tL,nL)}function nL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return E0(r.slice(n?2:1),n?16:10)}return gm(r)||e}const N0={}.hasOwnProperty;function aL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),iL(r)(QM(ZM(r).document().write(eL()(e,t,!0))))}function iL(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()}};j0(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]];N0.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 nF(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=rL(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=E0(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 j0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?j0(e,a):sL(e,a)}}function sL(e,t){let r;for(r in t)if(N0.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 oL(e){const t=this;t.parser=r;function r(a){return aL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function lL(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function cL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
+
`}]}function uL(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 fL(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dL(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mL(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 pL(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 hL(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function D0(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),n=i[0];n&&n.type==="text"?n.value="["+n.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=a:i.push({type:"text",value:a}),i}function gL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return D0(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 yL(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 vL(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 bL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return D0(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 kL(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 wL(e,t,r){const a=e.all(t),i=r?SL(r):F0(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
|
+
`}),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 SL(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=F0(r[a])}return t}function F0(e){const t=e.spread;return t??e.children.length>1}function EL(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 xL(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function CL(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function AL(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _L(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=g0(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 OL(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 TL(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const ov=9,lv=32;function PL(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),i=0;const n=[];for(;a;)n.push(cv(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=r.exec(t);return n.push(cv(t.slice(i),i>0,!1)),n.join("")}function cv(e,t,r){let a=0,i=e.length;if(t){let n=e.codePointAt(a);for(;n===ov||n===lv;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(i-1);for(;n===ov||n===lv;)i--,n=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function IL(e,t){const r={type:"text",value:PL(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function RL(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const NL={blockquote:lL,break:cL,code:uL,delete:fL,emphasis:dL,footnoteReference:mL,heading:pL,html:hL,imageReference:gL,image:yL,inlineCode:vL,linkReference:bL,link:kL,listItem:wL,list:EL,paragraph:xL,root:CL,strong:AL,table:_L,tableCell:TL,tableRow:OL,text:IL,thematicBreak:RL,toml:vl,yaml:vl,definition:vl,footnoteDefinition:vl};function vl(){}const M0=-1,Cc=0,js=1,Zl=2,bm=3,km=4,wm=5,Sm=6,L0=7,q0=8,jL=typeof self=="object"?self:globalThis,uv=(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 jL[e](t)},DL=(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 M0: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 L0:{const{name:o,message:c}=s;return r(uv(o,c),i)}case q0: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(uv(n,s),i)};return a},fv=e=>DL(new Map,e)(0),bi="",{toString:FL}={},{keys:ML}=Object,bs=e=>{const t=typeof e;if(t!=="object"||!e)return[Cc,t];const r=FL.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")?[L0,r]:[Zl,r]},bl=([e,t])=>e===Cc&&(t==="function"||t==="symbol"),LL=(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=q0,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([M0],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 ML(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},dv=(e,{json:t,lossy:r}={})=>{const a=[];return LL(!(t||r),!!t,new Map,a)(e),a},Ql=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fv(dv(e,t)):structuredClone(e):(e,t)=>fv(dv(e,t));function qL(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 zL(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function $L(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||qL,a=e.options.footnoteBackLabel||zL,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
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
114
|
+
`}]}}const z0=(function(e){if(e==null)return HL;if(typeof e=="function")return Ac(e);if(typeof e=="object")return Array.isArray(e)?UL(e):BL(e);if(typeof e=="string")return VL(e);throw new Error("Expected function, string, or object as test")});function UL(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=z0(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 BL(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 VL(e){return Ac(t);function t(r){return r&&r.type===e}}function Ac(e){return t;function t(r,a,i){return!!(WL(r)&&e.call(this,r,typeof a=="number"?a:void 0,i||void 0))}}function HL(){return!0}function WL(e){return e!==null&&typeof e=="object"&&"type"in e}const $0=[],KL=!0,mv=!1,GL="skip";function JL(e,t,r,a){let i;typeof t=="function"&&typeof r!="function"?(a=r,r=t):i=t;const n=z0(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=$0,h,k,v;if((!t||n(c,l,u[u.length-1]||void 0))&&(d=YL(r(c,u)),d[0]===mv))return d;if("children"in c&&c.children){const y=c;if(y.children&&d[0]!==GL)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]===mv)return h;k=typeof h[1]=="number"?h[1]:k+s}}return d}}}function YL(e){return Array.isArray(e)?e:typeof e=="number"?[KL,e]:e==null?$0:[e]}function U0(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),JL(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,XL={};function ZL(e,t){const r=t||XL,a=new Map,i=new Map,n=new Map,s={...NL,...r.handlers},o={all:l,applyData:e2,definitionById:a,footnoteById:i,footnoteCounts:n,footnoteOrder:[],handlers:s,one:c,options:r,patch:QL,wrap:r2};return U0(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||t2)(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=pv(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=pv(k.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function QL(e,t){e.position&&(t.position=DD(e))}function e2(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 t2(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 r2(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
|
|
115
|
+
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
116
|
+
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
117
|
+
`}),r}function pv(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function hv(e,t){const r=ZL(e,t),a=r.one(e,void 0),i=$L(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 n2(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 a2(){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 i2=a2();const ff=Pn(i2);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 s2(){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?o2(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 o2(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:l2,dirname:c2,extname:u2,join:f2,sep:"/"};function l2(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 c2(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 u2(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 f2(...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?".":d2(r)}function d2(e){co(e);const t=e.codePointAt(0)===47;let r=m2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function m2(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 p2={cwd:h2};function h2(){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 g2(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 y2(e)}function y2(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 B0{constructor(t){let r;t?hd(t)?r={path:t}:typeof t=="string"||v2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":p2.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=g2(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 v2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const b2=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),k2={}.hasOwnProperty;class Em extends b2{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=s2()}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):k2.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);E2(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 w2=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 S2(e)?e:new B0(e)}function S2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function E2(e){return typeof e=="string"||x2(e)}function x2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const C2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wv=[],Sv={allowDangerousHtml:!0},A2=/^(https?|ircs?|mailto|xmpp)$/i,_2=[{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 O2(e){const t=T2(e),r=P2(e);return I2(t.runSync(t.parse(r),r),e)}function T2(e){const t=e.rehypePlugins||wv,r=e.remarkPlugins||wv,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sv}:Sv;return w2().use(oL).use(r).use(n2,a).use(t)}function P2(e){const t=e.children||"",r=new B0;return typeof t=="string"&&(r.value=t),r}function I2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||R2;for(const u of _2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+C2+u.id,void 0);return U0(e,l),zD(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 R2(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||A2.test(e.slice(0,t))?e:""}const N2=O2,j2=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=j2),j.jsx(N2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function D2({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 F2({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 M2({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 L2(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 q2(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)),tb(f,d,a)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(y,{id:Nr(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function z2({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 $2(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 U2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Xj,ArrayFieldItemTemplate:Zj,ArrayFieldTemplate:Qj,ButtonTemplates:fD,DescriptionFieldTemplate:D2,FieldErrorTemplate:F2,FieldHelpTemplate:M2,FieldTemplate:L2,ObjectFieldTemplate:q2,TitleFieldTemplate:z2,WrapIfAdditionalTemplate:$2},Symbol.toStringTag,{value:"Module"}));function B2({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 V2({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(wk(w,k,f)):o(bk(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 H2({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 W2=5;function K2({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||W2,onChange:f,onBlur:m,onFocus:d,"aria-describedby":dn(e)})}const G2=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:B2,CheckboxesWidget:V2,RadioWidget:H2,TextareaWidget:K2},Symbol.toStringTag,{value:"Module"})),xv={templates:U2,widgets:G2},J2=e=>e==="{}"?`{
|
|
119
|
+
|
|
120
|
+
}`:e,Y2=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(J2(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})})]})},X2=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 Cv(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 Z2(e){if(Array.isArray(e))return e}function Q2(e,t,r){return(t=sq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eq(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 tq(){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 Av(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 _v(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Av(Object(r),!0).forEach(function(a){Q2(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function rq(e,t){if(e==null)return{};var r,a,i=nq(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 nq(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 aq(e,t){return Z2(e)||eq(e,t)||oq(e,t)||tq()}function iq(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 sq(e){var t=iq(e,"string");return typeof t=="symbol"?t:t+""}function oq(e,t){if(e){if(typeof e=="string")return Cv(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)?Cv(e,t):void 0}}function lq(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ov(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 Tv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(r),!0).forEach(function(a){lq(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function cq(){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 uq(e){return!Object.keys(e).length}function Ks(e){return typeof e=="function"}function fq(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dq(e,t){return ec(t)||ga("changeType"),Object.keys(t).some(function(r){return!fq(e,r)})&&ga("changeField"),t}function mq(e){Ks(e)||ga("selectorType")}function pq(e){Ks(e)||ec(e)||ga("handlerType"),ec(e)&&Object.values(e).some(function(t){return!Ks(t)})&&ga("handlersType")}function hq(e){e||ga("initialIsRequired"),ec(e)||ga("initialType"),uq(e)&&ga("initialContent")}function gq(e,t){throw new Error(e[t]||e.default)}var yq={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(gq)(yq),wl={changes:dq,selector:mq,handler:pq,initial:hq};function vq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};wl.initial(e),wl.handler(t);var r={current:e},a=_s(wq)(r,t),i=_s(kq)(r),n=_s(wl.changes)(e),s=_s(bq)(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){cq(a,i,n,s)(l)}return[o,c]}function bq(e,t){return Ks(t)?t(e.current):t}function kq(e,t){return e.current=Tv(Tv({},e.current),t),t}function wq(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 Sq={create:vq},Eq={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function xq(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 Cq(e){return{}.toString.call(e).includes("Object")}function Aq(e){return e||Pv("configIsRequired"),Cq(e)||Pv("configType"),e.urls?(_q(),{paths:{vs:e.urls.monacoBase}}):e}function _q(){console.warn(V0.deprecation)}function Oq(e,t){throw new Error(e[t]||e.default)}var V0={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
123
|
+
You are using deprecated way of configuration.
|
|
124
|
+
|
|
125
|
+
Instead of using
|
|
126
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
127
|
+
use
|
|
128
|
+
monaco.config({ paths: { vs: '...' } })
|
|
129
|
+
|
|
130
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
131
|
+
`},Pv=xq(Oq)(V0),Tq={config:Aq},Pq=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(i){return r.reduceRight(function(n,s){return s(n)},i)}};function H0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],H0(e[r],t[r]))}),_v(_v({},e),t)}var Iq={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(Iq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var Rq=["monaco"],Nq=Sq.create({config:Eq,isInitialized:!1,resolve:null,reject:null,monaco:null}),W0=aq(Nq,2),uo=W0[0],_c=W0[1];function jq(e){var t=Tq.config(e),r=t.monaco,a=rq(t,Rq);_c(function(i){return{config:H0(i.config,a),monaco:r}})}function Dq(){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 K0(window.monaco),e.resolve(window.monaco),vf(bf);Pq(Fq,Lq)(qq)}return vf(bf)}function Fq(e){return document.body.appendChild(e)}function Mq(e){var t=document.createElement("script");return e&&(t.src=e),t}function Lq(e){var t=uo(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=Mq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function qq(){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;K0(a),e.resolve(a)},function(r){e.reject(r)})}function K0(e){uo().monaco||_c({monaco:e})}function zq(){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:jq,init:Dq,__getMonacoInstance:zq},$q={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},kf=$q,Uq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Bq=Uq;function Vq({children:e}){return W.createElement("div",{style:Bq.container},e)}var Hq=Vq,Wq=Hq;function Kq({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(Wq,null,a),W.createElement("div",{ref:i,style:{...kf.fullWidth,...!r&&kf.hide},className:n}))}var Gq=Kq,G0=W.memo(Gq);function Jq(e){W.useEffect(e,[])}var xm=Jq;function Yq(e,t,r=!0){let a=W.useRef(!0);W.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Rr=Yq;function Ds(){}function Ti(e,t,r,a){return Xq(e,a)||Zq(e,t,r,a)}function Xq(e,t){return e.editor.getModel(J0(e,t))}function Zq(e,t,r,a){return e.editor.createModel(t,r,a?J0(e,a):void 0)}function J0(e,t){return e.Uri.parse(t)}function Qq({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()}),Rr(()=>{if(g.current&&S.current){let F=g.current.getOriginalEditor(),$=Ti(S.current,e||"",a||r||"text",n||"");$!==F.getModel()&&F.setModel($)}},[n],b),Rr(()=>{if(g.current&&S.current){let F=g.current.getModifiedEditor(),$=Ti(S.current,t||"",i||r||"text",s||"");$!==F.getModel()&&F.setModel($)}},[s],b),Rr(()=>{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),Rr(()=>{var F,$;($=(F=g.current)==null?void 0:F.getModel())==null||$.original.setValue(e||"")},[e],b),Rr(()=>{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),Rr(()=>{var F;(F=S.current)==null||F.editor.setTheme(l)},[l],b),Rr(()=>{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(G0,{width:d,height:m,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:k})}var ez=Qq;W.memo(ez);function tz(){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 rz=tz;function nz(e){let t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}var az=nz,Sl=new Map;function iz({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),$=az(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()}),Rr(()=>{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),Rr(()=>{var D;(D=_.current)==null||D.updateOptions(l)},[l],p),Rr(()=>{!_.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),Rr(()=>{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),Rr(()=>{var D;o!==void 0&&((D=_.current)==null||D.revealLine(o))},[o],p),Rr(()=>{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(G0,{width:d,height:h,isEditorReady:p,loading:c,_ref:x,className:k,wrapperProps:v})}var sz=iz,oz=W.memo(sz),lz=oz;const cz="vs-dark",uz=!0,fz=[{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"}],dz={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},mz={base:cz,inherit:uz,rules:fz,colors:dz},pz=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=rz();W.useEffect(()=>{k&&k.editor.defineTheme("dracula",mz)});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(lz,{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})})]})},hz=Object.freeze(Object.defineProperty({__proto__:null,button:X2,json:Y2,sourceCode:pz},Symbol.toStringTag,{value:"Module"})),gz=oN,yz=(e,t)=>e&&e in hs?Rl({},hs[e]):t&&t in hs?Rl({},hs[t]):Rl({},hs.en),vz=(e,t)=>e.map(r=>{var n,s;const a=(n=r.property)==null?void 0:n.replace(/^\./,""),i=(s=t.properties)==null?void 0:s[a];return i!=null&&i.errorMessage&&i.errorMessage[r.name]&&(r.message=i.errorMessage[r.name]),r}),Y0=({id:e,templates:t,widgets:r,fields:a,locale:i,fallbackLocale:n,validator:s,className:o,embedFormOptions:c={},rjsfTheme:l,...u})=>{const{theme:f}=c;Lv(c);const m=W.useMemo(()=>yz(i,n),[i,n]),[d,h]=W.useState(u.formData);return j.jsx(gz,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:k=>vz(k,u.schema),className:Pi(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...hz,...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=bw,onSuccess:s=vw,onError:o=kw,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]=K1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,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(Ew(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}=G1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i}),N={...Iv,...m};Lv(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(Hv,{})})})});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:Sw(A)})})});x.schema.embedFormOptions={...Iv,...x.schema.embedFormOptions,...m,variables:{...x.schema.embedFormOptions&&x.schema.embedFormOptions.variables,...h.variables,...m&&m.variables}};const F=Gv(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(Y0,{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=Y0;exports.buildId=Nv;exports.default=Cm;exports.processFormSpecs=Gv;
|
|
132
|
+
//# sourceMappingURL=fcode-form.cjs.js.map
|