@factorialco/fcode-react-forms 3.4.1 → 3.6.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.
Files changed (31) hide show
  1. package/dist/components/fcode-form/fcode-form.d.ts +32 -10
  2. package/dist/components/fcode-form/fcode-form.default-requests.test.d.ts +1 -0
  3. package/dist/components/fcode-form/fcode-form.flow-render.test.d.ts +1 -0
  4. package/dist/components/fcode-form/fcode-form.flow.d.ts +66 -0
  5. package/dist/components/fcode-form/fcode-form.flow.test.d.ts +1 -0
  6. package/dist/components/fcode-form/fcode-form.transport.test.d.ts +1 -0
  7. package/dist/components/form-skeleton/form-skeleton.d.ts +2 -2
  8. package/dist/components/json-schema-form/fcode-json-schema-form.d.ts +8 -2
  9. package/dist/components/json-schema-form/multistep/flow-navigation.d.ts +28 -0
  10. package/dist/components/json-schema-form/multistep/flow-page.d.ts +16 -0
  11. package/dist/components/json-schema-form/multistep/index.d.ts +2 -1
  12. package/dist/components/json-schema-form/multistep/leave-guard.d.ts +24 -0
  13. package/dist/components/json-schema-form/multistep/multistep-controller.d.ts +8 -9
  14. package/dist/components/json-schema-form/multistep/parse-steps.d.ts +2 -1
  15. package/dist/components/json-schema-form/multistep/step-actions.d.ts +30 -0
  16. package/dist/components/json-schema-form/multistep/types.d.ts +102 -6
  17. package/dist/fcode-form.cjs.js +73 -73
  18. package/dist/fcode-form.cjs.js.map +1 -1
  19. package/dist/fcode-form.es.js +9583 -9077
  20. package/dist/fcode-form.es.js.map +1 -1
  21. package/dist/fcode-form.umd.js +87 -87
  22. package/dist/fcode-form.umd.js.map +1 -1
  23. package/dist/hooks/use-form-specs.d.ts +15 -2
  24. package/dist/hooks/use-submit-form.d.ts +13 -2
  25. package/dist/index.d.ts +2 -1
  26. package/dist/services/fcode.d.ts +11 -1
  27. package/dist/services/transport.d.ts +25 -0
  28. package/dist/services/transport.test.d.ts +1 -0
  29. package/dist/styles.css +28 -0
  30. package/dist/types.d.ts +66 -1
  31. package/package.json +1 -1
@@ -1,62 +1,62 @@
1
- (function(Ge,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(Ge=typeof globalThis<"u"?globalThis:Ge||self,N(Ge.FcodeForm={},Ge.jsxRuntime,Ge.React,Ge.ReactDOM))})(this,(function(Ge,N,U,Oo){"use strict";var P4=Object.defineProperty;var I4=(Ge,N,U)=>N in Ge?P4(Ge,N,{enumerable:!0,configurable:!0,writable:!0,value:U}):Ge[N]=U;var Jt=(Ge,N,U)=>I4(Ge,typeof N!="symbol"?N+"":N,U);function l0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Zr=l0(U),Zd=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Qd=()=>Math.random().toString(36).substring(2,10),u0=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),c0=e=>{if(typeof e!="string")return!1;try{const{protocol:t}=new URL(e);return t==="https:"||t==="http:"}catch{return!1}},f0="Fcode-Version-Tag",d0="Fcode-Locale",ep="Fcode-Resolved-Files",tp=e=>e?{[f0]:e}:{},rp=e=>e?{[d0]:e}:{},p0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,cache:o="force-cache"})=>{const s={...t,...tp(a),...rp(n)},l=await fetch(Zd(e,r,i),{cache:o,...Object.keys(s).length>0&&{headers:s}}),u=await l.json();if(l.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(l.ok)return u;throw u},m0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,h0=e=>{const t=m0.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,o=e.includes(";base64,")?Uint8Array.from(atob(a),s=>s.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([o],{type:r})}},g0=e=>{const t={...e},r=[];for(const[i,a]of Object.entries(e))if(a instanceof File)r.push({key:i,file:a}),delete t[i];else if(typeof a=="string"&&a.startsWith("data:")){const n=h0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},y0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,ep);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${ep} header`,a)}},v0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:o,formData:s})=>{const{sanitized:l,files:u}=g0(s),c=Zd(e,r,i),f={"Fcode-Async":n?"true":"false"},p=tp(a),d=rp(o);let m;if(u.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(l));for(const{key:b,file:w}of u)v.append(b,w,w.name);const g={...t,...f,...p,...d};delete g["Content-Type"],delete g["content-type"],m=await fetch(c,{headers:g,method:"POST",body:v})}else m=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(s)});let k={};try{const v=await m.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(m.ok)return{results:k,resolvedFiles:y0(m)};throw k},b0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:o=!1})=>{const[s,l]=U.useState(!1),[u,c]=U.useState(void 0),[f,p]=U.useState(void 0),[d,m]=U.useState(void 0),k=U.useCallback(()=>{l(!1),c(void 0),m(void 0),p(void 0)},[]);return[U.useCallback(async g=>{try{p(g),l(!0);const b=await v0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:o,formData:g});return l(!1),c(b.results),b}catch(b){throw m(b),l(!1),b}},[e,t,r,i,a,n,o]),{loading:s,results:u,error:d,formData:f,reset:k}]},k0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[o,s]=U.useState(!0),[l,u]=U.useState(!1),[c,f]=U.useState(),[p,d]=U.useState(),[m,k]=U.useState(0),v=U.useRef(!1),g=JSON.stringify(t??null),b=U.useMemo(()=>t,[g]),w=U.useCallback(S=>{v.current!=="visible"&&(v.current=S!=null&&S.silent?"silent":"visible"),k(h=>h+1)},[]);return U.useEffect(()=>{let S=!1;const h=v.current!==!1,y=v.current==="silent";return v.current=!1,h?y||u(!0):s(!0),d(void 0),p0({hostUrl:e,headers:b,team:r,processId:i,processVersion:a,locale:n,cache:h?"reload":"force-cache"}).then(C=>{S||f(C)}).catch(C=>{if(!S){if(h){console.warn("Reloading the form definition failed; keeping the current form.",C);return}d(C)}}).finally(()=>{S||(s(!1),u(!1))}),()=>{S=!0}},[e,b,r,i,a,n,m]),{loading:o,reloading:l,formSpecs:c,error:p,reload:w}},w0=e=>u0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),S0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},C0=e=>{if(S0(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},E0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function A0({stylesheets:e}){U.useEffect(()=>{const t=e.map(r=>w0(r)?C0(r):E0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function np(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=U.useMemo(()=>{if(t)return[t];if(i==="none")return[];const o=[`${r}/styles.css`];return a?o.push(a):i&&o.push(`${r}/styles-theme-${i}.css`),o},[t,r,i,a]);A0({stylesheets:n})}function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_o.apply(null,arguments)}function ip(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kl(e,t)}function ap(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kl(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Po={exports:{}},Io={exports:{}},Qe={};/** @license React v16.13.1
1
+ (function(Ge,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],I):(Ge=typeof globalThis<"u"?globalThis:Ge||self,I(Ge.FcodeForm={},Ge.jsxRuntime,Ge.React,Ge.ReactDOM))})(this,(function(Ge,I,R,Os){"use strict";var cU=Object.defineProperty;var uU=(Ge,I,R)=>I in Ge?cU(Ge,I,{enumerable:!0,configurable:!0,writable:!0,value:R}):Ge[I]=R;var Jt=(Ge,I,R)=>uU(Ge,typeof I!="symbol"?I+"":I,R);function S0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Zr=S0(R),sp=(e,t,r)=>`${e}/api/${t}/forms/${r}`,op=()=>Math.random().toString(36).substring(2,10),C0=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),E0=e=>{if(typeof e!="string")return!1;try{const{protocol:t}=new URL(e);return t==="https:"||t==="http:"}catch{return!1}},A0="Fcode-Version-Tag",x0="Fcode-Locale",lp="Fcode-Resolved-Files",O0="Process form specs couldn't be loaded: the form does not exist, is not enabled, or needs a Factorial token this request did not carry or that was not accepted. Review documentation at https://code.factorialhr.com/docs/forms/",cp=e=>e?{[A0]:e}:{},up=e=>e?{[x0]:e}:{},_0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,cache:s="force-cache"})=>{const o={...t,...cp(a),...up(n)},l=await fetch(sp(e,r,i),{cache:s,...Object.keys(o).length>0&&{headers:o}}),c=await l.json();if(l.status===404)throw new Error(O0);if(l.ok)return c;throw c},P0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,I0=e=>{const t=P0.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,s=e.includes(";base64,")?Uint8Array.from(atob(a),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([s],{type:r})}},fp=e=>{const t={...e},r=[];for(const[i,a]of Object.entries(e))if(a instanceof File)r.push({key:i,file:a}),delete t[i];else if(typeof a=="string"&&a.startsWith("data:")){const n=I0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},T0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,lp);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${lp} header`,a)}},N0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:c}=fp(o),u=sp(e,r,i),f={"Fcode-Async":n?"true":"false"},p=cp(a),d=up(s);let h;if(c.length>0){const k=new globalThis.FormData;k.append("parameters",JSON.stringify(l));for(const{key:b,file:w}of c)k.append(b,w,w.name);const g={...t,...f,...p,...d};delete g["Content-Type"],delete g["content-type"],h=await fetch(u,{headers:g,method:"POST",body:k})}else h=await fetch(u,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(o)});let v={};try{const k=await h.text();k.length&&(v=JSON.parse(k))}catch(k){throw console.error("Unexpected error parsing response",k),k}if(h.ok)return{results:v,resolvedFiles:T0(h)};throw v},va=e=>"transport"in e&&!!e.transport;class F0 extends Error{constructor(t){super(`The upload for "${t}" was refused after refreshing its grant.`),this.name="UploadGrantExpiredError"}}const dp=403,pp=async(e,t)=>{const r=await Promise.all(e.map(async({key:a,file:n})=>{const s=t.find(l=>l.field===a);if(!s)throw new Error(`There is no upload grant for the file field "${a}".`);const o=await fetch(s.uploadUrl,{method:s.method??"PUT",headers:s.headers,body:n});if(!o.ok&&o.status!==dp)throw new Error(`Uploading the file field "${a}" failed with status ${o.status}.`);return{key:a,grant:s,status:o.status}})),i=r.find(({status:a})=>a===dp);return i?{expired:!0,field:i.key}:{expired:!1,paths:Object.fromEntries(r.map(({key:a,grant:n})=>[a,n.path]))}},D0=async({transport:e,processId:t,locale:r,async:i,formData:a,uploads:n,reloadUploads:s})=>{const{files:o}=fp(a);if(!(n!=null&&n.length)||o.length===0)return e.submit({processId:t,formData:a,locale:r,async:i});let l=await pp(o,n);if(l.expired&&s&&(l=await pp(o,await s()??[])),l.expired)throw new F0(l.field);const c=await e.submit({processId:t,formData:{...a,...l.paths},locale:r,async:i});return{...c,resolvedFiles:{...l.paths,...c.resolvedFiles}}},M0=e=>{const{processId:t,locale:r,async:i=!1}=e,{hostUrl:a,headers:n,team:s,processVersion:o}=va(e)?{}:e,{transport:l,uploads:c,reloadUploads:u}=va(e)?e:{transport:void 0,uploads:void 0,reloadUploads:void 0},[f,p]=R.useState(!1),[d,h]=R.useState(void 0),[v,k]=R.useState(void 0),[g,b]=R.useState(void 0),w=R.useCallback(()=>{p(!1),h(void 0),b(void 0),k(void 0)},[]);return[R.useCallback(async m=>{try{k(m),p(!0);const y=l?await D0({transport:l,processId:t,locale:r,async:i,formData:m,uploads:c,reloadUploads:u}):await N0({hostUrl:a,headers:n,team:s,processId:t,processVersion:o,locale:r,async:i,formData:m});return p(!1),h(y.results),y}catch(y){throw b(y),p(!1),y}},[a,n,s,t,o,r,i,l,c,u]),{loading:f,results:d,error:g,formData:v,reset:w}]},j0=e=>{const t=va(e)?e.transport:void 0,{hostUrl:r,headers:i,team:a,processVersion:n}=va(e)?{}:e,{processId:s,locale:o}=e,l=va(e)?e.params:void 0,c=R.useRef(t);c.current=t;const u=t!==void 0,[f,p]=R.useState(!0),[d,h]=R.useState(!1),[v,k]=R.useState(),[g,b]=R.useState(),[w,E]=R.useState(),[m,y]=R.useState(0),S=R.useRef(!1),x=JSON.stringify(i??null),_=R.useMemo(()=>i,[x]),C=JSON.stringify(l??null),A=R.useMemo(()=>l,[C]),O=R.useCallback(M=>c.current?c.current.fetchSchema({processId:s,locale:o,params:A,cache:"no-store"}):_0({hostUrl:r,headers:_,team:a,processId:s,processVersion:n,locale:o,cache:M?"reload":"force-cache"}).then(q=>({schema:q})),[r,_,a,s,n,o,A]),F=R.useCallback(async()=>{if(!c.current)return;const M=await O(!0);return k(M.schema),b(M.uploads),M.uploads},[O]),N=R.useCallback(M=>{S.current!=="visible"&&(S.current=M!=null&&M.silent?"silent":"visible"),y(q=>q+1)},[]);return R.useEffect(()=>{let M=!1;const q=S.current!==!1,H=S.current==="silent";return S.current=!1,q?H||h(!0):p(!0),E(void 0),O(q).then(J=>{M||(k(J.schema),b(J.uploads))}).catch(J=>{if(!M){if(q){console.warn("Reloading the form definition failed; keeping the current form.",J);return}E(J)}}).finally(()=>{M||(p(!1),h(!1))}),()=>{M=!0}},[O,u,m]),{loading:f,reloading:d,formSpecs:v,uploads:g,error:w,reload:N,reloadUploads:F}},L0=e=>C0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),q0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},$0=e=>{if(q0(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},z0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function R0({stylesheets:e}){R.useEffect(()=>{const t=e.map(r=>L0(r)?$0(r):z0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function mp(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=R.useMemo(()=>{if(t)return[t];if(i==="none")return[];const s=[`${r}/styles.css`];return a?s.push(a):i&&s.push(`${r}/styles-theme-${i}.css`),s},[t,r,i,a]);R0({stylesheets:n})}function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},_s.apply(null,arguments)}function hp(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yl(e,t)}function gp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yl(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ps={exports:{}},Is={exports:{}},Qe={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var op;function x0(){if(op)return Qe;op=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case l:case u:case i:case n:case a:case f:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case m:case d:case o:return h;default:return y}}case r:return y}}}function S(h){return w(h)===u}return Qe.AsyncMode=l,Qe.ConcurrentMode=u,Qe.ContextConsumer=s,Qe.ContextProvider=o,Qe.Element=t,Qe.ForwardRef=c,Qe.Fragment=i,Qe.Lazy=m,Qe.Memo=d,Qe.Portal=r,Qe.Profiler=n,Qe.StrictMode=a,Qe.Suspense=f,Qe.isAsyncMode=function(h){return S(h)||w(h)===l},Qe.isConcurrentMode=S,Qe.isContextConsumer=function(h){return w(h)===s},Qe.isContextProvider=function(h){return w(h)===o},Qe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Qe.isForwardRef=function(h){return w(h)===c},Qe.isFragment=function(h){return w(h)===i},Qe.isLazy=function(h){return w(h)===m},Qe.isMemo=function(h){return w(h)===d},Qe.isPortal=function(h){return w(h)===r},Qe.isProfiler=function(h){return w(h)===n},Qe.isStrictMode=function(h){return w(h)===a},Qe.isSuspense=function(h){return w(h)===f},Qe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===d||h.$$typeof===o||h.$$typeof===s||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Qe.typeOf=w,Qe}var et={};/** @license React v16.13.1
8
+ */var yp;function U0(){if(yp)return Qe;yp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case t:switch(m=m.type,m){case l:case c:case i:case n:case a:case f:return m;default:switch(m=m&&m.$$typeof,m){case o:case u:case h:case d:case s:return m;default:return y}}case r:return y}}}function E(m){return w(m)===c}return Qe.AsyncMode=l,Qe.ConcurrentMode=c,Qe.ContextConsumer=o,Qe.ContextProvider=s,Qe.Element=t,Qe.ForwardRef=u,Qe.Fragment=i,Qe.Lazy=h,Qe.Memo=d,Qe.Portal=r,Qe.Profiler=n,Qe.StrictMode=a,Qe.Suspense=f,Qe.isAsyncMode=function(m){return E(m)||w(m)===l},Qe.isConcurrentMode=E,Qe.isContextConsumer=function(m){return w(m)===o},Qe.isContextProvider=function(m){return w(m)===s},Qe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Qe.isForwardRef=function(m){return w(m)===u},Qe.isFragment=function(m){return w(m)===i},Qe.isLazy=function(m){return w(m)===h},Qe.isMemo=function(m){return w(m)===d},Qe.isPortal=function(m){return w(m)===r},Qe.isProfiler=function(m){return w(m)===n},Qe.isStrictMode=function(m){return w(m)===a},Qe.isSuspense=function(m){return w(m)===f},Qe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===i||m===c||m===n||m===a||m===f||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===d||m.$$typeof===s||m.$$typeof===o||m.$$typeof===u||m.$$typeof===k||m.$$typeof===g||m.$$typeof===b||m.$$typeof===v)},Qe.typeOf=w,Qe}var et={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var sp;function O0(){return sp||(sp=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,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w($){return typeof $=="string"||typeof $=="function"||$===i||$===u||$===n||$===a||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===m||$.$$typeof===d||$.$$typeof===o||$.$$typeof===s||$.$$typeof===c||$.$$typeof===v||$.$$typeof===g||$.$$typeof===b||$.$$typeof===k)}function S($){if(typeof $=="object"&&$!==null){var J=$.$$typeof;switch(J){case t:var G=$.type;switch(G){case l:case u:case i:case n:case a:case f:return G;default:var ie=G&&G.$$typeof;switch(ie){case s:case c:case m:case d:case o:return ie;default:return J}}case r:return J}}}var h=l,y=u,C=s,x=o,_=t,E=c,A=i,O=m,F=d,T=r,j=n,q=a,H=f,Y=!1;function Z($){return Y||(Y=!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($)||S($)===l}function P($){return S($)===u}function M($){return S($)===s}function R($){return S($)===o}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function D($){return S($)===c}function L($){return S($)===i}function B($){return S($)===m}function V($){return S($)===d}function W($){return S($)===r}function K($){return S($)===n}function X($){return S($)===a}function z($){return S($)===f}et.AsyncMode=h,et.ConcurrentMode=y,et.ContextConsumer=C,et.ContextProvider=x,et.Element=_,et.ForwardRef=E,et.Fragment=A,et.Lazy=O,et.Memo=F,et.Portal=T,et.Profiler=j,et.StrictMode=q,et.Suspense=H,et.isAsyncMode=Z,et.isConcurrentMode=P,et.isContextConsumer=M,et.isContextProvider=R,et.isElement=I,et.isForwardRef=D,et.isFragment=L,et.isLazy=B,et.isMemo=V,et.isPortal=W,et.isProfiler=K,et.isStrictMode=X,et.isSuspense=z,et.isValidElementType=w,et.typeOf=S})()),et}var lp;function up(){return lp||(lp=1,process.env.NODE_ENV==="production"?Io.exports=x0():Io.exports=O0()),Io.exports}/*
15
+ */var vp;function B0(){return vp||(vp=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,i=e?Symbol.for("react.fragment"):60107,a=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,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w($){return typeof $=="string"||typeof $=="function"||$===i||$===c||$===n||$===a||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===h||$.$$typeof===d||$.$$typeof===s||$.$$typeof===o||$.$$typeof===u||$.$$typeof===k||$.$$typeof===g||$.$$typeof===b||$.$$typeof===v)}function E($){if(typeof $=="object"&&$!==null){var G=$.$$typeof;switch(G){case t:var K=$.type;switch(K){case l:case c:case i:case n:case a:case f:return K;default:var ee=K&&K.$$typeof;switch(ee){case o:case u:case h:case d:case s:return ee;default:return G}}case r:return G}}}var m=l,y=c,S=o,x=s,_=t,C=u,A=i,O=h,F=d,N=r,M=n,q=a,H=f,J=!1;function X($){return J||(J=!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($)||E($)===l}function P($){return E($)===c}function j($){return E($)===o}function U($){return E($)===s}function T($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function D($){return E($)===u}function L($){return E($)===i}function B($){return E($)===h}function V($){return E($)===d}function W($){return E($)===r}function Y($){return E($)===n}function Z($){return E($)===a}function z($){return E($)===f}et.AsyncMode=m,et.ConcurrentMode=y,et.ContextConsumer=S,et.ContextProvider=x,et.Element=_,et.ForwardRef=C,et.Fragment=A,et.Lazy=O,et.Memo=F,et.Portal=N,et.Profiler=M,et.StrictMode=q,et.Suspense=H,et.isAsyncMode=X,et.isConcurrentMode=P,et.isContextConsumer=j,et.isContextProvider=U,et.isElement=T,et.isForwardRef=D,et.isFragment=L,et.isLazy=B,et.isMemo=V,et.isPortal=W,et.isProfiler=Y,et.isStrictMode=Z,et.isSuspense=z,et.isValidElementType=w,et.typeOf=E})()),et}var bp;function kp(){return bp||(bp=1,process.env.NODE_ENV==="production"?Is.exports=U0():Is.exports=B0()),Is.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Gl,cp;function _0(){if(cp)return Gl;cp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gl=a()?Object.assign:function(n,o){for(var s,l=i(n),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var p=0;p<u.length;p++)r.call(s,u[p])&&(l[u[p]]=s[u[p]])}}return l},Gl}var Jl,fp;function Yl(){if(fp)return Jl;fp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Xl,dp;function pp(){return dp||(dp=1,Xl=Function.call.bind(Object.prototype.hasOwnProperty)),Xl}var Zl,mp;function P0(){if(mp)return Zl;mp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yl(),r={},i=pp();e=function(n){var o="Warning: "+n;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(n,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in n)if(i(n,c)){var f;try{if(typeof n[c]!="function"){var p=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=n[c](o,c,l,s,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` 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=u?u():"";e("Failed "+s+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Zl=a,Zl}var Ql,hp;function I0(){if(hp)return Ql;hp=1;var e=up(),t=_0(),r=Yl(),i=pp(),a=P0(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ql=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var M=P&&(u&&P[u]||P[c]);if(typeof M=="function")return M}var p="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:w,element:S(),elementType:h(),instanceOf:y,node:E(),objectOf:x,oneOf:C,oneOfType:_,shape:O,exact:F};function m(P,M){return P===M?P!==0||1/P===1/M:P!==P&&M!==M}function k(P,M){this.message=P,this.data=M&&typeof M=="object"?M:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var M={},R=0;function I(L,B,V,W,K,X,z){if(W=W||p,X=X||V,z!==r){if(l){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var J=W+":"+V;!M[J]&&R<3&&(n("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[J]=!0,R++)}}return B[V]==null?L?B[V]===null?new k("The "+K+" `"+X+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new k("The "+K+" `"+X+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(B,V,W,K,X)}var D=I.bind(null,!1);return D.isRequired=I.bind(null,!0),D}function g(P){function M(R,I,D,L,B,V){var W=R[I],K=q(W);if(K!==P){var X=H(W);return new k("Invalid "+L+" `"+B+"` of type "+("`"+X+"` supplied to `"+D+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(M)}function b(){return v(o)}function w(P){function M(R,I,D,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var V=R[I];if(!Array.isArray(V)){var W=q(V);return new k("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected an array."))}for(var K=0;K<V.length;K++){var X=P(V,K,D,L,B+"["+K+"]",r);if(X instanceof Error)return X}return null}return v(M)}function S(){function P(M,R,I,D,L){var B=M[R];if(!s(B)){var V=q(B);return new k("Invalid "+D+" `"+L+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(M,R,I,D,L){var B=M[R];if(!e.isValidElementType(B)){var V=q(B);return new k("Invalid "+D+" `"+L+"` of type "+("`"+V+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function M(R,I,D,L,B){if(!(R[I]instanceof P)){var V=P.name||p,W=Z(R[I]);return new k("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected ")+("instance of `"+V+"`."))}return null}return v(M)}function C(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),o;function M(R,I,D,L,B){for(var V=R[I],W=0;W<P.length;W++)if(m(V,P[W]))return null;var K=JSON.stringify(P,function(z,$){var J=H($);return J==="symbol"?String($):$});return new k("Invalid "+L+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+D+"`, expected one of "+K+"."))}return v(M)}function x(P){function M(R,I,D,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var V=R[I],W=q(V);if(W!=="object")return new k("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected an object."));for(var K in V)if(i(V,K)){var X=P(V,K,D,L,B+"."+K,r);if(X instanceof Error)return X}return null}return v(M)}function _(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var M=0;M<P.length;M++){var R=P[M];if(typeof R!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(R)+" at index "+M+"."),o}function I(D,L,B,V,W){for(var K=[],X=0;X<P.length;X++){var z=P[X],$=z(D,L,B,V,W,r);if($==null)return null;$.data&&i($.data,"expectedType")&&K.push($.data.expectedType)}var J=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new k("Invalid "+V+" `"+W+"` supplied to "+("`"+B+"`"+J+"."))}return v(I)}function E(){function P(M,R,I,D,L){return T(M[R])?null:new k("Invalid "+D+" `"+L+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function A(P,M,R,I,D){return new k((P||"React class")+": "+M+" type `"+R+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function O(P){function M(R,I,D,L,B){var V=R[I],W=q(V);if(W!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+W+"` "+("supplied to `"+D+"`, expected `object`."));for(var K in P){var X=P[K];if(typeof X!="function")return A(D,L,B,K,H(X));var z=X(V,K,D,L,B+"."+K,r);if(z)return z}return null}return v(M)}function F(P){function M(R,I,D,L,B){var V=R[I],W=q(V);if(W!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+W+"` "+("supplied to `"+D+"`, expected `object`."));var K=t({},R[I],P);for(var X in K){var z=P[X];if(i(P,X)&&typeof z!="function")return A(D,L,B,X,H(z));if(!z)return new k("Invalid "+L+" `"+B+"` key `"+X+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(R[I],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(V,X,D,L,B+"."+X,r);if($)return $}return null}return v(M)}function T(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(T);if(P===null||s(P))return!0;var M=f(P);if(M){var R=M.call(P),I;if(M!==P.entries){for(;!(I=R.next()).done;)if(!T(I.value))return!1}else for(;!(I=R.next()).done;){var D=I.value;if(D&&!T(D[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function q(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function H(P){if(typeof P>"u"||P===null)return""+P;var M=q(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Y(P){var M=H(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Z(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Ql}var eu,gp;function T0(){if(gp)return eu;gp=1;var e=Yl();function t(){}function r(){}return r.resetWarningCache=t,eu=function(){function i(o,s,l,u,c,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function a(){return i}var n={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},eu}var yp;function N0(){if(yp)return Po.exports;if(yp=1,process.env.NODE_ENV!=="production"){var e=up(),t=!0;Po.exports=I0()(e.isElement,t)}else Po.exports=T0()();return Po.exports}var F0=N0();const Ee=jr(F0);function D0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function M0(e,t){e.classList?e.classList.add(t):D0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function vp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function j0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=vp(e.className,t):e.setAttribute("class",vp(e.className&&e.className.baseVal||"",t))}const bp={disabled:!1};var L0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null,q0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]):null;const kp=U.createContext(null);var wp=function(t){return t.scrollTop},va="unmounted",Wn="exited",Kn="entering",Oi="entered",tu="exiting",Lr=(function(e){ap(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var o=a,s=o&&!o.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?s?(l=Wn,n.appearStatus=Kn):l=Oi:i.unmountOnExit||i.mountOnEnter?l=va:l=Wn,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var o=a.in;return o&&n.status===va?{status:Wn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Kn&&o!==Oi&&(n=Kn):(o===Kn||o===Oi)&&(n=tu)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,o,s;return n=o=s=a,a!=null&&typeof a!="number"&&(n=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:n,enter:o,appear:s}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===Kn){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Oo.findDOMNode(this);o&&wp(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wn&&this.setState({status:va})},r.performEnter=function(a){var n=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Oo.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!a&&!o||bp.disabled){this.safeSetState({status:Oi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Kn},function(){n.props.onEntering(u,c),n.onTransitionEnd(p,function(){n.safeSetState({status:Oi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Oo.findDOMNode(this);if(!n||bp.disabled){this.safeSetState({status:Wn},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:tu},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Wn},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,n.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:Oo.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===va)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var s=ip(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(kp.Provider,{value:null},typeof o=="function"?o(a,s):U.cloneElement(U.Children.only(o),s))},t})(U.Component);Lr.contextType=kp,Lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ee.shape({current:typeof Element>"u"?Ee.any:function(e,t,r,i,a,n){var o=e[t];return Ee.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(t){var r=L0;t.addEndListener||(r=r.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return r.apply(void 0,[t].concat(a))},addEndListener:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{};function _i(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Lr.UNMOUNTED=va,Lr.EXITED=Wn,Lr.ENTERING=Kn,Lr.ENTERED=Oi,Lr.EXITING=tu;var $0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return M0(t,i)})},ru=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return j0(t,i)})},nu=(function(e){ap(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(s,l)},i.onEntering=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1],p=f?"appear":"enter";i.addClass(c,p,"active"),i.props.onEntering&&i.props.onEntering(s,l)},i.onEntered=function(s,l){var u=i.resolveArguments(s,l),c=u[0],f=u[1],p=f?"appear":"enter";i.removeClasses(c,p),i.addClass(c,p,"done"),i.props.onEntered&&i.props.onEntered(s,l)},i.onExit=function(s){var l=i.resolveArguments(s),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(s)},i.onExiting=function(s){var l=i.resolveArguments(s),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(s)},i.onExited=function(s){var l=i.resolveArguments(s),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"exit","done"),i.props.onExited&&i.props.onExited(s)},i.resolveArguments=function(s,l){return i.props.nodeRef?[i.props.nodeRef.current,s]:[s,l]},i.getClassNames=function(s){var l=i.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+s:l[s],p=u?f+"-active":l[s+"Active"],d=u?f+"-done":l[s+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,o){var s=this.getClassNames(n)[o+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;n==="appear"&&o==="done"&&u&&(s+=" "+u),o==="active"&&a&&wp(a),s&&(this.appliedClasses[n][o]=s,$0(a,s))},r.removeClasses=function(a,n){var o=this.appliedClasses[n],s=o.base,l=o.active,u=o.done;this.appliedClasses[n]={},s&&ru(a,s),l&&ru(a,l),u&&ru(a,u)},r.render=function(){var a=this.props;a.classNames;var n=ip(a,["classNames"]);return U.createElement(Lr,_o({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(U.Component);nu.defaultProps={classNames:""},nu.propTypes=process.env.NODE_ENV!=="production"?_o({},Lr.propTypes,{classNames:q0,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}):{};const z0=nu,Sp=({active:e,children:t,content:r,disabled:i})=>{const a=U.useRef(null);return i?N.jsx(N.Fragment,{children:t}):N.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,N.jsx(z0,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:N.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:N.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[N.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:N.jsx("svg",{viewBox:"25 25 50 50",children:N.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&N.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},R0=["first","second"],Cp=()=>N.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[N.jsx("div",{className:"fcode-form-skeleton-title"}),N.jsx("div",{className:"fcode-form-skeleton-description"}),R0.map(e=>N.jsxs("div",{className:"fcode-form-skeleton-group",children:[N.jsx("div",{className:"fcode-form-skeleton-label"}),N.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),N.jsx("div",{className:"fcode-form-skeleton-button"})]});Cp.displayName="FormSkeleton";const To=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},U0=e=>{try{const t=new URL(e,window.location.href);return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}},B0=(e,t=r=>window.location.assign(r))=>{const r=U0(e.url);if(r===null){console.warn(`Ignoring redirect to unsupported URL: ${e.url}`);return}setTimeout(()=>t(r),e.timeout||0)},V0=(e,t)=>{To("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},H0="The form has been successfully submitted",Ep="There has been an error submitting the form",Ap=e=>{if(e instanceof Error){try{const r=JSON.parse(e.message);if(typeof(r==null?void 0:r.errorMessage)=="string"&&r.errorMessage)return r.errorMessage}catch{}return Ep}const t=e;return typeof(t==null?void 0:t.errorMessage)=="string"&&t.errorMessage?t.errorMessage:typeof(t==null?void 0:t.message)=="string"&&t.message?t.message:Ep},W0="The form couldn't be loaded",K0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:W0},xp=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]=xp(e[t]);break}return e},G0=e=>{let t={};return e.fields&&(t={...xp(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function T4(){}function N4(){}function J0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Y0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,X0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Z0={};function Op(e,t){return(Z0.jsx?X0:Y0).test(e)}const Q0=/[ \t\n\f\r]/g;function ew(e){return typeof e=="object"?e.type==="text"?_p(e.value):!1:_p(e)}function _p(e){return e.replace(Q0,"")===""}class ba{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ba.prototype.normal={},ba.prototype.property={},ba.prototype.space=void 0;function Pp(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ba(r,i,t)}function iu(e){return e.toLowerCase()}class Yt{constructor(t,r){this.attribute=r,this.property=t}}Yt.prototype.attribute="",Yt.prototype.booleanish=!1,Yt.prototype.boolean=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.defined=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.number=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.property="",Yt.prototype.spaceSeparated=!1,Yt.prototype.space=void 0;let tw=0;const Ce=Jn(),Ot=Jn(),au=Jn(),se=Jn(),ft=Jn(),Gn=Jn(),er=Jn();function Jn(){return 2**++tw}const ou=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:Ot,commaOrSpaceSeparated:er,commaSeparated:Gn,number:se,overloadedBoolean:au,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),su=Object.keys(ou);class lu extends Yt{constructor(t,r,i,a){let n=-1;if(super(t,r),Ip(this,"space",a),typeof i=="number")for(;++n<su.length;){const o=su[n];Ip(this,su[n],(i&ou[o])===ou[o])}}}lu.prototype.defined=!0;function Ip(e,t,r){r&&(e[t]=r)}function Pi(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new lu(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[iu(i)]=i,r[iu(n.attribute)]=i}return new ba(t,r,e.space)}const Tp=Pi({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ft,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:se,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:Ot,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Np(e,t){return t in e?e[t]:t}function Fp(e,t){return Np(e,t.toLowerCase())}const rw=Pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gn,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alpha:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:ft,autoFocus:Ce,autoPlay:Ce,blocking:ft,capture:null,charSet:null,checked:Ce,cite:null,className:ft,closedBy:null,colorSpace:null,cols:se,colSpan:se,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Ce,controlsList:ft,coords:se|Gn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:au,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:ft,height:se,hidden:au,high:se,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ce,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:se,pattern:null,ping:ft,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:ft,required:Ce,reversed:Ce,rows:se,rowSpan:se,sandbox:ft,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootCustomElementRegistry:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shadowRootSerializable:Ce,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:Ot,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ce,disablePictureInPicture:Ce,disableRemotePlayback:Ce,exportParts:Gn,part:ft,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:Fp}),nw=Pi({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:er,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:ft,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Gn,g2:Gn,glyphName:Gn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:er,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:er,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:er,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:er,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Np}),Dp=Pi({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()}}),Mp=Pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fp}),jp=Pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iw={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"},aw=/[A-Z]/g,Lp=/-[a-z]/g,ow=/^data[-\w.:]+$/i;function sw(e,t){const r=iu(t);let i=t,a=Yt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ow.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Lp,uw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Lp.test(n)){let o=n.replace(aw,lw);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=lu}return new a(i,t)}function lw(e){return"-"+e.toLowerCase()}function uw(e){return e.charAt(1).toUpperCase()}const cw=Pp([Tp,rw,Dp,Mp,jp],"html"),uu=Pp([Tp,nw,Dp,Mp,jp],"svg");function fw(e){return e.join(" ").trim()}var Ii={},cu,qp;function dw(){if(qp)return cu;qp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
21
- `,u="/",c="*",f="",p="comment",d="declaration";function m(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var b=1,w=1;function S(T){var j=T.match(t);j&&(b+=j.length);var q=T.lastIndexOf(l);w=~q?T.length-q:w+T.length}function h(){var T={line:b,column:w};return function(j){return j.position=new y(T),_(),j}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function C(T){var j=new Error(g.source+":"+b+":"+w+": "+T);if(j.reason=T,j.filename=g.source,j.line=b,j.column=w,j.source=v,!g.silent)throw j}function x(T){var j=T.exec(v);if(j){var q=j[0];return S(q),v=v.slice(q.length),j}}function _(){x(r)}function E(T){var j;for(T=T||[];j=A();)j!==!1&&T.push(j);return T}function A(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(c!=v.charAt(j)||u!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return C("End of comment missing");var q=v.slice(2,j-2);return w+=2,S(q),v=v.slice(j),w+=2,T({type:p,comment:q})}}function O(){var T=h(),j=x(i);if(j){if(A(),!x(a))return C("property missing ':'");var q=x(n),H=T({type:d,property:k(j[0].replace(e,f)),value:q?k(q[0].replace(e,f)):f});return x(o),H}}function F(){var T=[];E(T);for(var j;j=O();)j!==!1&&(T.push(j),E(T));return T}return _(),F()}function k(v){return v?v.replace(s,f):f}return cu=m,cu}var $p;function pw(){if($p)return Ii;$p=1;var e=Ii&&Ii.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=r;const t=e(dw());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const o=(0,t.default)(i),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;s?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Ii}var ka={},zp;function mw(){if(zp)return ka;zp=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,n=function(u){return!u||r.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},s=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),n(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,s):u=u.replace(i,s),u.replace(t,o))};return ka.camelCase=l,ka}var wa,Rp;function hw(){if(Rp)return wa;Rp=1;var e=wa&&wa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(pw()),r=mw();function i(a,n){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,r.camelCase)(s,n)]=l)}),o}return i.default=i,wa=i,wa}var gw=hw();const yw=jr(gw),Up=Bp("end"),fu=Bp("start");function Bp(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function vw(e){const t=fu(e),r=Up(e);if(t&&r)return{start:t,end:r}}function Sa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vp(e.position):"start"in e||"end"in e?Vp(e):"line"in e||"column"in e?du(e):""}function du(e){return Hp(e&&e.line)+":"+Hp(e&&e.column)}function Vp(e){return du(e&&e.start)+"-"+du(e&&e.end)}function Hp(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",n={},o=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?a=t:!n.cause&&t&&(o=!0,a=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?n.ruleId=i:(n.source=i.slice(0,l),n.ruleId=i.slice(l+1))}if(!n.place&&n.ancestors&&n.ancestors){const l=n.ancestors[n.ancestors.length-1];l&&(n.place=l.position)}const s=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=Sa(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=o&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Lt.prototype.file="",Lt.prototype.name="",Lt.prototype.reason="",Lt.prototype.message="",Lt.prototype.stack="",Lt.prototype.column=void 0,Lt.prototype.line=void 0,Lt.prototype.ancestors=void 0,Lt.prototype.cause=void 0,Lt.prototype.fatal=void 0,Lt.prototype.place=void 0,Lt.prototype.ruleId=void 0,Lt.prototype.source=void 0;const pu={}.hasOwnProperty,bw=new Map,kw=/[A-Z]/g,ww=new Set(["table","tbody","thead","tfoot","tr"]),Sw=new Set(["td","th"]),Wp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Cw(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Tw(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");i=Iw(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?uu:cw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Kp(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function Kp(e,t,r){if(t.type==="element")return Ew(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Aw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Ow(e,t,r);if(t.type==="mdxjsEsm")return xw(e,t);if(t.type==="root")return _w(e,t,r);if(t.type==="text")return Pw(e,t)}function Ew(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=uu,e.schema=a),e.ancestors.push(t);const n=Jp(e,t.tagName,!1),o=Nw(e,t);let s=hu(e,t);return ww.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!ew(l):!0})),Gp(e,o,n,t),mu(o,s),e.ancestors.pop(),e.schema=i,e.create(t,n,o,r)}function Aw(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ca(e,t.position)}function xw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ca(e,t.position)}function Ow(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=uu,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:Jp(e,t.name,!0),o=Fw(e,t),s=hu(e,t);return Gp(e,o,n,t),mu(o,s),e.ancestors.pop(),e.schema=i,e.create(t,n,o,r)}function _w(e,t,r){const i={};return mu(i,hu(e,t)),e.create(t,e.Fragment,i,r)}function Pw(e,t){return t.value}function Gp(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function mu(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Iw(e,t,r){return i;function i(a,n,o,s){const u=Array.isArray(o.children)?r:t;return s?u(n,o,s):u(n,o)}}function Tw(e,t){return r;function r(i,a,n,o){const s=Array.isArray(n.children),l=fu(i);return t(a,n,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Nw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&pu.call(t.properties,a)){const n=Dw(e,a,t.properties[a]);if(n){const[o,s]=n;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Sw.has(t.tagName)?i=s:r[o]=s}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Fw(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const n=i.data.estree.body[0];n.type;const o=n.expression;o.type;const s=o.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Ca(e,t.position);else{const a=i.name;let n;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const s=i.value.data.estree.body[0];s.type,n=e.evaluater.evaluateExpression(s.expression)}else Ca(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function hu(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:bw;for(;++i<t.children.length;){const n=t.children[i];let o;if(e.passKeys){const l=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=Kp(e,n,o);s!==void 0&&r.push(s)}return r}function Dw(e,t,r){const i=sw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?J0(r):fw(r)),i.property==="style"){let a=typeof r=="object"?r:Mw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=jw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?iw[i.property]||i.property:i.attribute,r]}}function Mw(e,t){try{return yw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Wp+"#cannot-parse-style-attribute",a}}function Jp(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,o;for(;++n<a.length;){const s=Op(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(n&&s.type==="Literal"),optional:!1}:s}i=o}else i=Op(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return pu.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ca(e)}function Ca(e,t){const r=new Lt("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=Wp+"#cannot-handle-mdx-estrees-without-createevaluater",r}function jw(e){const t={};let r;for(r in e)pu.call(e,r)&&(t[Lw(r)]=e[r]);return t}function Lw(e){let t=e.replace(kw,qw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qw(e){return"-"+e.toLowerCase()}const gu={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"]},$w={};function yu(e,t){const r=$w,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Yp(e,i,a)}function Yp(e,t,r){if(zw(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 Xp(e.children,t,r)}return Array.isArray(e)?Xp(e,t,r):""}function Xp(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Yp(e[a],t,r);return i.join("")}function zw(e){return!!(e&&typeof e=="object")}const Zp=document.createElement("i");function vu(e){const t="&"+e+";";Zp.innerHTML=t;const r=Zp.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function tr(e,t,r,i){const a=e.length;let n=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)o=Array.from(i),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);n<i.length;)o=i.slice(n,n+1e4),o.unshift(t,0),e.splice(...o),n+=1e4,t+=1e4}function sr(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const Qp={}.hasOwnProperty;function em(e){const t={};let r=-1;for(;++r<e.length;)Rw(t,e[r]);return t}function Rw(e,t){let r;for(r in t){const a=(Qp.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let o;if(n)for(o in n){Qp.call(a,o)||(a[o]=[]);const s=n[o];Uw(a[o],Array.isArray(s)?s:s?[s]:[])}}}function Uw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);tr(e,0,0,i)}function tm(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 wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=pn(/[A-Za-z]/),qt=pn(/[\dA-Za-z]/),Bw=pn(/[#-'*+\--9=?A-Z^-~]/);function No(e){return e!==null&&(e<32||e===127)}const bu=pn(/\d/),Vw=pn(/[\dA-Fa-f]/),Hw=pn(/[!-/:-@[-`{-~]/);function me(e){return e!==null&&e<-2}function dt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Fo=pn(new RegExp("\\p{P}|\\p{S}","u")),Yn=pn(/\s/);function pn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ti(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let o="";if(n===37&&qt(e.charCodeAt(r+1))&&qt(e.charCodeAt(r+2)))a=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(o=String.fromCharCode(n));else if(n>55295&&n<57344){const s=e.charCodeAt(r+1);n<56320&&s>56319&&s<57344?(o=String.fromCharCode(n,s),a=1):o="�"}else o=String.fromCharCode(n);o&&(t.push(e.slice(i,r),encodeURIComponent(o)),i=r+a+1,o=""),a&&(r+=a,a=0)}return t.join("")+e.slice(i)}function Be(e,t,r,i){const a=i?i-1:Number.POSITIVE_INFINITY;let n=0;return o;function o(l){return Me(l)?(e.enter(r),s(l)):t(l)}function s(l){return Me(l)&&n++<a?(e.consume(l),s):(e.exit(r),t(l))}}const Ww={tokenize:Kw};function Kw(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),n(s)}function n(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return me(s)?(e.consume(s),e.exit("chunkText"),n):(e.consume(s),o)}}const Gw={tokenize:Jw},rm={tokenize:Yw};function Jw(e){const t=this,r=[];let i=0,a,n,o;return s;function s(w){if(i<r.length){const S=r[i];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const S=t.events.length;let h=S,y;for(;h--;)if(t.events[h][0]==="exit"&&t.events[h][1].type==="chunkFlow"){y=t.events[h][1].end;break}g(i);let C=S;for(;C<t.events.length;)t.events[C][1].end={...y},C++;return tr(t.events,h+1,0,t.events.slice(S)),t.events.length=C,u(w)}return s(w)}function u(w){if(i===r.length){if(!a)return p(w);if(a.currentConstruct&&a.currentConstruct.concrete)return m(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rm,c,f)(w)}function c(w){return a&&b(),g(i),p(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,o=t.now().offset,m(w)}function p(w){return t.containerState={},e.attempt(rm,d,m)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),p(w)}function m(w){if(w===null){a&&b(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return me(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,s):(e.consume(w),k)}function v(w,S){const h=t.sliceStream(w);if(S&&h.push(null),w.previous=n,n&&(n.next=w),n=w,a.defineSkip(w.start),a.write(h),t.parser.lazy[w.start.line]){let y=a.events.length;for(;y--;)if(a.events[y][1].start.offset<o&&(!a.events[y][1].end||a.events[y][1].end.offset>o))return;const C=t.events.length;let x=C,_,E;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(_){E=t.events[x][1].end;break}_=!0}for(g(i),y=C;y<t.events.length;)t.events[y][1].end={...E},y++;tr(t.events,x+1,0,t.events.slice(C)),t.events.length=y}}function g(w){let S=r.length;for(;S-- >w;){const h=r[S];t.containerState=h[1],h[0].exit.call(t,e)}r.length=w}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Yw(e,t,r){return Be(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ni(e){if(e===null||dt(e)||Yn(e))return 1;if(Fo(e))return 2}function Do(e,t,r){const i=[];let a=-1;for(;++a<e.length;){const n=e[a].resolveAll;n&&!i.includes(n)&&(t=n(t,r),i.push(n))}return t}const ku={name:"attention",resolveAll:Xw,tokenize:Zw};function Xw(e,t){let r=-1,i,a,n,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[i][1].end},p={...e[r][1].start};nm(f,-l),nm(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},n={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[i][1].end={...o.start},e[r][1].start={...s.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=sr(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=sr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",n,t]]),u=sr(u,Do(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=sr(u,[["exit",n,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=sr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,tr(e,i-1,r-i+3,u),r=i+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Zw(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ni(i);let n;return o;function o(l){return n=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===n)return e.consume(l),s;const u=e.exit("attentionSequence"),c=Ni(l),f=!c||c===2&&a||r.includes(l),p=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!p)),u._close=!!(n===42?p:p&&(c||!f)),t(l)}}function nm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qw={name:"autolink",tokenize:eS};function eS(e,t,r){let i=0;return a;function a(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return Ut(d)?(e.consume(d),o):d===64?r(d):u(d)}function o(d){return d===43||d===45||d===46||qt(d)?(i=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||qt(d))&&i++<32?(e.consume(d),s):(i=0,u(d))}function l(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||No(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Bw(d)?(e.consume(d),u):r(d)}function c(d){return qt(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),i=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||qt(d))&&i++<63){const m=d===45?p:f;return e.consume(d),m}return r(d)}}const Ea={partial:!0,tokenize:tS};function tS(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||me(n)?t(n):r(n)}}const im={continuation:{tokenize:nS},exit:iS,name:"blockQuote",tokenize:rS};function rS(e,t,r){const i=this;return a;function a(o){if(o===62){const s=i.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),n}return r(o)}function n(o){return Me(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function nS(e,t,r){const i=this;return a;function a(o){return Me(o)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):n(o)}function n(o){return e.attempt(im,t,r)(o)}}function iS(e){e.exit("blockQuote")}const am={name:"characterEscape",tokenize:aS};function aS(e,t,r){return i;function i(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),a}function a(n){return Hw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const om={name:"characterReference",tokenize:oS};function oS(e,t,r){const i=this;let a=0,n,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),n=31,o=qt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,o=Vw,c):(e.enter("characterReferenceValue"),n=7,o=bu,c(f))}function c(f){if(f===59&&a){const p=e.exit("characterReferenceValue");return o===qt&&!vu(i.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&a++<n?(e.consume(f),c):r(f)}}const sm={partial:!0,tokenize:lS},lm={concrete:!0,name:"codeFenced",tokenize:sS};function sS(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,o=0,s;return l;function l(y){return u(y)}function u(y){const C=i.events[i.events.length-1];return n=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===s?(o++,e.consume(y),c):o<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||me(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(sm,k,S)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):Me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,d,"whitespace")(y)):y===96&&y===s?r(y):(e.consume(y),p)}function d(y){return y===null||me(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===s?r(y):(e.consume(y),m)}function k(y){return e.attempt(a,S,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Be(e,b,"linePrefix",n+1)(y):b(y)}function b(y){return y===null||me(y)?e.check(sm,k,S)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||me(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function S(y){return e.exit("codeFenced"),t(y)}function h(y,C,x){let _=0;return E;function E(j){return y.enter("lineEnding"),y.consume(j),y.exit("lineEnding"),A}function A(j){return y.enter("codeFencedFence"),Me(j)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===s?(y.enter("codeFencedFenceSequence"),F(j)):x(j)}function F(j){return j===s?(_++,y.consume(j),F):_>=o?(y.exit("codeFencedFenceSequence"),Me(j)?Be(y,T,"whitespace")(j):T(j)):x(j)}function T(j){return j===null||me(j)?(y.exit("codeFencedFence"),C(j)):x(j)}}}function lS(e,t,r){const i=this;return a;function a(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n)}function n(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}const wu={name:"codeIndented",tokenize:cS},uS={partial:!0,tokenize:fS};function cS(e,t,r){const i=this;return a;function a(u){return e.enter("codeIndented"),Be(e,n,"linePrefix",5)(u)}function n(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):me(u)?e.attempt(uS,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||me(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function fS(e,t,r){const i=this;return a;function a(o){return i.parser.lazy[i.now().line]?r(o):me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(o)}function n(o){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):me(o)?a(o):r(o)}}const dS={name:"codeText",previous:mS,resolve:pS,tokenize:hS};function pS(e){let t=e.length-4,r=3,i,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function mS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hS(e,t,r){let i=0,a,n;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),i++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(n=e.enter("codeTextSequence"),a=0,c(f)):me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||me(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",u(f))}}class gS{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 i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const a=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&Aa(this.left,i),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),Aa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Aa(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);Aa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Aa(this.left,r.reverse())}}}function Aa(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 um(e){const t={};let r=-1,i,a,n,o,s,l,u;const c=new gS(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(i=c.get(r),r&&i[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,n=0,n<l.length&&l[n][1].type==="lineEndingBlank"&&(n+=2),n<l.length&&l[n][1].type==="content"))for(;++n<l.length&&l[n][1].type!=="content";)l[n][1].type==="chunkText"&&(l[n][1]._isInFirstContentOfListItem=!0,n++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,yS(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(o=c.get(n),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=n);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},s=c.slice(a,r),s.unshift(i),c.splice(a,r-a+1,s))}}return tr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function yS(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let o=r._tokenizer;o||(o=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let c,f,p=-1,d=r,m=0,k=0;const v=[k];for(;d;){for(;e.get(++a)[1]!==d;);n.push(a),d._tokenizer||(c=i.sliceStream(d),d.next||c.push(null),f&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(k=p+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),p=v.length;p--;){const g=s.slice(v[p],v[p+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}const vS={resolve:kS,tokenize:wS},bS={partial:!0,tokenize:SS};function kS(e){return um(e),e}function wS(e,t){let r;return i;function i(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?n(s):me(s)?e.check(bS,o,n)(s):(e.consume(s),a)}function n(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function SS(e,t,r){const i=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(o){if(o===null||me(o))return r(o);const s=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,r,t)(o)}}function cm(e,t,r,i,a,n,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(i),e.enter(a),e.enter(n),e.consume(g),e.exit(n),p):g===null||g===32||g===41||No(g)?r(g):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(g))}function p(g){return g===62?(e.enter(n),e.consume(g),e.exit(n),e.exit(a),e.exit(i),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(s),p(g)):g===null||g===60||me(g)?r(g):(e.consume(g),g===92?m:d)}function m(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function k(g){return!c&&(g===null||g===41||dt(g))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),t(g)):c<u&&g===40?(e.consume(g),c++,k):g===41?(e.consume(g),c--,k):g===null||g===32||g===40||No(g)?r(g):(e.consume(g),g===92?v:k)}function v(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function fm(e,t,r,i,a,n){const o=this;let s=0,l;return u;function u(d){return e.enter(i),e.enter(a),e.consume(d),e.exit(a),e.enter(n),c}function c(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):me(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||me(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function dm(e,t,r,i,a,n){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(i),e.enter(a),e.consume(p),e.exit(a),o=p===40?41:p,l):r(p)}function l(p){return p===o?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),t):(e.enter(n),u(p))}function u(p){return p===o?(e.exit(n),l(o)):p===null?r(p):me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||me(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function xa(e,t){let r;return i;function i(a){return me(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):Me(a)?Be(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}const CS={name:"definition",tokenize:AS},ES={partial:!0,tokenize:xS};function AS(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),o(d)}function o(d){return fm.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return a=wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return dt(d)?xa(e,u)(d):u(d)}function u(d){return cm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(ES,f,f)(d)}function f(d){return Me(d)?Be(e,p,"whitespace")(d):p(d)}function p(d){return d===null||me(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function xS(e,t,r){return i;function i(s){return dt(s)?xa(e,a)(s):r(s)}function a(s){return dm(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function n(s){return Me(s)?Be(e,o,"whitespace")(s):o(s)}function o(s){return s===null||me(s)?t(s):r(s)}}const OS={name:"hardBreakEscape",tokenize:_S};function _S(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return me(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const PS={name:"headingAtx",resolve:IS,tokenize:TS};function IS(e,t){let r=e.length-2,i=3,a,n;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},n={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},tr(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function TS(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(e.consume(c),o):c===null||dt(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||me(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const NS=["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"],pm=["pre","script","style","textarea"],FS={concrete:!0,name:"htmlFlow",resolveTo:jS,tokenize:LS},DS={partial:!0,tokenize:$S},MS={partial:!0,tokenize:qS};function jS(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 LS(e,t,r){const i=this;let a,n,o,s,l;return u;function u(I){return c(I)}function c(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),f}function f(I){return I===33?(e.consume(I),p):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Ut(I)?(e.consume(I),o=String.fromCharCode(I),v):r(I)}function p(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,s=0,m):Ut(I)?(e.consume(I),a=4,i.interrupt?t:P):r(I)}function d(I){return I===45?(e.consume(I),i.interrupt?t:P):r(I)}function m(I){const D="CDATA[";return I===D.charCodeAt(s++)?(e.consume(I),s===D.length?i.interrupt?t:O:m):r(I)}function k(I){return Ut(I)?(e.consume(I),o=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const D=I===47,L=o.toLowerCase();return!D&&!n&&pm.includes(L)?(a=1,i.interrupt?t(I):O(I)):NS.includes(o.toLowerCase())?(a=6,D?(e.consume(I),g):i.interrupt?t(I):O(I)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(I):n?b(I):w(I))}return I===45||qt(I)?(e.consume(I),o+=String.fromCharCode(I),v):r(I)}function g(I){return I===62?(e.consume(I),i.interrupt?t:O):r(I)}function b(I){return Me(I)?(e.consume(I),b):E(I)}function w(I){return I===47?(e.consume(I),E):I===58||I===95||Ut(I)?(e.consume(I),S):Me(I)?(e.consume(I),w):E(I)}function S(I){return I===45||I===46||I===58||I===95||qt(I)?(e.consume(I),S):h(I)}function h(I){return I===61?(e.consume(I),y):Me(I)?(e.consume(I),h):w(I)}function y(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(e.consume(I),l=I,C):Me(I)?(e.consume(I),y):x(I)}function C(I){return I===l?(e.consume(I),l=null,_):I===null||me(I)?r(I):(e.consume(I),C)}function x(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||dt(I)?h(I):(e.consume(I),x)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function E(I){return I===62?(e.consume(I),A):r(I)}function A(I){return I===null||me(I)?O(I):Me(I)?(e.consume(I),A):r(I)}function O(I){return I===45&&a===2?(e.consume(I),q):I===60&&a===1?(e.consume(I),H):I===62&&a===4?(e.consume(I),M):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),Z):me(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(DS,R,F)(I)):I===null||me(I)?(e.exit("htmlFlowData"),F(I)):(e.consume(I),O)}function F(I){return e.check(MS,T,R)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),j}function j(I){return I===null||me(I)?F(I):(e.enter("htmlFlowData"),O(I))}function q(I){return I===45?(e.consume(I),P):O(I)}function H(I){return I===47?(e.consume(I),o="",Y):O(I)}function Y(I){if(I===62){const D=o.toLowerCase();return pm.includes(D)?(e.consume(I),M):O(I)}return Ut(I)&&o.length<8?(e.consume(I),o+=String.fromCharCode(I),Y):O(I)}function Z(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),M):I===45&&a===2?(e.consume(I),P):O(I)}function M(I){return I===null||me(I)?(e.exit("htmlFlowData"),R(I)):(e.consume(I),M)}function R(I){return e.exit("htmlFlow"),t(I)}}function qS(e,t,r){const i=this;return a;function a(o){return me(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):r(o)}function n(o){return i.parser.lazy[i.now().line]?r(o):t(o)}}function $S(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ea,t,r)}}const zS={name:"htmlText",tokenize:RS};function RS(e,t,r){const i=this;let a,n,o;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),h):P===63?(e.consume(P),w):Ut(P)?(e.consume(P),x):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,m):Ut(P)?(e.consume(P),b):r(P)}function c(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),p):me(P)?(o=f,H(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?p(P):f(P)}function m(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:m):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):me(P)?(o=k,H(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?q(P):me(P)?(o=b,H(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),S):me(P)?(o=w,H(P)):(e.consume(P),w)}function S(P){return P===62?q(P):w(P)}function h(P){return Ut(P)?(e.consume(P),y):r(P)}function y(P){return P===45||qt(P)?(e.consume(P),y):C(P)}function C(P){return me(P)?(o=C,H(P)):Me(P)?(e.consume(P),C):q(P)}function x(P){return P===45||qt(P)?(e.consume(P),x):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),q):P===58||P===95||Ut(P)?(e.consume(P),E):me(P)?(o=_,H(P)):Me(P)?(e.consume(P),_):q(P)}function E(P){return P===45||P===46||P===58||P===95||qt(P)?(e.consume(P),E):A(P)}function A(P){return P===61?(e.consume(P),O):me(P)?(o=A,H(P)):Me(P)?(e.consume(P),A):_(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),a=P,F):me(P)?(o=O,H(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function F(P){return P===a?(e.consume(P),a=void 0,j):P===null?r(P):me(P)?(o=F,H(P)):(e.consume(P),F)}function T(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||dt(P)?_(P):(e.consume(P),T)}function j(P){return P===47||P===62||dt(P)?_(P):r(P)}function q(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function H(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return Me(P)?Be(e,Z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Z(P)}function Z(P){return e.enter("htmlTextData"),o(P)}}const Su={name:"labelEnd",resolveAll:HS,resolveTo:WS,tokenize:KS},US={tokenize:GS},BS={tokenize:JS},VS={tokenize:YS};function HS(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==r.length&&tr(e,0,e.length,r),e}function WS(e,t){let r=e.length,i=0,a,n,o,s;for(;r--;)if(a=e[r][1],n){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(n=r,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(o=r);const l={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[n][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=sr(s,e.slice(n+1,n+i+3)),s=sr(s,[["enter",c,t]]),s=sr(s,Do(t.parser.constructs.insideSpan.null,e.slice(n+i+4,o-3),t)),s=sr(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=sr(s,e.slice(o+1)),s=sr(s,[["exit",l,t]]),tr(e,n,e.length,s),e}function KS(e,t,r){const i=this;let a=i.events.length,n,o;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){n=i.events[a][1];break}return s;function s(p){return n?n._inactive?f(p):(o=i.parser.defined.includes(wr(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(US,c,o?c:f)(p):p===91?e.attempt(BS,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(VS,c,f)(p)}function c(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function GS(e,t,r){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return dt(f)?xa(e,n)(f):n(f)}function n(f){return f===41?c(f):cm(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return dt(f)?xa(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?dm(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?xa(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function JS(e,t,r){const i=this;return a;function a(s){return fm.call(i,e,n,o,"reference","referenceMarker","referenceString")(s)}function n(s){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function YS(e,t,r){return i;function i(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),a}function a(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const XS={name:"labelStartImage",resolveAll:Su.resolveAll,tokenize:ZS};function ZS(e,t,r){const i=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),n}function n(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const QS={name:"labelStartLink",resolveAll:Su.resolveAll,tokenize:eC};function eC(e,t,r){const i=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),n}function n(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const Cu={name:"lineEnding",tokenize:tC};function tC(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const Mo={name:"thematicBreak",tokenize:rC};function rC(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||me(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Me(u)?Be(e,s,"whitespace")(u):s(u))}}const Xt={continuation:{tokenize:oC},exit:lC,name:"list",tokenize:aC},nC={partial:!0,tokenize:uC},iC={partial:!0,tokenize:sC};function aC(e,t,r){const i=this,a=i.events[i.events.length-1];let n=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(d){const m=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:bu(d)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Mo,r,u)(d):u(d);if(!i.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return bu(d)&&++o<10?(e.consume(d),l):(!i.interrupt||o<2)&&(i.containerState.marker?d===i.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):r(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||d,e.check(Ea,i.interrupt?r:c,e.attempt(nC,p,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function oC(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Ea,a,n);function a(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(s)}function n(s){return i.containerState.furtherBlankLines||!Me(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(iC,t,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Xt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function sC(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(n):r(n)}}function lC(e){e.exit(this.containerState.type)}function uC(e,t,r){const i=this;return Be(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(n){const o=i.events[i.events.length-1];return!Me(n)&&o&&o[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const mm={name:"setextUnderline",resolveTo:cC,tokenize:fC};function cC(e,t){let r=e.length,i,a,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",o,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function fC(e,t,r){const i=this;let a;return n;function n(u){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||me(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const dC={tokenize:pC};function pC(e){const t=this,r=e.attempt(Ea,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(vS,a)),"linePrefix")));return r;function i(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const mC={resolveAll:gm()},hC=hm("string"),gC=hm("text");function hm(e){return{resolveAll:gm(e==="text"?yC:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,o,s);return o;function o(c){return u(c)?n(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),n(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=a[c];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function gm(e){return t;function t(r,i){let a=-1,n;for(;++a<=r.length;)n===void 0?r[a]&&r[a][1].type==="data"&&(n=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==n+2&&(r[n][1].end=r[a-1][1].end,r.splice(n+2,a-n-2),a=n+2),n=void 0);return e?e(r,i):r}}function yC(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 i=e[r-1][1],a=t.sliceStream(i);let n=a.length,o=-1,s=0,l;for(;n--;){const u=a[n];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?o:i.start._bufferIndex+o,_index:i.start._index+n,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const vC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:CS},disable:{null:[]},document:{42:Xt,43:Xt,45:Xt,48:Xt,49:Xt,50:Xt,51:Xt,52:Xt,53:Xt,54:Xt,55:Xt,56:Xt,57:Xt,62:im},flow:{35:PS,42:Mo,45:[mm,Mo],60:FS,61:mm,95:Mo,96:lm,126:lm},flowInitial:{[-2]:wu,[-1]:wu,32:wu},insideSpan:{null:[ku,mC]},string:{38:om,92:am},text:{[-5]:Cu,[-4]:Cu,[-3]:Cu,33:XS,38:om,42:ku,60:[Qw,zS],91:QS,92:[OS,am],93:Su,95:ku,96:dS}},Symbol.toStringTag,{value:"Module"}));function bC(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},n=[];let o=[],s=[];const l={attempt:C(h),check:C(y),consume:b,enter:w,exit:S,interrupt:C(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(A){return o=sr(o,A),v(),o[o.length-1]!==null?[]:(x(t,0),u.events=Do(n,u.events,u),u.events)}function p(A,O){return wC(d(A),O)}function d(A){return kC(o,A)}function m(){const{_bufferIndex:A,_index:O,line:F,column:T,offset:j}=i;return{_bufferIndex:A,_index:O,line:F,column:T,offset:j}}function k(A){a[A.line]=A.column,E()}function v(){let A;for(;i._index<o.length;){const O=o[i._index];if(typeof O=="string")for(A=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===A&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(A){c=c(A)}function b(A){me(A)?(i.line++,i.column=1,i.offset+=A===-3?2:1,E()):A!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=A}function w(A,O){const F=O||{};return F.type=A,F.start=m(),u.events.push(["enter",F,u]),s.push(F),F}function S(A){const O=s.pop();return O.end=m(),u.events.push(["exit",O,u]),O}function h(A,O){x(A,O.from)}function y(A,O){O.restore()}function C(A,O){return F;function F(T,j,q){let H,Y,Z,P;return Array.isArray(T)?R(T):"tokenize"in T?R([T]):M(T);function M(B){return V;function V(W){const K=W!==null&&B[W],X=W!==null&&B.null,z=[...Array.isArray(K)?K:K?[K]:[],...Array.isArray(X)?X:X?[X]:[]];return R(z)(W)}}function R(B){return H=B,Y=0,B.length===0?q:I(B[Y])}function I(B){return V;function V(W){return P=_(),Z=B,B.partial||(u.currentConstruct=B),B.name&&u.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(O?Object.assign(Object.create(u),O):u,l,D,L)(W)}}function D(B){return A(Z,P),j}function L(B){return P.restore(),++Y<H.length?I(H[Y]):q}}}function x(A,O){A.resolveAll&&!n.includes(A)&&n.push(A),A.resolve&&tr(u.events,O,u.events.length-O,A.resolve(u.events.slice(O),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function _(){const A=m(),O=u.previous,F=u.currentConstruct,T=u.events.length,j=Array.from(s);return{from:T,restore:q};function q(){i=A,u.previous=O,u.currentConstruct=F,u.events.length=T,s=j,E()}}function E(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function kC(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let o;if(r===a)o=[e[r].slice(i,n)];else{if(o=e.slice(r,a),i>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}n>0&&o.push(e[a].slice(0,n))}return o}function wC(e,t){let r=-1;const i=[];let a;for(;++r<e.length;){const n=e[r];let o;if(typeof n=="string")o=n;else switch(n){case-5:{o="\r";break}case-4:{o=`
22
- `;break}case-3:{o=`\r
23
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(n)}a=n===-2,i.push(o)}return i.join("")}function SC(e){const i={constructs:em([vC,...(e||{}).extensions||[]]),content:a(Ww),defined:[],document:a(Gw),flow:a(dC),lazy:{},string:a(hC),text:a(gC)};return i;function a(n){return o;function o(s){return bC(i,n,s)}}}function CC(e){for(;!um(e););return e}const ym=/[\0\t\n\r]/g;function EC(){let e=1,t="",r=!0,i;return a;function a(n,o,s){const l=[];let u,c,f,p,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(o||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(ym.lastIndex=f,u=ym.exec(n),p=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(p),!u){t=n.slice(f);break}if(d===10&&f===p&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<p&&(l.push(n.slice(f,p)),e+=p-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=p+1}return s&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const AC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xC(e){return e.replace(AC,OC)}function OC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return tm(r.slice(n?2:1),n?16:10)}return vu(r)||e}const vm={}.hasOwnProperty;function _C(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),PC(r)(CC(SC(r).document().write(EC()(e,t,!0))))}function PC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Se),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(X),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:n(z,o),codeText:n($,o),codeTextData:_,data:_,codeFlowValue:_,definition:n(J),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:n(G),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,o),htmlFlowData:_,htmlText:n(ue,o),htmlTextData:_,image:n(ye),label:o,link:n(Se),listItem:n(Pe),listItemValue:p,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:n(ie),strong:n(We),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:K,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:V,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:l(g),codeText:l(j),codeTextData:E,data:E,definition:l(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(F),htmlFlowData:E,htmlText:l(T),htmlTextData:E,image:l(H),label:Z,labelText:Y,lineEnding:A,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:D,resourceDestinationString:P,resourceTitleString:M,resource:R,setextHeading:l(x),setextHeadingLineSequence:C,setextHeadingText:y,strong:l(),thematicBreak:l()}};bm(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},ge=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")ge.push(ce);else{const pt=ge.pop();ce=a(Q,pt,ce)}for(ce=-1;++ce<Q.length;){const pt=t[Q[ce][0]];vm.call(pt,Q[ce][1].type)&&pt[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const pt=te.tokenStack[te.tokenStack.length-1];(pt[1]||km).call(te,void 0,pt[0])}for(ee.position={start:mn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:mn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)ee=t.transforms[ce](ee)||ee;return ee}function a(Q,ee,te){let ge=ee-1,ce=-1,pt=!1,qe,Ke,St,xt;for(;++ge<=te;){const ct=Q[ge];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ce++:ce--,xt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(qe&&!xt&&!ce&&!St&&(St=ge),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!ce&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ce===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(qe){let Ct=ge;for(Ke=void 0;Ct--;){const yt=Q[Ct];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;Ke&&(Q[Ke][1].type="lineEndingBlank",pt=!0),yt[1].type="lineEnding",Ke=Ct}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}St&&(!Ke||St<Ke)&&(qe._spread=!0),qe.end=Object.assign({},Ke?Q[Ke][1].start:ct[1].end),Q.splice(Ke||ge,0,["exit",qe,ct[2]]),ge++,te++}if(ct[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};qe=Ct,Q.splice(ge,0,["enter",Ct,ct[2]]),ge++,te++,St=void 0,xt=!0}}}return Q[ee][1]._spread=pt,te}function n(Q,ee){return te;function te(ge){s.call(this,Q(ge),ge),ee&&ee.call(this,ge)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(Q,ee,te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,te||void 0]),Q.position={start:mn(ee.start),end:void 0}}function l(Q){return ee;function ee(te){Q&&Q.call(this,te),u.call(this,te)}}function u(Q,ee){const te=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==Q.type&&(ee?ee.call(this,Q,ge[0]):(ge[1]||km).call(this,Q,ge[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Sa({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=mn(Q.end)}function c(){return yu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function m(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function S(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function h(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Q).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function C(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let ge=te[te.length-1];(!ge||ge.type!=="text")&&(ge=ut(),ge.position={start:mn(Q.start),end:void 0},te.push(ge)),this.stack.push(ge)}function E(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=mn(Q.end)}function A(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=mn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),E.call(this,Q))}function O(){this.data.atHardBreak=!0}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function T(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function j(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function q(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function H(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Y(Q){const ee=this.sliceSerialize(Q),te=this.stack[this.stack.length-2];te.label=xC(ee),te.identifier=wr(ee).toLowerCase()}function Z(){const Q=this.stack[this.stack.length-1],ee=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const ge=Q.children;te.children=ge}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function M(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function R(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function D(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function L(Q){this.data.characterReferenceType=Q.type}function B(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let ge;te?(ge=tm(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=vu(ee);const ce=this.stack[this.stack.length-1];ce.value+=ge}function V(Q){const ee=this.stack.pop();ee.position.end=mn(Q.end)}function W(Q){E.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function K(Q){E.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function X(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:0,children:[]}}function re(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ye(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function ke(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function We(){return{type:"strong",children:[]}}function ut(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function mn(e){return{line:e.line,column:e.column,offset:e.offset}}function bm(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?bm(e,i):IC(e,i)}}function IC(e,t){let r;for(r in t)if(vm.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function km(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sa({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sa({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sa({start:t.start,end:t.end})+") is still open")}function TC(e){const t=this;t.parser=r;function r(i){return _C(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function NC(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 FC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
- `}]}function DC(e,t){const r=t.value?t.value+`
25
- `:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let n={type:"element",tagName:"code",properties:i,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 MC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Ti(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let o,s=e.footnoteCounts.get(i);s===void 0?(s=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=n+1,s+=1,e.footnoteCounts.set(i,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function qC(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 $C(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function wm(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),n=a[0];n&&n.type==="text"?n.value="["+n.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=i:a.push({type:"text",value:i}),a}function zC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return wm(e,t);const a={src:Ti(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function RC(e,t){const r={src:Ti(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 i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function UC(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function BC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return wm(e,t);const a={href:Ti(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VC(e,t){const r={href:Ti(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function HC(e,t,r){const i=e.all(t),a=r?WC(r):Sm(t),n={},o=[];if(typeof t.checked=="boolean"){const c=i[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let s=-1;for(;++s<i.length;){const c=i[s];(a||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
26
- `}),c.type==="element"&&c.tagName==="p"&&!a?o.push(...c.children):o.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:n,children:o};return e.patch(t,u),e.applyData(t,u)}function WC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Sm(r[i])}return t}function Sm(e){const t=e.spread;return t??e.children.length>1}function KC(e,t){const r={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<i.length;){const o=i[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function GC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function YC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function XC(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),a.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=fu(t.children[1]),l=Up(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function ZC(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],p={},d=o?o[l]:void 0;d&&(p.align=d);let m={type:"element",tagName:n,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function QC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Cm=9,Em=32;function eE(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(Am(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(Am(t.slice(a),a>0,!1)),n.join("")}function Am(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===Cm||n===Em;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===Cm||n===Em;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function tE(e,t){const r={type:"text",value:eE(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function rE(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const nE={blockquote:NC,break:FC,code:DC,delete:MC,emphasis:jC,footnoteReference:LC,heading:qC,html:$C,imageReference:zC,image:RC,inlineCode:UC,linkReference:BC,link:VC,listItem:HC,list:KC,paragraph:GC,root:JC,strong:YC,table:XC,tableCell:QC,tableRow:ZC,text:tE,thematicBreak:rE,toml:jo,yaml:jo,definition:jo,footnoteDefinition:jo};function jo(){}const xm=-1,Lo=0,Oa=1,qo=2,Eu=3,Au=4,xu=5,Ou=6,Om=7,_m=8,iE=typeof self=="object"?self:globalThis,Pm=(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 iE[e](t)},aE=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,o]=t[a];switch(n){case Lo:case xm:return r(o,a);case Oa:{const s=r([],a);for(const l of o)s.push(i(l));return s}case qo:{const s=r({},a);for(const[l,u]of o)s[i(l)]=i(u);return s}case Eu:return r(new Date(o),a);case Au:{const{source:s,flags:l}=o;return r(new RegExp(s,l),a)}case xu:{const s=r(new Map,a);for(const[l,u]of o)s.set(i(l),i(u));return s}case Ou:{const s=r(new Set,a);for(const l of o)s.add(i(l));return s}case Om:{const{name:s,message:l}=o;return r(Pm(s,l),a)}case _m:return r(BigInt(o),a);case"BigInt":return r(Object(BigInt(o)),a);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return r(new DataView(s),o)}}return r(Pm(n,o),a)};return i},Im=e=>aE(new Map,e)(0),Fi="",{toString:oE}={},{keys:sE}=Object,_a=e=>{const t=typeof e;if(t!=="object"||!e)return[Lo,t];const r=oE.call(e).slice(8,-1);switch(r){case"Array":return[Oa,Fi];case"Object":return[qo,Fi];case"Date":return[Eu,Fi];case"RegExp":return[Au,Fi];case"Map":return[xu,Fi];case"Set":return[Ou,Fi];case"DataView":return[Oa,r]}return r.includes("Array")?[Oa,r]:r.includes("Error")?[Om,r]:[qo,r]},$o=([e,t])=>e===Lo&&(t==="function"||t==="symbol"),lE=(e,t,r,i)=>{const a=(o,s)=>{const l=i.push(o)-1;return r.set(s,l),l},n=o=>{if(r.has(o))return r.get(o);let[s,l]=_a(o);switch(s){case Lo:{let c=o;switch(l){case"bigint":s=_m,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([xm],o)}return a([s,c],o)}case Oa:{if(l){let p=o;return l==="DataView"?p=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(o)),a([l,[...p]],o)}const c=[],f=a([s,c],o);for(const p of o)c.push(n(p));return f}case qo:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return n(o.toJSON());const c=[],f=a([s,c],o);for(const p of sE(o))(e||!$o(_a(o[p])))&&c.push([n(p),n(o[p])]);return f}case Eu:return a([s,o.toISOString()],o);case Au:{const{source:c,flags:f}=o;return a([s,{source:c,flags:f}],o)}case xu:{const c=[],f=a([s,c],o);for(const[p,d]of o)(e||!($o(_a(p))||$o(_a(d))))&&c.push([n(p),n(d)]);return f}case Ou:{const c=[],f=a([s,c],o);for(const p of o)(e||!$o(_a(p)))&&c.push(n(p));return f}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return n},Tm=(e,{json:t,lossy:r}={})=>{const i=[];return lE(!(t||r),!!t,new Map,i)(e),i},zo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Im(Tm(e,t)):structuredClone(e):(e,t)=>Im(Tm(e,t));function uE(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 cE(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fE(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||uE,i=e.options.footnoteBackLabel||cE,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),p=Ti(f.toLowerCase());let d=0;const m=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){m.length>0&&m.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=c[c.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(...m)}else c.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...zo(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
28
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
29
- `}]}}const Ro=(function(e){if(e==null)return hE;if(typeof e=="function")return Uo(e);if(typeof e=="object")return Array.isArray(e)?dE(e):pE(e);if(typeof e=="string")return mE(e);throw new Error("Expected function, string, or object as test")});function dE(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ro(e[r]);return Uo(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function pE(e){const t=e;return Uo(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function mE(e){return Uo(t);function t(r){return r&&r.type===e}}function Uo(e){return t;function t(r,i,a){return!!(gE(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function hE(){return!0}function gE(e){return e!==null&&typeof e=="object"&&"type"in e}function U4(e){return e}const Nm=[],yE=!0,_u=!1,vE="skip";function Fm(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=Ro(a),o=i?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Nm,m,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=bE(r(l,c)),d[0]===_u))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==vE)for(k=(i?g.children.length:-1)+o,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(m=s(b,k,v)(),m[0]===_u)return m;k=typeof m[1]=="number"?m[1]:k+o}}return d}}}function bE(e){return Array.isArray(e)?e:typeof e=="number"?[yE,e]:e==null?Nm:[e]}function Pu(e,t,r,i){let a,n,o;typeof t=="function"&&typeof r!="function"?(n=void 0,o=t,a=r):(n=t,o=r,a=i),Fm(e,n,s,a);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const Iu={}.hasOwnProperty,kE={};function wE(e,t){const r=t||kE,i=new Map,a=new Map,n=new Map,o={...nE,...r.handlers},s={all:u,applyData:CE,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:o,one:l,options:r,patch:SE,wrap:AE};return Pu(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),s;function l(c,f){const p=c.type,d=s.handlers[p];if(Iu.call(s.handlers,p)&&d)return d(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in c){const{children:k,...v}=c,g=zo(v);return g.children=s.all(c),g}return zo(c)}return(s.options.unknownHandler||EE)(s,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let d=-1;for(;++d<p.length;){const m=s.one(p[d],c);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Dm(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=Dm(k.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function SE(e,t){e.position&&(t.position=vw(e))}function CE(e,t){let r=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,n=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const o="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:o}}r.type==="element"&&n&&Object.assign(r.properties,zo(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function EE(e,t){const r=t.data||{},i="value"in t&&!(Iu.call(r,"hProperties")||Iu.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function AE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
19
+ */var Xl,wp;function V0(){if(wp)return Xl;wp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){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 l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xl=a()?Object.assign:function(n,s){for(var o,l=i(n),c,u=1;u<arguments.length;u++){o=Object(arguments[u]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){c=e(o);for(var p=0;p<c.length;p++)r.call(o,c[p])&&(l[c[p]]=o[c[p]])}}return l},Xl}var Zl,Sp;function Ql(){if(Sp)return Zl;Sp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zl=e,Zl}var ec,Cp;function Ep(){return Cp||(Cp=1,ec=Function.call.bind(Object.prototype.hasOwnProperty)),ec}var tc,Ap;function H0(){if(Ap)return tc;Ap=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ql(),r={},i=Ep();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(n,s,o,l,c){if(process.env.NODE_ENV!=="production"){for(var u in n)if(i(n,u)){var f;try{if(typeof n[u]!="function"){var p=Error((l||"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 p.name="Invariant Violation",p}f=n[u](s,u,l,o,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((l||"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=c?c():"";e("Failed "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},tc=a,tc}var rc,xp;function W0(){if(xp)return rc;xp=1;var e=kp(),t=V0(),r=Ql(),i=Ep(),a=H0(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return rc=function(o,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(P){var j=P&&(c&&P[c]||P[u]);if(typeof j=="function")return j}var p="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:b(),arrayOf:w,element:E(),elementType:m(),instanceOf:y,node:C(),objectOf:x,oneOf:S,oneOfType:_,shape:O,exact:F};function h(P,j){return P===j?P!==0||1/P===1/j:P!==P&&j!==j}function v(P,j){this.message=P,this.data=j&&typeof j=="object"?j:{},this.stack=""}v.prototype=Error.prototype;function k(P){if(process.env.NODE_ENV!=="production")var j={},U=0;function T(L,B,V,W,Y,Z,z){if(W=W||p,Z=Z||V,z!==r){if(l){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var G=W+":"+V;!j[G]&&U<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+W+"`. 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."),j[G]=!0,U++)}}return B[V]==null?L?B[V]===null?new v("The "+Y+" `"+Z+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new v("The "+Y+" `"+Z+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(B,V,W,Y,Z)}var D=T.bind(null,!1);return D.isRequired=T.bind(null,!0),D}function g(P){function j(U,T,D,L,B,V){var W=U[T],Y=q(W);if(Y!==P){var Z=H(W);return new v("Invalid "+L+" `"+B+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return k(j)}function b(){return k(s)}function w(P){function j(U,T,D,L,B){if(typeof P!="function")return new v("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var V=U[T];if(!Array.isArray(V)){var W=q(V);return new v("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected an array."))}for(var Y=0;Y<V.length;Y++){var Z=P(V,Y,D,L,B+"["+Y+"]",r);if(Z instanceof Error)return Z}return null}return k(j)}function E(){function P(j,U,T,D,L){var B=j[U];if(!o(B)){var V=q(B);return new v("Invalid "+D+" `"+L+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return k(P)}function m(){function P(j,U,T,D,L){var B=j[U];if(!e.isValidElementType(B)){var V=q(B);return new v("Invalid "+D+" `"+L+"` of type "+("`"+V+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return k(P)}function y(P){function j(U,T,D,L,B){if(!(U[T]instanceof P)){var V=P.name||p,W=X(U[T]);return new v("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected ")+("instance of `"+V+"`."))}return null}return k(j)}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 j(U,T,D,L,B){for(var V=U[T],W=0;W<P.length;W++)if(h(V,P[W]))return null;var Y=JSON.stringify(P,function(z,$){var G=H($);return G==="symbol"?String($):$});return new v("Invalid "+L+" `"+B+"` of value `"+String(V)+"` "+("supplied to `"+D+"`, expected one of "+Y+"."))}return k(j)}function x(P){function j(U,T,D,L,B){if(typeof P!="function")return new v("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var V=U[T],W=q(V);if(W!=="object")return new v("Invalid "+L+" `"+B+"` of type "+("`"+W+"` supplied to `"+D+"`, expected an object."));for(var Y in V)if(i(V,Y)){var Z=P(V,Y,D,L,B+"."+Y,r);if(Z instanceof Error)return Z}return null}return k(j)}function _(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 j=0;j<P.length;j++){var U=P[j];if(typeof U!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(U)+" at index "+j+"."),s}function T(D,L,B,V,W){for(var Y=[],Z=0;Z<P.length;Z++){var z=P[Z],$=z(D,L,B,V,W,r);if($==null)return null;$.data&&i($.data,"expectedType")&&Y.push($.data.expectedType)}var G=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new v("Invalid "+V+" `"+W+"` supplied to "+("`"+B+"`"+G+"."))}return k(T)}function C(){function P(j,U,T,D,L){return N(j[U])?null:new v("Invalid "+D+" `"+L+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return k(P)}function A(P,j,U,T,D){return new v((P||"React class")+": "+j+" type `"+U+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function O(P){function j(U,T,D,L,B){var V=U[T],W=q(V);if(W!=="object")return new v("Invalid "+L+" `"+B+"` of type `"+W+"` "+("supplied to `"+D+"`, expected `object`."));for(var Y in P){var Z=P[Y];if(typeof Z!="function")return A(D,L,B,Y,H(Z));var z=Z(V,Y,D,L,B+"."+Y,r);if(z)return z}return null}return k(j)}function F(P){function j(U,T,D,L,B){var V=U[T],W=q(V);if(W!=="object")return new v("Invalid "+L+" `"+B+"` of type `"+W+"` "+("supplied to `"+D+"`, expected `object`."));var Y=t({},U[T],P);for(var Z in Y){var z=P[Z];if(i(P,Z)&&typeof z!="function")return A(D,L,B,Z,H(z));if(!z)return new v("Invalid "+L+" `"+B+"` key `"+Z+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(U[T],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(V,Z,D,L,B+"."+Z,r);if($)return $}return null}return k(j)}function N(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(N);if(P===null||o(P))return!0;var j=f(P);if(j){var U=j.call(P),T;if(j!==P.entries){for(;!(T=U.next()).done;)if(!N(T.value))return!1}else for(;!(T=U.next()).done;){var D=T.value;if(D&&!N(D[1]))return!1}}else return!1;return!0;default:return!1}}function M(P,j){return P==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function q(P){var j=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":M(j,P)?"symbol":j}function H(P){if(typeof P>"u"||P===null)return""+P;var j=q(P);if(j==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return j}function J(P){var j=H(P);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function X(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},rc}var nc,Op;function K0(){if(Op)return nc;Op=1;var e=Ql();function t(){}function r(){}return r.resetWarningCache=t,nc=function(){function i(s,o,l,c,u,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function a(){return i}var n={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},nc}var _p;function G0(){if(_p)return Ps.exports;if(_p=1,process.env.NODE_ENV!=="production"){var e=kp(),t=!0;Ps.exports=W0()(e.isElement,t)}else Ps.exports=K0()();return Ps.exports}var J0=G0();const Ae=jr(J0);function Y0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function X0(e,t){e.classList?e.classList.add(t):Y0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Pp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Z0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Pp(e.className,t):e.setAttribute("class",Pp(e.className&&e.className.baseVal||"",t))}const Ip={disabled:!1};var Q0=process.env.NODE_ENV!=="production"?Ae.oneOfType([Ae.number,Ae.shape({enter:Ae.number,exit:Ae.number,appear:Ae.number}).isRequired]):null,ew=process.env.NODE_ENV!=="production"?Ae.oneOfType([Ae.string,Ae.shape({enter:Ae.string,exit:Ae.string,active:Ae.string}),Ae.shape({enter:Ae.string,enterDone:Ae.string,enterActive:Ae.string,exit:Ae.string,exitDone:Ae.string,exitActive:Ae.string})]):null;const Tp=R.createContext(null);var Np=function(t){return t.scrollTop},ba="unmounted",Wn="exited",Kn="entering",Oi="entered",ic="exiting",Lr=(function(e){gp(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var s=a,o=s&&!s.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?o?(l=Wn,n.appearStatus=Kn):l=Oi:i.unmountOnExit||i.mountOnEnter?l=ba:l=Wn,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===ba?{status:Wn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Kn&&s!==Oi&&(n=Kn):(s===Kn||s===Oi)&&(n=ic)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,s,o;return n=s=o=a,a!=null&&typeof a!="number"&&(n=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===Kn){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this);s&&Np(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wn&&this.setState({status:ba})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Os.findDOMNode(this),o],c=l[0],u=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!a&&!s||Ip.disabled){this.safeSetState({status:Oi},function(){n.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Kn},function(){n.props.onEntering(c,u),n.onTransitionEnd(p,function(){n.safeSetState({status:Oi},function(){n.props.onEntered(c,u)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Os.findDOMNode(this);if(!n||Ip.disabled){this.safeSetState({status:Wn},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:ic},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Wn},function(){a.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===ba)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=hp(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return R.createElement(Tp.Provider,{value:null},typeof s=="function"?s(a,o):R.cloneElement(R.Children.only(s),o))},t})(R.Component);Lr.contextType=Tp,Lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ae.shape({current:typeof Element>"u"?Ae.any:function(e,t,r,i,a,n){var s=e[t];return Ae.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ae.oneOfType([Ae.func.isRequired,Ae.element.isRequired]).isRequired,in:Ae.bool,mountOnEnter:Ae.bool,unmountOnExit:Ae.bool,appear:Ae.bool,enter:Ae.bool,exit:Ae.bool,timeout:function(t){var r=Q0;t.addEndListener||(r=r.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return r.apply(void 0,[t].concat(a))},addEndListener:Ae.func,onEnter:Ae.func,onEntering:Ae.func,onEntered:Ae.func,onExit:Ae.func,onExiting:Ae.func,onExited:Ae.func}:{};function _i(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Lr.UNMOUNTED=ba,Lr.EXITED=Wn,Lr.ENTERING=Kn,Lr.ENTERED=Oi,Lr.EXITING=ic;var tw=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return X0(t,i)})},ac=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return Z0(t,i)})},sc=(function(e){gp(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(o,l){var c=i.resolveArguments(o,l),u=c[0],f=c[1];i.removeClasses(u,"exit"),i.addClass(u,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var c=i.resolveArguments(o,l),u=c[0],f=c[1],p=f?"appear":"enter";i.addClass(u,p,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var c=i.resolveArguments(o,l),u=c[0],f=c[1],p=f?"appear":"enter";i.removeClasses(u,p),i.addClass(u,p,"done"),i.props.onEntered&&i.props.onEntered(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),c=l[0];i.removeClasses(c,"appear"),i.removeClasses(c,"enter"),i.addClass(c,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),c=l[0];i.addClass(c,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),c=l[0];i.removeClasses(c,"exit"),i.addClass(c,"exit","done"),i.props.onExited&&i.props.onExited(o)},i.resolveArguments=function(o,l){return i.props.nodeRef?[i.props.nodeRef.current,o]:[o,l]},i.getClassNames=function(o){var l=i.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",f=c?""+u+o:l[o],p=c?f+"-active":l[o+"Active"],d=c?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,s){var o=this.getClassNames(n)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;n==="appear"&&s==="done"&&c&&(o+=" "+c),s==="active"&&a&&Np(a),o&&(this.appliedClasses[n][s]=o,tw(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,c=s.done;this.appliedClasses[n]={},o&&ac(a,o),l&&ac(a,l),c&&ac(a,c)},r.render=function(){var a=this.props;a.classNames;var n=hp(a,["classNames"]);return R.createElement(Lr,_s({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(R.Component);sc.defaultProps={classNames:""},sc.propTypes=process.env.NODE_ENV!=="production"?_s({},Lr.propTypes,{classNames:ew,onEnter:Ae.func,onEntering:Ae.func,onEntered:Ae.func,onExit:Ae.func,onExiting:Ae.func,onExited:Ae.func}):{};const rw=sc,Fp=({active:e,children:t,content:r,disabled:i})=>{const a=R.useRef(null);return i?I.jsx(I.Fragment,{children:t}):I.jsxs("div",{className:"fcode-loading-overlay-root","aria-busy":e,children:[t,I.jsx(rw,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:I.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:I.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[I.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:I.jsx("svg",{viewBox:"25 25 50 50",children:I.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&I.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},nw=["first","second"],Dp=()=>I.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[I.jsx("div",{className:"fcode-form-skeleton-title"}),I.jsx("div",{className:"fcode-form-skeleton-description"}),nw.map(e=>I.jsxs("div",{className:"fcode-form-skeleton-group",children:[I.jsx("div",{className:"fcode-form-skeleton-label"}),I.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),I.jsx("div",{className:"fcode-form-skeleton-button"})]});Dp.displayName="FormSkeleton";const Ts=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},iw=e=>{try{const t=new URL(e,window.location.href);return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}},aw=(e,t=r=>window.location.assign(r))=>{const r=iw(e.url);if(r===null){console.warn(`Ignoring redirect to unsupported URL: ${e.url}`);return}setTimeout(()=>t(r),e.timeout||0)},sw=(e,t)=>{Ts("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},ow="The form has been successfully submitted",Mp="There has been an error submitting the form",jp=e=>{if(e instanceof Error){try{const r=JSON.parse(e.message);if(typeof(r==null?void 0:r.errorMessage)=="string"&&r.errorMessage)return r.errorMessage}catch{}return Mp}const t=e;return typeof(t==null?void 0:t.errorMessage)=="string"&&t.errorMessage?t.errorMessage:typeof(t==null?void 0:t.message)=="string"&&t.message?t.message:Mp},lw="The form couldn't be loaded",cw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:lw},Lp=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]=Lp(e[t]);break}return e},uw=e=>{let t={};return e.fields&&(t={...Lp(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function fU(){}function dU(){}function fw(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const dw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mw={};function qp(e,t){return(mw.jsx?pw:dw).test(e)}const hw=/[ \t\n\f\r]/g;function gw(e){return typeof e=="object"?e.type==="text"?$p(e.value):!1:$p(e)}function $p(e){return e.replace(hw,"")===""}class ka{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ka.prototype.normal={},ka.prototype.property={},ka.prototype.space=void 0;function zp(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ka(r,i,t)}function oc(e){return e.toLowerCase()}class Yt{constructor(t,r){this.attribute=r,this.property=t}}Yt.prototype.attribute="",Yt.prototype.booleanish=!1,Yt.prototype.boolean=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.defined=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.number=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.property="",Yt.prototype.spaceSeparated=!1,Yt.prototype.space=void 0;let yw=0;const Ee=Jn(),Ot=Jn(),lc=Jn(),le=Jn(),ft=Jn(),Gn=Jn(),er=Jn();function Jn(){return 2**++yw}const cc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:Ot,commaOrSpaceSeparated:er,commaSeparated:Gn,number:le,overloadedBoolean:lc,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),uc=Object.keys(cc);class fc extends Yt{constructor(t,r,i,a){let n=-1;if(super(t,r),Rp(this,"space",a),typeof i=="number")for(;++n<uc.length;){const s=uc[n];Rp(this,uc[n],(i&cc[s])===cc[s])}}}fc.prototype.defined=!0;function Rp(e,t,r){r&&(e[t]=r)}function Pi(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new fc(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[oc(i)]=i,r[oc(n.attribute)]=i}return new ka(t,r,e.space)}const Up=Pi({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ft,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:le,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:Ot,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Bp(e,t){return t in e?e[t]:t}function Vp(e,t){return Bp(e,t.toLowerCase())}const vw=Pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gn,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alpha:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:ft,autoFocus:Ee,autoPlay:Ee,blocking:ft,capture:null,charSet:null,checked:Ee,cite:null,className:ft,closedBy:null,colorSpace:null,cols:le,colSpan:le,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Ee,controlsList:ft,coords:le|Gn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:lc,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:ft,height:le,hidden:lc,high:le,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ee,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:le,pattern:null,ping:ft,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:ft,required:Ee,reversed:Ee,rows:le,rowSpan:le,sandbox:ft,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootCustomElementRegistry:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shadowRootSerializable:Ee,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:Ot,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ee,disablePictureInPicture:Ee,disableRemotePlayback:Ee,exportParts:Gn,part:ft,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:Vp}),bw=Pi({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:er,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:ft,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:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,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:Gn,g2:Gn,glyphName:Gn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:er,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,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:le,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:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,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:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:er,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:er,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:er,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bp}),Hp=Pi({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()}}),Wp=Pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vp}),Kp=Pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),kw={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"},ww=/[A-Z]/g,Gp=/-[a-z]/g,Sw=/^data[-\w.:]+$/i;function Cw(e,t){const r=oc(t);let i=t,a=Yt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Sw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Gp,Aw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Gp.test(n)){let s=n.replace(ww,Ew);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=fc}return new a(i,t)}function Ew(e){return"-"+e.toLowerCase()}function Aw(e){return e.charAt(1).toUpperCase()}const xw=zp([Up,vw,Hp,Wp,Kp],"html"),dc=zp([Up,bw,Hp,Wp,Kp],"svg");function Ow(e){return e.join(" ").trim()}var Ii={},pc,Jp;function _w(){if(Jp)return pc;Jp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
21
+ `,c="/",u="*",f="",p="comment",d="declaration";function h(k,g){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];g=g||{};var b=1,w=1;function E(N){var M=N.match(t);M&&(b+=M.length);var q=N.lastIndexOf(l);w=~q?N.length-q:w+N.length}function m(){var N={line:b,column:w};return function(M){return M.position=new y(N),_(),M}}function y(N){this.start=N,this.end={line:b,column:w},this.source=g.source}y.prototype.content=k;function S(N){var M=new Error(g.source+":"+b+":"+w+": "+N);if(M.reason=N,M.filename=g.source,M.line=b,M.column=w,M.source=k,!g.silent)throw M}function x(N){var M=N.exec(k);if(M){var q=M[0];return E(q),k=k.slice(q.length),M}}function _(){x(r)}function C(N){var M;for(N=N||[];M=A();)M!==!1&&N.push(M);return N}function A(){var N=m();if(!(c!=k.charAt(0)||u!=k.charAt(1))){for(var M=2;f!=k.charAt(M)&&(u!=k.charAt(M)||c!=k.charAt(M+1));)++M;if(M+=2,f===k.charAt(M-1))return S("End of comment missing");var q=k.slice(2,M-2);return w+=2,E(q),k=k.slice(M),w+=2,N({type:p,comment:q})}}function O(){var N=m(),M=x(i);if(M){if(A(),!x(a))return S("property missing ':'");var q=x(n),H=N({type:d,property:v(M[0].replace(e,f)),value:q?v(q[0].replace(e,f)):f});return x(s),H}}function F(){var N=[];C(N);for(var M;M=O();)M!==!1&&(N.push(M),C(N));return N}return _(),F()}function v(k){return k?k.replace(o,f):f}return pc=h,pc}var Yp;function Pw(){if(Yp)return Ii;Yp=1;var e=Ii&&Ii.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=r;const t=e(_w());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const s=(0,t.default)(i),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;o?a(c,u,l):u&&(n=n||{},n[c]=u)}),n}return Ii}var wa={},Xp;function Iw(){if(Xp)return wa;Xp=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,n=function(c){return!c||r.test(c)||e.test(c)},s=function(c,u){return u.toUpperCase()},o=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),n(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(a,o):c=c.replace(i,o),c.replace(t,s))};return wa.camelCase=l,wa}var Sa,Zp;function Tw(){if(Zp)return Sa;Zp=1;var e=Sa&&Sa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Pw()),r=Iw();function i(a,n){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,r.camelCase)(o,n)]=l)}),s}return i.default=i,Sa=i,Sa}var Nw=Tw();const Fw=jr(Nw),Qp=em("end"),mc=em("start");function em(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Dw(e){const t=mc(e),r=Qp(e);if(t&&r)return{start:t,end:r}}function Ca(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tm(e.position):"start"in e||"end"in e?tm(e):"line"in e||"column"in e?hc(e):""}function hc(e){return rm(e&&e.line)+":"+rm(e&&e.column)}function tm(e){return hc(e&&e.start)+"-"+hc(e&&e.end)}function rm(e){return e&&typeof e=="number"?e:1}class Lt extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",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"?a=t:!n.cause&&t&&(s=!0,a=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?n.ruleId=i:(n.source=i.slice(0,l),n.ruleId=i.slice(l+1))}if(!n.place&&n.ancestors&&n.ancestors){const l=n.ancestors[n.ancestors.length-1];l&&(n.place=l.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=a,this.line=o?o.line:void 0,this.name=Ca(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}}Lt.prototype.file="",Lt.prototype.name="",Lt.prototype.reason="",Lt.prototype.message="",Lt.prototype.stack="",Lt.prototype.column=void 0,Lt.prototype.line=void 0,Lt.prototype.ancestors=void 0,Lt.prototype.cause=void 0,Lt.prototype.fatal=void 0,Lt.prototype.place=void 0,Lt.prototype.ruleId=void 0,Lt.prototype.source=void 0;const gc={}.hasOwnProperty,Mw=new Map,jw=/[A-Z]/g,Lw=new Set(["table","tbody","thead","tfoot","tr"]),qw=new Set(["td","th"]),nm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function $w(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Kw(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");i=Ww(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?dc:xw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=im(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function im(e,t,r){if(t.type==="element")return zw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Rw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Bw(e,t,r);if(t.type==="mdxjsEsm")return Uw(e,t);if(t.type==="root")return Vw(e,t,r);if(t.type==="text")return Hw(e,t)}function zw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=dc,e.schema=a),e.ancestors.push(t);const n=sm(e,t.tagName,!1),s=Gw(e,t);let o=vc(e,t);return Lw.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!gw(l):!0})),am(e,s,n,t),yc(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Rw(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ea(e,t.position)}function Uw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ea(e,t.position)}function Bw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=dc,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:sm(e,t.name,!0),s=Jw(e,t),o=vc(e,t);return am(e,s,n,t),yc(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Vw(e,t,r){const i={};return yc(i,vc(e,t)),e.create(t,e.Fragment,i,r)}function Hw(e,t){return t.value}function am(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function yc(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Ww(e,t,r){return i;function i(a,n,s,o){const c=Array.isArray(s.children)?r:t;return o?c(n,s,o):c(n,s)}}function Kw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=mc(i);return t(a,n,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Gw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&gc.call(t.properties,a)){const n=Yw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&qw.has(t.tagName)?i=o:r[s]=o}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Jw(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const n=i.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 Ea(e,t.position);else{const a=i.name;let n;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Ea(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function vc(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Mw;for(;++i<t.children.length;){const n=t.children[i];let s;if(e.passKeys){const l=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(l){const c=a.get(l)||0;s=l+"-"+c,a.set(l,c+1)}}const o=im(e,n,s);o!==void 0&&r.push(o)}return r}function Yw(e,t,r){const i=Cw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?fw(r):Ow(r)),i.property==="style"){let a=typeof r=="object"?r:Xw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=Zw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?kw[i.property]||i.property:i.attribute,r]}}function Xw(e,t){try{return Fw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new Lt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=nm+"#cannot-parse-style-attribute",a}}function sm(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,s;for(;++n<a.length;){const o=qp(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}i=s}else i=qp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return gc.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ea(e)}function Ea(e,t){const r=new Lt("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=nm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Zw(e){const t={};let r;for(r in e)gc.call(e,r)&&(t[Qw(r)]=e[r]);return t}function Qw(e){let t=e.replace(jw,eS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function eS(e){return"-"+e.toLowerCase()}const bc={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"]},tS={};function kc(e,t){const r=tS,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return om(e,i,a)}function om(e,t,r){if(rS(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 lm(e.children,t,r)}return Array.isArray(e)?lm(e,t,r):""}function lm(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=om(e[a],t,r);return i.join("")}function rS(e){return!!(e&&typeof e=="object")}const cm=document.createElement("i");function wc(e){const t="&"+e+";";cm.innerHTML=t;const r=cm.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function tr(e,t,r,i){const a=e.length;let n=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function or(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const um={}.hasOwnProperty;function fm(e){const t={};let r=-1;for(;++r<e.length;)nS(t,e[r]);return t}function nS(e,t){let r;for(r in t){const a=(um.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){um.call(a,s)||(a[s]=[]);const o=n[s];iS(a[s],Array.isArray(o)?o:o?[o]:[])}}}function iS(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);tr(e,0,0,i)}function dm(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 wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=pn(/[A-Za-z]/),qt=pn(/[\dA-Za-z]/),aS=pn(/[#-'*+\--9=?A-Z^-~]/);function Ns(e){return e!==null&&(e<32||e===127)}const Sc=pn(/\d/),sS=pn(/[\dA-Fa-f]/),oS=pn(/[!-/:-@[-`{-~]/);function me(e){return e!==null&&e<-2}function dt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const Fs=pn(new RegExp("\\p{P}|\\p{S}","u")),Yn=pn(/\s/);function pn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ti(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&qt(e.charCodeAt(r+1))&&qt(e.charCodeAt(r+2)))a=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),a=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(i)}function Be(e,t,r,i){const a=i?i-1:Number.POSITIVE_INFINITY;let n=0;return s;function s(l){return Me(l)?(e.enter(r),o(l)):t(l)}function o(l){return Me(l)&&n++<a?(e.consume(l),o):(e.exit(r),t(l))}}const lS={tokenize:cS};function cS(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),n(o)}function n(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return me(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const uS={tokenize:fS},pm={tokenize:dS};function fS(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const E=r[i];return t.containerState=E[1],e.attempt(E[0].continuation,l,c)(w)}return c(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const E=t.events.length;let m=E,y;for(;m--;)if(t.events[m][0]==="exit"&&t.events[m][1].type==="chunkFlow"){y=t.events[m][1].end;break}g(i);let S=E;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return tr(t.events,m+1,0,t.events.slice(E)),t.events.length=S,c(w)}return o(w)}function c(w){if(i===r.length){if(!a)return p(w);if(a.currentConstruct&&a.currentConstruct.concrete)return h(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pm,u,f)(w)}function u(w){return a&&b(),g(i),p(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,h(w)}function p(w){return t.containerState={},e.attempt(pm,d,h)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),p(w)}function h(w){if(w===null){a&&b(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),v(w)}function v(w){if(w===null){k(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return me(w)?(e.consume(w),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),v)}function k(w,E){const m=t.sliceStream(w);if(E&&m.push(null),w.previous=n,n&&(n.next=w),n=w,a.defineSkip(w.start),a.write(m),t.parser.lazy[w.start.line]){let y=a.events.length;for(;y--;)if(a.events[y][1].start.offset<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let x=S,_,C;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(_){C=t.events[x][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...C},y++;tr(t.events,x+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let E=r.length;for(;E-- >w;){const m=r[E];t.containerState=m[1],m[0].exit.call(t,e)}r.length=w}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function dS(e,t,r){return Be(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ni(e){if(e===null||dt(e)||Yn(e))return 1;if(Fs(e))return 2}function Ds(e,t,r){const i=[];let a=-1;for(;++a<e.length;){const n=e[a].resolveAll;n&&!i.includes(n)&&(t=n(t,r),i.push(n))}return t}const Cc={name:"attention",resolveAll:pS,tokenize:mS};function pS(e,t){let r=-1,i,a,n,s,o,l,c,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[i][1].end},p={...e[r][1].start};mm(f,-l),mm(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},n={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=or(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=or(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),c=or(c,Ds(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),c=or(c,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=or(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,tr(e,i-1,r-i+3,c),r=i+c.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function mS(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ni(i);let n;return s;function s(l){return n=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===n)return e.consume(l),o;const c=e.exit("attentionSequence"),u=Ni(l),f=!u||u===2&&a||r.includes(l),p=!a||a===2&&u||r.includes(i);return c._open=!!(n===42?f:f&&(a||!p)),c._close=!!(n===42?p:p&&(u||!f)),t(l)}}function mm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const hS={name:"autolink",tokenize:gS};function gS(e,t,r){let i=0;return a;function a(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return Ut(d)?(e.consume(d),s):d===64?r(d):c(d)}function s(d){return d===43||d===45||d===46||qt(d)?(i=1,o(d)):c(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||qt(d))&&i++<32?(e.consume(d),o):(i=0,c(d))}function l(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||Ns(d)?r(d):(e.consume(d),l)}function c(d){return d===64?(e.consume(d),u):aS(d)?(e.consume(d),c):r(d)}function u(d){return qt(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),i=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||qt(d))&&i++<63){const h=d===45?p:f;return e.consume(d),h}return r(d)}}const Aa={partial:!0,tokenize:yS};function yS(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||me(n)?t(n):r(n)}}const hm={continuation:{tokenize:bS},exit:kS,name:"blockQuote",tokenize:vS};function vS(e,t,r){const i=this;return a;function a(s){if(s===62){const o=i.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 Me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function bS(e,t,r){const i=this;return a;function a(s){return Me(s)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(hm,t,r)(s)}}function kS(e){e.exit("blockQuote")}const gm={name:"characterEscape",tokenize:wS};function wS(e,t,r){return i;function i(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),a}function a(n){return oS(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const ym={name:"characterReference",tokenize:SS};function SS(e,t,r){const i=this;let a=0,n,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),n=31,s=qt,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=sS,u):(e.enter("characterReferenceValue"),n=7,s=Sc,u(f))}function u(f){if(f===59&&a){const p=e.exit("characterReferenceValue");return s===qt&&!wc(i.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),u):r(f)}}const vm={partial:!0,tokenize:ES},bm={concrete:!0,name:"codeFenced",tokenize:CS};function CS(e,t,r){const i=this,a={partial:!0,tokenize:m};let n=0,s=0,o;return l;function l(y){return c(y)}function c(y){const S=i.events[i.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(y)}function u(y){return y===o?(s++,e.consume(y),u):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||me(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(vm,v,E)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):Me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,d,"whitespace")(y)):y===96&&y===o?r(y):(e.consume(y),p)}function d(y){return y===null||me(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),h)}function v(y){return e.attempt(a,E,k)(y)}function k(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Be(e,b,"linePrefix",n+1)(y):b(y)}function b(y){return y===null||me(y)?e.check(vm,v,E)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||me(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function E(y){return e.exit("codeFenced"),t(y)}function m(y,S,x){let _=0;return C;function C(M){return y.enter("lineEnding"),y.consume(M),y.exit("lineEnding"),A}function A(M){return y.enter("codeFencedFence"),Me(M)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):O(M)}function O(M){return M===o?(y.enter("codeFencedFenceSequence"),F(M)):x(M)}function F(M){return M===o?(_++,y.consume(M),F):_>=s?(y.exit("codeFencedFenceSequence"),Me(M)?Be(y,N,"whitespace")(M):N(M)):x(M)}function N(M){return M===null||me(M)?(y.exit("codeFencedFence"),S(M)):x(M)}}}function ES(e,t,r){const i=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const Ec={name:"codeIndented",tokenize:xS},AS={partial:!0,tokenize:OS};function xS(e,t,r){const i=this;return a;function a(c){return e.enter("codeIndented"),Be(e,n,"linePrefix",5)(c)}function n(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):me(c)?e.attempt(AS,s,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||me(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function OS(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):me(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(s)}function n(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):me(s)?a(s):r(s)}}const _S={name:"codeText",previous:IS,resolve:PS,tokenize:TS};function PS(e){let t=e.length-4,r=3,i,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function IS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TS(e,t,r){let i=0,a,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(n=e.enter("codeTextSequence"),a=0,u(f)):me(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||me(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),a++,u):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",c(f))}}class NS{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 i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const a=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&xa(this.left,i),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),xa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xa(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);xa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xa(this.left,r.reverse())}}}function xa(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 km(e){const t={};let r=-1,i,a,n,s,o,l,c;const u=new NS(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(i=u.get(r),r&&i[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,n=0,n<l.length&&l[n][1].type==="lineEndingBlank"&&(n+=2),n<l.length&&l[n][1].type==="content"))for(;++n<l.length&&l[n][1].type!=="content";)l[n][1].type==="chunkText"&&(l[n][1]._isInFirstContentOfListItem=!0,n++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,FS(u,r)),r=t[r],c=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=u.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...u.get(a)[1].start},o=u.slice(a,r),o.unshift(i),u.splice(a,r-a+1,o))}}return tr(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function FS(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],c={};let u,f,p=-1,d=r,h=0,v=0;const k=[v];for(;d;){for(;e.get(++a)[1]!==d;);n.push(a),d._tokenizer||(u=i.sliceStream(d),d.next||u.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(v=p+1,k.push(v),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):k.pop(),p=k.length;p--;){const g=o.slice(k[p],k[p+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),p=-1;++p<l.length;)c[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return c}const DS={resolve:jS,tokenize:LS},MS={partial:!0,tokenize:qS};function jS(e){return km(e),e}function LS(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?n(o):me(o)?e.check(MS,s,n)(o):(e.consume(o),a)}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,a}}function qS(e,t,r){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(s){if(s===null||me(s))return r(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function wm(e,t,r,i,a,n,s,o,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(g){return g===60?(e.enter(i),e.enter(a),e.enter(n),e.consume(g),e.exit(n),p):g===null||g===32||g===41||Ns(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(g))}function p(g){return g===62?(e.enter(n),e.consume(g),e.exit(n),e.exit(a),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(o),p(g)):g===null||g===60||me(g)?r(g):(e.consume(g),g===92?h:d)}function h(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function v(g){return!u&&(g===null||g===41||dt(g))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(g)):u<c&&g===40?(e.consume(g),u++,v):g===41?(e.consume(g),u--,v):g===null||g===32||g===40||Ns(g)?r(g):(e.consume(g),g===92?k:v)}function k(g){return g===40||g===41||g===92?(e.consume(g),v):v(g)}}function Sm(e,t,r,i,a,n){const s=this;let o=0,l;return c;function c(d){return e.enter(i),e.enter(a),e.consume(d),e.exit(a),e.enter(n),u}function u(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):me(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||me(d)||o++>999?(e.exit("chunkString"),u(d)):(e.consume(d),l||(l=!Me(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function Cm(e,t,r,i,a,n){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(i),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),t):(e.enter(n),c(p))}function c(p){return p===s?(e.exit(n),l(s)):p===null?r(p):me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Be(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||me(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===s||p===92?(e.consume(p),u):u(p)}}function Oa(e,t){let r;return i;function i(a){return me(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):Me(a)?Be(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}const $S={name:"definition",tokenize:RS},zS={partial:!0,tokenize:US};function RS(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return Sm.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return dt(d)?Oa(e,c)(d):c(d)}function c(d){return wm(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(zS,f,f)(d)}function f(d){return Me(d)?Be(e,p,"whitespace")(d):p(d)}function p(d){return d===null||me(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function US(e,t,r){return i;function i(o){return dt(o)?Oa(e,a)(o):r(o)}function a(o){return Cm(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return Me(o)?Be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||me(o)?t(o):r(o)}}const BS={name:"hardBreakEscape",tokenize:VS};function VS(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return me(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const HS={name:"headingAtx",resolve:WS,tokenize:KS};function WS(e,t){let r=e.length-2,i=3,a,n;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},n={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},tr(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function KS(e,t,r){let i=0;return a;function a(u){return e.enter("atxHeading"),n(u)}function n(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&i++<6?(e.consume(u),s):u===null||dt(u)?(e.exit("atxHeadingSequence"),o(u)):r(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||me(u)?(e.exit("atxHeading"),t(u)):Me(u)?Be(e,o,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),o(u))}function c(u){return u===null||u===35||dt(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),c)}}const GS=["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"],Em=["pre","script","style","textarea"],JS={concrete:!0,name:"htmlFlow",resolveTo:ZS,tokenize:QS},YS={partial:!0,tokenize:tC},XS={partial:!0,tokenize:eC};function ZS(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 QS(e,t,r){const i=this;let a,n,s,o,l;return c;function c(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),p):T===47?(e.consume(T),n=!0,v):T===63?(e.consume(T),a=3,i.interrupt?t:P):Ut(T)?(e.consume(T),s=String.fromCharCode(T),k):r(T)}function p(T){return T===45?(e.consume(T),a=2,d):T===91?(e.consume(T),a=5,o=0,h):Ut(T)?(e.consume(T),a=4,i.interrupt?t:P):r(T)}function d(T){return T===45?(e.consume(T),i.interrupt?t:P):r(T)}function h(T){const D="CDATA[";return T===D.charCodeAt(o++)?(e.consume(T),o===D.length?i.interrupt?t:O:h):r(T)}function v(T){return Ut(T)?(e.consume(T),s=String.fromCharCode(T),k):r(T)}function k(T){if(T===null||T===47||T===62||dt(T)){const D=T===47,L=s.toLowerCase();return!D&&!n&&Em.includes(L)?(a=1,i.interrupt?t(T):O(T)):GS.includes(s.toLowerCase())?(a=6,D?(e.consume(T),g):i.interrupt?t(T):O(T)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(T):n?b(T):w(T))}return T===45||qt(T)?(e.consume(T),s+=String.fromCharCode(T),k):r(T)}function g(T){return T===62?(e.consume(T),i.interrupt?t:O):r(T)}function b(T){return Me(T)?(e.consume(T),b):C(T)}function w(T){return T===47?(e.consume(T),C):T===58||T===95||Ut(T)?(e.consume(T),E):Me(T)?(e.consume(T),w):C(T)}function E(T){return T===45||T===46||T===58||T===95||qt(T)?(e.consume(T),E):m(T)}function m(T){return T===61?(e.consume(T),y):Me(T)?(e.consume(T),m):w(T)}function y(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),l=T,S):Me(T)?(e.consume(T),y):x(T)}function S(T){return T===l?(e.consume(T),l=null,_):T===null||me(T)?r(T):(e.consume(T),S)}function x(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||dt(T)?m(T):(e.consume(T),x)}function _(T){return T===47||T===62||Me(T)?w(T):r(T)}function C(T){return T===62?(e.consume(T),A):r(T)}function A(T){return T===null||me(T)?O(T):Me(T)?(e.consume(T),A):r(T)}function O(T){return T===45&&a===2?(e.consume(T),q):T===60&&a===1?(e.consume(T),H):T===62&&a===4?(e.consume(T),j):T===63&&a===3?(e.consume(T),P):T===93&&a===5?(e.consume(T),X):me(T)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(YS,U,F)(T)):T===null||me(T)?(e.exit("htmlFlowData"),F(T)):(e.consume(T),O)}function F(T){return e.check(XS,N,U)(T)}function N(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),M}function M(T){return T===null||me(T)?F(T):(e.enter("htmlFlowData"),O(T))}function q(T){return T===45?(e.consume(T),P):O(T)}function H(T){return T===47?(e.consume(T),s="",J):O(T)}function J(T){if(T===62){const D=s.toLowerCase();return Em.includes(D)?(e.consume(T),j):O(T)}return Ut(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),J):O(T)}function X(T){return T===93?(e.consume(T),P):O(T)}function P(T){return T===62?(e.consume(T),j):T===45&&a===2?(e.consume(T),P):O(T)}function j(T){return T===null||me(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),j)}function U(T){return e.exit("htmlFlow"),t(T)}}function eC(e,t,r){const i=this;return a;function a(s){return me(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function tC(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Aa,t,r)}}const rC={name:"htmlText",tokenize:nC};function nC(e,t,r){const i=this;let a,n,s;return o;function o(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),c):P===47?(e.consume(P),m):P===63?(e.consume(P),w):Ut(P)?(e.consume(P),x):r(P)}function c(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):Ut(P)?(e.consume(P),b):r(P)}function u(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),p):me(P)?(s=f,H(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?p(P):f(P)}function h(P){const j="CDATA[";return P===j.charCodeAt(n++)?(e.consume(P),n===j.length?v:h):r(P)}function v(P){return P===null?r(P):P===93?(e.consume(P),k):me(P)?(s=v,H(P)):(e.consume(P),v)}function k(P){return P===93?(e.consume(P),g):v(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):v(P)}function b(P){return P===null||P===62?q(P):me(P)?(s=b,H(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):me(P)?(s=w,H(P)):(e.consume(P),w)}function E(P){return P===62?q(P):w(P)}function m(P){return Ut(P)?(e.consume(P),y):r(P)}function y(P){return P===45||qt(P)?(e.consume(P),y):S(P)}function S(P){return me(P)?(s=S,H(P)):Me(P)?(e.consume(P),S):q(P)}function x(P){return P===45||qt(P)?(e.consume(P),x):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),q):P===58||P===95||Ut(P)?(e.consume(P),C):me(P)?(s=_,H(P)):Me(P)?(e.consume(P),_):q(P)}function C(P){return P===45||P===46||P===58||P===95||qt(P)?(e.consume(P),C):A(P)}function A(P){return P===61?(e.consume(P),O):me(P)?(s=A,H(P)):Me(P)?(e.consume(P),A):_(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),a=P,F):me(P)?(s=O,H(P)):Me(P)?(e.consume(P),O):(e.consume(P),N)}function F(P){return P===a?(e.consume(P),a=void 0,M):P===null?r(P):me(P)?(s=F,H(P)):(e.consume(P),F)}function N(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||dt(P)?_(P):(e.consume(P),N)}function M(P){return P===47||P===62||dt(P)?_(P):r(P)}function q(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function H(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),J}function J(P){return Me(P)?Be(e,X,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):X(P)}function X(P){return e.enter("htmlTextData"),s(P)}}const Ac={name:"labelEnd",resolveAll:oC,resolveTo:lC,tokenize:cC},iC={tokenize:uC},aC={tokenize:fC},sC={tokenize:dC};function oC(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==r.length&&tr(e,0,e.length,r),e}function lC(e,t){let r=e.length,i=0,a,n,s,o;for(;r--;)if(a=e[r][1],n){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(n=r,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(s=r);const l={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=or(o,e.slice(n+1,n+i+3)),o=or(o,[["enter",u,t]]),o=or(o,Ds(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=or(o,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),o=or(o,e.slice(s+1)),o=or(o,[["exit",l,t]]),tr(e,n,e.length,o),e}function cC(e,t,r){const i=this;let a=i.events.length,n,s;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){n=i.events[a][1];break}return o;function o(p){return n?n._inactive?f(p):(s=i.parser.defined.includes(wr(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(iC,u,s?u:f)(p):p===91?e.attempt(aC,u,s?c:f)(p):s?u(p):f(p)}function c(p){return e.attempt(sC,u,f)(p)}function u(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function uC(e,t,r){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return dt(f)?Oa(e,n)(f):n(f)}function n(f){return f===41?u(f):wm(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Oa(e,l)(f):u(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?Cm(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return dt(f)?Oa(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 fC(e,t,r){const i=this;return a;function a(o){return Sm.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function dC(e,t,r){return i;function i(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),a}function a(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const pC={name:"labelStartImage",resolveAll:Ac.resolveAll,tokenize:mC};function mC(e,t,r){const i=this;return a;function a(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 i.parser.constructs?r(o):t(o)}}const hC={name:"labelStartLink",resolveAll:Ac.resolveAll,tokenize:gC};function gC(e,t,r){const i=this;return a;function a(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 i.parser.constructs?r(s):t(s)}}const xc={name:"lineEnding",tokenize:yC};function yC(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const Ms={name:"thematicBreak",tokenize:vC};function vC(e,t,r){let i=0,a;return n;function n(c){return e.enter("thematicBreak"),s(c)}function s(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):i>=3&&(c===null||me(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===a?(e.consume(c),i++,l):(e.exit("thematicBreakSequence"),Me(c)?Be(e,o,"whitespace")(c):o(c))}}const Xt={continuation:{tokenize:SC},exit:EC,name:"list",tokenize:wC},bC={partial:!0,tokenize:AC},kC={partial:!0,tokenize:CC};function wC(e,t,r){const i=this,a=i.events[i.events.length-1];let n=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(d){const h=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:Sc(d)){if(i.containerState.type||(i.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Ms,r,c)(d):c(d);if(!i.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return Sc(d)&&++s<10?(e.consume(d),l):(!i.interrupt||s<2)&&(i.containerState.marker?d===i.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):r(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||d,e.check(Aa,i.interrupt?r:u,e.attempt(bC,p,f))}function u(d){return i.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function SC(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Aa,a,n);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(o)}function n(o){return i.containerState.furtherBlankLines||!Me(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(kC,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Xt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function CC(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(n):r(n)}}function EC(e){e.exit(this.containerState.type)}function AC(e,t,r){const i=this;return Be(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(n){const s=i.events[i.events.length-1];return!Me(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const Am={name:"setextUnderline",resolveTo:xC,tokenize:OC};function xC(e,t){let r=e.length,i,a,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(a=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[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",s,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function OC(e,t,r){const i=this;let a;return n;function n(c){let u=i.events.length,f;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){f=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),a=c,s(c)):r(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Me(c)?Be(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||me(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const _C={tokenize:PC};function PC(e){const t=this,r=e.attempt(Aa,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(DS,a)),"linePrefix")));return r;function i(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const IC={resolveAll:Om()},TC=xm("string"),NC=xm("text");function xm(e){return{resolveAll:Om(e==="text"?FC:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,s,o);return s;function s(u){return c(u)?n(u):o(u)}function o(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),l}function l(u){return c(u)?(r.exit("data"),n(u)):(r.consume(u),l)}function c(u){if(u===null)return!0;const f=a[u];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function Om(e){return t;function t(r,i){let a=-1,n;for(;++a<=r.length;)n===void 0?r[a]&&r[a][1].type==="data"&&(n=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==n+2&&(r[n][1].end=r[a-1][1].end,r.splice(n+2,a-n-2),a=n+2),n=void 0);return e?e(r,i):r}}function FC(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 i=e[r-1][1],a=t.sliceStream(i);let n=a.length,s=-1,o=0,l;for(;n--;){const c=a[n];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const c={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:i.start._bufferIndex+s,_index:i.start._index+n,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const DC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:$S},disable:{null:[]},document:{42:Xt,43:Xt,45:Xt,48:Xt,49:Xt,50:Xt,51:Xt,52:Xt,53:Xt,54:Xt,55:Xt,56:Xt,57:Xt,62:hm},flow:{35:HS,42:Ms,45:[Am,Ms],60:JS,61:Am,95:Ms,96:bm,126:bm},flowInitial:{[-2]:Ec,[-1]:Ec,32:Ec},insideSpan:{null:[Cc,IC]},string:{38:ym,92:gm},text:{[-5]:xc,[-4]:xc,[-3]:xc,33:pC,38:ym,42:Cc,60:[hS,rC],91:hC,92:[BS,gm],93:Ac,95:Cc,96:_S}},Symbol.toStringTag,{value:"Module"}));function MC(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},n=[];let s=[],o=[];const l={attempt:S(m),check:S(y),consume:b,enter:w,exit:E,interrupt:S(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:v,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let u=t.tokenize.call(c,l);return t.resolveAll&&n.push(t),c;function f(A){return s=or(s,A),k(),s[s.length-1]!==null?[]:(x(t,0),c.events=Ds(n,c.events,c),c.events)}function p(A,O){return LC(d(A),O)}function d(A){return jC(s,A)}function h(){const{_bufferIndex:A,_index:O,line:F,column:N,offset:M}=i;return{_bufferIndex:A,_index:O,line:F,column:N,offset:M}}function v(A){a[A.line]=A.column,C()}function k(){let A;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(A=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===A&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(A){u=u(A)}function b(A){me(A)?(i.line++,i.column=1,i.offset+=A===-3?2:1,C()):A!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=A}function w(A,O){const F=O||{};return F.type=A,F.start=h(),c.events.push(["enter",F,c]),o.push(F),F}function E(A){const O=o.pop();return O.end=h(),c.events.push(["exit",O,c]),O}function m(A,O){x(A,O.from)}function y(A,O){O.restore()}function S(A,O){return F;function F(N,M,q){let H,J,X,P;return Array.isArray(N)?U(N):"tokenize"in N?U([N]):j(N);function j(B){return V;function V(W){const Y=W!==null&&B[W],Z=W!==null&&B.null,z=[...Array.isArray(Y)?Y:Y?[Y]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return U(z)(W)}}function U(B){return H=B,J=0,B.length===0?q:T(B[J])}function T(B){return V;function V(W){return P=_(),X=B,B.partial||(c.currentConstruct=B),B.name&&c.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(O?Object.assign(Object.create(c),O):c,l,D,L)(W)}}function D(B){return A(X,P),M}function L(B){return P.restore(),++J<H.length?T(H[J]):q}}}function x(A,O){A.resolveAll&&!n.includes(A)&&n.push(A),A.resolve&&tr(c.events,O,c.events.length-O,A.resolve(c.events.slice(O),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function _(){const A=h(),O=c.previous,F=c.currentConstruct,N=c.events.length,M=Array.from(o);return{from:N,restore:q};function q(){i=A,c.previous=O,c.currentConstruct=F,c.events.length=N,o=M,C()}}function C(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function jC(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(i,n)];else{if(s=e.slice(r,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}n>0&&s.push(e[a].slice(0,n))}return s}function LC(e,t){let r=-1;const i=[];let a;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=`
22
+ `;break}case-3:{s=`\r
23
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(n)}a=n===-2,i.push(s)}return i.join("")}function qC(e){const i={constructs:fm([DC,...(e||{}).extensions||[]]),content:a(lS),defined:[],document:a(uS),flow:a(_C),lazy:{},string:a(TC),text:a(NC)};return i;function a(n){return s;function s(o){return MC(i,n,o)}}}function $C(e){for(;!km(e););return e}const _m=/[\0\t\n\r]/g;function zC(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let c,u,f,p,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(_m.lastIndex=f,c=_m.exec(n),p=c&&c.index!==void 0?c.index:n.length,d=n.charCodeAt(p),!c){t=n.slice(f);break}if(d===10&&f===p&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<p&&(l.push(n.slice(f,p)),e+=p-f),d){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=p+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const RC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function UC(e){return e.replace(RC,BC)}function BC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return dm(r.slice(n?2:1),n?16:10)}return wc(r)||e}const Pm={}.hasOwnProperty;function VC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),HC(r)($C(qC(r).document().write(zC()(e,t,!0))))}function HC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(be),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ee),blockQuote:n(Z),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(z,s),codeText:n($,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(G),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(K),hardBreakEscape:n(te),hardBreakTrailing:n(te),htmlFlow:n(se,s),htmlFlowData:_,htmlText:n(se,s),htmlTextData:_,image:n(ge),label:s,link:n(be),listItem:n(Se),listItemValue:p,listOrdered:n(ve,f),listUnordered:n(ve),paragraph:n(de),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ee),strong:n(We),thematicBreak:n(ke)},exit:{atxHeading:l(),atxHeadingSequence:m,autolink:l(),autolinkEmail:Y,autolinkProtocol:W,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:V,codeFenced:l(k),codeFencedFence:v,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:C,codeIndented:l(g),codeText:l(M),codeTextData:C,data:C,definition:l(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(F),htmlFlowData:C,htmlText:l(N),htmlTextData:C,image:l(H),label:X,labelText:J,lineEnding:A,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:D,resourceDestinationString:P,resourceTitleString:j,resource:U,setextHeading:l(x),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};Im(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let re={type:"root",children:[]};const ne={stack:[re],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:u,data:r},ye=[];let ue=-1;for(;++ue<Q.length;)if(Q[ue][1].type==="listOrdered"||Q[ue][1].type==="listUnordered")if(Q[ue][0]==="enter")ye.push(ue);else{const pt=ye.pop();ue=a(Q,pt,ue)}for(ue=-1;++ue<Q.length;){const pt=t[Q[ue][0]];Pm.call(pt,Q[ue][1].type)&&pt[Q[ue][1].type].call(Object.assign({sliceSerialize:Q[ue][2].sliceSerialize},ne),Q[ue][1])}if(ne.tokenStack.length>0){const pt=ne.tokenStack[ne.tokenStack.length-1];(pt[1]||Tm).call(ne,void 0,pt[0])}for(re.position={start:mn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:mn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)re=t.transforms[ue](re)||re;return re}function a(Q,re,ne){let ye=re-1,ue=-1,pt=!1,qe,Ke,St,xt;for(;++ye<=ne;){const ut=Q[ye];switch(ut[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ut[0]==="enter"?ue++:ue--,xt=void 0;break}case"lineEndingBlank":{ut[0]==="enter"&&(qe&&!xt&&!ue&&!St&&(St=ye),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!ue&&ut[0]==="enter"&&ut[1].type==="listItemPrefix"||ue===-1&&ut[0]==="exit"&&(ut[1].type==="listUnordered"||ut[1].type==="listOrdered")){if(qe){let Ct=ye;for(Ke=void 0;Ct--;){const yt=Q[Ct];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;Ke&&(Q[Ke][1].type="lineEndingBlank",pt=!0),yt[1].type="lineEnding",Ke=Ct}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}St&&(!Ke||St<Ke)&&(qe._spread=!0),qe.end=Object.assign({},Ke?Q[Ke][1].start:ut[1].end),Q.splice(Ke||ye,0,["exit",qe,ut[2]]),ye++,ne++}if(ut[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ut[1].start),end:void 0};qe=Ct,Q.splice(ye,0,["enter",Ct,ut[2]]),ye++,ne++,St=void 0,xt=!0}}}return Q[re][1]._spread=pt,ne}function n(Q,re){return ne;function ne(ye){o.call(this,Q(ye),ye),re&&re.call(this,ye)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Q,re,ne){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([re,ne||void 0]),Q.position={start:mn(re.start),end:void 0}}function l(Q){return re;function re(ne){Q&&Q.call(this,ne),c.call(this,ne)}}function c(Q,re){const ne=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==Q.type&&(re?re.call(this,Q,ye[0]):(ye[1]||Tm).call(this,Q,ye[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Ca({start:Q.start,end:Q.end})+"): it’s not open");ne.position.end=mn(Q.end)}function u(){return kc(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(Q){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.lang=Q}function h(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.meta=Q}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=wr(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function E(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function m(Q){const re=this.stack[this.stack.length-1];if(!re.depth){const ne=this.sliceSerialize(Q).length;re.depth=ne}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Q){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const ne=this.stack[this.stack.length-1].children;let ye=ne[ne.length-1];(!ye||ye.type!=="text")&&(ye=ct(),ye.position={start:mn(Q.start),end:void 0},ne.push(ye)),this.stack.push(ye)}function C(Q){const re=this.stack.pop();re.value+=this.sliceSerialize(Q),re.position.end=mn(Q.end)}function A(Q){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=mn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(_.call(this,Q),C.call(this,Q))}function O(){this.data.atHardBreak=!0}function F(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function N(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function M(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.value=Q}function q(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function H(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=re,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function J(Q){const re=this.sliceSerialize(Q),ne=this.stack[this.stack.length-2];ne.label=UC(re),ne.identifier=wr(re).toLowerCase()}function X(){const Q=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 ye=Q.children;ne.children=ye}else ne.alt=re}function P(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.url=Q}function j(){const Q=this.resume(),re=this.stack[this.stack.length-1];re.title=Q}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function D(Q){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=wr(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function L(Q){this.data.characterReferenceType=Q.type}function B(Q){const re=this.sliceSerialize(Q),ne=this.data.characterReferenceType;let ye;ne?(ye=dm(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=wc(re);const ue=this.stack[this.stack.length-1];ue.value+=ye}function V(Q){const re=this.stack.pop();re.position.end=mn(Q.end)}function W(Q){C.call(this,Q);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(Q)}function Y(Q){C.call(this,Q);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(Q)}function Z(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function G(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function ee(){return{type:"heading",depth:0,children:[]}}function te(){return{type:"break"}}function se(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function be(){return{type:"link",title:null,url:"",children:[]}}function ve(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Se(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function We(){return{type:"strong",children:[]}}function ct(){return{type:"text",value:""}}function ke(){return{type:"thematicBreak"}}}function mn(e){return{line:e.line,column:e.column,offset:e.offset}}function Im(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Im(e,i):WC(e,i)}}function WC(e,t){let r;for(r in t)if(Pm.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function Tm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ca({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ca({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ca({start:t.start,end:t.end})+") is still open")}function KC(e){const t=this;t.parser=r;function r(i){return VC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GC(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 JC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
+ `}]}function YC(e,t){const r=t.value?t.value+`
25
+ `:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let n={type:"element",tagName:"code",properties:i,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 XC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function QC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Ti(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function eE(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 tE(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Nm(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),n=a[0];n&&n.type==="text"?n.value="["+n.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function rE(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Nm(e,t);const a={src:Ti(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function nE(e,t){const r={src:Ti(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 i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function iE(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function aE(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Nm(e,t);const a={href:Ti(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sE(e,t){const r={href:Ti(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function oE(e,t,r){const i=e.all(t),a=r?lE(r):Fm(t),n={},s=[];if(typeof t.checked=="boolean"){const u=i[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},i.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<i.length;){const u=i[o];(a||o!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
26
+ `}),u.type==="element"&&u.tagName==="p"&&!a?s.push(...u.children):s.push(u)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
27
+ `});const c={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,c),e.applyData(t,c)}function lE(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Fm(r[i])}return t}function Fm(e){const t=e.spread;return t??e.children.length>1}function cE(e,t){const r={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<i.length;){const s=i[a];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(i,!0)};return e.patch(t,n),e.applyData(t,n)}function uE(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fE(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function dE(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pE(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=mc(t.children[1]),l=Qp(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function mE(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const f=t.children[l],p={},d=s?s[l]:void 0;d&&(p.align=d);let h={type:"element",tagName:n,properties:p,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),c.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function hE(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Dm=9,Mm=32;function gE(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(jm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(jm(t.slice(a),a>0,!1)),n.join("")}function jm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===Dm||n===Mm;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===Dm||n===Mm;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function yE(e,t){const r={type:"text",value:gE(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function vE(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const bE={blockquote:GC,break:JC,code:YC,delete:XC,emphasis:ZC,footnoteReference:QC,heading:eE,html:tE,imageReference:rE,image:nE,inlineCode:iE,linkReference:aE,link:sE,listItem:oE,list:cE,paragraph:uE,root:fE,strong:dE,table:pE,tableCell:hE,tableRow:mE,text:yE,thematicBreak:vE,toml:js,yaml:js,definition:js,footnoteDefinition:js};function js(){}const Lm=-1,Ls=0,_a=1,qs=2,Oc=3,_c=4,Pc=5,Ic=6,qm=7,$m=8,kE=typeof self=="object"?self:globalThis,zm=(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 kE[e](t)},wE=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,s]=t[a];switch(n){case Ls:case Lm:return r(s,a);case _a:{const o=r([],a);for(const l of s)o.push(i(l));return o}case qs:{const o=r({},a);for(const[l,c]of s)o[i(l)]=i(c);return o}case Oc:return r(new Date(s),a);case _c:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Pc:{const o=r(new Map,a);for(const[l,c]of s)o.set(i(l),i(c));return o}case Ic:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case qm:{const{name:o,message:l}=s;return r(zm(o,l),a)}case $m:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);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(zm(n,s),a)};return i},Rm=e=>wE(new Map,e)(0),Fi="",{toString:SE}={},{keys:CE}=Object,Pa=e=>{const t=typeof e;if(t!=="object"||!e)return[Ls,t];const r=SE.call(e).slice(8,-1);switch(r){case"Array":return[_a,Fi];case"Object":return[qs,Fi];case"Date":return[Oc,Fi];case"RegExp":return[_c,Fi];case"Map":return[Pc,Fi];case"Set":return[Ic,Fi];case"DataView":return[_a,r]}return r.includes("Array")?[_a,r]:r.includes("Error")?[qm,r]:[qs,r]},$s=([e,t])=>e===Ls&&(t==="function"||t==="symbol"),EE=(e,t,r,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},n=s=>{if(r.has(s))return r.get(s);let[o,l]=Pa(s);switch(o){case Ls:{let u=s;switch(l){case"bigint":o=$m,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return a([Lm],s)}return a([o,u],s)}case _a:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),a([l,[...p]],s)}const u=[],f=a([o,u],s);for(const p of s)u.push(n(p));return f}case qs:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const u=[],f=a([o,u],s);for(const p of CE(s))(e||!$s(Pa(s[p])))&&u.push([n(p),n(s[p])]);return f}case Oc:return a([o,s.toISOString()],s);case _c:{const{source:u,flags:f}=s;return a([o,{source:u,flags:f}],s)}case Pc:{const u=[],f=a([o,u],s);for(const[p,d]of s)(e||!($s(Pa(p))||$s(Pa(d))))&&u.push([n(p),n(d)]);return f}case Ic:{const u=[],f=a([o,u],s);for(const p of s)(e||!$s(Pa(p)))&&u.push(n(p));return f}}const{message:c}=s;return a([o,{name:l,message:c}],s)};return n},Um=(e,{json:t,lossy:r}={})=>{const i=[];return EE(!(t||r),!!t,new Map,i)(e),i},zs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rm(Um(e,t)):structuredClone(e):(e,t)=>Rm(Um(e,t));function AE(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 xE(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function OE(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||AE,i=e.options.footnoteBackLabel||xE,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),f=String(c.identifier).toUpperCase(),p=Ti(f.toLowerCase());let d=0;const h=[],v=e.footnoteCounts.get(f);for(;v!==void 0&&++d<=v;){h.length>0&&h.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const k=u[u.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const b=k.children[k.children.length-1];b&&b.type==="text"?b.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...h)}else u.push(...h);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(u,!0)};e.patch(c,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...zs(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
28
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
29
+ `}]}}const Rs=(function(e){if(e==null)return TE;if(typeof e=="function")return Us(e);if(typeof e=="object")return Array.isArray(e)?_E(e):PE(e);if(typeof e=="string")return IE(e);throw new Error("Expected function, string, or object as test")});function _E(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Rs(e[r]);return Us(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function PE(e){const t=e;return Us(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function IE(e){return Us(t);function t(r){return r&&r.type===e}}function Us(e){return t;function t(r,i,a){return!!(NE(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function TE(){return!0}function NE(e){return e!==null&&typeof e=="object"&&"type"in e}function SU(e){return e}const Bm=[],FE=!0,Tc=!1,DE="skip";function Vm(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=Rs(a),s=i?-1:1;o(e,void 0,[])();function o(l,c,u){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Bm,h,v,k;if((!t||n(l,c,u[u.length-1]||void 0))&&(d=ME(r(l,u)),d[0]===Tc))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==DE)for(v=(i?g.children.length:-1)+s,k=u.concat(g);v>-1&&v<g.children.length;){const b=g.children[v];if(h=o(b,v,k)(),h[0]===Tc)return h;v=typeof h[1]=="number"?h[1]:v+s}}return d}}}function ME(e){return Array.isArray(e)?e:typeof e=="number"?[FE,e]:e==null?Bm:[e]}function Nc(e,t,r,i){let a,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,a=r):(n=t,s=r,a=i),Vm(e,n,o,a);function o(l,c){const u=c[c.length-1],f=u?u.children.indexOf(l):void 0;return s(l,f,u)}}const Fc={}.hasOwnProperty,jE={};function LE(e,t){const r=t||jE,i=new Map,a=new Map,n=new Map,s={...bE,...r.handlers},o={all:c,applyData:$E,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:qE,wrap:RE};return Nc(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?i:a,p=String(u.identifier).toUpperCase();f.has(p)||f.set(p,u)}}),o;function l(u,f){const p=u.type,d=o.handlers[p];if(Fc.call(o.handlers,p)&&d)return d(o,u,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in u){const{children:v,...k}=u,g=zs(k);return g.children=o.all(u),g}return zs(u)}return(o.options.unknownHandler||zE)(o,u,f)}function c(u){const f=[];if("children"in u){const p=u.children;let d=-1;for(;++d<p.length;){const h=o.one(p[d],u);if(h){if(d&&p[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Hm(h.value)),!Array.isArray(h)&&h.type==="element")){const v=h.children[0];v&&v.type==="text"&&(v.value=Hm(v.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function qE(e,t){e.position&&(t.position=Dw(e))}function $E(e,t){let r=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,n=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,zs(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function zE(e,t){const r=t.data||{},i="value"in t&&!(Fc.call(r,"hProperties")||Fc.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function RE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
30
30
  `});++i<e.length;)i&&r.push({type:"text",value:`
31
31
  `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
32
- `}),r}function Dm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Mm(e,t){const r=wE(e,t),i=r.one(e,void 0),a=fE(r),n=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&n.children.push({type:"text",value:`
33
- `},a),n}function xE(e,t){return e&&"run"in e?async function(r,i){const a=Mm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Mm(r,{file:i,...e||t})}}function jm(e){if(e)throw e}var Tu,Lm;function OE(){if(Lm)return Tu;Lm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},n=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return Tu=function l(){var u,c,f,p,d,m,k=arguments[0],v=1,g=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<g;++v)if(u=arguments[v],u!=null)for(c in u)f=s(k,c),p=s(u,c),k!==p&&(b&&p&&(n(p)||(d=a(p)))?(d?(d=!1,m=f&&a(f)?f:[]):m=f&&n(f)?f:{},o(k,{name:c,newValue:l(b,m,p)})):typeof p<"u"&&o(k,{name:c,newValue:p}));return k},Tu}var _E=OE();const Nu=jr(_E);function Fu(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 PE(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...u){const c=e[++n];let f=-1;if(l){o(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?IE(c,s)(...u):o(null,...u)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function IE(e,t){let r;return i;function i(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return a(c)}s||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(o,...s){r||(r=!0,t(o,...s))}function n(o){a(null,o)}}const qr={basename:TE,dirname:NE,extname:FE,join:DE,sep:"/"};function TE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Pa(e);let r=0,i=-1,a=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(i=a):(s=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)}function NE(e){if(Pa(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function FE(e){Pa(e);let t=e.length,r=-1,i=0,a=-1,n=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){i=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?a<0?a=t:n!==1&&(n=1):a>-1&&(n=-1)}return a<0||r<0||n===0||n===1&&a===r-1&&a===i+1?"":e.slice(a,r)}function DE(...e){let t=-1,r;for(;++t<e.length;)Pa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ME(r)}function ME(e){Pa(e);const t=e.codePointAt(0)===47;let r=jE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function jE(e,t){let r="",i=0,a=-1,n=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||n===1))if(a!==o-1&&n===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),a=o,n=0;continue}}else if(r.length>0){r="",i=0,a=o,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),i=o-a-1;a=o,n=0}else s===46&&n>-1?n++:n=-1}return r}function Pa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const LE={cwd:qE};function qE(){return"/"}function Du(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $E(e){if(typeof e=="string")e=new URL(e);else if(!Du(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 zE(e)}function zE(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Mu=["history","path","basename","stem","extname","dirname"];class qm{constructor(t){let r;t?Du(t)?r={path:t}:typeof t=="string"||RE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":LE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Mu.length;){const n=Mu[i];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let a;for(a in r)Mu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){Lu(t,"basename"),ju(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){$m(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if(ju(t,"extname"),$m(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=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Du(t)&&(t=$E(t)),Lu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){Lu(t,"stem"),ju(t,"stem"),this.path=qr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const a=this.message(t,r,i);throw a.fatal=!0,a}info(t,r,i){const a=this.message(t,r,i);return a.fatal=void 0,a}message(t,r,i){const a=new Lt(t,r,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ju(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function Lu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $m(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function RE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const UE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),BE={}.hasOwnProperty;class qu extends UE{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=PE()}copy(){const t=new qu;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Nu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Ru("data",this.frozen),this.namespace[t]=r,this):BE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ru("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=r.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Bo(t),i=this.parser||this.Parser;return $u("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),$u("process",this.parser||this.Parser),zu("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,o){const s=Bo(t),l=i.parse(s);i.run(l,s,function(c,f,p){if(c||!f||!p)return u(c);const d=f,m=i.stringify(d,p);WE(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?o(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),$u("processSync",this.parser||this.Parser),zu("processSync",this.compiler||this.Compiler),this.process(t,a),Rm("processSync","process",r),i;function a(n,o){r=!0,jm(n),i=o}}run(t,r,i){zm(t),this.freeze();const a=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?n(void 0,i):new Promise(n);function n(o,s){const l=Bo(r);a.run(t,l,u);function u(c,f,p){const d=f||t;c?s(c):o?o(d):i(void 0,d,p)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Rm("runSync","run",i),a;function n(o,s){jm(o),a=s,i=!0}}stringify(t,r){this.freeze();const i=Bo(r),a=this.compiler||this.Compiler;return zu("stringify",a),zm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(Ru("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=Nu(!0,a.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];n(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<i.length;)if(i[f][0]===u){p=f;break}if(p===-1)i.push([u,...c]);else if(c.length>0){let[d,...m]=c;const k=i[p][1];Fu(k)&&Fu(d)&&(d=Nu(!0,k,d)),i[p]=[u,d,...m]}}}}const VE=new qu().freeze();function $u(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ru(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 zm(e){if(!Fu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Rm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Bo(e){return HE(e)?e:new qm(e)}function HE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function WE(e){return typeof e=="string"||KE(e)}function KE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Um=[],Bm={allowDangerousHtml:!0},JE=/^(https?|ircs?|mailto|xmpp)$/i,YE=[{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 XE(e){const t=ZE(e),r=QE(e);return eA(t.runSync(t.parse(r),r),e)}function ZE(e){const t=e.rehypePlugins||Um,r=e.remarkPlugins||Um,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Bm}:Bm;return VE().use(TC).use(r).use(xE,i).use(t)}function QE(e){const t=e.children||"",r=new qm;return typeof t=="string"&&(r.value=t),r}function eA(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||tA;for(const c of YE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+GE+c.id,void 0);return Pu(e,u),Cw(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in gu)if(Object.hasOwn(gu,d)&&Object.hasOwn(c.properties,d)){const m=c.properties[d],k=gu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(m||""),d,c))}}if(c.type==="element"){let d=r?!r.includes(c.tagName):n?n.includes(c.tagName):!1;if(!d&&i&&typeof f=="number"&&(d=!i(c,f,p)),d&&p&&typeof f=="number")return s&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function tA(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||i!==-1&&t>i||JE.test(e.slice(0,t))?e:""}function Vm(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=r.indexOf(t);for(;a!==-1;)i++,a=r.indexOf(t,a+t.length);return i}function rA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function nA(e,t,r){const a=Ro((r||{}).ignore||[]),n=iA(t);let o=-1;for(;++o<n.length;)Fm(e,"text",s);function s(u,c){let f=-1,p;for(;++f<c.length;){const d=c[f],m=p?p.children:void 0;if(a(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return l(u,c)}function l(u,c){const f=c[c.length-1],p=n[o][0],d=n[o][1];let m=0;const v=f.children.indexOf(u);let g=!1,b=[];p.lastIndex=0;let w=p.exec(u.value);for(;w;){const S=w.index,h={index:w.index,input:w.input,stack:[...c,u]};let y=d(...w,h);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?p.lastIndex=S+1:(m!==S&&b.push({type:"text",value:u.value.slice(m,S)}),Array.isArray(y)?b.push(...y):y&&b.push(y),m=S+w[0].length,g=!0),!p.global)break;w=p.exec(u.value)}return g?(m<u.value.length&&b.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function iA(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const a=r[i];t.push([aA(a[0]),oA(a[1])])}return t}function aA(e){return typeof e=="string"?new RegExp(rA(e),"g"):e}function oA(e){return typeof e=="function"?e:function(){return e}}const Uu="phrasing",Bu=["autolink","link","image","label"];function sA(){return{transforms:[mA],enter:{literalAutolink:uA,literalAutolinkEmail:Vu,literalAutolinkHttp:Vu,literalAutolinkWww:Vu},exit:{literalAutolink:pA,literalAutolinkEmail:dA,literalAutolinkHttp:cA,literalAutolinkWww:fA}}}function lA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Uu,notInConstruct:Bu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Uu,notInConstruct:Bu},{character:":",before:"[ps]",after:"\\/",inConstruct:Uu,notInConstruct:Bu}]}}function uA(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vu(e){this.config.enter.autolinkProtocol.call(this,e)}function cA(e){this.config.exit.autolinkProtocol.call(this,e)}function fA(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function dA(e){this.config.exit.autolinkEmail.call(this,e)}function pA(e){this.exit(e)}function mA(e){nA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),gA]],{ignore:["link","linkReference"]})}function hA(e,t,r,i,a){let n="";if(!Hm(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!yA(r)))return!1;const o=vA(r+i);if(!o[0])return!1;const s={type:"link",title:null,url:n+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function gA(e,t,r,i){return!Hm(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function yA(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function vA(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const a=Vm(e,"(");let n=Vm(e,")");for(;i!==-1&&a>n;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),n++;return[e,r]}function Hm(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Yn(r)||Fo(r))&&(!t||r!==47)}Wm.peek=OA;function bA(){this.buffer()}function kA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wA(){this.buffer()}function SA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function CA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function EA(e){this.exit(e)}function AA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function xA(e){this.exit(e)}function OA(){return"["}function Wm(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const o=r.enter("footnoteReference"),s=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),s(),o(),n+=a.move("]"),n}function _A(){return{enter:{gfmFootnoteCallString:bA,gfmFootnoteCall:kA,gfmFootnoteDefinitionLabelString:wA,gfmFootnoteDefinition:SA},exit:{gfmFootnoteCallString:CA,gfmFootnoteCall:EA,gfmFootnoteDefinitionLabelString:AA,gfmFootnoteDefinition:xA}}}function PA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Wm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,o){const s=n.createTracker(o);let l=s.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=s.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),l+=s.move("]:"),i.children&&i.children.length>0&&(s.shift(4),l+=s.move((t?`
34
- `:" ")+n.indentLines(n.containerFlow(i,s.current()),t?Km:IA))),u(),l}}function IA(e,t,r){return t===0?e:Km(e,t,r)}function Km(e,t,r){return(r?"":" ")+e}const TA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gm.peek=jA;function NA(){return{canContainEols:["delete"],enter:{strikethrough:DA},exit:{strikethrough:MA}}}function FA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:TA}],handlers:{delete:Gm}}}function DA(e){this.enter({type:"delete",children:[]},e)}function MA(e){this.exit(e)}function Gm(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let o=a.move("~~");return o+=r.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),n(),o}function jA(){return"~"}function LA(e){return e.length}function qA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||LA,n=[],o=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const k=[],v=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const b=$A(e[c][g]);if(r.alignDelimiters!==!1){const w=a(b);v[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}k.push(b)}o[c]=k,s[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=Jm(i[f]);else{const k=Jm(i);for(;++f<u;)n[f]=k}f=-1;const p=[],d=[];for(;++f<u;){const k=n[f];let v="",g="";k===99?(v=":",g=":"):k===108?v=":":k===114&&(g=":");let b=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-g.length);const w=v+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=v.length+b+g.length,b>l[f]&&(l[f]=b),d[f]=b),p[f]=w}o.splice(1,0,p),s.splice(1,0,d),c=-1;const m=[];for(;++c<o.length;){const k=o[c],v=s[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",S="";if(r.alignDelimiters!==!1){const h=l[f]-(v[f]||0),y=n[f];y===114?w=" ".repeat(h):y===99?h%2?(w=" ".repeat(h/2+.5),S=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),S=w):S=" ".repeat(h)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(b),r.alignDelimiters!==!1&&g.push(S),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}m.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
35
- `)}function $A(e){return e==null?"":String(e)}function Jm(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function zA(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const o=r.indentLines(r.containerFlow(e,n.current()),RA);return a(),o}function RA(e,t,r){return">"+(r?"":" ")+e}function UA(e,t){return Ym(e,t.inConstruct,!0)&&!Ym(e,t.notInConstruct,!1)}function Ym(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Xm(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
- `&&UA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
- `}function BA(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>o&&(o=n):n=1,a=i+t.length,i=r.indexOf(t,a);return o}function VA(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function HA(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function WA(e,t,r,i){const a=HA(r),n=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(VA(e,r)){const f=r.enter("codeIndented"),p=r.indentLines(n,KA);return f(),p}const s=r.createTracker(i),l=a.repeat(Math.max(BA(n,a)+1,3)),u=r.enter("codeFenced");let c=s.move(l);if(e.lang){const f=r.enter(`codeFencedLang${o}`);c+=s.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${o}`);c+=s.move(" "),c+=s.move(r.safe(e.meta,{before:c,after:`
38
- `,encode:["`"],...s.current()})),f()}return c+=s.move(`
39
- `),n&&(c+=s.move(n+`
40
- `)),c+=s.move(l),u(),c}function KA(e,t,r){return(r?"":" ")+e}function Hu(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function GA(e,t,r,i){const a=Hu(r),n=a==='"'?"Quote":"Apostrophe",o=r.enter("definition");let s=r.enter("label");const l=r.createTracker(i);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),s(),e.title&&(s=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),o(),u}function JA(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ia(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vo(e,t,r){const i=Ni(e),a=Ni(t);return i===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Zm.peek=YA;function Zm(e,t,r,i){const a=JA(r),n=r.enter("emphasis"),o=r.createTracker(i),s=o.move(a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=Vo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ia(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=Vo(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Ia(f));const d=o.move(a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},s+l+d}function YA(e,t,r){return r.options.emphasis||"*"}function XA(e,t){let r=!1;return Pu(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,_u}),!!((!e.depth||e.depth<3)&&yu(e)&&(t.options.setext||r))}function ZA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(XA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...n.current(),before:`
32
+ `}),r}function Hm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Wm(e,t){const r=LE(e,t),i=r.one(e,void 0),a=OE(r),n=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&n.children.push({type:"text",value:`
33
+ `},a),n}function UE(e,t){return e&&"run"in e?async function(r,i){const a=Wm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Wm(r,{file:i,...e||t})}}function Km(e){if(e)throw e}var Dc,Gm;function BE(){if(Gm)return Dc;Gm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},n=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!f)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},s=function(c,u){r&&u.name==="__proto__"?r(c,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):c[u.name]=u.newValue},o=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(i)return i(c,u).value}else return;return c[u]};return Dc=function l(){var c,u,f,p,d,h,v=arguments[0],k=1,g=arguments.length,b=!1;for(typeof v=="boolean"&&(b=v,v=arguments[1]||{},k=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});k<g;++k)if(c=arguments[k],c!=null)for(u in c)f=o(v,u),p=o(c,u),v!==p&&(b&&p&&(n(p)||(d=a(p)))?(d?(d=!1,h=f&&a(f)?f:[]):h=f&&n(f)?f:{},s(v,{name:u,newValue:l(b,h,p)})):typeof p<"u"&&s(v,{name:u,newValue:p}));return v},Dc}var VE=BE();const Mc=jr(VE);function jc(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 HE(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...c){const u=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(c[f]===null||c[f]===void 0)&&(c[f]=a[f]);a=c,u?WE(u,o)(...c):s(null,...c)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function WE(e,t){let r;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(c){const u=c;if(o&&r)throw u;return a(u)}o||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(s,...o){r||(r=!0,t(s,...o))}function n(s){a(null,s)}}const qr={basename:KE,dirname:GE,extname:JE,join:YE,sep:"/"};function KE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ia(e);let r=0,i=-1,a=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function GE(e){if(Ia(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function JE(e){Ia(e);let t=e.length,r=-1,i=0,a=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?a<0?a=t:n!==1&&(n=1):a>-1&&(n=-1)}return a<0||r<0||n===0||n===1&&a===r-1&&a===i+1?"":e.slice(a,r)}function YE(...e){let t=-1,r;for(;++t<e.length;)Ia(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":XE(r)}function XE(e){Ia(e);const t=e.codePointAt(0)===47;let r=ZE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function ZE(e,t){let r="",i=0,a=-1,n=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||n===1))if(a!==s-1&&n===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),a=s,n=0;continue}}else if(r.length>0){r="",i=0,a=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function Ia(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const QE={cwd:eA};function eA(){return"/"}function Lc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tA(e){if(typeof e=="string")e=new URL(e);else if(!Lc(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 rA(e)}function rA(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const qc=["history","path","basename","stem","extname","dirname"];class Jm{constructor(t){let r;t?Lc(t)?r={path:t}:typeof t=="string"||nA(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":QE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<qc.length;){const n=qc[i];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let a;for(a in r)qc.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){zc(t,"basename"),$c(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){Ym(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if($c(t,"extname"),Ym(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=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Lc(t)&&(t=tA(t)),zc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){zc(t,"stem"),$c(t,"stem"),this.path=qr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const a=this.message(t,r,i);throw a.fatal=!0,a}info(t,r,i){const a=this.message(t,r,i);return a.fatal=void 0,a}message(t,r,i){const a=new Lt(t,r,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function $c(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function zc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ym(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iA=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),aA={}.hasOwnProperty;class Rc extends iA{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=HE()}copy(){const t=new Rc;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Mc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Vc("data",this.frozen),this.namespace[t]=r,this):aA.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vc("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=r.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Bs(t),i=this.parser||this.Parser;return Uc("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Uc("process",this.parser||this.Parser),Bc("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=Bs(t),l=i.parse(o);i.run(l,o,function(u,f,p){if(u||!f||!p)return c(u);const d=f,h=i.stringify(d,p);lA(h)?p.value=h:p.result=h,c(u,p)});function c(u,f){u||!f?s(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),Uc("processSync",this.parser||this.Parser),Bc("processSync",this.compiler||this.Compiler),this.process(t,a),Zm("processSync","process",r),i;function a(n,s){r=!0,Km(n),i=s}}run(t,r,i){Xm(t),this.freeze();const a=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?n(void 0,i):new Promise(n);function n(s,o){const l=Bs(r);a.run(t,l,c);function c(u,f,p){const d=f||t;u?o(u):s?s(d):i(void 0,d,p)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Zm("runSync","run",i),a;function n(s,o){Km(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=Bs(r),a=this.compiler||this.Compiler;return Bc("stringify",a),Xm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(Vc("use",this.frozen),t!=null)if(typeof t=="function")l(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(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...f]=c;l(u,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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(c.plugins),c.settings&&(a.settings=Mc(!0,a.settings,c.settings))}function o(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const f=c[u];n(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let f=-1,p=-1;for(;++f<i.length;)if(i[f][0]===c){p=f;break}if(p===-1)i.push([c,...u]);else if(u.length>0){let[d,...h]=u;const v=i[p][1];jc(v)&&jc(d)&&(d=Mc(!0,v,d)),i[p]=[c,d,...h]}}}}const sA=new Rc().freeze();function Uc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vc(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 Xm(e){if(!jc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Bs(e){return oA(e)?e:new Jm(e)}function oA(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lA(e){return typeof e=="string"||cA(e)}function cA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Qm=[],eh={allowDangerousHtml:!0},fA=/^(https?|ircs?|mailto|xmpp)$/i,dA=[{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 pA(e){const t=mA(e),r=hA(e);return gA(t.runSync(t.parse(r),r),e)}function mA(e){const t=e.rehypePlugins||Qm,r=e.remarkPlugins||Qm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eh}:eh;return sA().use(KC).use(r).use(UE,i).use(t)}function hA(e){const t=e.children||"",r=new Jm;return typeof t=="string"&&(r.value=t),r}function gA(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||yA;for(const u of dA)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+uA+u.id,void 0);return Nc(e,c),$w(e,{Fragment:I.Fragment,components:a,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function c(u,f,p){if(u.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in bc)if(Object.hasOwn(bc,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],v=bc[d];(v===null||v.includes(u.tagName))&&(u.properties[d]=l(String(h||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):n?n.includes(u.tagName):!1;if(!d&&i&&typeof f=="number"&&(d=!i(u,f,p)),d&&p&&typeof f=="number")return o&&u.children?p.children.splice(f,1,...u.children):p.children.splice(f,1),f}}}function yA(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||i!==-1&&t>i||fA.test(e.slice(0,t))?e:""}function th(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=r.indexOf(t);for(;a!==-1;)i++,a=r.indexOf(t,a+t.length);return i}function vA(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bA(e,t,r){const a=Rs((r||{}).ignore||[]),n=kA(t);let s=-1;for(;++s<n.length;)Vm(e,"text",o);function o(c,u){let f=-1,p;for(;++f<u.length;){const d=u[f],h=p?p.children:void 0;if(a(d,h?h.indexOf(d):void 0,p))return;p=d}if(p)return l(c,u)}function l(c,u){const f=u[u.length-1],p=n[s][0],d=n[s][1];let h=0;const k=f.children.indexOf(c);let g=!1,b=[];p.lastIndex=0;let w=p.exec(c.value);for(;w;){const E=w.index,m={index:w.index,input:w.input,stack:[...u,c]};let y=d(...w,m);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?p.lastIndex=E+1:(h!==E&&b.push({type:"text",value:c.value.slice(h,E)}),Array.isArray(y)?b.push(...y):y&&b.push(y),h=E+w[0].length,g=!0),!p.global)break;w=p.exec(c.value)}return g?(h<c.value.length&&b.push({type:"text",value:c.value.slice(h)}),f.children.splice(k,1,...b)):b=[c],k+b.length}}function kA(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const a=r[i];t.push([wA(a[0]),SA(a[1])])}return t}function wA(e){return typeof e=="string"?new RegExp(vA(e),"g"):e}function SA(e){return typeof e=="function"?e:function(){return e}}const Hc="phrasing",Wc=["autolink","link","image","label"];function CA(){return{transforms:[IA],enter:{literalAutolink:AA,literalAutolinkEmail:Kc,literalAutolinkHttp:Kc,literalAutolinkWww:Kc},exit:{literalAutolink:PA,literalAutolinkEmail:_A,literalAutolinkHttp:xA,literalAutolinkWww:OA}}}function EA(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hc,notInConstruct:Wc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hc,notInConstruct:Wc},{character:":",before:"[ps]",after:"\\/",inConstruct:Hc,notInConstruct:Wc}]}}function AA(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Kc(e){this.config.enter.autolinkProtocol.call(this,e)}function xA(e){this.config.exit.autolinkProtocol.call(this,e)}function OA(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function _A(e){this.config.exit.autolinkEmail.call(this,e)}function PA(e){this.exit(e)}function IA(e){bA(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,TA],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),NA]],{ignore:["link","linkReference"]})}function TA(e,t,r,i,a){let n="";if(!rh(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!FA(r)))return!1;const s=DA(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:n+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function NA(e,t,r,i){return!rh(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function FA(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function DA(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const a=th(e,"(");let n=th(e,")");for(;i!==-1&&a>n;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),n++;return[e,r]}function rh(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Yn(r)||Fs(r))&&(!t||r!==47)}nh.peek=BA;function MA(){this.buffer()}function jA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function LA(){this.buffer()}function qA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $A(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function zA(e){this.exit(e)}function RA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function UA(e){this.exit(e)}function BA(){return"["}function nh(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),o(),s(),n+=a.move("]"),n}function VA(){return{enter:{gfmFootnoteCallString:MA,gfmFootnoteCall:jA,gfmFootnoteDefinitionLabelString:LA,gfmFootnoteDefinition:qA},exit:{gfmFootnoteCallString:$A,gfmFootnoteCall:zA,gfmFootnoteDefinitionLabelString:RA,gfmFootnoteDefinition:UA}}}function HA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:nh},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const c=n.enter("footnoteDefinition"),u=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),u(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
34
+ `:" ")+n.indentLines(n.containerFlow(i,o.current()),t?ih:WA))),c(),l}}function WA(e,t,r){return t===0?e:ih(e,t,r)}function ih(e,t,r){return(r?"":" ")+e}const KA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ah.peek=ZA;function GA(){return{canContainEols:["delete"],enter:{strikethrough:YA},exit:{strikethrough:XA}}}function JA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KA}],handlers:{delete:ah}}}function YA(e){this.enter({type:"delete",children:[]},e)}function XA(e){this.exit(e)}function ah(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),n(),s}function ZA(){return"~"}function QA(e){return e.length}function ex(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||QA,n=[],s=[],o=[],l=[];let c=0,u=-1;for(;++u<e.length;){const v=[],k=[];let g=-1;for(e[u].length>c&&(c=e[u].length);++g<e[u].length;){const b=tx(e[u][g]);if(r.alignDelimiters!==!1){const w=a(b);k[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}v.push(b)}s[u]=v,o[u]=k}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<c;)n[f]=sh(i[f]);else{const v=sh(i);for(;++f<c;)n[f]=v}f=-1;const p=[],d=[];for(;++f<c;){const v=n[f];let k="",g="";v===99?(k=":",g=":"):v===108?k=":":v===114&&(g=":");let b=r.alignDelimiters===!1?1:Math.max(1,l[f]-k.length-g.length);const w=k+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=k.length+b+g.length,b>l[f]&&(l[f]=b),d[f]=b),p[f]=w}s.splice(1,0,p),o.splice(1,0,d),u=-1;const h=[];for(;++u<s.length;){const v=s[u],k=o[u];f=-1;const g=[];for(;++f<c;){const b=v[f]||"";let w="",E="";if(r.alignDelimiters!==!1){const m=l[f]-(k[f]||0),y=n[f];y===114?w=" ".repeat(m):y===99?m%2?(w=" ".repeat(m/2+.5),E=" ".repeat(m/2-.5)):(w=" ".repeat(m/2),E=w):E=" ".repeat(m)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(b),r.alignDelimiters!==!1&&g.push(E),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==c-1)&&g.push("|")}h.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return h.join(`
35
+ `)}function tx(e){return e==null?"":String(e)}function sh(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function rx(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const s=r.indentLines(r.containerFlow(e,n.current()),nx);return a(),s}function nx(e,t,r){return">"+(r?"":" ")+e}function ix(e,t){return oh(e,t.inConstruct,!0)&&!oh(e,t.notInConstruct,!1)}function oh(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function lh(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
+ `&&ix(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
+ `}function ax(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>s&&(s=n):n=1,a=i+t.length,i=r.indexOf(t,a);return s}function sx(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ox(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function lx(e,t,r,i){const a=ox(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(sx(e,r)){const f=r.enter("codeIndented"),p=r.indentLines(n,cx);return f(),p}const o=r.createTracker(i),l=a.repeat(Math.max(ax(n,a)+1,3)),c=r.enter("codeFenced");let u=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);u+=o.move(r.safe(e.lang,{before:u,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);u+=o.move(" "),u+=o.move(r.safe(e.meta,{before:u,after:`
38
+ `,encode:["`"],...o.current()})),f()}return u+=o.move(`
39
+ `),n&&(u+=o.move(n+`
40
+ `)),u+=o.move(l),c(),u}function cx(e,t,r){return(r?"":" ")+e}function Gc(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ux(e,t,r,i){const a=Gc(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const l=r.createTracker(i);let c=l.move("[");return c+=l.move(r.safe(r.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":`
41
+ `,...l.current()}))),o(),e.title&&(o=r.enter(`title${n}`),c+=l.move(" "+a),c+=l.move(r.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),o()),s(),c}function fx(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ta(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vs(e,t,r){const i=Ni(e),a=Ni(t);return i===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ch.peek=dx;function ch(e,t,r,i){const a=fx(r),n=r.enter("emphasis"),s=r.createTracker(i),o=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=l.charCodeAt(0),u=Vs(i.before.charCodeAt(i.before.length-1),c,a);u.inside&&(l=Ta(c)+l.slice(1));const f=l.charCodeAt(l.length-1),p=Vs(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Ta(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},o+l+d}function dx(e,t,r){return r.options.emphasis||"*"}function px(e,t){let r=!1;return Nc(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Tc}),!!((!e.depth||e.depth<3)&&kc(e)&&(t.options.setext||r))}function mx(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(px(e,r)){const u=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...n.current(),before:`
42
42
  `,after:`
43
- `});return f(),c(),p+`
43
+ `});return f(),u(),p+`
44
44
  `+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
45
- `))+1))}const o="#".repeat(a),s=r.enter("headingAtx"),l=r.enter("phrasing");n.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
46
- `,...n.current()});return/^[\t ]/.test(u)&&(u=Ia(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),l(),s(),u}Qm.peek=QA;function Qm(e){return e.value||""}function QA(){return"<"}eh.peek=ex;function eh(e,t,r,i){const a=Hu(r),n=a==='"'?"Quote":"Apostrophe",o=r.enter("image");let s=r.enter("label");const l=r.createTracker(i);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),o(),u}function ex(){return"!"}th.peek=tx;function th(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let o=r.enter("label");const s=r.createTracker(i);let l=s.move("![");const u=r.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,n(),a==="full"||!u||u!==f?l+=s.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function tx(){return"!"}rh.peek=rx;function rh(e,t,r){let i=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++n<r.unsafe.length;){const o=r.unsafe[n],s=r.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return a+i+a}function rx(){return"`"}function nh(e,t){const r=yu(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ih.peek=nx;function ih(e,t,r,i){const a=Hu(r),n=a==='"'?"Quote":"Apostrophe",o=r.createTracker(i);let s,l;if(nh(e,r)){const c=r.stack;r.stack=[],s=r.enter("autolink");let f=o.move("<");return f+=o.move(r.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),s(),r.stack=c,f}s=r.enter("link"),l=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=o.move(" "+a),u+=o.move(r.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),l()),u+=o.move(")"),s(),u}function nx(e,t,r){return nh(e,r)?"<":"["}ah.peek=ix;function ah(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let o=r.enter("label");const s=r.createTracker(i);let l=s.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...s.current()});return o(),r.stack=c,n(),a==="full"||!u||u!==f?l+=s.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function ix(){return"["}function Wu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ax(e){const t=Wu(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function ox(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function oh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function sx(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let o=e.ordered?ox(r):Wu(r);const s=e.ordered?o==="."?")":".":ax(r);let l=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),oh(r)===o&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),r.bulletCurrent=o;const u=r.containerFlow(e,i);return r.bulletLastUsed=o,r.bulletCurrent=n,a(),u}function lx(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ux(e,t,r,i){const a=lx(r);let n=r.bulletCurrent||Wu(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let o=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=r.createTracker(i);s.move(n+" ".repeat(o-n.length)),s.shift(o);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,s.current()),c);return l(),u;function c(f,p,d){return p?(d?"":" ".repeat(o))+f:(d?n:n+" ".repeat(o-n.length))+f}}function cx(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),o=r.containerPhrasing(e,i);return n(),a(),o}const fx=Ro(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function dx(e,t,r,i){return(e.children.some(function(o){return fx(o)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function px(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}sh.peek=mx;function sh(e,t,r,i){const a=px(r),n=r.enter("strong"),o=r.createTracker(i),s=o.move(a+a);let l=o.move(r.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),c=Vo(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ia(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=Vo(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Ia(f));const d=o.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},s+l+d}function mx(e,t,r){return r.options.strong||"*"}function hx(e,t,r,i){return r.safe(e.value,i)}function gx(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function yx(e,t,r){const i=(oh(r)+(r.options.ruleSpaces?" ":"")).repeat(gx(r));return r.options.ruleSpaces?i.slice(0,-1):i}const lh={blockquote:zA,break:Xm,code:WA,definition:GA,emphasis:Zm,hardBreak:Xm,heading:ZA,html:Qm,image:eh,imageReference:th,inlineCode:rh,link:ih,linkReference:ah,list:sx,listItem:ux,paragraph:cx,root:dx,strong:sh,text:hx,thematicBreak:yx};function vx(){return{enter:{table:bx,tableData:uh,tableHeader:uh,tableRow:wx},exit:{codeText:Sx,table:kx,tableData:Ku,tableHeader:Ku,tableRow:Ku}}}function bx(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function kx(e){this.exit(e),this.data.inTable=void 0}function wx(e){this.enter({type:"tableRow",children:[]},e)}function Ku(e){this.exit(e)}function uh(e){this.enter({type:"tableCell",children:[]},e)}function Sx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Cx));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function Cx(e,t){return t==="|"?t:e}function Ex(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:s}};function o(d,m,k,v){return u(c(d,k,v),d.align)}function s(d,m,k,v){const g=f(d,k,v),b=u([g]);return b.slice(0,b.indexOf(`
48
- `))}function l(d,m,k,v){const g=k.enter("tableCell"),b=k.enter("phrasing"),w=k.containerPhrasing(d,{...v,before:n,after:n});return b(),g(),w}function u(d,m){return qA(d,{align:m,alignDelimiters:i,padding:r,stringLength:a})}function c(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("table");for(;++g<v.length;)b[g]=f(v[g],m,k);return w(),b}function f(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,m,k);return w(),b}function p(d,m,k){let v=lh.inlineCode(d,m,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Ax(){return{exit:{taskListCheckValueChecked:ch,taskListCheckValueUnchecked:ch,paragraph:Ox}}}function xx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_x}}}function ch(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Ox(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const a=t.children;let n=-1,o;for(;++n<a.length;){const s=a[n];if(s.type==="paragraph"){o=s;break}}o===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function _x(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=r.createTracker(i);n&&s.move(o);let l=lh.listItem(e,t,r,{...i,...s.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Px(){return[sA(),_A(),NA(),vx(),Ax()]}function Ix(e){return{extensions:[lA(),PA(e),FA(),Ex(e),xx()]}}const Tx={tokenize:Lx,partial:!0},fh={tokenize:qx,partial:!0},dh={tokenize:$x,partial:!0},ph={tokenize:zx,partial:!0},Nx={tokenize:Rx,partial:!0},mh={name:"wwwAutolink",tokenize:Mx,previous:gh},hh={name:"protocolAutolink",tokenize:jx,previous:yh},Qr={name:"emailAutolink",tokenize:Dx,previous:vh},$r={};function Fx(){return{text:$r}}let Xn=48;for(;Xn<123;)$r[Xn]=Qr,Xn++,Xn===58?Xn=65:Xn===91&&(Xn=97);$r[43]=Qr,$r[45]=Qr,$r[46]=Qr,$r[95]=Qr,$r[72]=[Qr,hh],$r[104]=[Qr,hh],$r[87]=[Qr,mh],$r[119]=[Qr,mh];function Dx(e,t,r){const i=this;let a,n;return o;function o(f){return!Gu(f)||!vh.call(i,i.previous)||Ju(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Gu(f)?(e.consume(f),s):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(Nx,c,u)(f):f===45||f===95||qt(f)?(n=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),a=!0,l}function c(f){return n&&a&&Ut(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function Mx(e,t,r){const i=this;return a;function a(o){return o!==87&&o!==119||!gh.call(i,i.previous)||Ju(i.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Tx,e.attempt(fh,e.attempt(dh,n),r),r)(o))}function n(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function jx(e,t,r){const i=this;let a="",n=!1;return o;function o(f){return(f===72||f===104)&&yh.call(i,i.previous)&&!Ju(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),s):r(f)}function s(f){if(Ut(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),n?u:(n=!0,l)):r(f)}function u(f){return f===null||No(f)||dt(f)||Yn(f)||Fo(f)?r(f):e.attempt(fh,e.attempt(dh,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Lx(e,t,r){let i=0;return a;function a(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),a):o===46&&i===3?(e.consume(o),n):r(o)}function n(o){return o===null?r(o):t(o)}}function qx(e,t,r){let i,a,n;return o;function o(u){return u===46||u===95?e.check(ph,l,s)(u):u===null||dt(u)||Yn(u)||u!==45&&Fo(u)?l(u):(n=!0,e.consume(u),o)}function s(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),o}function l(u){return a||i||!n?r(u):t(u)}}function $x(e,t){let r=0,i=0;return a;function a(o){return o===40?(r++,e.consume(o),a):o===41&&i<r?n(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ph,t,n)(o):o===null||dt(o)||Yn(o)?t(o):(e.consume(o),a)}function n(o){return o===41&&i++,e.consume(o),a}}function zx(e,t,r){return i;function i(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),i):s===38?(e.consume(s),n):s===93?(e.consume(s),a):s===60||s===null||dt(s)||Yn(s)?t(s):r(s)}function a(s){return s===null||s===40||s===91||dt(s)||Yn(s)?t(s):i(s)}function n(s){return Ut(s)?o(s):r(s)}function o(s){return s===59?(e.consume(s),i):Ut(s)?(e.consume(s),o):r(s)}}function Rx(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return qt(n)?r(n):t(n)}}function gh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function yh(e){return!Ut(e)}function vh(e){return!(e===47||Gu(e))}function Gu(e){return e===43||e===45||e===46||e===95||qt(e)}function Ju(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const Ux={tokenize:Yx,partial:!0};function Bx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kx,continuation:{tokenize:Gx},exit:Jx}},text:{91:{name:"gfmFootnoteCall",tokenize:Wx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Vx,resolveTo:Hx}}}}function Vx(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return r(l);const u=wr(i.sliceSerialize({start:o.end,end:i.now()}));return u.codePointAt(0)!==94||!n.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Hx(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const n={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},s=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...s),e}function Wx(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,o;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(n>999||f===93&&!o||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(wr(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(o=!0),n++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),n++,u):u(f)}}function Kx(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,o=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(o>999||m===93&&!s||m===null||m===91||dt(m))return r(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=wr(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return dt(m)||(s=!0),o++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),o++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(m)}function d(m){return t(m)}}function Gx(e,t,r){return e.check(Ea,t,e.attempt(Ux,t,r))}function Jx(e){e.exit("gfmFootnoteDefinition")}function Yx(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(n):r(n)}}function Xx(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:n,resolveAll:a};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",f,s]],d=s.parser.constructs.insideSpan.null;d&&tr(p,p.length,0,Do(d,o.slice(u+1,l),s)),tr(p,p.length,0,[["exit",f,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",c,s]]),tr(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function n(o,s,l){const u=this.previous,c=this.events;let f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(o.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const k=Ni(u);if(m===126)return f>1?l(m):(o.consume(m),f++,d);if(f<2&&!r)return l(m);const v=o.exit("strikethroughSequenceTemporary"),g=Ni(m);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,s(m)}}}class Zx{constructor(){this.map=[]}add(t,r,i){Qx(this,t,r,i)}consume(t){if(this.map.sort(function(n,o){return n[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const n of a)t.push(n);a=i.pop()}this.map.length=0}}function Qx(e,t,r,i){let a=0;if(!(r===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...i);return}a+=1}e.map.push([t,r,i])}}function eO(e,t){let r=!1;const i=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const n=i.length-1;i[n]=i[n]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function tO(){return{flow:{null:{name:"table",tokenize:rO,resolveAll:nO}}}}function rO(e,t,r){const i=this;let a=0,n=0,o;return s;function s(E){let A=i.events.length-1;for(;A>-1;){const T=i.events[A][1].type;if(T==="lineEnding"||T==="linePrefix")A--;else break}const O=A>-1?i.events[A][1].type:null,F=O==="tableHead"||O==="tableRow"?y:l;return F===y&&i.parser.lazy[i.now().line]?r(E):F(E)}function l(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(o=!0,n+=1),c(E)}function c(E){return E===null?r(E):me(E)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),d):r(E):Me(E)?Be(e,c,"whitespace")(E):(n+=1,o&&(o=!1,a+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(E)))}function f(E){return E===null||E===124||dt(E)?(e.exit("data"),c(E)):(e.consume(E),E===92?p:f)}function p(E){return E===92||E===124?(e.consume(E),f):f(E)}function d(E){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(E):(e.enter("tableDelimiterRow"),o=!1,Me(E)?Be(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):m(E))}function m(E){return E===45||E===58?v(E):E===124?(o=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),k):h(E)}function k(E){return Me(E)?Be(e,v,"whitespace")(E):v(E)}function v(E){return E===58?(n+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),g):E===45?(n+=1,g(E)):E===null||me(E)?S(E):h(E)}function g(E){return E===45?(e.enter("tableDelimiterFiller"),b(E)):h(E)}function b(E){return E===45?(e.consume(E),b):E===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(E))}function w(E){return Me(E)?Be(e,S,"whitespace")(E):S(E)}function S(E){return E===124?m(E):E===null||me(E)?!o||a!==n?h(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):h(E)}function h(E){return r(E)}function y(E){return e.enter("tableRow"),C(E)}function C(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),C):E===null||me(E)?(e.exit("tableRow"),t(E)):Me(E)?Be(e,C,"whitespace")(E):(e.enter("data"),x(E))}function x(E){return E===null||E===124||dt(E)?(e.exit("data"),C(E)):(e.consume(E),E===92?_:x)}function _(E){return E===92||E===124?(e.consume(E),x):x(E)}}function nO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,c,f;const p=new Zx;for(;++r<e.length;){const d=e[r],m=d[1];d[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(bh(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],o=[0,r+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),a=m.type==="tableDelimiterRow"?2:c?3:1):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(n[1]!==0&&(o[0]=o[1],f=Ho(p,t,n,a,void 0,f),n=[0,0,0,0]),o[2]=r)):m.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(o[0]=o[1],f=Ho(p,t,n,a,void 0,f)),n=o,o=[n[1],r,0,0])):m.type==="tableHead"?(s=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,n[1]!==0?(o[0]=o[1],f=Ho(p,t,n,a,r,f)):o[1]!==0&&(f=Ho(p,t,o,a,r,f)),a=0):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(o[3]=r)}for(l!==0&&bh(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=eO(t.events,r))}return e}function Ho(e,t,r,i,a,n){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",s="tableContent";r[0]!==0&&(n.end=Object.assign({},Di(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Di(t.events,r[1]);if(n={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const u=Di(t.events,r[2]),c=Di(t.events,r[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const p=t.events[r[2]],d=t.events[r[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){const m=r[2]+1,k=r[3]-r[2]-1;e.add(m,k,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Di(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function bh(e,t,r,i,a){const n=[],o=Di(t.events,r);a&&(a.end=Object.assign({},o),n.push(["exit",a,t])),i.end=Object.assign({},o),n.push(["exit",i,t]),e.add(r+1,0,n)}function Di(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const iO={name:"tasklistCheck",tokenize:oO};function aO(){return{text:{91:iO}}}function oO(e,t,r){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),n)}function n(l){return dt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):r(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):r(l)}function s(l){return me(l)?t(l):Me(l)?e.check({tokenize:sO},t,r)(l):r(l)}}function sO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function lO(e){return em([Fx(),Bx(),Xx(e),tO(),aO()])}const uO={};function cO(e){const t=this,r=e||uO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(lO(r)),n.push(Px()),o.push(Ix(r))}const kh=XE,wh=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Sr(e){const t=e.components||{};return t.a||(t.a=wh),N.jsx(kh,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const fO=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function Yu(e){const t=e.components||{};return t.a||(t.a=wh),N.jsx(kh,{...e,remarkPlugins:[cO],components:t,allowedElements:fO})}/*!
45
+ `))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");n.move(s+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
46
+ `,...n.current()});return/^[\t ]/.test(c)&&(c=Ta(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,r.options.closeAtx&&(c+=" "+s),l(),o(),c}uh.peek=hx;function uh(e){return e.value||""}function hx(){return"<"}fh.peek=gx;function fh(e,t,r,i){const a=Gc(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(i);let c=l.move("![");return c+=l.move(r.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(r.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=r.enter("destinationRaw"),c+=l.move(r.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${n}`),c+=l.move(" "+a),c+=l.move(r.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),o()),c+=l.move(")"),s(),c}function gx(){return"!"}dh.peek=yx;function dh(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("![");const c=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const u=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=u,n(),a==="full"||!c||c!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function yx(){return"!"}ph.peek=vx;function ph(e,t,r){let i=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++n<r.unsafe.length;){const s=r.unsafe[n],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let c=l.index;i.charCodeAt(c)===10&&i.charCodeAt(c-1)===13&&c--,i=i.slice(0,c)+" "+i.slice(l.index+1)}}return a+i+a}function vx(){return"`"}function mh(e,t){const r=kc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}hh.peek=bx;function hh(e,t,r,i){const a=Gc(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(mh(e,r)){const u=r.stack;r.stack=[],o=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),r.stack=u,f}o=r.enter("link"),l=r.enter("label");let c=s.move("[");return c+=s.move(r.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(r.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=r.enter("destinationRaw"),c+=s.move(r.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),c+=s.move(" "+a),c+=s.move(r.safe(e.title,{before:c,after:a,...s.current()})),c+=s.move(a),l()),c+=s.move(")"),o(),c}function bx(e,t,r){return mh(e,r)?"<":"["}gh.peek=kx;function gh(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("[");const c=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),s();const u=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=u,n(),a==="full"||!c||c!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function kx(){return"["}function Jc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wx(e){const t=Jc(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function Sx(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Cx(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?Sx(r):Jc(r);const o=e.ordered?s==="."?")":".":wx(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),yh(r)===s&&u){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const c=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),c}function Ex(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ax(e,t,r,i){const a=Ex(r);let n=r.bulletCurrent||Jc(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let s=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(i);o.move(n+" ".repeat(s-n.length)),o.shift(s);const l=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,o.current()),u);return l(),c;function u(f,p,d){return p?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function xx(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const Ox=Rs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _x(e,t,r,i){return(e.children.some(function(s){return Ox(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function Px(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}vh.peek=Ix;function vh(e,t,r,i){const a=Px(r),n=r.enter("strong"),s=r.createTracker(i),o=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const c=l.charCodeAt(0),u=Vs(i.before.charCodeAt(i.before.length-1),c,a);u.inside&&(l=Ta(c)+l.slice(1));const f=l.charCodeAt(l.length-1),p=Vs(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Ta(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},o+l+d}function Ix(e,t,r){return r.options.strong||"*"}function Tx(e,t,r,i){return r.safe(e.value,i)}function Nx(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Fx(e,t,r){const i=(yh(r)+(r.options.ruleSpaces?" ":"")).repeat(Nx(r));return r.options.ruleSpaces?i.slice(0,-1):i}const bh={blockquote:rx,break:lh,code:lx,definition:ux,emphasis:ch,hardBreak:lh,heading:mx,html:uh,image:fh,imageReference:dh,inlineCode:ph,link:hh,linkReference:gh,list:Cx,listItem:Ax,paragraph:xx,root:_x,strong:vh,text:Tx,thematicBreak:Fx};function Dx(){return{enter:{table:Mx,tableData:kh,tableHeader:kh,tableRow:Lx},exit:{codeText:qx,table:jx,tableData:Yc,tableHeader:Yc,tableRow:Yc}}}function Mx(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function jx(e){this.exit(e),this.data.inTable=void 0}function Lx(e){this.enter({type:"tableRow",children:[]},e)}function Yc(e){this.exit(e)}function kh(e){this.enter({type:"tableCell",children:[]},e)}function qx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$x));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function $x(e,t){return t==="|"?t:e}function zx(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(d,h,v,k){return c(u(d,v,k),d.align)}function o(d,h,v,k){const g=f(d,v,k),b=c([g]);return b.slice(0,b.indexOf(`
48
+ `))}function l(d,h,v,k){const g=v.enter("tableCell"),b=v.enter("phrasing"),w=v.containerPhrasing(d,{...k,before:n,after:n});return b(),g(),w}function c(d,h){return ex(d,{align:h,alignDelimiters:i,padding:r,stringLength:a})}function u(d,h,v){const k=d.children;let g=-1;const b=[],w=h.enter("table");for(;++g<k.length;)b[g]=f(k[g],h,v);return w(),b}function f(d,h,v){const k=d.children;let g=-1;const b=[],w=h.enter("tableRow");for(;++g<k.length;)b[g]=l(k[g],d,h,v);return w(),b}function p(d,h,v){let k=bh.inlineCode(d,h,v);return v.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Rx(){return{exit:{taskListCheckValueChecked:wh,taskListCheckValueUnchecked:wh,paragraph:Bx}}}function Ux(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vx}}}function wh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Bx(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const a=t.children;let n=-1,s;for(;++n<a.length;){const o=a[n];if(o.type==="paragraph"){s=o;break}}s===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function Vx(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(i);n&&o.move(s);let l=bh.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function Hx(){return[CA(),VA(),GA(),Dx(),Rx()]}function Wx(e){return{extensions:[EA(),HA(e),JA(),zx(e),Ux()]}}const Kx={tokenize:Qx,partial:!0},Sh={tokenize:eO,partial:!0},Ch={tokenize:tO,partial:!0},Eh={tokenize:rO,partial:!0},Gx={tokenize:nO,partial:!0},Ah={name:"wwwAutolink",tokenize:Xx,previous:Oh},xh={name:"protocolAutolink",tokenize:Zx,previous:_h},Qr={name:"emailAutolink",tokenize:Yx,previous:Ph},$r={};function Jx(){return{text:$r}}let Xn=48;for(;Xn<123;)$r[Xn]=Qr,Xn++,Xn===58?Xn=65:Xn===91&&(Xn=97);$r[43]=Qr,$r[45]=Qr,$r[46]=Qr,$r[95]=Qr,$r[72]=[Qr,xh],$r[104]=[Qr,xh],$r[87]=[Qr,Ah],$r[119]=[Qr,Ah];function Yx(e,t,r){const i=this;let a,n;return s;function s(f){return!Xc(f)||!Ph.call(i,i.previous)||Zc(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Xc(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(Gx,u,c)(f):f===45||f===95||qt(f)?(n=!0,e.consume(f),l):u(f)}function c(f){return e.consume(f),a=!0,l}function u(f){return n&&a&&Ut(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function Xx(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!Oh.call(i,i.previous)||Zc(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Kx,e.attempt(Sh,e.attempt(Ch,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Zx(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&_h.call(i,i.previous)&&!Zc(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Ut(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),n?c:(n=!0,l)):r(f)}function c(f){return f===null||Ns(f)||dt(f)||Yn(f)||Fs(f)?r(f):e.attempt(Sh,e.attempt(Ch,u),r)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Qx(e,t,r){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),n):r(s)}function n(s){return s===null?r(s):t(s)}}function eO(e,t,r){let i,a,n;return s;function s(c){return c===46||c===95?e.check(Eh,l,o)(c):c===null||dt(c)||Yn(c)||c!==45&&Fs(c)?l(c):(n=!0,e.consume(c),s)}function o(c){return c===95?i=!0:(a=i,i=void 0),e.consume(c),s}function l(c){return a||i||!n?r(c):t(c)}}function tO(e,t){let r=0,i=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&i<r?n(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Eh,t,n)(s):s===null||dt(s)||Yn(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function rO(e,t,r){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),n):o===93?(e.consume(o),a):o===60||o===null||dt(o)||Yn(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||Yn(o)?t(o):i(o)}function n(o){return Ut(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Ut(o)?(e.consume(o),s):r(o)}}function nO(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return qt(n)?r(n):t(n)}}function Oh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function _h(e){return!Ut(e)}function Ph(e){return!(e===47||Xc(e))}function Xc(e){return e===43||e===45||e===46||e===95||qt(e)}function Zc(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const iO={tokenize:dO,partial:!0};function aO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:cO,continuation:{tokenize:uO},exit:fO}},text:{91:{name:"gfmFootnoteCall",tokenize:lO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sO,resolveTo:oO}}}}function sO(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const c=wr(i.sliceSerialize({start:s.end,end:i.now()}));return c.codePointAt(0)!==94||!n.includes(c.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function oO(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const n={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},o=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...o),e}function lO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(n>999||f===93&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(wr(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(s=!0),n++,e.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(e.consume(f),n++,c):c(f)}}function cO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):r(h)}function u(h){if(s>999||h===93&&!o||h===null||h===91||dt(h))return r(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return n=wr(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return dt(h)||(o=!0),s++,e.consume(h),h===92?f:u}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,u):u(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(h)}function d(h){return t(h)}}function uO(e,t,r){return e.check(Aa,t,e.attempt(iO,t,r))}function fO(e){e.exit("gfmFootnoteDefinition")}function dO(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(n):r(n)}}function pO(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:n,resolveAll:a};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",u,o],["enter",s[c][1],o],["exit",s[c][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&tr(p,p.length,0,Ds(d,s.slice(c+1,l),o)),tr(p,p.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",u,o]]),tr(s,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function n(s,o,l){const c=this.previous,u=this.events;let f=0;return p;function p(h){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),d(h))}function d(h){const v=Ni(c);if(h===126)return f>1?l(h):(s.consume(h),f++,d);if(f<2&&!r)return l(h);const k=s.exit("strikethroughSequenceTemporary"),g=Ni(h);return k._open=!g||g===2&&!!v,k._close=!v||v===2&&!!g,o(h)}}}class mO{constructor(){this.map=[]}add(t,r,i){hO(this,t,r,i)}consume(t){if(this.map.sort(function(n,s){return n[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const n of a)t.push(n);a=i.pop()}this.map.length=0}}function hO(e,t,r,i){let a=0;if(!(r===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...i);return}a+=1}e.map.push([t,r,i])}}function gO(e,t){let r=!1;const i=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const n=i.length-1;i[n]=i[n]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function yO(){return{flow:{null:{name:"table",tokenize:vO,resolveAll:bO}}}}function vO(e,t,r){const i=this;let a=0,n=0,s;return o;function o(C){let A=i.events.length-1;for(;A>-1;){const N=i.events[A][1].type;if(N==="lineEnding"||N==="linePrefix")A--;else break}const O=A>-1?i.events[A][1].type:null,F=O==="tableHead"||O==="tableRow"?y:l;return F===y&&i.parser.lazy[i.now().line]?r(C):F(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),c(C)}function c(C){return C===124||(s=!0,n+=1),u(C)}function u(C){return C===null?r(C):me(C)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),d):r(C):Me(C)?Be(e,u,"whitespace")(C):(n+=1,s&&(s=!1,a+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||dt(C)?(e.exit("data"),u(C)):(e.consume(C),C===92?p:f)}function p(C){return C===92||C===124?(e.consume(C),f):f(C)}function d(C){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(C):(e.enter("tableDelimiterRow"),s=!1,Me(C)?Be(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):h(C))}function h(C){return C===45||C===58?k(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),v):m(C)}function v(C){return Me(C)?Be(e,k,"whitespace")(C):k(C)}function k(C){return C===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),g):C===45?(n+=1,g(C)):C===null||me(C)?E(C):m(C)}function g(C){return C===45?(e.enter("tableDelimiterFiller"),b(C)):m(C)}function b(C){return C===45?(e.consume(C),b):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(C))}function w(C){return Me(C)?Be(e,E,"whitespace")(C):E(C)}function E(C){return C===124?h(C):C===null||me(C)?!s||a!==n?m(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):m(C)}function m(C){return r(C)}function y(C){return e.enter("tableRow"),S(C)}function S(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),S):C===null||me(C)?(e.exit("tableRow"),t(C)):Me(C)?Be(e,S,"whitespace")(C):(e.enter("data"),x(C))}function x(C){return C===null||C===124||dt(C)?(e.exit("data"),S(C)):(e.consume(C),C===92?_:x)}function _(C){return C===92||C===124?(e.consume(C),x):x(C)}}function bO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,c,u,f;const p=new mO;for(;++r<e.length;){const d=e[r],h=d[1];d[0]==="enter"?h.type==="tableHead"?(o=!1,l!==0&&(Ih(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(r,0,[["enter",c,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(r,0,[["enter",u,t]])),a=h.type==="tableDelimiterRow"?2:u?3:1):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Hs(p,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):h.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Hs(p,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):h.type==="tableHead"?(o=!0,l=r):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Hs(p,t,n,a,r,f)):s[1]!==0&&(f=Hs(p,t,s,a,r,f)),a=0):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Ih(p,t,l,c,u),p.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=gO(t.events,r))}return e}function Hs(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Di(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Di(t.events,r[1]);if(n={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const c=Di(t.events,r[2]),u=Di(t.events,r[3]),f={type:o,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const p=t.events[r[2]],d=t.events[r[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){const h=r[2]+1,v=r[3]-r[2]-1;e.add(h,v,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Di(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function Ih(e,t,r,i,a){const n=[],s=Di(t.events,r);a&&(a.end=Object.assign({},s),n.push(["exit",a,t])),i.end=Object.assign({},s),n.push(["exit",i,t]),e.add(r+1,0,n)}function Di(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const kO={name:"tasklistCheck",tokenize:SO};function wO(){return{text:{91:kO}}}function SO(e,t,r){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),n)}function n(l){return dt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return me(l)?t(l):Me(l)?e.check({tokenize:CO},t,r)(l):r(l)}}function CO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function EO(e){return fm([Jx(),aO(),pO(e),yO(),wO()])}const AO={};function xO(e){const t=this,r=e||AO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(EO(r)),n.push(Hx()),s.push(Wx(r))}const Th=pA,Nh=e=>I.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Sr(e){const t=e.components||{};return t.a||(t.a=Nh),I.jsx(Th,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const OO=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function Qc(e){const t=e.components||{};return t.a||(t.a=Nh),I.jsx(Th,{...e,remarkPlugins:[xO],components:t,allowedElements:OO})}/*!
49
49
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
50
50
  * http://github.com/janl/mustache.js
51
- */var dO=Object.prototype.toString,Mi=Array.isArray||function(t){return dO.call(t)==="[object Array]"};function Xu(e){return typeof e=="function"}function pO(e){return Mi(e)?"array":typeof e}function Zu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Sh(e,t){return e!=null&&typeof e=="object"&&t in e}function mO(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var hO=RegExp.prototype.test;function gO(e,t){return hO.call(e,t)}var yO=/\S/;function vO(e){return!gO(yO,e)}var bO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function kO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return bO[r]})}var wO=/\s*/,SO=/\s+/,Ch=/\s*=/,CO=/\s*\}/,EO=/#|\^|\/|>|\{|&|=|!/;function AO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],o=!1,s=!1,l="",u=0;function c(){if(o&&!s)for(;n.length;)delete a[n.pop()];else n=[];o=!1,s=!1}var f,p,d;function m(x){if(typeof x=="string"&&(x=x.split(SO,2)),!Mi(x)||x.length!==2)throw new Error("Invalid tags: "+x);f=new RegExp(Zu(x[0])+"\\s*"),p=new RegExp("\\s*"+Zu(x[1])),d=new RegExp("\\s*"+Zu("}"+x[1]))}m(t||lr.tags);for(var k=new Ta(e),v,g,b,w,S,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,C=b.length;y<C;++y)w=b.charAt(y),vO(w)?(n.push(a.length),l+=w):(s=!0,r=!0,l+=" "),a.push(["text",w,v,v+1]),v+=1,w===`
52
- `&&(c(),l="",u=0,r=!1);if(!k.scan(f))break;if(o=!0,g=k.scan(EO)||"name",k.scan(wO),g==="="?(b=k.scanUntil(Ch),k.scan(Ch),k.scanUntil(p)):g==="{"?(b=k.scanUntil(d),k.scan(CO),k.scanUntil(p),g="&"):b=k.scanUntil(p),!k.scan(p))throw new Error("Unclosed tag at "+k.pos);if(g==">"?S=[g,b,v,k.pos,l,u,r]:S=[g,b,v,k.pos],u++,a.push(S),g==="#"||g==="^")i.push(S);else if(g==="/"){if(h=i.pop(),!h)throw new Error('Unopened section "'+b+'" at '+v);if(h[1]!==b)throw new Error('Unclosed section "'+h[1]+'" at '+v)}else g==="name"||g==="{"||g==="&"?s=!0:g==="="&&m(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return OO(xO(a))}function xO(e){for(var t=[],r,i,a=0,n=e.length;a<n;++a)r=e[a],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function OO(e){for(var t=[],r=t,i=[],a,n,o=0,s=e.length;o<s;++o)switch(a=e[o],a[0]){case"#":case"^":r.push(a),i.push(a),r=a[4]=[];break;case"/":n=i.pop(),n[5]=a[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(a)}return t}function Ta(e){this.string=e,this.tail=e,this.pos=0}Ta.prototype.eos=function(){return this.tail===""},Ta.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},Ta.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function ji(e,t){this.view=e,this.cache={".":this.view},this.parent=t}ji.prototype.push=function(t){return new ji(t,this)},ji.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,o,s,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,o=t.split("."),s=0;n!=null&&s<o.length;)s===o.length-1&&(l=Sh(n,o[s])||mO(n,o[s])),n=n[o[s++]];else n=a.view[t],l=Sh(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Xu(i)&&(i=i.call(this.view)),i};function Bt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Bt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Bt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lr.tags).join(":"),n=typeof i<"u",o=n?i.get(a):void 0;return o==null&&(o=AO(t,r),n&&i.set(a,o)),o},Bt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),o=this.parse(t,n),s=r instanceof ji?r:new ji(r,void 0);return this.renderTokens(o,s,i,t,a)},Bt.prototype.renderTokens=function(t,r,i,a,n){for(var o="",s,l,u,c=0,f=t.length;c<f;++c)u=void 0,s=t[c],l=s[0],l==="#"?u=this.renderSection(s,r,i,a,n):l==="^"?u=this.renderInverted(s,r,i,a,n):l===">"?u=this.renderPartial(s,r,i,n):l==="&"?u=this.unescapedValue(s,r):l==="name"?u=this.escapedValue(s,r,n):l==="text"&&(u=this.rawValue(s)),u!==void 0&&(o+=u);return o},Bt.prototype.renderSection=function(t,r,i,a,n){var o=this,s="",l=r.lookup(t[1]);function u(p){return o.render(p,r,i,n)}if(l){if(Mi(l))for(var c=0,f=l.length;c<f;++c)s+=this.renderTokens(t[4],r.push(l[c]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")s+=this.renderTokens(t[4],r.push(l),i,a,n);else if(Xu(l)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(r.view,a.slice(t[3],t[5]),u),l!=null&&(s+=l)}else s+=this.renderTokens(t[4],r,i,a,n);return s}},Bt.prototype.renderInverted=function(t,r,i,a,n){var o=r.lookup(t[1]);if(!o||Mi(o)&&o.length===0)return this.renderTokens(t[4],r,i,a,n)},Bt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
53
- `),o=0;o<n.length;o++)n[o].length&&(o>0||!i)&&(n[o]=a+n[o]);return n.join(`
54
- `)},Bt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),o=Xu(i)?i(t[1]):i[t[1]];if(o!=null){var s=t[6],l=t[5],u=t[4],c=o;l==0&&u&&(c=this.indentPartial(o,u,s));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}},Bt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i},Bt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lr.escape?String(n):a(n)},Bt.prototype.rawValue=function(t){return t[1]},Bt.prototype.getConfigTags=function(t){return Mi(t)?t:t&&typeof t=="object"?t.tags:void 0},Bt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Mi(t))return t.escape};var lr={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){Na.templateCache=e},get templateCache(){return Na.templateCache}},Na=new Bt;lr.clearCache=function(){return Na.clearCache()},lr.parse=function(t,r){return Na.parse(t,r)},lr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+pO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Na.render(t,r,i,a)},lr.escape=kO,lr.Scanner=Ta,lr.Context=ji,lr.Writer=Bt;const Qu=e=>e&&typeof e=="object"&&!Array.isArray(e),ec=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Qu(e)&&Qu(r))for(const i in r)Qu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),ec(e[i],r[i])):Object.assign(e,{[i]:r[i]});return ec(e,...t)},_O=(e,t)=>{const r=t.type||"string",i=e["ui:classNames"]||"",a=e["ui:widget"]||"default",n=e["ui:field"]||"default";return`${i} fcode-type-${r} fcode-widget-${a} fcode-field-${n}`.trim()},PO=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:o}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...o,...n,...a,...t.properties&&{...Wo(t.properties,i.globalUiSchema)},...t.oneOf&&ec({},...t.oneOf.map(s=>Wo(s.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Wo=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],o)=>{const s=PO([a,n],o,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...s,"ui:classNames":_O(s,n)}}},{}),tc=(e,t)=>{if(typeof e!="object")return e;const r={};for(const i in e)if(e.hasOwnProperty(i)&&!t.includes(i)){const a=e[i];typeof a=="object"?Array.isArray(a)?r[i]=a.map(n=>tc(n,t)):r[i]=tc(a,t):r[i]=a}return r},IO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return tc(a,["ui","isSensitive","isTransient"])},TO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Wo(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Wo(e.schema.properties,t)}},Eh=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Eh(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),NO=(e,t)=>{let r=!1;const i=JSON.stringify(e).replace(/{\s*"\$ref"\s*:\s*"#\/variables\/(.+?)"\s*}/gm,(a,n)=>t[n]?JSON.stringify(t[n]):(r=!0,"{}"));return r?JSON.stringify(Eh(JSON.parse(i))):i},FO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(lr.render(NO(e,r),r))};function Ah(e){const t=FO(e,e.schema.embedFormOptions);return{schema:IO(t.schema),uiSchema:TO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var rc={exports:{}};/*!
51
+ */var _O=Object.prototype.toString,Mi=Array.isArray||function(t){return _O.call(t)==="[object Array]"};function eu(e){return typeof e=="function"}function PO(e){return Mi(e)?"array":typeof e}function tu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Fh(e,t){return e!=null&&typeof e=="object"&&t in e}function IO(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var TO=RegExp.prototype.test;function NO(e,t){return TO.call(e,t)}var FO=/\S/;function DO(e){return!NO(FO,e)}var MO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function jO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return MO[r]})}var LO=/\s*/,qO=/\s+/,Dh=/\s*=/,$O=/\s*\}/,zO=/#|\^|\/|>|\{|&|=|!/;function RO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",c=0;function u(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,p,d;function h(x){if(typeof x=="string"&&(x=x.split(qO,2)),!Mi(x)||x.length!==2)throw new Error("Invalid tags: "+x);f=new RegExp(tu(x[0])+"\\s*"),p=new RegExp("\\s*"+tu(x[1])),d=new RegExp("\\s*"+tu("}"+x[1]))}h(t||lr.tags);for(var v=new Na(e),k,g,b,w,E,m;!v.eos();){if(k=v.pos,b=v.scanUntil(f),b)for(var y=0,S=b.length;y<S;++y)w=b.charAt(y),DO(w)?(n.push(a.length),l+=w):(o=!0,r=!0,l+=" "),a.push(["text",w,k,k+1]),k+=1,w===`
52
+ `&&(u(),l="",c=0,r=!1);if(!v.scan(f))break;if(s=!0,g=v.scan(zO)||"name",v.scan(LO),g==="="?(b=v.scanUntil(Dh),v.scan(Dh),v.scanUntil(p)):g==="{"?(b=v.scanUntil(d),v.scan($O),v.scanUntil(p),g="&"):b=v.scanUntil(p),!v.scan(p))throw new Error("Unclosed tag at "+v.pos);if(g==">"?E=[g,b,k,v.pos,l,c,r]:E=[g,b,k,v.pos],c++,a.push(E),g==="#"||g==="^")i.push(E);else if(g==="/"){if(m=i.pop(),!m)throw new Error('Unopened section "'+b+'" at '+k);if(m[1]!==b)throw new Error('Unclosed section "'+m[1]+'" at '+k)}else g==="name"||g==="{"||g==="&"?o=!0:g==="="&&h(b)}if(u(),m=i.pop(),m)throw new Error('Unclosed section "'+m[1]+'" at '+v.pos);return BO(UO(a))}function UO(e){for(var t=[],r,i,a=0,n=e.length;a<n;++a)r=e[a],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function BO(e){for(var t=[],r=t,i=[],a,n,s=0,o=e.length;s<o;++s)switch(a=e[s],a[0]){case"#":case"^":r.push(a),i.push(a),r=a[4]=[];break;case"/":n=i.pop(),n[5]=a[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(a)}return t}function Na(e){this.string=e,this.tail=e,this.pos=0}Na.prototype.eos=function(){return this.tail===""},Na.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i},Na.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function ji(e,t){this.view=e,this.cache={".":this.view},this.parent=t}ji.prototype.push=function(t){return new ji(t,this)},ji.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,s,o,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,s=t.split("."),o=0;n!=null&&o<s.length;)o===s.length-1&&(l=Fh(n,s[o])||IO(n,s[o])),n=n[s[o++]];else n=a.view[t],l=Fh(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return eu(i)&&(i=i.call(this.view)),i};function Bt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Bt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Bt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=RO(t,r),n&&i.set(a,s)),s},Bt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof ji?r:new ji(r,void 0);return this.renderTokens(s,o,i,t,a)},Bt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,c,u=0,f=t.length;u<f;++u)c=void 0,o=t[u],l=o[0],l==="#"?c=this.renderSection(o,r,i,a,n):l==="^"?c=this.renderInverted(o,r,i,a,n):l===">"?c=this.renderPartial(o,r,i,n):l==="&"?c=this.unescapedValue(o,r):l==="name"?c=this.escapedValue(o,r,n):l==="text"&&(c=this.rawValue(o)),c!==void 0&&(s+=c);return s},Bt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function c(p){return s.render(p,r,i,n)}if(l){if(Mi(l))for(var u=0,f=l.length;u<f;++u)o+=this.renderTokens(t[4],r.push(l[u]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],r.push(l),i,a,n);else if(eu(l)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(r.view,a.slice(t[3],t[5]),c),l!=null&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}},Bt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||Mi(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)},Bt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
53
+ `),s=0;s<n.length;s++)n[s].length&&(s>0||!i)&&(n[s]=a+n[s]);return n.join(`
54
+ `)},Bt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=eu(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],c=t[4],u=s;l==0&&c&&(u=this.indentPartial(s,c,o));var f=this.parse(u,n);return this.renderTokens(f,r,i,u,a)}}},Bt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i},Bt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lr.escape?String(n):a(n)},Bt.prototype.rawValue=function(t){return t[1]},Bt.prototype.getConfigTags=function(t){return Mi(t)?t:t&&typeof t=="object"?t.tags:void 0},Bt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Mi(t))return t.escape};var lr={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){Fa.templateCache=e},get templateCache(){return Fa.templateCache}},Fa=new Bt;lr.clearCache=function(){return Fa.clearCache()},lr.parse=function(t,r){return Fa.parse(t,r)},lr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+PO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Fa.render(t,r,i,a)},lr.escape=jO,lr.Scanner=Na,lr.Context=ji,lr.Writer=Bt;const ru=e=>e&&typeof e=="object"&&!Array.isArray(e),nu=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(ru(e)&&ru(r))for(const i in r)ru(r[i])?(e[i]||Object.assign(e,{[i]:{}}),nu(e[i],r[i])):Object.assign(e,{[i]:r[i]});return nu(e,...t)},VO=(e,t)=>{const r=t.type||"string",i=e["ui:classNames"]||"",a=e["ui:widget"]||"default",n=e["ui:field"]||"default";return`${i} fcode-type-${r} fcode-widget-${a} fcode-field-${n}`.trim()},HO=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:s}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...s,...n,...a,...t.properties&&{...Ws(t.properties,i.globalUiSchema)},...t.oneOf&&nu({},...t.oneOf.map(o=>Ws(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Ws=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=HO([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":VO(o,n)}}},{}),iu=(e,t)=>{if(typeof e!="object")return e;const r={};for(const i in e)if(e.hasOwnProperty(i)&&!t.includes(i)){const a=e[i];typeof a=="object"?Array.isArray(a)?r[i]=a.map(n=>iu(n,t)):r[i]=iu(a,t):r[i]=a}return r},WO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return iu(a,["ui","isSensitive","isTransient"])},KO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Ws(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Ws(e.schema.properties,t)}},Mh=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&Mh(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),GO=(e,t)=>{let r=!1;const i=JSON.stringify(e).replace(/{\s*"\$ref"\s*:\s*"#\/variables\/(.+?)"\s*}/gm,(a,n)=>t[n]?JSON.stringify(t[n]):(r=!0,"{}"));return r?JSON.stringify(Mh(JSON.parse(i))):i},JO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(lr.render(GO(e,r),r))};function jh(e){const t=JO(e,e.schema.embedFormOptions);return{schema:WO(t.schema),uiSchema:KO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var au={exports:{}};/*!
55
55
  Copyright (c) 2018 Jed Watson.
56
56
  Licensed under the MIT License (MIT), see
57
57
  http://jedwatson.github.io/classnames
58
- */var xh;function DO(){return xh||(xh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(n=a(n,i(s)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var s in n)t.call(n,s)&&n[s]&&(o=a(o,s));return o}function a(n,o){return o?n?n+" "+o:n+o:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(rc)),rc.exports}var MO=DO();const en=jr(MO);function be(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 jO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function Oh(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 _h(e){if(e==="")return;if(e===null)return null;const t=Oh(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const i=Number(r);return typeof i=="number"&&!Number.isNaN(i)?i:e}const hn=Symbol("__additional_property"),Li="additionalProperties",zr="allOf",je="anyOf",Vt="const",Zn="default",nc="dependencies",LO="enum",Dt="__errors",tt="$id",ic="if",qi="items",qO="_$junk_option_schema_id$_",Ko="$name",xe="oneOf",ac="patternProperties",ze="properties",oc="readonly",Ph="required",Go="submitButtonOptions",at="$ref",Jo=Symbol("__rjsf_ref"),sc=Symbol("__rjsf_ref_cycle"),Fa="$schema",Ih="root",Th="_",$O=["discriminator","propertyName"],Nh="formContext",zO="layoutGridLookupMap",Fh="__rjsf",lc=`${Fh}_additionalProperties`,Dh=`${Fh}_rootSchema`,RO="ui:field",uc="ui:widget",gn="ui:options",cc="ui:globalOptions",UO="ui:definitions",BO="https://json-schema.org/draft/2019-09/schema",Yo="https://json-schema.org/draft/2020-12/schema";function pe(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===uc&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===gn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Mh(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=pe(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var jh=typeof global=="object"&&global&&global.Object===Object&&global,VO=typeof self=="object"&&self&&self.Object===Object&&self,Rr=jh||VO||Function("return this")(),ur=Rr.Symbol,Lh=Object.prototype,HO=Lh.hasOwnProperty,WO=Lh.toString,Da=ur?ur.toStringTag:void 0;function KO(e){var t=HO.call(e,Da),r=e[Da];try{e[Da]=void 0;var i=!0}catch{}var a=WO.call(e);return i&&(t?e[Da]=r:delete e[Da]),a}var GO=Object.prototype,JO=GO.toString;function YO(e){return JO.call(e)}var XO="[object Null]",ZO="[object Undefined]",qh=ur?ur.toStringTag:void 0;function tn(e){return e==null?e===void 0?ZO:XO:qh&&qh in Object(e)?KO(e):YO(e)}function $h(e,t){return function(r){return e(t(r))}}var Xo=$h(Object.getPrototypeOf,Object);function cr(e){return e!=null&&typeof e=="object"}var QO="[object Object]",e_=Function.prototype,t_=Object.prototype,zh=e_.toString,r_=t_.hasOwnProperty,n_=zh.call(Object);function yn(e){if(!cr(e)||tn(e)!=QO)return!1;var t=Xo(e);if(t===null)return!0;var r=r_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zh.call(r)==n_}function fc(e){const t={[Dt]:[],addError(r){this[Dt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:fc(i)}),t);if(yn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:fc(r[a])}),t)}return t}var Tt=Array.isArray,i_="[object Symbol]";function Ma(e){return typeof e=="symbol"||cr(e)&&tn(e)==i_}var a_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o_=/^\w*$/;function dc(e,t){if(Tt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ma(e)?!0:o_.test(e)||!a_.test(e)||t!=null&&e in Object(t)}function Re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var s_="[object AsyncFunction]",l_="[object Function]",u_="[object GeneratorFunction]",c_="[object Proxy]";function ja(e){if(!Re(e))return!1;var t=tn(e);return t==l_||t==u_||t==s_||t==c_}var pc=Rr["__core-js_shared__"],Rh=(function(){var e=/[^.]+$/.exec(pc&&pc.keys&&pc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function f_(e){return!!Rh&&Rh in e}var d_=Function.prototype,p_=d_.toString;function Qn(e){if(e!=null){try{return p_.call(e)}catch{}try{return e+""}catch{}}return""}var m_=/[\\^$.*+?()[\]{}|]/g,h_=/^\[object .+?Constructor\]$/,g_=Function.prototype,y_=Object.prototype,v_=g_.toString,b_=y_.hasOwnProperty,k_=RegExp("^"+v_.call(b_).replace(m_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function w_(e){if(!Re(e)||f_(e))return!1;var t=ja(e)?k_:h_;return t.test(Qn(e))}function S_(e,t){return e==null?void 0:e[t]}function ei(e,t){var r=S_(e,t);return w_(r)?r:void 0}var La=ei(Object,"create");function C_(){this.__data__=La?La(null):{},this.size=0}function E_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var A_="__lodash_hash_undefined__",x_=Object.prototype,O_=x_.hasOwnProperty;function __(e){var t=this.__data__;if(La){var r=t[e];return r===A_?void 0:r}return O_.call(t,e)?t[e]:void 0}var P_=Object.prototype,I_=P_.hasOwnProperty;function T_(e){var t=this.__data__;return La?t[e]!==void 0:I_.call(t,e)}var N_="__lodash_hash_undefined__";function F_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=La&&t===void 0?N_:t,this}function ti(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ti.prototype.clear=C_,ti.prototype.delete=E_,ti.prototype.get=__,ti.prototype.has=T_,ti.prototype.set=F_;function D_(){this.__data__=[],this.size=0}function qa(e,t){return e===t||e!==e&&t!==t}function Zo(e,t){for(var r=e.length;r--;)if(qa(e[r][0],t))return r;return-1}var M_=Array.prototype,j_=M_.splice;function L_(e){var t=this.__data__,r=Zo(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():j_.call(t,r,1),--this.size,!0}function q_(e){var t=this.__data__,r=Zo(t,e);return r<0?void 0:t[r][1]}function $_(e){return Zo(this.__data__,e)>-1}function z_(e,t){var r=this.__data__,i=Zo(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}rn.prototype.clear=D_,rn.prototype.delete=L_,rn.prototype.get=q_,rn.prototype.has=$_,rn.prototype.set=z_;var $a=ei(Rr,"Map");function R_(){this.size=0,this.__data__={hash:new ti,map:new($a||rn),string:new ti}}function U_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qo(e,t){var r=e.__data__;return U_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function B_(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t}function V_(e){return Qo(this,e).get(e)}function H_(e){return Qo(this,e).has(e)}function W_(e,t){var r=Qo(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}nn.prototype.clear=R_,nn.prototype.delete=B_,nn.prototype.get=V_,nn.prototype.has=H_,nn.prototype.set=W_;var K_="Expected a function";function mc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(K_);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],n=r.cache;if(n.has(a))return n.get(a);var o=e.apply(this,i);return r.cache=n.set(a,o)||n,o};return r.cache=new(mc.Cache||nn),r}mc.Cache=nn;var G_=500;function J_(e){var t=mc(e,function(i){return r.size===G_&&r.clear(),i}),r=t.cache;return t}var Y_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X_=/\\(\\)?/g,Uh=J_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Y_,function(r,i,a,n){t.push(a?n.replace(X_,"$1"):i||r)}),t});function $i(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var Bh=ur?ur.prototype:void 0,Vh=Bh?Bh.toString:void 0;function Hh(e){if(typeof e=="string")return e;if(Tt(e))return $i(e,Hh)+"";if(Ma(e))return Vh?Vh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hc(e){return e==null?"":Hh(e)}function zi(e,t){return Tt(e)?e:dc(e,t)?[e]:Uh(hc(e))}function vn(e){if(typeof e=="string"||Ma(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function es(e,t){t=zi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[vn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:es(e,t);return i===void 0?r:i}const{getOwnPropertyNames:Wh,getOwnPropertySymbols:Z_}=Object,{hasOwnProperty:Q_}=Object.prototype;function gc(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function ts(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,o=n.get(r),s=n.get(i);if(o&&s)return o===i&&s===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function Kh(e){const t=Z_(e);return t.length?Wh(e).concat(t):Wh(e)}const eP=Object.hasOwn||((e,t)=>Q_.call(e,t)),tP="__v",rP="__o",nP="_owner",{getOwnPropertyDescriptor:Gh,keys:Jh}=Object,ri=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function iP(e,t){return e===t}function aP(e,t){return e.byteLength===t.byteLength&&rs(new Uint8Array(e),new Uint8Array(t))}function oP(e,t,r){let i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function sP(e,t){return e.byteLength===t.byteLength&&rs(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function lP(e,t){return ri(e.getTime(),t.getTime())}function uP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Yh(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.entries();let o,s,l=0;for(;(o=n.next())&&!o.done;){const u=t.entries();let c=0,f=0;for(;(s=u.next())&&!s.done;){if(a[f]){f++;continue}const p=o.value,d=s.value;if(r.equals(p[0],d[0],l,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function cP(e,t,r){const i=Jh(e);let a=i.length;if(Jh(t).length!==a)return!1;for(;a-- >0;)if(!Zh(e,t,r,i[a]))return!1;return!0}function za(e,t,r){const i=Kh(e);let a=i.length;if(Kh(t).length!==a)return!1;let n,o,s;for(;a-- >0;)if(n=i[a],!Zh(e,t,r,n)||(o=Gh(e,n),s=Gh(t,n),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function fP(e,t){return ri(e.valueOf(),t.valueOf())}function dP(e,t){return e.source===t.source&&e.flags===t.flags}function Xh(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.values();let o,s;for(;(o=n.next())&&!o.done;){const l=t.values();let u=0,c=0;for(;(s=l.next())&&!s.done;){if(!a[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function rs(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 pP(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 Zh(e,t,r,i){return(i===nP||i===rP||i===tP)&&(e.$$typeof||t.$$typeof)?!0:eP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const mP=Object.prototype.toString;function hP(e){const t=bP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:o,areObjectsEqual:s,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(p,d,m){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?o(p,d,m):k==="function"?a(p,d,m):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return s(p,d,m);if(v===Array)return r(p,d,m);if(v===Date)return i(p,d,m);if(v===RegExp)return l(p,d,m);if(v===Map)return n(p,d,m);if(v===Set)return u(p,d,m);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,m);const g=mP.call(p),b=t[g];if(b)return b(p,d,m);const w=c&&c(p,d,m,g);return w?w(p,d,m):!1}}function gP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:aP,areArraysEqual:r?za:oP,areDataViewsEqual:sP,areDatesEqual:lP,areErrorsEqual:uP,areFunctionsEqual:iP,areMapsEqual:r?gc(Yh,za):Yh,areNumbersEqual:ri,areObjectsEqual:r?za:cP,arePrimitiveWrappersEqual:fP,areRegExpsEqual:dP,areSetsEqual:r?gc(Xh,za):Xh,areTypedArraysEqual:r?gc(rs,za):rs,areUrlsEqual:pP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=ts(i.areArraysEqual),n=ts(i.areMapsEqual),o=ts(i.areObjectsEqual),s=ts(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:o,areSetsEqual:s})}return i}function yP(e){return function(t,r,i,a,n,o,s){return e(t,r,s)}}function vP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(s,l,{cache:u,equals:i,meta:c,strict:a})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};const n={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,l){return t(s,l,n)}}function bP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":s,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":o,"[object Number]":u,"[object Object]":(m,k,v)=>typeof m.then!="function"&&typeof k.then!="function"&&l(m,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}an(),an({strict:!0}),an({circular:!0}),an({circular:!0,strict:!0}),an({createInternalComparator:()=>ri}),an({strict:!0,createInternalComparator:()=>ri}),an({circular:!0,createInternalComparator:()=>ri}),an({circular:!0,createInternalComparator:()=>ri,strict:!0});function an(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=gP(e),o=hP(n),s=r?r(o):yP(o);return vP({circular:t,comparator:o,createState:i,equals:s,strict:a})}const Ue=an({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Ra={exports:{}},yc,Qh;function eg(){if(Qh)return yc;Qh=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),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function o(E){let A="",O=0,F=0;for(F=0;F<E.length;F++)if(O=E[F].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=E[F];break}for(F+=1;F<E.length;F++){if(O=E[F].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=E[F]}return A}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(E){return E.length=0,!0}function u(E,A,O){if(E.length){const F=o(E);if(F!=="")A.push(F);else return O.error=!0,!1;E.length=0}return!0}function c(E){let A=0;const O={error:!1,address:"",zone:""},F=[],T=[];let j=!1,q=!1,H=u;for(let Y=0;Y<E.length;Y++){const Z=E[Y];if(!(Z==="["||Z==="]"))if(Z===":"){if(j===!0&&(q=!0),!H(T,F,O))break;if(++A>7){O.error=!0;break}Y>0&&E[Y-1]===":"&&(j=!0),F.push(":");continue}else if(Z==="%"){if(!H(T,F,O))break;H=l}else{T.push(Z);continue}}return T.length&&(H===l?O.zone=T.join(""):q?F.push(T.join("")):F.push(o(T))),O.address=F.join(""),O}function f(E){if(p(E,":")<2)return{host:E,isIPV6:!1};const A=c(E);if(A.error)return{host:E,isIPV6:!1};{let O=A.address,F=A.address;return A.zone&&(O+="%"+A.zone,F+="%25"+A.zone),{host:O,isIPV6:!0,escapedHost:F}}}function p(E,A){let O=0;for(let F=0;F<E.length;F++)E[F]===A&&O++;return O}function d(E){let A=E;const O=[];let F=-1,T=0;for(;T=A.length;){if(T===1){if(A===".")break;if(A==="/"){O.push("/");break}else{O.push(A);break}}else if(T===2){if(A[0]==="."){if(A[1]===".")break;if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){O.push("/");break}}else if(T===3&&A==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(A[0]==="."){if(A[1]==="."){if(A[2]==="/"){A=A.slice(3);continue}}else if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){if(A[2]==="/"){A=A.slice(2);continue}else if(A[2]==="."&&A[3]==="/"){A=A.slice(3),O.length!==0&&O.pop();continue}}if((F=A.indexOf("/",1))===-1){O.push(A);break}else O.push(A.slice(0,F)),A=A.slice(F)}return O.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(E,A){const O=A?v:k;return O.lastIndex=0,E.replace(O,F=>m[F])}function b(E,A=!1){if(E.indexOf("%")===-1)return E;let O="";for(let F=0;F<E.length;F++){if(E[F]==="%"&&F+2<E.length){const T=E.slice(F+1,F+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));A&&i(q)?O+=q:O+="%"+j,F+=2;continue}}O+=E[F]}return O}const w=new Array(256);{const E="0123456789ABCDEF";for(let A=0;A<256;A++)w[A]="%"+E[A>>4]+E[A&15]}function S(E){return E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122||E===42||E===43||E===45||E===46||E===47||E===64||E===95}function h(E){return E<2048?w[192|E>>6]+w[128|E&63]:E<65536?w[224|E>>12]+w[128|E>>6&63]+w[128|E&63]:w[240|E>>18]+w[128|E>>12&63]+w[128|E>>6&63]+w[128|E&63]}function y(E){let A="";for(let O=0;O<E.length;O++){const F=E[O];if(F==="%"&&O+2<E.length){const T=E.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));q!=="."&&i(q)?A+=q:A+="%"+j,O+=2;continue}}if(a(F))A+=F;else{const T=E.charCodeAt(O);if(T<128)A+=S(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<E.length){const j=E.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function C(E){let A="";for(let O=0;O<E.length;O++){const F=E[O];if(F==="%"&&O+2<E.length){const T=E.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));i(q)?A+=q:A+="%"+j,O+=2;continue}}if(n(F))A+=F;else{const T=E.charCodeAt(O);if(T<128)A+=S(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<E.length){const j=E.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function x(E){let A="";for(let O=0;O<E.length;O++){const F=E[O];if(F==="%"&&O+2<E.length){const j=E.slice(O+1,O+3);if(r(j)){A+="%"+j.toUpperCase(),O+=2;continue}}const T=E.charCodeAt(O);if(T<128)A+=S(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<E.length){const j=E.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}return A}function _(E){const A=[];if(E.userinfo!==void 0&&(A.push(E.userinfo),A.push("@")),E.host!==void 0){let O=unescape(E.host);if(!t(O)){const F=f(O);F.isIPV6===!0?O=`[${F.escapedHost}]`:O=g(O,!1)}A.push(O)}return(typeof E.port=="number"||typeof E.port=="string")&&(A.push(":"),A.push(String(E.port))),A.length?A.join(""):void 0}return yc={nonSimpleDomain:s,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:C,escapePreservingEscapes:x,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:o},yc}var vc,tg;function kP(){if(tg)return vc;tg=1;const{isUUID:e}=eg(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function o(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function s(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,E=S(_);h.path=void 0,E&&(h=E.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,E=S(_);E&&(h=E.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function S(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return vc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:S},vc}var rg;function wP(){if(rg)return Ra.exports;rg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:o,reescapeHostDelimiters:s,isIPv4:l,nonSimpleDomain:u}=eg(),{SCHEMES:c,getSchemeHandler:f}=kP();function p(A,O){return typeof A=="string"?A=C(A,O):typeof A=="object"&&(A=y(v(A,O),O)),A}function d(A,O,F){const T=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:q}=h(A,T),{parsed:H,malformedAuthorityOrPort:Y}=h(O,T);if(q||Y)throw new Error(j.error||H.error||"URI is malformed.");const Z=m(j,H,T,!0);return T.skipEscape=!0,v(Z,T)}function m(A,O,F,T){const j={};return T||(A=y(v(A,F),F),O=y(v(O,F),F)),F=F||{},!F.tolerant&&O.scheme?(j.scheme=O.scheme,j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.path?(O.path[0]==="/"?j.path=t(O.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?j.path="/"+O.path:A.path?j.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+O.path:j.path=O.path,j.path=t(j.path)),j.query=O.query):(j.path=A.path,O.query!==void 0?j.query=O.query:j.query=A.query),j.userinfo=A.userinfo,j.host=A.host,j.port=A.port),j.scheme=A.scheme),j.fragment=O.fragment,j}function k(A,O,F){const T=_(A,F),j=_(O,F);return T!==void 0&&j!==void 0&&T.toLowerCase()===j.toLowerCase()}function v(A,O){const F={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},T=Object.assign({},O),j=[],q=f(T.scheme||F.scheme);q&&q.serialize&&q.serialize(F,T),F.path!==void 0&&(T.skipEscape?F.path=i(F.path):(F.path=o(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),T.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const H=r(F);if(H!==void 0&&(T.reference!=="suffix"&&j.push("//"),j.push(H),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Y=F.path;!T.absolutePath&&(!q||!q.absolutePath)&&(Y=t(Y)),H===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),j.push(Y)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function S(A,O){if(O[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function h(A,O){const F=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,q=!1;F.reference==="suffix"&&(F.scheme?A=F.scheme+":"+A:A="//"+A);const H=A.match(b);H!==null&&H[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",j=!0);const Y=A.match(w);if(Y!==null){const P=Y[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",j=!0))}const Z=A.match(g);if(Z){T.scheme=Z[1]===void 0?void 0:Z[1].toLowerCase(),T.userinfo=Z[3],T.host=Z[4],T.port=parseInt(Z[5],10),T.path=Z[6]||"",T.query=Z[7],T.fragment=Z[8],isNaN(T.port)&&(T.port=Z[5]);const P=S(T,Z);if(P!==void 0&&(T.error=T.error||P,j=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),q=I.isIPV6}else q=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==T.reference&&(T.error=T.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||T.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&T.host&&(F.domainHost||M&&M.domainHost)&&q===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(R){T.error=T.error||"Host's domain name can not be converted to ASCII: "+R}(!M||M&&!M.skipNormalize)&&(A.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=s(unescape(T.host),q))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),M&&M.parse&&M.parse(T,F)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:j}}function y(A,O){return h(A,O).parsed}function C(A,O){return x(A,O).normalized}function x(A,O){const{parsed:F,malformedAuthorityOrPort:T}=h(A,O);return{normalized:T?A:v(F,O),malformedAuthorityOrPort:T}}function _(A,O){if(typeof A=="string"){const{normalized:F,malformedAuthorityOrPort:T}=x(A,O);return T?void 0:F}if(typeof A=="object")return v(A,O)}const E={SCHEMES:c,normalize:p,resolve:d,resolveComponent:m,equal:k,serialize:v,parse:y};return Ra.exports=E,Ra.exports.default=E,Ra.exports.fastUri=E,Ra.exports}var SP=wP();const bc=jr(SP);var Ua={},ng;function CP(){if(ng)return Ua;ng=1;var e=/~/,t=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function i(u){return e.test(u)?u.replace(t,r):u}function a(u,c,f){for(var p,d,m=1,k=c.length;m<k;){if(c[m]==="constructor"||c[m]==="prototype"||c[m]==="__proto__")return u;if(p=i(c[m++]),d=k>m,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),d&&(c[m]!==""&&c[m]<1/0||c[m]==="-"?u[p]=[]:u[p]={})),!d)break;u=u[p]}var v=u[p];return f===void 0?delete u[p]:u[p]=f,v}function n(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const c of u)if(typeof c!="string"&&typeof c!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function o(u,c){if(typeof u!="object")throw new Error("Invalid input object.");c=n(c);var f=c.length;if(f===1)return u;for(var p=1;p<f;){if(u=u[i(c[p++])],f===p)return u;if(typeof u!="object"||u===null)return}}function s(u,c,f){if(typeof u!="object")throw new Error("Invalid input object.");if(c=n(c),c.length===0)throw new Error("Invalid JSON pointer for set.");return a(u,c,f)}function l(u){var c=n(u);return{get:function(f){return o(f,c)},set:function(f,p){return s(f,c,p)}}}return Ua.get=o,Ua.set=s,Ua.compile=l,Ua}var EP=CP();const kc=jr(EP);var AP=Object.prototype;function ns(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||AP;return e===r}var xP=$h(Object.keys,Object),OP=Object.prototype,_P=OP.hasOwnProperty;function ig(e){if(!ns(e))return xP(e);var t=[];for(var r in Object(e))_P.call(e,r)&&r!="constructor"&&t.push(r);return t}var wc=ei(Rr,"DataView"),Sc=ei(Rr,"Promise"),Ri=ei(Rr,"Set"),Cc=ei(Rr,"WeakMap"),ag="[object Map]",PP="[object Object]",og="[object Promise]",sg="[object Set]",lg="[object WeakMap]",ug="[object DataView]",IP=Qn(wc),TP=Qn($a),NP=Qn(Sc),FP=Qn(Ri),DP=Qn(Cc),fr=tn;(wc&&fr(new wc(new ArrayBuffer(1)))!=ug||$a&&fr(new $a)!=ag||Sc&&fr(Sc.resolve())!=og||Ri&&fr(new Ri)!=sg||Cc&&fr(new Cc)!=lg)&&(fr=function(e){var t=tn(e),r=t==PP?e.constructor:void 0,i=r?Qn(r):"";if(i)switch(i){case IP:return ug;case TP:return ag;case NP:return og;case FP:return sg;case DP:return lg}return t});var MP="[object Arguments]";function cg(e){return cr(e)&&tn(e)==MP}var fg=Object.prototype,jP=fg.hasOwnProperty,LP=fg.propertyIsEnumerable,Ui=cg((function(){return arguments})())?cg:function(e){return cr(e)&&jP.call(e,"callee")&&!LP.call(e,"callee")},qP=9007199254740991;function Ec(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qP}function ni(e){return e!=null&&Ec(e.length)&&!ja(e)}function $P(){return!1}var dg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,pg=dg&&typeof module=="object"&&module&&!module.nodeType&&module,zP=pg&&pg.exports===dg,mg=zP?Rr.Buffer:void 0,RP=mg?mg.isBuffer:void 0,ii=RP||$P,UP="[object Arguments]",BP="[object Array]",VP="[object Boolean]",HP="[object Date]",WP="[object Error]",KP="[object Function]",GP="[object Map]",JP="[object Number]",YP="[object Object]",XP="[object RegExp]",ZP="[object Set]",QP="[object String]",eI="[object WeakMap]",tI="[object ArrayBuffer]",rI="[object DataView]",nI="[object Float32Array]",iI="[object Float64Array]",aI="[object Int8Array]",oI="[object Int16Array]",sI="[object Int32Array]",lI="[object Uint8Array]",uI="[object Uint8ClampedArray]",cI="[object Uint16Array]",fI="[object Uint32Array]",ht={};ht[nI]=ht[iI]=ht[aI]=ht[oI]=ht[sI]=ht[lI]=ht[uI]=ht[cI]=ht[fI]=!0,ht[UP]=ht[BP]=ht[tI]=ht[VP]=ht[rI]=ht[HP]=ht[WP]=ht[KP]=ht[GP]=ht[JP]=ht[YP]=ht[XP]=ht[ZP]=ht[QP]=ht[eI]=!1;function dI(e){return cr(e)&&Ec(e.length)&&!!ht[tn(e)]}function Ac(e){return function(t){return e(t)}}var hg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Ba=hg&&typeof module=="object"&&module&&!module.nodeType&&module,pI=Ba&&Ba.exports===hg,xc=pI&&jh.process,Bi=(function(){try{var e=Ba&&Ba.require&&Ba.require("util").types;return e||xc&&xc.binding&&xc.binding("util")}catch{}})(),gg=Bi&&Bi.isTypedArray,Va=gg?Ac(gg):dI,mI="[object Map]",hI="[object Set]",gI=Object.prototype,yI=gI.hasOwnProperty;function kt(e){if(e==null)return!0;if(ni(e)&&(Tt(e)||typeof e=="string"||typeof e.splice=="function"||ii(e)||Va(e)||Ui(e)))return!e.length;var t=fr(e);if(t==mI||t==hI)return!e.size;if(ns(e))return!ig(e).length;for(var r in e)if(yI.call(e,r))return!1;return!0}function vI(){this.__data__=new rn,this.size=0}function bI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function kI(e){return this.__data__.get(e)}function wI(e){return this.__data__.has(e)}var SI=200;function CI(e,t){var r=this.__data__;if(r instanceof rn){var i=r.__data__;if(!$a||i.length<SI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new nn(i)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new rn(e);this.size=t.size}Cr.prototype.clear=vI,Cr.prototype.delete=bI,Cr.prototype.get=kI,Cr.prototype.has=wI,Cr.prototype.set=CI;function Oc(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var is=(function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}})();function _c(e,t,r){t=="__proto__"&&is?is(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var EI=Object.prototype,AI=EI.hasOwnProperty;function Pc(e,t,r){var i=e[t];(!(AI.call(e,t)&&qa(i,r))||r===void 0&&!(t in e))&&_c(e,t,r)}function Vi(e,t,r,i){var a=!r;r||(r={});for(var n=-1,o=t.length;++n<o;){var s=t[n],l=void 0;l===void 0&&(l=e[s]),a?_c(r,s,l):Pc(r,s,l)}return r}function yg(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var xI=9007199254740991,OI=/^(?:0|[1-9]\d*)$/;function as(e,t){var r=typeof e;return t=t??xI,!!t&&(r=="number"||r!="symbol"&&OI.test(e))&&e>-1&&e%1==0&&e<t}var _I=Object.prototype,PI=_I.hasOwnProperty;function vg(e,t){var r=Tt(e),i=!r&&Ui(e),a=!r&&!i&&ii(e),n=!r&&!i&&!a&&Va(e),o=r||i||a||n,s=o?yg(e.length,String):[],l=s.length;for(var u in e)(t||PI.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||as(u,l)))&&s.push(u);return s}function Er(e){return ni(e)?vg(e):ig(e)}function II(e,t){return e&&Vi(t,Er(t),e)}function TI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var NI=Object.prototype,FI=NI.hasOwnProperty;function DI(e){if(!Re(e))return TI(e);var t=ns(e),r=[];for(var i in e)i=="constructor"&&(t||!FI.call(e,i))||r.push(i);return r}function Ha(e){return ni(e)?vg(e,!0):DI(e)}function MI(e,t){return e&&Vi(t,Ha(t),e)}var bg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,kg=bg&&typeof module=="object"&&module&&!module.nodeType&&module,jI=kg&&kg.exports===bg,wg=jI?Rr.Buffer:void 0,Sg=wg?wg.allocUnsafe:void 0;function Cg(e,t){if(t)return e.slice();var r=e.length,i=Sg?Sg(r):new e.constructor(r);return e.copy(i),i}function Ic(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function LI(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var o=e[r];t(o,r,e)&&(n[a++]=o)}return n}function Eg(){return[]}var qI=Object.prototype,$I=qI.propertyIsEnumerable,Ag=Object.getOwnPropertySymbols,Tc=Ag?function(e){return e==null?[]:(e=Object(e),LI(Ag(e),function(t){return $I.call(e,t)}))}:Eg;function zI(e,t){return Vi(e,Tc(e),t)}function Nc(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var RI=Object.getOwnPropertySymbols,xg=RI?function(e){for(var t=[];e;)Nc(t,Tc(e)),e=Xo(e);return t}:Eg;function UI(e,t){return Vi(e,xg(e),t)}function Og(e,t,r){var i=t(e);return Tt(e)?i:Nc(i,r(e))}function Fc(e){return Og(e,Er,Tc)}function Dc(e){return Og(e,Ha,xg)}var BI=Object.prototype,VI=BI.hasOwnProperty;function HI(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&VI.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var os=Rr.Uint8Array;function Mc(e){var t=new e.constructor(e.byteLength);return new os(t).set(new os(e)),t}function WI(e,t){var r=t?Mc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var KI=/\w*$/;function GI(e){var t=new e.constructor(e.source,KI.exec(e));return t.lastIndex=e.lastIndex,t}var _g=ur?ur.prototype:void 0,Pg=_g?_g.valueOf:void 0;function JI(e){return Pg?Object(Pg.call(e)):{}}function Ig(e,t){var r=t?Mc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var YI="[object Boolean]",XI="[object Date]",ZI="[object Map]",QI="[object Number]",eT="[object RegExp]",tT="[object Set]",rT="[object String]",nT="[object Symbol]",iT="[object ArrayBuffer]",aT="[object DataView]",oT="[object Float32Array]",sT="[object Float64Array]",lT="[object Int8Array]",uT="[object Int16Array]",cT="[object Int32Array]",fT="[object Uint8Array]",dT="[object Uint8ClampedArray]",pT="[object Uint16Array]",mT="[object Uint32Array]";function hT(e,t,r){var i=e.constructor;switch(t){case iT:return Mc(e);case YI:case XI:return new i(+e);case aT:return WI(e,r);case oT:case sT:case lT:case uT:case cT:case fT:case dT:case pT:case mT:return Ig(e,r);case ZI:return new i;case QI:case rT:return new i(e);case eT:return GI(e);case tT:return new i;case nT:return JI(e)}}var Tg=Object.create,Ng=(function(){function e(){}return function(t){if(!Re(t))return{};if(Tg)return Tg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Fg(e){return typeof e.constructor=="function"&&!ns(e)?Ng(Xo(e)):{}}var gT="[object Map]";function yT(e){return cr(e)&&fr(e)==gT}var Dg=Bi&&Bi.isMap,vT=Dg?Ac(Dg):yT,bT="[object Set]";function kT(e){return cr(e)&&fr(e)==bT}var Mg=Bi&&Bi.isSet,wT=Mg?Ac(Mg):kT,ST=1,CT=2,ET=4,jg="[object Arguments]",AT="[object Array]",xT="[object Boolean]",OT="[object Date]",_T="[object Error]",Lg="[object Function]",PT="[object GeneratorFunction]",IT="[object Map]",TT="[object Number]",qg="[object Object]",NT="[object RegExp]",FT="[object Set]",DT="[object String]",MT="[object Symbol]",jT="[object WeakMap]",LT="[object ArrayBuffer]",qT="[object DataView]",$T="[object Float32Array]",zT="[object Float64Array]",RT="[object Int8Array]",UT="[object Int16Array]",BT="[object Int32Array]",VT="[object Uint8Array]",HT="[object Uint8ClampedArray]",WT="[object Uint16Array]",KT="[object Uint32Array]",mt={};mt[jg]=mt[AT]=mt[LT]=mt[qT]=mt[xT]=mt[OT]=mt[$T]=mt[zT]=mt[RT]=mt[UT]=mt[BT]=mt[IT]=mt[TT]=mt[qg]=mt[NT]=mt[FT]=mt[DT]=mt[MT]=mt[VT]=mt[HT]=mt[WT]=mt[KT]=!0,mt[_T]=mt[Lg]=mt[jT]=!1;function Wa(e,t,r,i,a,n){var o,s=t&ST,l=t&CT,u=t&ET;if(r&&(o=a?r(e,i,a,n):r(e)),o!==void 0)return o;if(!Re(e))return e;var c=Tt(e);if(c){if(o=HI(e),!s)return Ic(e,o)}else{var f=fr(e),p=f==Lg||f==PT;if(ii(e))return Cg(e,s);if(f==qg||f==jg||p&&!a){if(o=l||p?{}:Fg(e),!s)return l?UI(e,MI(o,e)):zI(e,II(o,e))}else{if(!mt[f])return a?e:{};o=hT(e,f,s)}}n||(n=new Cr);var d=n.get(e);if(d)return d;n.set(e,o),wT(e)?e.forEach(function(v){o.add(Wa(v,t,r,v,e,n))}):vT(e)&&e.forEach(function(v,g){o.set(g,Wa(v,t,r,g,e,n))});var m=u?l?Dc:Fc:l?Ha:Er,k=c?void 0:m(e);return Oc(k||e,function(v,g){k&&(g=v,v=e[g]),Pc(o,g,Wa(v,t,r,g,e,n))}),o}function $g(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function GT(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}function JT(e,t){return t.length<2?e:es(e,GT(t,0,-1))}var YT=Object.prototype,XT=YT.hasOwnProperty;function zg(e,t){t=zi(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=vn(t[r]);if(a==="__proto__"&&!XT.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=JT(e,t);return n==null||delete n[vn($g(t))]}function ZT(e){return yn(e)?void 0:e}var Rg=ur?ur.isConcatSpreadable:void 0;function QT(e){return Tt(e)||Ui(e)||!!(Rg&&e&&e[Rg])}function Ka(e,t,r,i,a){var n=-1,o=e.length;for(r||(r=QT),a||(a=[]);++n<o;){var s=e[n];t>0&&r(s)?t>1?Ka(s,t-1,r,i,a):Nc(a,s):i||(a[a.length]=s)}return a}function jc(e){var t=e==null?0:e.length;return t?Ka(e,1):[]}function eN(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 Ug=Math.max;function Bg(e,t,r){return t=Ug(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Ug(i.length-t,0),o=Array(n);++a<n;)o[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=r(o),eN(e,this,s)}}function tN(e){return function(){return e}}function ss(e){return e}var rN=is?function(e,t){return is(e,"toString",{configurable:!0,enumerable:!1,value:tN(t),writable:!0})}:ss,nN=800,iN=16,aN=Date.now;function oN(e){var t=0,r=0;return function(){var i=aN(),a=iN-(i-r);if(r=i,a>0){if(++t>=nN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Vg=oN(rN);function Hg(e){return Vg(Bg(e,void 0,jc),e+"")}var sN=1,lN=2,uN=4,Ga=Hg(function(e,t){var r={};if(e==null)return r;var i=!1;t=$i(t,function(n){return n=zi(n,e),i||(i=n.length>1),n}),Vi(e,Dc(e),r),i&&(r=Wa(r,sN|lN|uN,ZT));for(var a=t.length;a--;)zg(r,t[a]);return r});function ls(e,t){if(tt in e&&bc.equal(e[tt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Re(i)){const a=ls(i,t);if(a!==void 0)return a}}else if(Re(r)){const i=ls(r,t);if(i!==void 0)return i}}function Lc(e,t){const r=ae(e,tt,t);let i=e;at in i&&(i={...i,[at]:bc.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(o=>Re(o)?Lc(o,r):o)}:Re(n)&&(i={...i,[a]:Lc(n,r)});return i}function qc(e,t){const r=t[e];return[Ga(t,[e]),r]}function Wg(e,t={},r=[],i=ae(t,[tt])){const a=e||"";let n,o=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));o===void 0||tt in t&&t[tt]===o?n=kc.get(t,l):t[Fa]===Yo&&(n=ls(t,o.replace(/\/$/,"")),n!==void 0&&(n=kc.get(n,l)))}else if(t[Fa]===Yo){const l=o?bc.resolve(o,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=ls(t,u.replace(/\/$/,"")),n!==void 0&&(o=n[tt],kt(c)||(n=kc.get(n,decodeURIComponent(c.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const s=n[at];if(s){if(r.includes(s)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...p]=r,d=[...p,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=qc(at,n),c=Wg(u,t,[...r,a],o);return Object.keys(l).length>0?t[Fa]===BO||t[Fa]===Yo?{[zr]:[l,c]}:{...l,...c}:c}return n}function Ja(e,t={},r=ae(t,[tt])){return Wg(e,t,[],r)}var cN=Object.prototype,fN=cN.hasOwnProperty;function dN(e,t){return e!=null&&fN.call(e,t)}function Kg(e,t,r){t=zi(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var o=vn(t[i]);if(!(n=e!=null&&r(e,o)))break;e=e[o]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&Ec(a)&&as(o,a)&&(Tt(e)||Ui(e)))}function $e(e,t){return e!=null&&Kg(e,t,dN)}var pN="[object String]";function bn(e){return typeof e=="string"||!Tt(e)&&cr(e)&&tn(e)==pN}function dr(e){let t;const r=ae(e,$O);return bn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var mN=1/0;function hN(e){var t=e==null?0:e.length;return t?Ka(e,mN):[]}function $c(e,t,r){(r!==void 0&&!qa(e[t],r)||r===void 0&&!(t in e))&&_c(e,t,r)}function gN(e){return function(t,r,i){for(var a=-1,n=Object(t),o=i(t),s=o.length;s--;){var l=o[++a];if(r(n[l],l,n)===!1)break}return t}}var Gg=gN();function Ya(e){return cr(e)&&ni(e)}function zc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function yN(e){return Vi(e,Ha(e))}function vN(e,t,r,i,a,n,o){var s=zc(e,r),l=zc(t,r),u=o.get(l);if(u){$c(e,r,u);return}var c=n?n(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var p=Tt(l),d=!p&&ii(l),m=!p&&!d&&Va(l);c=l,p||d||m?Tt(s)?c=s:Ya(s)?c=Ic(s):d?(f=!1,c=Cg(l,!0)):m?(f=!1,c=Ig(l,!0)):c=[]:yn(l)||Ui(l)?(c=s,Ui(s)?c=yN(s):(!Re(s)||ja(s))&&(c=Fg(l))):f=!1}f&&(o.set(l,c),a(c,l,i,n,o),o.delete(l)),$c(e,r,c)}function Jg(e,t,r,i,a){e!==t&&Gg(t,function(n,o){if(a||(a=new Cr),Re(n))vN(e,t,o,r,Jg,i,a);else{var s=i?i(zc(e,o),n,o+"",e,t,a):void 0;s===void 0&&(s=n),$c(e,o,s)}},Ha)}function us(e,t){return Vg(Bg(e,t,ss),e+"")}function bN(e,t,r){if(!Re(r))return!1;var i=typeof t;return(i=="number"?ni(r)&&as(t,r.length):i=="string"&&t in r)?qa(r[t],e):!1}function kN(e){return us(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,o&&bN(r[0],r[1],o)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var s=r[i];s&&e(t,s,i,n)}return t})}var wN=kN(function(e,t,r){Jg(e,t,r)});function Rc(e,t,r,i){if(!Re(e))return e;t=zi(t,e);for(var a=-1,n=t.length,o=n-1,s=e;s!=null&&++a<n;){var l=vn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=i?i(c,l,s):void 0,u===void 0&&(u=Re(c)?c:as(t[a+1])?[]:{})}Pc(s,l,u),s=s[l]}return e}function st(e,t,r){return e==null?e:Rc(e,t,r)}function Yg(e){return typeof e=="function"?e:ss}var SN=/\s/;function CN(e){for(var t=e.length;t--&&SN.test(e.charAt(t)););return t}var EN=/^\s+/;function AN(e){return e&&e.slice(0,CN(e)+1).replace(EN,"")}var Xg=NaN,xN=/^[-+]0x[0-9a-f]+$/i,ON=/^0b[01]+$/i,_N=/^0o[0-7]+$/i,PN=parseInt;function IN(e){if(typeof e=="number")return e;if(Ma(e))return Xg;if(Re(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Re(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=AN(e);var r=ON.test(e);return r||_N.test(e)?PN(e.slice(2),r?2:8):xN.test(e)?Xg:+e}var Zg=1/0,TN=17976931348623157e292;function NN(e){if(!e)return e===0?e:0;if(e=IN(e),e===Zg||e===-Zg){var t=e<0?-1:1;return t*TN}return e===e?e:0}function Qg(e){var t=NN(e),r=t%1;return t===t?r?t-r:t:0}var FN=9007199254740991,Uc=4294967295,DN=Math.min;function ey(e,t){if(e=Qg(e),e<1||e>FN)return[];var r=Uc,i=DN(e,Uc);t=Yg(t),e-=Uc;for(var a=yg(i,t);++r<e;)t(r);return a}function ty(e,t){return e&&Gg(e,t,Er)}var MN="__lodash_hash_undefined__";function jN(e){return this.__data__.set(e,MN),this}function LN(e){return this.__data__.has(e)}function ai(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nn;++t<r;)this.add(e[t])}ai.prototype.add=ai.prototype.push=jN,ai.prototype.has=LN;function qN(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Xa(e,t){return e.has(t)}var $N=1,zN=2;function ry(e,t,r,i,a,n){var o=r&$N,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=n.get(e),c=n.get(t);if(u&&c)return u==t&&c==e;var f=-1,p=!0,d=r&zN?new ai:void 0;for(n.set(e,t),n.set(t,e);++f<s;){var m=e[f],k=t[f];if(i)var v=o?i(k,m,f,t,e,n):i(m,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!qN(t,function(g,b){if(!Xa(d,b)&&(m===g||a(m,g,r,i,n)))return d.push(b)})){p=!1;break}}else if(!(m===k||a(m,k,r,i,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function RN(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function Bc(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var UN=1,BN=2,VN="[object Boolean]",HN="[object Date]",WN="[object Error]",KN="[object Map]",GN="[object Number]",JN="[object RegExp]",YN="[object Set]",XN="[object String]",ZN="[object Symbol]",QN="[object ArrayBuffer]",eF="[object DataView]",ny=ur?ur.prototype:void 0,Vc=ny?ny.valueOf:void 0;function tF(e,t,r,i,a,n,o){switch(r){case eF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QN:return!(e.byteLength!=t.byteLength||!n(new os(e),new os(t)));case VN:case HN:case GN:return qa(+e,+t);case WN:return e.name==t.name&&e.message==t.message;case JN:case XN:return e==t+"";case KN:var s=RN;case YN:var l=i&UN;if(s||(s=Bc),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;i|=BN,o.set(e,t);var c=ry(s(e),s(t),i,a,n,o);return o.delete(e),c;case ZN:if(Vc)return Vc.call(e)==Vc.call(t)}return!1}var rF=1,nF=Object.prototype,iF=nF.hasOwnProperty;function aF(e,t,r,i,a,n){var o=r&rF,s=Fc(e),l=s.length,u=Fc(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var p=s[f];if(!(o?p in t:iF.call(t,p)))return!1}var d=n.get(e),m=n.get(t);if(d&&m)return d==t&&m==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=o;++f<l;){p=s[f];var g=e[p],b=t[p];if(i)var w=o?i(b,g,p,t,e,n):i(g,b,p,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var S=e.constructor,h=t.constructor;S!=h&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var oF=1,iy="[object Arguments]",ay="[object Array]",cs="[object Object]",sF=Object.prototype,oy=sF.hasOwnProperty;function lF(e,t,r,i,a,n){var o=Tt(e),s=Tt(t),l=o?ay:fr(e),u=s?ay:fr(t);l=l==iy?cs:l,u=u==iy?cs:u;var c=l==cs,f=u==cs,p=l==u;if(p&&ii(e)){if(!ii(t))return!1;o=!0,c=!1}if(p&&!c)return n||(n=new Cr),o||Va(e)?ry(e,t,r,i,a,n):tF(e,t,l,r,i,a,n);if(!(r&oF)){var d=c&&oy.call(e,"__wrapped__"),m=f&&oy.call(t,"__wrapped__");if(d||m){var k=d?e.value():e,v=m?t.value():t;return n||(n=new Cr),a(k,v,r,i,n)}}return p?(n||(n=new Cr),aF(e,t,r,i,a,n)):!1}function fs(e,t,r,i,a){return e===t?!0:e==null||t==null||!cr(e)&&!cr(t)?e!==e&&t!==t:lF(e,t,r,i,fs,a)}var uF=1,cF=2;function fF(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<n;){o=r[a];var s=o[0],l=e[s],u=o[1];if(o[2]){if(l===void 0&&!(s in e))return!1}else{var c=new Cr,f;if(!(f===void 0?fs(u,l,uF|cF,i,c):f))return!1}}return!0}function sy(e){return e===e&&!Re(e)}function dF(e){for(var t=Er(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,sy(a)]}return t}function ly(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function pF(e){var t=dF(e);return t.length==1&&t[0][2]?ly(t[0][0],t[0][1]):function(r){return r===e||fF(r,e,t)}}function mF(e,t){return e!=null&&t in Object(e)}function uy(e,t){return e!=null&&Kg(e,t,mF)}var hF=1,gF=2;function yF(e,t){return dc(e)&&sy(t)?ly(vn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?uy(r,e):fs(t,i,hF|gF)}}function vF(e){return function(t){return t==null?void 0:t[e]}}function bF(e){return function(t){return es(t,e)}}function kF(e){return dc(e)?vF(vn(e)):bF(e)}function Hc(e){return typeof e=="function"?e:e==null?ss:typeof e=="object"?Tt(e)?yF(e[0],e[1]):pF(e):kF(e)}function wF(e,t,r){var i=Tt(e),a=i||ii(e)||Va(e);if(t=Hc(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Re(e)?r=ja(n)?Ng(Xo(e)):{}:r={}}return(a?Oc:ty)(e,function(o,s,l){return t(r,o,s,l)}),r}function SF(e,t,r,i){for(var a=e.length,n=r+-1;++n<a;)if(t(e[n],n,e))return n;return-1}function CF(e){return e!==e}function EF(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function cy(e,t,r){return t===t?EF(e,t,r):SF(e,CF,r)}function Wc(e,t){var r=e==null?0:e.length;return!!r&&cy(e,t,0)>-1}function ds(){}var AF=1/0,xF=Ri&&1/Bc(new Ri([,-0]))[1]==AF?function(e){return new Ri(e)}:ds,OF=200;function fy(e,t,r){var i=-1,a=Wc,n=e.length,o=!0,s=[],l=s;if(n>=OF){var u=xF(e);if(u)return Bc(u);o=!1,a=Xa,l=new ai}else l=s;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,o&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;s.push(c)}else a(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}function dy(e){return e&&e.length?fy(e):[]}function Za(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 _F=us(function(e){return fy(Ka(e,1,Ya,!0))});function pr(e){let{type:t}=e;return!t&&e.const?Za(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 on(e,t){const r={...e},i=Object.keys(t).reduce((a,n)=>{const o=e?e[n]:{},s=t[n];return e&&n in e&&be(s)?a[n]=on(o,s):e&&t&&(pr(e)==="object"||pr(t)==="object")&&n===Ph&&Array.isArray(o)&&Array.isArray(s)?a[n]=_F(o,s):a[n]=s,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var PF="[object Number]";function py(e){return typeof e=="number"||cr(e)&&tn(e)==PF}function my(e,t,r){var i;if(e&&r){const a=ae(e,r);if(a===void 0)return;for(let n=0;n<t.length;n+=1){const o=t[n],s=ae(o,[ze,r],{});if(s.type!=="object"&&s.type!=="array"&&(s.const===a||!((i=s.enum)===null||i===void 0)&&i.includes(a)))return n}}}function ps(e,t,r,i,a){if(t===void 0)return 0;const n=my(t,r,a);if(py(n))return n;for(let o=0;o<r.length;o+=1){const s=r[o];if(a&&$e(s,[ze,a])){const l=ae(t,a),u=ae(s,[ze,a],{});if(e.isValid(u,l,i))return o}else if(s[ze]){const l={anyOf:Object.keys(s[ze]).map(c=>({required:[c]}))};let u;if(s.anyOf){const{...c}=s;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...s,...l};if(delete u.required,e.isValid(u,t,i))return o}else if(e.isValid(s,t,i))return o}return 0}const IF=Object.prototype;function Qa(e){for(const t in e)if(IF.hasOwnProperty.call(e,t))return!1;return!0}const TF=["array","boolean","integer","null","number","object","string"];new Set(TF);const NF=["$defs","definitions","properties","patternProperties","dependencies"];new Set(NF);const FF=["items","allOf","oneOf","anyOf"];new Set(FF);const DF=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(DF);function ms(e){return typeof e=="object"}function Ur(e){return ms(e)?Qa(e):e===!0}function Hi(e,t){return e<t?-1:e>t?1:0}function Kc(e,t){const r=e.length;if(r===0)return t;let i=t.length;if(i===0)return e;if(r<i){const n=e;e=t,t=n,i=r}const a=new Set(e);for(let n=0;n<i;n++)a.add(t[n]);return Array.from(a)}function MF(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const a=e;e=t,t=a}const i=new Set(t);for(let a=0;a<e.length&&i.size>0;a++){const n=e[a];i.delete(n)&&r.push(n)}return r}function hy(e){return e.length===0}function Gc(e){return(t,r)=>{const i=t.length-r.length;if(i!==0)return i;for(let a=0;a<t.length;a++)if(t[a]!==r[a]){const n=e(t[a],r[a]);if(n!==0)return n}return 0}}function gy(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const o=[];let s=0;e:for(let l=0;l<i;l++){const u=r[l];for(let c=0;c<s;c++)if(e(u,o[c])===0)continue e;s=o.push(u)}return o}const a=r.slice().sort(e);let n=0;for(let o=1;o<i;o++)e(a[n],a[o])!==0&&++n!==o&&(a[n]=a[o]);return a.length=n+1,a}}function jF(e){return(t,r)=>{const i=[];let a=t.length,n=r.length;if(a===0||n===0)return i;if(a>n){const c=t;t=r,r=c;const f=a;a=n,n=f}const o=[...t].sort(e),s=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(o[l],s[u]);c===0?((i.length===0||e(i[i.length-1],o[l])!==0)&&i.push(o[l]),l++,u++):c<0?l++:u++}return i}}function LF(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const yy=LF,vy=()=>0,qF=e=>e===void 0,$F=e=>typeof e!="object",by={boolean:0,number:1,string:2};function zF(e,t){const r=typeof e,i=typeof t;return r===i?Hi(e,t):by[r]-by[i]}function RF(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const o=e;e=t,t=o}const a=new Set(e),n=t.length;for(let o=0;o<n;o++){const s=t[o];a.has(s)||e.push(s)}return e}function hs(e,t,r=vy){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Wi(e){return hs(qF,e)}function kn(e,t){return hs(r=>r===void 0||e(r),t)}function Jc(e,t){return hs(Array.isArray,e,t)}const _t=Wi(Hi),Yc=kn(e=>e===0,(e,t)=>e-t);function UF({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=yy(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),S=Math.min(b.length,w.length);for(let h=0;h<S;h++){const y=Hi(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<S;h++){const y=b[h],C=k(v[y],g[y]);if(C!==0)return C}return 0}}function a(k){const v=Gc(k),g=yy(e,gy(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(Hi);function o(k,v){if(ms(k)){if(ms(v)){const g=Object.keys(k),b=Object.keys(v),w=RF(g,b),S=w.length;for(let h=0;h<S;h++){const y=w[h];if(k[y]===v[y])continue;const x=(m[y]??s)(k[y],v[y]);if(x!==0)return x}return 0}return v===!0&&Qa(k)?0:1}return ms(v)?k===!0&&Qa(v)?0:-1:Hi(k,v)}const s=Wi(u),l=hs($F,Jc(i(s),Gc(u)),zF);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Wi(o),f=kn(Qa,i(c)),p=Wi(a(o)),d=kn(Ur,o),m={$id:_t,$comment:_t,$defs:f,$ref:_t,$schema:_t,const:s,contains:c,contentEncoding:_t,contentMediaType:_t,default:s,definitions:f,description:_t,else:c,examples:s,exclusiveMaximum:_t,exclusiveMinimum:_t,format:_t,if:c,maximum:_t,maxItems:_t,maxLength:_t,maxProperties:_t,minimum:_t,multipleOf:_t,not:c,pattern:_t,propertyNames:c,readOnly:_t,then:c,title:_t,writeOnly:_t,uniqueItems:kn(k=>k===!1,vy),minLength:Yc,minItems:Yc,minProperties:Yc,required:kn(hy,n),enum:kn(hy,a(u)),type:Wi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?Hi(k,v):n(g?k:[k],b?v:[v])}),items:kn(k=>!Array.isArray(k)&&Ur(k),Jc(o,Gc(o))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:kn(Qa,i(Wi(Jc(o,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:o}}function ky(e){return e}const wy=(e,t)=>e?wy(t%e,e):t,BF=(e,t)=>Math.abs(e*t)/wy(e,t);function VF(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Xc(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const o=e[n];for(let s=0;s<a;s++)r(o,t[s])}}function Zc(e,t){return e||t}function Sy(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let o=0;o<n;o++){const s=a[o];i[s]=t[s]===void 0?r[s]:e(t[s],r[s])}return i}}function HF(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function oi(e,t,r){r===void 0||Ur(r)?delete e[t]:e[t]=r}const WF=["properties","patternProperties","additionalProperties"];function Cy(e){const t=Object.keys(e),r=t.length,i=[];for(let a=0;a<r;a++){const n=t[a];i.push({regExp:new RegExp(n),schema:e[n]})}return[i,t]}const Ey=[[],[]];function Ay(e,t,r){const i=r.length;for(let a=0;a<i;a++){const n=r[a];if(!n.regExp.test(t))continue;const o=n.schema;if(o===!1)return!0;e.push(o)}return!1}const KF=["items","additionalItems"],GF=["if","then","else"];function xy(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 Qc(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 si(e,t,r){return[e,t,r]}function JF(e){const t=new Map;for(const[r,i,a]of e){const n=o=>{if(!a(o))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(o[r])}, ${i}: ${JSON.stringify(o[i])})`)};for(const o of[[r,i],[i,r]]){let s=t.get(o[0]);s===void 0&&(s=[],t.set(o[0],s)),s.push({oppositeKey:o[1],check:n})}}return t}const YF=[si("minimum","maximum",e=>e.maximum>=e.minimum),si("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),si("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),si("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),si("minLength","maxLength",e=>e.maxLength>=e.minLength),si("minItems","maxItems",e=>e.maxItems>=e.minItems),si("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function XF({mergePatterns:e=VF,isSubRegExp:t=Object.is,intersectJson:r=MF,deduplicateJsonSchemaDef:i=ky,defaultMerger:a=ky,assigners:n=[],checks:o=YF,mergers:s}={}){function l(S){const h=S.length;let y=S[0];for(let C=1;C<h;C++){const x=g(y,S[C]);if(x===!1)return!1;Ur(x)||(y=x)}return y}function u(S,h,y,C,x,_,E){if(S.length=0,y===!1)return!1;if(S.push(y),x!==void 0){if(x===!1)return!1;S.push(x)}if(Ay(S,h,_))return!1;const O=S.length<2;if(E===!1){if(O)return;if(Ay(S,h,C))return!1}else O&&E!==void 0&&S.push(E);return S.length===1?S[0]:l(S)}function c(S,h,y,C,x,_){const E=y.length;if(E>0&&x!==!1)if(_)Object.assign(S,h);else for(let A=0;A<E;A++){const O=y[A];C.has(O)||(S[O]=g(h[O],x))}return S}const f=(S,{properties:h={},patternProperties:y,additionalProperties:C=!0},{properties:x={},patternProperties:_,additionalProperties:E=!0})=>{const A=Ur(C),O=Ur(E);if(A&&O)return oi(S,"properties",b(h,x)),oi(S,"patternProperties",y&&_?b(y,_):y??_),delete S.additionalProperties,S;const F=g(C,E);oi(S,"additionalProperties",F);const T={},j=Object.keys(h),q=j.length,[H,Y]=y?Cy(y):Ey,[Z,P]=_?Cy(_):Ey,M=[],R=new Set,I=O?void 0:E;for(let K=0;K<q;K++){const X=j[K];R.add(X);const z=u(M,X,h[X],H,x[X],Z,I);z!==void 0&&(T[X]=z)}const D=Object.keys(x),L=D.length,B=A?void 0:C;for(let K=0;K<L;K++){const X=D[K];if(R.has(X))continue;const z=u(M,X,x[X],Z,void 0,H,B);z!==void 0&&(T[X]=z)}oi(S,"properties",T);let V={};const W=new Set;return Y.length>0&&P.length>0&&Xc(Y,P,(K,X)=>{t(K,X)&&W.add(K),t(X,K)&&W.add(X),V[e(K,X)]=g(y[K],_[X])}),V=c(V,y,Y,W,E,O),V=c(V,_,P,W,C,A),oi(S,"patternProperties",V),S},p=(S,{items:h=[],additionalItems:y},{items:C=[],additionalItems:x})=>{const _=Array.isArray(h),E=Array.isArray(C),A=[];if(S.items=A,_&&E){const[O,F,T]=h.length<C.length?[h.length,y,C]:[C.length,x,h];let j=0;for(;j<O;j++)A.push(g(h[j],C[j]));if(F===!1)S.additionalItems=!1;else{const q=F===void 0||Ur(F);for(;j<T.length;j++)A.push(q?T[j]:g(T[j],F));oi(S,"additionalItems",y!==void 0&&x!==void 0?g(y,x):y??x)}}else if(_||E){const[O,F,T]=_?[h,C,y]:[C,h,x];oi(S,"additionalItems",T&&g(T,F));for(let j=0;j<O.length;j++)A.push(g(O[j],F))}else delete S.additionalItems,S.items=g(h,C);return S},d=(S,h,y)=>{xy(S,h);const C=xy({},y);return S.allOf===void 0?S.allOf=[C]:S.allOf=S.allOf.concat(C),S};function m(S,h){const y=[];if(Xc(S,h,(C,x)=>{try{y.push(g(C,x))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(S)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=HF([[WF,f],[KF,p],[GF,d],...n]),v=JF(o);function g(S,h){if(S===!1||h===!1)return!1;if(Ur(S))return Ur(h)?!0:h;if(Ur(h))return S;let y={...S};const C=new Set,x=new Set,_=Reflect.ownKeys(h),E=_.length;for(let A=0;A<E;A++){const O=_[A],F=h[O];if(F===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let Z=0;Z<Y;Z++){const P=T[Z];S[P.oppositeKey]!==void 0&&x.add(P.check)}}const j=S[O];if(j===void 0){y[O]=F;continue}const q=k.get(O);if(q){C.add(q);continue}const H=w[O]??a;y[O]=H(j,F)}for(const A of C)y=A(y,S,h);for(const A of x)A(y);return y}const b=Sy(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(S,h)=>{if(S===h)return S;const y=Array.isArray(S),C=Array.isArray(h);if(!y&&!C){const x=Qc(S,h);if(x!==void 0)return x}else if(y||C){const x=new Set;if(y&&C)Xc(S,h,(E,A)=>{const O=Qc(E,A);O!==void 0&&x.add(O)});else{const E=y?S:h,A=y?h:S,O=E.length;for(let F=0;F<O;F++){const T=Qc(A,E[F]);T!==void 0&&x.add(T)}}const _=x.size;if(_===1)return x.values().next().value;if(_>1)return Array.from(x)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${S.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(S,h)=>{const y=i([S,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Zc,writeOnly:Zc,enum:(S,h)=>{const y=r(S,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(S)}", "${JSON.stringify(h)}"`);return y},anyOf:m,oneOf:m,allOf:(S,h)=>i(S.concat(h)),propertyNames:g,contains:g,dependencies:Sy((S,h)=>Array.isArray(S)?Array.isArray(h)?Kc(S,h):g(h,{required:S}):Array.isArray(h)?g(S,{required:h}):g(S,h)),examples:(S,h)=>{if(!Array.isArray(S)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(S)}" and "${JSON.stringify(h)}"`);return Kc(S,h)},multipleOf:(S,h)=>{let y=1;for(;!Number.isInteger(S)||!Number.isInteger(h);)y*=10,S*=10,h*=10;return BF(S,h)/y},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:Zc,required:Kc,...s};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function ZF(e){const t=[],r=[e];for(;r.length>0;){const i=r.pop();if(typeof i=="boolean"||i.allOf===void 0){t.push(i);continue}const{allOf:a,...n}=i;t.push(n);for(let o=a.length-1;o>=0;o--)r.push(a[o])}return t}function QF(e){return t=>e(ZF(t))}const{compareSchemaDefinitions:eD,compareSchemaValues:tD}=UF(),{mergeArrayOfSchemaDefinitions:rD}=XF({intersectJson:jF(tD),deduplicateJsonSchemaDef:gy(eD)}),Oy=QF(rD);function Mt(e,t,r={},i,a,n=!1){return Br(e,t,r,i,void 0,void 0,a,n)[0]}function _y(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function nD(e,t,r,i,a,n,o){const{if:s,then:l,else:u,...c}=t,f=e.isValid(s,n||{},r);let p=[c],d=[];if(i){if(l&&typeof l!="boolean"){const m=l;d=d.concat(Br(e,m,r,n,i,a,o))}if(u&&typeof u!="boolean"){const m=u;d=d.concat(Br(e,m,r,n,i,a,o))}}else{const m=f?l:u;if(m!==void 0){const k=_y(m);d=d.concat(Br(e,k,r,n,i,a,o))}}return d.length&&(p=d.map(m=>on(c,m))),p.flatMap(m=>Br(e,m,r,n,i,a,o))}function Py(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>ey(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Iy(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(st(r,[i],e.patternProperties[i]),r),{})}function iD(e,t,r,i,a,n,o,s){const l=Ty(e,t,r,i,a,n,o,s);if(l.length>1||l[0]!==t)return l;if(nc in t)return Fy(e,t,r,i,a,n,o).flatMap(c=>Br(e,c,r,n,i,a,o));if(zr in t&&Array.isArray(t[zr])){const u=t.allOf.map(f=>Br(e,f,r,n,i,a,o));return Py(u).map(f=>({...t,allOf:f}))}return[t]}function Ty(e,t,r,i,a,n,o,s){const l=wn(t,r,a,void 0,s);return l!==t?Br(e,l,r,n,i,a,o,s):[t]}function wn(e,t,r,i,a,n=!1){if(!be(e))return e;let o=e,s=i;if(at in o){const{$ref:l,...u}=o;if(r.includes(l))return n?{...o,[sc]:!0}:o;r.push(l),o={...Ja(l,t,s),...u,[Jo]:l},tt in o&&(s=o[tt])}if(ze in o){const l=[],u=wF(o[ze],(c,f,p)=>{const d=[...r];c[p]=wn(f,t,d,s,a,!a),l.push(d)},{});wN(r,dy(hN(l))),o={...o,[ze]:u}}if(qi in o&&!Array.isArray(o.items)&&typeof o.items!="boolean"&&(o={...o,items:wn(o.items,t,r,s,a)}),a){let l,u;je in e&&Array.isArray(e[je])?(l=je,u=o[je]):xe in e&&Array.isArray(e[xe])&&(l=xe,u=o[xe]),l&&u&&(o={...o,[l]:u.map(c=>wn(c,t,r,s,a))})}return Ue(e,o)?e:o}function aD(e,t,r,i,a){const n={...t,properties:{...t.properties}},o=i&&be(i)?i:{};return Object.keys(o).forEach(s=>{if(!(s in n.properties)){if(ac in n){const l=Iy(n,s);if(!kt(l)){n.properties[s]=Mt(e,{[zr]:Object.values(l)},r,ae(o,[s]),a),n.properties[s][hn]=!0;return}}if(Li in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Mt(e,{[at]:ae(n.additionalProperties,[at])},r,ae(o,[s]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:je in n.additionalProperties||xe in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Za(ae(o,[s]))}:l={type:Za(ae(o,[s]))},n.properties[s]=l,n.properties[s][hn]=!0}else n.properties[s]={type:"null"},n.properties[s][hn]=!0}}),n}function oD(e){return Oy(e)}function Br(e,t,r,i,a=!1,n=[],o,s){return be(t)?iD(e,t,r,a,n,i,o,s).flatMap(u=>{var c;let f=u;if(ic in f)return nD(e,f,r,a,n,i,o);if(zr in f){if(a){const{allOf:d,...m}=f;return[...d,m]}try{const d=[],m=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{m.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:m}),f=o?o(f):oD(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:
59
- `,d);const{allOf:m,...k}=f;return k}}return ze in f&&ac in f&&(f=Object.keys(f.properties).reduce((d,m)=>{const k=Iy(d,m);return kt(k)||(d.properties[m]=Mt(e,{allOf:[d.properties[m],...Object.values(k)]},r,ae(i,[m]),o)),d},{...f,properties:{...f.properties}})),ac in f||Li in f&&f.additionalProperties!==!1?aD(e,f,r,i,o):f}):[{}]}function sD(e,t,r,i,a){let n;const{oneOf:o,anyOf:s,...l}=t;if(Array.isArray(o)?n=o:Array.isArray(s)&&(n=s),n){const u=a===void 0&&i?{}:a,c=dr(t);n=n.map(p=>wn(p,r,[]));const f=ps(e,u,n,r,c);if(i){const p=Ny(n,!1,r);return ps(e,u,p,r,c),n.map(d=>on(l,d))}return[on(l,n[f])]}return[t]}function Ny(e,t=!1,r){return e.map(i=>{if(!be(i))return _y(i);const a=t&&r?wn(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Fy(e,t,r,i,a,n,o){const{dependencies:s,...l}=t;return sD(e,l,r,i,n).flatMap(c=>Dy(e,s,c,r,i,a,n,o))}function Dy(e,t,r,i,a,n,o,s){let l=[r];for(const u in t)if((a||ae(o,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=qc(u,t);return Array.isArray(f)?l[0]=lD(r,f):be(f)&&(l=uD(e,r,i,u,f,a,n,o,s)),l.flatMap(p=>Dy(e,c,p,i,a,n,o,s))}return l}function lD(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 uD(e,t,r,i,a,n,o,s,l){return Br(e,a,r,s,n,o,l).flatMap(c=>{const{oneOf:f,...p}=c,d=on(t,p);if(f===void 0)return d;const m=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:Ty(e,v,r,n,o,s));return Py(m).flatMap(v=>cD(e,d,r,i,v,n,o,s,l))})}function cD(e,t,r,i,a,n,o,s,l){const u=a.filter(c=>{if(typeof c=="boolean"||!(c!=null&&c.properties))return!1;const{[i]:f}=c.properties;if(f){const p={type:"object",properties:{[i]:f}};return e.isValid(p,s,r)||n}return!1});return!n&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):u.flatMap(c=>{const f=c,[p]=qc(i,f.properties),d={...f,properties:p};return Br(e,d,r,s,n,o,l).map(k=>on(t,k))})}function eo(e,t,r,i,a,n={},o){if(Array.isArray(r[a])){const l=dr(r)||i,u=r[a].map(f=>Mt(e,f,t,n,o)),c=ae(n,l);if(c!==void 0)return u.find(f=>Ue(ae(f,[ze,l,Zn],ae(f,[ze,l,Vt])),c))}}function My(e,t,r,i,a){let n=r;if($e(r,at)&&(n=Mt(e,r,t,void 0,a)),kt(i))return n;const o=Array.isArray(i)?[...i]:i.split("."),[s,...l]=o;if(s!==void 0&&s!==""&&$e(n,s))return n=ae(n,s),My(e,t,n,l,a)}function gs(e,t,r,i,a,n){const o=My(e,t,r,i,n);return o===void 0?a:o}const jy={title:"!@#$_UNKNOWN_$#@!"};function fD(e,t,r,i,a={},n){const o=Array.isArray(i)?[...i]:i.split(".");let s=r;const l=o.pop(),u=String(l);o.length&&o.forEach(d=>{s=gs(e,t,s,[ze,d],{},n),$e(s,xe)?s=eo(e,t,s,u,xe,ae(a,d),n):$e(s,je)&&(s=eo(e,t,s,u,je,ae(a,d),n))}),$e(s,xe)?s=eo(e,t,s,u,xe,a,n):$e(s,je)&&(s=eo(e,t,s,u,je,a,n));let c=gs(e,t,s,[ze,l],jy,n);c===jy&&(c=void 0);const f=gs(e,t,s,Ph,[],n);let p;return c&&Array.isArray(f)&&(p=f.includes(u)),{field:c,isRequired:p}}function dD(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}function pD(e,t){return function(r,i){if(r==null)return r;if(!ni(r))return e(r,i);for(var a=r.length,n=-1,o=Object(r);++n<a&&i(o[n],n,o)!==!1;);return r}}var Ly=pD(ty);function mD(e,t,r,i,a){return a(e,function(n,o,s){r=i?(i=!1,n):t(r,n,o,s)}),r}function hD(e,t,r){var i=Tt(e)?dD:mD,a=arguments.length<3;return i(e,Hc(t),r,a,Ly)}const gD={type:"object",$id:qO,properties:{__not_really_there__:{type:"number"}}};function ef(e,t,r,i,a){let n=0;return r&&(Re(r.properties)?n+=hD(r.properties,(o,s,l)=>{const u=ae(i,l);if(typeof s=="boolean")return o;if($e(s,at)){const c=Mt(e,s,t,u,a);return o+ef(e,t,c,u||{},a)}if(($e(s,xe)||$e(s,je))&&u){const c=$e(s,xe)?xe:je,f=dr(s);return o+Ki(e,t,u,ae(s,c),-1,f,a)}if(s.type==="object"){const c=Re(u)?1:0;return o+c+ef(e,t,s,u,a)}if(s.type===Za(u)){let c=o+1;return s.default?c+=u===s.default?1:-1:s.const&&(c+=u===s.const?1:-1),c}return o},0):bn(r.type)&&r.type===Za(i)&&(n+=1)),n}function Ki(e,t,r,i,a=-1,n,o){const s=i.map(p=>wn(p,t,[])),l=my(r,i,n);if(py(l))return l;const u=s.reduce((p,d,m)=>(ps(e,r,[gD,d],t,n)===1&&p.push(m),p),[]);if(u.length===1)return u[0];u.length||ey(s.length,p=>u.push(p));const c=new Set,{bestIndex:f}=u.reduce((p,d)=>{const{bestScore:m}=p,k=s[d],v=ef(e,t,k,r,o);return c.add(v),v>m?{bestIndex:d,bestScore:v}:p},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function qy(e){const t=e[Vt],r=pr(e);return be(t)&&bn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function $y(e){return Array.isArray(e.enum)&&e.enum.length===1||Vt in e}function tf(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function Gi(e){return e==null}function to(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=a?n:t,s=a?t:n,l=o.map((u,c)=>s[c]!==void 0?to(n[c],t[c],r,i,a):u);return(r||a)&&l.length<s.length&&l.push(...s.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((o,s)=>{var l;const u=ae(t,s),c=be(e)&&s in e,f=s in t,p=(l=ae(e,s))!==null&&l!==void 0?l:{},d=c&&be(p)&&Object.values(p).some(v=>be(v)),m=c&&be(ae(e,s)),k=f&&be(u);return m&&k&&!d?(o[s]={...ae(e,s),...u},o):(o[s]=to(ae(e,s),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&Gi(t)||typeof t=="number"&&Number.isNaN(t))||a&&!Gi(t)?e:t}function Sn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},o=t[a];if(e&&a in e&&be(o))i[a]=Sn(n,o,r);else if(r&&Array.isArray(n)&&Array.isArray(o)){let s=o;r==="preventDuplicates"&&(s=o.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(s)}else i[a]=o;return i},{...e})}function yD(e){if(LO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Vt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function vD(e,t){const r=new Map(e.map(n=>[String(n.value),n])),i=new Set(t.filter(n=>n!=="*").map(String)),a=e.filter(n=>!i.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return a;const o=r.get(String(n));return o?[o]:[]})}function li(e,t){if(e.enum){let n,o;if(t){const{enumNames:l,enumOrder:u}=pe(t);n=l,o=u}let s=e.enum.map((l,u)=>({label:Array.isArray(n)?n[u]||String(l):(n==null?void 0:n[String(l)])||String(l),value:l}));return o&&(s=vD(s,o)),s}let r,i;e.anyOf?(r=e.anyOf,i=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,i=t==null?void 0:t.oneOf);let a=dr(e);if(t){const{optionsSchemaSelector:n=a}=pe(t);a=n}return r==null?void 0:r.map((n,o)=>{var s,l,u;const{title:c}=pe(i==null?void 0:i[o]),f=n;let p,d=c;if(a){const m=ae(f,[ze,a],{});p=ae(m,Zn,ae(m,Vt)),d=(l=(s=d??(m==null?void 0:m.title))!==null&&s!==void 0?s:f.title)!==null&&l!==void 0?l:String(p)}else p=yD(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(p);return{schema:f,label:d,value:p}})}function ys(e,t,r={},i){const a=Mt(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(o=>typeof o!="boolean"&&$y(o)):!1}function rf(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:ys(e,t.items,r,i)}const bD=["string","number","integer","boolean","null"];var Ji;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ji||(Ji={}));function nf(e,t=Ji.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const i=e.items[r];if(typeof i!="boolean")return i}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Ji.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function zy(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&kt(t)&&r===null?null:t}function Ry(e,t,r,i,a,n=[],o={},s=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=o;if(i===!0||s)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!kt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?kt(r)||(e[t]=r):(!kt(r)||n.includes(t))&&(c||u!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&n.includes(t))&&(e[t]=r)}}function Cn(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:o=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:p}=r;let d=be(a)?a:{};const m=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=s;if(m[Vt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!qy(m))k=m[Vt];else if(be(k)&&be(m.default)&&!m[je]&&!m[xe]&&!m[at])v?k=Sn(m.default,k):k=Sn(k,m.default);else if(Zn in m&&!v&&!m[je]&&!m[xe]&&!m[at])k=m.default;else if(at in m){const y=m[at];s.includes(y)||(w=s.concat(y),g=Ja(y,n));const C=a===void 0||be(a)&&kt(a);g&&!k&&C&&(k=m.default),f&&g&&!be(a)&&(d=a)}else if(nc in m){const y={...Uy(e,m,r,k),...d};[g]=Fy(e,m,n,!1,[],y,u)}else if(tf(m)&&!v)k=m.items.map((y,C)=>Cn(e,y,{rootSchema:n,includeUndefinedValues:o,_recurseList:s,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[C]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(xe in m){const{oneOf:y,...C}=m;if(y.length===0)return;const x=dr(m),{type:_="null"}=C;!Array.isArray(_)&&bD.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[Ki(e,n,a??m.default,y,0,x,u)],g=on(C,g)}else if(je in m){const{anyOf:y,...C}=m;if(y.length===0)return;const x=dr(m);g=y[Ki(e,n,a??m.default,y,0,x,u)],g=on(C,g)}if(g)return Cn(e,g,{rootSchema:n,includeUndefinedValues:o,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=m.default);const S=Uy(e,m,r,k);let h=S??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:C}=y,x=af(e,m,n,a,l,u);(!be(a)||zr in m)&&(h=to(h,x,C,!0))}return h}function af(e,t,r,i,a,n){const o=(a==null?void 0:a.allOf)==="populateDefaults"&&zr in t,s=o?Mt(e,t,r,i,n):t,l=!$y(s)&&ys(e,s,r,n);let u=i;if(l){const f=li(s);u=(f==null?void 0:f.some(d=>Ue(d.value,i)))?i:void 0}return s[Vt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=s.const:be(u)&&be(s.properties)&&(u=Object.keys(s.properties).reduce((f,p)=>{const d=ae(s,[ze,p],{});return p in f&&(o||be(d)&&zr in d)&&(f[p]=af(e,d,r,ae(f,p),a,n)),f},{...u})),u}function kD(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const p=be(r)?r:{},d=t,k=(o==null?void 0:o.allOf)==="populateDefaults"&&zr in d||(o==null?void 0:o.emptyObjectFields)!=="skipEmptyDefaults"&&ic in d?Mt(e,d,i,p,s):d,v=k[Vt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var S;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,C=(be(h)&&Vt in h||y)&&(o==null?void 0:o.constAsDefaults)!=="never"&&!qy(h),x=Cn(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(p,[w]),required:(S=k.required)===null||S===void 0?void 0:S.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return Ry(b,w,x,a,l,k.required,o,C,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,S=[];Object.keys(p).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),S.push(h)}),be(f)&&S.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const C=Cn(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:s,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(p,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});Ry(g,h,C,a,l,S)})}return zy(t,g)}}function wD(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var p,d;let m=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",S=g==="requiredOnly",h=g==="all"||!w&&!S,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),x=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(m)&&(m=m.map((A,O)=>{const F=nf(k,Ji.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return Cn(e,F,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,parentDefaults:A,rawFormData:T,required:s,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const A=nf(k);if(w)m=r;else{const O=r.map((T,j)=>Cn(e,A,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:T,parentDefaults:ae(m,[j]),required:s,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));m=to(m,O,(S&&s||h)&&b)}}const _=Array.isArray(m)?m.length:0;if(w)return u&&!s?m:m??x;if(S&&!s)return m||void 0;let E;if(!k.minItems||rf(e,k,i,o)||y(e,k,i)||k.minItems<=_)E=m||!s&&!l?m:x;else{const A=m||[],O=nf(k,Ji.Invert),F=O.default,T=Array.from({length:k.minItems-_},()=>Cn(e,O,{parentDefaults:F,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,required:s,shouldMergeDefaultsIntoFormData:u}));E=A.concat(T)}return zy(t,E)}function Uy(e,t,r={},i){switch(pr(t)){case"object":return kD(e,t,r,i);case"array":return wD(e,t,r,i);default:return}}function By(e,t,r,i,a=!1,n,o,s){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Mt(e,t,i,r,o),u=Cn(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:o,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:s,requiredAsRoot:!0});if(l.type!=="object"&&be(l.default))return{...u,...r};if(be(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:c}=n||{},f=c==="useDefaultIfFormDataUndefined",p=af(e,l,i??l,r,n,o);return to(u,p,!0,f,!0)}return u}function Vy(e={}){return"widget"in pe(e)&&pe(e).widget!=="hidden"}function Hy(e,t,r={},i,a){if(r[uc]==="files")return!0;if(t.items){const n=Mt(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function SD(e,t,r={},i,a,n){const o=pe(r,a),{label:s=!0}=o;let l=!!s;if(l){const u=pr(t),c=!!t[hn];u==="array"&&(l=c||rf(e,t,i,n)||Hy(e,t,r,i,n)||Vy(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[uc]&&(l=!1),r!=null&&r[RO]&&(l=!1)}return l}function Wy(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var o=t[i],s=es(e,o);r(s,o)&&Rc(n,zi(o,e),s)}return n}function CD(e,t){return Wy(e,t,function(r,i){return uy(e,i)})}var Ky=Hg(function(e,t){return e==null?{}:CD(e,t)});function ED(e,t){if(t.length===0&&typeof e!="object")return e;const r=Ky(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function AD(e,t){const r=(a,n)=>typeof a!="object"||kt(a)||n&&!kt(a),i=(a,n=[],o=[[]])=>{const s=Object.keys(a);return s.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=o.map(f=>[...f,l]);u[lc]&&u[Ko]!==""?n.push(u[Ko]):i(u,n,c)}else l===Ko&&u!==""&&o.forEach(c=>{const f=ae(t,c),p=s.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(c)})}),n};return i(e)}function Gy(e){return Gi(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(Gy):!1}function xD(e,t){return t?t(e):Oy(e)}function OD(e,t,r={},i,a){function n(m){return be(m)}function o(m){return be(m)}function s(m,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:S,propertyNames:h}=m,y=new Set((g=m.required)!==null&&g!==void 0?g:[]);function C(_,E,A,O=!1){var F;const T=d(E,A,v[_]);if(!O&&be(T)){let j=o(E)?E:{};j.$ref!==void 0&&(j=Ja(j.$ref,r));const q=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(T).every(([Y,Z])=>!q.has(Y)&&Gy(Z)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,E]of Object.entries(b))C(_,E,k[_],y.has(_));let x;if(S!==void 0){x=[];const _=Object.entries(S).map(([A,O])=>[new RegExp(A),O]),E=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))if(!E.has(A)){const F=_.find(([T])=>T.test(A));F===void 0?x.push(A):C(A,F[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(x!==void 0)for(const E of x)C(E,_,k[E]);else{const E=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))E.has(A)||C(A,_,O)}}if(h!==void 0)for(const[_,E]of Object.entries(k))v[_]=E;return v}function l(m,k,v){const{items:g,additionalItems:b}=m;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)v.push(d(g[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(g,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function u(m,k,v){const{if:g,then:b,else:w}=m;if(g===void 0)return v;const h=(o(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(m,k,v,g){if(!Array.isArray(m)||ys(e,k,r,a))return g;const b=Ny(m,!0,r),w=Ki(e,r,v,b,0,dr(k),a),S=m[w],h=be(S)?wn(S,r,[]):b[w];return d(h,v,g)}function f(m,k,v){const{anyOf:g}=m;if(!Array.isArray(g))return v;if(k===void 0||Array.isArray(k)&&k.length===0||be(k)&&Object.keys(k).length===0){let b=v;for(const w of g)b=d(w,k,b);return b}return c(g,m,k,v)}function p(m,k,v){const{dependencies:g}=m;if(g===void 0||!n(k))return v;let b=v;for(const[w,S]of Object.entries(g))w in k&&!Array.isArray(S)&&(b=d(S,k,b));return b}function d(m,k,v){if(k===void 0||m===!1)return;if(m===!0||kt(m))return k;let g=m;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ja(b,r),k,v);if(w){g=xD(g,a);const y=g.allOf;if(y)for(let C=0;C<y.length;C++)v=d(y[C],k,v)}let S=f(g,k,c(g.oneOf,g,k,v));const h=pr(g);if(h==="object"){if(!n(k))return;S=s(g,k,n(S)?S:{})}else if(h==="array"){if(!Array.isArray(k))return;S=l(g,k,Array.isArray(S)?S:[])}else S===void 0&&(S=k);return p(g,k,u(g,k,S))}return d(t,i)}const mr=Symbol("no Value");function Jy(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(i=>Vt in i?i[Vt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:mr).filter(i=>i!==mr);return r.length>0?r:void 0}function _D(e,t){const r=Jy(e);if(!r||r.some(a=>Ue(a,t)))return mr;const i=ae(e,Zn,mr);return i!==mr&&r.some(a=>Ue(a,i))?i:r.length===1?r[0]:void 0}function of(e,t,r,i,a={},n){let o;if($e(r,ze)){const s={};if($e(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{$e(a,f)&&(s[f]=void 0)})}const l=Object.keys(ae(r,ze,{})),u={};l.forEach(c=>{const f=ae(a,c);let p=ae(i,[ze,c],{}),d=ae(r,[ze,c],{});$e(p,at)&&(p=Mt(e,p,t,f,n)),$e(d,at)&&(d=Mt(e,d,t,f,n));const m=ae(p,"type"),k=ae(d,"type");if(!m||m===k)if($e(s,c)&&delete s[c],k==="object"||k==="array"&&Array.isArray(f)){const v=of(e,t,d,p,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,Zn,mr),g=ae(p,Zn,mr);v!==mr&&v!==f&&(g===f?s[c]=v:ae(d,"readOnly")===!0&&(s[c]=void 0));const b=ae(d,Vt,mr),w=ae(p,Vt,mr);if(b!==mr&&b!==f&&(s[c]=w===f?b:void 0),$e(a,c)){const S=_D(d,f);S!==mr&&(s[c]=S)}}}),o={...typeof a=="string"||Array.isArray(a)?void 0:a,...s,...u}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let s=ae(i,"items"),l=ae(r,"items");if(typeof s=="object"&&typeof l=="object"&&!Array.isArray(s)&&!Array.isArray(l)){$e(s,at)&&(s=Mt(e,s,t,a,n)),$e(l,at)&&(l=Mt(e,l,t,a,n));const u=ae(s,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")o=a.reduce((p,d)=>{const m=of(e,t,l,s,d,n);return m!==void 0&&(f<0||p.length<f)&&p.push(m),p},[]);else{const p=Jy(l),d=p?a.filter(m=>p.some(k=>Ue(k,m))):a;o=f>0&&d.length>f?d.slice(0,f):d}}}else typeof s=="boolean"&&typeof l=="boolean"&&s===l&&(o=a)}return o}function En(e,t,r,i,a,n=[],o){if(at in t||nc in t||zr in t||ic in t){const l=Mt(e,t,i,a,o);if(n.findIndex(c=>Ue(c,l))===-1)return En(e,l,r,i,a,n.concat(l),o)}let s={[Ko]:r.replace(/^\./,"")};if(xe in t||je in t){const l=xe in t?t.oneOf:t.anyOf,u=dr(t),c=Ki(e,i,a,l,0,u,o),f=l[c];s={...s,...En(e,f,r,i,a,n,o)}}if(Li in t&&t[Li]!==!1){st(s,lc,!0);const l=Re(t[Li])?t[Li]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(s[c]=En(e,l,`${r}.${c}`,i,ae(a,[c]),n,o))}if(qi in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?s[f]=En(e,l[f],`${r}.${f}`,i,c,n,o):u?s[f]=En(e,u,`${r}.${f}`,i,c,n,o):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{s[f]=En(e,l,`${r}.${f}`,i,c,n,o)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});s[l]=En(e,u,`${r}.${l}`,i,ae(a,[l]),n,o)}return s}function PD(e,t,r="",i,a,n){return En(e,t,r,i,a,void 0,n)}class ID{constructor(t,r,i,a){(r==null?void 0:r[Fa])===Yo?this.rootSchema=Lc(r,ae(r,tt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=i,this.experimental_customMergeAllOf=a}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,i={},a){return!t||!r?!1:this.validator!==t||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return fD(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return eo(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return By(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return SD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return Ki(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return ps(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return gs(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Hy(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return rf(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return ys(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return OD(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Mt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return of(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return PD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function TD(e,t,r={},i){return new ID(e,t,r,i)}function ND(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const i=e.slice(5).split(";base64,");if(i.length!==2)throw new Error("File is invalid: dataURI must be base64");const[a,n]=i,[o,...s]=a.split(";"),l=o||"",u=decodeURI(((t=s.map(c=>c.split("=")).find(([c])=>c==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const c=atob(n),f=new Array(c.length);for(let d=0;d<c.length;d+=1)f[d]=c.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:l}),name:u}}catch(c){throw new Error(`File is invalid: ${c.message}`)}}function An(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Yy(e,t){const r=e<=0&&t<=0,i=e<0||t<0;if(!r&&i)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const a=new Date().getFullYear(),n=r?a+e:e,o=r?a+t:t;if(n>o)return Yy(t,e).reverse();const s=[];for(let l=n;l<=o;l+=1)s.push({value:l,label:An(l,2)});return s}function FD(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const o=i.findIndex(s=>s===`%${n+1}`);o>=0&&(i[o]=a)}),r=i.join("")}return r}function DD(e,t){return FD(e,t)}function vs(e,t=[],r){if(Array.isArray(e))return e.map(n=>vs(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function Xy(e,t,r=[]){const i=vs(e,r);return Array.isArray(t)?t.filter(a=>!Ue(a,i)):Ue(i,t)?void 0:t}function Yi(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function Zy(e,t=[],r=!1){const i=t.map((a,n)=>Yi(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function MD(e,t,r,i="indexed",a){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===a)return a;if(i==="realValue")return r?e.map(String):String(e);const o=Zy(e,t,r);return typeof o>"u"?a:o}function Qy(e,t,r=[]){const i=vs(e,r);if(!Gi(i)){const a=r.findIndex(s=>i===s.value),n=r.map(({value:s})=>s);return t.slice(0,a).concat(i,t.slice(a)).sort((s,l)=>+(n.indexOf(s)>n.indexOf(l)))}return t}function ev(e,t,r){if(e===""||!Array.isArray(t))return r;const i=t.find(n=>String(n.value)===e);if(i)return i.value;const a=Number(e);return!Number.isNaN(a)&&a>=0&&a<t.length?t[a].value:r}function Ar(e,t,r="indexed",i){return r!=="realValue"?vs(e,t,i):Array.isArray(e)?e.map(a=>ev(a,t,i)):ev(e,t,i)}function ro(e,t,r="indexed"){return r!=="realValue"?String(t):Gi(e)?"":String(typeof e=="object"?t:e)}var jD=1,LD=4;function bs(e){return Wa(e,jD|LD)}function qD(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Rc(e,t,r,i)}class tv{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let i=Array.isArray(t)&&t.length>0||typeof t=="string"?ae(this.errorSchema,t):this.errorSchema;return!i&&t&&(i={},qD(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?bs(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Dt);return Array.isArray(a)||(a=[],i[Dt]=a),Array.isArray(t)?st(i,Dt,[...new Set([...a,...t])]):st(i,Dt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return st(i,Dt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return st(r,Dt,[]),this}}var $D=200;function zD(e,t,r,i){var a=-1,n=Wc,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;t.length>=$D&&(n=Xa,o=!1,t=new ai(t));e:for(;++a<s;){var c=e[a],f=c;if(c=c!==0?c:0,o&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var RD=us(function(e,t){return Ya(e)?zD(e,Ka(t,1,Ya,!0)):[]});function UD(e,t){if(e==null)return{};var r=$i(Dc(e),function(i){return[i]});return t=Hc(t),Wy(e,r,function(i,a){return t(i,a[0])})}function rv(e,t){const r=yn(e),i=yn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Er(e);if(!r&&i)return Er(t);const a=Er(UD(e,(o,s)=>!Ue(o,ae(t,s)))),n=RD(Er(t),Er(e));return[...a,...n]}function BD(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:o,hour:s,minute:l,second:u}=e,c={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},p={type:"year",range:r,value:o},d=[];switch(i){case"MDY":d.push(f,c,p);break;case"DMY":d.push(c,f,p);break;case"YMD":default:d.push(p,f,c)}return t&&d.push({type:"hour",range:[0,23],value:s},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function VD(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 HD(e,t,r={},i=!0){const a={type:t||"text",...VD(e)};return r.inputType?a.type=r.inputType:t||(e.type==="number"?(a.type="number",i&&a.step===void 0&&(a.step="any")):e.type==="integer"&&(a.type="number",a.step===void 0&&(a.step=1))),["date","datetime-local","time","week","month"].includes(a.type)&&(e.formatMinimum!==void 0&&(a.min=e.formatMinimum),e.formatMaximum!==void 0&&(a.max=e.formatMaximum)),r.autocomplete&&(a.autoComplete=r.autocomplete),r.accept&&(a.accept=r.accept),a}function no(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const nv={props:{disabled:!1},submitText:"Submit",norender:!1};function sf(e={}){const t=pe(e);if(t!=null&&t[Go]){const r=t[Go];return{...nv,...r}}return nv}function he(e,t,r={}){const{templates:i}=t;if(e==="ButtonTemplates")return i[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(i,r[e])){const a=r[e];return i[a]}return r[e]||i[e]}var WD=0;function iv(e){var t=++WD;return hc(e)+t}function lf(){if(ae(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,iv("test-id-")),e.get(r)}})}var ks={exports:{}},rt={};/**
58
+ */var Lh;function YO(){return Lh||(Lh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=a(n,i(o)))}return n}function i(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=a(s,o));return s}function a(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(au)),au.exports}var XO=YO();const en=jr(XO);function we(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 ZO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),we(e.additionalItems)}function qh(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 $h(e){if(e==="")return;if(e===null)return null;const t=qh(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const i=Number(r);return typeof i=="number"&&!Number.isNaN(i)?i:e}const hn=Symbol("__additional_property"),Li="additionalProperties",zr="allOf",je="anyOf",Vt="const",Zn="default",su="dependencies",QO="enum",Dt="__errors",tt="$id",ou="if",qi="items",e_="_$junk_option_schema_id$_",Ks="$name",Oe="oneOf",lu="patternProperties",ze="properties",cu="readonly",zh="required",Gs="submitButtonOptions",at="$ref",Js=Symbol("__rjsf_ref"),uu=Symbol("__rjsf_ref_cycle"),Da="$schema",Rh="root",Uh="_",t_=["discriminator","propertyName"],Bh="formContext",r_="layoutGridLookupMap",Vh="__rjsf",fu=`${Vh}_additionalProperties`,Hh=`${Vh}_rootSchema`,n_="ui:field",du="ui:widget",gn="ui:options",pu="ui:globalOptions",i_="ui:definitions",a_="https://json-schema.org/draft/2019-09/schema",Ys="https://json-schema.org/draft/2020-12/schema";function pe(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===du&&we(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===gn&&we(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Wh(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=pe(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Kh=typeof global=="object"&&global&&global.Object===Object&&global,s_=typeof self=="object"&&self&&self.Object===Object&&self,Rr=Kh||s_||Function("return this")(),cr=Rr.Symbol,Gh=Object.prototype,o_=Gh.hasOwnProperty,l_=Gh.toString,Ma=cr?cr.toStringTag:void 0;function c_(e){var t=o_.call(e,Ma),r=e[Ma];try{e[Ma]=void 0;var i=!0}catch{}var a=l_.call(e);return i&&(t?e[Ma]=r:delete e[Ma]),a}var u_=Object.prototype,f_=u_.toString;function d_(e){return f_.call(e)}var p_="[object Null]",m_="[object Undefined]",Jh=cr?cr.toStringTag:void 0;function tn(e){return e==null?e===void 0?m_:p_:Jh&&Jh in Object(e)?c_(e):d_(e)}function Yh(e,t){return function(r){return e(t(r))}}var Xs=Yh(Object.getPrototypeOf,Object);function ur(e){return e!=null&&typeof e=="object"}var h_="[object Object]",g_=Function.prototype,y_=Object.prototype,Xh=g_.toString,v_=y_.hasOwnProperty,b_=Xh.call(Object);function yn(e){if(!ur(e)||tn(e)!=h_)return!1;var t=Xs(e);if(t===null)return!0;var r=v_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xh.call(r)==b_}function mu(e){const t={[Dt]:[],addError(r){this[Dt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:mu(i)}),t);if(yn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:mu(r[a])}),t)}return t}var Tt=Array.isArray,k_="[object Symbol]";function ja(e){return typeof e=="symbol"||ur(e)&&tn(e)==k_}var w_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S_=/^\w*$/;function hu(e,t){if(Tt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ja(e)?!0:S_.test(e)||!w_.test(e)||t!=null&&e in Object(t)}function Re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var C_="[object AsyncFunction]",E_="[object Function]",A_="[object GeneratorFunction]",x_="[object Proxy]";function La(e){if(!Re(e))return!1;var t=tn(e);return t==E_||t==A_||t==C_||t==x_}var gu=Rr["__core-js_shared__"],Zh=(function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function O_(e){return!!Zh&&Zh in e}var __=Function.prototype,P_=__.toString;function Qn(e){if(e!=null){try{return P_.call(e)}catch{}try{return e+""}catch{}}return""}var I_=/[\\^$.*+?()[\]{}|]/g,T_=/^\[object .+?Constructor\]$/,N_=Function.prototype,F_=Object.prototype,D_=N_.toString,M_=F_.hasOwnProperty,j_=RegExp("^"+D_.call(M_).replace(I_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L_(e){if(!Re(e)||O_(e))return!1;var t=La(e)?j_:T_;return t.test(Qn(e))}function q_(e,t){return e==null?void 0:e[t]}function ei(e,t){var r=q_(e,t);return L_(r)?r:void 0}var qa=ei(Object,"create");function $_(){this.__data__=qa?qa(null):{},this.size=0}function z_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var R_="__lodash_hash_undefined__",U_=Object.prototype,B_=U_.hasOwnProperty;function V_(e){var t=this.__data__;if(qa){var r=t[e];return r===R_?void 0:r}return B_.call(t,e)?t[e]:void 0}var H_=Object.prototype,W_=H_.hasOwnProperty;function K_(e){var t=this.__data__;return qa?t[e]!==void 0:W_.call(t,e)}var G_="__lodash_hash_undefined__";function J_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qa&&t===void 0?G_:t,this}function ti(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ti.prototype.clear=$_,ti.prototype.delete=z_,ti.prototype.get=V_,ti.prototype.has=K_,ti.prototype.set=J_;function Y_(){this.__data__=[],this.size=0}function $a(e,t){return e===t||e!==e&&t!==t}function Zs(e,t){for(var r=e.length;r--;)if($a(e[r][0],t))return r;return-1}var X_=Array.prototype,Z_=X_.splice;function Q_(e){var t=this.__data__,r=Zs(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Z_.call(t,r,1),--this.size,!0}function eP(e){var t=this.__data__,r=Zs(t,e);return r<0?void 0:t[r][1]}function tP(e){return Zs(this.__data__,e)>-1}function rP(e,t){var r=this.__data__,i=Zs(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}rn.prototype.clear=Y_,rn.prototype.delete=Q_,rn.prototype.get=eP,rn.prototype.has=tP,rn.prototype.set=rP;var za=ei(Rr,"Map");function nP(){this.size=0,this.__data__={hash:new ti,map:new(za||rn),string:new ti}}function iP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qs(e,t){var r=e.__data__;return iP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function aP(e){var t=Qs(this,e).delete(e);return this.size-=t?1:0,t}function sP(e){return Qs(this,e).get(e)}function oP(e){return Qs(this,e).has(e)}function lP(e,t){var r=Qs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}nn.prototype.clear=nP,nn.prototype.delete=aP,nn.prototype.get=sP,nn.prototype.has=oP,nn.prototype.set=lP;var cP="Expected a function";function yu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(cP);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],n=r.cache;if(n.has(a))return n.get(a);var s=e.apply(this,i);return r.cache=n.set(a,s)||n,s};return r.cache=new(yu.Cache||nn),r}yu.Cache=nn;var uP=500;function fP(e){var t=yu(e,function(i){return r.size===uP&&r.clear(),i}),r=t.cache;return t}var dP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pP=/\\(\\)?/g,Qh=fP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dP,function(r,i,a,n){t.push(a?n.replace(pP,"$1"):i||r)}),t});function $i(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var eg=cr?cr.prototype:void 0,tg=eg?eg.toString:void 0;function rg(e){if(typeof e=="string")return e;if(Tt(e))return $i(e,rg)+"";if(ja(e))return tg?tg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vu(e){return e==null?"":rg(e)}function zi(e,t){return Tt(e)?e:hu(e,t)?[e]:Qh(vu(e))}function vn(e){if(typeof e=="string"||ja(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function eo(e,t){t=zi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[vn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:eo(e,t);return i===void 0?r:i}const{getOwnPropertyNames:ng,getOwnPropertySymbols:mP}=Object,{hasOwnProperty:hP}=Object.prototype;function bu(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function to(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,s=n.get(r),o=n.get(i);if(s&&o)return s===i&&o===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function ig(e){const t=mP(e);return t.length?ng(e).concat(t):ng(e)}const gP=Object.hasOwn||((e,t)=>hP.call(e,t)),yP="__v",vP="__o",bP="_owner",{getOwnPropertyDescriptor:ag,keys:sg}=Object,ri=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function kP(e,t){return e===t}function wP(e,t){return e.byteLength===t.byteLength&&ro(new Uint8Array(e),new Uint8Array(t))}function SP(e,t,r){let i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function CP(e,t){return e.byteLength===t.byteLength&&ro(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function EP(e,t){return ri(e.getTime(),t.getTime())}function AP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function og(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.entries();let s,o,l=0;for(;(s=n.next())&&!s.done;){const c=t.entries();let u=0,f=0;for(;(o=c.next())&&!o.done;){if(a[f]){f++;continue}const p=s.value,d=o.value;if(r.equals(p[0],d[0],l,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){u=a[f]=1;break}f++}if(!u)return!1;l++}return!0}function xP(e,t,r){const i=sg(e);let a=i.length;if(sg(t).length!==a)return!1;for(;a-- >0;)if(!cg(e,t,r,i[a]))return!1;return!0}function Ra(e,t,r){const i=ig(e);let a=i.length;if(ig(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!cg(e,t,r,n)||(s=ag(e,n),o=ag(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function OP(e,t){return ri(e.valueOf(),t.valueOf())}function _P(e,t){return e.source===t.source&&e.flags===t.flags}function lg(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.values();let s,o;for(;(s=n.next())&&!s.done;){const l=t.values();let c=0,u=0;for(;(o=l.next())&&!o.done;){if(!a[u]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){c=a[u]=1;break}u++}if(!c)return!1}return!0}function ro(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 PP(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 cg(e,t,r,i){return(i===bP||i===vP||i===yP)&&(e.$$typeof||t.$$typeof)?!0:gP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const IP=Object.prototype.toString;function TP(e){const t=MP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:c,getUnsupportedCustomComparator:u}=e;return function(p,d,h){if(p===d)return!0;if(p==null||d==null)return!1;const v=typeof p;if(v!==typeof d)return!1;if(v!=="object")return v==="number"||v==="bigint"?s(p,d,h):v==="function"?a(p,d,h):!1;const k=p.constructor;if(k!==d.constructor)return!1;if(k===Object)return o(p,d,h);if(k===Array)return r(p,d,h);if(k===Date)return i(p,d,h);if(k===RegExp)return l(p,d,h);if(k===Map)return n(p,d,h);if(k===Set)return c(p,d,h);if(k===Promise)return!1;if(Array.isArray(p))return r(p,d,h);const g=IP.call(p),b=t[g];if(b)return b(p,d,h);const w=u&&u(p,d,h,g);return w?w(p,d,h):!1}}function NP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:wP,areArraysEqual:r?Ra:SP,areDataViewsEqual:CP,areDatesEqual:EP,areErrorsEqual:AP,areFunctionsEqual:kP,areMapsEqual:r?bu(og,Ra):og,areNumbersEqual:ri,areObjectsEqual:r?Ra:xP,arePrimitiveWrappersEqual:OP,areRegExpsEqual:_P,areSetsEqual:r?bu(lg,Ra):lg,areTypedArraysEqual:r?bu(ro,Ra):ro,areUrlsEqual:PP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=to(i.areArraysEqual),n=to(i.areMapsEqual),s=to(i.areObjectsEqual),o=to(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function FP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function DP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:c=e?new WeakMap:void 0,meta:u}=r();return t(o,l,{cache:c,equals:i,meta:u,strict:a})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};const n={cache:void 0,equals:i,meta:void 0,strict:a};return function(o,l){return t(o,l,n)}}function MP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:p,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":c,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":s,"[object Number]":c,"[object Object]":(h,v,k)=>typeof h.then!="function"&&typeof v.then!="function"&&l(h,v,k),"[object RegExp]":u,"[object Set]":f,"[object String]":c,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}an(),an({strict:!0}),an({circular:!0}),an({circular:!0,strict:!0}),an({createInternalComparator:()=>ri}),an({strict:!0,createInternalComparator:()=>ri}),an({circular:!0,createInternalComparator:()=>ri}),an({circular:!0,createInternalComparator:()=>ri,strict:!0});function an(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=NP(e),s=TP(n),o=r?r(s):FP(s);return DP({circular:t,comparator:s,createState:i,equals:o,strict:a})}const Ue=an({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Ua={exports:{}},ku,ug;function fg(){if(ug)return ku;ug=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),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function s(C){let A="",O=0,F=0;for(F=0;F<C.length;F++)if(O=C[F].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=C[F];break}for(F+=1;F<C.length;F++){if(O=C[F].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=C[F]}return A}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(C){return C.length=0,!0}function c(C,A,O){if(C.length){const F=s(C);if(F!=="")A.push(F);else return O.error=!0,!1;C.length=0}return!0}function u(C){let A=0;const O={error:!1,address:"",zone:""},F=[],N=[];let M=!1,q=!1,H=c;for(let J=0;J<C.length;J++){const X=C[J];if(!(X==="["||X==="]"))if(X===":"){if(M===!0&&(q=!0),!H(N,F,O))break;if(++A>7){O.error=!0;break}J>0&&C[J-1]===":"&&(M=!0),F.push(":");continue}else if(X==="%"){if(!H(N,F,O))break;H=l}else{N.push(X);continue}}return N.length&&(H===l?O.zone=N.join(""):q?F.push(N.join("")):F.push(s(N))),O.address=F.join(""),O}function f(C){if(p(C,":")<2)return{host:C,isIPV6:!1};const A=u(C);if(A.error)return{host:C,isIPV6:!1};{let O=A.address,F=A.address;return A.zone&&(O+="%"+A.zone,F+="%25"+A.zone),{host:O,isIPV6:!0,escapedHost:F}}}function p(C,A){let O=0;for(let F=0;F<C.length;F++)C[F]===A&&O++;return O}function d(C){let A=C;const O=[];let F=-1,N=0;for(;N=A.length;){if(N===1){if(A===".")break;if(A==="/"){O.push("/");break}else{O.push(A);break}}else if(N===2){if(A[0]==="."){if(A[1]===".")break;if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){O.push("/");break}}else if(N===3&&A==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(A[0]==="."){if(A[1]==="."){if(A[2]==="/"){A=A.slice(3);continue}}else if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){if(A[2]==="/"){A=A.slice(2);continue}else if(A[2]==="."&&A[3]==="/"){A=A.slice(3),O.length!==0&&O.pop();continue}}if((F=A.indexOf("/",1))===-1){O.push(A);break}else O.push(A.slice(0,F)),A=A.slice(F)}return O.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},v=/[@/?#:]/g,k=/[@/?#]/g;function g(C,A){const O=A?k:v;return O.lastIndex=0,C.replace(O,F=>h[F])}function b(C,A=!1){if(C.indexOf("%")===-1)return C;let O="";for(let F=0;F<C.length;F++){if(C[F]==="%"&&F+2<C.length){const N=C.slice(F+1,F+3);if(r(N)){const M=N.toUpperCase(),q=String.fromCharCode(parseInt(M,16));A&&i(q)?O+=q:O+="%"+M,F+=2;continue}}O+=C[F]}return O}const w=new Array(256);{const C="0123456789ABCDEF";for(let A=0;A<256;A++)w[A]="%"+C[A>>4]+C[A&15]}function E(C){return C>=48&&C<=57||C>=65&&C<=90||C>=97&&C<=122||C===42||C===43||C===45||C===46||C===47||C===64||C===95}function m(C){return C<2048?w[192|C>>6]+w[128|C&63]:C<65536?w[224|C>>12]+w[128|C>>6&63]+w[128|C&63]:w[240|C>>18]+w[128|C>>12&63]+w[128|C>>6&63]+w[128|C&63]}function y(C){let A="";for(let O=0;O<C.length;O++){const F=C[O];if(F==="%"&&O+2<C.length){const N=C.slice(O+1,O+3);if(r(N)){const M=N.toUpperCase(),q=String.fromCharCode(parseInt(M,16));q!=="."&&i(q)?A+=q:A+="%"+M,O+=2;continue}}if(a(F))A+=F;else{const N=C.charCodeAt(O);if(N<128)A+=E(N)?F:w[N];else if(N<55296||N>57343)A+=m(N);else if(N<=56319&&O+1<C.length){const M=C.charCodeAt(O+1);M>=56320&&M<=57343?(A+=m(65536+(N-55296<<10)+(M-56320)),O++):A+=m(65533)}else A+=m(65533)}}return A}function S(C){let A="";for(let O=0;O<C.length;O++){const F=C[O];if(F==="%"&&O+2<C.length){const N=C.slice(O+1,O+3);if(r(N)){const M=N.toUpperCase(),q=String.fromCharCode(parseInt(M,16));i(q)?A+=q:A+="%"+M,O+=2;continue}}if(n(F))A+=F;else{const N=C.charCodeAt(O);if(N<128)A+=E(N)?F:w[N];else if(N<55296||N>57343)A+=m(N);else if(N<=56319&&O+1<C.length){const M=C.charCodeAt(O+1);M>=56320&&M<=57343?(A+=m(65536+(N-55296<<10)+(M-56320)),O++):A+=m(65533)}else A+=m(65533)}}return A}function x(C){let A="";for(let O=0;O<C.length;O++){const F=C[O];if(F==="%"&&O+2<C.length){const M=C.slice(O+1,O+3);if(r(M)){A+="%"+M.toUpperCase(),O+=2;continue}}const N=C.charCodeAt(O);if(N<128)A+=E(N)?F:w[N];else if(N<55296||N>57343)A+=m(N);else if(N<=56319&&O+1<C.length){const M=C.charCodeAt(O+1);M>=56320&&M<=57343?(A+=m(65536+(N-55296<<10)+(M-56320)),O++):A+=m(65533)}else A+=m(65533)}return A}function _(C){const A=[];if(C.userinfo!==void 0&&(A.push(C.userinfo),A.push("@")),C.host!==void 0){let O=unescape(C.host);if(!t(O)){const F=f(O);F.isIPV6===!0?O=`[${F.escapedHost}]`:O=g(O,!1)}A.push(O)}return(typeof C.port=="number"||typeof C.port=="string")&&(A.push(":"),A.push(String(C.port))),A.length?A.join(""):void 0}return ku={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:x,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},ku}var wu,dg;function jP(){if(dg)return wu;dg=1;const{isUUID:e}=fg(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(m){return r.indexOf(m)!==-1}function a(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function s(m){const y=String(m.scheme).toLowerCase()==="https";return(m.port===(y?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function o(m){return m.secure=a(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function l(m){if((m.port===(a(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[y,S]=m.resourceName.split("?");m.path=y&&y!=="/"?y:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function c(m,y){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const x=y.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const _=`${x}:${y.nid||m.nid}`,C=E(_);m.path=void 0,C&&(m=C.parse(m,y))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,y){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=y.scheme||m.scheme||"urn",x=m.nid.toLowerCase(),_=`${S}:${y.nid||x}`,C=E(_);C&&(m=C.serialize(m,y));const A=m,O=m.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(m,y){const S=m;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const y=m;return y.nss=(m.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},v={scheme:"ws",domainHost:!0,parse:o,serialize:l},k={scheme:"wss",domainHost:v.domainHost,parse:v.parse,serialize:v.serialize},w={http:d,https:h,ws:v,wss:k,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return wu={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},wu}var pg;function LP(){if(pg)return Ua.exports;pg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:c}=fg(),{SCHEMES:u,getSchemeHandler:f}=jP();function p(A,O){return typeof A=="string"?A=S(A,O):typeof A=="object"&&(A=y(k(A,O),O)),A}function d(A,O,F){const N=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:M,malformedAuthorityOrPort:q}=m(A,N),{parsed:H,malformedAuthorityOrPort:J}=m(O,N);if(q||J)throw new Error(M.error||H.error||"URI is malformed.");const X=h(M,H,N,!0);return N.skipEscape=!0,k(X,N)}function h(A,O,F,N){const M={};return N||(A=y(k(A,F),F),O=y(k(O,F),F)),F=F||{},!F.tolerant&&O.scheme?(M.scheme=O.scheme,M.userinfo=O.userinfo,M.host=O.host,M.port=O.port,M.path=t(O.path||""),M.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(M.userinfo=O.userinfo,M.host=O.host,M.port=O.port,M.path=t(O.path||""),M.query=O.query):(O.path?(O.path[0]==="/"?M.path=t(O.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?M.path="/"+O.path:A.path?M.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+O.path:M.path=O.path,M.path=t(M.path)),M.query=O.query):(M.path=A.path,O.query!==void 0?M.query=O.query:M.query=A.query),M.userinfo=A.userinfo,M.host=A.host,M.port=A.port),M.scheme=A.scheme),M.fragment=O.fragment,M}function v(A,O,F){const N=_(A,F),M=_(O,F);return N!==void 0&&M!==void 0&&N.toLowerCase()===M.toLowerCase()}function k(A,O){const F={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},N=Object.assign({},O),M=[],q=f(N.scheme||F.scheme);q&&q.serialize&&q.serialize(F,N),F.path!==void 0&&(N.skipEscape?F.path=i(F.path):(F.path=s(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),N.reference!=="suffix"&&F.scheme&&M.push(F.scheme,":");const H=r(F);if(H!==void 0&&(N.reference!=="suffix"&&M.push("//"),M.push(H),F.path&&F.path[0]!=="/"&&M.push("/")),F.path!==void 0){let J=F.path;!N.absolutePath&&(!q||!q.absolutePath)&&(J=t(J)),H===void 0&&J[0]==="/"&&J[1]==="/"&&(J="/%2F"+J.slice(2)),M.push(J)}return F.query!==void 0&&M.push("?",F.query),F.fragment!==void 0&&M.push("#",F.fragment),M.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(A,O){if(O[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function m(A,O){const F=Object.assign({},O),N={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let M=!1,q=!1;F.reference==="suffix"&&(F.scheme?A=F.scheme+":"+A:A="//"+A);const H=A.match(b);H!==null&&H[1].indexOf("\\")!==-1&&(N.error="URI authority must not contain a literal backslash.",M=!0);const J=A.match(w);if(J!==null){const P=J[1],j=P.replace(/[\t\n\r]/g,"");j.length>=2&&(j.slice(0,2)!=="//"?(N.error=N.error||"URI authority must not contain a literal backslash.",M=!0):P.length!==j.length&&(N.error=N.error||"URI authority introducer must not contain whitespace.",M=!0))}const X=A.match(g);if(X){N.scheme=X[1]===void 0?void 0:X[1].toLowerCase(),N.userinfo=X[3],N.host=X[4],N.port=parseInt(X[5],10),N.path=X[6]||"",N.query=X[7],N.fragment=X[8],isNaN(N.port)&&(N.port=X[5]);const P=E(N,X);if(P!==void 0&&(N.error=N.error||P,M=!0),N.host)if(l(N.host)===!1){const T=e(N.host);N.host=T.host.toLowerCase(),q=T.isIPV6}else q=!0;N.scheme===void 0&&N.userinfo===void 0&&N.host===void 0&&N.port===void 0&&N.query===void 0&&!N.path?N.reference="same-document":N.scheme===void 0?N.reference="relative":N.fragment===void 0?N.reference="absolute":N.reference="uri",F.reference&&F.reference!=="suffix"&&F.reference!==N.reference&&(N.error=N.error||"URI is not a "+F.reference+" reference.");const j=f(F.scheme||N.scheme);if(!F.unicodeSupport&&(!j||!j.unicodeSupport)&&N.host&&(F.domainHost||j&&j.domainHost)&&q===!1&&c(N.host))try{N.host=new URL("http://"+N.host).hostname}catch(U){N.error=N.error||"Host's domain name can not be converted to ASCII: "+U}(!j||j&&!j.skipNormalize)&&(A.indexOf("%")!==-1&&(N.scheme!==void 0&&(N.scheme=unescape(N.scheme)),N.host!==void 0&&(N.host=o(unescape(N.host),q))),N.path&&(N.path=a(N.path)),N.query&&(N.query=n(N.query)),N.fragment&&(N.fragment=n(N.fragment))),j&&j.parse&&j.parse(N,F)}else N.error=N.error||"URI can not be parsed.";return{parsed:N,malformedAuthorityOrPort:M}}function y(A,O){return m(A,O).parsed}function S(A,O){return x(A,O).normalized}function x(A,O){const{parsed:F,malformedAuthorityOrPort:N}=m(A,O);return{normalized:N?A:k(F,O),malformedAuthorityOrPort:N}}function _(A,O){if(typeof A=="string"){const{normalized:F,malformedAuthorityOrPort:N}=x(A,O);return N?void 0:F}if(typeof A=="object")return k(A,O)}const C={SCHEMES:u,normalize:p,resolve:d,resolveComponent:h,equal:v,serialize:k,parse:y};return Ua.exports=C,Ua.exports.default=C,Ua.exports.fastUri=C,Ua.exports}var qP=LP();const Su=jr(qP);var Ba={},mg;function $P(){if(mg)return Ba;mg=1;var e=/~/,t=/~[01]/g;function r(c){switch(c){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+c)}function i(c){return e.test(c)?c.replace(t,r):c}function a(c,u,f){for(var p,d,h=1,v=u.length;h<v;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return c;if(p=i(u[h++]),d=v>h,typeof c[p]>"u"&&(Array.isArray(c)&&p==="-"&&(p=c.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?c[p]=[]:c[p]={})),!d)break;c=c[p]}var k=c[p];return f===void 0?delete c[p]:c[p]=f,k}function n(c){if(typeof c=="string"){if(c=c.split("/"),c[0]==="")return c;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(c)){for(const u of c)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return c}throw new Error("Invalid JSON pointer.")}function s(c,u){if(typeof c!="object")throw new Error("Invalid input object.");u=n(u);var f=u.length;if(f===1)return c;for(var p=1;p<f;){if(c=c[i(u[p++])],f===p)return c;if(typeof c!="object"||c===null)return}}function o(c,u,f){if(typeof c!="object")throw new Error("Invalid input object.");if(u=n(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return a(c,u,f)}function l(c){var u=n(c);return{get:function(f){return s(f,u)},set:function(f,p){return o(f,u,p)}}}return Ba.get=s,Ba.set=o,Ba.compile=l,Ba}var zP=$P();const Cu=jr(zP);var RP=Object.prototype;function no(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||RP;return e===r}var UP=Yh(Object.keys,Object),BP=Object.prototype,VP=BP.hasOwnProperty;function hg(e){if(!no(e))return UP(e);var t=[];for(var r in Object(e))VP.call(e,r)&&r!="constructor"&&t.push(r);return t}var Eu=ei(Rr,"DataView"),Au=ei(Rr,"Promise"),Ri=ei(Rr,"Set"),xu=ei(Rr,"WeakMap"),gg="[object Map]",HP="[object Object]",yg="[object Promise]",vg="[object Set]",bg="[object WeakMap]",kg="[object DataView]",WP=Qn(Eu),KP=Qn(za),GP=Qn(Au),JP=Qn(Ri),YP=Qn(xu),fr=tn;(Eu&&fr(new Eu(new ArrayBuffer(1)))!=kg||za&&fr(new za)!=gg||Au&&fr(Au.resolve())!=yg||Ri&&fr(new Ri)!=vg||xu&&fr(new xu)!=bg)&&(fr=function(e){var t=tn(e),r=t==HP?e.constructor:void 0,i=r?Qn(r):"";if(i)switch(i){case WP:return kg;case KP:return gg;case GP:return yg;case JP:return vg;case YP:return bg}return t});var XP="[object Arguments]";function wg(e){return ur(e)&&tn(e)==XP}var Sg=Object.prototype,ZP=Sg.hasOwnProperty,QP=Sg.propertyIsEnumerable,Ui=wg((function(){return arguments})())?wg:function(e){return ur(e)&&ZP.call(e,"callee")&&!QP.call(e,"callee")},eI=9007199254740991;function Ou(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eI}function ni(e){return e!=null&&Ou(e.length)&&!La(e)}function tI(){return!1}var Cg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Eg=Cg&&typeof module=="object"&&module&&!module.nodeType&&module,rI=Eg&&Eg.exports===Cg,Ag=rI?Rr.Buffer:void 0,nI=Ag?Ag.isBuffer:void 0,ii=nI||tI,iI="[object Arguments]",aI="[object Array]",sI="[object Boolean]",oI="[object Date]",lI="[object Error]",cI="[object Function]",uI="[object Map]",fI="[object Number]",dI="[object Object]",pI="[object RegExp]",mI="[object Set]",hI="[object String]",gI="[object WeakMap]",yI="[object ArrayBuffer]",vI="[object DataView]",bI="[object Float32Array]",kI="[object Float64Array]",wI="[object Int8Array]",SI="[object Int16Array]",CI="[object Int32Array]",EI="[object Uint8Array]",AI="[object Uint8ClampedArray]",xI="[object Uint16Array]",OI="[object Uint32Array]",ht={};ht[bI]=ht[kI]=ht[wI]=ht[SI]=ht[CI]=ht[EI]=ht[AI]=ht[xI]=ht[OI]=!0,ht[iI]=ht[aI]=ht[yI]=ht[sI]=ht[vI]=ht[oI]=ht[lI]=ht[cI]=ht[uI]=ht[fI]=ht[dI]=ht[pI]=ht[mI]=ht[hI]=ht[gI]=!1;function _I(e){return ur(e)&&Ou(e.length)&&!!ht[tn(e)]}function _u(e){return function(t){return e(t)}}var xg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Va=xg&&typeof module=="object"&&module&&!module.nodeType&&module,PI=Va&&Va.exports===xg,Pu=PI&&Kh.process,Bi=(function(){try{var e=Va&&Va.require&&Va.require("util").types;return e||Pu&&Pu.binding&&Pu.binding("util")}catch{}})(),Og=Bi&&Bi.isTypedArray,Ha=Og?_u(Og):_I,II="[object Map]",TI="[object Set]",NI=Object.prototype,FI=NI.hasOwnProperty;function kt(e){if(e==null)return!0;if(ni(e)&&(Tt(e)||typeof e=="string"||typeof e.splice=="function"||ii(e)||Ha(e)||Ui(e)))return!e.length;var t=fr(e);if(t==II||t==TI)return!e.size;if(no(e))return!hg(e).length;for(var r in e)if(FI.call(e,r))return!1;return!0}function DI(){this.__data__=new rn,this.size=0}function MI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function jI(e){return this.__data__.get(e)}function LI(e){return this.__data__.has(e)}var qI=200;function $I(e,t){var r=this.__data__;if(r instanceof rn){var i=r.__data__;if(!za||i.length<qI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new nn(i)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new rn(e);this.size=t.size}Cr.prototype.clear=DI,Cr.prototype.delete=MI,Cr.prototype.get=jI,Cr.prototype.has=LI,Cr.prototype.set=$I;function Iu(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var io=(function(){try{var e=ei(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Tu(e,t,r){t=="__proto__"&&io?io(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zI=Object.prototype,RI=zI.hasOwnProperty;function Nu(e,t,r){var i=e[t];(!(RI.call(e,t)&&$a(i,r))||r===void 0&&!(t in e))&&Tu(e,t,r)}function Vi(e,t,r,i){var a=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],l=void 0;l===void 0&&(l=e[o]),a?Tu(r,o,l):Nu(r,o,l)}return r}function _g(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var UI=9007199254740991,BI=/^(?:0|[1-9]\d*)$/;function ao(e,t){var r=typeof e;return t=t??UI,!!t&&(r=="number"||r!="symbol"&&BI.test(e))&&e>-1&&e%1==0&&e<t}var VI=Object.prototype,HI=VI.hasOwnProperty;function Pg(e,t){var r=Tt(e),i=!r&&Ui(e),a=!r&&!i&&ii(e),n=!r&&!i&&!a&&Ha(e),s=r||i||a||n,o=s?_g(e.length,String):[],l=o.length;for(var c in e)(t||HI.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ao(c,l)))&&o.push(c);return o}function Er(e){return ni(e)?Pg(e):hg(e)}function WI(e,t){return e&&Vi(t,Er(t),e)}function KI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var GI=Object.prototype,JI=GI.hasOwnProperty;function YI(e){if(!Re(e))return KI(e);var t=no(e),r=[];for(var i in e)i=="constructor"&&(t||!JI.call(e,i))||r.push(i);return r}function Wa(e){return ni(e)?Pg(e,!0):YI(e)}function XI(e,t){return e&&Vi(t,Wa(t),e)}var Ig=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,Tg=Ig&&typeof module=="object"&&module&&!module.nodeType&&module,ZI=Tg&&Tg.exports===Ig,Ng=ZI?Rr.Buffer:void 0,Fg=Ng?Ng.allocUnsafe:void 0;function Dg(e,t){if(t)return e.slice();var r=e.length,i=Fg?Fg(r):new e.constructor(r);return e.copy(i),i}function Fu(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function QI(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var s=e[r];t(s,r,e)&&(n[a++]=s)}return n}function Mg(){return[]}var eT=Object.prototype,tT=eT.propertyIsEnumerable,jg=Object.getOwnPropertySymbols,Du=jg?function(e){return e==null?[]:(e=Object(e),QI(jg(e),function(t){return tT.call(e,t)}))}:Mg;function rT(e,t){return Vi(e,Du(e),t)}function Mu(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var nT=Object.getOwnPropertySymbols,Lg=nT?function(e){for(var t=[];e;)Mu(t,Du(e)),e=Xs(e);return t}:Mg;function iT(e,t){return Vi(e,Lg(e),t)}function qg(e,t,r){var i=t(e);return Tt(e)?i:Mu(i,r(e))}function ju(e){return qg(e,Er,Du)}function Lu(e){return qg(e,Wa,Lg)}var aT=Object.prototype,sT=aT.hasOwnProperty;function oT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&sT.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var so=Rr.Uint8Array;function qu(e){var t=new e.constructor(e.byteLength);return new so(t).set(new so(e)),t}function lT(e,t){var r=t?qu(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var cT=/\w*$/;function uT(e){var t=new e.constructor(e.source,cT.exec(e));return t.lastIndex=e.lastIndex,t}var $g=cr?cr.prototype:void 0,zg=$g?$g.valueOf:void 0;function fT(e){return zg?Object(zg.call(e)):{}}function Rg(e,t){var r=t?qu(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var dT="[object Boolean]",pT="[object Date]",mT="[object Map]",hT="[object Number]",gT="[object RegExp]",yT="[object Set]",vT="[object String]",bT="[object Symbol]",kT="[object ArrayBuffer]",wT="[object DataView]",ST="[object Float32Array]",CT="[object Float64Array]",ET="[object Int8Array]",AT="[object Int16Array]",xT="[object Int32Array]",OT="[object Uint8Array]",_T="[object Uint8ClampedArray]",PT="[object Uint16Array]",IT="[object Uint32Array]";function TT(e,t,r){var i=e.constructor;switch(t){case kT:return qu(e);case dT:case pT:return new i(+e);case wT:return lT(e,r);case ST:case CT:case ET:case AT:case xT:case OT:case _T:case PT:case IT:return Rg(e,r);case mT:return new i;case hT:case vT:return new i(e);case gT:return uT(e);case yT:return new i;case bT:return fT(e)}}var Ug=Object.create,Bg=(function(){function e(){}return function(t){if(!Re(t))return{};if(Ug)return Ug(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Vg(e){return typeof e.constructor=="function"&&!no(e)?Bg(Xs(e)):{}}var NT="[object Map]";function FT(e){return ur(e)&&fr(e)==NT}var Hg=Bi&&Bi.isMap,DT=Hg?_u(Hg):FT,MT="[object Set]";function jT(e){return ur(e)&&fr(e)==MT}var Wg=Bi&&Bi.isSet,LT=Wg?_u(Wg):jT,qT=1,$T=2,zT=4,Kg="[object Arguments]",RT="[object Array]",UT="[object Boolean]",BT="[object Date]",VT="[object Error]",Gg="[object Function]",HT="[object GeneratorFunction]",WT="[object Map]",KT="[object Number]",Jg="[object Object]",GT="[object RegExp]",JT="[object Set]",YT="[object String]",XT="[object Symbol]",ZT="[object WeakMap]",QT="[object ArrayBuffer]",eN="[object DataView]",tN="[object Float32Array]",rN="[object Float64Array]",nN="[object Int8Array]",iN="[object Int16Array]",aN="[object Int32Array]",sN="[object Uint8Array]",oN="[object Uint8ClampedArray]",lN="[object Uint16Array]",cN="[object Uint32Array]",mt={};mt[Kg]=mt[RT]=mt[QT]=mt[eN]=mt[UT]=mt[BT]=mt[tN]=mt[rN]=mt[nN]=mt[iN]=mt[aN]=mt[WT]=mt[KT]=mt[Jg]=mt[GT]=mt[JT]=mt[YT]=mt[XT]=mt[sN]=mt[oN]=mt[lN]=mt[cN]=!0,mt[VT]=mt[Gg]=mt[ZT]=!1;function Ka(e,t,r,i,a,n){var s,o=t&qT,l=t&$T,c=t&zT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Re(e))return e;var u=Tt(e);if(u){if(s=oT(e),!o)return Fu(e,s)}else{var f=fr(e),p=f==Gg||f==HT;if(ii(e))return Dg(e,o);if(f==Jg||f==Kg||p&&!a){if(s=l||p?{}:Vg(e),!o)return l?iT(e,XI(s,e)):rT(e,WI(s,e))}else{if(!mt[f])return a?e:{};s=TT(e,f,o)}}n||(n=new Cr);var d=n.get(e);if(d)return d;n.set(e,s),LT(e)?e.forEach(function(k){s.add(Ka(k,t,r,k,e,n))}):DT(e)&&e.forEach(function(k,g){s.set(g,Ka(k,t,r,g,e,n))});var h=c?l?Lu:ju:l?Wa:Er,v=u?void 0:h(e);return Iu(v||e,function(k,g){v&&(g=k,k=e[g]),Nu(s,g,Ka(k,t,r,g,e,n))}),s}function Yg(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function uN(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}function fN(e,t){return t.length<2?e:eo(e,uN(t,0,-1))}var dN=Object.prototype,pN=dN.hasOwnProperty;function Xg(e,t){t=zi(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=vn(t[r]);if(a==="__proto__"&&!pN.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=fN(e,t);return n==null||delete n[vn(Yg(t))]}function mN(e){return yn(e)?void 0:e}var Zg=cr?cr.isConcatSpreadable:void 0;function hN(e){return Tt(e)||Ui(e)||!!(Zg&&e&&e[Zg])}function Ga(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=hN),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?Ga(o,t-1,r,i,a):Mu(a,o):i||(a[a.length]=o)}return a}function $u(e){var t=e==null?0:e.length;return t?Ga(e,1):[]}function gN(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 Qg=Math.max;function ey(e,t,r){return t=Qg(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Qg(i.length-t,0),s=Array(n);++a<n;)s[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=r(s),gN(e,this,o)}}function yN(e){return function(){return e}}function oo(e){return e}var vN=io?function(e,t){return io(e,"toString",{configurable:!0,enumerable:!1,value:yN(t),writable:!0})}:oo,bN=800,kN=16,wN=Date.now;function SN(e){var t=0,r=0;return function(){var i=wN(),a=kN-(i-r);if(r=i,a>0){if(++t>=bN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ty=SN(vN);function ry(e){return ty(ey(e,void 0,$u),e+"")}var CN=1,EN=2,AN=4,Ja=ry(function(e,t){var r={};if(e==null)return r;var i=!1;t=$i(t,function(n){return n=zi(n,e),i||(i=n.length>1),n}),Vi(e,Lu(e),r),i&&(r=Ka(r,CN|EN|AN,mN));for(var a=t.length;a--;)Xg(r,t[a]);return r});function lo(e,t){if(tt in e&&Su.equal(e[tt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Re(i)){const a=lo(i,t);if(a!==void 0)return a}}else if(Re(r)){const i=lo(r,t);if(i!==void 0)return i}}function zu(e,t){const r=ae(e,tt,t);let i=e;at in i&&(i={...i,[at]:Su.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Re(s)?zu(s,r):s)}:Re(n)&&(i={...i,[a]:zu(n,r)});return i}function Ru(e,t){const r=t[e];return[Ja(t,[e]),r]}function ny(e,t={},r=[],i=ae(t,[tt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||tt in t&&t[tt]===s?n=Cu.get(t,l):t[Da]===Ys&&(n=lo(t,s.replace(/\/$/,"")),n!==void 0&&(n=Cu.get(n,l)))}else if(t[Da]===Ys){const l=s?Su.resolve(s,a):a,[c,...u]=l.replace(/#\/?$/,"").split("#");n=lo(t,c.replace(/\/$/,"")),n!==void 0&&(s=n[tt],kt(u)||(n=Cu.get(n,decodeURIComponent(u.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[at];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...p]=r,d=[...p,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,c]=Ru(at,n),u=ny(c,t,[...r,a],s);return Object.keys(l).length>0?t[Da]===a_||t[Da]===Ys?{[zr]:[l,u]}:{...l,...u}:u}return n}function Ya(e,t={},r=ae(t,[tt])){return ny(e,t,[],r)}var xN=Object.prototype,ON=xN.hasOwnProperty;function _N(e,t){return e!=null&&ON.call(e,t)}function iy(e,t,r){t=zi(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=vn(t[i]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&Ou(a)&&ao(s,a)&&(Tt(e)||Ui(e)))}function $e(e,t){return e!=null&&iy(e,t,_N)}var PN="[object String]";function bn(e){return typeof e=="string"||!Tt(e)&&ur(e)&&tn(e)==PN}function dr(e){let t;const r=ae(e,t_);return bn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var IN=1/0;function TN(e){var t=e==null?0:e.length;return t?Ga(e,IN):[]}function Uu(e,t,r){(r!==void 0&&!$a(e[t],r)||r===void 0&&!(t in e))&&Tu(e,t,r)}function NN(e){return function(t,r,i){for(var a=-1,n=Object(t),s=i(t),o=s.length;o--;){var l=s[++a];if(r(n[l],l,n)===!1)break}return t}}var ay=NN();function Xa(e){return ur(e)&&ni(e)}function Bu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function FN(e){return Vi(e,Wa(e))}function DN(e,t,r,i,a,n,s){var o=Bu(e,r),l=Bu(t,r),c=s.get(l);if(c){Uu(e,r,c);return}var u=n?n(o,l,r+"",e,t,s):void 0,f=u===void 0;if(f){var p=Tt(l),d=!p&&ii(l),h=!p&&!d&&Ha(l);u=l,p||d||h?Tt(o)?u=o:Xa(o)?u=Fu(o):d?(f=!1,u=Dg(l,!0)):h?(f=!1,u=Rg(l,!0)):u=[]:yn(l)||Ui(l)?(u=o,Ui(o)?u=FN(o):(!Re(o)||La(o))&&(u=Vg(l))):f=!1}f&&(s.set(l,u),a(u,l,i,n,s),s.delete(l)),Uu(e,r,u)}function sy(e,t,r,i,a){e!==t&&ay(t,function(n,s){if(a||(a=new Cr),Re(n))DN(e,t,s,r,sy,i,a);else{var o=i?i(Bu(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),Uu(e,s,o)}},Wa)}function co(e,t){return ty(ey(e,t,oo),e+"")}function MN(e,t,r){if(!Re(r))return!1;var i=typeof t;return(i=="number"?ni(r)&&ao(t,r.length):i=="string"&&t in r)?$a(r[t],e):!1}function jN(e){return co(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,s&&MN(r[0],r[1],s)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var o=r[i];o&&e(t,o,i,n)}return t})}var LN=jN(function(e,t,r){sy(e,t,r)});function Vu(e,t,r,i){if(!Re(e))return e;t=zi(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=vn(t[a]),c=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var u=o[l];c=i?i(u,l,o):void 0,c===void 0&&(c=Re(u)?u:ao(t[a+1])?[]:{})}Nu(o,l,c),o=o[l]}return e}function ot(e,t,r){return e==null?e:Vu(e,t,r)}function oy(e){return typeof e=="function"?e:oo}var qN=/\s/;function $N(e){for(var t=e.length;t--&&qN.test(e.charAt(t)););return t}var zN=/^\s+/;function RN(e){return e&&e.slice(0,$N(e)+1).replace(zN,"")}var ly=NaN,UN=/^[-+]0x[0-9a-f]+$/i,BN=/^0b[01]+$/i,VN=/^0o[0-7]+$/i,HN=parseInt;function WN(e){if(typeof e=="number")return e;if(ja(e))return ly;if(Re(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Re(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=RN(e);var r=BN.test(e);return r||VN.test(e)?HN(e.slice(2),r?2:8):UN.test(e)?ly:+e}var cy=1/0,KN=17976931348623157e292;function GN(e){if(!e)return e===0?e:0;if(e=WN(e),e===cy||e===-cy){var t=e<0?-1:1;return t*KN}return e===e?e:0}function uy(e){var t=GN(e),r=t%1;return t===t?r?t-r:t:0}var JN=9007199254740991,Hu=4294967295,YN=Math.min;function fy(e,t){if(e=uy(e),e<1||e>JN)return[];var r=Hu,i=YN(e,Hu);t=oy(t),e-=Hu;for(var a=_g(i,t);++r<e;)t(r);return a}function dy(e,t){return e&&ay(e,t,Er)}var XN="__lodash_hash_undefined__";function ZN(e){return this.__data__.set(e,XN),this}function QN(e){return this.__data__.has(e)}function ai(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nn;++t<r;)this.add(e[t])}ai.prototype.add=ai.prototype.push=ZN,ai.prototype.has=QN;function eF(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Za(e,t){return e.has(t)}var tF=1,rF=2;function py(e,t,r,i,a,n){var s=r&tF,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=n.get(e),u=n.get(t);if(c&&u)return c==t&&u==e;var f=-1,p=!0,d=r&rF?new ai:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var h=e[f],v=t[f];if(i)var k=s?i(v,h,f,t,e,n):i(h,v,f,e,t,n);if(k!==void 0){if(k)continue;p=!1;break}if(d){if(!eF(t,function(g,b){if(!Za(d,b)&&(h===g||a(h,g,r,i,n)))return d.push(b)})){p=!1;break}}else if(!(h===v||a(h,v,r,i,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function nF(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function Wu(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var iF=1,aF=2,sF="[object Boolean]",oF="[object Date]",lF="[object Error]",cF="[object Map]",uF="[object Number]",fF="[object RegExp]",dF="[object Set]",pF="[object String]",mF="[object Symbol]",hF="[object ArrayBuffer]",gF="[object DataView]",my=cr?cr.prototype:void 0,Ku=my?my.valueOf:void 0;function yF(e,t,r,i,a,n,s){switch(r){case gF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hF:return!(e.byteLength!=t.byteLength||!n(new so(e),new so(t)));case sF:case oF:case uF:return $a(+e,+t);case lF:return e.name==t.name&&e.message==t.message;case fF:case pF:return e==t+"";case cF:var o=nF;case dF:var l=i&iF;if(o||(o=Wu),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=aF,s.set(e,t);var u=py(o(e),o(t),i,a,n,s);return s.delete(e),u;case mF:if(Ku)return Ku.call(e)==Ku.call(t)}return!1}var vF=1,bF=Object.prototype,kF=bF.hasOwnProperty;function wF(e,t,r,i,a,n){var s=r&vF,o=ju(e),l=o.length,c=ju(t),u=c.length;if(l!=u&&!s)return!1;for(var f=l;f--;){var p=o[f];if(!(s?p in t:kF.call(t,p)))return!1}var d=n.get(e),h=n.get(t);if(d&&h)return d==t&&h==e;var v=!0;n.set(e,t),n.set(t,e);for(var k=s;++f<l;){p=o[f];var g=e[p],b=t[p];if(i)var w=s?i(b,g,p,t,e,n):i(g,b,p,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){v=!1;break}k||(k=p=="constructor")}if(v&&!k){var E=e.constructor,m=t.constructor;E!=m&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof m=="function"&&m instanceof m)&&(v=!1)}return n.delete(e),n.delete(t),v}var SF=1,hy="[object Arguments]",gy="[object Array]",uo="[object Object]",CF=Object.prototype,yy=CF.hasOwnProperty;function EF(e,t,r,i,a,n){var s=Tt(e),o=Tt(t),l=s?gy:fr(e),c=o?gy:fr(t);l=l==hy?uo:l,c=c==hy?uo:c;var u=l==uo,f=c==uo,p=l==c;if(p&&ii(e)){if(!ii(t))return!1;s=!0,u=!1}if(p&&!u)return n||(n=new Cr),s||Ha(e)?py(e,t,r,i,a,n):yF(e,t,l,r,i,a,n);if(!(r&SF)){var d=u&&yy.call(e,"__wrapped__"),h=f&&yy.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,k=h?t.value():t;return n||(n=new Cr),a(v,k,r,i,n)}}return p?(n||(n=new Cr),wF(e,t,r,i,a,n)):!1}function fo(e,t,r,i,a){return e===t?!0:e==null||t==null||!ur(e)&&!ur(t)?e!==e&&t!==t:EF(e,t,r,i,fo,a)}var AF=1,xF=2;function OF(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<n;){s=r[a];var o=s[0],l=e[o],c=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var u=new Cr,f;if(!(f===void 0?fo(c,l,AF|xF,i,u):f))return!1}}return!0}function vy(e){return e===e&&!Re(e)}function _F(e){for(var t=Er(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,vy(a)]}return t}function by(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function PF(e){var t=_F(e);return t.length==1&&t[0][2]?by(t[0][0],t[0][1]):function(r){return r===e||OF(r,e,t)}}function IF(e,t){return e!=null&&t in Object(e)}function ky(e,t){return e!=null&&iy(e,t,IF)}var TF=1,NF=2;function FF(e,t){return hu(e)&&vy(t)?by(vn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?ky(r,e):fo(t,i,TF|NF)}}function DF(e){return function(t){return t==null?void 0:t[e]}}function MF(e){return function(t){return eo(t,e)}}function jF(e){return hu(e)?DF(vn(e)):MF(e)}function Gu(e){return typeof e=="function"?e:e==null?oo:typeof e=="object"?Tt(e)?FF(e[0],e[1]):PF(e):jF(e)}function LF(e,t,r){var i=Tt(e),a=i||ii(e)||Ha(e);if(t=Gu(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Re(e)?r=La(n)?Bg(Xs(e)):{}:r={}}return(a?Iu:dy)(e,function(s,o,l){return t(r,s,o,l)}),r}function qF(e,t,r,i){for(var a=e.length,n=r+-1;++n<a;)if(t(e[n],n,e))return n;return-1}function $F(e){return e!==e}function zF(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function wy(e,t,r){return t===t?zF(e,t,r):qF(e,$F,r)}function Ju(e,t){var r=e==null?0:e.length;return!!r&&wy(e,t,0)>-1}function po(){}var RF=1/0,UF=Ri&&1/Wu(new Ri([,-0]))[1]==RF?function(e){return new Ri(e)}:po,BF=200;function Sy(e,t,r){var i=-1,a=Ju,n=e.length,s=!0,o=[],l=o;if(n>=BF){var c=UF(e);if(c)return Wu(c);s=!1,a=Za,l=new ai}else l=o;e:for(;++i<n;){var u=e[i],f=u;if(u=u!==0?u:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;o.push(u)}else a(l,f,r)||(l!==o&&l.push(f),o.push(u))}return o}function Cy(e){return e&&e.length?Sy(e):[]}function Qa(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 VF=co(function(e){return Sy(Ga(e,1,Xa,!0))});function pr(e){let{type:t}=e;return!t&&e.const?Qa(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 sn(e,t){const r={...e},i=Object.keys(t).reduce((a,n)=>{const s=e?e[n]:{},o=t[n];return e&&n in e&&we(o)?a[n]=sn(s,o):e&&t&&(pr(e)==="object"||pr(t)==="object")&&n===zh&&Array.isArray(s)&&Array.isArray(o)?a[n]=VF(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var HF="[object Number]";function Ey(e){return typeof e=="number"||ur(e)&&tn(e)==HF}function Ay(e,t,r){var i;if(e&&r){const a=ae(e,r);if(a===void 0)return;for(let n=0;n<t.length;n+=1){const s=t[n],o=ae(s,[ze,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function mo(e,t,r,i,a){if(t===void 0)return 0;const n=Ay(t,r,a);if(Ey(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&$e(o,[ze,a])){const l=ae(t,a),c=ae(o,[ze,a],{});if(e.isValid(c,l,i))return s}else if(o[ze]){const l={anyOf:Object.keys(o[ze]).map(u=>({required:[u]}))};let c;if(o.anyOf){const{...u}=o;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),c=u}else c={...o,...l};if(delete c.required,e.isValid(c,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const WF=Object.prototype;function es(e){for(const t in e)if(WF.hasOwnProperty.call(e,t))return!1;return!0}const KF=["array","boolean","integer","null","number","object","string"];new Set(KF);const GF=["$defs","definitions","properties","patternProperties","dependencies"];new Set(GF);const JF=["items","allOf","oneOf","anyOf"];new Set(JF);const YF=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(YF);function ho(e){return typeof e=="object"}function Ur(e){return ho(e)?es(e):e===!0}function Hi(e,t){return e<t?-1:e>t?1:0}function Yu(e,t){const r=e.length;if(r===0)return t;let i=t.length;if(i===0)return e;if(r<i){const n=e;e=t,t=n,i=r}const a=new Set(e);for(let n=0;n<i;n++)a.add(t[n]);return Array.from(a)}function XF(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const a=e;e=t,t=a}const i=new Set(t);for(let a=0;a<e.length&&i.size>0;a++){const n=e[a];i.delete(n)&&r.push(n)}return r}function xy(e){return e.length===0}function Xu(e){return(t,r)=>{const i=t.length-r.length;if(i!==0)return i;for(let a=0;a<t.length;a++)if(t[a]!==r[a]){const n=e(t[a],r[a]);if(n!==0)return n}return 0}}function Oy(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const s=[];let o=0;e:for(let l=0;l<i;l++){const c=r[l];for(let u=0;u<o;u++)if(e(c,s[u])===0)continue e;o=s.push(c)}return s}const a=r.slice().sort(e);let n=0;for(let s=1;s<i;s++)e(a[n],a[s])!==0&&++n!==s&&(a[n]=a[s]);return a.length=n+1,a}}function ZF(e){return(t,r)=>{const i=[];let a=t.length,n=r.length;if(a===0||n===0)return i;if(a>n){const u=t;t=r,r=u;const f=a;a=n,n=f}const s=[...t].sort(e),o=[...r].sort(e);let l=0,c=0;for(;l<a&&c<n;){const u=e(s[l],o[c]);u===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,c++):u<0?l++:c++}return i}}function QF(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const _y=QF,Py=()=>0,eD=e=>e===void 0,tD=e=>typeof e!="object",Iy={boolean:0,number:1,string:2};function rD(e,t){const r=typeof e,i=typeof t;return r===i?Hi(e,t):Iy[r]-Iy[i]}function nD(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const s=e;e=t,t=s}const a=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];a.has(o)||e.push(o)}return e}function go(e,t,r=Py){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Wi(e){return go(eD,e)}function kn(e,t){return go(r=>r===void 0||e(r),t)}function Zu(e,t){return go(Array.isArray,e,t)}const _t=Wi(Hi),Qu=kn(e=>e===0,(e,t)=>e-t);function iD({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=_y(t,v=>Object.keys(v).sort());function i(v){return(k,g)=>{const b=r(k),w=r(g),E=Math.min(b.length,w.length);for(let m=0;m<E;m++){const y=Hi(b[m],w[m]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let m=0;m<E;m++){const y=b[m],S=v(k[y],g[y]);if(S!==0)return S}return 0}}function a(v){const k=Xu(v),g=_y(e,Oy(v,{threshold:0}));return(b,w)=>k(g(b),g(w))}const n=a(Hi);function s(v,k){if(ho(v)){if(ho(k)){const g=Object.keys(v),b=Object.keys(k),w=nD(g,b),E=w.length;for(let m=0;m<E;m++){const y=w[m];if(v[y]===k[y])continue;const x=(h[y]??o)(v[y],k[y]);if(x!==0)return x}return 0}return k===!0&&es(v)?0:1}return ho(k)?v===!0&&es(k)?0:-1:Hi(v,k)}const o=Wi(c),l=go(tD,Zu(i(o),Xu(c)),rD);function c(v,k){return v===null?-1:k===null?1:l(v,k)}const u=Wi(s),f=kn(es,i(u)),p=Wi(a(s)),d=kn(Ur,s),h={$id:_t,$comment:_t,$defs:f,$ref:_t,$schema:_t,const:o,contains:u,contentEncoding:_t,contentMediaType:_t,default:o,definitions:f,description:_t,else:u,examples:o,exclusiveMaximum:_t,exclusiveMinimum:_t,format:_t,if:u,maximum:_t,maxItems:_t,maxLength:_t,maxProperties:_t,minimum:_t,multipleOf:_t,not:u,pattern:_t,propertyNames:u,readOnly:_t,then:u,title:_t,writeOnly:_t,uniqueItems:kn(v=>v===!1,Py),minLength:Qu,minItems:Qu,minProperties:Qu,required:kn(xy,n),enum:kn(xy,a(c)),type:Wi((v,k)=>{const g=Array.isArray(v),b=Array.isArray(k);return!g&&!b?Hi(v,k):n(g?v:[v],b?k:[k])}),items:kn(v=>!Array.isArray(v)&&Ur(v),Zu(s,Xu(s))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:kn(es,i(Wi(Zu(s,n))))};return{compareSchemaValues:c,compareSchemaDefinitions:s}}function Ty(e){return e}const Ny=(e,t)=>e?Ny(t%e,e):t,aD=(e,t)=>Math.abs(e*t)/Ny(e,t);function sD(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function ef(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const s=e[n];for(let o=0;o<a;o++)r(s,t[o])}}function tf(e,t){return e||t}function Fy(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let s=0;s<n;s++){const o=a[s];i[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return i}}function oD(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function si(e,t,r){r===void 0||Ur(r)?delete e[t]:e[t]=r}const lD=["properties","patternProperties","additionalProperties"];function Dy(e){const t=Object.keys(e),r=t.length,i=[];for(let a=0;a<r;a++){const n=t[a];i.push({regExp:new RegExp(n),schema:e[n]})}return[i,t]}const My=[[],[]];function jy(e,t,r){const i=r.length;for(let a=0;a<i;a++){const n=r[a];if(!n.regExp.test(t))continue;const s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const cD=["items","additionalItems"],uD=["if","then","else"];function Ly(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 rf(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 oi(e,t,r){return[e,t,r]}function fD(e){const t=new Map;for(const[r,i,a]of e){const n=s=>{if(!a(s))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${i}: ${JSON.stringify(s[i])})`)};for(const s of[[r,i],[i,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 dD=[oi("minimum","maximum",e=>e.maximum>=e.minimum),oi("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),oi("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),oi("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),oi("minLength","maxLength",e=>e.maxLength>=e.minLength),oi("minItems","maxItems",e=>e.maxItems>=e.minItems),oi("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function pD({mergePatterns:e=sD,isSubRegExp:t=Object.is,intersectJson:r=XF,deduplicateJsonSchemaDef:i=Ty,defaultMerger:a=Ty,assigners:n=[],checks:s=dD,mergers:o}={}){function l(E){const m=E.length;let y=E[0];for(let S=1;S<m;S++){const x=g(y,E[S]);if(x===!1)return!1;Ur(x)||(y=x)}return y}function c(E,m,y,S,x,_,C){if(E.length=0,y===!1)return!1;if(E.push(y),x!==void 0){if(x===!1)return!1;E.push(x)}if(jy(E,m,_))return!1;const O=E.length<2;if(C===!1){if(O)return;if(jy(E,m,S))return!1}else O&&C!==void 0&&E.push(C);return E.length===1?E[0]:l(E)}function u(E,m,y,S,x,_){const C=y.length;if(C>0&&x!==!1)if(_)Object.assign(E,m);else for(let A=0;A<C;A++){const O=y[A];S.has(O)||(E[O]=g(m[O],x))}return E}const f=(E,{properties:m={},patternProperties:y,additionalProperties:S=!0},{properties:x={},patternProperties:_,additionalProperties:C=!0})=>{const A=Ur(S),O=Ur(C);if(A&&O)return si(E,"properties",b(m,x)),si(E,"patternProperties",y&&_?b(y,_):y??_),delete E.additionalProperties,E;const F=g(S,C);si(E,"additionalProperties",F);const N={},M=Object.keys(m),q=M.length,[H,J]=y?Dy(y):My,[X,P]=_?Dy(_):My,j=[],U=new Set,T=O?void 0:C;for(let Y=0;Y<q;Y++){const Z=M[Y];U.add(Z);const z=c(j,Z,m[Z],H,x[Z],X,T);z!==void 0&&(N[Z]=z)}const D=Object.keys(x),L=D.length,B=A?void 0:S;for(let Y=0;Y<L;Y++){const Z=D[Y];if(U.has(Z))continue;const z=c(j,Z,x[Z],X,void 0,H,B);z!==void 0&&(N[Z]=z)}si(E,"properties",N);let V={};const W=new Set;return J.length>0&&P.length>0&&ef(J,P,(Y,Z)=>{t(Y,Z)&&W.add(Y),t(Z,Y)&&W.add(Z),V[e(Y,Z)]=g(y[Y],_[Z])}),V=u(V,y,J,W,C,O),V=u(V,_,P,W,S,A),si(E,"patternProperties",V),E},p=(E,{items:m=[],additionalItems:y},{items:S=[],additionalItems:x})=>{const _=Array.isArray(m),C=Array.isArray(S),A=[];if(E.items=A,_&&C){const[O,F,N]=m.length<S.length?[m.length,y,S]:[S.length,x,m];let M=0;for(;M<O;M++)A.push(g(m[M],S[M]));if(F===!1)E.additionalItems=!1;else{const q=F===void 0||Ur(F);for(;M<N.length;M++)A.push(q?N[M]:g(N[M],F));si(E,"additionalItems",y!==void 0&&x!==void 0?g(y,x):y??x)}}else if(_||C){const[O,F,N]=_?[m,S,y]:[S,m,x];si(E,"additionalItems",N&&g(N,F));for(let M=0;M<O.length;M++)A.push(g(O[M],F))}else delete E.additionalItems,E.items=g(m,S);return E},d=(E,m,y)=>{Ly(E,m);const S=Ly({},y);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,m){const y=[];if(ef(E,m,(S,x)=>{try{y.push(g(S,x))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(m)}"; the merged result is empty`);return i(y)}const v=oD([[lD,f],[cD,p],[uD,d],...n]),k=fD(s);function g(E,m){if(E===!1||m===!1)return!1;if(Ur(E))return Ur(m)?!0:m;if(Ur(m))return E;let y={...E};const S=new Set,x=new Set,_=Reflect.ownKeys(m),C=_.length;for(let A=0;A<C;A++){const O=_[A],F=m[O];if(F===void 0)continue;const N=k.get(O);if(N!==void 0){const J=N.length;for(let X=0;X<J;X++){const P=N[X];E[P.oppositeKey]!==void 0&&x.add(P.check)}}const M=E[O];if(M===void 0){y[O]=F;continue}const q=v.get(O);if(q){S.add(q);continue}const H=w[O]??a;y[O]=H(M,F)}for(const A of S)y=A(y,E,m);for(const A of x)A(y);return y}const b=Fy(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(E,m)=>{if(E===m)return E;const y=Array.isArray(E),S=Array.isArray(m);if(!y&&!S){const x=rf(E,m);if(x!==void 0)return x}else if(y||S){const x=new Set;if(y&&S)ef(E,m,(C,A)=>{const O=rf(C,A);O!==void 0&&x.add(O)});else{const C=y?E:m,A=y?m:E,O=C.length;for(let F=0;F<O;F++){const N=rf(A,C[F]);N!==void 0&&x.add(N)}}const _=x.size;if(_===1)return x.values().next().value;if(_>1)return Array.from(x)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${m.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(E,m)=>{const y=i([E,m]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:tf,writeOnly:tf,enum:(E,m)=>{const y=r(E,m);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(m)}"`);return y},anyOf:h,oneOf:h,allOf:(E,m)=>i(E.concat(m)),propertyNames:g,contains:g,dependencies:Fy((E,m)=>Array.isArray(E)?Array.isArray(m)?Yu(E,m):g(m,{required:E}):Array.isArray(m)?g(E,{required:m}):g(E,m)),examples:(E,m)=>{if(!Array.isArray(E)||!Array.isArray(m))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(m)}"`);return Yu(E,m)},multipleOf:(E,m)=>{let y=1;for(;!Number.isInteger(E)||!Number.isInteger(m);)y*=10,E*=10,m*=10;return aD(E,m)/y},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:tf,required:Yu,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function mD(e){const t=[],r=[e];for(;r.length>0;){const i=r.pop();if(typeof i=="boolean"||i.allOf===void 0){t.push(i);continue}const{allOf:a,...n}=i;t.push(n);for(let s=a.length-1;s>=0;s--)r.push(a[s])}return t}function hD(e){return t=>e(mD(t))}const{compareSchemaDefinitions:gD,compareSchemaValues:yD}=iD(),{mergeArrayOfSchemaDefinitions:vD}=pD({intersectJson:ZF(yD),deduplicateJsonSchemaDef:Oy(gD)}),qy=hD(vD);function Mt(e,t,r={},i,a,n=!1){return Br(e,t,r,i,void 0,void 0,a,n)[0]}function $y(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function bD(e,t,r,i,a,n,s){const{if:o,then:l,else:c,...u}=t,f=e.isValid(o,n||{},r);let p=[u],d=[];if(i){if(l&&typeof l!="boolean"){const h=l;d=d.concat(Br(e,h,r,n,i,a,s))}if(c&&typeof c!="boolean"){const h=c;d=d.concat(Br(e,h,r,n,i,a,s))}}else{const h=f?l:c;if(h!==void 0){const v=$y(h);d=d.concat(Br(e,v,r,n,i,a,s))}}return d.length&&(p=d.map(h=>sn(u,h))),p.flatMap(h=>Br(e,h,r,n,i,a,s))}function zy(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>fy(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Ry(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(ot(r,[i],e.patternProperties[i]),r),{})}function kD(e,t,r,i,a,n,s,o){const l=Uy(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(su in t)return Vy(e,t,r,i,a,n,s).flatMap(u=>Br(e,u,r,n,i,a,s));if(zr in t&&Array.isArray(t[zr])){const c=t.allOf.map(f=>Br(e,f,r,n,i,a,s));return zy(c).map(f=>({...t,allOf:f}))}return[t]}function Uy(e,t,r,i,a,n,s,o){const l=wn(t,r,a,void 0,o);return l!==t?Br(e,l,r,n,i,a,s,o):[t]}function wn(e,t,r,i,a,n=!1){if(!we(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...c}=s;if(r.includes(l))return n?{...s,[uu]:!0}:s;r.push(l),s={...Ya(l,t,o),...c,[Js]:l},tt in s&&(o=s[tt])}if(ze in s){const l=[],c=LF(s[ze],(u,f,p)=>{const d=[...r];u[p]=wn(f,t,d,o,a,!a),l.push(d)},{});LN(r,Cy(TN(l))),s={...s,[ze]:c}}if(qi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:wn(s.items,t,r,o,a)}),a){let l,c;je in e&&Array.isArray(e[je])?(l=je,c=s[je]):Oe in e&&Array.isArray(e[Oe])&&(l=Oe,c=s[Oe]),l&&c&&(s={...s,[l]:c.map(u=>wn(u,t,r,o,a))})}return Ue(e,s)?e:s}function wD(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&we(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(lu in n){const l=Ry(n,o);if(!kt(l)){n.properties[o]=Mt(e,{[zr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][hn]=!0;return}}if(Li in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Mt(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:je in n.additionalProperties||Oe in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Qa(ae(s,[o]))}:l={type:Qa(ae(s,[o]))},n.properties[o]=l,n.properties[o][hn]=!0}else n.properties[o]={type:"null"},n.properties[o][hn]=!0}}),n}function SD(e){return qy(e)}function Br(e,t,r,i,a=!1,n=[],s,o){return we(t)?kD(e,t,r,a,n,i,s,o).flatMap(c=>{var u;let f=c;if(ou in f)return bD(e,f,r,a,n,i,s);if(zr in f){if(a){const{allOf:d,...h}=f;return[...d,h]}try{const d=[],h=[],v={};(u=f.allOf)===null||u===void 0||u.forEach(k=>{if(typeof k=="object"&&k.contains)d.push(k);else{h.push(k);for(const g of Object.getOwnPropertySymbols(k))g in v||(v[g]=k[g])}}),d.length&&(f={...f,allOf:h}),f=s?s(f):SD(f);for(const k of Object.getOwnPropertySymbols(v))f[k]=v[k];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
59
+ `,d);const{allOf:h,...v}=f;return v}}return ze in f&&lu in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const v=Ry(d,h);return kt(v)||(d.properties[h]=Mt(e,{allOf:[d.properties[h],...Object.values(v)]},r,ae(i,[h]),s)),d},{...f,properties:{...f.properties}})),lu in f||Li in f&&f.additionalProperties!==!1?wD(e,f,r,i,s):f}):[{}]}function CD(e,t,r,i,a){let n;const{oneOf:s,anyOf:o,...l}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const c=a===void 0&&i?{}:a,u=dr(t);n=n.map(p=>wn(p,r,[]));const f=mo(e,c,n,r,u);if(i){const p=By(n,!1,r);return mo(e,c,p,r,u),n.map(d=>sn(l,d))}return[sn(l,n[f])]}return[t]}function By(e,t=!1,r){return e.map(i=>{if(!we(i))return $y(i);const a=t&&r?wn(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Vy(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return CD(e,l,r,i,n).flatMap(u=>Hy(e,o,u,r,i,a,n,s))}function Hy(e,t,r,i,a,n,s,o){let l=[r];for(const c in t)if((a||ae(s,[c])!==void 0)&&(!r.properties||c in r.properties)){const[u,f]=Ru(c,t);return Array.isArray(f)?l[0]=ED(r,f):we(f)&&(l=AD(e,r,i,c,f,a,n,s,o)),l.flatMap(p=>Hy(e,u,p,i,a,n,s,o))}return l}function ED(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 AD(e,t,r,i,a,n,s,o,l){return Br(e,a,r,o,n,s,l).flatMap(u=>{const{oneOf:f,...p}=u,d=sn(t,p);if(f===void 0)return d;const h=f.map(k=>typeof k=="boolean"||!(at in k)?[k]:Uy(e,k,r,n,s,o));return zy(h).flatMap(k=>xD(e,d,r,i,k,n,s,o,l))})}function xD(e,t,r,i,a,n,s,o,l){const c=a.filter(u=>{if(typeof u=="boolean"||!(u!=null&&u.properties))return!1;const{[i]:f}=u.properties;if(f){const p={type:"object",properties:{[i]:f}};return e.isValid(p,o,r)||n}return!1});return!n&&c.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):c.flatMap(u=>{const f=u,[p]=Ru(i,f.properties),d={...f,properties:p};return Br(e,d,r,o,n,s,l).map(v=>sn(t,v))})}function ts(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=dr(r)||i,c=r[a].map(f=>Mt(e,f,t,n,s)),u=ae(n,l);if(u!==void 0)return c.find(f=>Ue(ae(f,[ze,l,Zn],ae(f,[ze,l,Vt])),u))}}function Wy(e,t,r,i,a){let n=r;if($e(r,at)&&(n=Mt(e,r,t,void 0,a)),kt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&$e(n,o))return n=ae(n,o),Wy(e,t,n,l,a)}function yo(e,t,r,i,a,n){const s=Wy(e,t,r,i,n);return s===void 0?a:s}const Ky={title:"!@#$_UNKNOWN_$#@!"};function OD(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),c=String(l);s.length&&s.forEach(d=>{o=yo(e,t,o,[ze,d],{},n),$e(o,Oe)?o=ts(e,t,o,c,Oe,ae(a,d),n):$e(o,je)&&(o=ts(e,t,o,c,je,ae(a,d),n))}),$e(o,Oe)?o=ts(e,t,o,c,Oe,a,n):$e(o,je)&&(o=ts(e,t,o,c,je,a,n));let u=yo(e,t,o,[ze,l],Ky,n);u===Ky&&(u=void 0);const f=yo(e,t,o,zh,[],n);let p;return u&&Array.isArray(f)&&(p=f.includes(c)),{field:u,isRequired:p}}function _D(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}function PD(e,t){return function(r,i){if(r==null)return r;if(!ni(r))return e(r,i);for(var a=r.length,n=-1,s=Object(r);++n<a&&i(s[n],n,s)!==!1;);return r}}var Gy=PD(dy);function ID(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function TD(e,t,r){var i=Tt(e)?_D:ID,a=arguments.length<3;return i(e,Gu(t),r,a,Gy)}const ND={type:"object",$id:e_,properties:{__not_really_there__:{type:"number"}}};function nf(e,t,r,i,a){let n=0;return r&&(Re(r.properties)?n+=TD(r.properties,(s,o,l)=>{const c=ae(i,l);if(typeof o=="boolean")return s;if($e(o,at)){const u=Mt(e,o,t,c,a);return s+nf(e,t,u,c||{},a)}if(($e(o,Oe)||$e(o,je))&&c){const u=$e(o,Oe)?Oe:je,f=dr(o);return s+Ki(e,t,c,ae(o,u),-1,f,a)}if(o.type==="object"){const u=Re(c)?1:0;return s+u+nf(e,t,o,c,a)}if(o.type===Qa(c)){let u=s+1;return o.default?u+=c===o.default?1:-1:o.const&&(u+=c===o.const?1:-1),u}return s},0):bn(r.type)&&r.type===Qa(i)&&(n+=1)),n}function Ki(e,t,r,i,a=-1,n,s){const o=i.map(p=>wn(p,t,[])),l=Ay(r,i,n);if(Ey(l))return l;const c=o.reduce((p,d,h)=>(mo(e,r,[ND,d],t,n)===1&&p.push(h),p),[]);if(c.length===1)return c[0];c.length||fy(o.length,p=>c.push(p));const u=new Set,{bestIndex:f}=c.reduce((p,d)=>{const{bestScore:h}=p,v=o[d],k=nf(e,t,v,r,s);return u.add(k),k>h?{bestIndex:d,bestScore:k}:p},{bestIndex:a,bestScore:0});return u.size===1&&a>=0?a:f}function Jy(e){const t=e[Vt],r=pr(e);return we(t)&&bn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Yy(e){return Array.isArray(e.enum)&&e.enum.length===1||Vt in e}function af(e){return Array.isArray(e.items)&&e.items.every(t=>we(t))}function Gi(e){return e==null}function rs(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=a?n:t,o=a?t:n,l=s.map((c,u)=>o[u]!==void 0?rs(n[u],t[u],r,i,a):c);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(we(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const c=ae(t,o),u=we(e)&&o in e,f=o in t,p=(l=ae(e,o))!==null&&l!==void 0?l:{},d=u&&we(p)&&Object.values(p).some(k=>we(k)),h=u&&we(ae(e,o)),v=f&&we(c);return h&&v&&!d?(s[o]={...ae(e,o),...c},s):(s[o]=rs(ae(e,o),c,r,i,a&&(u||!f)),n)},n)}return i&&(e!==void 0&&Gi(t)||typeof t=="number"&&Number.isNaN(t))||a&&!Gi(t)?e:t}function Sn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&we(s))i[a]=Sn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,c)=>(n.includes(c)||l.push(c),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function FD(e){if(QO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Vt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function DD(e,t){const r=new Map(e.map(n=>[String(n.value),n])),i=new Set(t.filter(n=>n!=="*").map(String)),a=e.filter(n=>!i.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return a;const s=r.get(String(n));return s?[s]:[]})}function li(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:c}=pe(t);n=l,s=c}let o=e.enum.map((l,c)=>({label:Array.isArray(n)?n[c]||String(l):(n==null?void 0:n[String(l)])||String(l),value:l}));return s&&(o=DD(o,s)),o}let r,i;e.anyOf?(r=e.anyOf,i=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,i=t==null?void 0:t.oneOf);let a=dr(e);if(t){const{optionsSchemaSelector:n=a}=pe(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,c;const{title:u}=pe(i==null?void 0:i[s]),f=n;let p,d=u;if(a){const h=ae(f,[ze,a],{});p=ae(h,Zn,ae(h,Vt)),d=(l=(o=d??(h==null?void 0:h.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(p)}else p=FD(f),d=(c=d??f.title)!==null&&c!==void 0?c:String(p);return{schema:f,label:d,value:p}})}function vo(e,t,r={},i){const a=Mt(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&Yy(s)):!1}function sf(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:vo(e,t.items,r,i)}const MD=["string","number","integer","boolean","null"];var Ji;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ji||(Ji={}));function of(e,t=Ji.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const i=e.items[r];if(typeof i!="boolean")return i}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Ji.Ignore&&we(e.additionalItems)?e.additionalItems:{}}function Xy(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&kt(t)&&r===null?null:t}function Zy(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:c="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!we(r)||!kt(r))&&(e[t]=r);else if(c!=="skipDefaults"){const u=a===void 0?n.includes(t):a;we(r)?c==="skipEmptyDefaults"?kt(r)||(e[t]=r):(!kt(r)||n.includes(t))&&(u||c!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(c==="populateAllDefaults"||c==="skipEmptyDefaults"||u&&n.includes(t))&&(e[t]=r)}}function Cn(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,required:u,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:p}=r;let d=we(a)?a:{};const h=we(t)?t:{};let v=i;const k=v&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=o;if(h[Vt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Jy(h))v=h[Vt];else if(we(v)&&we(h.default)&&!h[je]&&!h[Oe]&&!h[at])k?v=Sn(h.default,v):v=Sn(v,h.default);else if(Zn in h&&!k&&!h[je]&&!h[Oe]&&!h[at])v=h.default;else if(at in h){const y=h[at];o.includes(y)||(w=o.concat(y),g=Ya(y,n));const S=a===void 0||we(a)&&kt(a);g&&!v&&S&&(v=h.default),f&&g&&!we(a)&&(d=a)}else if(su in h){const y={...Qy(e,h,r,v),...d};[g]=Vy(e,h,n,!1,[],y,c)}else if(af(h)&&!k)v=h.items.map((y,S)=>Cn(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:c,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:u,shouldMergeDefaultsIntoFormData:f}));else if(Oe in h){const{oneOf:y,...S}=h;if(y.length===0)return;const x=dr(h),{type:_="null"}=S;!Array.isArray(_)&&MD.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[Ki(e,n,a??h.default,y,0,x,c)],g=sn(S,g)}else if(je in h){const{anyOf:y,...S}=h;if(y.length===0)return;const x=dr(h);g=y[Ki(e,n,a??h.default,y,0,x,c)],g=sn(S,g)}if(g)return Cn(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:c,parentDefaults:v,rawFormData:a??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});v===void 0&&(v=h.default);const E=Qy(e,h,r,v);let m=E??v;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,x=lf(e,h,n,a,l,c);(!we(a)||zr in h)&&(m=rs(m,x,S,!0))}return m}function lf(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&zr in t,o=s?Mt(e,t,r,i,n):t,l=!Yy(o)&&vo(e,o,r,n);let c=i;if(l){const f=li(o);c=(f==null?void 0:f.some(d=>Ue(d.value,i)))?i:void 0}return o[Vt]&&(a==null?void 0:a.constAsDefaults)==="always"?c=o.const:we(c)&&we(o.properties)&&(c=Object.keys(o.properties).reduce((f,p)=>{const d=ae(o,[ze,p],{});return p in f&&(s||we(d)&&zr in d)&&(f[p]=lf(e,d,r,ae(f,p),a,n)),f},{...c})),c}function jD(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},f){{const p=we(r)?r:{},d=t,v=(s==null?void 0:s.allOf)==="populateDefaults"&&zr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&ou in d?Mt(e,d,i,p,o):d,k=v[Vt],g=Object.keys(v.properties||{}).reduce((b,w)=>{var E;const m=ae(v,[ze,w],{}),y=we(k)&&k[w]!==void 0,S=(we(m)&&Vt in m||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Jy(m),x=Cn(e,m,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(p,[w]),required:(E=v.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});return Zy(b,w,x,a,l,v.required,s,S,(m==null?void 0:m.type)==="null"),b},{});if(v.additionalProperties&&!u){const b=we(v.additionalProperties)?v.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(m=>!v.properties||!v.properties[m]).forEach(m=>{w.add(m),E.push(m)}),we(f)&&E.length===0&&Object.keys(f).filter(m=>!v.properties||!v.properties[m]).forEach(m=>w.add(m)),w.forEach(m=>{var y;const S=Cn(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[m]),rawFormData:ae(p,[m]),required:(y=v.required)===null||y===void 0?void 0:y.includes(m),shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u});Zy(g,m,S,a,l,E)})}return Xy(t,g)}}function LD(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}={},f){var p,d;let h=f;const v=t,k=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:g,mergeExtraDefaults:b}=k,w=g==="never",E=g==="requiredOnly",m=g==="all"||!w&&!E,y=(d=k==null?void 0:k.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),x=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((A,O)=>{const F=of(v,Ji.Fallback,O),N=Array.isArray(r)?r[O]:void 0;return Cn(e,F,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:A,rawFormData:N,required:o,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u})})),Array.isArray(r)){const A=of(v);if(w)h=r;else{const O=r.map((N,M)=>Cn(e,A,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:N,parentDefaults:ae(h,[M]),required:o,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:u}));h=rs(h,O,(E&&o||m)&&b)}}const _=Array.isArray(h)?h.length:0;if(w)return c&&!o?h:h??x;if(E&&!o)return h||void 0;let C;if(!v.minItems||sf(e,v,i,s)||y(e,v,i)||v.minItems<=_)C=h||!o&&!l?h:x;else{const A=h||[],O=of(v,Ji.Invert),F=O.default,N=Array.from({length:v.minItems-_},()=>Cn(e,O,{parentDefaults:F,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:c}));C=A.concat(N)}return Xy(t,C)}function Qy(e,t,r={},i){switch(pr(t)){case"object":return jD(e,t,r,i);case"array":return LD(e,t,r,i);default:return}}function cf(e,t,r,i,a=!1,n,s,o){if(!we(t))throw new Error(`Invalid schema: ${t}`);const l=Mt(e,t,i,r,s),c=Cn(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(l.type!=="object"&&we(l.default))return{...c,...r};if(we(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",p=lf(e,l,i??l,r,n,s);return rs(c,p,!0,f,!0)}return c}function ev(e={}){return"widget"in pe(e)&&pe(e).widget!=="hidden"}function tv(e,t,r={},i,a){if(r[du]==="files")return!0;if(t.items){const n=Mt(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function qD(e,t,r={},i,a,n){const s=pe(r,a),{label:o=!0}=s;let l=!!o;if(l){const c=pr(t),u=!!t[hn];c==="array"&&(l=u||sf(e,t,i,n)||tv(e,t,r,i,n)||ev(r)),c==="object"&&(l=u),c==="boolean"&&r&&!r[du]&&(l=!1),r!=null&&r[n_]&&(l=!1)}return l}function rv(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=eo(e,s);r(o,s)&&Vu(n,zi(s,e),o)}return n}function $D(e,t){return rv(e,t,function(r,i){return ky(e,i)})}var nv=ry(function(e,t){return e==null?{}:$D(e,t)});function zD(e,t){if(t.length===0&&typeof e!="object")return e;const r=nv(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function RD(e,t){const r=(a,n)=>typeof a!="object"||kt(a)||n&&!kt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const c=a[l];if(typeof c=="object"){const u=s.map(f=>[...f,l]);c[fu]&&c[Ks]!==""?n.push(c[Ks]):i(c,n,u)}else l===Ks&&c!==""&&s.forEach(u=>{const f=ae(t,u),p=o.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(u)})}),n};return i(e)}function iv(e){return Gi(e)||e===""?!0:Array.isArray(e)?e.length===0:we(e)?Object.values(e).every(iv):!1}function UD(e,t){return t?t(e):qy(e)}function BD(e,t,r={},i,a){function n(h){return we(h)}function s(h){return we(h)}function o(h,v,k){var g;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:m}=h,y=new Set((g=h.required)!==null&&g!==void 0?g:[]);function S(_,C,A,O=!1){var F;const N=d(C,A,k[_]);if(!O&&we(N)){let M=s(C)?C:{};M.$ref!==void 0&&(M=Ya(M.$ref,r));const q=new Set((F=M.required)!==null&&F!==void 0?F:[]);if(Object.entries(N).every(([J,X])=>!q.has(J)&&iv(X)))return}N!==void 0&&(k[_]=N)}if(b!==void 0)for(const[_,C]of Object.entries(b))S(_,C,v[_],y.has(_));let x;if(E!==void 0){x=[];const _=Object.entries(E).map(([A,O])=>[new RegExp(A),O]),C=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(v))if(!C.has(A)){const F=_.find(([N])=>N.test(A));F===void 0?x.push(A):S(A,F[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(x!==void 0)for(const C of x)S(C,_,v[C]);else{const C=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(v))C.has(A)||S(A,_,O)}}if(m!==void 0)for(const[_,C]of Object.entries(v))k[_]=C;return k}function l(h,v,k){const{items:g,additionalItems:b}=h;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)k.push(d(g[w],v[w]));else for(let w=0;w<v.length;w+=1)k.push(d(g,v[w]));if(b)for(let w=k.length;w<v.length;w+=1)k.push(d(b,v[w]));return k}function c(h,v,k){const{if:g,then:b,else:w}=h;if(g===void 0)return k;const m=(s(g)?e.isValid(g,v,r):g)?b:w;return m===void 0?k:d(m,v,k)}function u(h,v,k,g){if(!Array.isArray(h)||vo(e,v,r,a))return g;const b=By(h,!0,r),w=Ki(e,r,k,b,0,dr(v),a),E=h[w],m=we(E)?wn(E,r,[]):b[w];return d(m,k,g)}function f(h,v,k){const{anyOf:g}=h;if(!Array.isArray(g))return k;if(v===void 0||Array.isArray(v)&&v.length===0||we(v)&&Object.keys(v).length===0){let b=k;for(const w of g)b=d(w,v,b);return b}return u(g,h,v,k)}function p(h,v,k){const{dependencies:g}=h;if(g===void 0||!n(v))return k;let b=k;for(const[w,E]of Object.entries(g))w in v&&!Array.isArray(E)&&(b=d(E,v,b));return b}function d(h,v,k){if(v===void 0||h===!1)return;if(h===!0||kt(h))return v;let g=h;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ya(b,r),v,k);if(w){g=UD(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)k=d(y[S],v,k)}let E=f(g,v,u(g.oneOf,g,v,k));const m=pr(g);if(m==="object"){if(!n(v))return;E=o(g,v,n(E)?E:{})}else if(m==="array"){if(!Array.isArray(v))return;E=l(g,v,Array.isArray(E)?E:[])}else E===void 0&&(E=v);return p(g,v,c(g,v,E))}return d(t,i)}const mr=Symbol("no Value");function av(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(i=>Vt in i?i[Vt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:mr).filter(i=>i!==mr);return r.length>0?r:void 0}function VD(e,t){const r=av(e);if(!r||r.some(a=>Ue(a,t)))return mr;const i=ae(e,Zn,mr);return i!==mr&&r.some(a=>Ue(a,i))?i:r.length===1?r[0]:void 0}function uf(e,t,r,i,a={},n){let s;if($e(r,ze)){const o={};if($e(i,ze)){const u=ae(i,ze,{});Object.keys(u).forEach(f=>{$e(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,ze,{})),c={};l.forEach(u=>{const f=ae(a,u);let p=ae(i,[ze,u],{}),d=ae(r,[ze,u],{});$e(p,at)&&(p=Mt(e,p,t,f,n)),$e(d,at)&&(d=Mt(e,d,t,f,n));const h=ae(p,"type"),v=ae(d,"type");if(!h||h===v)if($e(o,u)&&delete o[u],v==="object"||v==="array"&&Array.isArray(f)){const k=uf(e,t,d,p,f,n);(k!==void 0||v==="array")&&(c[u]=k)}else{const k=ae(d,Zn,mr),g=ae(p,Zn,mr);k!==mr&&k!==f&&(g===f?o[u]=k:ae(d,"readOnly")===!0&&(o[u]=void 0));const b=ae(d,Vt,mr),w=ae(p,Vt,mr);if(b!==mr&&b!==f&&(o[u]=w===f?b:void 0),$e(a,u)){const E=VD(d,f);E!==mr&&(o[u]=E)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...c}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let o=ae(i,"items"),l=ae(r,"items");if(typeof o=="object"&&typeof l=="object"&&!Array.isArray(o)&&!Array.isArray(l)){$e(o,at)&&(o=Mt(e,o,t,a,n)),$e(l,at)&&(l=Mt(e,l,t,a,n));const c=ae(o,"type"),u=ae(l,"type");if(!c||c===u){const f=ae(r,"maxItems",-1);if(u==="object")s=a.reduce((p,d)=>{const h=uf(e,t,l,o,d,n);return h!==void 0&&(f<0||p.length<f)&&p.push(h),p},[]);else{const p=av(l),d=p?a.filter(h=>p.some(v=>Ue(v,h))):a;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof l=="boolean"&&o===l&&(s=a)}return s}function En(e,t,r,i,a,n=[],s){if(at in t||su in t||zr in t||ou in t){const l=Mt(e,t,i,a,s);if(n.findIndex(u=>Ue(u,l))===-1)return En(e,l,r,i,a,n.concat(l),s)}let o={[Ks]:r.replace(/^\./,"")};if(Oe in t||je in t){const l=Oe in t?t.oneOf:t.anyOf,c=dr(t),u=Ki(e,i,a,l,0,c,s),f=l[u];o={...o,...En(e,f,r,i,a,n,s)}}if(Li in t&&t[Li]!==!1){ot(o,fu,!0);const l=Re(t[Li])?t[Li]:{},c=ae(t,ze,{});for(const u of Object.keys(a??{}))u in c||(o[u]=En(e,l,`${r}.${u}`,i,ae(a,[u]),n,s))}if(qi in t&&Array.isArray(a)){const{items:l,additionalItems:c}=t;Array.isArray(l)?a.forEach((u,f)=>{l[f]?o[f]=En(e,l[f],`${r}.${f}`,i,u,n,s):c?o[f]=En(e,c,`${r}.${f}`,i,u,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((u,f)=>{o[f]=En(e,l,`${r}.${f}`,i,u,n,s)})}else if(ze in t)for(const l in t.properties){const c=ae(t,[ze,l],{});o[l]=En(e,c,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function HD(e,t,r="",i,a,n){return En(e,t,r,i,a,void 0,n)}class WD{constructor(t,r,i,a){(r==null?void 0:r[Da])===Ys?this.rootSchema=zu(r,ae(r,tt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=i,this.experimental_customMergeAllOf=a}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,i={},a){return!t||!r?!1:this.validator!==t||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return OD(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return ts(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return cf(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return qD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return Ki(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return mo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return yo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return tv(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return sf(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return vo(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return BD(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Mt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return uf(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return HD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function KD(e,t,r={},i){return new WD(e,t,r,i)}function GD(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const i=e.slice(5).split(";base64,");if(i.length!==2)throw new Error("File is invalid: dataURI must be base64");const[a,n]=i,[s,...o]=a.split(";"),l=s||"",c=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:l}),name:c}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function An(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function sv(e,t){const r=e<=0&&t<=0,i=e<0||t<0;if(!r&&i)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const a=new Date().getFullYear(),n=r?a+e:e,s=r?a+t:t;if(n>s)return sv(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:An(l,2)});return o}function JD(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const s=i.findIndex(o=>o===`%${n+1}`);s>=0&&(i[s]=a)}),r=i.join("")}return r}function YD(e,t){return JD(e,t)}function bo(e,t=[],r){if(Array.isArray(e))return e.map(n=>bo(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function ov(e,t,r=[]){const i=bo(e,r);return Array.isArray(t)?t.filter(a=>!Ue(a,i)):Ue(i,t)?void 0:t}function Yi(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function lv(e,t=[],r=!1){const i=t.map((a,n)=>Yi(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function XD(e,t,r,i="indexed",a){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===a)return a;if(i==="realValue")return r?e.map(String):String(e);const s=lv(e,t,r);return typeof s>"u"?a:s}function cv(e,t,r=[]){const i=bo(e,r);if(!Gi(i)){const a=r.findIndex(o=>i===o.value),n=r.map(({value:o})=>o);return t.slice(0,a).concat(i,t.slice(a)).sort((o,l)=>+(n.indexOf(o)>n.indexOf(l)))}return t}function uv(e,t,r){if(e===""||!Array.isArray(t))return r;const i=t.find(n=>String(n.value)===e);if(i)return i.value;const a=Number(e);return!Number.isNaN(a)&&a>=0&&a<t.length?t[a].value:r}function Ar(e,t,r="indexed",i){return r!=="realValue"?bo(e,t,i):Array.isArray(e)?e.map(a=>uv(a,t,i)):uv(e,t,i)}function ns(e,t,r="indexed"){return r!=="realValue"?String(t):Gi(e)?"":String(typeof e=="object"?t:e)}var ZD=1,QD=4;function ko(e){return Ka(e,ZD|QD)}function eM(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Vu(e,t,r,i)}class fv{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let i=Array.isArray(t)&&t.length>0||typeof t=="string"?ae(this.errorSchema,t):this.errorSchema;return!i&&t&&(i={},eM(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?ko(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Dt);return Array.isArray(a)||(a=[],i[Dt]=a),Array.isArray(t)?ot(i,Dt,[...new Set([...a,...t])]):ot(i,Dt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return ot(i,Dt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return ot(r,Dt,[]),this}}var tM=200;function rM(e,t,r,i){var a=-1,n=Ju,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;t.length>=tM&&(n=Za,s=!1,t=new ai(t));e:for(;++a<o;){var u=e[a],f=u;if(u=u!==0?u:0,s&&f===f){for(var p=c;p--;)if(t[p]===f)continue e;l.push(u)}else n(t,f,i)||l.push(u)}return l}var nM=co(function(e,t){return Xa(e)?rM(e,Ga(t,1,Xa,!0)):[]});function iM(e,t){if(e==null)return{};var r=$i(Lu(e),function(i){return[i]});return t=Gu(t),rv(e,r,function(i,a){return t(i,a[0])})}function dv(e,t){const r=yn(e),i=yn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Er(e);if(!r&&i)return Er(t);const a=Er(iM(e,(s,o)=>!Ue(s,ae(t,o)))),n=nM(Er(t),Er(e));return[...a,...n]}function aM(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,minute:l,second:c}=e,u={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},p={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,u,p);break;case"DMY":d.push(u,f,p);break;case"YMD":default:d.push(p,f,u)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:c}),d}function sM(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 oM(e,t,r={},i=!0){const a={type:t||"text",...sM(e)};return r.inputType?a.type=r.inputType:t||(e.type==="number"?(a.type="number",i&&a.step===void 0&&(a.step="any")):e.type==="integer"&&(a.type="number",a.step===void 0&&(a.step=1))),["date","datetime-local","time","week","month"].includes(a.type)&&(e.formatMinimum!==void 0&&(a.min=e.formatMinimum),e.formatMaximum!==void 0&&(a.max=e.formatMaximum)),r.autocomplete&&(a.autoComplete=r.autocomplete),r.accept&&(a.accept=r.accept),a}function is(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const pv={props:{disabled:!1},submitText:"Submit",norender:!1};function ff(e={}){const t=pe(e);if(t!=null&&t[Gs]){const r=t[Gs];return{...pv,...r}}return pv}function he(e,t,r={}){const{templates:i}=t;if(e==="ButtonTemplates")return i[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(i,r[e])){const a=r[e];return i[a]}return r[e]||i[e]}var lM=0;function mv(e){var t=++lM;return vu(e)+t}function df(){if(ae(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,mv("test-id-")),e.get(r)}})}var wo={exports:{}},rt={};/**
60
60
  * @license React
61
61
  * react-is.production.min.js
62
62
  *
@@ -64,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(V,X,D,L,B+"."+X,
64
64
  *
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */var av;function KD(){if(av)return rt;av=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function k(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case e:switch(v=v.type,v){case r:case a:case i:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case p:case f:case n:return v;default:return g}}case t:return g}}}return rt.ContextConsumer=o,rt.ContextProvider=n,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=p,rt.Memo=f,rt.Portal=t,rt.Profiler=a,rt.StrictMode=i,rt.Suspense=u,rt.SuspenseList=c,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return k(v)===o},rt.isContextProvider=function(v){return k(v)===n},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return k(v)===l},rt.isFragment=function(v){return k(v)===r},rt.isLazy=function(v){return k(v)===p},rt.isMemo=function(v){return k(v)===f},rt.isPortal=function(v){return k(v)===t},rt.isProfiler=function(v){return k(v)===a},rt.isStrictMode=function(v){return k(v)===i},rt.isSuspense=function(v){return k(v)===u},rt.isSuspenseList=function(v){return k(v)===c},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===i||v===u||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===n||v.$$typeof===o||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},rt.typeOf=k,rt}var nt={};/**
67
+ */var hv;function cM(){if(hv)return rt;hv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function v(k){if(typeof k=="object"&&k!==null){var g=k.$$typeof;switch(g){case e:switch(k=k.type,k){case r:case a:case i:case c:case u:return k;default:switch(k=k&&k.$$typeof,k){case o:case s:case l:case p:case f:case n:return k;default:return g}}case t:return g}}}return rt.ContextConsumer=s,rt.ContextProvider=n,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=p,rt.Memo=f,rt.Portal=t,rt.Profiler=a,rt.StrictMode=i,rt.Suspense=c,rt.SuspenseList=u,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(k){return v(k)===s},rt.isContextProvider=function(k){return v(k)===n},rt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},rt.isForwardRef=function(k){return v(k)===l},rt.isFragment=function(k){return v(k)===r},rt.isLazy=function(k){return v(k)===p},rt.isMemo=function(k){return v(k)===f},rt.isPortal=function(k){return v(k)===t},rt.isProfiler=function(k){return v(k)===a},rt.isStrictMode=function(k){return v(k)===i},rt.isSuspense=function(k){return v(k)===c},rt.isSuspenseList=function(k){return v(k)===u},rt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===a||k===i||k===c||k===u||k===d||typeof k=="object"&&k!==null&&(k.$$typeof===p||k.$$typeof===f||k.$$typeof===n||k.$$typeof===s||k.$$typeof===l||k.$$typeof===h||k.getModuleId!==void 0)},rt.typeOf=v,rt}var nt={};/**
68
68
  * @license React
69
69
  * react-is.development.js
70
70
  *
@@ -72,19 +72,19 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(V,X,D,L,B+"."+X,
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var ov;function GD(){return ov||(ov=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function S(G){return!!(typeof G=="string"||typeof G=="function"||G===r||G===a||b||G===i||G===u||G===c||g||G===d||m||k||v||typeof G=="object"&&G!==null&&(G.$$typeof===p||G.$$typeof===f||G.$$typeof===n||G.$$typeof===o||G.$$typeof===l||G.$$typeof===w||G.getModuleId!==void 0))}function h(G){if(typeof G=="object"&&G!==null){var ie=G.$$typeof;switch(ie){case e:var re=G.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case s:case o:case l:case p:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=o,C=n,x=e,_=l,E=r,A=p,O=f,F=t,T=a,j=i,q=u,H=c,Y=!1,Z=!1;function P(G){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function M(G){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(G){return h(G)===o}function I(G){return h(G)===n}function D(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function L(G){return h(G)===l}function B(G){return h(G)===r}function V(G){return h(G)===p}function W(G){return h(G)===f}function K(G){return h(G)===t}function X(G){return h(G)===a}function z(G){return h(G)===i}function $(G){return h(G)===u}function J(G){return h(G)===c}nt.ContextConsumer=y,nt.ContextProvider=C,nt.Element=x,nt.ForwardRef=_,nt.Fragment=E,nt.Lazy=A,nt.Memo=O,nt.Portal=F,nt.Profiler=T,nt.StrictMode=j,nt.Suspense=q,nt.SuspenseList=H,nt.isAsyncMode=P,nt.isConcurrentMode=M,nt.isContextConsumer=R,nt.isContextProvider=I,nt.isElement=D,nt.isForwardRef=L,nt.isFragment=B,nt.isLazy=V,nt.isMemo=W,nt.isPortal=K,nt.isProfiler=X,nt.isStrictMode=z,nt.isSuspense=$,nt.isSuspenseList=J,nt.isValidElementType=S,nt.typeOf=h})()),nt}var sv;function JD(){return sv||(sv=1,process.env.NODE_ENV==="production"?ks.exports=KD():ks.exports=GD()),ks.exports}var YD=JD();const lv=jr(YD),uf={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 XD(e){var t;let r=ae(e,"MergedWidget");if(!r){const i=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:a,...n})=>N.jsx(e,{options:{...i,...a},...n}),st(e,"MergedWidget",r)}return r}function Vr(e,t,r={}){const i=pr(e);if(typeof t=="function"||t&&lv.isForwardRef(U.createElement(t))||lv.isMemo(t))return XD(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){const a=r[t];return Vr(e,a,r)}if(typeof i=="string"){if(!(i in uf))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in uf[i]){const a=r[uf[i][t]];return Vr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function uv(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t&=t}return t.toString(16)}function cv(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function hr(e){return uv(cv(e))}function ZD(e){return uv(cv(e))}function QD(e,t,r={}){try{return Vr(e,t,r),!0}catch(i){const a=i;if(a.message&&(a.message.startsWith("No widget")||a.message.startsWith("Unsupported widget")))return!1;throw i}}function ui(e,t){return`${bn(e)?e:e[tt]}__${t}`}function xn(e){return ui(e,"description")}function cf(e){return ui(e,"error")}function ff(e){return ui(e,"examples")}function df(e){return ui(e,"help")}function ws(e){return ui(e,"title")}function xr(e,t=!1){const r=t?` ${ff(e)}`:"";return`${cf(e)} ${xn(e)} ${df(e)}${r}`}function Ss(e,t){return`${e}-${t}`}function rr(e,t){return ui(e,t)}function pf(e,t){return ui(e,`optional${t}`)}function Xi(e){return!Gi(e)&&(!Re(e)||Array.isArray(e)||!kt(e))}function eM(e,t){const{rootSchema:r,schemaUtils:i}=e;if(Ue(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return Ue(t,a)}return!1}function tM(e,t,r){return t?r:e}function rM(e){return e?new Date(e).toJSON():void 0}function nM(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Zy(t.default,r,i)===void 0&&console.error(`The schema default value "${t.default}" is not one of the values in the enum options for "${e}"`)}function mf(e,t,r){const i=[zO];return $e(e,Nh)&&i.unshift(Nh),ae(e,[...i,t],r)}function iM(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,p)=>(f[p]=!0,f),{}),i=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,a=r(e),n=t.filter(c=>c==="*"||a[c]),o=r(n),s=e.filter(c=>!o[c]),l=n.indexOf("*");if(l===-1){if(s.length)throw new Error(`uiSchema order list does not contain ${i(s)}`);return n}if(l!==n.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...n];return u.splice(l,1,...s),u}function hf(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 aM(e,t,r){var i,a;const n=(i=e[Jo])!==null&&i!==void 0?i:e[at],o=r.uiSchemaDefinitions,s=n&&o?o[n]:void 0;let l;if(s?!t||kt(t)?l={...s}:l=Sn(s,t):l=t||{},o){let u=e;if(n&&e[at]&&!e[Jo])try{u=Ja(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
- `,c),l}for(const c of[xe,je]){const f=u[c];if(Array.isArray(f)&&f.length>0){const p=l[c],d=Array.isArray(p)?[...p]:[];let m=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Jo])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in o){const b=d[k]||{};d[k]=Sn(o[g],b),m=!0}}m&&(l[c]=d)}}}return l}function io(e){var t,r,i;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 io(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return io(e.oneOf[0]);if(e.allOf){const a=n=>io(n);return e.allOf.some(a)}return!1}function oM({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:o}){var s,l;if(r||e)return null;const{label:u=!0}=pe(n,a.globalUiOptions);if(!u)return null;const c=(s=i.enumOptions)===null||s===void 0?void 0:s.find(({value:d})=>Yi(d,o)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const p=he("DescriptionFieldTemplate",a,i);return N.jsx(p,{id:xn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function gf(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),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a=0;a<r.length;a+=1){const n=r[a];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function sM(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:o,state:s}=e;return!gf(o,t)||!gf(s,r)}const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function fv(e){const t=dy(e.map(r=>Re(r)?pr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function ao(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=pe(i,e.globalUiOptions);let n;return je in t&&Array.isArray(t[je])?n=fv(t[je]):xe in t&&Array.isArray(t[xe])?n=fv(t[xe]):n=pr(t),!eM(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(o=>o===n)}function dv(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:o=0,second:s=0}=e,l=Date.UTC(r,i-1,a,n,o,s),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function yf(e,t=[]){if(!e)return[];let r=[];return Dt in e&&(r=r.concat(e[Dt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Dt){const n=e[a];if(yn(n))return i.concat(yf(n,[...t,a]))}return i},r)}function pv(e){return Tt(e)?$i(e,vn):Ma(e)?[e]:Ic(Uh(hc(e)))}function lM(e){const t=new tv;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:pv(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Or(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],o=a?a.concat(...n):n,s=[t.idPrefix,...o].join(t.idSeparator);let l;return t.nameGenerator&&o.length>0&&(l=t.nameGenerator(o,t.idPrefix,i)),{path:o,[tt]:s,...l!==void 0&&{name:l}}}function mv(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return yn(i)?{...t,[r]:mv(i)}:{...t,[r]:i}},{})}function uM(e){return Object.values(e).every(t=>t!==-1)}function cM(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:o,name:s,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:p,onFocus:d}=e,m=`${o}_${r}`,{SelectWidget:k}=f.widgets,v=U.useCallback(g=>n(r,g),[n,r]);return N.jsx(k,{schema:{type:"integer"},id:m,name:s,className:t,options:{enumOptions:Yy(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":xr(o)})}function fM(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:o}=e,[s,l]=U.useState(hf(o,t));U.useEffect(()=>{l(hf(o,t))},[t,o]);const u=U.useCallback((d,m)=>{const k={...s,[d]:typeof m>"u"?-1:m};uM(k)?n(dv(k,t)):l(k)},[s,n,t]),c=U.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=U.useCallback(d=>{if(d.preventDefault(),r||i)return;const m=hf(new Date().toJSON(),t);n(dv(m,t))},[r,i,t,n]);return{elements:U.useMemo(()=>BD(s,t,a.yearsRange,a.format),[s,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function Zi(e){const t=U.useRef(e);return Ue(e,t.current)||(t.current=e),t.current}function dM(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function pM(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const o=new window.FileReader;o.onerror=n,o.onload=s=>{var l;typeof((l=s.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:dM(s.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},o.readAsDataURL(e)})}async function mM(e){return Promise.all(Array.from(e).map(pM))}function hv(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=ND(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function hM(e,t,r=!1){const i=U.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=U.useMemo(()=>Array.isArray(e)?hv(e):hv([e||""]),[e]),n=U.useCallback(async s=>{const u=(await mM(s)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),o=U.useCallback(s=>{if(r){const l=i.filter((u,c)=>c!==s);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:o}}function gM(e){if(!e)return"";const t=new Date(e),r=An(t.getFullYear(),4),i=An(t.getMonth()+1,2),a=An(t.getDate(),2),n=An(t.getHours(),2),o=An(t.getMinutes(),2),s=An(t.getSeconds(),2),l=An(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${o}:${s}.${l}`}function oo(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=yf(t),o=t;return kt(a)||(o=Sn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:o,errors:n}}function yM(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const i=t[r];r===at&&typeof i=="string"&&i.startsWith("#")?t[r]=Dh+i:t[r]=vf(i)}return e}function vM(e){return e.map(t=>vf(t))}function vf(e){return Array.isArray(e)?vM([...e]):Re(e)?yM({...e}):e}var Oe;(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)"})(Oe||(Oe={}));function bM(e,t){var r=Tt(e)?Oc:Ly;return r(e,Yg(t))}function kM(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,o=t!=="anyOf"?n==null?void 0:n.indexOf(`/${je}/`):void 0,s=t!=="oneOf"?n==null?void 0:n.indexOf(`/${xe}/`):void 0;let l;return o&&o>=0?l=n==null?void 0:n.substring(0,o):s&&s>=0&&(l=n==null?void 0:n.substring(0,s)),(l?r.find(c=>{var f;return c.message===a&&((f=c.schemaPath)===null||f===void 0?void 0:f.startsWith(l))}):void 0)||r.push(i),r},[])}function wM(e=[],t,r,i){const a=e.map(n=>{var o;const{instancePath:s,keyword:l,params:u,schemaPath:c,parentSchema:f,...p}=n;let{message:d=""}=p,m=s.replace(/\//g,"."),k=`${m} ${d}`.trim(),v="";const g=[...((o=u.deps)===null||o===void 0?void 0:o.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=m?`${m}.${b}`:b;let S=pe(ae(t,w.replace(/^\./,""))).title;if(S===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);S=pe(ae(t,h)).title}if(S===void 0){const h=m.replace(/^\./,"").split(".").filter(Boolean);S=ae(t,[...h,b,"title"])}if(S)d=d.replace(`'${b}'`,`'${S}'`),v=S;else{const h=ae(f,[ze,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=m.replace(/^\./,"").split(".").filter(Boolean),C=[];for(const _ of y)C.push(ze,_);C.push(ze,b,"title");const x=ae(i,C);x&&(d=d.replace(`'${b}'`,`'${x}'`),v=x)}}}),k=d;else{const b=pe(ae(t,m.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 u&&(m=m?`${m}.${u.missingProperty}`:u.missingProperty),{name:l,property:m,message:d,params:u,stack:k,schemaPath:c,title:v}});return kM(a,r)}function SM(e,t,r,i,a,n,o,s){const{validationError:l}=t;let u=wM(t.errors,o,s,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,o));let c=lM(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=By(e,i,r,i,!0),p=a(f,fc(f),o,c),d=mv(p);return oo({errors:u,errorSchema:c},d)}var Cs={exports:{}},bf={},sn={},ci={},kf={},wf={},Sf={},gv;function Es(){return gv||(gv=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 i 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,S)=>`${w}${S}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,S)=>(S instanceof r&&(w[S.str]=(w[S.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let S=0;for(;S<b.length;)s(w,b[S]),w.push(g[++S]);return new i(w)}e._=a;const n=new i("+");function o(g,...b){const w=[d(g[0])];let S=0;for(;S<b.length;)w.push(n),s(w,b[S]),w.push(n,d(g[++S]));return l(w),new i(w)}e.str=o;function s(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=s;function l(g){let b=1;for(;b<g.length-1;){if(g[b]===n){const w=u(g[b-1],g[b+1]);if(w!==void 0){g.splice(b-1,3,w);continue}g[b++]="+"}b++}}function u(g,b){if(b==='""')return g;if(g==='""')return b;if(typeof g=="string")return b instanceof r||g[g.length-1]!=='"'?void 0:typeof b!="string"?`${g.slice(0,-1)}${b}"`:b[0]==='"'?g.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(g instanceof r))return`"${g}${b.slice(1)}`}function c(g,b){return b.emptyStr()?g:g.emptyStr()?b:o`${g}${b}`}e.strConcat=c;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function p(g){return new i(d(g))}e.stringify=p;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function m(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=m;function k(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new i(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(g){return new i(g.toString())}e.regexpCode=v})(Sf)),Sf}var Cf={},yv;function vv(){return yv||(yv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Es();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:u,parent:c}={}){this._names={},this._prefixes=u,this._parent=c}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const c=this._names[u]||this._nameGroup(u);return`${u}${c.index++}`}_nameGroup(u){var c,f;if(!((f=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=a;class n extends t.Name{constructor(u,c){super(c),this.prefix=u}setValue(u,{property:c,itemIndex:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(c)}[${f}]`}}e.ValueScopeName=n;const o=(0,t._)`\n`;class s extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?o:t.nil}}get(){return this._scope}name(u){return new n(u,this._newName(u))}value(u,c){var f;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(u),{prefix:d}=p,m=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(m);if(b)return b}else k=this._values[d]=new Map;k.set(m,p);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,p.setValue(c,{property:d,itemIndex:g}),p}getValue(u,c){const f=this._values[u];if(f)return f.get(c)}scopeRefs(u,c=this._values){return this._reduceValues(c,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,c,f){return this._reduceValues(u,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},c,f)}_reduceValues(u,c,f={},p){let d=t.nil;for(const m in u){const k=u[m];if(!k)continue;const v=f[m]=f[m]||new Map;k.forEach(g=>{if(v.has(g))return;v.set(g,i.Started);let b=c(g);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=s})(Cf)),Cf}var bv;function Ie(){return bv||(bv=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=Es(),r=vv();var i=Es();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var a=vv();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.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(D,L){return this}}class o extends n{constructor(D,L,B){super(),this.varKind=D,this.name=L,this.rhs=B}render({es5:D,_n:L}){const B=D?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+L}optimizeNames(D,L){if(D[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,D,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends n{constructor(D,L,B){super(),this.lhs=D,this.rhs=L,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,L){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,D,L),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(D,this.rhs)}}class l extends s{constructor(D,L,B,V){super(D,B,V),this.op=L}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class u extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class c extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends n{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends n{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,L){return this.code=T(this.code,D,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((L,B)=>L+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let L=D.length;for(;L--;){const B=D[L].optimizeNodes();Array.isArray(B)?D.splice(L,1,...B):B?D[L]=B:D.splice(L,1)}return D.length>0?this:void 0}optimizeNames(D,L){const{nodes:B}=this;let V=B.length;for(;V--;){const W=B[V];W.optimizeNames(D,L)||(j(D,W.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,L)=>O(D,L.names),{})}}class m extends d{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class k extends d{}class v extends m{}v.kind="else";class g extends m{constructor(D,L){super(L),this.condition=D}render(D){let L=`if(${this.condition})`+super.render(D);return this.else&&(L+="else "+this.else.render(D)),L}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new v(B):B}if(L)return D===!1?L instanceof g?L:L.nodes:this.nodes.length?this:new g(q(D),L instanceof g?[L]:L.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,L),!!(super.optimizeNames(D,L)||this.else))return this.condition=T(this.condition,D,L),this}get names(){const D=super.names;return F(D,this.condition),this.else&&O(D,this.else.names),D}}g.kind="if";class b extends m{}b.kind="for";class w extends b{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iteration=T(this.iteration,D,L),this}get names(){return O(super.names,this.iteration.names)}}class S extends b{constructor(D,L,B,V){super(),this.varKind=D,this.name=L,this.from=B,this.to=V}render(D){const L=D.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:W}=this;return`for(${L} ${B}=${V}; ${B}<${W}; ${B}++)`+super.render(D)}get names(){const D=F(super.names,this.from);return F(D,this.to)}}class h extends b{constructor(D,L,B,V){super(),this.loop=D,this.varKind=L,this.name=B,this.iterable=V}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iterable=T(this.iterable,D,L),this}get names(){return O(super.names,this.iterable.names)}}class y extends m{constructor(D,L,B){super(),this.name=D,this.args=L,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}y.kind="func";class C extends d{render(D){return"return "+super.render(D)}}C.kind="return";class x extends m{render(D){let L="try"+super.render(D);return this.catch&&(L+=this.catch.render(D)),this.finally&&(L+=this.finally.render(D)),L}optimizeNodes(){var D,L;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(D,L){var B,V;return super.optimizeNames(D,L),(B=this.catch)===null||B===void 0||B.optimizeNames(D,L),(V=this.finally)===null||V===void 0||V.optimizeNames(D,L),this}get names(){const D=super.names;return this.catch&&O(D,this.catch.names),this.finally&&O(D,this.finally.names),D}}class _ extends m{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}_.kind="catch";class E extends m{render(D){return"finally"+super.render(D)}}E.kind="finally";class A{constructor(D,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
77
- `:""},this._extScope=D,this._scope=new r.Scope({parent:D}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,L){const B=this._extScope.value(D,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,L){return this._extScope.getValue(D,L)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,L,B,V){const W=this._scope.toName(L);return B!==void 0&&V&&(this._constants[W.str]=B),this._leafNode(new o(D,W,B)),W}const(D,L,B){return this._def(r.varKinds.const,D,L,B)}let(D,L,B){return this._def(r.varKinds.let,D,L,B)}var(D,L,B){return this._def(r.varKinds.var,D,L,B)}assign(D,L,B){return this._leafNode(new s(D,L,B))}add(D,L){return this._leafNode(new l(D,e.operators.ADD,L))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const L=["{"];for(const[B,V]of D)L.length>1&&L.push(","),L.push(B),(B!==V||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,V));return L.push("}"),new t._Code(L)}if(D,L,B){if(this._blockNode(new g(D)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(D,L){return this._blockNode(D),L&&this.code(L).endFor(),this}for(D,L){return this._for(new w(D),L)}forRange(D,L,B,V,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const K=this._scope.toName(D);return this._for(new S(W,K,L,B),()=>V(K))}forOf(D,L,B,V=r.varKinds.const){const W=this._scope.toName(D);if(this.opts.es5){const K=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${K}.length`,X=>{this.var(W,(0,t._)`${K}[${X}]`),B(W)})}return this._for(new h("of",V,W,L),()=>B(W))}forIn(D,L,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${L})`,B);const W=this._scope.toName(D);return this._for(new h("in",V,W,L),()=>B(W))}endFor(){return this._endBlockNode(b)}label(D){return this._leafNode(new u(D))}break(D){return this._leafNode(new c(D))}return(D){const L=new C;if(this._blockNode(L),this.code(D),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(D,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new x;if(this._blockNode(V),this.code(D),L){const W=this.name("e");this._currNode=V.catch=new _(W),L(W)}return B&&(this._currNode=V.finally=new E,this.code(B)),this._endBlockNode(_,E)}throw(D){return this._leafNode(new f(D))}block(D,L){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(L),this}endBlock(D){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=L,this}func(D,L=t.nil,B,V){return this._blockNode(new y(D,L,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,L){const B=this._currNode;if(B instanceof D||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${D.kind}/${L.kind}`:D.kind}"`)}_elseNode(D){const L=this._currNode;if(!(L instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const L=this._nodes;L[L.length-1]=D}}e.CodeGen=A;function O(I,D){for(const L in D)I[L]=(I[L]||0)+(D[L]||0);return I}function F(I,D){return D instanceof t._CodeOrName?O(I,D.names):I}function T(I,D,L){if(I instanceof t.Name)return B(I);if(!V(I))return I;return new t._Code(I._items.reduce((W,K)=>(K instanceof t.Name&&(K=B(K)),K instanceof t._Code?W.push(...K._items):W.push(K),W),[]));function B(W){const K=L[W.str];return K===void 0||D[W.str]!==1?W:(delete D[W.str],K)}function V(W){return W instanceof t._Code&&W._items.some(K=>K instanceof t.Name&&D[K.str]===1&&L[K.str]!==void 0)}}function j(I,D){for(const L in D)I[L]=(I[L]||0)-(D[L]||0)}function q(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${R(I)}`}e.not=q;const H=M(e.operators.AND);function Y(...I){return I.reduce(H)}e.and=Y;const Z=M(e.operators.OR);function P(...I){return I.reduce(Z)}e.or=P;function M(I){return(D,L)=>D===t.nil?L:L===t.nil?D:(0,t._)`${R(D)} ${I} ${R(L)}`}function R(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(wf)),wf}var Te={},kv;function Ve(){if(kv)return Te;kv=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.checkStrictMode=Te.getErrorPath=Te.Type=Te.useFunc=Te.setEvaluated=Te.evaluatedPropsToName=Te.mergeEvaluated=Te.eachItem=Te.unescapeJsonPointer=Te.escapeJsonPointer=Te.escapeFragment=Te.unescapeFragment=Te.schemaRefOrVal=Te.schemaHasRulesButRef=Te.schemaHasRules=Te.checkUnknownRules=Te.alwaysValidSchema=Te.toHash=void 0;const e=Ie(),t=Es();function r(h){const y={};for(const C of h)y[C]=!0;return y}Te.toHash=r;function i(h,y){return typeof y=="boolean"?y:Object.keys(y).length===0?!0:(a(h,y),!n(y,h.self.RULES.all))}Te.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:C,self:x}=h;if(!C.strictSchema||typeof y=="boolean")return;const _=x.RULES.keywords;for(const E in y)_[E]||S(h,`unknown keyword: "${E}"`)}Te.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(y[C])return!0;return!1}Te.schemaHasRules=n;function o(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(C!=="$ref"&&y.all[C])return!0;return!1}Te.schemaHasRulesButRef=o;function s({topSchemaRef:h,schemaPath:y},C,x,_){if(!_){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${h}${y}${(0,e.getProperty)(x)}`}Te.schemaRefOrVal=s;function l(h){return f(decodeURIComponent(h))}Te.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Te.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Te.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Te.unescapeJsonPointer=f;function p(h,y){if(Array.isArray(h))for(const C of h)y(C);else y(h)}Te.eachItem=p;function d({mergeNames:h,mergeToName:y,mergeValues:C,resultToName:x}){return(_,E,A,O)=>{const F=A===void 0?E:A instanceof e.Name?(E instanceof e.Name?h(_,E,A):y(_,E,A),A):E instanceof e.Name?(y(_,A,E),E):C(E,A);return O===e.Name&&!(F instanceof e.Name)?x(_,F):F}}Te.mergeEvaluated={props:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(C,!0),()=>h.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${y})`))}),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>{y===!0?h.assign(C,!0):(h.assign(C,(0,e._)`${C} || {}`),k(h,C,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:m}),items:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>h.assign(C,(0,e._)`${y} === true ? true : ${C} > ${y} ? ${C} : ${y}`)),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>h.assign(C,y===!0?!0:(0,e._)`${C} > ${y} ? ${C} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function m(h,y){if(y===!0)return h.var("props",!0);const C=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,C,y),C}Te.evaluatedPropsToName=m;function k(h,y,C){Object.keys(C).forEach(x=>h.assign((0,e._)`${y}${(0,e.getProperty)(x)}`,!0))}Te.setEvaluated=k;const v={};function g(h,y){return h.scopeValue("func",{ref:y,code:v[y.code]||(v[y.code]=new t._Code(y.code))})}Te.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Te.Type=b={}));function w(h,y,C){if(h instanceof e.Name){const x=y===b.Num;return C?x?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:x?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(h).toString():"/"+c(h)}Te.getErrorPath=w;function S(h,y,C=h.opts.strictSchema){if(C){if(y=`strict mode: ${y}`,C===!0)throw new Error(y);h.self.logger.warn(y)}}return Te.checkStrictMode=S,Te}var As={},wv;function On(){if(wv)return As;wv=1,Object.defineProperty(As,"__esModule",{value:!0});const e=Ie(),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 As.default=t,As}var Sv;function xs(){return Sv||(Sv=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=Ie(),r=Ve(),i=On();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:g})=>g?(0,t.str)`"${v}" keyword must be ${g} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function a(v,g=e.keywordError,b,w){const{it:S}=v,{gen:h,compositeRule:y,allErrors:C}=S,x=f(v,g,b);w??(y||C)?l(h,x):u(S,(0,t._)`[${x}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:S,compositeRule:h,allErrors:y}=w,C=f(v,g,b);l(S,C),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function o(v,g){v.assign(i.default.errors,g),v.if((0,t._)`${i.default.vErrors} !== null`,()=>v.if(g,()=>v.assign((0,t._)`${i.default.vErrors}.length`,g),()=>v.assign(i.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:v,keyword:g,schemaValue:b,data:w,errsCount:S,it:h}){if(S===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",S,i.default.errors,C=>{v.const(y,(0,t._)`${i.default.vErrors}[${C}]`),v.if((0,t._)`${y}.instancePath === undefined`,()=>v.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,h.errorPath))),v.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${g}`),h.opts.verbose&&(v.assign((0,t._)`${y}.schema`,b),v.assign((0,t._)`${y}.data`,w))})}e.extendErrors=s;function l(v,g){const b=v.const("err",g);v.if((0,t._)`${i.default.vErrors} === null`,()=>v.assign(i.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${i.default.vErrors}.push(${b})`),v.code((0,t._)`${i.default.errors}++`)}function u(v,g){const{gen:b,validateName:w,schemaEnv:S}=v;S.$async?b.throw((0,t._)`new ${v.ValidationError}(${g})`):(b.assign((0,t._)`${w}.errors`,g),b.return(!1))}const c={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,g,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,g,b)}function p(v,g,b={}){const{gen:w,it:S}=v,h=[d(S,b),m(v,b)];return k(v,g,h),w.object(...h)}function d({errorPath:v},{instancePath:g}){const b=g?(0,t.str)`${v}${(0,r.getErrorPath)(g,r.Type.Str)}`:v;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,b)]}function m({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let S=w?g:(0,t.str)`${g}/${v}`;return b&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,S]}function k(v,{params:g,message:b},w){const{keyword:S,data:h,schemaValue:y,it:C}=v,{opts:x,propertyName:_,topSchemaRef:E,schemaPath:A}=C;w.push([c.keyword,S],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),x.messages&&w.push([c.message,typeof b=="function"?b(v):b]),x.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${E}${A}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(kf)),kf}var Cv;function CM(){if(Cv)return ci;Cv=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.boolOrEmptySchema=ci.topBoolOrEmptySchema=void 0;const e=xs(),t=Ie(),r=On(),i={message:"boolean schema is false"};function a(s){const{gen:l,schema:u,validateName:c}=s;u===!1?o(s,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}ci.topBoolOrEmptySchema=a;function n(s,l){const{gen:u,schema:c}=s;c===!1?(u.var(l,!1),o(s)):u.var(l,!0)}ci.boolOrEmptySchema=n;function o(s,l){const{gen:u,data:c}=s,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:s};(0,e.reportError)(f,i,void 0,l)}return ci}var jt={},fi={},Ev;function Av(){if(Ev)return fi;Ev=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.getRules=fi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(a){return typeof a=="string"&&t.has(a)}fi.isJSONType=r;function i(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return fi.getRules=i,fi}var ln={},xv;function Ov(){if(xv)return ln;xv=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const o=a.RULES.types[n];return o&&o!==!0&&t(i,o)}ln.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}ln.shouldUseGroup=t;function r(i,a){var n;return i[a.keyword]!==void 0||((n=a.definition.implements)===null||n===void 0?void 0:n.some(o=>i[o]!==void 0))}return ln.shouldUseRule=r,ln}var _v;function Os(){if(_v)return jt;_v=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.reportTypeError=jt.checkDataTypes=jt.checkDataType=jt.coerceAndCheckDataType=jt.getJSONTypes=jt.getSchemaTypes=jt.DataType=void 0;const e=Av(),t=Ov(),r=xs(),i=Ie(),a=Ve();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(jt.DataType=n={}));function o(b){const w=s(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}jt.getSchemaTypes=o;function s(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}jt.getJSONTypes=s;function l(b,w){const{gen:S,data:h,opts:y}=b,C=c(w,y.coerceTypes),x=w.length>0&&!(C.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(x){const _=m(w,h,y.strictNumbers,n.Wrong);S.if(_,()=>{C.length?f(b,w,C):v(b)})}return x}jt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(S=>u.has(S)||w==="array"&&S==="array"):[]}function f(b,w,S){const{gen:h,data:y,opts:C}=b,x=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);C.coerceTypes==="array"&&h.if((0,i._)`${x} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(x,(0,i._)`typeof ${y}`).if(m(w,y,C.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const A of S)(u.has(A)||A==="array"&&C.coerceTypes==="array")&&E(A);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),p(b,_)});function E(A){switch(A){case"string":h.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${x} == "boolean" || ${y} === null
78
- || (${x} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${x} === "boolean" || ${y} === null
79
- || (${x} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(_,(0,i._)`+${y}`);return;case"boolean":h.elseIf((0,i._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(_,!1).elseIf((0,i._)`${y} === "true" || ${y} === 1`).assign(_,!0);return;case"null":h.elseIf((0,i._)`${y} === "" || ${y} === 0 || ${y} === false`),h.assign(_,null);return;case"array":h.elseIf((0,i._)`${x} === "string" || ${x} === "number"
80
- || ${x} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function p({gen:b,parentData:w,parentDataProperty:S},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${S}]`,h))}function d(b,w,S,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let C;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":C=(0,i._)`Array.isArray(${w})`;break;case"object":C=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":C=x((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":C=x();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?C:(0,i.not)(C);function x(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,S?(0,i._)`isFinite(${w})`:i.nil)}}jt.checkDataType=d;function m(b,w,S,h){if(b.length===1)return d(b[0],w,S,h);let y;const C=(0,a.toHash)(b);if(C.array&&C.object){const x=(0,i._)`typeof ${w} != "object"`;y=C.null?x:(0,i._)`!${w} || ${x}`,delete C.null,delete C.array,delete C.object}else y=i.nil;C.number&&delete C.integer;for(const x in C)y=(0,i.and)(y,d(x,w,S,h));return y}jt.checkDataTypes=m;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${w}}`};function v(b){const w=g(b);(0,r.reportError)(w,k)}jt.reportTypeError=v;function g(b){const{gen:w,data:S,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:S,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return jt}var so={},Pv;function EM(){if(Pv)return so;Pv=1,Object.defineProperty(so,"__esModule",{value:!0}),so.assignDefaults=void 0;const e=Ie(),t=Ve();function r(a,n){const{properties:o,items:s}=a.schema;if(n==="object"&&o)for(const l in o)i(a,l,o[l].default);else n==="array"&&Array.isArray(s)&&s.forEach((l,u)=>i(a,u,l.default))}so.assignDefaults=r;function i(a,n,o){const{gen:s,compositeRule:l,data:u,opts:c}=a;if(o===void 0)return;const f=(0,e._)`${u}${(0,e.getProperty)(n)}`;if(l){(0,t.checkStrictMode)(a,`default is ignored for: ${f}`);return}let p=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),s.if(p,(0,e._)`${f} = ${(0,e.stringify)(o)}`)}return so}var _r={},ot={},Iv;function Pr(){if(Iv)return ot;Iv=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.validateUnion=ot.validateArray=ot.usePattern=ot.callValidateCode=ot.schemaProperties=ot.allSchemaProperties=ot.noPropertyInData=ot.propertyInData=ot.isOwnProperty=ot.hasPropFunc=ot.reportMissingProp=ot.checkMissingProp=ot.checkReportMissingProp=void 0;const e=Ie(),t=Ve(),r=On(),i=Ve();function a(b,w){const{gen:S,data:h,it:y}=b;S.if(c(S,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}ot.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:S}},h,y){return(0,e.or)(...h.map(C=>(0,e.and)(c(b,w,C,S.ownProperties),(0,e._)`${y} = ${C}`)))}ot.checkMissingProp=n;function o(b,w){b.setParams({missingProperty:w},!0),b.error()}ot.reportMissingProp=o;function s(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ot.hasPropFunc=s;function l(b,w,S){return(0,e._)`${s(b)}.call(${w}, ${S})`}ot.isOwnProperty=l;function u(b,w,S,h){const y=(0,e._)`${w}${(0,e.getProperty)(S)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,S)}`:y}ot.propertyInData=u;function c(b,w,S,h){const y=(0,e._)`${w}${(0,e.getProperty)(S)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,S))):y}ot.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}ot.allSchemaProperties=f;function p(b,w){return f(w).filter(S=>!(0,t.alwaysValidSchema)(b,w[S]))}ot.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:S,topSchemaRef:h,schemaPath:y,errorPath:C},it:x},_,E,A){const O=A?(0,e._)`${b}, ${w}, ${h}${y}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${S.object(...F)}`;return E!==e.nil?(0,e._)`${_}.call(${E}, ${T})`:(0,e._)`${_}(${T})`}ot.callValidateCode=d;const m=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},S){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,C=y(S,h);return b.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,e._)`${y.code==="new RegExp"?m:(0,i.useFunc)(b,y)}(${S}, ${h})`})}ot.usePattern=k;function v(b){const{gen:w,data:S,keyword:h,it:y}=b,C=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return x(()=>w.assign(_,!1)),_}return w.var(C,!0),x(()=>w.break()),C;function x(_){const E=w.const("len",(0,e._)`${S}.length`);w.forRange("i",0,E,A=>{b.subschema({keyword:h,dataProp:A,dataPropType:t.Type.Num},C),w.if((0,e.not)(C),_)})}}ot.validateArray=v;function g(b){const{gen:w,schema:S,keyword:h,it:y}=b;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(E=>(0,t.alwaysValidSchema)(y,E))&&!y.opts.unevaluated)return;const x=w.let("valid",!1),_=w.name("_valid");w.block(()=>S.forEach((E,A)=>{const O=b.subschema({keyword:h,schemaProp:A,compositeRule:!0},_);w.assign(x,(0,e._)`${x} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(x))})),b.result(x,()=>b.reset(),()=>b.error(!0))}return ot.validateUnion=g,ot}var Tv;function AM(){if(Tv)return _r;Tv=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateKeywordUsage=_r.validSchemaType=_r.funcKeywordCode=_r.macroKeywordCode=void 0;const e=Ie(),t=On(),r=Pr(),i=xs();function a(p,d){const{gen:m,keyword:k,schema:v,parentSchema:g,it:b}=p,w=d.macro.call(b.self,v,g,b),S=u(m,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=m.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:S,compositeRule:!0},h),p.pass(h,()=>p.error(!0))}_r.macroKeywordCode=a;function n(p,d){var m;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:S}=p;l(S,d);const h=!w&&d.compile?d.compile.call(S.self,g,b,S):d.validate,y=u(k,v,h),C=k.let("valid");p.block$data(C,x),p.ok((m=d.valid)!==null&&m!==void 0?m:C);function x(){if(d.errors===!1)A(),d.modifying&&o(p),O(()=>p.error());else{const F=d.async?_():E();d.modifying&&o(p),O(()=>s(p,F))}}function _(){const F=k.let("ruleErrs",null);return k.try(()=>A((0,e._)`await `),T=>k.assign(C,!1).if((0,e._)`${T} instanceof ${S.ValidationError}`,()=>k.assign(F,(0,e._)`${T}.errors`),()=>k.throw(T))),F}function E(){const F=(0,e._)`${y}.errors`;return k.assign(F,null),A(e.nil),F}function A(F=d.async?(0,e._)`await `:e.nil){const T=S.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(C,(0,e._)`${F}${(0,r.callValidateCode)(p,y,T,j)}`,d.modifying)}function O(F){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:C),F)}}_r.funcKeywordCode=n;function o(p){const{gen:d,data:m,it:k}=p;d.if(k.parentData,()=>d.assign(m,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function s(p,d){const{gen:m}=p;m.if((0,e._)`Array.isArray(${d})`,()=>{m.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,i.extendErrors)(p)},()=>p.error())}function l({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function u(p,d,m){if(m===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,e.stringify)(m)})}function c(p,d,m=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||m&&typeof p>"u")}_r.validSchemaType=c;function f({schema:p,opts:d,self:m,errSchemaPath:k},v,g){if(Array.isArray(v.keyword)?!v.keyword.includes(g):v.keyword!==g)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[g])){const S=`keyword "${g}" value is invalid at path "${k}": `+m.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")m.logger.error(S);else throw new Error(S)}}return _r.validateKeywordUsage=f,_r}var un={},Nv;function xM(){if(Nv)return un;Nv=1,Object.defineProperty(un,"__esModule",{value:!0}),un.extendSubschemaMode=un.extendSubschemaData=un.getSubschema=void 0;const e=Ie(),t=Ve();function r(n,{keyword:o,schemaProp:s,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(o!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(o!==void 0){const p=n.schema[o];return s===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:p[s],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(s)}`}}if(l!==void 0){if(u===void 0||c===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:f,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}un.getSubschema=r;function i(n,o,{dataProp:s,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=o;if(s!==void 0){const{errorPath:m,dataPathArr:k,opts:v}=o,g=p.let("data",(0,e._)`${o.data}${(0,e.getProperty)(s)}`,!0);d(g),n.errorPath=(0,e.str)`${m}${(0,t.getErrorPath)(s,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${s}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const m=u instanceof e.Name?u:p.let("data",u,!0);d(m),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(m){n.data=m,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,m]}}un.extendSubschemaData=i;function a(n,{jtdDiscriminator:o,jtdMetadata:s,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(n.compositeRule=l),u!==void 0&&(n.createErrors=u),c!==void 0&&(n.allErrors=c),n.jtdDiscriminator=o,n.jtdMetadata=s}return un.extendSubschemaMode=a,un}var Ht={},Ef,Fv;function Dv(){return Fv||(Fv=1,Ef=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 i,a,n;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(t[a],r[a]))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),i=n.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[a]))return!1;for(a=i;a--!==0;){var o=n[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),Ef}var Af={exports:{}},Mv;function OM(){if(Mv)return Af.exports;Mv=1;var e=Af.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var o=typeof n=="function"?n:n.pre||function(){},s=n.post||function(){};t(a,o,s,i,"",i)};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(i,a,n,o,s,l,u,c,f,p){if(o&&typeof o=="object"&&!Array.isArray(o)){a(o,s,l,u,c,f,p);for(var d in o){var m=o[d];if(Array.isArray(m)){if(d in e.arrayKeywords)for(var k=0;k<m.length;k++)t(i,a,n,m[k],s+"/"+d+"/"+k,l,s,d,o,k)}else if(d in e.propsKeywords){if(m&&typeof m=="object")for(var v in m)t(i,a,n,m[v],s+"/"+d+"/"+r(v),l,s,d,o,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,m,s+"/"+d,l,s,d,o)}n(o,s,l,u,c,f,p)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Af.exports}var jv;function _s(){if(jv)return Ht;jv=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getSchemaRefs=Ht.resolveUrl=Ht.normalizeId=Ht._getFullPath=Ht.getFullPath=Ht.inlineRef=void 0;const e=Ve(),t=Dv(),r=OM(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(k,v=!0){return typeof k=="boolean"?!0:v===!0?!o(k):v?s(k)<=v:!1}Ht.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(o)||typeof g=="object"&&o(g))return!0}return!1}function s(k){let v=0;for(const g in k){if(g==="$ref")return 1/0;if(v++,!i.has(g)&&(typeof k[g]=="object"&&(0,e.eachItem)(k[g],b=>v+=s(b)),v===1/0))return 1/0}return v}function l(k,v="",g){g!==!1&&(v=f(v));const b=k.parse(v);return u(k,b)}Ht.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ht._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ht.normalizeId=f;function p(k,v,g){return g=f(g),k.resolve(v,g)}Ht.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function m(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),S={"":w},h=l(b,w,!1),y={},C=new Set;return r(k,{allKeys:!0},(E,A,O,F)=>{if(F===void 0)return;const T=h+A;let j=S[F];typeof E[g]=="string"&&(j=q.call(this,E[g])),H.call(this,E.$anchor),H.call(this,E.$dynamicAnchor),S[A]=j;function q(Y){const Z=this.opts.uriResolver.resolve;if(Y=f(j?Z(j,Y):Y),C.has(Y))throw _(Y);C.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?x(E,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(x(E,y[Y],Y),y[Y]=E):this.refs[Y]=T),Y}function H(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);q.call(this,`#${Y}`)}}}),y;function x(E,A,O){if(A!==void 0&&!t(E,A))throw _(O)}function _(E){return new Error(`reference "${E}" resolves to more than one schema`)}}return Ht.getSchemaRefs=m,Ht}var Lv;function Ps(){if(Lv)return sn;Lv=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.getData=sn.KeywordCxt=sn.validateFunctionCode=void 0;const e=CM(),t=Os(),r=Ov(),i=Os(),a=EM(),n=AM(),o=xM(),s=Ie(),l=On(),u=_s(),c=Ve(),f=xs();function p(z){if(h(z)&&(C(z),S(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}sn.validateFunctionCode=p;function d({gen:z,validateName:$,schema:J,schemaEnv:G,opts:ie},re){ie.code.es5?z.func($,(0,s._)`${l.default.data}, ${l.default.valCxt}`,G.$async,()=>{z.code((0,s._)`"use strict"; ${b(J,ie)}`),k(z,ie),z.code(re)}):z.func($,(0,s._)`${l.default.data}, ${m(ie)}`,G.$async,()=>z.code(b(J,ie)).code(re))}function m(z){return(0,s._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${z.dynamicRef?(0,s._)`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}function k(z,$){z.if(l.default.valCxt,()=>{z.var(l.default.instancePath,(0,s._)`${l.default.valCxt}.${l.default.instancePath}`),z.var(l.default.parentData,(0,s._)`${l.default.valCxt}.${l.default.parentData}`),z.var(l.default.parentDataProperty,(0,s._)`${l.default.valCxt}.${l.default.parentDataProperty}`),z.var(l.default.rootData,(0,s._)`${l.default.valCxt}.${l.default.rootData}`),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,s._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{z.var(l.default.instancePath,(0,s._)`""`),z.var(l.default.parentData,(0,s._)`undefined`),z.var(l.default.parentDataProperty,(0,s._)`undefined`),z.var(l.default.rootData,l.default.data),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,s._)`{}`)})}function v(z){const{schema:$,opts:J,gen:G}=z;d(z,()=>{J.$comment&&$.$comment&&F(z),E(z),G.let(l.default.vErrors,null),G.let(l.default.errors,0),J.unevaluated&&g(z),x(z),T(z)})}function g(z){const{gen:$,validateName:J}=z;z.evaluated=$.const("evaluated",(0,s._)`${J}.evaluated`),$.if((0,s._)`${z.evaluated}.dynamicProps`,()=>$.assign((0,s._)`${z.evaluated}.props`,(0,s._)`undefined`)),$.if((0,s._)`${z.evaluated}.dynamicItems`,()=>$.assign((0,s._)`${z.evaluated}.items`,(0,s._)`undefined`))}function b(z,$){const J=typeof z=="object"&&z[$.schemaId];return J&&($.code.source||$.code.process)?(0,s._)`/*# sourceURL=${J} */`:s.nil}function w(z,$){if(h(z)&&(C(z),S(z))){y(z,$);return}(0,e.boolOrEmptySchema)(z,$)}function S({schema:z,self:$}){if(typeof z=="boolean")return!z;for(const J in z)if($.RULES.all[J])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,$){const{schema:J,gen:G,opts:ie}=z;ie.$comment&&J.$comment&&F(z),A(z),O(z);const re=G.const("_errs",l.default.errors);x(z,re),G.var($,(0,s._)`${re} === ${l.default.errors}`)}function C(z){(0,c.checkUnknownRules)(z),_(z)}function x(z,$){if(z.opts.jtd)return q(z,[],!1,$);const J=(0,t.getSchemaTypes)(z.schema),G=(0,t.coerceAndCheckDataType)(z,J);q(z,J,!G,$)}function _(z){const{schema:$,errSchemaPath:J,opts:G,self:ie}=z;$.$ref&&G.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)($,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function E(z){const{schema:$,opts:J}=z;$.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function A(z){const $=z.schema[z.opts.schemaId];$&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,$))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:z,schemaEnv:$,schema:J,errSchemaPath:G,opts:ie}){const re=J.$comment;if(ie.$comment===!0)z.code((0,s._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,s.str)`${G}/$comment`,ye=z.scopeValue("root",{ref:$.root});z.code((0,s._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T(z){const{gen:$,schemaEnv:J,validateName:G,ValidationError:ie,opts:re}=z;J.$async?$.if((0,s._)`${l.default.errors} === 0`,()=>$.return(l.default.data),()=>$.throw((0,s._)`new ${ie}(${l.default.vErrors})`)):($.assign((0,s._)`${G}.errors`,l.default.vErrors),re.unevaluated&&j(z),$.return((0,s._)`${l.default.errors} === 0`))}function j({gen:z,evaluated:$,props:J,items:G}){J instanceof s.Name&&z.assign((0,s._)`${$}.props`,J),G instanceof s.Name&&z.assign((0,s._)`${$}.items`,G)}function q(z,$,J,G){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:Se,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(Se.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>V(z,"$ref",Pe.all.$ref.definition));return}Se.jtd||Y(z,$),ie.block(()=>{for(const We of Pe.rules)de(We);de(Pe.post)});function de(We){(0,r.shouldUseGroup)(re,We)&&(We.type?(ie.if((0,i.checkDataType)(We.type,ue,Se.strictNumbers)),H(z,We),$.length===1&&$[0]===We.type&&J&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):H(z,We),ye||ie.if((0,s._)`${l.default.errors} === ${G||0}`))}}function H(z,$){const{gen:J,schema:G,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,$.type),J.block(()=>{for(const re of $.rules)(0,r.shouldUseRule)(G,re)&&V(z,re.keyword,re.definition,$.type)})}function Y(z,$){z.schemaEnv.meta||!z.opts.strictTypes||(Z(z,$),z.opts.allowUnionTypes||P(z,$),M(z,z.dataTypes))}function Z(z,$){if($.length){if(!z.dataTypes.length){z.dataTypes=$;return}$.forEach(J=>{I(z.dataTypes,J)||L(z,`type "${J}" not allowed by context "${z.dataTypes.join(",")}"`)}),D(z,$)}}function P(z,$){$.length>1&&!($.length===2&&$.includes("null"))&&L(z,"use allowUnionTypes to allow union type keyword")}function M(z,$){const J=z.self.RULES.all;for(const G in J){const ie=J[G];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>R($,ue))&&L(z,`missing type "${re.join(",")}" for keyword "${G}"`)}}}function R(z,$){return z.includes($)||$==="number"&&z.includes("integer")}function I(z,$){return z.includes($)||$==="integer"&&z.includes("number")}function D(z,$){const J=[];for(const G of z.dataTypes)I($,G)?J.push(G):$.includes("integer")&&G==="number"&&J.push("integer");z.dataTypes=J}function L(z,$){const J=z.schemaEnv.baseId+z.errSchemaPath;$+=` at "${J}" (strictTypes)`,(0,c.checkStrictMode)(z,$,z.opts.strictTypes)}class B{constructor($,J,G){if((0,n.validateKeywordUsage)($,J,G),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=G,this.data=$.data,this.schema=$.schema[G],this.$data=J.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)($,this.schema,G,this.$data),this.schemaType=J.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=J,this.$data)this.schemaCode=$.gen.const("vSchema",X(this.$data,$));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(J.schemaType)}`);("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=$.gen.const("_errs",l.default.errors))}result($,J,G){this.failResult((0,s.not)($),J,G)}failResult($,J,G){this.gen.if($),G?G():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass($,J){this.failResult((0,s.not)($),void 0,J)}fail($){if($===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if($),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data($){if(!this.$data)return this.fail($);const{schemaCode:J}=this;this.fail((0,s._)`${J} !== undefined && (${(0,s.or)(this.invalid$data(),$)})`)}error($,J,G){if(J){this.setParams(J),this._error($,G),this.setParams({});return}this._error($,G)}_error($,J){($?f.reportExtraError:f.reportError)(this,this.def.error,J)}$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($){this.allErrors||this.gen.if($)}setParams($,J){J?Object.assign(this.params,$):this.params=$}block$data($,J,G=s.nil){this.gen.block(()=>{this.check$data($,G),J()})}check$data($=s.nil,J=s.nil){if(!this.$data)return;const{gen:G,schemaCode:ie,schemaType:re,def:ue}=this;G.if((0,s.or)((0,s._)`${ie} === undefined`,J)),$!==s.nil&&G.assign($,!0),(re.length||ue.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),$!==s.nil&&G.assign($,!1)),G.else()}invalid$data(){const{gen:$,schemaCode:J,schemaType:G,def:ie,it:re}=this;return(0,s.or)(ue(),ye());function ue(){if(G.length){if(!(J instanceof s.Name))throw new Error("ajv implementation error");const Se=Array.isArray(G)?G:[G];return(0,s._)`${(0,i.checkDataTypes)(Se,J,re.opts.strictNumbers,i.DataType.Wrong)}`}return s.nil}function ye(){if(ie.validateSchema){const Se=$.scopeValue("validate$data",{ref:ie.validateSchema});return(0,s._)`!${Se}(${J})`}return s.nil}}subschema($,J){const G=(0,o.getSubschema)(this.it,$);(0,o.extendSubschemaData)(G,this.it,$),(0,o.extendSubschemaMode)(G,$);const ie={...this.it,...G,items:void 0,props:void 0};return w(ie,J),ie}mergeEvaluated($,J){const{it:G,gen:ie}=this;G.opts.unevaluated&&(G.props!==!0&&$.props!==void 0&&(G.props=c.mergeEvaluated.props(ie,$.props,G.props,J)),G.items!==!0&&$.items!==void 0&&(G.items=c.mergeEvaluated.items(ie,$.items,G.items,J)))}mergeValidEvaluated($,J){const{it:G,gen:ie}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return ie.if(J,()=>this.mergeEvaluated($,s.Name)),!0}}sn.KeywordCxt=B;function V(z,$,J,G){const ie=new B(z,J,$);"code"in J?J.code(ie,G):ie.$data&&J.validate?(0,n.funcKeywordCode)(ie,J):"macro"in J?(0,n.macroKeywordCode)(ie,J):(J.compile||J.validate)&&(0,n.funcKeywordCode)(ie,J)}const W=/^\/(?:[^~]|~0|~1)*$/,K=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X(z,{dataLevel:$,dataNames:J,dataPathArr:G}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!W.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=K.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=$)throw new Error(Se("property/index",Pe));return G[$-Pe]}if(Pe>$)throw new Error(Se("data",Pe));if(re=J[$-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,s._)`${re}${(0,s.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,s._)`${ue} && ${re}`);return ue;function Se(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${$}`}}return sn.getData=X,sn}var Is={},qv;function xf(){if(qv)return Is;qv=1,Object.defineProperty(Is,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Is.default=e,Is}var Ts={},$v;function Ns(){if($v)return Ts;$v=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=_s();class t extends Error{constructor(i,a,n,o){super(o||`can't resolve reference ${n} from id ${a}`),this.missingRef=(0,e.resolveUrl)(i,a,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}return Ts.default=t,Ts}var nr={},zv;function Of(){if(zv)return nr;zv=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;const e=Ie(),t=xf(),r=On(),i=_s(),a=Ve(),n=Ps();class o{constructor(g){var b;this.refs={},this.dynamicAnchors={};let w;typeof g.schema=="object"&&(w=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.root=g.root||this,this.baseId=(b=g.baseId)!==null&&b!==void 0?b:(0,i.normalizeId)(w==null?void 0:w[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}nr.SchemaEnv=o;function s(v){const g=c.call(this,v);if(g)return g;const b=(0,i.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:S}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:S,ownProperties:h});let C;v.$async&&(C=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const x=y.scopeName("validate");v.validateName=x;const _={gen:y,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:y.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:x,ValidationError:C,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 E;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const A=y.toString();E=`${y.scopeRefs(r.default.scope)}return ${A}`,this.opts.code.process&&(E=this.opts.code.process(E,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,E)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:A,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:j}=_;F.evaluated={props:T instanceof e.Name?void 0:T,items:j instanceof e.Name?void 0:j,dynamicProps:T instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(A){throw delete v.validate,delete v.validateName,E&&this.logger.error("Error compiling schema, function code:",E),A}finally{this._compilations.delete(v)}}nr.compileSchema=s;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const S=v.refs[b];if(S)return S;let h=p.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:C}=this.opts;y&&(h=new o({schema:y,schemaId:C,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}nr.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:s.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}nr.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function p(v,g){let b;for(;typeof(b=this.refs[g])=="string";)g=b;return b||this.schemas[g]||d.call(this,v,g)}function d(v,g){const b=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,b);let S=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===S)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const C=d.call(this,v,y);return typeof(C==null?void 0:C.schema)!="object"?void 0:k.call(this,b,C)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||s.call(this,y),h===(0,i.normalizeId)(g)){const{schema:C}=y,{schemaId:x}=this.opts,_=C[x];return _&&(S=(0,i.resolveUrl)(this.opts.uriResolver,S,_)),new o({schema:C,schemaId:x,root:v,baseId:S})}return k.call(this,b,y)}}nr.resolveSchema=d;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var S;if(((S=v.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const C of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const x=b[(0,a.unescapeFragment)(C)];if(x===void 0)return;b=x;const _=typeof b=="object"&&b[this.opts.schemaId];!m.has(C)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const C=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,C)}const{schemaId:y}=this.opts;if(h=h||new o({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return nr}const _M={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Fs={},lo={exports:{}},_f,Rv;function Uv(){if(Rv)return _f;Rv=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),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(h){let y="",C=0,x=0;for(x=0;x<h.length;x++)if(C=h[x].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x];break}for(x+=1;x<h.length;x++){if(C=h[x].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x]}return y}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(h){return h.length=0,!0}function l(h,y,C){if(h.length){const x=n(h);if(x!=="")y.push(x);else return C.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const C={error:!1,address:"",zone:""},x=[],_=[];let E=!1,A=!1,O=l;for(let F=0;F<h.length;F++){const T=h[F];if(!(T==="["||T==="]"))if(T===":"){if(E===!0&&(A=!0),!O(_,x,C))break;if(++y>7){C.error=!0;break}F>0&&h[F-1]===":"&&(E=!0),x.push(":");continue}else if(T==="%"){if(!O(_,x,C))break;O=s}else{_.push(T);continue}}return _.length&&(O===s?C.zone=_.join(""):A?x.push(_.join("")):x.push(n(_))),C.address=x.join(""),C}function c(h){if(f(h,":")<2)return{host:h,isIPV6:!1};const y=u(h);if(y.error)return{host:h,isIPV6:!1};{let C=y.address,x=y.address;return y.zone&&(C+="%"+y.zone,x+="%25"+y.zone),{host:C,isIPV6:!0,escapedHost:x}}}function f(h,y){let C=0;for(let x=0;x<h.length;x++)h[x]===y&&C++;return C}function p(h){let y=h;const C=[];let x=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){C.push("/");break}else{C.push(y);break}}else if(_===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){C.push("/");break}}else if(_===3&&y==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),C.length!==0&&C.pop();continue}}if((x=y.indexOf("/",1))===-1){C.push(y);break}else C.push(y.slice(0,x)),y=y.slice(x)}return C.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},m=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const C=y?k:m;return C.lastIndex=0,h.replace(C,x=>d[x])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let C="";for(let x=0;x<h.length;x++){if(h[x]==="%"&&x+2<h.length){const _=h.slice(x+1,x+3);if(r(_)){const E=_.toUpperCase(),A=String.fromCharCode(parseInt(E,16));y&&i(A)?C+=A:C+="%"+E,x+=2;continue}}C+=h[x]}return C}function b(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){const _=x.toUpperCase(),E=String.fromCharCode(parseInt(_,16));E!=="."&&i(E)?y+=E:y+="%"+_,C+=2;continue}}a(h[C])?y+=h[C]:y+=escape(h[C])}return y}function w(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){y+="%"+x.toUpperCase(),C+=2;continue}}y+=escape(h[C])}return y}function S(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let C=unescape(h.host);if(!t(C)){const x=c(C);x.isIPV6===!0?C=`[${x.escapedHost}]`:C=v(C,!1)}y.push(C)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return _f={nonSimpleDomain:o,recomposeAuthority:S,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},_f}var Pf,Bv;function PM(){if(Bv)return Pf;Bv=1;const{isUUID:e}=Uv(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function o(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function s(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,E=S(_);h.path=void 0,E&&(h=E.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,E=S(_);E&&(h=E.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:o},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:o},k={scheme:"ws",domainHost:!0,parse:s,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function S(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Pf={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:S},Pf}var Vv;function IM(){if(Vv)return lo.exports;Vv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:o,isIPv4:s,nonSimpleDomain:l}=Uv(),{SCHEMES:u,getSchemeHandler:c}=PM();function f(x,_){return typeof x=="string"?x=S(x,_):typeof x=="object"&&(x=w(k(x,_),_)),x}function p(x,_,E){const A=E?Object.assign({scheme:"null"},E):{scheme:"null"},O=d(w(x,A),w(_,A),A,!0);return A.skipEscape=!0,k(O,A)}function d(x,_,E,A){const O={};return A||(x=w(k(x,E),E),_=w(k(_,E),E)),E=E||{},!E.tolerant&&_.scheme?(O.scheme=_.scheme,O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.path?(_.path[0]==="/"?O.path=t(_.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?O.path="/"+_.path:x.path?O.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=x.path,_.query!==void 0?O.query=_.query:O.query=x.query),O.userinfo=x.userinfo,O.host=x.host,O.port=x.port),O.scheme=x.scheme),O.fragment=_.fragment,O}function m(x,_,E){const A=y(x,E),O=y(_,E);return A!==void 0&&O!==void 0&&A.toLowerCase()===O.toLowerCase()}function k(x,_){const E={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:""},A=Object.assign({},_),O=[],F=c(A.scheme||E.scheme);F&&F.serialize&&F.serialize(E,A),E.path!==void 0&&(A.skipEscape?E.path=i(E.path):(E.path=n(E.path),E.scheme!==void 0&&(E.path=E.path.split("%3A").join(":")))),A.reference!=="suffix"&&E.scheme&&O.push(E.scheme,":");const T=r(E);if(T!==void 0&&(A.reference!=="suffix"&&O.push("//"),O.push(T),E.path&&E.path[0]!=="/"&&O.push("/")),E.path!==void 0){let j=E.path;!A.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),T===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),O.push(j)}return E.query!==void 0&&O.push("?",E.query),E.fragment!==void 0&&O.push("#",E.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(x,_){if(_[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 b(x,_){const E=Object.assign({},_),A={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,F=!1;E.reference==="suffix"&&(E.scheme?x=E.scheme+":"+x:x="//"+x);const T=x.match(v);if(T){A.scheme=T[1],A.userinfo=T[3],A.host=T[4],A.port=parseInt(T[5],10),A.path=T[6]||"",A.query=T[7],A.fragment=T[8],isNaN(A.port)&&(A.port=T[5]);const j=g(A,T);if(j!==void 0&&(A.error=A.error||j,O=!0),A.host)if(s(A.host)===!1){const Y=e(A.host);A.host=Y.host.toLowerCase(),F=Y.isIPV6}else F=!0;A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&A.query===void 0&&!A.path?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",E.reference&&E.reference!=="suffix"&&E.reference!==A.reference&&(A.error=A.error||"URI is not a "+E.reference+" reference.");const q=c(E.scheme||A.scheme);if(!E.unicodeSupport&&(!q||!q.unicodeSupport)&&A.host&&(E.domainHost||q&&q.domainHost)&&F===!1&&l(A.host))try{A.host=URL.domainToASCII(A.host.toLowerCase())}catch(H){A.error=A.error||"Host's domain name can not be converted to ASCII: "+H}if((!q||q&&!q.skipNormalize)&&(x.indexOf("%")!==-1&&(A.scheme!==void 0&&(A.scheme=unescape(A.scheme)),A.host!==void 0&&(A.host=o(unescape(A.host),F))),A.path&&(A.path=a(A.path)),A.fragment))try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}q&&q.parse&&q.parse(A,E)}else A.error=A.error||"URI can not be parsed.";return{parsed:A,malformedAuthorityOrPort:O}}function w(x,_){return b(x,_).parsed}function S(x,_){return h(x,_).normalized}function h(x,_){const{parsed:E,malformedAuthorityOrPort:A}=b(x,_);return{normalized:A?x:k(E,_),malformedAuthorityOrPort:A}}function y(x,_){if(typeof x=="string"){const{normalized:E,malformedAuthorityOrPort:A}=h(x,_);return A?void 0:E}if(typeof x=="object")return k(x,_)}const C={SCHEMES:u,normalize:f,resolve:p,resolveComponent:d,equal:m,serialize:k,parse:w};return lo.exports=C,lo.exports.default=C,lo.exports.fastUri=C,lo.exports}var Hv;function TM(){if(Hv)return Fs;Hv=1,Object.defineProperty(Fs,"__esModule",{value:!0});const e=IM();return e.code='require("ajv/dist/runtime/uri").default',Fs.default=e,Fs}var Wv;function NM(){return Wv||(Wv=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=Ps();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ie();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 i=xf(),a=Ns(),n=Av(),o=Of(),s=Ie(),l=_s(),u=Os(),c=Ve(),f=_M,p=TM(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const m=["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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,R,I,D,L,B,V,W,K,X,z,$,J,G,ie,re,ue,ye,Se,ke,Pe,de,We,ut,ve;const Q=P.strict,ee=(M=P.code)===null||M===void 0?void 0:M.optimize,te=ee===!0||ee===void 0?1:ee||0,ge=(I=(R=P.code)===null||R===void 0?void 0:R.regExp)!==null&&I!==void 0?I:d,ce=(D=P.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:Q)!==null&&B!==void 0?B:!0,strictNumbers:(W=(V=P.strictNumbers)!==null&&V!==void 0?V:Q)!==null&&W!==void 0?W:!0,strictTypes:(X=(K=P.strictTypes)!==null&&K!==void 0?K:Q)!==null&&X!==void 0?X:"log",strictTuples:($=(z=P.strictTuples)!==null&&z!==void 0?z:Q)!==null&&$!==void 0?$:"log",strictRequired:(G=(J=P.strictRequired)!==null&&J!==void 0?J:Q)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:te,regExp:ge}:{optimize:te,regExp:ge},loopRequired:(ie=P.loopRequired)!==null&&ie!==void 0?ie:b,loopEnum:(re=P.loopEnum)!==null&&re!==void 0?re:b,meta:(ue=P.meta)!==null&&ue!==void 0?ue:!0,messages:(ye=P.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(Se=P.inlineRefs)!==null&&Se!==void 0?Se:!0,schemaId:(ke=P.schemaId)!==null&&ke!==void 0?ke:"$id",addUsedSchema:(Pe=P.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(de=P.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(We=P.validateFormats)!==null&&We!==void 0?We:!0,unicodeRegExp:(ut=P.unicodeRegExp)!==null&&ut!==void 0?ut:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class S{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:R,lines:I}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:k,es5:R,lines:I}),this.logger=O(M.logger);const D=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,M,"NOT SUPPORTED"),h.call(this,g,M,"DEPRECATED","warn"),this._metaOpts=E.call(this),M.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&_.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),C.call(this),M.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:R,schemaId:I}=this.opts;let D=f;I==="id"&&(D={...f},D.id=D.$id,delete D.$id),R&&M&&this.addMetaSchema(D,D[I],!1)}defaultMeta(){const{meta:M,schemaId:R}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[R]||M:void 0}validate(M,R){let I;if(typeof M=="string"){if(I=this.getSchema(M),!I)throw new Error(`no schema with key or ref "${M}"`)}else I=this.compile(M);const D=I(R);return"$async"in I||(this.errors=I.errors),D}compile(M,R){const I=this._addSchema(M,R);return I.validate||this._compileSchemaEnv(I)}compileAsync(M,R){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return D.call(this,M,R);async function D(X,z){await L.call(this,X.$schema);const $=this._addSchema(X,z);return $.validate||B.call(this,$)}async function L(X){X&&!this.getSchema(X)&&await D.call(this,{$ref:X},!0)}async function B(X){try{return this._compileSchemaEnv(X)}catch(z){if(!(z instanceof a.default))throw z;return V.call(this,z),await W.call(this,z.missingSchema),B.call(this,X)}}function V({missingSchema:X,missingRef:z}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${z} cannot be resolved`)}async function W(X){const z=await K.call(this,X);this.refs[X]||await L.call(this,z.$schema),this.refs[X]||this.addSchema(z,X,R)}async function K(X){const z=this._loading[X];if(z)return z;try{return await(this._loading[X]=I(X))}finally{delete this._loading[X]}}}addSchema(M,R,I,D=this.opts.validateSchema){if(Array.isArray(M)){for(const B of M)this.addSchema(B,void 0,I,D);return this}let L;if(typeof M=="object"){const{schemaId:B}=this.opts;if(L=M[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return R=(0,l.normalizeId)(R||L),this._checkUnique(R),this.schemas[R]=this._addSchema(M,I,R,D,!0),this}addMetaSchema(M,R,I=this.opts.validateSchema){return this.addSchema(M,R,!0,I),this}validateSchema(M,R){if(typeof M=="boolean")return!0;let I;if(I=M.$schema,I!==void 0&&typeof I!="string")throw new Error("$schema must be a string");if(I=I||this.opts.defaultMeta||this.defaultMeta(),!I)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const D=this.validate(I,M);if(!D&&R){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return D}getSchema(M){let R;for(;typeof(R=y.call(this,M))=="string";)M=R;if(R===void 0){const{schemaId:I}=this.opts,D=new o.SchemaEnv({schema:{},schemaId:I});if(R=o.resolveSchema.call(this,D,M),!R)return;this.refs[M]=R}return R.validate||this._compileSchemaEnv(R)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const R=y.call(this,M);return typeof R=="object"&&this._cache.delete(R.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const R=M;this._cache.delete(R);let I=M[this.opts.schemaId];return I&&(I=(0,l.normalizeId)(I),delete this.schemas[I],delete this.refs[I]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const R of M)this.addKeyword(R);return this}addKeyword(M,R){let I;if(typeof M=="string")I=M,typeof R=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),R.keyword=I);else if(typeof M=="object"&&R===void 0){if(R=M,I=R.keyword,Array.isArray(I)&&!I.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(T.call(this,I,R),!R)return(0,c.eachItem)(I,L=>j.call(this,L)),this;H.call(this,R);const D={...R,type:(0,u.getJSONTypes)(R.type),schemaType:(0,u.getJSONTypes)(R.schemaType)};return(0,c.eachItem)(I,D.type.length===0?L=>j.call(this,L,D):L=>D.type.forEach(B=>j.call(this,L,D,B))),this}getKeyword(M){const R=this.RULES.all[M];return typeof R=="object"?R.definition:!!R}removeKeyword(M){const{RULES:R}=this;delete R.keywords[M],delete R.all[M];for(const I of R.rules){const D=I.rules.findIndex(L=>L.keyword===M);D>=0&&I.rules.splice(D,1)}return this}addFormat(M,R){return typeof R=="string"&&(R=new RegExp(R)),this.formats[M]=R,this}errorsText(M=this.errors,{separator:R=", ",dataVar:I="data"}={}){return!M||M.length===0?"No errors":M.map(D=>`${I}${D.instancePath} ${D.message}`).reduce((D,L)=>D+R+L)}$dataMetaSchema(M,R){const I=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const D of R){const L=D.split("/").slice(1);let B=M;for(const V of L)B=B[V];for(const V in I){const W=I[V];if(typeof W!="object")continue;const{$data:K}=W.definition,X=B[V];K&&X&&(B[V]=Z(X))}}return M}_removeAllSchemas(M,R){for(const I in M){const D=M[I];(!R||R.test(I))&&(typeof D=="string"?delete M[I]:D&&!D.meta&&(this._cache.delete(D.schema),delete M[I]))}}_addSchema(M,R,I,D=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof M=="object")B=M[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(M);if(W!==void 0)return W;I=(0,l.normalizeId)(B||I);const K=l.getSchemaRefs.call(this,M,I);return W=new o.SchemaEnv({schema:M,schemaId:V,meta:R,baseId:I,localRefs:K}),this._cache.set(W.schema,W),L&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=W),D&&this.validateSchema(M,!0),W}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):o.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const R=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,M)}finally{this.opts=R}}}S.ValidationError=i.default,S.MissingRefError=a.default,e.default=S;function h(P,M,R,I="error"){for(const D in P){const L=D;L in M&&this.logger[I](`${R}: option ${D}. ${P[L]}`)}}function y(P){return P=(0,l.normalizeId)(P),this.schemas[P]||this.refs[P]}function C(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function x(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const R=P[M];R.keyword||(R.keyword=M),this.addKeyword(R)}}function E(){const P={...this.opts};for(const M of m)delete P[M];return P}const A={log(){},warn(){},error(){}};function O(P){if(P===!1)return A;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,M){const{RULES:R}=this;if((0,c.eachItem)(P,I=>{if(R.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!F.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,R){var I;const D=M==null?void 0:M.post;if(R&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=D?L.post:L.rules.find(({type:W})=>W===R);if(B||(B={type:R,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!M)return;const V={keyword:P,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?q.call(this,B,V,M.before):B.rules.push(V),L.all[P]=V,(I=M.implements)===null||I===void 0||I.forEach(W=>this.addKeyword(W))}function q(P,M,R){const I=P.rules.findIndex(D=>D.keyword===R);I>=0?P.rules.splice(I,0,M):(P.rules.push(M),this.logger.warn(`rule ${R} is not defined`))}function H(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=Z(M)),P.validateSchema=this.compile(M,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Z(P){return{anyOf:[P,Y]}}})(bf)),bf}var Ds={},Ms={},js={},Kv;function FM(){if(Kv)return js;Kv=1,Object.defineProperty(js,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return js.default=e,js}var _n={},Gv;function DM(){if(Gv)return _n;Gv=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.callRef=_n.getValidate=void 0;const e=Ns(),t=Pr(),r=Ie(),i=On(),a=Of(),n=Ve(),o={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:p}=u,{baseId:d,schemaEnv:m,validateName:k,opts:v,self:g}=p,{root:b}=m;if((f==="#"||f==="#/")&&d===b.baseId)return S();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function S(){if(m===b)return l(u,k,m,m.$async);const C=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${C}.validate`,b,b.$async)}function h(C){const x=s(u,C);l(u,x,C,C.$async)}function y(C){const x=c.scopeValue("schema",v.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),_=c.name("valid"),E=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:f},_);u.mergeEvaluated(E),u.ok(_)}}};function s(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}_n.getValidate=s;function l(u,c,f,p){const{gen:d,it:m}=u,{allErrors:k,schemaEnv:v,opts:g}=m,b=g.passContext?i.default.this:r.nil;p?w():S();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const C=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(C,!0)},x=>{d.if((0,r._)`!(${x} instanceof ${m.ValidationError})`,()=>d.throw(x)),h(x),k||d.assign(C,!1)}),u.ok(C)}function S(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(C){const x=(0,r._)`${C}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${x} : ${i.default.vErrors}.concat(${x})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(C){var x;if(!m.opts.unevaluated)return;const _=(x=f==null?void 0:f.validate)===null||x===void 0?void 0:x.evaluated;if(m.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(m.props=n.mergeEvaluated.props(d,_.props,m.props));else{const E=d.var("props",(0,r._)`${C}.evaluated.props`);m.props=n.mergeEvaluated.props(d,E,m.props,r.Name)}if(m.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(m.items=n.mergeEvaluated.items(d,_.items,m.items));else{const E=d.var("items",(0,r._)`${C}.evaluated.items`);m.items=n.mergeEvaluated.items(d,E,m.items,r.Name)}}}return _n.callRef=l,_n.default=o,_n}var Jv;function MM(){if(Jv)return Ms;Jv=1,Object.defineProperty(Ms,"__esModule",{value:!0});const e=FM(),t=DM(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ms.default=r,Ms}var Ls={},qs={},Yv;function jM(){if(Yv)return qs;Yv=1,Object.defineProperty(qs,"__esModule",{value:!0});const e=Ie(),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}},i={message:({keyword:n,schemaCode:o})=>(0,e.str)`must be ${r[n].okStr} ${o}`,params:({keyword:n,schemaCode:o})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${o}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:o,data:s,schemaCode:l}=n;n.fail$data((0,e._)`${s} ${r[o].fail} ${l} || isNaN(${s})`)}};return qs.default=a,qs}var $s={},Xv;function LM(){if(Xv)return $s;Xv=1,Object.defineProperty($s,"__esModule",{value:!0});const e=Ie(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},code(i){const{gen:a,data:n,schemaCode:o,it:s}=i,l=s.opts.multipleOfPrecision,u=a.let("res"),c=l?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,e._)`${u} !== parseInt(${u})`;i.fail$data((0,e._)`(${o} === 0 || (${u} = ${n}/${o}, ${c}))`)}};return $s.default=r,$s}var zs={},Rs={},Zv;function qM(){if(Zv)return Rs;Zv=1,Object.defineProperty(Rs,"__esModule",{value:!0});function e(t){const r=t.length;let i=0,a=0,n;for(;a<r;)i++,n=t.charCodeAt(a++),n>=55296&&n<=56319&&a<r&&(n=t.charCodeAt(a),(n&64512)===56320&&a++);return i}return Rs.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Rs}var Qv;function $M(){if(Qv)return zs;Qv=1,Object.defineProperty(zs,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=qM(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:o}){const s=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:o,data:s,schemaCode:l,it:u}=n,c=o==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${s}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${s})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return zs.default=a,zs}var Us={},eb;function zM(){if(eb)return Us;eb=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=Pr(),t=Ve(),r=Ie(),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:o,data:s,$data:l,schema:u,schemaCode:c,it:f}=n,p=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,m=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(o,d),k=o.let("valid");o.try(()=>o.assign(k,(0,r._)`${m}(${c}, ${p}).test(${s})`),()=>o.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${s})`)}}};return Us.default=a,Us}var Bs={},tb;function RM(){if(tb)return Bs;tb=1,Object.defineProperty(Bs,"__esModule",{value:!0});const e=Ie(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:o}=i,s=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${s} ${o}`)}};return Bs.default=r,Bs}var Vs={},rb;function UM(){if(rb)return Vs;rb=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:o,schema:s,schemaCode:l,data:u,$data:c,it:f}=n,{opts:p}=f;if(!c&&s.length===0)return;const d=s.length>=p.loopRequired;if(f.allErrors?m():k(),p.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const S of s)if((b==null?void 0:b[S])===void 0&&!w.has(S)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${S}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function m(){if(d||c)n.block$data(t.nil,v);else for(const b of s)(0,e.checkReportMissingProp)(n,b)}function k(){const b=o.let("missing");if(d||c){const w=o.let("valid",!0);n.block$data(w,()=>g(b,w)),n.ok(w)}else o.if((0,e.checkMissingProp)(n,s,b)),(0,e.reportMissingProp)(n,b),o.else()}function v(){o.forOf("prop",l,b=>{n.setParams({missingProperty:b}),o.if((0,e.noPropertyInData)(o,u,b,p.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),o.forOf(b,l,()=>{o.assign(w,(0,e.propertyInData)(o,u,b,p.ownProperties)),o.if((0,t.not)(w),()=>{n.error(),o.break()})},t.nil)}}};return Vs.default=a,Vs}var Hs={},nb;function BM(){if(nb)return Hs;nb=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=Ie(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:o}=i,s=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${s} ${o}`)}};return Hs.default=r,Hs}var Ws={},Ks={},ib;function If(){if(ib)return Ks;ib=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=Dv();return e.code='require("ajv/dist/runtime/equal").default',Ks.default=e,Ks}var ab;function VM(){if(ab)return Ws;ab=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=Os(),t=Ie(),r=Ve(),i=If(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:o,j:s}})=>(0,t.str)`must NOT have duplicate items (items ## ${s} and ${o} are identical)`,params:({params:{i:o,j:s}})=>(0,t._)`{i: ${o}, j: ${s}}`},code(o){const{gen:s,data:l,$data:u,schema:c,parentSchema:f,schemaCode:p,it:d}=o;if(!u&&!c)return;const m=s.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];o.block$data(m,v,(0,t._)`${p} === false`),o.ok(m);function v(){const S=s.let("i",(0,t._)`${l}.length`),h=s.let("j");o.setParams({i:S,j:h}),s.assign(m,!0),s.if((0,t._)`${S} > 1`,()=>(g()?b:w)(S,h))}function g(){return k.length>0&&!k.some(S=>S==="object"||S==="array")}function b(S,h){const y=s.name("item"),C=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),x=s.const("indices",(0,t._)`{}`);s.for((0,t._)`;${S}--;`,()=>{s.let(y,(0,t._)`${l}[${S}]`),s.if(C,(0,t._)`continue`),k.length>1&&s.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),s.if((0,t._)`typeof ${x}[${y}] == "number"`,()=>{s.assign(h,(0,t._)`${x}[${y}]`),o.error(),s.assign(m,!1).break()}).code((0,t._)`${x}[${y}] = ${S}`)})}function w(S,h){const y=(0,r.useFunc)(s,i.default),C=s.name("outer");s.label(C).for((0,t._)`;${S}--;`,()=>s.for((0,t._)`${h} = ${S}; ${h}--;`,()=>s.if((0,t._)`${y}(${l}[${S}], ${l}[${h}])`,()=>{o.error(),s.assign(m,!1).break(C)})))}}};return Ws.default=n,Ws}var Gs={},ob;function HM(){if(ob)return Gs;ob=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=If(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:o,data:s,$data:l,schemaCode:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(o,r.default)}(${s}, ${u})`):n.fail((0,e._)`${c} !== ${s}`)}};return Gs.default=a,Gs}var Js={},sb;function WM(){if(sb)return Js;sb=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=If(),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:o,data:s,$data:l,schema:u,schemaCode:c,it:f}=n;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const p=u.length>=f.opts.loopEnum;let d;const m=()=>d??(d=(0,t.useFunc)(o,r.default));let k;if(p||l)k=o.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=o.const("vSchema",c);k=(0,e.or)(...u.map((w,S)=>g(b,S)))}n.pass(k);function v(){o.assign(k,!1),o.forOf("v",c,b=>o.if((0,e._)`${m()}(${s}, ${b})`,()=>o.assign(k,!0).break()))}function g(b,w){const S=u[w];return typeof S=="object"&&S!==null?(0,e._)`${m()}(${s}, ${b}[${w}])`:(0,e._)`${s} === ${S}`}}};return Js.default=a,Js}var lb;function KM(){if(lb)return Ls;lb=1,Object.defineProperty(Ls,"__esModule",{value:!0});const e=jM(),t=LM(),r=$M(),i=zM(),a=RM(),n=UM(),o=BM(),s=VM(),l=HM(),u=WM(),c=[e.default,t.default,r.default,i.default,a.default,n.default,o.default,s.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Ls.default=c,Ls}var Ys={},Qi={},ub;function cb(){if(ub)return Qi;ub=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.validateAdditionalItems=void 0;const e=Ie(),t=Ve(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:o,it:s}=n,{items:l}=o;if(!Array.isArray(l)){(0,t.checkStrictMode)(s,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,o){const{gen:s,schema:l,data:u,keyword:c,it:f}=n;f.items=!0;const p=s.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:o.length}),n.pass((0,e._)`${p} <= ${o.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const m=s.var("valid",(0,e._)`${p} <= ${o.length}`);s.if((0,e.not)(m),()=>d(m)),n.ok(m)}function d(m){s.forRange("i",o.length,p,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},m),f.allErrors||s.if((0,e.not)(m),()=>s.break())})}}return Qi.validateAdditionalItems=a,Qi.default=i,Qi}var Xs={},ea={},fb;function db(){if(fb)return ea;fb=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.validateTuple=void 0;const e=Ie(),t=Ve(),r=Pr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:o,it:s}=n;if(Array.isArray(o))return a(n,"additionalItems",o);s.items=!0,!(0,t.alwaysValidSchema)(s,o)&&n.ok((0,r.validateArray)(n))}};function a(n,o,s=n.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:p}=n;k(u),p.opts.unevaluated&&s.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(l,s.length,p.items));const d=l.name("valid"),m=l.const("len",(0,e._)`${c}.length`);s.forEach((v,g)=>{(0,t.alwaysValidSchema)(p,v)||(l.if((0,e._)`${m} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=p,w=s.length,S=w===v.minItems&&(w===v.maxItems||v[o]===!1);if(g.strictTuples&&!S){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${o} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,h,g.strictTuples)}}}return ea.validateTuple=a,ea.default=i,ea}var pb;function GM(){if(pb)return Xs;pb=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=db(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Xs.default=t,Xs}var Zs={},mb;function JM(){if(mb)return Zs;mb=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Pr(),i=cb(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{schema:s,parentSchema:l,it:u}=o,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,s)&&(c?(0,i.validateAdditionalItems)(o,c):o.ok((0,r.validateArray)(o)))}};return Zs.default=n,Zs}var Qs={},hb;function YM(){if(hb)return Qs;hb=1,Object.defineProperty(Qs,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:n}})=>n===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${n} valid item(s)`,params:({params:{min:a,max:n}})=>n===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${n}}`},code(a){const{gen:n,schema:o,parentSchema:s,data:l,it:u}=a;let c,f;const{minContains:p,maxContains:d}=s;u.opts.next?(c=p===void 0?1:p,f=d):c=1;const m=n.const("len",(0,e._)`${l}.length`);if(a.setParams({min:c,max:f}),f===void 0&&c===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(u,o)){let w=(0,e._)`${m} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${m} <= ${f}`),a.pass(w);return}u.items=!0;const k=n.name("valid");f===void 0&&c===1?g(k,()=>n.if(k,()=>n.break())):c===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,v)):(n.let(k,!1),v()),a.result(k,()=>a.reset());function v(){const w=n.name("_valid"),S=n.let("count",0);g(w,()=>n.if(w,()=>b(S)))}function g(w,S){n.forRange("i",0,m,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),S()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),c===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0)))}}};return Qs.default=i,Qs}var Tf={},gb;function XM(){return gb||(gb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ie(),r=Ve(),i=Pr();e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:f}})=>(0,t._)`{property: ${l},
75
+ */var gv;function uM(){return gv||(gv=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=!1,v=!1,k=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===c||K===u||g||K===d||h||v||k||typeof K=="object"&&K!==null&&(K.$$typeof===p||K.$$typeof===f||K.$$typeof===n||K.$$typeof===s||K.$$typeof===l||K.$$typeof===w||K.getModuleId!==void 0))}function m(K){if(typeof K=="object"&&K!==null){var ee=K.$$typeof;switch(ee){case e:var te=K.type;switch(te){case r:case a:case i:case c:case u:return te;default:var se=te&&te.$$typeof;switch(se){case o:case s:case l:case p:case f:case n:return se;default:return ee}}case t:return ee}}}var y=s,S=n,x=e,_=l,C=r,A=p,O=f,F=t,N=a,M=i,q=c,H=u,J=!1,X=!1;function P(K){return J||(J=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(K){return X||(X=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(K){return m(K)===s}function T(K){return m(K)===n}function D(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function L(K){return m(K)===l}function B(K){return m(K)===r}function V(K){return m(K)===p}function W(K){return m(K)===f}function Y(K){return m(K)===t}function Z(K){return m(K)===a}function z(K){return m(K)===i}function $(K){return m(K)===c}function G(K){return m(K)===u}nt.ContextConsumer=y,nt.ContextProvider=S,nt.Element=x,nt.ForwardRef=_,nt.Fragment=C,nt.Lazy=A,nt.Memo=O,nt.Portal=F,nt.Profiler=N,nt.StrictMode=M,nt.Suspense=q,nt.SuspenseList=H,nt.isAsyncMode=P,nt.isConcurrentMode=j,nt.isContextConsumer=U,nt.isContextProvider=T,nt.isElement=D,nt.isForwardRef=L,nt.isFragment=B,nt.isLazy=V,nt.isMemo=W,nt.isPortal=Y,nt.isProfiler=Z,nt.isStrictMode=z,nt.isSuspense=$,nt.isSuspenseList=G,nt.isValidElementType=E,nt.typeOf=m})()),nt}var yv;function fM(){return yv||(yv=1,process.env.NODE_ENV==="production"?wo.exports=cM():wo.exports=uM()),wo.exports}var dM=fM();const vv=jr(dM),pf={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 pM(e){var t;let r=ae(e,"MergedWidget");if(!r){const i=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:a,...n})=>I.jsx(e,{options:{...i,...a},...n}),ot(e,"MergedWidget",r)}return r}function Vr(e,t,r={}){const i=pr(e);if(typeof t=="function"||t&&vv.isForwardRef(R.createElement(t))||vv.isMemo(t))return pM(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){const a=r[t];return Vr(e,a,r)}if(typeof i=="string"){if(!(i in pf))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in pf[i]){const a=r[pf[i][t]];return Vr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function bv(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t&=t}return t.toString(16)}function kv(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function hr(e){return bv(kv(e))}function mM(e){return bv(kv(e))}function hM(e,t,r={}){try{return Vr(e,t,r),!0}catch(i){const a=i;if(a.message&&(a.message.startsWith("No widget")||a.message.startsWith("Unsupported widget")))return!1;throw i}}function ci(e,t){return`${bn(e)?e:e[tt]}__${t}`}function xn(e){return ci(e,"description")}function mf(e){return ci(e,"error")}function hf(e){return ci(e,"examples")}function gf(e){return ci(e,"help")}function So(e){return ci(e,"title")}function xr(e,t=!1){const r=t?` ${hf(e)}`:"";return`${mf(e)} ${xn(e)} ${gf(e)}${r}`}function Co(e,t){return`${e}-${t}`}function rr(e,t){return ci(e,t)}function yf(e,t){return ci(e,`optional${t}`)}function Xi(e){return!Gi(e)&&(!Re(e)||Array.isArray(e)||!kt(e))}function gM(e,t){const{rootSchema:r,schemaUtils:i}=e;if(Ue(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return Ue(t,a)}return!1}function yM(e,t,r){return t?r:e}function vM(e){return e?new Date(e).toJSON():void 0}function bM(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&lv(t.default,r,i)===void 0&&console.error(`The schema default value "${t.default}" is not one of the values in the enum options for "${e}"`)}function vf(e,t,r){const i=[r_];return $e(e,Bh)&&i.unshift(Bh),ae(e,[...i,t],r)}function kM(e,t){if(!Array.isArray(t))return e;const r=u=>u.reduce((f,p)=>(f[p]=!0,f),{}),i=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,a=r(e),n=t.filter(u=>u==="*"||a[u]),s=r(n),o=e.filter(u=>!s[u]),l=n.indexOf("*");if(l===-1){if(o.length)throw new Error(`uiSchema order list does not contain ${i(o)}`);return n}if(l!==n.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const c=[...n];return c.splice(l,1,...o),c}function bf(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 wM(e,t,r){var i,a;const n=(i=e[Js])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||kt(t)?l={...o}:l=Sn(o,t):l=t||{},s){let c=e;if(n&&e[at]&&!e[Js])try{c=Ya(n,r.rootSchema)}catch(u){return console.warn(`could not resolve $ref in resolveUiSchema:
76
+ `,u),l}for(const u of[Oe,je]){const f=c[u];if(Array.isArray(f)&&f.length>0){const p=l[u],d=Array.isArray(p)?[...p]:[];let h=!1;for(let v=0;v<f.length;v++){const k=f[v],g=(a=k==null?void 0:k[Js])!==null&&a!==void 0?a:k==null?void 0:k[at];if(g&&g in s){const b=d[v]||{};d[v]=Sn(s[g],b),h=!0}}h&&(l[u]=d)}}}return l}function as(e){var t,r,i;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 as(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return as(e.oneOf[0]);if(e.allOf){const a=n=>as(n);return e.allOf.some(a)}return!1}function SM({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:c=!0}=pe(n,a.globalUiOptions);if(!c)return null;const u=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Yi(d,s)),f=(l=u==null?void 0:u.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const p=he("DescriptionFieldTemplate",a,i);return I.jsx(p,{id:xn(t),description:f,schema:u.schema,uiSchema:n,registry:a})}function kf(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),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a=0;a<r.length;a+=1){const n=r[a];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function CM(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!kf(s,t)||!kf(o,r)}const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function wv(e){const t=Cy(e.map(r=>Re(r)?pr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function ss(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=pe(i,e.globalUiOptions);let n;return je in t&&Array.isArray(t[je])?n=wv(t[je]):Oe in t&&Array.isArray(t[Oe])?n=wv(t[Oe]):n=pr(t),!gM(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function Sv(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:s=0,second:o=0}=e,l=Date.UTC(r,i-1,a,n,s,o),c=new Date(l).toJSON();return t?c:c.slice(0,10)}function wf(e,t=[]){if(!e)return[];let r=[];return Dt in e&&(r=r.concat(e[Dt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Dt){const n=e[a];if(yn(n))return i.concat(wf(n,[...t,a]))}return i},r)}function Cv(e){return Tt(e)?$i(e,vn):ja(e)?[e]:Fu(Qh(vu(e)))}function EM(e){const t=new fv;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:Cv(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Or(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=a?a.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let l;return t.nameGenerator&&s.length>0&&(l=t.nameGenerator(s,t.idPrefix,i)),{path:s,[tt]:o,...l!==void 0&&{name:l}}}function Ev(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return yn(i)?{...t,[r]:Ev(i)}:{...t,[r]:i}},{})}function AM(e){return Object.values(e).every(t=>t!==-1)}function xM(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:c,autofocus:u,registry:f,onBlur:p,onFocus:d}=e,h=`${s}_${r}`,{SelectWidget:v}=f.widgets,k=R.useCallback(g=>n(r,g),[n,r]);return I.jsx(v,{schema:{type:"integer"},id:h,name:o,className:t,options:{enumOptions:sv(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:c,autofocus:u,onChange:k,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":xr(s)})}function OM(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=R.useState(bf(s,t));R.useEffect(()=>{l(bf(s,t))},[t,s]);const c=R.useCallback((d,h)=>{const v={...o,[d]:typeof h>"u"?-1:h};AM(v)?n(Sv(v,t)):l(v)},[o,n,t]),u=R.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=R.useCallback(d=>{if(d.preventDefault(),r||i)return;const h=bf(new Date().toJSON(),t);n(Sv(h,t))},[r,i,t,n]);return{elements:R.useMemo(()=>aM(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:c,handleClear:u,handleSetNow:f}}function Zi(e){const t=R.useRef(e);return Ue(e,t.current)||(t.current=e),t.current}function _M(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function PM(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var l;typeof((l=o.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:_M(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function IM(e){return Promise.all(Array.from(e).map(PM))}function Av(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=GD(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function TM(e,t,r=!1){const i=R.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=R.useMemo(()=>Array.isArray(e)?Av(e):Av([e||""]),[e]),n=R.useCallback(async o=>{const c=(await IM(o)).map(u=>u.dataURL||null);t(r?i.concat(...c):c[0])},[i,r,t]),s=R.useCallback(o=>{if(r){const l=i.filter((c,u)=>u!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function NM(e){if(!e)return"";const t=new Date(e),r=An(t.getFullYear(),4),i=An(t.getMonth()+1,2),a=An(t.getDate(),2),n=An(t.getHours(),2),s=An(t.getMinutes(),2),o=An(t.getSeconds(),2),l=An(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function os(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=wf(t),s=t;return kt(a)||(s=Sn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function FM(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const i=t[r];r===at&&typeof i=="string"&&i.startsWith("#")?t[r]=Hh+i:t[r]=Sf(i)}return e}function DM(e){return e.map(t=>Sf(t))}function Sf(e){return Array.isArray(e)?DM([...e]):Re(e)?FM({...e}):e}var _e;(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)"})(_e||(_e={}));function MM(e,t){var r=Tt(e)?Iu:Gy;return r(e,oy(t))}function jM(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${je}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Oe}/`):void 0;let l;return s&&s>=0?l=n==null?void 0:n.substring(0,s):o&&o>=0&&(l=n==null?void 0:n.substring(0,o)),(l?r.find(u=>{var f;return u.message===a&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(l))}):void 0)||r.push(i),r},[])}function LM(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:c,schemaPath:u,parentSchema:f,...p}=n;let{message:d=""}=p,h=o.replace(/\//g,"."),v=`${h} ${d}`.trim(),k="";const g=[...((s=c.deps)===null||s===void 0?void 0:s.split(", "))||[],c.missingProperty,c.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=h?`${h}.${b}`:b;let E=pe(ae(t,w.replace(/^\./,""))).title;if(E===void 0){const m=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=pe(ae(t,m)).title}if(E===void 0){const m=h.replace(/^\./,"").split(".").filter(Boolean);E=ae(t,[...m,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),k=E;else{const m=ae(f,[ze,b,"title"]);if(m)d=d.replace(`'${b}'`,`'${m}'`),k=m;else if(i){const y=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const _ of y)S.push(ze,_);S.push(ze,b,"title");const x=ae(i,S);x&&(d=d.replace(`'${b}'`,`'${x}'`),k=x)}}}),v=d;else{const b=pe(ae(t,h.replace(/^\./,""))).title;if(b)v=`'${b}' ${d}`.trim(),k=b;else{const w=f==null?void 0:f.title;w&&(v=`'${w}' ${d}`.trim(),k=w)}}return"missingProperty"in c&&(h=h?`${h}.${c.missingProperty}`:c.missingProperty),{name:l,property:h,message:d,params:c,stack:v,schemaPath:u,title:k}});return jM(a,r)}function qM(e,t,r,i,a,n,s,o){const{validationError:l}=t;let c=LM(t.errors,s,o,i);l&&(c=[...c,{stack:l.message}]),typeof n=="function"&&(c=n(c,s));let u=EM(c);if(l&&(u={...u,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:c,errorSchema:u};const f=cf(e,i,r,i,!0),p=a(f,mu(f),s,u),d=Ev(p);return os({errors:c,errorSchema:u},d)}var Eo={exports:{}},Cf={},on={},ui={},Ef={},Af={},xf={},xv;function Ao(){return xv||(xv=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 i 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=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let E=0;for(;E<b.length;)o(w,b[E]),w.push(g[++E]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let E=0;for(;E<b.length;)w.push(n),o(w,b[E]),w.push(n,d(g[++E]));return l(w),new i(w)}e.str=s;function o(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=o;function l(g){let b=1;for(;b<g.length-1;){if(g[b]===n){const w=c(g[b-1],g[b+1]);if(w!==void 0){g.splice(b-1,3,w);continue}g[b++]="+"}b++}}function c(g,b){if(b==='""')return g;if(g==='""')return b;if(typeof g=="string")return b instanceof r||g[g.length-1]!=='"'?void 0:typeof b!="string"?`${g.slice(0,-1)}${b}"`:b[0]==='"'?g.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(g instanceof r))return`"${g}${b.slice(1)}`}function u(g,b){return b.emptyStr()?g:g.emptyStr()?b:s`${g}${b}`}e.strConcat=u;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function p(g){return new i(d(g))}e.stringify=p;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=h;function v(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new i(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=v;function k(g){return new i(g.toString())}e.regexpCode=k})(xf)),xf}var Of={},Ov;function _v(){return Ov||(Ov=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ao();class r extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=a;class n extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:f}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=n;const s=(0,t._)`\n`;class o extends a{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?s:t.nil}}get(){return this._scope}name(c){return new n(c,this._newName(c))}value(c,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const p=this.toName(c),{prefix:d}=p,h=(f=u.key)!==null&&f!==void 0?f:u.ref;let v=this._values[d];if(v){const b=v.get(h);if(b)return b}else v=this._values[d]=new Map;v.set(h,p);const k=this._scope[d]||(this._scope[d]=[]),g=k.length;return k[g]=u.ref,p.setValue(u,{property:d,itemIndex:g}),p}getValue(c,u){const f=this._values[c];if(f)return f.get(u)}scopeRefs(c,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._)`${c}${f.scopePath}`})}scopeCode(c=this._values,u,f){return this._reduceValues(c,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},u,f)}_reduceValues(c,u,f={},p){let d=t.nil;for(const h in c){const v=c[h];if(!v)continue;const k=f[h]=f[h]||new Map;v.forEach(g=>{if(k.has(g))return;k.set(g,i.Started);let b=u(g);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);k.set(g,i.Completed)})}return d}}e.ValueScope=o})(Of)),Of}var Pv;function Ie(){return Pv||(Pv=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=Ao(),r=_v();var i=Ao();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var a=_v();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.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(D,L){return this}}class s extends n{constructor(D,L,B){super(),this.varKind=D,this.name=L,this.rhs=B}render({es5:D,_n:L}){const B=D?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+L}optimizeNames(D,L){if(D[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,D,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(D,L,B){super(),this.lhs=D,this.rhs=L,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,L){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=N(this.rhs,D,L),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(D,this.rhs)}}class l extends o{constructor(D,L,B,V){super(D,B,V),this.op=L}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class c extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class u extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends n{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends n{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,L){return this.code=N(this.code,D,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((L,B)=>L+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let L=D.length;for(;L--;){const B=D[L].optimizeNodes();Array.isArray(B)?D.splice(L,1,...B):B?D[L]=B:D.splice(L,1)}return D.length>0?this:void 0}optimizeNames(D,L){const{nodes:B}=this;let V=B.length;for(;V--;){const W=B[V];W.optimizeNames(D,L)||(M(D,W.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,L)=>O(D,L.names),{})}}class h extends d{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class v extends d{}class k extends h{}k.kind="else";class g extends h{constructor(D,L){super(L),this.condition=D}render(D){let L=`if(${this.condition})`+super.render(D);return this.else&&(L+="else "+this.else.render(D)),L}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new k(B):B}if(L)return D===!1?L instanceof g?L:L.nodes:this.nodes.length?this:new g(q(D),L instanceof g?[L]:L.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,L),!!(super.optimizeNames(D,L)||this.else))return this.condition=N(this.condition,D,L),this}get names(){const D=super.names;return F(D,this.condition),this.else&&O(D,this.else.names),D}}g.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iteration=N(this.iteration,D,L),this}get names(){return O(super.names,this.iteration.names)}}class E extends b{constructor(D,L,B,V){super(),this.varKind=D,this.name=L,this.from=B,this.to=V}render(D){const L=D.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:W}=this;return`for(${L} ${B}=${V}; ${B}<${W}; ${B}++)`+super.render(D)}get names(){const D=F(super.names,this.from);return F(D,this.to)}}class m extends b{constructor(D,L,B,V){super(),this.loop=D,this.varKind=L,this.name=B,this.iterable=V}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iterable=N(this.iterable,D,L),this}get names(){return O(super.names,this.iterable.names)}}class y extends h{constructor(D,L,B){super(),this.name=D,this.args=L,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}y.kind="func";class S extends d{render(D){return"return "+super.render(D)}}S.kind="return";class x extends h{render(D){let L="try"+super.render(D);return this.catch&&(L+=this.catch.render(D)),this.finally&&(L+=this.finally.render(D)),L}optimizeNodes(){var D,L;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(D,L){var B,V;return super.optimizeNames(D,L),(B=this.catch)===null||B===void 0||B.optimizeNames(D,L),(V=this.finally)===null||V===void 0||V.optimizeNames(D,L),this}get names(){const D=super.names;return this.catch&&O(D,this.catch.names),this.finally&&O(D,this.finally.names),D}}class _ extends h{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}_.kind="catch";class C extends h{render(D){return"finally"+super.render(D)}}C.kind="finally";class A{constructor(D,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
77
+ `:""},this._extScope=D,this._scope=new r.Scope({parent:D}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,L){const B=this._extScope.value(D,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,L){return this._extScope.getValue(D,L)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,L,B,V){const W=this._scope.toName(L);return B!==void 0&&V&&(this._constants[W.str]=B),this._leafNode(new s(D,W,B)),W}const(D,L,B){return this._def(r.varKinds.const,D,L,B)}let(D,L,B){return this._def(r.varKinds.let,D,L,B)}var(D,L,B){return this._def(r.varKinds.var,D,L,B)}assign(D,L,B){return this._leafNode(new o(D,L,B))}add(D,L){return this._leafNode(new l(D,e.operators.ADD,L))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const L=["{"];for(const[B,V]of D)L.length>1&&L.push(","),L.push(B),(B!==V||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,V));return L.push("}"),new t._Code(L)}if(D,L,B){if(this._blockNode(new g(D)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new k)}endIf(){return this._endBlockNode(g,k)}_for(D,L){return this._blockNode(D),L&&this.code(L).endFor(),this}for(D,L){return this._for(new w(D),L)}forRange(D,L,B,V,W=this.opts.es5?r.varKinds.var:r.varKinds.let){const Y=this._scope.toName(D);return this._for(new E(W,Y,L,B),()=>V(Y))}forOf(D,L,B,V=r.varKinds.const){const W=this._scope.toName(D);if(this.opts.es5){const Y=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${Y}.length`,Z=>{this.var(W,(0,t._)`${Y}[${Z}]`),B(W)})}return this._for(new m("of",V,W,L),()=>B(W))}forIn(D,L,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${L})`,B);const W=this._scope.toName(D);return this._for(new m("in",V,W,L),()=>B(W))}endFor(){return this._endBlockNode(b)}label(D){return this._leafNode(new c(D))}break(D){return this._leafNode(new u(D))}return(D){const L=new S;if(this._blockNode(L),this.code(D),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(D,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new x;if(this._blockNode(V),this.code(D),L){const W=this.name("e");this._currNode=V.catch=new _(W),L(W)}return B&&(this._currNode=V.finally=new C,this.code(B)),this._endBlockNode(_,C)}throw(D){return this._leafNode(new f(D))}block(D,L){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(L),this}endBlock(D){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=L,this}func(D,L=t.nil,B,V){return this._blockNode(new y(D,L,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,L){const B=this._currNode;if(B instanceof D||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${D.kind}/${L.kind}`:D.kind}"`)}_elseNode(D){const L=this._currNode;if(!(L instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const L=this._nodes;L[L.length-1]=D}}e.CodeGen=A;function O(T,D){for(const L in D)T[L]=(T[L]||0)+(D[L]||0);return T}function F(T,D){return D instanceof t._CodeOrName?O(T,D.names):T}function N(T,D,L){if(T instanceof t.Name)return B(T);if(!V(T))return T;return new t._Code(T._items.reduce((W,Y)=>(Y instanceof t.Name&&(Y=B(Y)),Y instanceof t._Code?W.push(...Y._items):W.push(Y),W),[]));function B(W){const Y=L[W.str];return Y===void 0||D[W.str]!==1?W:(delete D[W.str],Y)}function V(W){return W instanceof t._Code&&W._items.some(Y=>Y instanceof t.Name&&D[Y.str]===1&&L[Y.str]!==void 0)}}function M(T,D){for(const L in D)T[L]=(T[L]||0)-(D[L]||0)}function q(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=q;const H=j(e.operators.AND);function J(...T){return T.reduce(H)}e.and=J;const X=j(e.operators.OR);function P(...T){return T.reduce(X)}e.or=P;function j(T){return(D,L)=>D===t.nil?L:L===t.nil?D:(0,t._)`${U(D)} ${T} ${U(L)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(Af)),Af}var Te={},Iv;function Ve(){if(Iv)return Te;Iv=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.checkStrictMode=Te.getErrorPath=Te.Type=Te.useFunc=Te.setEvaluated=Te.evaluatedPropsToName=Te.mergeEvaluated=Te.eachItem=Te.unescapeJsonPointer=Te.escapeJsonPointer=Te.escapeFragment=Te.unescapeFragment=Te.schemaRefOrVal=Te.schemaHasRulesButRef=Te.schemaHasRules=Te.checkUnknownRules=Te.alwaysValidSchema=Te.toHash=void 0;const e=Ie(),t=Ao();function r(m){const y={};for(const S of m)y[S]=!0;return y}Te.toHash=r;function i(m,y){return typeof y=="boolean"?y:Object.keys(y).length===0?!0:(a(m,y),!n(y,m.self.RULES.all))}Te.alwaysValidSchema=i;function a(m,y=m.schema){const{opts:S,self:x}=m;if(!S.strictSchema||typeof y=="boolean")return;const _=x.RULES.keywords;for(const C in y)_[C]||E(m,`unknown keyword: "${C}"`)}Te.checkUnknownRules=a;function n(m,y){if(typeof m=="boolean")return!m;for(const S in m)if(y[S])return!0;return!1}Te.schemaHasRules=n;function s(m,y){if(typeof m=="boolean")return!m;for(const S in m)if(S!=="$ref"&&y.all[S])return!0;return!1}Te.schemaHasRulesButRef=s;function o({topSchemaRef:m,schemaPath:y},S,x,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${m}${y}${(0,e.getProperty)(x)}`}Te.schemaRefOrVal=o;function l(m){return f(decodeURIComponent(m))}Te.unescapeFragment=l;function c(m){return encodeURIComponent(u(m))}Te.escapeFragment=c;function u(m){return typeof m=="number"?`${m}`:m.replace(/~/g,"~0").replace(/\//g,"~1")}Te.escapeJsonPointer=u;function f(m){return m.replace(/~1/g,"/").replace(/~0/g,"~")}Te.unescapeJsonPointer=f;function p(m,y){if(Array.isArray(m))for(const S of m)y(S);else y(m)}Te.eachItem=p;function d({mergeNames:m,mergeToName:y,mergeValues:S,resultToName:x}){return(_,C,A,O)=>{const F=A===void 0?C:A instanceof e.Name?(C instanceof e.Name?m(_,C,A):y(_,C,A),A):C instanceof e.Name?(y(_,A,C),C):S(C,A);return O===e.Name&&!(F instanceof e.Name)?x(_,F):F}}Te.mergeEvaluated={props:d({mergeNames:(m,y,S)=>m.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{m.if((0,e._)`${y} === true`,()=>m.assign(S,!0),()=>m.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(m,y,S)=>m.if((0,e._)`${S} !== true`,()=>{y===!0?m.assign(S,!0):(m.assign(S,(0,e._)`${S} || {}`),v(m,S,y))}),mergeValues:(m,y)=>m===!0?!0:{...m,...y},resultToName:h}),items:d({mergeNames:(m,y,S)=>m.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>m.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(m,y,S)=>m.if((0,e._)`${S} !== true`,()=>m.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${y}`)),mergeValues:(m,y)=>m===!0?!0:Math.max(m,y),resultToName:(m,y)=>m.var("items",y)})};function h(m,y){if(y===!0)return m.var("props",!0);const S=m.var("props",(0,e._)`{}`);return y!==void 0&&v(m,S,y),S}Te.evaluatedPropsToName=h;function v(m,y,S){Object.keys(S).forEach(x=>m.assign((0,e._)`${y}${(0,e.getProperty)(x)}`,!0))}Te.setEvaluated=v;const k={};function g(m,y){return m.scopeValue("func",{ref:y,code:k[y.code]||(k[y.code]=new t._Code(y.code))})}Te.useFunc=g;var b;(function(m){m[m.Num=0]="Num",m[m.Str=1]="Str"})(b||(Te.Type=b={}));function w(m,y,S){if(m instanceof e.Name){const x=y===b.Num;return S?x?(0,e._)`"[" + ${m} + "]"`:(0,e._)`"['" + ${m} + "']"`:x?(0,e._)`"/" + ${m}`:(0,e._)`"/" + ${m}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(m).toString():"/"+u(m)}Te.getErrorPath=w;function E(m,y,S=m.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);m.self.logger.warn(y)}}return Te.checkStrictMode=E,Te}var xo={},Tv;function On(){if(Tv)return xo;Tv=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=Ie(),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 xo.default=t,xo}var Nv;function Oo(){return Nv||(Nv=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=Ie(),r=Ve(),i=On();e.keywordError={message:({keyword:k})=>(0,t.str)`must pass "${k}" keyword validation`},e.keyword$DataError={message:({keyword:k,schemaType:g})=>g?(0,t.str)`"${k}" keyword must be ${g} ($data)`:(0,t.str)`"${k}" keyword is invalid ($data)`};function a(k,g=e.keywordError,b,w){const{it:E}=k,{gen:m,compositeRule:y,allErrors:S}=E,x=f(k,g,b);w??(y||S)?l(m,x):c(E,(0,t._)`[${x}]`)}e.reportError=a;function n(k,g=e.keywordError,b){const{it:w}=k,{gen:E,compositeRule:m,allErrors:y}=w,S=f(k,g,b);l(E,S),m||y||c(w,i.default.vErrors)}e.reportExtraError=n;function s(k,g){k.assign(i.default.errors,g),k.if((0,t._)`${i.default.vErrors} !== null`,()=>k.if(g,()=>k.assign((0,t._)`${i.default.vErrors}.length`,g),()=>k.assign(i.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:k,keyword:g,schemaValue:b,data:w,errsCount:E,it:m}){if(E===void 0)throw new Error("ajv implementation error");const y=k.name("err");k.forRange("i",E,i.default.errors,S=>{k.const(y,(0,t._)`${i.default.vErrors}[${S}]`),k.if((0,t._)`${y}.instancePath === undefined`,()=>k.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,m.errorPath))),k.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${m.errSchemaPath}/${g}`),m.opts.verbose&&(k.assign((0,t._)`${y}.schema`,b),k.assign((0,t._)`${y}.data`,w))})}e.extendErrors=o;function l(k,g){const b=k.const("err",g);k.if((0,t._)`${i.default.vErrors} === null`,()=>k.assign(i.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${i.default.vErrors}.push(${b})`),k.code((0,t._)`${i.default.errors}++`)}function c(k,g){const{gen:b,validateName:w,schemaEnv:E}=k;E.$async?b.throw((0,t._)`new ${k.ValidationError}(${g})`):(b.assign((0,t._)`${w}.errors`,g),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(k,g,b){const{createErrors:w}=k.it;return w===!1?(0,t._)`{}`:p(k,g,b)}function p(k,g,b={}){const{gen:w,it:E}=k,m=[d(E,b),h(k,b)];return v(k,g,m),w.object(...m)}function d({errorPath:k},{instancePath:g}){const b=g?(0,t.str)`${k}${(0,r.getErrorPath)(g,r.Type.Str)}`:k;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,b)]}function h({keyword:k,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let E=w?g:(0,t.str)`${g}/${k}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,E]}function v(k,{params:g,message:b},w){const{keyword:E,data:m,schemaValue:y,it:S}=k,{opts:x,propertyName:_,topSchemaRef:C,schemaPath:A}=S;w.push([u.keyword,E],[u.params,typeof g=="function"?g(k):g||(0,t._)`{}`]),x.messages&&w.push([u.message,typeof b=="function"?b(k):b]),x.verbose&&w.push([u.schema,y],[u.parentSchema,(0,t._)`${C}${A}`],[i.default.data,m]),_&&w.push([u.propertyName,_])}})(Ef)),Ef}var Fv;function $M(){if(Fv)return ui;Fv=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.boolOrEmptySchema=ui.topBoolOrEmptySchema=void 0;const e=Oo(),t=Ie(),r=On(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:c,validateName:u}=o;c===!1?s(o,!1):typeof c=="object"&&c.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${u}.errors`,null),l.return(!0))}ui.topBoolOrEmptySchema=a;function n(o,l){const{gen:c,schema:u}=o;u===!1?(c.var(l,!1),s(o)):c.var(l,!0)}ui.boolOrEmptySchema=n;function s(o,l){const{gen:c,data:u}=o,f={gen:c,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return ui}var jt={},fi={},Dv;function Mv(){if(Dv)return fi;Dv=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.getRules=fi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(a){return typeof a=="string"&&t.has(a)}fi.isJSONType=r;function i(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return fi.getRules=i,fi}var ln={},jv;function Lv(){if(jv)return ln;jv=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}ln.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}ln.shouldUseGroup=t;function r(i,a){var n;return i[a.keyword]!==void 0||((n=a.definition.implements)===null||n===void 0?void 0:n.some(s=>i[s]!==void 0))}return ln.shouldUseRule=r,ln}var qv;function _o(){if(qv)return jt;qv=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.reportTypeError=jt.checkDataTypes=jt.checkDataType=jt.coerceAndCheckDataType=jt.getJSONTypes=jt.getSchemaTypes=jt.DataType=void 0;const e=Mv(),t=Lv(),r=Oo(),i=Ie(),a=Ve();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(jt.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}jt.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(","))}jt.getJSONTypes=o;function l(b,w){const{gen:E,data:m,opts:y}=b,S=u(w,y.coerceTypes),x=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(x){const _=h(w,m,y.strictNumbers,n.Wrong);E.if(_,()=>{S.length?f(b,w,S):k(b)})}return x}jt.coerceAndCheckDataType=l;const c=new Set(["string","number","integer","boolean","null"]);function u(b,w){return w?b.filter(E=>c.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:m,data:y,opts:S}=b,x=m.let("dataType",(0,i._)`typeof ${y}`),_=m.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&m.if((0,i._)`${x} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>m.assign(y,(0,i._)`${y}[0]`).assign(x,(0,i._)`typeof ${y}`).if(h(w,y,S.strictNumbers),()=>m.assign(_,y))),m.if((0,i._)`${_} !== undefined`);for(const A of E)(c.has(A)||A==="array"&&S.coerceTypes==="array")&&C(A);m.else(),k(b),m.endIf(),m.if((0,i._)`${_} !== undefined`,()=>{m.assign(y,_),p(b,_)});function C(A){switch(A){case"string":m.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":m.elseIf((0,i._)`${x} == "boolean" || ${y} === null
78
+ || (${x} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":m.elseIf((0,i._)`${x} === "boolean" || ${y} === null
79
+ || (${x} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(_,(0,i._)`+${y}`);return;case"boolean":m.elseIf((0,i._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(_,!1).elseIf((0,i._)`${y} === "true" || ${y} === 1`).assign(_,!0);return;case"null":m.elseIf((0,i._)`${y} === "" || ${y} === 0 || ${y} === false`),m.assign(_,null);return;case"array":m.elseIf((0,i._)`${x} === "string" || ${x} === "number"
80
+ || ${x} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},m){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${E}]`,m))}function d(b,w,E,m=n.Correct){const y=m===n.Correct?i.operators.EQ:i.operators.NEQ;let S;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":S=(0,i._)`Array.isArray(${w})`;break;case"object":S=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=x((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=x();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return m===n.Correct?S:(0,i.not)(S);function x(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,E?(0,i._)`isFinite(${w})`:i.nil)}}jt.checkDataType=d;function h(b,w,E,m){if(b.length===1)return d(b[0],w,E,m);let y;const S=(0,a.toHash)(b);if(S.array&&S.object){const x=(0,i._)`typeof ${w} != "object"`;y=S.null?x:(0,i._)`!${w} || ${x}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const x in S)y=(0,i.and)(y,d(x,w,E,m));return y}jt.checkDataTypes=h;const v={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${w}}`};function k(b){const w=g(b);(0,r.reportError)(w,v)}jt.reportTypeError=k;function g(b){const{gen:w,data:E,schema:m}=b,y=(0,a.schemaRefOrVal)(b,m,"type");return{gen:w,keyword:"type",data:E,schema:m.type,schemaCode:y,schemaValue:y,parentSchema:m,params:{},it:b}}return jt}var ls={},$v;function zM(){if($v)return ls;$v=1,Object.defineProperty(ls,"__esModule",{value:!0}),ls.assignDefaults=void 0;const e=Ie(),t=Ve();function r(a,n){const{properties:s,items:o}=a.schema;if(n==="object"&&s)for(const l in s)i(a,l,s[l].default);else n==="array"&&Array.isArray(o)&&o.forEach((l,c)=>i(a,c,l.default))}ls.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:c,opts:u}=a;if(s===void 0)return;const f=(0,e._)`${c}${(0,e.getProperty)(n)}`;if(l){(0,t.checkStrictMode)(a,`default is ignored for: ${f}`);return}let p=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),o.if(p,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return ls}var _r={},st={},zv;function Pr(){if(zv)return st;zv=1,Object.defineProperty(st,"__esModule",{value:!0}),st.validateUnion=st.validateArray=st.usePattern=st.callValidateCode=st.schemaProperties=st.allSchemaProperties=st.noPropertyInData=st.propertyInData=st.isOwnProperty=st.hasPropFunc=st.reportMissingProp=st.checkMissingProp=st.checkReportMissingProp=void 0;const e=Ie(),t=Ve(),r=On(),i=Ve();function a(b,w){const{gen:E,data:m,it:y}=b;E.if(u(E,m,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}st.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:E}},m,y){return(0,e.or)(...m.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${y} = ${S}`)))}st.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}st.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}st.hasPropFunc=o;function l(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}st.isOwnProperty=l;function c(b,w,E,m){const y=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return m?(0,e._)`${y} && ${l(b,w,E)}`:y}st.propertyInData=c;function u(b,w,E,m){const y=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return m?(0,e.or)(y,(0,e.not)(l(b,w,E))):y}st.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}st.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}st.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:m,schemaPath:y,errorPath:S},it:x},_,C,A){const O=A?(0,e._)`${b}, ${w}, ${m}${y}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const N=(0,e._)`${O}, ${E.object(...F)}`;return C!==e.nil?(0,e._)`${_}.call(${C}, ${N})`:(0,e._)`${_}(${N})`}st.callValidateCode=d;const h=(0,e._)`new RegExp`;function v({gen:b,it:{opts:w}},E){const m=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(E,m);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?h:(0,i.useFunc)(b,y)}(${E}, ${m})`})}st.usePattern=v;function k(b){const{gen:w,data:E,keyword:m,it:y}=b,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return x(()=>w.assign(_,!1)),_}return w.var(S,!0),x(()=>w.break()),S;function x(_){const C=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,C,A=>{b.subschema({keyword:m,dataProp:A,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}st.validateArray=k;function g(b){const{gen:w,schema:E,keyword:m,it:y}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(C=>(0,t.alwaysValidSchema)(y,C))&&!y.opts.unevaluated)return;const x=w.let("valid",!1),_=w.name("_valid");w.block(()=>E.forEach((C,A)=>{const O=b.subschema({keyword:m,schemaProp:A,compositeRule:!0},_);w.assign(x,(0,e._)`${x} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(x))})),b.result(x,()=>b.reset(),()=>b.error(!0))}return st.validateUnion=g,st}var Rv;function RM(){if(Rv)return _r;Rv=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateKeywordUsage=_r.validSchemaType=_r.funcKeywordCode=_r.macroKeywordCode=void 0;const e=Ie(),t=On(),r=Pr(),i=Oo();function a(p,d){const{gen:h,keyword:v,schema:k,parentSchema:g,it:b}=p,w=d.macro.call(b.self,k,g,b),E=c(h,v,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const m=h.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${v}`,topSchemaRef:E,compositeRule:!0},m),p.pass(m,()=>p.error(!0))}_r.macroKeywordCode=a;function n(p,d){var h;const{gen:v,keyword:k,schema:g,parentSchema:b,$data:w,it:E}=p;l(E,d);const m=!w&&d.compile?d.compile.call(E.self,g,b,E):d.validate,y=c(v,k,m),S=v.let("valid");p.block$data(S,x),p.ok((h=d.valid)!==null&&h!==void 0?h:S);function x(){if(d.errors===!1)A(),d.modifying&&s(p),O(()=>p.error());else{const F=d.async?_():C();d.modifying&&s(p),O(()=>o(p,F))}}function _(){const F=v.let("ruleErrs",null);return v.try(()=>A((0,e._)`await `),N=>v.assign(S,!1).if((0,e._)`${N} instanceof ${E.ValidationError}`,()=>v.assign(F,(0,e._)`${N}.errors`),()=>v.throw(N))),F}function C(){const F=(0,e._)`${y}.errors`;return v.assign(F,null),A(e.nil),F}function A(F=d.async?(0,e._)`await `:e.nil){const N=E.opts.passContext?t.default.this:t.default.self,M=!("compile"in d&&!w||d.schema===!1);v.assign(S,(0,e._)`${F}${(0,r.callValidateCode)(p,y,N,M)}`,d.modifying)}function O(F){var N;v.if((0,e.not)((N=d.valid)!==null&&N!==void 0?N:S),F)}}_r.funcKeywordCode=n;function s(p){const{gen:d,data:h,it:v}=p;d.if(v.parentData,()=>d.assign(h,(0,e._)`${v.parentData}[${v.parentDataProperty}]`))}function o(p,d){const{gen:h}=p;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,i.extendErrors)(p)},()=>p.error())}function l({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function c(p,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(p,d,h=!1){return!d.length||d.some(v=>v==="array"?Array.isArray(p):v==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==v||h&&typeof p>"u")}_r.validSchemaType=u;function f({schema:p,opts:d,self:h,errSchemaPath:v},k,g){if(Array.isArray(k.keyword)?!k.keyword.includes(g):k.keyword!==g)throw new Error("ajv implementation error");const b=k.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(k.validateSchema&&!k.validateSchema(p[g])){const E=`keyword "${g}" value is invalid at path "${v}": `+h.errorsText(k.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(E);else throw new Error(E)}}return _r.validateKeywordUsage=f,_r}var cn={},Uv;function UM(){if(Uv)return cn;Uv=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.extendSubschemaMode=cn.extendSubschemaData=cn.getSubschema=void 0;const e=Ie(),t=Ve();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:c,errSchemaPath:u,topSchemaRef:f}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const p=n.schema[s];return o===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:p[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(l!==void 0){if(c===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:c,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}cn.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:c,dataTypes:u,propertyName:f}){if(c!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=s;if(o!==void 0){const{errorPath:h,dataPathArr:v,opts:k}=s,g=p.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(o,l,k.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...v,n.parentDataProperty]}if(c!==void 0){const h=c instanceof e.Name?c:p.let("data",c,!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]}}cn.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:l,createErrors:c,allErrors:u}){l!==void 0&&(n.compositeRule=l),c!==void 0&&(n.createErrors=c),u!==void 0&&(n.allErrors=u),n.jtdDiscriminator=s,n.jtdMetadata=o}return cn.extendSubschemaMode=a,cn}var Ht={},_f,Bv;function Vv(){return Bv||(Bv=1,_f=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 i,a,n;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(t[a],r[a]))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),i=n.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[a]))return!1;for(a=i;a--!==0;){var s=n[a];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),_f}var Pf={exports:{}},Hv;function BM(){if(Hv)return Pf.exports;Hv=1;var e=Pf.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(a,s,o,i,"",i)};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(i,a,n,s,o,l,c,u,f,p){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,c,u,f,p);for(var d in s){var h=s[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var v=0;v<h.length;v++)t(i,a,n,h[v],o+"/"+d+"/"+v,l,o,d,s,v)}else if(d in e.propsKeywords){if(h&&typeof h=="object")for(var k in h)t(i,a,n,h[k],o+"/"+d+"/"+r(k),l,o,d,s,k)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,h,o+"/"+d,l,o,d,s)}n(s,o,l,c,u,f,p)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Pf.exports}var Wv;function Po(){if(Wv)return Ht;Wv=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getSchemaRefs=Ht.resolveUrl=Ht.normalizeId=Ht._getFullPath=Ht.getFullPath=Ht.inlineRef=void 0;const e=Ve(),t=Vv(),r=BM(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(v,k=!0){return typeof v=="boolean"?!0:k===!0?!s(v):k?o(v)<=k:!1}Ht.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(v){for(const k in v){if(n.has(k))return!0;const g=v[k];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(v){let k=0;for(const g in v){if(g==="$ref")return 1/0;if(k++,!i.has(g)&&(typeof v[g]=="object"&&(0,e.eachItem)(v[g],b=>k+=o(b)),k===1/0))return 1/0}return k}function l(v,k="",g){g!==!1&&(k=f(k));const b=v.parse(k);return c(v,b)}Ht.getFullPath=l;function c(v,k){return v.serialize(k).split("#")[0]+"#"}Ht._getFullPath=c;const u=/#\/?$/;function f(v){return v?v.replace(u,""):""}Ht.normalizeId=f;function p(v,k,g){return g=f(g),v.resolve(k,g)}Ht.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function h(v,k){if(typeof v=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(v[g]||k),E={"":w},m=l(b,w,!1),y={},S=new Set;return r(v,{allKeys:!0},(C,A,O,F)=>{if(F===void 0)return;const N=m+A;let M=E[F];typeof C[g]=="string"&&(M=q.call(this,C[g])),H.call(this,C.$anchor),H.call(this,C.$dynamicAnchor),E[A]=M;function q(J){const X=this.opts.uriResolver.resolve;if(J=f(M?X(M,J):J),S.has(J))throw _(J);S.add(J);let P=this.refs[J];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?x(C,P.schema,J):J!==f(N)&&(J[0]==="#"?(x(C,y[J],J),y[J]=C):this.refs[J]=N),J}function H(J){if(typeof J=="string"){if(!d.test(J))throw new Error(`invalid anchor "${J}"`);q.call(this,`#${J}`)}}}),y;function x(C,A,O){if(A!==void 0&&!t(C,A))throw _(O)}function _(C){return new Error(`reference "${C}" resolves to more than one schema`)}}return Ht.getSchemaRefs=h,Ht}var Kv;function Io(){if(Kv)return on;Kv=1,Object.defineProperty(on,"__esModule",{value:!0}),on.getData=on.KeywordCxt=on.validateFunctionCode=void 0;const e=$M(),t=_o(),r=Lv(),i=_o(),a=zM(),n=RM(),s=UM(),o=Ie(),l=On(),c=Po(),u=Ve(),f=Oo();function p(z){if(m(z)&&(S(z),E(z))){k(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}on.validateFunctionCode=p;function d({gen:z,validateName:$,schema:G,schemaEnv:K,opts:ee},te){ee.code.es5?z.func($,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,o._)`"use strict"; ${b(G,ee)}`),v(z,ee),z.code(te)}):z.func($,(0,o._)`${l.default.data}, ${h(ee)}`,K.$async,()=>z.code(b(G,ee)).code(te))}function h(z){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${z.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function v(z,$){z.if(l.default.valCxt,()=>{z.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),z.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),z.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),z.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{z.var(l.default.instancePath,(0,o._)`""`),z.var(l.default.parentData,(0,o._)`undefined`),z.var(l.default.parentDataProperty,(0,o._)`undefined`),z.var(l.default.rootData,l.default.data),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function k(z){const{schema:$,opts:G,gen:K}=z;d(z,()=>{G.$comment&&$.$comment&&F(z),C(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),G.unevaluated&&g(z),x(z),N(z)})}function g(z){const{gen:$,validateName:G}=z;z.evaluated=$.const("evaluated",(0,o._)`${G}.evaluated`),$.if((0,o._)`${z.evaluated}.dynamicProps`,()=>$.assign((0,o._)`${z.evaluated}.props`,(0,o._)`undefined`)),$.if((0,o._)`${z.evaluated}.dynamicItems`,()=>$.assign((0,o._)`${z.evaluated}.items`,(0,o._)`undefined`))}function b(z,$){const G=typeof z=="object"&&z[$.schemaId];return G&&($.code.source||$.code.process)?(0,o._)`/*# sourceURL=${G} */`:o.nil}function w(z,$){if(m(z)&&(S(z),E(z))){y(z,$);return}(0,e.boolOrEmptySchema)(z,$)}function E({schema:z,self:$}){if(typeof z=="boolean")return!z;for(const G in z)if($.RULES.all[G])return!0;return!1}function m(z){return typeof z.schema!="boolean"}function y(z,$){const{schema:G,gen:K,opts:ee}=z;ee.$comment&&G.$comment&&F(z),A(z),O(z);const te=K.const("_errs",l.default.errors);x(z,te),K.var($,(0,o._)`${te} === ${l.default.errors}`)}function S(z){(0,u.checkUnknownRules)(z),_(z)}function x(z,$){if(z.opts.jtd)return q(z,[],!1,$);const G=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,G);q(z,G,!K,$)}function _(z){const{schema:$,errSchemaPath:G,opts:K,self:ee}=z;$.$ref&&K.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)($,ee.RULES)&&ee.logger.warn(`$ref: keywords ignored in schema at path "${G}"`)}function C(z){const{schema:$,opts:G}=z;$.default!==void 0&&G.useDefaults&&G.strictSchema&&(0,u.checkStrictMode)(z,"default is ignored in the schema root")}function A(z){const $=z.schema[z.opts.schemaId];$&&(z.baseId=(0,c.resolveUrl)(z.opts.uriResolver,z.baseId,$))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:z,schemaEnv:$,schema:G,errSchemaPath:K,opts:ee}){const te=G.$comment;if(ee.$comment===!0)z.code((0,o._)`${l.default.self}.logger.log(${te})`);else if(typeof ee.$comment=="function"){const se=(0,o.str)`${K}/$comment`,ge=z.scopeValue("root",{ref:$.root});z.code((0,o._)`${l.default.self}.opts.$comment(${te}, ${se}, ${ge}.schema)`)}}function N(z){const{gen:$,schemaEnv:G,validateName:K,ValidationError:ee,opts:te}=z;G.$async?$.if((0,o._)`${l.default.errors} === 0`,()=>$.return(l.default.data),()=>$.throw((0,o._)`new ${ee}(${l.default.vErrors})`)):($.assign((0,o._)`${K}.errors`,l.default.vErrors),te.unevaluated&&M(z),$.return((0,o._)`${l.default.errors} === 0`))}function M({gen:z,evaluated:$,props:G,items:K}){G instanceof o.Name&&z.assign((0,o._)`${$}.props`,G),K instanceof o.Name&&z.assign((0,o._)`${$}.items`,K)}function q(z,$,G,K){const{gen:ee,schema:te,data:se,allErrors:ge,opts:be,self:ve}=z,{RULES:Se}=ve;if(te.$ref&&(be.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(te,Se))){ee.block(()=>V(z,"$ref",Se.all.$ref.definition));return}be.jtd||J(z,$),ee.block(()=>{for(const We of Se.rules)de(We);de(Se.post)});function de(We){(0,r.shouldUseGroup)(te,We)&&(We.type?(ee.if((0,i.checkDataType)(We.type,se,be.strictNumbers)),H(z,We),$.length===1&&$[0]===We.type&&G&&(ee.else(),(0,i.reportTypeError)(z)),ee.endIf()):H(z,We),ge||ee.if((0,o._)`${l.default.errors} === ${K||0}`))}}function H(z,$){const{gen:G,schema:K,opts:{useDefaults:ee}}=z;ee&&(0,a.assignDefaults)(z,$.type),G.block(()=>{for(const te of $.rules)(0,r.shouldUseRule)(K,te)&&V(z,te.keyword,te.definition,$.type)})}function J(z,$){z.schemaEnv.meta||!z.opts.strictTypes||(X(z,$),z.opts.allowUnionTypes||P(z,$),j(z,z.dataTypes))}function X(z,$){if($.length){if(!z.dataTypes.length){z.dataTypes=$;return}$.forEach(G=>{T(z.dataTypes,G)||L(z,`type "${G}" not allowed by context "${z.dataTypes.join(",")}"`)}),D(z,$)}}function P(z,$){$.length>1&&!($.length===2&&$.includes("null"))&&L(z,"use allowUnionTypes to allow union type keyword")}function j(z,$){const G=z.self.RULES.all;for(const K in G){const ee=G[K];if(typeof ee=="object"&&(0,r.shouldUseRule)(z.schema,ee)){const{type:te}=ee.definition;te.length&&!te.some(se=>U($,se))&&L(z,`missing type "${te.join(",")}" for keyword "${K}"`)}}}function U(z,$){return z.includes($)||$==="number"&&z.includes("integer")}function T(z,$){return z.includes($)||$==="integer"&&z.includes("number")}function D(z,$){const G=[];for(const K of z.dataTypes)T($,K)?G.push(K):$.includes("integer")&&K==="number"&&G.push("integer");z.dataTypes=G}function L(z,$){const G=z.schemaEnv.baseId+z.errSchemaPath;$+=` at "${G}" (strictTypes)`,(0,u.checkStrictMode)(z,$,z.opts.strictTypes)}class B{constructor($,G,K){if((0,n.validateKeywordUsage)($,G,K),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=K,this.data=$.data,this.schema=$.schema[K],this.$data=G.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)($,this.schema,K,this.$data),this.schemaType=G.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=G,this.$data)this.schemaCode=$.gen.const("vSchema",Z(this.$data,$));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,G.schemaType,G.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(G.schemaType)}`);("code"in G?G.trackErrors:G.errors!==!1)&&(this.errsCount=$.gen.const("_errs",l.default.errors))}result($,G,K){this.failResult((0,o.not)($),G,K)}failResult($,G,K){this.gen.if($),K?K():this.error(),G?(this.gen.else(),G(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass($,G){this.failResult((0,o.not)($),void 0,G)}fail($){if($===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if($),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data($){if(!this.$data)return this.fail($);const{schemaCode:G}=this;this.fail((0,o._)`${G} !== undefined && (${(0,o.or)(this.invalid$data(),$)})`)}error($,G,K){if(G){this.setParams(G),this._error($,K),this.setParams({});return}this._error($,K)}_error($,G){($?f.reportExtraError:f.reportError)(this,this.def.error,G)}$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($){this.allErrors||this.gen.if($)}setParams($,G){G?Object.assign(this.params,$):this.params=$}block$data($,G,K=o.nil){this.gen.block(()=>{this.check$data($,K),G()})}check$data($=o.nil,G=o.nil){if(!this.$data)return;const{gen:K,schemaCode:ee,schemaType:te,def:se}=this;K.if((0,o.or)((0,o._)`${ee} === undefined`,G)),$!==o.nil&&K.assign($,!0),(te.length||se.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),$!==o.nil&&K.assign($,!1)),K.else()}invalid$data(){const{gen:$,schemaCode:G,schemaType:K,def:ee,it:te}=this;return(0,o.or)(se(),ge());function se(){if(K.length){if(!(G instanceof o.Name))throw new Error("ajv implementation error");const be=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(be,G,te.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ge(){if(ee.validateSchema){const be=$.scopeValue("validate$data",{ref:ee.validateSchema});return(0,o._)`!${be}(${G})`}return o.nil}}subschema($,G){const K=(0,s.getSubschema)(this.it,$);(0,s.extendSubschemaData)(K,this.it,$),(0,s.extendSubschemaMode)(K,$);const ee={...this.it,...K,items:void 0,props:void 0};return w(ee,G),ee}mergeEvaluated($,G){const{it:K,gen:ee}=this;K.opts.unevaluated&&(K.props!==!0&&$.props!==void 0&&(K.props=u.mergeEvaluated.props(ee,$.props,K.props,G)),K.items!==!0&&$.items!==void 0&&(K.items=u.mergeEvaluated.items(ee,$.items,K.items,G)))}mergeValidEvaluated($,G){const{it:K,gen:ee}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ee.if(G,()=>this.mergeEvaluated($,o.Name)),!0}}on.KeywordCxt=B;function V(z,$,G,K){const ee=new B(z,G,$);"code"in G?G.code(ee,K):ee.$data&&G.validate?(0,n.funcKeywordCode)(ee,G):"macro"in G?(0,n.macroKeywordCode)(ee,G):(G.compile||G.validate)&&(0,n.funcKeywordCode)(ee,G)}const W=/^\/(?:[^~]|~0|~1)*$/,Y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Z(z,{dataLevel:$,dataNames:G,dataPathArr:K}){let ee,te;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!W.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ee=z,te=l.default.rootData}else{const ve=Y.exec(z);if(!ve)throw new Error(`Invalid JSON-pointer: ${z}`);const Se=+ve[1];if(ee=ve[2],ee==="#"){if(Se>=$)throw new Error(be("property/index",Se));return K[$-Se]}if(Se>$)throw new Error(be("data",Se));if(te=G[$-Se],!ee)return te}let se=te;const ge=ee.split("/");for(const ve of ge)ve&&(te=(0,o._)`${te}${(0,o.getProperty)((0,u.unescapeJsonPointer)(ve))}`,se=(0,o._)`${se} && ${te}`);return se;function be(ve,Se){return`Cannot access ${ve} ${Se} levels up, current level is ${$}`}}return on.getData=Z,on}var To={},Gv;function If(){if(Gv)return To;Gv=1,Object.defineProperty(To,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return To.default=e,To}var No={},Jv;function Fo(){if(Jv)return No;Jv=1,Object.defineProperty(No,"__esModule",{value:!0});const e=Po();class t extends Error{constructor(i,a,n,s){super(s||`can't resolve reference ${n} from id ${a}`),this.missingRef=(0,e.resolveUrl)(i,a,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}return No.default=t,No}var nr={},Yv;function Tf(){if(Yv)return nr;Yv=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;const e=Ie(),t=If(),r=On(),i=Po(),a=Ve(),n=Io();class s{constructor(g){var b;this.refs={},this.dynamicAnchors={};let w;typeof g.schema=="object"&&(w=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.root=g.root||this,this.baseId=(b=g.baseId)!==null&&b!==void 0?b:(0,i.normalizeId)(w==null?void 0:w[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}nr.SchemaEnv=s;function o(k){const g=u.call(this,k);if(g)return g;const b=(0,i.getFullPath)(this.opts.uriResolver,k.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:m}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:m});let S;k.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const x=y.scopeName("validate");k.validateName=x;const _={gen:y,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:y.scopeValue("schema",this.opts.code.source===!0?{ref:k.schema,code:(0,e.stringify)(k.schema)}:{ref:k.schema}),validateName:x,ValidationError:S,schema:k.schema,schemaEnv:k,rootId:b,baseId:k.baseId||b,schemaPath:e.nil,errSchemaPath:k.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let C;try{this._compilations.add(k),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const A=y.toString();C=`${y.scopeRefs(r.default.scope)}return ${A}`,this.opts.code.process&&(C=this.opts.code.process(C,k));const F=new Function(`${r.default.self}`,`${r.default.scope}`,C)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=k.schema,F.schemaEnv=k,k.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:A,scopeValues:y._values}),this.opts.unevaluated){const{props:N,items:M}=_;F.evaluated={props:N instanceof e.Name?void 0:N,items:M instanceof e.Name?void 0:M,dynamicProps:N instanceof e.Name,dynamicItems:M instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return k.validate=F,k}catch(A){throw delete k.validate,delete k.validateName,C&&this.logger.error("Error compiling schema, function code:",C),A}finally{this._compilations.delete(k)}}nr.compileSchema=o;function l(k,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const E=k.refs[b];if(E)return E;let m=p.call(this,k,b);if(m===void 0){const y=(w=k.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;y&&(m=new s({schema:y,schemaId:S,root:k,baseId:g}))}if(m!==void 0)return k.refs[b]=c.call(this,m)}nr.resolveRef=l;function c(k){return(0,i.inlineRef)(k.schema,this.opts.inlineRefs)?k.schema:k.validate?k:o.call(this,k)}function u(k){for(const g of this._compilations)if(f(g,k))return g}nr.getCompilingSchema=u;function f(k,g){return k.schema===g.schema&&k.root===g.root&&k.baseId===g.baseId}function p(k,g){let b;for(;typeof(b=this.refs[g])=="string";)g=b;return b||this.schemas[g]||d.call(this,k,g)}function d(k,g){const b=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,b);let E=(0,i.getFullPath)(this.opts.uriResolver,k.baseId,void 0);if(Object.keys(k.schema).length>0&&w===E)return v.call(this,b,k);const m=(0,i.normalizeId)(w),y=this.refs[m]||this.schemas[m];if(typeof y=="string"){const S=d.call(this,k,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:v.call(this,b,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),m===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:x}=this.opts,_=S[x];return _&&(E=(0,i.resolveUrl)(this.opts.uriResolver,E,_)),new s({schema:S,schemaId:x,root:k,baseId:E})}return v.call(this,b,y)}}nr.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v(k,{baseId:g,schema:b,root:w}){var E;if(((E=k.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of k.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const x=b[(0,a.unescapeFragment)(S)];if(x===void 0)return;b=x;const _=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let m;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);m=d.call(this,w,S)}const{schemaId:y}=this.opts;if(m=m||new s({schema:b,schemaId:y,root:w,baseId:g}),m.schema!==m.root.schema)return m}return nr}const VM={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Do={},cs={exports:{}},Nf,Xv;function Zv(){if(Xv)return Nf;Xv=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),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(m){let y="",S=0,x=0;for(x=0;x<m.length;x++)if(S=m[x].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=m[x];break}for(x+=1;x<m.length;x++){if(S=m[x].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=m[x]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(m){return m.length=0,!0}function l(m,y,S){if(m.length){const x=n(m);if(x!=="")y.push(x);else return S.error=!0,!1;m.length=0}return!0}function c(m){let y=0;const S={error:!1,address:"",zone:""},x=[],_=[];let C=!1,A=!1,O=l;for(let F=0;F<m.length;F++){const N=m[F];if(!(N==="["||N==="]"))if(N===":"){if(C===!0&&(A=!0),!O(_,x,S))break;if(++y>7){S.error=!0;break}F>0&&m[F-1]===":"&&(C=!0),x.push(":");continue}else if(N==="%"){if(!O(_,x,S))break;O=o}else{_.push(N);continue}}return _.length&&(O===o?S.zone=_.join(""):A?x.push(_.join("")):x.push(n(_))),S.address=x.join(""),S}function u(m){if(f(m,":")<2)return{host:m,isIPV6:!1};const y=c(m);if(y.error)return{host:m,isIPV6:!1};{let S=y.address,x=y.address;return y.zone&&(S+="%"+y.zone,x+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:x}}}function f(m,y){let S=0;for(let x=0;x<m.length;x++)m[x]===y&&S++;return S}function p(m){let y=m;const S=[];let x=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){S.push("/");break}else{S.push(y);break}}else if(_===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){S.push("/");break}}else if(_===3&&y==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),S.length!==0&&S.pop();continue}}if((x=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,x)),y=y.slice(x)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,v=/[@/?#]/g;function k(m,y){const S=y?v:h;return S.lastIndex=0,m.replace(S,x=>d[x])}function g(m,y=!1){if(m.indexOf("%")===-1)return m;let S="";for(let x=0;x<m.length;x++){if(m[x]==="%"&&x+2<m.length){const _=m.slice(x+1,x+3);if(r(_)){const C=_.toUpperCase(),A=String.fromCharCode(parseInt(C,16));y&&i(A)?S+=A:S+="%"+C,x+=2;continue}}S+=m[x]}return S}function b(m){let y="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const x=m.slice(S+1,S+3);if(r(x)){const _=x.toUpperCase(),C=String.fromCharCode(parseInt(_,16));C!=="."&&i(C)?y+=C:y+="%"+_,S+=2;continue}}a(m[S])?y+=m[S]:y+=escape(m[S])}return y}function w(m){let y="";for(let S=0;S<m.length;S++){if(m[S]==="%"&&S+2<m.length){const x=m.slice(S+1,S+3);if(r(x)){y+="%"+x.toUpperCase(),S+=2;continue}}y+=escape(m[S])}return y}function E(m){const y=[];if(m.userinfo!==void 0&&(y.push(m.userinfo),y.push("@")),m.host!==void 0){let S=unescape(m.host);if(!t(S)){const x=u(S);x.isIPV6===!0?S=`[${x.escapedHost}]`:S=k(S,!1)}y.push(S)}return(typeof m.port=="number"||typeof m.port=="string")&&(y.push(":"),y.push(String(m.port))),y.length?y.join(""):void 0}return Nf={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:k,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},Nf}var Ff,Qv;function HM(){if(Qv)return Ff;Qv=1;const{isUUID:e}=Zv(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(m){return r.indexOf(m)!==-1}function a(m){return m.secure===!0?!0:m.secure===!1?!1:m.scheme?m.scheme.length===3&&(m.scheme[0]==="w"||m.scheme[0]==="W")&&(m.scheme[1]==="s"||m.scheme[1]==="S")&&(m.scheme[2]==="s"||m.scheme[2]==="S"):!1}function n(m){return m.host||(m.error=m.error||"HTTP URIs must have a host."),m}function s(m){const y=String(m.scheme).toLowerCase()==="https";return(m.port===(y?443:80)||m.port==="")&&(m.port=void 0),m.path||(m.path="/"),m}function o(m){return m.secure=a(m),m.resourceName=(m.path||"/")+(m.query?"?"+m.query:""),m.path=void 0,m.query=void 0,m}function l(m){if((m.port===(a(m)?443:80)||m.port==="")&&(m.port=void 0),typeof m.secure=="boolean"&&(m.scheme=m.secure?"wss":"ws",m.secure=void 0),m.resourceName){const[y,S]=m.resourceName.split("?");m.path=y&&y!=="/"?y:void 0,m.query=S,m.resourceName=void 0}return m.fragment=void 0,m}function c(m,y){if(!m.path)return m.error="URN can not be parsed",m;const S=m.path.match(t);if(S){const x=y.scheme||m.scheme||"urn";m.nid=S[1].toLowerCase(),m.nss=S[2];const _=`${x}:${y.nid||m.nid}`,C=E(_);m.path=void 0,C&&(m=C.parse(m,y))}else m.error=m.error||"URN can not be parsed.";return m}function u(m,y){if(m.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=y.scheme||m.scheme||"urn",x=m.nid.toLowerCase(),_=`${S}:${y.nid||x}`,C=E(_);C&&(m=C.serialize(m,y));const A=m,O=m.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(m,y){const S=m;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function p(m){const y=m;return y.nss=(m.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},v={scheme:"ws",domainHost:!0,parse:o,serialize:l},k={scheme:"wss",domainHost:v.domainHost,parse:v.parse,serialize:v.serialize},w={http:d,https:h,ws:v,wss:k,urn:{scheme:"urn",parse:c,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(m){return m&&(w[m]||w[m.toLowerCase()])||void 0}return Ff={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},Ff}var eb;function WM(){if(eb)return cs.exports;eb=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=Zv(),{SCHEMES:c,getSchemeHandler:u}=HM();function f(x,_){return typeof x=="string"?x=E(x,_):typeof x=="object"&&(x=w(v(x,_),_)),x}function p(x,_,C){const A=C?Object.assign({scheme:"null"},C):{scheme:"null"},O=d(w(x,A),w(_,A),A,!0);return A.skipEscape=!0,v(O,A)}function d(x,_,C,A){const O={};return A||(x=w(v(x,C),C),_=w(v(_,C),C)),C=C||{},!C.tolerant&&_.scheme?(O.scheme=_.scheme,O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.path?(_.path[0]==="/"?O.path=t(_.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?O.path="/"+_.path:x.path?O.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=x.path,_.query!==void 0?O.query=_.query:O.query=x.query),O.userinfo=x.userinfo,O.host=x.host,O.port=x.port),O.scheme=x.scheme),O.fragment=_.fragment,O}function h(x,_,C){const A=y(x,C),O=y(_,C);return A!==void 0&&O!==void 0&&A.toLowerCase()===O.toLowerCase()}function v(x,_){const C={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:""},A=Object.assign({},_),O=[],F=u(A.scheme||C.scheme);F&&F.serialize&&F.serialize(C,A),C.path!==void 0&&(A.skipEscape?C.path=i(C.path):(C.path=n(C.path),C.scheme!==void 0&&(C.path=C.path.split("%3A").join(":")))),A.reference!=="suffix"&&C.scheme&&O.push(C.scheme,":");const N=r(C);if(N!==void 0&&(A.reference!=="suffix"&&O.push("//"),O.push(N),C.path&&C.path[0]!=="/"&&O.push("/")),C.path!==void 0){let M=C.path;!A.absolutePath&&(!F||!F.absolutePath)&&(M=t(M)),N===void 0&&M[0]==="/"&&M[1]==="/"&&(M="/%2F"+M.slice(2)),O.push(M)}return C.query!==void 0&&O.push("?",C.query),C.fragment!==void 0&&O.push("#",C.fragment),O.join("")}const k=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(x,_){if(_[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 b(x,_){const C=Object.assign({},_),A={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,F=!1;C.reference==="suffix"&&(C.scheme?x=C.scheme+":"+x:x="//"+x);const N=x.match(k);if(N){A.scheme=N[1],A.userinfo=N[3],A.host=N[4],A.port=parseInt(N[5],10),A.path=N[6]||"",A.query=N[7],A.fragment=N[8],isNaN(A.port)&&(A.port=N[5]);const M=g(A,N);if(M!==void 0&&(A.error=A.error||M,O=!0),A.host)if(o(A.host)===!1){const J=e(A.host);A.host=J.host.toLowerCase(),F=J.isIPV6}else F=!0;A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&A.query===void 0&&!A.path?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==A.reference&&(A.error=A.error||"URI is not a "+C.reference+" reference.");const q=u(C.scheme||A.scheme);if(!C.unicodeSupport&&(!q||!q.unicodeSupport)&&A.host&&(C.domainHost||q&&q.domainHost)&&F===!1&&l(A.host))try{A.host=URL.domainToASCII(A.host.toLowerCase())}catch(H){A.error=A.error||"Host's domain name can not be converted to ASCII: "+H}if((!q||q&&!q.skipNormalize)&&(x.indexOf("%")!==-1&&(A.scheme!==void 0&&(A.scheme=unescape(A.scheme)),A.host!==void 0&&(A.host=s(unescape(A.host),F))),A.path&&(A.path=a(A.path)),A.fragment))try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}q&&q.parse&&q.parse(A,C)}else A.error=A.error||"URI can not be parsed.";return{parsed:A,malformedAuthorityOrPort:O}}function w(x,_){return b(x,_).parsed}function E(x,_){return m(x,_).normalized}function m(x,_){const{parsed:C,malformedAuthorityOrPort:A}=b(x,_);return{normalized:A?x:v(C,_),malformedAuthorityOrPort:A}}function y(x,_){if(typeof x=="string"){const{normalized:C,malformedAuthorityOrPort:A}=m(x,_);return A?void 0:C}if(typeof x=="object")return v(x,_)}const S={SCHEMES:c,normalize:f,resolve:p,resolveComponent:d,equal:h,serialize:v,parse:w};return cs.exports=S,cs.exports.default=S,cs.exports.fastUri=S,cs.exports}var tb;function KM(){if(tb)return Do;tb=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=WM();return e.code='require("ajv/dist/runtime/uri").default',Do.default=e,Do}var rb;function GM(){return rb||(rb=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=Io();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ie();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 i=If(),a=Fo(),n=Mv(),s=Tf(),o=Ie(),l=Po(),c=_o(),u=Ve(),f=VM,p=KM(),d=(P,j)=>new RegExp(P,j);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),k={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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var j,U,T,D,L,B,V,W,Y,Z,z,$,G,K,ee,te,se,ge,be,ve,Se,de,We,ct,ke;const Q=P.strict,re=(j=P.code)===null||j===void 0?void 0:j.optimize,ne=re===!0||re===void 0?1:re||0,ye=(T=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&T!==void 0?T:d,ue=(D=P.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:Q)!==null&&B!==void 0?B:!0,strictNumbers:(W=(V=P.strictNumbers)!==null&&V!==void 0?V:Q)!==null&&W!==void 0?W:!0,strictTypes:(Z=(Y=P.strictTypes)!==null&&Y!==void 0?Y:Q)!==null&&Z!==void 0?Z:"log",strictTuples:($=(z=P.strictTuples)!==null&&z!==void 0?z:Q)!==null&&$!==void 0?$:"log",strictRequired:(K=(G=P.strictRequired)!==null&&G!==void 0?G:Q)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:ne,regExp:ye}:{optimize:ne,regExp:ye},loopRequired:(ee=P.loopRequired)!==null&&ee!==void 0?ee:b,loopEnum:(te=P.loopEnum)!==null&&te!==void 0?te:b,meta:(se=P.meta)!==null&&se!==void 0?se:!0,messages:(ge=P.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(be=P.inlineRefs)!==null&&be!==void 0?be:!0,schemaId:(ve=P.schemaId)!==null&&ve!==void 0?ve:"$id",addUsedSchema:(Se=P.addUsedSchema)!==null&&Se!==void 0?Se:!0,validateSchema:(de=P.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(We=P.validateFormats)!==null&&We!==void 0?We:!0,unicodeRegExp:(ct=P.unicodeRegExp)!==null&&ct!==void 0?ct:!0,int32range:(ke=P.int32range)!==null&&ke!==void 0?ke:!0,uriResolver:ue}}class E{constructor(j={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,j=this.opts={...j,...w(j)};const{es5:U,lines:T}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:v,es5:U,lines:T}),this.logger=O(j.logger);const D=j.validateFormats;j.validateFormats=!1,this.RULES=(0,n.getRules)(),m.call(this,k,j,"NOT SUPPORTED"),m.call(this,g,j,"DEPRECATED","warn"),this._metaOpts=C.call(this),j.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),j.keywords&&_.call(this,j.keywords),typeof j.meta=="object"&&this.addMetaSchema(j.meta),S.call(this),j.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:j,meta:U,schemaId:T}=this.opts;let D=f;T==="id"&&(D={...f},D.id=D.$id,delete D.$id),U&&j&&this.addMetaSchema(D,D[T],!1)}defaultMeta(){const{meta:j,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof j=="object"?j[U]||j:void 0}validate(j,U){let T;if(typeof j=="string"){if(T=this.getSchema(j),!T)throw new Error(`no schema with key or ref "${j}"`)}else T=this.compile(j);const D=T(U);return"$async"in T||(this.errors=T.errors),D}compile(j,U){const T=this._addSchema(j,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(j,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return D.call(this,j,U);async function D(Z,z){await L.call(this,Z.$schema);const $=this._addSchema(Z,z);return $.validate||B.call(this,$)}async function L(Z){Z&&!this.getSchema(Z)&&await D.call(this,{$ref:Z},!0)}async function B(Z){try{return this._compileSchemaEnv(Z)}catch(z){if(!(z instanceof a.default))throw z;return V.call(this,z),await W.call(this,z.missingSchema),B.call(this,Z)}}function V({missingSchema:Z,missingRef:z}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${z} cannot be resolved`)}async function W(Z){const z=await Y.call(this,Z);this.refs[Z]||await L.call(this,z.$schema),this.refs[Z]||this.addSchema(z,Z,U)}async function Y(Z){const z=this._loading[Z];if(z)return z;try{return await(this._loading[Z]=T(Z))}finally{delete this._loading[Z]}}}addSchema(j,U,T,D=this.opts.validateSchema){if(Array.isArray(j)){for(const B of j)this.addSchema(B,void 0,T,D);return this}let L;if(typeof j=="object"){const{schemaId:B}=this.opts;if(L=j[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return U=(0,l.normalizeId)(U||L),this._checkUnique(U),this.schemas[U]=this._addSchema(j,T,U,D,!0),this}addMetaSchema(j,U,T=this.opts.validateSchema){return this.addSchema(j,U,!0,T),this}validateSchema(j,U){if(typeof j=="boolean")return!0;let T;if(T=j.$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 D=this.validate(T,j);if(!D&&U){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return D}getSchema(j){let U;for(;typeof(U=y.call(this,j))=="string";)j=U;if(U===void 0){const{schemaId:T}=this.opts,D=new s.SchemaEnv({schema:{},schemaId:T});if(U=s.resolveSchema.call(this,D,j),!U)return;this.refs[j]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(j){if(j instanceof RegExp)return this._removeAllSchemas(this.schemas,j),this._removeAllSchemas(this.refs,j),this;switch(typeof j){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=y.call(this,j);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[j],delete this.refs[j],this}case"object":{const U=j;this._cache.delete(U);let T=j[this.opts.schemaId];return T&&(T=(0,l.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(j){for(const U of j)this.addKeyword(U);return this}addKeyword(j,U){let T;if(typeof j=="string")T=j,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof j=="object"&&U===void 0){if(U=j,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(N.call(this,T,U),!U)return(0,u.eachItem)(T,L=>M.call(this,L)),this;H.call(this,U);const D={...U,type:(0,c.getJSONTypes)(U.type),schemaType:(0,c.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,D.type.length===0?L=>M.call(this,L,D):L=>D.type.forEach(B=>M.call(this,L,D,B))),this}getKeyword(j){const U=this.RULES.all[j];return typeof U=="object"?U.definition:!!U}removeKeyword(j){const{RULES:U}=this;delete U.keywords[j],delete U.all[j];for(const T of U.rules){const D=T.rules.findIndex(L=>L.keyword===j);D>=0&&T.rules.splice(D,1)}return this}addFormat(j,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[j]=U,this}errorsText(j=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!j||j.length===0?"No errors":j.map(D=>`${T}${D.instancePath} ${D.message}`).reduce((D,L)=>D+U+L)}$dataMetaSchema(j,U){const T=this.RULES.all;j=JSON.parse(JSON.stringify(j));for(const D of U){const L=D.split("/").slice(1);let B=j;for(const V of L)B=B[V];for(const V in T){const W=T[V];if(typeof W!="object")continue;const{$data:Y}=W.definition,Z=B[V];Y&&Z&&(B[V]=X(Z))}}return j}_removeAllSchemas(j,U){for(const T in j){const D=j[T];(!U||U.test(T))&&(typeof D=="string"?delete j[T]:D&&!D.meta&&(this._cache.delete(D.schema),delete j[T]))}}_addSchema(j,U,T,D=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof j=="object")B=j[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof j!="boolean")throw new Error("schema must be object or boolean")}let W=this._cache.get(j);if(W!==void 0)return W;T=(0,l.normalizeId)(B||T);const Y=l.getSchemaRefs.call(this,j,T);return W=new s.SchemaEnv({schema:j,schemaId:V,meta:U,baseId:T,localRefs:Y}),this._cache.set(W.schema,W),L&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=W),D&&this.validateSchema(j,!0),W}_checkUnique(j){if(this.schemas[j]||this.refs[j])throw new Error(`schema with key or id "${j}" already exists`)}_compileSchemaEnv(j){if(j.meta?this._compileMetaSchema(j):s.compileSchema.call(this,j),!j.validate)throw new Error("ajv implementation error");return j.validate}_compileMetaSchema(j){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,j)}finally{this.opts=U}}}E.ValidationError=i.default,E.MissingRefError=a.default,e.default=E;function m(P,j,U,T="error"){for(const D in P){const L=D;L in j&&this.logger[T](`${U}: option ${D}. ${P[L]}`)}}function y(P){return P=(0,l.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 j in P)this.addSchema(P[j],j)}function x(){for(const P in this.opts.formats){const j=this.opts.formats[P];j&&this.addFormat(P,j)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const j in P){const U=P[j];U.keyword||(U.keyword=j),this.addKeyword(U)}}function C(){const P={...this.opts};for(const j of h)delete P[j];return P}const A={log(){},warn(){},error(){}};function O(P){if(P===!1)return A;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function N(P,j){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!F.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!j&&j.$data&&!("code"in j||"validate"in j))throw new Error('$data keyword must have "code" or "validate" function')}function M(P,j,U){var T;const D=j==null?void 0:j.post;if(U&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=D?L.post:L.rules.find(({type:W})=>W===U);if(B||(B={type:U,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!j)return;const V={keyword:P,definition:{...j,type:(0,c.getJSONTypes)(j.type),schemaType:(0,c.getJSONTypes)(j.schemaType)}};j.before?q.call(this,B,V,j.before):B.rules.push(V),L.all[P]=V,(T=j.implements)===null||T===void 0||T.forEach(W=>this.addKeyword(W))}function q(P,j,U){const T=P.rules.findIndex(D=>D.keyword===U);T>=0?P.rules.splice(T,0,j):(P.rules.push(j),this.logger.warn(`rule ${U} is not defined`))}function H(P){let{metaSchema:j}=P;j!==void 0&&(P.$data&&this.opts.$data&&(j=X(j)),P.validateSchema=this.compile(j,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function X(P){return{anyOf:[P,J]}}})(Cf)),Cf}var Mo={},jo={},Lo={},nb;function JM(){if(nb)return Lo;nb=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Lo.default=e,Lo}var _n={},ib;function YM(){if(ib)return _n;ib=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.callRef=_n.getValidate=void 0;const e=Fo(),t=Pr(),r=Ie(),i=On(),a=Tf(),n=Ve(),s={keyword:"$ref",schemaType:"string",code(c){const{gen:u,schema:f,it:p}=c,{baseId:d,schemaEnv:h,validateName:v,opts:k,self:g}=p,{root:b}=h;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return m(w);return y(w);function E(){if(h===b)return l(c,v,h,h.$async);const S=u.scopeValue("root",{ref:b});return l(c,(0,r._)`${S}.validate`,b,b.$async)}function m(S){const x=o(c,S);l(c,x,S,S.$async)}function y(S){const x=u.scopeValue("schema",k.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=u.name("valid"),C=c.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:f},_);c.mergeEvaluated(C),c.ok(_)}}};function o(c,u){const{gen:f}=c;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}_n.getValidate=o;function l(c,u,f,p){const{gen:d,it:h}=c,{allErrors:v,schemaEnv:k,opts:g}=h,b=g.passContext?i.default.this:r.nil;p?w():E();function w(){if(!k.$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)(c,u,b)}`),y(u),v||d.assign(S,!0)},x=>{d.if((0,r._)`!(${x} instanceof ${h.ValidationError})`,()=>d.throw(x)),m(x),v||d.assign(S,!1)}),c.ok(S)}function E(){c.result((0,t.callValidateCode)(c,u,b),()=>y(u),()=>m(u))}function m(S){const x=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${x} : ${i.default.vErrors}.concat(${x})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var x;if(!h.opts.unevaluated)return;const _=(x=f==null?void 0:f.validate)===null||x===void 0?void 0:x.evaluated;if(h.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(h.props=n.mergeEvaluated.props(d,_.props,h.props));else{const C=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,C,h.props,r.Name)}if(h.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(h.items=n.mergeEvaluated.items(d,_.items,h.items));else{const C=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,C,h.items,r.Name)}}}return _n.callRef=l,_n.default=s,_n}var ab;function XM(){if(ab)return jo;ab=1,Object.defineProperty(jo,"__esModule",{value:!0});const e=JM(),t=YM(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return jo.default=r,jo}var qo={},$o={},sb;function ZM(){if(sb)return $o;sb=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Ie(),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}},i={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}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:s,data:o,schemaCode:l}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return $o.default=a,$o}var zo={},ob;function QM(){if(ob)return zo;ob=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=Ie(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},code(i){const{gen:a,data:n,schemaCode:s,it:o}=i,l=o.opts.multipleOfPrecision,c=a.let("res"),u=l?(0,e._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${l}`:(0,e._)`${c} !== parseInt(${c})`;i.fail$data((0,e._)`(${s} === 0 || (${c} = ${n}/${s}, ${u}))`)}};return zo.default=r,zo}var Ro={},Uo={},lb;function ej(){if(lb)return Uo;lb=1,Object.defineProperty(Uo,"__esModule",{value:!0});function e(t){const r=t.length;let i=0,a=0,n;for(;a<r;)i++,n=t.charCodeAt(a++),n>=55296&&n<=56319&&a<r&&(n=t.charCodeAt(a),(n&64512)===56320&&a++);return i}return Uo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Uo}var cb;function tj(){if(cb)return Ro;cb=1,Object.defineProperty(Ro,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=ej(),a={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:l,it:c}=n,u=s==="maxLength"?e.operators.GT:e.operators.LT,f=c.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${u} ${l}`)}};return Ro.default=a,Ro}var Bo={},ub;function rj(){if(ub)return Bo;ub=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Pr(),t=Ve(),r=Ie(),a={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:l,schema:c,schemaCode:u,it:f}=n,p=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,h=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),v=s.let("valid");s.try(()=>s.assign(v,(0,r._)`${h}(${u}, ${p}).test(${o})`),()=>s.assign(v,!1)),n.fail$data((0,r._)`!${v}`)}else{const d=(0,e.usePattern)(n,c);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return Bo.default=a,Bo}var Vo={},fb;function nj(){if(fb)return Vo;fb=1,Object.defineProperty(Vo,"__esModule",{value:!0});const e=Ie(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:s}=i,o=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return Vo.default=r,Vo}var Ho={},db;function ij(){if(db)return Ho;db=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),a={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:l,data:c,$data:u,it:f}=n,{opts:p}=f;if(!u&&o.length===0)return;const d=o.length>=p.loopRequired;if(f.allErrors?h():v(),p.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of o)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const m=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${E}" is not defined at "${m}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function h(){if(d||u)n.block$data(t.nil,k);else for(const b of o)(0,e.checkReportMissingProp)(n,b)}function v(){const b=s.let("missing");if(d||u){const w=s.let("valid",!0);n.block$data(w,()=>g(b,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,b)),(0,e.reportMissingProp)(n,b),s.else()}function k(){s.forOf("prop",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,c,b,p.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,c,b,p.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Ho.default=a,Ho}var Wo={},pb;function aj(){if(pb)return Wo;pb=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=Ie(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:s}=i,o=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return Wo.default=r,Wo}var Ko={},Go={},mb;function Df(){if(mb)return Go;mb=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Vv();return e.code='require("ajv/dist/runtime/equal").default',Go.default=e,Go}var hb;function sj(){if(hb)return Ko;hb=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=_o(),t=Ie(),r=Ve(),i=Df(),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:l,$data:c,schema:u,parentSchema:f,schemaCode:p,it:d}=s;if(!c&&!u)return;const h=o.let("valid"),v=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(h,k,(0,t._)`${p} === false`),s.ok(h);function k(){const E=o.let("i",(0,t._)`${l}.length`),m=o.let("j");s.setParams({i:E,j:m}),o.assign(h,!0),o.if((0,t._)`${E} > 1`,()=>(g()?b:w)(E,m))}function g(){return v.length>0&&!v.some(E=>E==="object"||E==="array")}function b(E,m){const y=o.name("item"),S=(0,e.checkDataTypes)(v,y,d.opts.strictNumbers,e.DataType.Wrong),x=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${E}--;`,()=>{o.let(y,(0,t._)`${l}[${E}]`),o.if(S,(0,t._)`continue`),v.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${x}[${y}] == "number"`,()=>{o.assign(m,(0,t._)`${x}[${y}]`),s.error(),o.assign(h,!1).break()}).code((0,t._)`${x}[${y}] = ${E}`)})}function w(E,m){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${m} = ${E}; ${m}--;`,()=>o.if((0,t._)`${y}(${l}[${E}], ${l}[${m}])`,()=>{s.error(),o.assign(h,!1).break(S)})))}}};return Ko.default=n,Ko}var Jo={},gb;function oj(){if(gb)return Jo;gb=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Df(),a={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:l,schemaCode:c,schema:u}=n;l||u&&typeof u=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${c})`):n.fail((0,e._)`${u} !== ${o}`)}};return Jo.default=a,Jo}var Yo={},yb;function lj(){if(yb)return Yo;yb=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Df(),a={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:l,schema:c,schemaCode:u,it:f}=n;if(!l&&c.length===0)throw new Error("enum must have non-empty array");const p=c.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(s,r.default));let v;if(p||l)v=s.let("valid"),n.block$data(v,k);else{if(!Array.isArray(c))throw new Error("ajv implementation error");const b=s.const("vSchema",u);v=(0,e.or)(...c.map((w,E)=>g(b,E)))}n.pass(v);function k(){s.assign(v,!1),s.forOf("v",u,b=>s.if((0,e._)`${h()}(${o}, ${b})`,()=>s.assign(v,!0).break()))}function g(b,w){const E=c[w];return typeof E=="object"&&E!==null?(0,e._)`${h()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${E}`}}};return Yo.default=a,Yo}var vb;function cj(){if(vb)return qo;vb=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=ZM(),t=QM(),r=tj(),i=rj(),a=nj(),n=ij(),s=aj(),o=sj(),l=oj(),c=lj(),u=[e.default,t.default,r.default,i.default,a.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,c.default];return qo.default=u,qo}var Xo={},Qi={},bb;function kb(){if(bb)return Qi;bb=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.validateAdditionalItems=void 0;const e=Ie(),t=Ve(),i={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:l}=s;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,s){const{gen:o,schema:l,data:c,keyword:u,it:f}=n;f.items=!0;const p=o.const("len",(0,e._)`${c}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${p} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const h=o.var("valid",(0,e._)`${p} <= ${s.length}`);o.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){o.forRange("i",s.length,p,v=>{n.subschema({keyword:u,dataProp:v,dataPropType:t.Type.Num},h),f.allErrors||o.if((0,e.not)(h),()=>o.break())})}}return Qi.validateAdditionalItems=a,Qi.default=i,Qi}var Zo={},ea={},wb;function Sb(){if(wb)return ea;wb=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.validateTuple=void 0;const e=Ie(),t=Ve(),r=Pr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return a(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function a(n,s,o=n.schema){const{gen:l,parentSchema:c,data:u,keyword:f,it:p}=n;v(c),p.opts.unevaluated&&o.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(l,o.length,p.items));const d=l.name("valid"),h=l.const("len",(0,e._)`${u}.length`);o.forEach((k,g)=>{(0,t.alwaysValidSchema)(p,k)||(l.if((0,e._)`${h} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function v(k){const{opts:g,errSchemaPath:b}=p,w=o.length,E=w===k.minItems&&(w===k.maxItems||k[s]===!1);if(g.strictTuples&&!E){const m=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,m,g.strictTuples)}}}return ea.validateTuple=a,ea.default=i,ea}var Cb;function uj(){if(Cb)return Zo;Cb=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Sb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Zo.default=t,Zo}var Qo={},Eb;function fj(){if(Eb)return Qo;Eb=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Pr(),i=kb(),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:l,it:c}=s,{prefixItems:u}=l;c.items=!0,!(0,t.alwaysValidSchema)(c,o)&&(u?(0,i.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return Qo.default=n,Qo}var el={},Ab;function dj(){if(Ab)return el;Ab=1,Object.defineProperty(el,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:n}})=>n===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${n} valid item(s)`,params:({params:{min:a,max:n}})=>n===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${n}}`},code(a){const{gen:n,schema:s,parentSchema:o,data:l,it:c}=a;let u,f;const{minContains:p,maxContains:d}=o;c.opts.next?(u=p===void 0?1:p,f=d):u=1;const h=n.const("len",(0,e._)`${l}.length`);if(a.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(c,s)){let w=(0,e._)`${h} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${h} <= ${f}`),a.pass(w);return}c.items=!0;const v=n.name("valid");f===void 0&&u===1?g(v,()=>n.if(v,()=>n.break())):u===0?(n.let(v,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,k)):(n.let(v,!1),k()),a.result(v,()=>a.reset());function k(){const w=n.name("_valid"),E=n.let("count",0);g(w,()=>n.if(w,()=>b(E)))}function g(w,E){n.forRange("i",0,h,m=>{a.subschema({keyword:"contains",dataProp:m,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${u}`,()=>n.assign(v,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(v,!1).break()),u===1?n.assign(v,!0):n.if((0,e._)`${w} >= ${u}`,()=>n.assign(v,!0)))}}};return el.default=i,el}var Mf={},xb;function pj(){return xb||(xb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ie(),r=Ve(),i=Pr();e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l},
81
81
  missingProperty: ${f},
82
- depsCount: ${u},
83
- deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);o(l,u),s(l,c)}};function n({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?u:c;p[f]=l[f]}return[u,c]}function o(l,u=l.schema){const{gen:c,data:f,it:p}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const m in u){const k=u[m];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,m,p.opts.ownProperties);l.setParams({property:m,depsCount:k.length,deps:k.join(", ")}),p.allErrors?c.if(v,()=>{for(const g of k)(0,i.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${v} && (${(0,i.checkMissingProp)(l,k,d)})`),(0,i.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=o;function s(l,u=l.schema){const{gen:c,data:f,keyword:p,it:d}=l,m=c.name("valid");for(const k in u)(0,r.alwaysValidSchema)(d,u[k])||(c.if((0,i.propertyInData)(c,f,k,d.opts.ownProperties),()=>{const v=l.subschema({keyword:p,schemaProp:k},m);l.mergeValidEvaluated(v,m)},()=>c.var(m,!0)),l.ok(m))}e.validateSchemaDeps=s,e.default=a})(Tf)),Tf}var el={},yb;function ZM(){if(yb)return el;yb=1,Object.defineProperty(el,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:n,schema:o,data:s,it:l}=a;if((0,t.alwaysValidSchema)(l,o))return;const u=n.name("valid");n.forIn("key",s,c=>{a.setParams({propertyName:c}),a.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),n.if((0,e.not)(u),()=>{a.error(!0),l.allErrors||n.break()})}),a.ok(u)}};return el.default=i,el}var tl={},vb;function bb(){if(vb)return tl;vb=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=On(),i=Ve(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:o})=>(0,t._)`{additionalProperty: ${o.additionalProperty}}`},code(o){const{gen:s,schema:l,parentSchema:u,data:c,errsCount:f,it:p}=o;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:m}=p;if(p.props=!0,m.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(p,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),o.ok((0,t._)`${f} === ${r.default.errors}`);function g(){s.forIn("key",c,y=>{!k.length&&!v.length?S(y):s.if(b(y),()=>S(y))})}function b(y){let C;if(k.length>8){const x=(0,i.schemaRefOrVal)(p,u.properties,"properties");C=(0,e.isOwnProperty)(s,x,y)}else k.length?C=(0,t.or)(...k.map(x=>(0,t._)`${y} === ${x}`)):C=t.nil;return v.length&&(C=(0,t.or)(C,...v.map(x=>(0,t._)`${(0,e.usePattern)(o,x)}.test(${y})`))),(0,t.not)(C)}function w(y){s.code((0,t._)`delete ${c}[${y}]`)}function S(y){if(m.removeAdditional==="all"||m.removeAdditional&&l===!1){w(y);return}if(l===!1){o.setParams({additionalProperty:y}),o.error(),d||s.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(p,l)){const C=s.name("valid");m.removeAdditional==="failing"?(h(y,C,!1),s.if((0,t.not)(C),()=>{o.reset(),w(y)})):(h(y,C),d||s.if((0,t.not)(C),()=>s.break()))}}function h(y,C,x){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),o.subschema(_,C)}}};return tl.default=n,tl}var rl={},kb;function QM(){if(kb)return rl;kb=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Ps(),t=Pr(),r=Ve(),i=bb(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,parentSchema:l,data:u,it:c}=n;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(c,i.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(s);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(o,(0,r.toHash)(f),c.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(c,s[v]));if(p.length===0)return;const d=o.name("valid");for(const v of p)m(v)?k(v):(o.if((0,t.propertyInData)(o,u,v,c.opts.ownProperties)),k(v),c.allErrors||o.else().var(d,!0),o.endIf()),n.it.definedProperties.add(v),n.ok(d);function m(v){return c.opts.useDefaults&&!c.compositeRule&&s[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return rl.default=a,rl}var nl={},wb;function ej(){if(wb)return nl;wb=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),i=Ve(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:o,schema:s,data:l,parentSchema:u,it:c}=n,{opts:f}=c,p=(0,e.allSchemaProperties)(s),d=p.filter(S=>(0,r.alwaysValidSchema)(c,s[S]));if(p.length===0||d.length===p.length&&(!c.opts.unevaluated||c.props===!0))return;const m=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=o.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(o,c.props));const{props:v}=c;g();function g(){for(const S of p)m&&b(S),c.allErrors?w(S):(o.var(k,!0),w(S),o.if(k))}function b(S){for(const h in m)new RegExp(S).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${S} (use allowMatchingProperties)`)}function w(S){o.forIn("key",l,h=>{o.if((0,t._)`${(0,e.usePattern)(n,S)}.test(${h})`,()=>{const y=d.includes(S);y||n.subschema({keyword:"patternProperties",schemaProp:S,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?o.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&o.if((0,t.not)(k),()=>o.break())})})}}};return nl.default=a,nl}var il={},Sb;function tj(){if(Sb)return il;Sb=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Ve(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:i,schema:a,it:n}=r;if((0,e.alwaysValidSchema)(n,a)){r.fail();return}const o=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return il.default=t,il}var al={},Cb;function rj(){if(Cb)return al;Cb=1,Object.defineProperty(al,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pr().validateUnion,error:{message:"must match a schema in anyOf"}};return al.default=t,al}var ol={},Eb;function nj(){if(Eb)return ol;Eb=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:n,schema:o,parentSchema:s,it:l}=a;if(!Array.isArray(o))throw new Error("ajv implementation error");if(l.opts.discriminator&&s.discriminator)return;const u=o,c=n.let("valid",!1),f=n.let("passing",null),p=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((m,k)=>{let v;(0,t.alwaysValidSchema)(l,m)?n.var(p,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return ol.default=i,ol}var sl={},Ab;function ij(){if(Ab)return sl;Ab=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=Ve(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:i,schema:a,it:n}=r;if(!Array.isArray(a))throw new Error("ajv implementation error");const o=i.name("valid");a.forEach((s,l)=>{if((0,e.alwaysValidSchema)(n,s))return;const u=r.subschema({keyword:"allOf",schemaProp:l},o);r.ok(o),r.mergeEvaluated(u)})}};return sl.default=t,sl}var ll={},xb;function aj(){if(xb)return ll;xb=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:o,parentSchema:s,it:l}=n;s.then===void 0&&s.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=a(l,"then"),c=a(l,"else");if(!u&&!c)return;const f=o.let("valid",!0),p=o.name("_valid");if(d(),n.reset(),u&&c){const k=o.let("ifClause");n.setParams({ifClause:k}),o.if(p,m("then",k),m("else",k))}else u?o.if(p,m("then")):o.if((0,e.not)(p),m("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function m(k,v){return()=>{const g=n.subschema({keyword:k},p);o.assign(f,p),n.mergeValidEvaluated(g,f),v?o.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,o){const s=n.schema[o];return s!==void 0&&!(0,t.alwaysValidSchema)(n,s)}return ll.default=i,ll}var ul={},Ob;function oj(){if(Ob)return ul;Ob=1,Object.defineProperty(ul,"__esModule",{value:!0});const e=Ve(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:i,it:a}){i.if===void 0&&(0,e.checkStrictMode)(a,`"${r}" without "if" is ignored`)}};return ul.default=t,ul}var _b;function sj(){if(_b)return Ys;_b=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=cb(),t=GM(),r=db(),i=JM(),a=YM(),n=XM(),o=ZM(),s=bb(),l=QM(),u=ej(),c=tj(),f=rj(),p=nj(),d=ij(),m=aj(),k=oj();function v(g=!1){const b=[c.default,f.default,p.default,d.default,m.default,k.default,o.default,s.default,n.default,l.default,u.default];return g?b.push(t.default,i.default):b.push(e.default,r.default),b.push(a.default),b}return Ys.default=v,Ys}var cl={},fl={},Pb;function lj(){if(Pb)return fl;Pb=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Ie(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},code(i,a){const{gen:n,data:o,$data:s,schema:l,schemaCode:u,it:c}=i,{opts:f,errSchemaPath:p,schemaEnv:d,self:m}=c;if(!f.validateFormats)return;s?k():v();function k(){const g=n.scopeValue("formats",{ref:m.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),w=n.let("fType"),S=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(S,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(S,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${S}`}function y(){const C=d.$async?(0,e._)`(${b}.async ? await ${S}(${o}) : ${S}(${o}))`:(0,e._)`${S}(${o})`,x=(0,e._)`(typeof ${S} == "function" ? ${C} : ${S}.test(${o}))`;return(0,e._)`${S} && ${S} !== true && ${w} === ${a} && !${x}`}}function v(){const g=m.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,S]=y(g);b===a&&i.pass(C());function h(){if(f.strictSchema===!1){m.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function y(x){const _=x instanceof RegExp?(0,e.regexpCode)(x):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,E=n.scopeValue("formats",{key:l,ref:x,code:_});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${E}.validate`]:["string",x,E]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${o})`}return typeof w=="function"?(0,e._)`${S}(${o})`:(0,e._)`${S}.test(${o})`}}}};return fl.default=r,fl}var Ib;function uj(){if(Ib)return cl;Ib=1,Object.defineProperty(cl,"__esModule",{value:!0});const t=[lj().default];return cl.default=t,cl}var di={},Tb;function cj(){return Tb||(Tb=1,Object.defineProperty(di,"__esModule",{value:!0}),di.contentVocabulary=di.metadataVocabulary=void 0,di.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],di.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),di}var Nb;function fj(){if(Nb)return Ds;Nb=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=MM(),t=KM(),r=sj(),i=uj(),a=cj(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Ds.default=n,Ds}var dl={},uo={},Fb;function dj(){if(Fb)return uo;Fb=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(uo.DiscrError=e={})),uo}var Db;function pj(){if(Db)return dl;Db=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=Ie(),t=dj(),r=Of(),i=Ns(),a=Ve(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:s,tagName:l}})=>s===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:s,tag:l,tagName:u}})=>(0,e._)`{error: ${s}, tag: ${u}, tagValue: ${l}}`},code(s){const{gen:l,data:u,schema:c,parentSchema:f,it:p}=s,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=c.propertyName;if(typeof m!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=l.let("valid",!1),v=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(m)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>s.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:m})),s.ok(k);function g(){const S=w();l.if(!1);for(const h in S)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(S[h]));l.else(),s.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:m}),l.endIf()}function b(S){const h=l.name("valid"),y=s.subschema({keyword:"oneOf",schemaProp:S},h);return s.mergeEvaluated(y,e.Name),h}function w(){var S;const h={},y=x(f);let C=!0;for(let A=0;A<d.length;A++){let O=d[A];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,p.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(p.opts.uriResolver,p.baseId,T)}const F=(S=O==null?void 0:O.properties)===null||S===void 0?void 0:S[m];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${m}"`);C=C&&(y||x(O)),_(F,A)}if(!C)throw new Error(`discriminator: "${m}" must be required`);return h;function x({required:A}){return Array.isArray(A)&&A.includes(m)}function _(A,O){if(A.const)E(A.const,O);else if(A.enum)for(const F of A.enum)E(F,O);else throw new Error(`discriminator: "properties/${m}" must have "const" or "enum"`)}function E(A,O){if(typeof A!="string"||A in h)throw new Error(`discriminator: "${m}" values must be unique strings`);h[A]=O}}}};return dl.default=o,dl}const mj={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Mb;function jb(){return Mb||(Mb=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=NM(),i=fj(),a=pj(),n=mj,o=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(n,o):n;this.addMetaSchema(m,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Ps();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ie();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=xf();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Ns();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Cs,Cs.exports)),Cs.exports}var hj=jb();const gj=jr(hj);var pl={exports:{}},Nf={},Lb;function yj(){return Lb||(Lb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,E){return{validate:_,compare:E}}e.fullFormats={date:t(n,o),time:t(l,u),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:x,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:g,int32:{type:"number",validate:S},int64:{type:"number",validate:h},float:{type:"number",validate:y},double:{type:"number",validate:y},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){return _%4===0&&(_%100!==0||_%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(_){const E=i.exec(_);if(!E)return!1;const A=+E[1],O=+E[2],F=+E[3];return O>=1&&O<=12&&F>=1&&F<=(O===2&&r(A)?29:a[O])}function o(_,E){if(_&&E)return _>E?1:_<E?-1:0}const s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,E){const A=s.exec(_);if(!A)return!1;const O=+A[1],F=+A[2],T=+A[3],j=A[5];return(O<=23&&F<=59&&T<=59||O===23&&F===59&&T===60)&&(!E||j!=="")}function u(_,E){if(!(_&&E))return;const A=s.exec(_),O=s.exec(E);if(A&&O)return _=A[1]+A[2]+A[3]+(A[4]||""),E=O[1]+O[2]+O[3]+(O[4]||""),_>E?1:_<E?-1:0}const c=/t|\s/i;function f(_){const E=_.split(c);return E.length===2&&n(E[0])&&l(E[1],!0)}function p(_,E){if(!(_&&E))return;const[A,O]=_.split(c),[F,T]=E.split(c),j=o(A,F);if(j!==void 0)return j||u(O,T)}const d=/\/|:/,m=/^(?:[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(_){return d.test(_)&&m.test(_)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return v.lastIndex=0,v.test(_)}const b=-2147483648,w=2**31-1;function S(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const C=/[^\\]\\Z/;function x(_){if(C.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Nf)),Nf}var Ff={},qb;function vj(){return qb||(qb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=jb(),r=Ie(),i=r.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},n={message:({keyword:s,schemaCode:l})=>r.str`should be ${a[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>r._`{comparison: ${a[s].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(s){const{gen:l,data:u,schemaCode:c,keyword:f,it:p}=s,{opts:d,self:m}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,m.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:m.formats,code:d.code.formats}),S=l.const("fmt",r._`${w}[${k.schemaCode}]`);s.fail$data(r.or(r._`typeof ${S} != "object"`,r._`${S} instanceof RegExp`,r._`typeof ${S}.compare != "function"`,b(S)))}function g(){const w=k.schema,S=m.formats[w];if(!S||S===!0)return;if(typeof S!="object"||S instanceof RegExp||typeof S.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:S,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});s.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const o=s=>(s.addKeyword(e.formatLimitDefinition),s);e.default=o})(Ff)),Ff}var $b;function bj(){return $b||($b=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=yj(),i=vj(),a=Ie(),n=new a.Name("fullFormats"),o=new a.Name("fastFormats"),s=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,p]=c.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,p),c.keywords&&i.default(u),u};s.get=(u,c="full")=>{const p=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function l(u,c,f,p){var d,m;(d=(m=u.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${p}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s})(pl,pl.exports)),pl.exports}var kj=bj();const zb=jr(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*\)))$/,Cj=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Ej(e,t,r={},i,a=gj,n){let o=new a({...wj,...r});return i?zb(o,i):i!==!1&&zb(o),o.addFormat("data-url",Cj),o.addFormat("color",Sj),o.addKeyword(lc),Array.isArray(e)&&o.addMetaSchema(e),Re(t)&&Object.keys(t).forEach(s=>{o.addFormat(s,t[s])}),n&&(o=n(o)),o}class Aj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:s,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=Ej(i,a,n,o,s,l),this.localizer=r,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var i,a;let n,o;try{t[tt]&&(o=this.ajv.getSchema(t[tt])),o===void 0&&(o=this.ajv.compile(t)),o(r)}catch(l){n=l}let s;return o&&(typeof this.localizer=="function"&&(((i=o.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=`'${l.params[c]}'`)}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>`'${c}'`).join(", "))}),this.localizer(o.errors),((a=o.errors)!==null&&a!==void 0?a:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=l.params[c].slice(1,-1))}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>c.slice(1,-1)).join(", "))})),s=o.errors||void 0,o.errors=null),{errors:s,validationError:n}}validateFormData(t,r,i,a,n){const o=this.rawValidation(r,t);return SM(this,o,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[tt])!==null&&r!==void 0?r:Dh;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):Ue(t,(i=this.ajv.getSchema(a))===null||i===void 0?void 0:i.schema)||(this.ajv.removeSchema(a),this.ajv.addSchema(t,a)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,i){var a;try{this.handleSchemaUpdate(i);const n=vf(t),o=(a=n[tt])!==null&&a!==void 0?a:ZD(n);let s;return s=this.ajv.getSchema(o),s===void 0&&(s=this.ajv.addSchema(n,o).getSchema(o)||this.ajv.compile(n)),s(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function ml(e={},t){return new Aj(e,t)}ml();var Df,Rb;function xj(){return Rb||(Rb=1,Df=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=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 i=a.params.depsCount;n+="must have propert",i==1?n+="y":n+="ies",n+=" "+a.params.deps+" when property "+a.params.property+" is present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"maxItems":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="must NOT be longer than "+i+" character",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="must NOT have more than "+i+" propert",i==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"minItems":n="";var i=a.params.limit;n+="must NOT have less than "+i+" item",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="must NOT be shorter than "+i+" character",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="must NOT have less than "+i+" propert",i==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+a.params.missingProperty;break;case"type":n="must be "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+a.params.j+" and "+a.params.i+" are identical)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),Df}var Mf,Ub;function Oj(){return Ub||(Ub=1,Mf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" يجب أن يحوي الخصائص "+a.params.deps+" عندما تكون الخاصية "+a.params.property+" موجودة";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"maxLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" محرف";break;case"maxProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" عنصر";break;case"minLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" محرف";break;case"minProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+a.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+a.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+a.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+a.params.j+" و "+a.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}a.message=n}}),Mf}var jf,Bb;function _j(){return Bb||(Bb=1,jf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" element",i!=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 i=a.params.depsCount;n+="ha de contenir la propietat",i!=1&&(n+="s"),n+=" "+a.params.deps+" quan la propietat "+a.params.property+" és present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" ítem",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" caràcter",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" propietat",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no ha de tenir menys de "+i+" ítem",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" caràcter",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" propietat",i!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+a.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ó "'+a.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+a.params.missingProperty;break;case"type":n="ha de ser del tipus "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+a.params.j+" i "+a.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}a.message=n}}),jf}var Lf,Vb;function Pj(){return Vb||(Vb=1,Lf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemůže mít víc, než "+i+" prv",i>=2&&i<=4?n+="ky":i!=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 i=a.params.depsCount;n+="musí mít polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka",n+=": "+a.params.deps+", pokud obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+a.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmí obsahovat víc než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"maxLength":n="";var i=a.params.limit;n+="nesmí být delší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"maxProperties":n="";var i=a.params.limit;n+="nesmí mít víc než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmí obsahovat méně než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"minLength":n="";var i=a.params.limit;n+="nesmí být kratší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"minProperties":n="";var i=a.params.limit;n+="nesmí mít méně než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+a.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+a.params.missingProperty;break;case"type":n="musí být "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+a.params.j+" a "+a.params.i+" jsou identické)";break;default:n='musí vyhovět "'+a.keyword+'" validaci'}a.message=n}}),Lf}var qf,Hb;function Ij(){return Hb||(Hb=1,qf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=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 i=a.params.depsCount;n+="muss Attribut",i!=1&&(n+="e"),n+=" "+a.params.deps+" aufweisen, wenn Attribut "+a.params.property+" gesetzt ist";break;case"discriminator":switch(a.params.error){case"tag":n='der Tag "'+a.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+a.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+a.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: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+a.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var i=a.params.limit;n+="darf nicht länger als "+i+" Zeichen sein";break;case"maxProperties":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var i=a.params.limit;n+="darf nicht kürzer als "+i+" Zeichen sein";break;case"minProperties":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+a.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: "'+a.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+a.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+a.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+a.params.j+" und #"+a.params.i+" sind gleich)";break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}a.message=n}}),qf}var $f,Wb;function Tj(){return Wb||(Wb=1,$f=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no debe tener más de "+i+" elemento",i!=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 i=a.params.depsCount;n+="debe contener la",i!=1&&(n+="s"),n+=" propiedad",i!=1&&(n+="es"),n+=" "+a.params.deps+" cuando la propiedad "+a.params.property+" se encuentra presente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no debe contener más de "+i+" elemento",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no debe contener más de "+i+" caracter",i!=1&&(n+="es");break;case"maxProperties":n="";var i=a.params.limit;n+="no debe contener más de "+i+" propiedad",i!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" elemento",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" caracter",i!=1&&(n+="es");break;case"minProperties":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" propiedad",i!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+a.params.missingProperty;break;case"type":n="debe ser "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+a.params.j+" y "+a.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}a.message=n}}),$f}var zf,Kb;function Nj(){return Kb||(Kb=1,zf=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="saa sisältää enintään "+a,a==1?o+=":n elementin":o+=" elementtiä";break;case"additionalProperties":o="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":o='täytyy vastata "anyOf" skeemaa';break;case"const":o="täytyy olla yhtä kuin vakio";break;case"contains":o="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="täytyy sisältää "+n.params.deps+" ominaisuu",a==1?o+="s":o+="det",o+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":o='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":o='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":o="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":o="boolean skeema on väärä";break;case"format":o='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"if":o='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"maxItems":o="";var a=n.params.limit;o+="tulee sisältää enintään "+a+" ",a==1?o+="elementti":o+="elementtiä";break;case"maxLength":o="";var a=n.params.limit;o+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(o+="ä");break;case"maxProperties":o="";var a=n.params.limit;o+="tulee sisältää enintään "+a+" ",a==1?o+="ominaisuus":o+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="täytyy olla "+r;break;case"minItems":o="";var a=n.params.limit;o+="tulee sisältää vähintään "+a+" ",a==1?o+="elementti":o+="elementtiä";break;case"minLength":o="";var a=n.params.limit;o+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(o+="ä");break;case"minProperties":o="";var a=n.params.limit;o+="tulee sisältää vähintään "+a+" ",a==1?o+="ominaisuus":o+="ominaisuutta";break;case"multipleOf":o="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":o='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":o='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":o='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":o='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":o="ominaisuuden nimi on virheellinen";break;case"required":o="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="täytyy olla ",i=="number"?o+="numero":i=="integer"?o+="kokonaisluku":i=="string"?o+="merkkijono":i=="boolean"?o+="boolean":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="ei saa olla enemmän kuin "+a+" elementti",a!=1&&(o+="ä");break;case"unevaluatedProperties":o="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":o="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:o='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=o}}),zf}var Rf,Gb;function Fj(){return Gb||(Gb=1,Rf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élémént",i!=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 i=a.params.depsCount;n+="doit avoir la propriété "+a.params.deps+" quand la propriété "+a.params.property+" est présente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élément",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="ne doit pas dépasser "+i+" caractère",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" propriété",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"minItems":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" élément",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="ne doit pas faire moins de "+i+" caractère",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" propriété",i!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+a.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+a.params.missingProperty;break;case"type":n="doit être de type "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=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 ## "+a.params.j+" et "+a.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+a.keyword+'"'}a.message=n}}),Rf}var Uf,Jb;function Dj(){return Jb||(Jb=1,Uf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" 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 i=a.params.depsCount;n+="-nak kell legyen",i>1&&(n+="ek"),n+=" a következő tulajdonsága",i!=1&&(n+="i"),n+=": "+a.params.deps+", ha van "+a.params.property+" tulajdonsága";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.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: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"maxLength":n="";var i=a.params.limit;n+="nem lehet hosszabb, mint "+i+" szimbólum";break;case"maxProperties":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" eleme";break;case"minLength":n="";var i=a.params.limit;n+="nem lehet rövidebb, mint "+i+" szimbólum";break;case"minProperties":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+a.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: "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+a.params.missingProperty+" tulajdonsága";break;case"type":n=""+a.params.type+" kell legyen";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+a.params.j+" és "+a.params.i+" elemek azonosak)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),Uf}var Bf,Yb;function Mj(){return Yb||(Yb=1,Bf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" 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 i=a.params.depsCount;n+=" harus memiliki properti "+a.params.deps+" ketika properti "+a.params.property+" hadir";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"maxLength":n="";var i=a.params.limit;n+=" tidak boleh lebih dari "+i+" karakter";break;case"maxProperties":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"minItems":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" item";break;case"minLength":n="";var i=a.params.limit;n+=" tidak boleh lebih pendek dari "+i+" karakter";break;case"minProperties":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+a.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+a.params.missingProperty;break;case"type":n="harus berupa "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+a.params.j+" dan "+a.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}a.message=n}}),Bf}var Vf,Xb;function jj(){return Xb||(Xb=1,Vf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="non dovrebbe avere più di "+i+" element",i==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 i=a.params.depsCount;n+="dovrebbe avere ",i==1?n+="l'":n+="gli ",n+="attribut",i==1?n+="o":n+="i",n+=" "+a.params.deps+" quando l'attributo "+a.params.property+" è presente";break;case"discriminator":switch(a.params.error){case"tag":n='il tag "'+a.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+a.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var i=a.params.limit;n+="non deve avere più di "+i+" element",i==1?n+="o":n+="i";break;case"maxLength":n="";var i=a.params.limit;n+="non deve essere più lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"maxProperties":n="";var i=a.params.limit;n+="non deve avere più di "+i+" attribut",i==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"minItems":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" element",i==1?n+="o":n+="i";break;case"minLength":n="";var i=a.params.limit;n+="non deve essere meno lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"minProperties":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" attribut",i==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+a.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+a.params.missingProperty;break;case"type":n="deve essere di tipo "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="non deve avere più di "+i+" elementi",i==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 ## "+a.params.j+" e "+a.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}a.message=n}}),Vf}var Hf,Zb;function Lj(){return Zb||(Zb=1,Hf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="は"+i+"以上あってはいけない";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=""+a.params.property+"がある場合、";var i=a.params.depsCount;n+="は"+a.params.deps+"をつけなければいけない";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+a.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var i=a.params.limit;n+="は"+i+"個以上であってはいけない";break;case"maxLength":n="";var i=a.params.limit;n+="は"+i+"文字以上であってはいけない";break;case"maxProperties":n="";var i=a.params.limit;n+="は"+i+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var i=a.params.limit;n+="は"+i+"個以下であってはいけない";break;case"minLength":n="";var i=a.params.limit;n+="は"+i+"文字以下であってはいけない";break;case"minProperties":n="";var i=a.params.limit;n+="は"+i+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+a.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+a.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+a.params.missingProperty+"がなければいけない";break;case"type":n=""+a.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+a.params.j+"と"+a.params.i+"は同じである)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),Hf}var Wf,Qb;function qj(){return Qb||(Qb=1,Wf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" 항목은 아이템을 "+i+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=a.params.property+"속성이 있는 경우, "+a.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(a.params.error){case"tag":n='"'+a.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+a.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+a.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+a.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var i=a.params.limit;n+="아이템이 최대 "+i+"개이여야 합니다";break;case"maxLength":n="";var i=a.params.limit;n+="최대 "+i+"글자여야 합니다";break;case"maxProperties":n="";var i=a.params.limit;n+="속성은 최대 "+i+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var i=a.params.limit;n+="아이템이 최소 "+i+"개이여야 합니다";break;case"minLength":n="";var i=a.params.limit;n+="최소 "+i+"글자여야 합니다";break;case"minProperties":n="";var i=a.params.limit;n+="속성은 최소 "+i+"개 이상이여야 합니다";break;case"multipleOf":n=""+a.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+a.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+a.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+a.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+a.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var i=a.params.len;n+="항목이 "+i+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+a.params.j+"과 아이템"+a.params.i+"가 동일합니다)";break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}a.message=n}}),Wf}var Kf,ek;function $j(){return ek||(ek=1,Kf=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="kan ikke ha mer enn "+a+" element",a!=1&&(o+="er");break;case"additionalProperties":o="kan ikke ha flere egenskaper";break;case"anyOf":o='må samsvare med et schema i "anyOf"';break;case"const":o="må være lik konstanten";break;case"contains":o="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="må ha egenskapen",a!=1&&(o+="e"),o+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" must be string';break;case"mapping":o='value of tag "'+n.params.tag+'" must be in oneOf';break;default:o="må samsvare med valideringen for "+n.keyword}break;case"enum":o="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":o="boolsk schema er usannt";break;case"format":o='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"if":o='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"maxItems":o="";var a=n.params.limit;o+="kan ikke ha fler enn "+a+" element",a!=1&&(o+="er");break;case"maxLength":o="";var a=n.params.limit;o+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":o="";var a=n.params.limit;o+="kan ikke ha mer enn "+a+" egenskap",a!=1&&(o+="er");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="må være "+r;break;case"minItems":o="";var a=n.params.limit;o+="kan ikke ha færre enn "+a+" element",a!=1&&(o+="er");break;case"minLength":o="";var a=n.params.limit;o+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":o="";var a=n.params.limit;o+="kan ikke ha mindre enn "+a+" egenskap",a!=1&&(o+="er");break;case"multipleOf":o="må være et multiplum av "+n.params.multipleOf;break;case"not":o='kan ikke samsvare med schema i "not"';break;case"oneOf":o='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":o='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":o='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":o="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":o="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="må være ",i=="number"?o+="et tall":i=="integer"?o+="et heltall":i=="string"?o+="en streng":i=="boolean"?o+="ja eller nei":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="must NOT have more than "+a+" item",a!=1&&(o+="s");break;case"unevaluatedProperties":o="must NOT have unevaluated properties";break;case"uniqueItems":o="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:o="må samsvare med valideringen for "+n.keyword}n.message=o}}),Kf}var Gf,tk;function zj(){return tk||(tk=1,Gf=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"additionalProperties":o="mag geen extra eigenschappen bevatten";break;case"anyOf":o='moet overeenkomen met een schema in "anyOf"';break;case"const":o="moet gelijk zijn aan constante";break;case"contains":o="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+="moet de eigenschap",a!=1&&(o+="pen"),o+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":o='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":o='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":o="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":o="boolean schema is fout";break;case"format":o='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"if":o='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"maxItems":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"maxLength":o="";var a=n.params.limit;o+="mag niet langer dan "+a+" karakter",a!=1&&(o+="s"),o+=" zijn";break;case"maxProperties":o="";var a=n.params.limit;o+="mag niet meer dan "+a+" eigenschap",a!=1&&(o+="pen"),o+=" bevatten";break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="moet "+r+" zijn";break;case"minItems":o="";var a=n.params.limit;o+="mag niet minder dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"minLength":o="";var a=n.params.limit;o+="mag niet korter dan "+a+" karakter",a!=1&&(o+="s"),o+=" zijn";break;case"minProperties":o="";var a=n.params.limit;o+="mag niet minder dan "+a+" eigenschap",a!=1&&(o+="pen"),o+=" bevatten";break;case"multipleOf":o="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":o='mag niet overeenkomen met een schema in "not"';break;case"oneOf":o='moet overeenkomen met één schema in "oneOf"';break;case"pattern":o='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":o='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":o="eigenschapnaam is ongeldig";break;case"required":o="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":o="";var i=n.params.type;o+="moet een ",i=="number"?o+="nummer":i=="integer"?o+="geheel getal":i=="string"?o+="tekenreeks":i=="boolean"&&(o+="ja of nee waarde"),o+=" ("+i+") bevatten";break;case"unevaluatedItems":o="";var a=n.params.len;o+="mag niet meer dan "+a+" item",a!=1&&(o+="s"),o+=" bevatten";break;case"unevaluatedProperties":o="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":o="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:o='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=o}}),Gf}var Jf,rk;function Rj(){return rk||(rk=1,Jf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==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 i=a.params.depsCount;n+="powinien zawierać pol",i==1?n+="e":n+="a",n+=" "+a.params.deps+" kiedy pole "+a.params.property+" jest obecne";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"maxLength":n="";var i=a.params.limit;n+="nie powinien być dłuższy niż "+i+" znak",i!=1&&(n+="ów");break;case"maxProperties":n="";var i=a.params.limit;n+="nie powinien zawierać więcej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"minItems":n="";var i=a.params.limit;n+="nie powinien mieć mniej niż "+i+" element",i==1?n+="u":n+="ów";break;case"minLength":n="";var i=a.params.limit;n+="nie powinien być krótszy niż "+i+" znak",i!=1&&(n+="ów");break;case"minProperties":n="";var i=a.params.limit;n+="nie powinien zawierać mniej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+a.params.missingProperty;break;case"type":n="powinien być "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=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 "+a.params.j+" i "+a.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+a.keyword+'"'}a.message=n}}),Jf}var Yf,nk;function Uj(){return nk||(nk=1,Yf=function(t){if(t&&t.length)for(const n of t){let o;switch(n.keyword){case"additionalItems":case"items":o="não são permitidos itens adicionais (mais do que "+a+")";break;case"additionalProperties":o="não são permitidas propriedades adicionais";break;case"anyOf":o='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":o="deve ser igual à constante";break;case"contains":o="deve conter um item válido";break;case"dependencies":case"dependentRequired":o="";var a=n.params.depsCount;o+=" deve ter propriedade",a!=1&&(o+="s"),o+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":o='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":o='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":o="deve ser igual a um dos valores permitidos";break;case"false schema":o='o schema booleano é "false"';break;case"format":o='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"if":o='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"maxItems":o="";var a=n.params.limit;o+="não deve ter mais que "+a+" elemento",a!=1&&(o+="s");break;case"maxLength":o="";var a=n.params.limit;o+="não deve ser maior que "+a+" caracter",a!=1&&(o+="es");break;case"maxProperties":o="";var a=n.params.limit;o+="não deve ter mais que "+a+" propriedade",a!=1&&(o+="s");break;case"minimum":case"exclusiveMinimum":o="";var r=n.params.comparison+" "+n.params.limit;o+="deve ser "+r;break;case"minItems":o="";var a=n.params.limit;o+="não deve ter menos que "+a+" elemento",a!=1&&(o+="s");break;case"minLength":o="";var a=n.params.limit;o+="não deve ser mais curta que "+a+" caracter",a!=1&&(o+="es");break;case"minProperties":o="";var a=n.params.limit;o+="não deve ter menos que "+a+" propriedade",a!=1&&(o+="s");break;case"multipleOf":o="deve ser múltiplo de "+n.params.multipleOf;break;case"not":o='não deve ser valido segundo o schema em "not"';break;case"oneOf":o='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":o='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":o='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":o="o nome da propriedade é inválido";break;case"required":o="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":o="";var i=n.params.type;o+="deve ser ",i=="number"?o+="um número":i=="integer"?o+="um número inteiro":i=="string"?o+="um texto":i=="boolean"?o+="um booleano":o+=i;break;case"unevaluatedItems":o="";var a=n.params.len;o+="não pode possuir mais que "+a+" ",a==1?o+="item":o+="itens";break;case"unevaluatedProperties":o="não pode possuir propridades não avaliadas";break;case"uniqueItems":o="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:o='deve passar a validação da keyword "'+n.keyword+'"'}n.message=o}}),Yf}var Xf,ik;function Bj(){return ik||(ik=1,Xf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=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 i=a.params.depsCount;n+="должно иметь пол",i==1?n+="е":n+="я",n+=" "+a.params.deps+", когда присутствует поле "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='поле "'+a.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+a.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+a.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxLength":n="";var i=a.params.limit;n+="должно быть не длиннее, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxProperties":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"minItems":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minLength":n="";var i=a.params.limit;n+="должно быть не короче, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minProperties":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+a.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+a.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+a.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+a.params.missingProperty;break;case"type":n="должно быть "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+a.params.j+" и "+a.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+a.keyword+'"'}a.message=n}}),Xf}var Zf,ak;function Vj(){return ak||(ak=1,Zf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemôže obsahovať viac, než "+i+" prv",i==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 i=a.params.depsCount;n+=" musí obsahovať polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka",n+=": "+a.params.deps+", ak obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" prv",i==1?n+="ok":n+="kov";break;case"maxLength":n="";var i=a.params.limit;n+="nesmie byť dlhší než "+i+" znak",i!=1&&(n+="ov");break;case"maxProperties":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" prv",i==1?n+="ok":n+="kov";break;case"minLength":n="";var i=a.params.limit;n+="nesmie byť kratší než "+i+" znak",i!=1&&(n+="ov");break;case"minProperties":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+a.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+a.params.missingProperty;break;case"type":n="musí byť "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+a.params.j+" a "+a.params.i+" sú rovnaké)";break;default:n='musí splniť "'+a.keyword+'" validáciu'}a.message=n}}),Zf}var Qf,ok;function Hj(){return ok||(ok=1,Qf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="borde ha fler än "+i+" sak",i!=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 i=a.params.depsCount;n+="borde ha egenskap",i!=1&&(n+="er"),n+=" "+a.params.deps+" när egenskap "+a.params.property+" finns tillgängligt";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='bör passera "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" sak",i!=1&&(n+="er");break;case"maxLength":n="";var i=a.params.limit;n+="borde inte vara längre än "+i+" tecken";break;case"maxProperties":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" egenskap",i!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"minItems":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" sak",i!=1&&(n+="er");break;case"minLength":n="";var i=a.params.limit;n+="borde inte vara kortare än "+i+" tecken";break;case"minProperties":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" egenskap",i!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+a.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+a.params.missingProperty;break;case"type":n="borde vara "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+a.params.j+" och "+a.params.i+" är identiska)";break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}a.message=n}}),Qf}var ed,sk;function Wj(){return sk||(sk=1,ed=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i+" ตัว";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 i=a.params.depsCount;n+="เมื่อมี property "+a.params.property+" แล้วจะต้องมี property "+a.params.deps+" ด้วย";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+a.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i;break;case"maxLength":n="";var i=a.params.limit;n+="ต้องยาวไม่เกิน "+i+" ตัวอักษร";break;case"maxProperties":n="";var i=a.params.limit;n+="ต้องมี property ไม่เกิน "+i+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var i=a.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+i;break;case"minLength":n="";var i=a.params.limit;n+="ต้องมีอย่างน้อย "+i+" ตัวอักษร";break;case"minProperties":n="";var i=a.params.limit;n+="ต้องมี property อย่างน้อย "+i+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+a.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+a.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+a.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="ต้องมีไม่เกิน "+i+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+a.params.j+" กับ "+a.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}a.message=n}}),ed}var td,lk;function Kj(){return lk||(lk=1,td=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不允许超过"+i+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="应当拥有属性"+a.params.property+"的依赖属性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='标签 "'+a.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+a.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+a.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不应多于 "+i+" 个项";break;case"maxLength":n="";var i=a.params.limit;n+="不应多于 "+i+" 个字符";break;case"maxProperties":n="";var i=a.params.limit;n+="不应有多于 "+i+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不应少于 "+i+" 个项";break;case"minLength":n="";var i=a.params.limit;n+="不应少于 "+i+" 个字符";break;case"minProperties":n="";var i=a.params.limit;n+="不应有少于 "+i+" 个属性";break;case"multipleOf":n="应当是 "+a.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+a.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+a.params.missingProperty;break;case"type":n="应当是 "+a.params.type+" 类型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 不允许有超过 "+i+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+a.params.j+" 项与第 "+a.params.i+" 项是重复的)";break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}a.message=n}}),td}var rd,uk;function Gj(){return uk||(uk=1,rd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不可以超過"+i+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="應該要有屬性"+a.params.property+"的依賴屬性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='標籤 "'+a.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+a.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+a.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個";break;case"maxLength":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個字元";break;case"maxProperties":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個";break;case"minLength":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個字元";break;case"minProperties":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個屬性";break;case"multipleOf":n="應該是 "+a.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+a.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+a.params.missingProperty;break;case"type":n="應該是 "+a.params.type+" 類型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 的元素不可以超過 "+i+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+a.params.j+" 項和第 "+a.params.i+" 項是重複的)";break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}a.message=n}}),rd}var nd,ck;function Jj(){return ck||(ck=1,nd={en:xj(),ar:Oj(),ca:_j(),cs:Pj(),de:Ij(),es:Tj(),fi:Nj(),fr:Fj(),hu:Dj(),id:Mj(),it:jj(),ja:Lj(),ko:qj(),nb:$j(),nl:zj(),pl:Rj(),"pt-BR":Uj(),ru:Bj(),sk:Vj(),sv:Hj(),th:Wj(),zh:Kj(),"zh-TW":Gj()}),nd}var Yj=Jj();const co=jr(Yj),hl={flex:1,paddingLeft:6,paddingRight:6};function Xj(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.templates.ButtonTemplates;return N.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(v,{id:rr(o,"moveUp"),className:"rjsf-array-item-move-up",style:hl,disabled:t||f||!a,onClick:c,uiSchema:d,registry:p})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:rr(o,"moveDown"),className:"rjsf-array-item-move-down",style:hl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(m,{id:rr(o,"copy"),className:"rjsf-array-item-copy",style:hl,disabled:t||f,onClick:s,uiSchema:d,registry:p})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:rr(o,"remove"),className:"rjsf-array-item-remove",style:hl,disabled:t||f,onClick:l,uiSchema:d,registry:p})})]})}function Zj(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,o=pe(n),s=he("ArrayFieldItemButtonsTemplate",a,o);return N.jsx("div",{children:N.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[N.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&N.jsx("div",{className:"col-3 col-lg-3 py-4",children:N.jsx(s,{...r})})]})})}function Qj(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:o,readonly:s,registry:l,required:u,schema:c,title:f,uiSchema:p}=e,d=pe(p),m=he("ArrayFieldTitleTemplate",l,d),k=he("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=l.templates.ButtonTemplates,g=!s&&!r;return N.jsx("div",{children:N.jsx("div",{className:"row p-0 m-0",children:N.jsxs("div",{className:"col p-0 m-0",children:[N.jsx(m,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:p,registry:l,optionalDataControl:g?n:void 0}),N.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:p,registry:l}),g?void 0:n,N.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&N.jsxs("div",{className:"row mt-2",children:[N.jsx("div",{className:"col-9"}),N.jsx("div",{className:"col-3 py-4",children:N.jsx(v,{id:rr(i,"add"),className:"rjsf-array-item-add",onClick:o,disabled:r||s,uiSchema:p,registry:l})})]})]})]})})})}const fo={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},eL=()=>N.jsx("svg",{...fo,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),tL=()=>N.jsx("svg",{...fo,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),rL=()=>N.jsxs("svg",{...fo,children:[N.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),N.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),fk=()=>N.jsx("svg",{...fo,children:N.jsx("path",{d:"M3.5 8h9"})}),nL=()=>N.jsx("svg",{...fo,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ta({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...o}){return N.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...o,children:t})}function iL(e){const{translateString:t}=e.registry;return N.jsx(ta,{title:t(Oe.CopyButton),...e,icon:N.jsx(rL,{})})}function aL(e){const{translateString:t}=e.registry;return N.jsx(ta,{title:t(Oe.MoveUpButton),...e,icon:N.jsx(eL,{})})}function oL(e){const{translateString:t}=e.registry;return N.jsx(ta,{title:t(Oe.MoveDownButton),...e,icon:N.jsx(tL,{})})}function sL(e){const{translateString:t}=e.registry;return N.jsx(ta,{title:t(Oe.RemoveButton),...e,variant:"danger",icon:N.jsx(fk,{})})}function lL(e){const{translateString:t}=e.registry;return N.jsx(ta,{title:t(Oe.ClearButton),...e,icon:N.jsx(fk,{})})}function uL({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(ta,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Oe.AddItemButton),icon:N.jsx(nL,{})})}function cL({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=sf(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const fL={SubmitButton:cL,AddButton:uL,CopyButton:iL,MoveDownButton:oL,MoveUpButton:aL,RemoveButton:sL,ClearButton:lL};function dL({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Sr,{children:t}):t})}):null}function pL({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:cf(t),children:e.filter(Boolean).map((r,i)=>N.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:N.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?N.jsx(Sr,{children:r}):r})},`${r}-${i}`))})}function mL({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:df(e),children:t}):null}function hL(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:o,rawDescription:s,hidden:l,label:u,required:c,schema:f,uiSchema:p,registry:d}=e,m=pe(p),k=he("WrapIfAdditionalTemplate",d,m);if(l)return N.jsx("div",{className:"hidden",children:r});const v=a.length>0;return N.jsxs(N.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Yu,{children:f.markdown.before})}),N.jsx(k,{...e,children:N.jsxs("div",{className:"form-group",children:[i&&N.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[N.jsx(Sr,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&s&&N.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:N.jsx(Sr,{children:s})}),n,o]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Yu,{children:f.markdown.after})})]})}function gL(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:o,properties:s,readonly:l,registry:u,required:c,schema:f,title:p,uiSchema:d}=e,m=pe(d),k=he("TitleFieldTemplate",u,m),v=he("DescriptionFieldTemplate",u,m),{AddButton:g}=u.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&s.length===0)return null;const w=!l&&!r;return N.jsxs(N.Fragment,{children:[p&&N.jsx(k,{id:ws(a),title:p,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?o:void 0}),t&&N.jsx(v,{id:xn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:o,N.jsxs("div",{className:"container-fluid p-0",children:[s.map(S=>N.jsx("div",{className:`row mb-2${S.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:S.content})},S.name)),Mh(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:rr(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function yL({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=pe(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Sr,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function vL(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:o,onRemoveProperty:s,readonly:l,required:u,schema:c,hideError:f,rawErrors:p,children:d,uiSchema:m,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=hn in c,S=[r];!f&&p&&p.length>0&&S.push("has-error has-danger");const h=S.filter(Boolean).join(" ").trim();if(!w)return N.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return N.jsx("div",{className:h,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col",children:N.jsxs("div",{className:"form-group",children:[N.jsx("label",{className:"form-label",htmlFor:y,children:g(Oe.KeyLabel,[n])}),N.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:o})]})}),N.jsx("div",{className:"col",children:d}),N.jsx("div",{className:"col-auto py-4",children:N.jsx(b,{disabled:a||l,onClick:s,uiSchema:m,registry:k})})]})})}const bL=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Xj,ArrayFieldItemTemplate:Zj,ArrayFieldTemplate:Qj,ButtonTemplates:fL,DescriptionFieldTemplate:dL,FieldErrorTemplate:pL,FieldHelpTemplate:mL,FieldTemplate:hL,ObjectFieldTemplate:gL,TitleFieldTemplate:yL,WrapIfAdditionalTemplate:vL},Symbol.toStringTag,{value:"Module"}));function kL({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:o,label:s,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:p,registry:d}){const m=he("DescriptionFieldTemplate",d,r),k=io(e),v=U.useCallback(y=>p(y.target.checked),[p]),g=U.useCallback(y=>c(i,y.target.checked),[c,i]),b=U.useCallback(y=>f(i,y.target.checked),[f,i]),h=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(m,{id:xn(i),description:h,schema:e,uiSchema:t,registry:d}),N.jsxs("div",{className:"form-check",children:[N.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:k,disabled:n||o,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":xr(i)}),!l&&!!s&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Sr,{components:{p:"span"},children:s})})]})]})}function wL({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:o,onChange:s,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,m=no(r),k=Array.isArray(i)?i:[i],v=U.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]),g=U.useCallback(({target:b})=>u(e,Ar(b==null?void 0:b.value,f,m,d)),[u,e,f,d,m]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const S=Yi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=Ss(e,w),C=x=>{x.target.checked?s(Qy(w,k,f)):s(Xy(w,k,f))};return N.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[N.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:S,value:ro(b.value,w,m),required:o,disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Sr,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function SL({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:o,onFocus:s,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:p,emptyValue:d}=e,m=no(e),k=U.useCallback(({target:g})=>o(u,Ar(g==null?void 0:g.value,c,m,d)),[o,c,d,u,m]),v=U.useCallback(({target:g})=>s(u,Ar(g==null?void 0:g.value,c,m,d)),[s,c,d,u,m]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=Yi(g.value,t),S=Array.isArray(f)&&f.includes(g.value),h=Ss(u,b);return N.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ro(g.value,b,m),required:r,disabled:i||S||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":xr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Sr,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const CL=5;function EL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:o,autofocus:s=!1,onChange:l,onBlur:u,onFocus:c}){const f=U.useCallback(({target:{value:m}})=>l(m===""?t.emptyValue:m),[l,t.emptyValue]),p=U.useCallback(({target:m})=>u(e,m==null?void 0:m.value),[u,e]),d=U.useCallback(({target:m})=>c(e,m==null?void 0:m.value),[c,e]);return N.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:o,autoFocus:s,rows:t.rows||CL,onChange:f,onBlur:p,onFocus:d,"aria-describedby":xr(e)})}const dk={templates:bL,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:kL,CheckboxesWidget:wL,RadioWidget:SL,TextareaWidget:EL},Symbol.toStringTag,{value:"Module"}))},AL=e=>e==="{}"?`{
82
+ depsCount: ${c},
83
+ deps: ${u}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=n(l);s(l,c),o(l,u)}};function n({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const p=Array.isArray(l[f])?c:u;p[f]=l[f]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:f,it:p}=l;if(Object.keys(c).length===0)return;const d=u.let("missing");for(const h in c){const v=c[h];if(v.length===0)continue;const k=(0,i.propertyInData)(u,f,h,p.opts.ownProperties);l.setParams({property:h,depsCount:v.length,deps:v.join(", ")}),p.allErrors?u.if(k,()=>{for(const g of v)(0,i.checkReportMissingProp)(l,g)}):(u.if((0,t._)`${k} && (${(0,i.checkMissingProp)(l,v,d)})`),(0,i.reportMissingProp)(l,d),u.else())}}e.validatePropertyDeps=s;function o(l,c=l.schema){const{gen:u,data:f,keyword:p,it:d}=l,h=u.name("valid");for(const v in c)(0,r.alwaysValidSchema)(d,c[v])||(u.if((0,i.propertyInData)(u,f,v,d.opts.ownProperties),()=>{const k=l.subschema({keyword:p,schemaProp:v},h);l.mergeValidEvaluated(k,h)},()=>u.var(h,!0)),l.ok(h))}e.validateSchemaDeps=o,e.default=a})(Mf)),Mf}var tl={},Ob;function mj(){if(Ob)return tl;Ob=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:n,schema:s,data:o,it:l}=a;if((0,t.alwaysValidSchema)(l,s))return;const c=n.name("valid");n.forIn("key",o,u=>{a.setParams({propertyName:u}),a.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),n.if((0,e.not)(c),()=>{a.error(!0),l.allErrors||n.break()})}),a.ok(c)}};return tl.default=i,tl}var rl={},_b;function Pb(){if(_b)return rl;_b=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=On(),i=Ve(),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:l,parentSchema:c,data:u,errsCount:f,it:p}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=p;if(p.props=!0,h.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(p,l))return;const v=(0,e.allSchemaProperties)(c.properties),k=(0,e.allSchemaProperties)(c.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",u,y=>{!v.length&&!k.length?E(y):o.if(b(y),()=>E(y))})}function b(y){let S;if(v.length>8){const x=(0,i.schemaRefOrVal)(p,c.properties,"properties");S=(0,e.isOwnProperty)(o,x,y)}else v.length?S=(0,t.or)(...v.map(x=>(0,t._)`${y} === ${x}`)):S=t.nil;return k.length&&(S=(0,t.or)(S,...k.map(x=>(0,t._)`${(0,e.usePattern)(s,x)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${u}[${y}]`)}function E(y){if(h.removeAdditional==="all"||h.removeAdditional&&l===!1){w(y);return}if(l===!1){s.setParams({additionalProperty:y}),s.error(),d||o.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(p,l)){const S=o.name("valid");h.removeAdditional==="failing"?(m(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(m(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function m(y,S,x){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return rl.default=n,rl}var nl={},Ib;function hj(){if(Ib)return nl;Ib=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Io(),t=Pr(),r=Ve(),i=Pb(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,parentSchema:l,data:c,it:u}=n;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(u,i.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const k of f)u.definedProperties.add(k);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),u.props));const p=f.filter(k=>!(0,r.alwaysValidSchema)(u,o[k]));if(p.length===0)return;const d=s.name("valid");for(const k of p)h(k)?v(k):(s.if((0,t.propertyInData)(s,c,k,u.opts.ownProperties)),v(k),u.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(k),n.ok(d);function h(k){return u.opts.useDefaults&&!u.compositeRule&&o[k].default!==void 0}function v(k){n.subschema({keyword:"properties",schemaProp:k,dataProp:k},d)}}};return nl.default=a,nl}var il={},Tb;function gj(){if(Tb)return il;Tb=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),i=Ve(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:c,it:u}=n,{opts:f}=u,p=(0,e.allSchemaProperties)(o),d=p.filter(E=>(0,r.alwaysValidSchema)(u,o[E]));if(p.length===0||d.length===p.length&&(!u.opts.unevaluated||u.props===!0))return;const h=f.strictSchema&&!f.allowMatchingProperties&&c.properties,v=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,i.evaluatedPropsToName)(s,u.props));const{props:k}=u;g();function g(){for(const E of p)h&&b(E),u.allErrors?w(E):(s.var(v,!0),w(E),s.if(v))}function b(E){for(const m in h)new RegExp(E).test(m)&&(0,r.checkStrictMode)(u,`property ${m} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",l,m=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${m})`,()=>{const y=d.includes(E);y||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:m,dataPropType:i.Type.Str},v),u.opts.unevaluated&&k!==!0?s.assign((0,t._)`${k}[${m}]`,!0):!y&&!u.allErrors&&s.if((0,t.not)(v),()=>s.break())})})}}};return il.default=a,il}var al={},Nb;function yj(){if(Nb)return al;Nb=1,Object.defineProperty(al,"__esModule",{value:!0});const e=Ve(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:i,schema:a,it:n}=r;if((0,e.alwaysValidSchema)(n,a)){r.fail();return}const s=i.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 al.default=t,al}var sl={},Fb;function vj(){if(Fb)return sl;Fb=1,Object.defineProperty(sl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pr().validateUnion,error:{message:"must match a schema in anyOf"}};return sl.default=t,sl}var ol={},Db;function bj(){if(Db)return ol;Db=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:n,schema:s,parentSchema:o,it:l}=a;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const c=s,u=n.let("valid",!1),f=n.let("passing",null),p=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(u,()=>a.reset(),()=>a.error(!0));function d(){c.forEach((h,v)=>{let k;(0,t.alwaysValidSchema)(l,h)?n.var(p,!0):k=a.subschema({keyword:"oneOf",schemaProp:v,compositeRule:!0},p),v>0&&n.if((0,e._)`${p} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${v}]`).else(),n.if(p,()=>{n.assign(u,!0),n.assign(f,v),k&&a.mergeEvaluated(k,e.Name)})})}}};return ol.default=i,ol}var ll={},Mb;function kj(){if(Mb)return ll;Mb=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=Ve(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:i,schema:a,it:n}=r;if(!Array.isArray(a))throw new Error("ajv implementation error");const s=i.name("valid");a.forEach((o,l)=>{if((0,e.alwaysValidSchema)(n,o))return;const c=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(c)})}};return ll.default=t,ll}var cl={},jb;function wj(){if(jb)return cl;jb=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=Ie(),t=Ve(),i={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:l}=n;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const c=a(l,"then"),u=a(l,"else");if(!c&&!u)return;const f=s.let("valid",!0),p=s.name("_valid");if(d(),n.reset(),c&&u){const v=s.let("ifClause");n.setParams({ifClause:v}),s.if(p,h("then",v),h("else",v))}else c?s.if(p,h("then")):s.if((0,e.not)(p),h("else"));n.pass(f,()=>n.error(!0));function d(){const v=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(v)}function h(v,k){return()=>{const g=n.subschema({keyword:v},p);s.assign(f,p),n.mergeValidEvaluated(g,f),k?s.assign(k,(0,e._)`${v}`):n.setParams({ifClause:v})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return cl.default=i,cl}var ul={},Lb;function Sj(){if(Lb)return ul;Lb=1,Object.defineProperty(ul,"__esModule",{value:!0});const e=Ve(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:i,it:a}){i.if===void 0&&(0,e.checkStrictMode)(a,`"${r}" without "if" is ignored`)}};return ul.default=t,ul}var qb;function Cj(){if(qb)return Xo;qb=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=kb(),t=uj(),r=Sb(),i=fj(),a=dj(),n=pj(),s=mj(),o=Pb(),l=hj(),c=gj(),u=yj(),f=vj(),p=bj(),d=kj(),h=wj(),v=Sj();function k(g=!1){const b=[u.default,f.default,p.default,d.default,h.default,v.default,s.default,o.default,n.default,l.default,c.default];return g?b.push(t.default,i.default):b.push(e.default,r.default),b.push(a.default),b}return Xo.default=k,Xo}var fl={},dl={},$b;function Ej(){if($b)return dl;$b=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=Ie(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},code(i,a){const{gen:n,data:s,$data:o,schema:l,schemaCode:c,it:u}=i,{opts:f,errSchemaPath:p,schemaEnv:d,self:h}=u;if(!f.validateFormats)return;o?v():k();function v(){const g=n.scopeValue("formats",{ref:h.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${c}]`),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)),i.fail$data((0,e.or)(m(),y()));function m(){return f.strictSchema===!1?e.nil:(0,e._)`${c} && !${E}`}function y(){const S=d.$async?(0,e._)`(${b}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,e._)`${E}(${s})`,x=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${a} && !${x}`}}function k(){const g=h.formats[l];if(!g){m();return}if(g===!0)return;const[b,w,E]=y(g);b===a&&i.pass(S());function m(){if(f.strictSchema===!1){h.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function y(x){const _=x instanceof RegExp?(0,e.regexpCode)(x):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,C=n.scopeValue("formats",{key:l,ref:x,code:_});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${C}.validate`]:["string",x,C]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.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 dl.default=r,dl}var zb;function Aj(){if(zb)return fl;zb=1,Object.defineProperty(fl,"__esModule",{value:!0});const t=[Ej().default];return fl.default=t,fl}var di={},Rb;function xj(){return Rb||(Rb=1,Object.defineProperty(di,"__esModule",{value:!0}),di.contentVocabulary=di.metadataVocabulary=void 0,di.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],di.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),di}var Ub;function Oj(){if(Ub)return Mo;Ub=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=XM(),t=cj(),r=Cj(),i=Aj(),a=xj(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Mo.default=n,Mo}var pl={},us={},Bb;function _j(){if(Bb)return us;Bb=1,Object.defineProperty(us,"__esModule",{value:!0}),us.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(us.DiscrError=e={})),us}var Vb;function Pj(){if(Vb)return pl;Vb=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Ie(),t=_j(),r=Tf(),i=Fo(),a=Ve(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:c}})=>(0,e._)`{error: ${o}, tag: ${c}, tagValue: ${l}}`},code(o){const{gen:l,data:c,schema:u,parentSchema:f,it:p}=o,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=u.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const v=l.let("valid",!1),k=l.const("tag",(0,e._)`${c}${(0,e.getProperty)(h)}`);l.if((0,e._)`typeof ${k} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:k,tagName:h})),o.ok(v);function g(){const E=w();l.if(!1);for(const m in E)l.elseIf((0,e._)`${k} === ${m}`),l.assign(v,b(E[m]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:k,tagName:h}),l.endIf()}function b(E){const m=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:E},m);return o.mergeEvaluated(y,e.Name),m}function w(){var E;const m={},y=x(f);let S=!0;for(let A=0;A<d.length;A++){let O=d[A];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,p.self.RULES)){const N=O.$ref;if(O=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,N),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(p.opts.uriResolver,p.baseId,N)}const F=(E=O==null?void 0:O.properties)===null||E===void 0?void 0:E[h];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(y||x(O)),_(F,A)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return m;function x({required:A}){return Array.isArray(A)&&A.includes(h)}function _(A,O){if(A.const)C(A.const,O);else if(A.enum)for(const F of A.enum)C(F,O);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function C(A,O){if(typeof A!="string"||A in m)throw new Error(`discriminator: "${h}" values must be unique strings`);m[A]=O}}}};return pl.default=s,pl}const Ij={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Hb;function Wb(){return Hb||(Hb=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=GM(),i=Oj(),a=Pj(),n=Ij,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(a.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=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Io();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=Ie();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=If();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Fo();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(Eo,Eo.exports)),Eo.exports}var Tj=Wb();const Nj=jr(Tj);var ml={exports:{}},jf={},Kb;function Fj(){return Kb||(Kb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,C){return{validate:_,compare:C}}e.fullFormats={date:t(n,s),time:t(l,c),"date-time":t(f,p),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"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:x,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:g,int32:{type:"number",validate:E},int64:{type:"number",validate:m},float:{type:"number",validate:y},double:{type:"number",validate:y},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,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){return _%4===0&&(_%100!==0||_%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(_){const C=i.exec(_);if(!C)return!1;const A=+C[1],O=+C[2],F=+C[3];return O>=1&&O<=12&&F>=1&&F<=(O===2&&r(A)?29:a[O])}function s(_,C){if(_&&C)return _>C?1:_<C?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,C){const A=o.exec(_);if(!A)return!1;const O=+A[1],F=+A[2],N=+A[3],M=A[5];return(O<=23&&F<=59&&N<=59||O===23&&F===59&&N===60)&&(!C||M!=="")}function c(_,C){if(!(_&&C))return;const A=o.exec(_),O=o.exec(C);if(A&&O)return _=A[1]+A[2]+A[3]+(A[4]||""),C=O[1]+O[2]+O[3]+(O[4]||""),_>C?1:_<C?-1:0}const u=/t|\s/i;function f(_){const C=_.split(u);return C.length===2&&n(C[0])&&l(C[1],!0)}function p(_,C){if(!(_&&C))return;const[A,O]=_.split(u),[F,N]=C.split(u),M=s(A,F);if(M!==void 0)return M||c(O,N)}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 v(_){return d.test(_)&&h.test(_)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return k.lastIndex=0,k.test(_)}const b=-2147483648,w=2**31-1;function E(_){return Number.isInteger(_)&&_<=w&&_>=b}function m(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function x(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(jf)),jf}var Lf={},Gb;function Dj(){return Gb||(Gb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Wb(),r=Ie(),i=r.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},n={message:({keyword:o,schemaCode:l})=>r.str`should be ${a[o].okStr} ${l}`,params:({keyword:o,schemaCode:l})=>r._`{comparison: ${a[o].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:l,data:c,schemaCode:u,keyword:f,it:p}=o,{opts:d,self:h}=p;if(!d.validateFormats)return;const v=new t.KeywordCxt(p,h.RULES.all.format.definition,"format");v.$data?k():g();function k(){const w=l.scopeValue("formats",{ref:h.formats,code:d.code.formats}),E=l.const("fmt",r._`${w}[${v.schemaCode}]`);o.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function g(){const w=v.schema,E=h.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const m=l.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(m))}function b(w){return r._`${w}.compare(${c}, ${u}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(Lf)),Lf}var Jb;function Mj(){return Jb||(Jb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Fj(),i=Dj(),a=Ie(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,r.fullFormats,n),c;const[f,p]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=u.formats||r.formatNames;return l(c,d,f,p),u.keywords&&i.default(c),c};o.get=(c,u="full")=>{const p=(u==="fast"?r.fastFormats:r.fullFormats)[c];if(!p)throw new Error(`Unknown format "${c}"`);return p};function l(c,u,f,p){var d,h;(d=(h=c.opts.code).formats)!==null&&d!==void 0||(h.formats=a._`require("ajv-formats/dist/formats").${p}`);for(const v of u)c.addFormat(v,f[v])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(ml,ml.exports)),ml.exports}var jj=Mj();const Yb=jr(jj),Lj={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},qj=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,$j=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function zj(e,t,r={},i,a=Nj,n){let s=new a({...Lj,...r});return i?Yb(s,i):i!==!1&&Yb(s),s.addFormat("data-url",$j),s.addFormat("color",qj),s.addKeyword(fu),Array.isArray(e)&&s.addMetaSchema(e),Re(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class Rj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:c}=t;this.ajv=zj(i,a,n,s,o,l),this.localizer=r,this.suppressDuplicateFiltering=c}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var i,a;let n,s;try{t[tt]&&(s=this.ajv.getSchema(t[tt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(l){n=l}let o;return s&&(typeof this.localizer=="function"&&(((i=s.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=`'${l.params[u]}'`)}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(s.errors),((a=s.errors)!==null&&a!==void 0?a:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=l.params[u].slice(1,-1))}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.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,i,a,n){const s=this.rawValidation(r,t);return qM(this,s,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[tt])!==null&&r!==void 0?r:Hh;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):Ue(t,(i=this.ajv.getSchema(a))===null||i===void 0?void 0:i.schema)||(this.ajv.removeSchema(a),this.ajv.addSchema(t,a)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,i){var a;try{this.handleSchemaUpdate(i);const n=Sf(t),s=(a=n[tt])!==null&&a!==void 0?a:mM(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 hl(e={},t){return new Rj(e,t)}hl();var qf,Xb;function Uj(){return Xb||(Xb=1,qf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=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 i=a.params.depsCount;n+="must have propert",i==1?n+="y":n+="ies",n+=" "+a.params.deps+" when property "+a.params.property+" is present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"maxItems":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="must NOT be longer than "+i+" character",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="must NOT have more than "+i+" propert",i==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"minItems":n="";var i=a.params.limit;n+="must NOT have less than "+i+" item",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="must NOT be shorter than "+i+" character",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="must NOT have less than "+i+" propert",i==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+a.params.missingProperty;break;case"type":n="must be "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+a.params.j+" and "+a.params.i+" are identical)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),qf}var $f,Zb;function Bj(){return Zb||(Zb=1,$f=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" يجب أن يحوي الخصائص "+a.params.deps+" عندما تكون الخاصية "+a.params.property+" موجودة";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"maxLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" محرف";break;case"maxProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" عنصر";break;case"minLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" محرف";break;case"minProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+a.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+a.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+a.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+a.params.j+" و "+a.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}a.message=n}}),$f}var zf,Qb;function Vj(){return Qb||(Qb=1,zf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" element",i!=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 i=a.params.depsCount;n+="ha de contenir la propietat",i!=1&&(n+="s"),n+=" "+a.params.deps+" quan la propietat "+a.params.property+" és present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" ítem",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" caràcter",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" propietat",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no ha de tenir menys de "+i+" ítem",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" caràcter",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" propietat",i!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+a.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ó "'+a.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+a.params.missingProperty;break;case"type":n="ha de ser del tipus "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+a.params.j+" i "+a.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}a.message=n}}),zf}var Rf,ek;function Hj(){return ek||(ek=1,Rf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemůže mít víc, než "+i+" prv",i>=2&&i<=4?n+="ky":i!=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 i=a.params.depsCount;n+="musí mít polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka",n+=": "+a.params.deps+", pokud obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+a.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmí obsahovat víc než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"maxLength":n="";var i=a.params.limit;n+="nesmí být delší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"maxProperties":n="";var i=a.params.limit;n+="nesmí mít víc než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmí obsahovat méně než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"minLength":n="";var i=a.params.limit;n+="nesmí být kratší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"minProperties":n="";var i=a.params.limit;n+="nesmí mít méně než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+a.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+a.params.missingProperty;break;case"type":n="musí být "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+a.params.j+" a "+a.params.i+" jsou identické)";break;default:n='musí vyhovět "'+a.keyword+'" validaci'}a.message=n}}),Rf}var Uf,tk;function Wj(){return tk||(tk=1,Uf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=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 i=a.params.depsCount;n+="muss Attribut",i!=1&&(n+="e"),n+=" "+a.params.deps+" aufweisen, wenn Attribut "+a.params.property+" gesetzt ist";break;case"discriminator":switch(a.params.error){case"tag":n='der Tag "'+a.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+a.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+a.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: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+a.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var i=a.params.limit;n+="darf nicht länger als "+i+" Zeichen sein";break;case"maxProperties":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var i=a.params.limit;n+="darf nicht kürzer als "+i+" Zeichen sein";break;case"minProperties":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+a.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: "'+a.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+a.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+a.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+a.params.j+" und #"+a.params.i+" sind gleich)";break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}a.message=n}}),Uf}var Bf,rk;function Kj(){return rk||(rk=1,Bf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no debe tener más de "+i+" elemento",i!=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 i=a.params.depsCount;n+="debe contener la",i!=1&&(n+="s"),n+=" propiedad",i!=1&&(n+="es"),n+=" "+a.params.deps+" cuando la propiedad "+a.params.property+" se encuentra presente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no debe contener más de "+i+" elemento",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no debe contener más de "+i+" caracter",i!=1&&(n+="es");break;case"maxProperties":n="";var i=a.params.limit;n+="no debe contener más de "+i+" propiedad",i!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" elemento",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" caracter",i!=1&&(n+="es");break;case"minProperties":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" propiedad",i!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+a.params.missingProperty;break;case"type":n="debe ser "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+a.params.j+" y "+a.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}a.message=n}}),Bf}var Vf,nk;function Gj(){return nk||(nk=1,Vf=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="saa sisältää enintään "+a,a==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 a=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",a==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 a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var a=n.params.limit;s+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"maxProperties":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==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 a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var a=n.params.limit;s+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"minProperties":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==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 i=n.params.type;s+="täytyy olla ",i=="number"?s+="numero":i=="integer"?s+="kokonaisluku":i=="string"?s+="merkkijono":i=="boolean"?s+="boolean":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="ei saa olla enemmän kuin "+a+" elementti",a!=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}}),Vf}var Hf,ik;function Jj(){return ik||(ik=1,Hf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élémént",i!=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 i=a.params.depsCount;n+="doit avoir la propriété "+a.params.deps+" quand la propriété "+a.params.property+" est présente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élément",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="ne doit pas dépasser "+i+" caractère",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" propriété",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"minItems":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" élément",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="ne doit pas faire moins de "+i+" caractère",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" propriété",i!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+a.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+a.params.missingProperty;break;case"type":n="doit être de type "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=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 ## "+a.params.j+" et "+a.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+a.keyword+'"'}a.message=n}}),Hf}var Wf,ak;function Yj(){return ak||(ak=1,Wf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" 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 i=a.params.depsCount;n+="-nak kell legyen",i>1&&(n+="ek"),n+=" a következő tulajdonsága",i!=1&&(n+="i"),n+=": "+a.params.deps+", ha van "+a.params.property+" tulajdonsága";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.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: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"maxLength":n="";var i=a.params.limit;n+="nem lehet hosszabb, mint "+i+" szimbólum";break;case"maxProperties":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" eleme";break;case"minLength":n="";var i=a.params.limit;n+="nem lehet rövidebb, mint "+i+" szimbólum";break;case"minProperties":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+a.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: "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+a.params.missingProperty+" tulajdonsága";break;case"type":n=""+a.params.type+" kell legyen";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+a.params.j+" és "+a.params.i+" elemek azonosak)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),Wf}var Kf,sk;function Xj(){return sk||(sk=1,Kf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" 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 i=a.params.depsCount;n+=" harus memiliki properti "+a.params.deps+" ketika properti "+a.params.property+" hadir";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"maxLength":n="";var i=a.params.limit;n+=" tidak boleh lebih dari "+i+" karakter";break;case"maxProperties":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"minItems":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" item";break;case"minLength":n="";var i=a.params.limit;n+=" tidak boleh lebih pendek dari "+i+" karakter";break;case"minProperties":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+a.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+a.params.missingProperty;break;case"type":n="harus berupa "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+a.params.j+" dan "+a.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}a.message=n}}),Kf}var Gf,ok;function Zj(){return ok||(ok=1,Gf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="non dovrebbe avere più di "+i+" element",i==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 i=a.params.depsCount;n+="dovrebbe avere ",i==1?n+="l'":n+="gli ",n+="attribut",i==1?n+="o":n+="i",n+=" "+a.params.deps+" quando l'attributo "+a.params.property+" è presente";break;case"discriminator":switch(a.params.error){case"tag":n='il tag "'+a.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+a.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var i=a.params.limit;n+="non deve avere più di "+i+" element",i==1?n+="o":n+="i";break;case"maxLength":n="";var i=a.params.limit;n+="non deve essere più lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"maxProperties":n="";var i=a.params.limit;n+="non deve avere più di "+i+" attribut",i==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"minItems":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" element",i==1?n+="o":n+="i";break;case"minLength":n="";var i=a.params.limit;n+="non deve essere meno lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"minProperties":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" attribut",i==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+a.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+a.params.missingProperty;break;case"type":n="deve essere di tipo "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="non deve avere più di "+i+" elementi",i==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 ## "+a.params.j+" e "+a.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}a.message=n}}),Gf}var Jf,lk;function Qj(){return lk||(lk=1,Jf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="は"+i+"以上あってはいけない";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=""+a.params.property+"がある場合、";var i=a.params.depsCount;n+="は"+a.params.deps+"をつけなければいけない";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+a.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var i=a.params.limit;n+="は"+i+"個以上であってはいけない";break;case"maxLength":n="";var i=a.params.limit;n+="は"+i+"文字以上であってはいけない";break;case"maxProperties":n="";var i=a.params.limit;n+="は"+i+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var i=a.params.limit;n+="は"+i+"個以下であってはいけない";break;case"minLength":n="";var i=a.params.limit;n+="は"+i+"文字以下であってはいけない";break;case"minProperties":n="";var i=a.params.limit;n+="は"+i+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+a.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+a.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+a.params.missingProperty+"がなければいけない";break;case"type":n=""+a.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+a.params.j+"と"+a.params.i+"は同じである)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),Jf}var Yf,ck;function eL(){return ck||(ck=1,Yf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" 항목은 아이템을 "+i+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=a.params.property+"속성이 있는 경우, "+a.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(a.params.error){case"tag":n='"'+a.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+a.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+a.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+a.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var i=a.params.limit;n+="아이템이 최대 "+i+"개이여야 합니다";break;case"maxLength":n="";var i=a.params.limit;n+="최대 "+i+"글자여야 합니다";break;case"maxProperties":n="";var i=a.params.limit;n+="속성은 최대 "+i+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var i=a.params.limit;n+="아이템이 최소 "+i+"개이여야 합니다";break;case"minLength":n="";var i=a.params.limit;n+="최소 "+i+"글자여야 합니다";break;case"minProperties":n="";var i=a.params.limit;n+="속성은 최소 "+i+"개 이상이여야 합니다";break;case"multipleOf":n=""+a.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+a.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+a.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+a.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+a.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var i=a.params.len;n+="항목이 "+i+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+a.params.j+"과 아이템"+a.params.i+"가 동일합니다)";break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}a.message=n}}),Yf}var Xf,uk;function tL(){return uk||(uk=1,Xf=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" element",a!=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 a=n.params.depsCount;s+="må ha egenskapen",a!=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 a=n.params.limit;s+="kan ikke ha fler enn "+a+" element",a!=1&&(s+="er");break;case"maxLength":s="";var a=n.params.limit;s+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" egenskap",a!=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 a=n.params.limit;s+="kan ikke ha færre enn "+a+" element",a!=1&&(s+="er");break;case"minLength":s="";var a=n.params.limit;s+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":s="";var a=n.params.limit;s+="kan ikke ha mindre enn "+a+" egenskap",a!=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 i=n.params.type;s+="må være ",i=="number"?s+="et tall":i=="integer"?s+="et heltall":i=="string"?s+="en streng":i=="boolean"?s+="ja eller nei":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="must NOT have more than "+a+" item",a!=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}}),Xf}var Zf,fk;function rL(){return fk||(fk=1,Zf=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=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 a=n.params.depsCount;s+="moet de eigenschap",a!=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 a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var a=n.params.limit;s+="mag niet langer dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" eigenschap",a!=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 a=n.params.limit;s+="mag niet minder dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var a=n.params.limit;s+="mag niet korter dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" eigenschap",a!=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 i=n.params.type;s+="moet een ",i=="number"?s+="nummer":i=="integer"?s+="geheel getal":i=="string"?s+="tekenreeks":i=="boolean"&&(s+="ja of nee waarde"),s+=" ("+i+") bevatten";break;case"unevaluatedItems":s="";var a=n.params.len;s+="mag niet meer dan "+a+" item",a!=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}}),Zf}var Qf,dk;function nL(){return dk||(dk=1,Qf=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==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 i=a.params.depsCount;n+="powinien zawierać pol",i==1?n+="e":n+="a",n+=" "+a.params.deps+" kiedy pole "+a.params.property+" jest obecne";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"maxLength":n="";var i=a.params.limit;n+="nie powinien być dłuższy niż "+i+" znak",i!=1&&(n+="ów");break;case"maxProperties":n="";var i=a.params.limit;n+="nie powinien zawierać więcej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"minItems":n="";var i=a.params.limit;n+="nie powinien mieć mniej niż "+i+" element",i==1?n+="u":n+="ów";break;case"minLength":n="";var i=a.params.limit;n+="nie powinien być krótszy niż "+i+" znak",i!=1&&(n+="ów");break;case"minProperties":n="";var i=a.params.limit;n+="nie powinien zawierać mniej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+a.params.missingProperty;break;case"type":n="powinien być "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=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 "+a.params.j+" i "+a.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+a.keyword+'"'}a.message=n}}),Qf}var ed,pk;function iL(){return pk||(pk=1,ed=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 "+a+")";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 a=n.params.depsCount;s+=" deve ter propriedade",a!=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 a=n.params.limit;s+="não deve ter mais que "+a+" elemento",a!=1&&(s+="s");break;case"maxLength":s="";var a=n.params.limit;s+="não deve ser maior que "+a+" caracter",a!=1&&(s+="es");break;case"maxProperties":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" propriedade",a!=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 a=n.params.limit;s+="não deve ter menos que "+a+" elemento",a!=1&&(s+="s");break;case"minLength":s="";var a=n.params.limit;s+="não deve ser mais curta que "+a+" caracter",a!=1&&(s+="es");break;case"minProperties":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" propriedade",a!=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 i=n.params.type;s+="deve ser ",i=="number"?s+="um número":i=="integer"?s+="um número inteiro":i=="string"?s+="um texto":i=="boolean"?s+="um booleano":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="não pode possuir mais que "+a+" ",a==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}}),ed}var td,mk;function aL(){return mk||(mk=1,td=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=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 i=a.params.depsCount;n+="должно иметь пол",i==1?n+="е":n+="я",n+=" "+a.params.deps+", когда присутствует поле "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='поле "'+a.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+a.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+a.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxLength":n="";var i=a.params.limit;n+="должно быть не длиннее, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxProperties":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"minItems":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minLength":n="";var i=a.params.limit;n+="должно быть не короче, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minProperties":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+a.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+a.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+a.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+a.params.missingProperty;break;case"type":n="должно быть "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+a.params.j+" и "+a.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+a.keyword+'"'}a.message=n}}),td}var rd,hk;function sL(){return hk||(hk=1,rd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemôže obsahovať viac, než "+i+" prv",i==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 i=a.params.depsCount;n+=" musí obsahovať polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka",n+=": "+a.params.deps+", ak obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" prv",i==1?n+="ok":n+="kov";break;case"maxLength":n="";var i=a.params.limit;n+="nesmie byť dlhší než "+i+" znak",i!=1&&(n+="ov");break;case"maxProperties":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" prv",i==1?n+="ok":n+="kov";break;case"minLength":n="";var i=a.params.limit;n+="nesmie byť kratší než "+i+" znak",i!=1&&(n+="ov");break;case"minProperties":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+a.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+a.params.missingProperty;break;case"type":n="musí byť "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+a.params.j+" a "+a.params.i+" sú rovnaké)";break;default:n='musí splniť "'+a.keyword+'" validáciu'}a.message=n}}),rd}var nd,gk;function oL(){return gk||(gk=1,nd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="borde ha fler än "+i+" sak",i!=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 i=a.params.depsCount;n+="borde ha egenskap",i!=1&&(n+="er"),n+=" "+a.params.deps+" när egenskap "+a.params.property+" finns tillgängligt";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='bör passera "'+a.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 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" sak",i!=1&&(n+="er");break;case"maxLength":n="";var i=a.params.limit;n+="borde inte vara längre än "+i+" tecken";break;case"maxProperties":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" egenskap",i!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"minItems":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" sak",i!=1&&(n+="er");break;case"minLength":n="";var i=a.params.limit;n+="borde inte vara kortare än "+i+" tecken";break;case"minProperties":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" egenskap",i!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+a.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 "'+a.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+a.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+a.params.missingProperty;break;case"type":n="borde vara "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+a.params.j+" och "+a.params.i+" är identiska)";break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}a.message=n}}),nd}var id,yk;function lL(){return yk||(yk=1,id=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i+" ตัว";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 i=a.params.depsCount;n+="เมื่อมี property "+a.params.property+" แล้วจะต้องมี property "+a.params.deps+" ด้วย";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+a.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i;break;case"maxLength":n="";var i=a.params.limit;n+="ต้องยาวไม่เกิน "+i+" ตัวอักษร";break;case"maxProperties":n="";var i=a.params.limit;n+="ต้องมี property ไม่เกิน "+i+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var i=a.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+i;break;case"minLength":n="";var i=a.params.limit;n+="ต้องมีอย่างน้อย "+i+" ตัวอักษร";break;case"minProperties":n="";var i=a.params.limit;n+="ต้องมี property อย่างน้อย "+i+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+a.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+a.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+a.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="ต้องมีไม่เกิน "+i+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+a.params.j+" กับ "+a.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}a.message=n}}),id}var ad,vk;function cL(){return vk||(vk=1,ad=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不允许超过"+i+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="应当拥有属性"+a.params.property+"的依赖属性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='标签 "'+a.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+a.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+a.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不应多于 "+i+" 个项";break;case"maxLength":n="";var i=a.params.limit;n+="不应多于 "+i+" 个字符";break;case"maxProperties":n="";var i=a.params.limit;n+="不应有多于 "+i+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不应少于 "+i+" 个项";break;case"minLength":n="";var i=a.params.limit;n+="不应少于 "+i+" 个字符";break;case"minProperties":n="";var i=a.params.limit;n+="不应有少于 "+i+" 个属性";break;case"multipleOf":n="应当是 "+a.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+a.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+a.params.missingProperty;break;case"type":n="应当是 "+a.params.type+" 类型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 不允许有超过 "+i+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+a.params.j+" 项与第 "+a.params.i+" 项是重复的)";break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}a.message=n}}),ad}var sd,bk;function uL(){return bk||(bk=1,sd=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不可以超過"+i+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="應該要有屬性"+a.params.property+"的依賴屬性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='標籤 "'+a.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+a.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+a.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個";break;case"maxLength":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個字元";break;case"maxProperties":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個";break;case"minLength":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個字元";break;case"minProperties":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個屬性";break;case"multipleOf":n="應該是 "+a.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+a.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+a.params.missingProperty;break;case"type":n="應該是 "+a.params.type+" 類型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 的元素不可以超過 "+i+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+a.params.j+" 項和第 "+a.params.i+" 項是重複的)";break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}a.message=n}}),sd}var od,kk;function fL(){return kk||(kk=1,od={en:Uj(),ar:Bj(),ca:Vj(),cs:Hj(),de:Wj(),es:Kj(),fi:Gj(),fr:Jj(),hu:Yj(),id:Xj(),it:Zj(),ja:Qj(),ko:eL(),nb:tL(),nl:rL(),pl:nL(),"pt-BR":iL(),ru:aL(),sk:sL(),sv:oL(),th:lL(),zh:cL(),"zh-TW":uL()}),od}var dL=fL();const fs=jr(dL),gl={flex:1,paddingLeft:6,paddingRight:6};function pL(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:v,MoveUpButton:k,RemoveButton:g}=p.templates.ButtonTemplates;return I.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&I.jsx("div",{className:"m-0 p-0",children:I.jsx(k,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:gl,disabled:t||f||!a,onClick:u,uiSchema:d,registry:p})}),(a||i)&&I.jsx("div",{className:"m-0 p-0",children:I.jsx(v,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:gl,disabled:t||f||!i,onClick:c,uiSchema:d,registry:p})}),r&&I.jsx("div",{className:"m-0 p-0",children:I.jsx(h,{id:rr(s,"copy"),className:"rjsf-array-item-copy",style:gl,disabled:t||f,onClick:o,uiSchema:d,registry:p})}),n&&I.jsx("div",{className:"m-0 p-0",children:I.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",style:gl,disabled:t||f,onClick:l,uiSchema:d,registry:p})})]})}function mL(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=pe(n),o=he("ArrayFieldItemButtonsTemplate",a,s);return I.jsx("div",{children:I.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[I.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&I.jsx("div",{className:"col-3 col-lg-3 py-4",children:I.jsx(o,{...r})})]})})}function hL(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,registry:l,required:c,schema:u,title:f,uiSchema:p}=e,d=pe(p),h=he("ArrayFieldTitleTemplate",l,d),v=he("ArrayFieldDescriptionTemplate",l,d),{AddButton:k}=l.templates.ButtonTemplates,g=!o&&!r;return I.jsx("div",{children:I.jsx("div",{className:"row p-0 m-0",children:I.jsxs("div",{className:"col p-0 m-0",children:[I.jsx(h,{fieldPathId:i,title:d.title||f,required:c,schema:u,uiSchema:p,registry:l,optionalDataControl:g?n:void 0}),I.jsx(v,{fieldPathId:i,description:d.description||u.description,schema:u,uiSchema:p,registry:l}),g?void 0:n,I.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&I.jsxs("div",{className:"row mt-2",children:[I.jsx("div",{className:"col-9"}),I.jsx("div",{className:"col-3 py-4",children:I.jsx(k,{id:rr(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:p,registry:l})})]})]})]})})})}const ds={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},gL=()=>I.jsx("svg",{...ds,children:I.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),yL=()=>I.jsx("svg",{...ds,children:I.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),vL=()=>I.jsxs("svg",{...ds,children:[I.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),I.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),wk=()=>I.jsx("svg",{...ds,children:I.jsx("path",{d:"M3.5 8h9"})}),bL=()=>I.jsx("svg",{...ds,children:I.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ta({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return I.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function kL(e){const{translateString:t}=e.registry;return I.jsx(ta,{title:t(_e.CopyButton),...e,icon:I.jsx(vL,{})})}function wL(e){const{translateString:t}=e.registry;return I.jsx(ta,{title:t(_e.MoveUpButton),...e,icon:I.jsx(gL,{})})}function SL(e){const{translateString:t}=e.registry;return I.jsx(ta,{title:t(_e.MoveDownButton),...e,icon:I.jsx(yL,{})})}function CL(e){const{translateString:t}=e.registry;return I.jsx(ta,{title:t(_e.RemoveButton),...e,variant:"danger",icon:I.jsx(wk,{})})}function EL(e){const{translateString:t}=e.registry;return I.jsx(ta,{title:t(_e.ClearButton),...e,icon:I.jsx(wk,{})})}function AL({className:e,...t}){const{translateString:r}=t.registry;return I.jsx(ta,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:I.jsx(bL,{})})}function xL({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ff(e);return r?null:I.jsx("div",{children:I.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const OL={SubmitButton:xL,AddButton:AL,CopyButton:kL,MoveDownButton:SL,MoveUpButton:wL,RemoveButton:CL,ClearButton:EL};function _L({id:e,description:t}){return t?I.jsx("div",{children:I.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?I.jsx(Sr,{children:t}):t})}):null}function PL({errors:e=[],fieldPathId:t}){return e.length===0?null:I.jsx("ul",{className:"list-group",id:mf(t),children:e.filter(Boolean).map((r,i)=>I.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:I.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?I.jsx(Sr,{children:r}):r})},`${r}-${i}`))})}function IL({fieldPathId:e,help:t,hasErrors:r}){return t?I.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:gf(e),children:t}):null}function TL(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:c,required:u,schema:f,uiSchema:p,registry:d}=e,h=pe(p),v=he("WrapIfAdditionalTemplate",d,h);if(l)return I.jsx("div",{className:"hidden",children:r});const k=a.length>0;return I.jsxs(I.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&I.jsx("div",{className:"fcode-form-markdown",children:I.jsx(Qc,{children:f.markdown.before})}),I.jsx(v,{...e,children:I.jsxs("div",{className:"form-group",children:[i&&I.jsxs("label",{className:`form-label${k?" text-danger":""}`,htmlFor:t,children:[I.jsx(Sr,{components:{p:"span"},children:c}),u?"*":null]}),r,i&&o&&I.jsx("small",{className:`form-text ${k?"text-danger":"text-muted"}`,children:I.jsx(Sr,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&I.jsx("div",{className:"fcode-form-markdown",children:I.jsx(Qc,{children:f.markdown.after})})]})}function NL(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,readonly:l,registry:c,required:u,schema:f,title:p,uiSchema:d}=e,h=pe(d),v=he("TitleFieldTemplate",c,h),k=he("DescriptionFieldTemplate",c,h),{AddButton:g}=c.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!l&&!r;return I.jsxs(I.Fragment,{children:[p&&I.jsx(v,{id:So(a),title:p,required:u,schema:f,uiSchema:d,registry:c,optionalDataControl:w?s:void 0}),t&&I.jsx(k,{id:xn(a),description:t,schema:f,uiSchema:d,registry:c}),w?void 0:s,I.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>I.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:I.jsx("div",{className:"col-12",children:E.content})},E.name)),Wh(f,d,i)&&I.jsx("div",{className:"row",children:I.jsx("div",{className:"col-3 py-4",children:I.jsx(g,{id:rr(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:c})})})]})]})}function FL({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=pe(r);return I.jsxs("div",{id:e,className:"my-1",children:[I.jsx("h5",{children:I.jsx(Sr,{children:a.title||t})}),I.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function DL(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:l,required:c,schema:u,hideError:f,rawErrors:p,children:d,uiSchema:h,registry:v}=e,{templates:k,translateString:g}=v,{RemoveButton:b}=k.ButtonTemplates,w=hn in u,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const m=E.filter(Boolean).join(" ").trim();if(!w)return I.jsx("div",{className:m,style:i,children:d});const y=`${t}-key`;return I.jsx("div",{className:m,style:i,children:I.jsxs("div",{className:"row",children:[I.jsx("div",{className:"col",children:I.jsxs("div",{className:"form-group",children:[I.jsx("label",{className:"form-label",htmlFor:y,children:g(_e.KeyLabel,[n])}),I.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:c,disabled:a||l,defaultValue:n,onBlur:l?void 0:s})]})}),I.jsx("div",{className:"col",children:d}),I.jsx("div",{className:"col-auto py-4",children:I.jsx(b,{disabled:a||l,onClick:o,uiSchema:h,registry:v})})]})})}const ML=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:pL,ArrayFieldItemTemplate:mL,ArrayFieldTemplate:hL,ButtonTemplates:OL,DescriptionFieldTemplate:_L,FieldErrorTemplate:PL,FieldHelpTemplate:IL,FieldTemplate:TL,ObjectFieldTemplate:NL,TitleFieldTemplate:FL,WrapIfAdditionalTemplate:DL},Symbol.toStringTag,{value:"Module"}));function jL({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:f,onChange:p,registry:d}){const h=he("DescriptionFieldTemplate",d,r),v=as(e),k=R.useCallback(y=>p(y.target.checked),[p]),g=R.useCallback(y=>u(i,y.target.checked),[u,i]),b=R.useCallback(y=>f(i,y.target.checked),[f,i]),m=pe(t).widget==="checkbox"?void 0:r.description??e.description;return I.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&m&&I.jsx(h,{id:xn(i),description:m,schema:e,uiSchema:t,registry:d}),I.jsxs("div",{className:"form-check",children:[I.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:c,onChange:k,onBlur:g,onFocus:b,"aria-describedby":xr(i)}),!l&&!!o&&I.jsx("label",{className:"form-check-label",htmlFor:i,children:I.jsx(Sr,{components:{p:"span"},children:o})})]})]})}function LL({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:c}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=is(r),v=Array.isArray(i)?i:[i],k=R.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]),g=R.useCallback(({target:b})=>c(e,Ar(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return I.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Yi(b.value,v),m=Array.isArray(p)&&p.includes(b.value),y=Co(e,w),S=x=>{x.target.checked?o(cv(w,v,f)):o(ov(w,v,f))};return I.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[I.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:E,value:ns(b.value,w,h),required:s,disabled:t||m||n,autoFocus:a&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":xr(e)}),I.jsx("label",{className:"custom-control-label",htmlFor:y,children:I.jsx(Sr,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function qL({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:c}){const{enumOptions:u,enumDisabled:f,inline:p,emptyValue:d}=e,h=is(e),v=R.useCallback(({target:g})=>s(c,Ar(g==null?void 0:g.value,u,h,d)),[s,u,d,c,h]),k=R.useCallback(({target:g})=>o(c,Ar(g==null?void 0:g.value,u,h,d)),[o,u,d,c,h]);return I.jsx("div",{id:c,role:"radiogroup",children:Array.isArray(u)&&u.map((g,b)=>{const w=Yi(g.value,t),E=Array.isArray(f)&&f.includes(g.value),m=Co(c,b);return I.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[I.jsx("input",{type:"radio",className:"form-check-input",id:m,name:c,checked:w,value:ns(g.value,b,h),required:r,disabled:i||E||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:v,onFocus:k,"aria-describedby":xr(c)}),I.jsx("label",{className:"form-check-label",htmlFor:m,children:I.jsx(Sr,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const $L=5;function zL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:c,onFocus:u}){const f=R.useCallback(({target:{value:h}})=>l(h===""?t.emptyValue:h),[l,t.emptyValue]),p=R.useCallback(({target:h})=>c(e,h==null?void 0:h.value),[c,e]),d=R.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return I.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||$L,onChange:f,onBlur:p,onFocus:d,"aria-describedby":xr(e)})}const Sk={templates:ML,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:jL,CheckboxesWidget:LL,RadioWidget:qL,TextareaWidget:zL},Symbol.toStringTag,{value:"Module"}))},RL=e=>e==="{}"?`{
84
84
 
85
- }`:e,xL=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:o},formData:s,readonly:l,disabled:u}=e,c=U.useRef(null),[f,p]=U.useState(AL(JSON.stringify(s||{},null,2))),d=U.useCallback(b=>{p(b.target.value)},[t]),m=U.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=U.useCallback(()=>{try{const b=JSON.parse(f);t(b,a.path),r(a.$id,b)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),v=U.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(s,null,2)||"{}";return N.jsxs("div",{className:"form-group",children:[n&&N.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),N.jsxs("div",{className:"wrapper",children:[N.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
86
- `).length,value:g,className:en(["form-control","textarea"]),onChange:d,onKeyDown:m,onFocus:v,onBlur:k,readOnly:l,disabled:u}),N.jsx("div",{className:"shadow",children:f})]}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:o})})]})},OL=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return N.jsxs("div",{className:"form-group",children:[N.jsx("div",{className:"wrapper",children:N.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:a})})]})};function pk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _L(e){if(Array.isArray(e))return e}function PL(e,t,r){return(t=jL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,o,s=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}function TL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function hk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(r),!0).forEach(function(i){PL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mk(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function NL(e,t){if(e==null)return{};var r,i,a=FL(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function FL(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function DL(e,t){return _L(e)||IL(e,t)||LL(e,t)||TL()}function ML(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jL(e){var t=ML(e,"string");return typeof t=="symbol"?t:t+""}function LL(e,t){if(e){if(typeof e=="string")return pk(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)?pk(e,t):void 0}}function qL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function yk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gk(Object(r),!0).forEach(function(i){qL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gk(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(a,n){return n(a)},i)}}function po(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return t.apply(r,[].concat(a,s))}}}function gl(e){return{}.toString.call(e).includes("Object")}function zL(e){return!Object.keys(e).length}function mo(e){return typeof e=="function"}function RL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function UL(e,t){return gl(t)||Pn("changeType"),Object.keys(t).some(function(r){return!RL(e,r)})&&Pn("changeField"),t}function BL(e){mo(e)||Pn("selectorType")}function VL(e){mo(e)||gl(e)||Pn("handlerType"),gl(e)&&Object.values(e).some(function(t){return!mo(t)})&&Pn("handlersType")}function HL(e){e||Pn("initialIsRequired"),gl(e)||Pn("initialType"),zL(e)&&Pn("initialContent")}function WL(e,t){throw new Error(e[t]||e.default)}var KL={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"},Pn=po(WL)(KL),yl={changes:UL,selector:BL,handler:VL,initial:HL};function GL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};yl.initial(e),yl.handler(t);var r={current:e},i=po(XL)(r,t),a=po(YL)(r),n=po(yl.changes)(e),o=po(JL)(r);function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return yl.selector(u),u(r.current)}function l(u){$L(i,a,n,o)(u)}return[s,l]}function JL(e,t){return mo(t)?t(e.current):t}function YL(e,t){return e.current=yk(yk({},e.current),t),t}function XL(e,t,r){return mo(t)?t(e.current):Object.keys(r).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,e.current[i])}),r}var ZL={create:GL},QL={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function e2(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];return t.apply(r,[].concat(a,s))}}}function t2(e){return{}.toString.call(e).includes("Object")}function r2(e){return e||bk("configIsRequired"),t2(e)||bk("configType"),e.urls?(n2(),{paths:{vs:e.urls.monacoBase}}):e}function n2(){console.warn(vk.deprecation)}function i2(e,t){throw new Error(e[t]||e.default)}var vk={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!
85
+ }`:e,UL=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:c}=e,u=R.useRef(null),[f,p]=R.useState(RL(JSON.stringify(o||{},null,2))),d=R.useCallback(b=>{p(b.target.value)},[t]),h=R.useCallback(function(b){u.current&&b.key=="Tab"&&b.preventDefault()},[]),v=R.useCallback(()=>{try{const b=JSON.parse(f);t(b,a.path),r(a.$id,b)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),k=R.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(o,null,2)||"{}";return I.jsxs("div",{className:"form-group",children:[n&&I.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),I.jsxs("div",{className:"wrapper",children:[I.jsx("textarea",{id:a.$id,ref:u,rows:g.split(`
86
+ `).length,value:g,className:en(["form-control","textarea"]),onChange:d,onKeyDown:h,onFocus:k,onBlur:v,readOnly:l,disabled:c}),I.jsx("div",{className:"shadow",children:f})]}),I.jsx("small",{className:"text-muted form-text",children:I.jsx(Sr,{children:s})})]})},BL=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return I.jsxs("div",{className:"form-group",children:[I.jsx("div",{className:"wrapper",children:I.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),I.jsx("small",{className:"text-muted form-text",children:I.jsx(Sr,{children:a})})]})};function Ck(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function VL(e){if(Array.isArray(e))return e}function HL(e,t,r){return(t=ZL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,s,o=[],l=!0,c=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function KL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ek(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Ak(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(r),!0).forEach(function(i){HL(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ek(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function GL(e,t){if(e==null)return{};var r,i,a=JL(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function JL(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function YL(e,t){return VL(e)||WL(e,t)||QL(e,t)||KL()}function XL(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZL(e){var t=XL(e,"string");return typeof t=="symbol"?t:t+""}function QL(e,t){if(e){if(typeof e=="string")return Ck(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)?Ck(e,t):void 0}}function e2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Ok(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xk(Object(r),!0).forEach(function(i){e2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xk(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function t2(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(a,n){return n(a)},i)}}function ps(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function yl(e){return{}.toString.call(e).includes("Object")}function r2(e){return!Object.keys(e).length}function ms(e){return typeof e=="function"}function n2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i2(e,t){return yl(t)||Pn("changeType"),Object.keys(t).some(function(r){return!n2(e,r)})&&Pn("changeField"),t}function a2(e){ms(e)||Pn("selectorType")}function s2(e){ms(e)||yl(e)||Pn("handlerType"),yl(e)&&Object.values(e).some(function(t){return!ms(t)})&&Pn("handlersType")}function o2(e){e||Pn("initialIsRequired"),yl(e)||Pn("initialType"),r2(e)&&Pn("initialContent")}function l2(e,t){throw new Error(e[t]||e.default)}var c2={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"},Pn=ps(l2)(c2),vl={changes:i2,selector:a2,handler:s2,initial:o2};function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vl.initial(e),vl.handler(t);var r={current:e},i=ps(p2)(r,t),a=ps(d2)(r),n=ps(vl.changes)(e),s=ps(f2)(r);function o(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return vl.selector(c),c(r.current)}function l(c){t2(i,a,n,s)(c)}return[o,l]}function f2(e,t){return ms(t)?t(e.current):t}function d2(e,t){return e.current=Ok(Ok({},e.current),t),t}function p2(e,t,r){return ms(t)?t(e.current):Object.keys(r).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,e.current[i])}),r}var m2={create:u2},h2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function g2(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function y2(e){return{}.toString.call(e).includes("Object")}function v2(e){return e||Pk("configIsRequired"),y2(e)||Pk("configType"),e.urls?(b2(),{paths:{vs:e.urls.monacoBase}}):e}function b2(){console.warn(_k.deprecation)}function k2(e,t){throw new Error(e[t]||e.default)}var _k={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!
88
88
  You are using deprecated way of configuration.
89
89
 
90
90
  Instead of using
@@ -93,53 +93,53 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
93
93
  monaco.config({ paths: { vs: '...' } })
94
94
 
95
95
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
96
- `},bk=e2(i2)(vk),a2={config:r2},o2=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(a){return r.reduceRight(function(n,o){return o(n)},a)}};function kk(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],kk(e[r],t[r]))}),hk(hk({},e),t)}var s2={type:"cancelation",msg:"operation is manually canceled"};function id(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(s2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var l2=["monaco"],u2=ZL.create({config:QL,isInitialized:!1,resolve:null,reject:null,monaco:null}),wk=DL(u2,2),ho=wk[0],vl=wk[1];function c2(e){var t=a2.config(e),r=t.monaco,i=NL(t,l2);vl(function(a){return{config:kk(a.config,i),monaco:r}})}function f2(){var e=ho(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(vl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),id(ad);if(window.monaco&&window.monaco.editor)return Sk(window.monaco),e.resolve(window.monaco),id(ad);o2(d2,m2)(h2)}return id(ad)}function d2(e){return document.body.appendChild(e)}function p2(e){var t=document.createElement("script");return e&&(t.src=e),t}function m2(e){var t=ho(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=p2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function h2(){var e=ho(function(r){var i=r.config,a=r.resolve,n=r.reject;return{config:i,resolve:a,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var i=r.m||r;Sk(i),e.resolve(i)},function(r){e.reject(r)})}function Sk(e){ho().monaco||vl({monaco:e})}function g2(){return ho(function(e){var t=e.monaco;return t})}var ad=new Promise(function(e,t){return vl({resolve:e,reject:t})}),bl={config:c2,init:f2,__getMonacoInstance:g2},y2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},od=y2,v2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},b2=v2;function k2({children:e}){return U.createElement("div",{style:b2.container},e)}var w2=k2,S2=w2;function C2({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:o}){return U.createElement("section",{style:{...od.wrapper,width:e,height:t},...o},!r&&U.createElement(S2,null,i),U.createElement("div",{ref:a,style:{...od.fullWidth,...!r&&od.hide},className:n}))}var E2=C2,Ck=U.memo(E2);function A2(e){U.useEffect(e,[])}var sd=A2;function x2(e,t,r=!0){let i=U.useRef(!0);U.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var ir=x2;function go(){}function ra(e,t,r,i){return O2(e,i)||_2(e,t,r,i)}function O2(e,t){return e.editor.getModel(Ek(e,t))}function _2(e,t,r,i){return e.editor.createModel(t,r,i?Ek(e,i):void 0)}function Ek(e,t){return e.Uri.parse(t)}function P2({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:o,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:p="100%",width:d="100%",className:m,wrapperProps:k={},beforeMount:v=go,onMount:g=go}){let[b,w]=U.useState(!1),[S,h]=U.useState(!0),y=U.useRef(null),C=U.useRef(null),x=U.useRef(null),_=U.useRef(g),E=U.useRef(v),A=U.useRef(!1);sd(()=>{let j=bl.init();return j.then(q=>(C.current=q)&&h(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?T():j.cancel()}),ir(()=>{if(y.current&&C.current){let j=y.current.getOriginalEditor(),q=ra(C.current,e||"",i||r||"text",n||"");q!==j.getModel()&&j.setModel(q)}},[n],b),ir(()=>{if(y.current&&C.current){let j=y.current.getModifiedEditor(),q=ra(C.current,t||"",a||r||"text",o||"");q!==j.getModel()&&j.setModel(q)}},[o],b),ir(()=>{let j=y.current.getModifiedEditor();j.getOption(C.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),ir(()=>{var j,q;(q=(j=y.current)==null?void 0:j.getModel())==null||q.original.setValue(e||"")},[e],b),ir(()=>{let{original:j,modified:q}=y.current.getModel();C.current.editor.setModelLanguage(j,i||r||"text"),C.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],b),ir(()=>{var j;(j=C.current)==null||j.editor.setTheme(u)},[u],b),ir(()=>{var j;(j=y.current)==null||j.updateOptions(f)},[f],b);let O=U.useCallback(()=>{var H;if(!C.current)return;E.current(C.current);let j=ra(C.current,e||"",i||r||"text",n||""),q=ra(C.current,t||"",a||r||"text",o||"");(H=y.current)==null||H.setModel({original:j,modified:q})},[r,t,a,e,i,n,o]),F=U.useCallback(()=>{var j;!A.current&&x.current&&(y.current=C.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...f}),O(),(j=C.current)==null||j.editor.setTheme(u),w(!0),A.current=!0)},[f,u,O]);U.useEffect(()=>{b&&_.current(y.current,C.current)},[b]),U.useEffect(()=>{!S&&!b&&F()},[S,b,F]);function T(){var q,H,Y,Z;let j=(q=y.current)==null?void 0:q.getModel();s||((H=j==null?void 0:j.original)==null||H.dispose()),l||((Y=j==null?void 0:j.modified)==null||Y.dispose()),(Z=y.current)==null||Z.dispose()}return U.createElement(Ck,{width:d,height:p,isEditorReady:b,loading:c,_ref:x,className:m,wrapperProps:k})}var I2=P2;U.memo(I2);function T2(){let[e,t]=U.useState(bl.__getMonacoInstance());return sd(()=>{let r;return e||(r=bl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var N2=T2;function F2(e){let t=U.useRef();return U.useEffect(()=>{t.current=e},[e]),t.current}var D2=F2,kl=new Map;function M2({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:o="light",line:s,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:p=!1,width:d="100%",height:m="100%",className:k,wrapperProps:v={},beforeMount:g=go,onMount:b=go,onChange:w,onValidate:S=go}){let[h,y]=U.useState(!1),[C,x]=U.useState(!0),_=U.useRef(null),E=U.useRef(null),A=U.useRef(null),O=U.useRef(b),F=U.useRef(g),T=U.useRef(),j=U.useRef(i),q=D2(n),H=U.useRef(!1),Y=U.useRef(!1);sd(()=>{let M=bl.init();return M.then(R=>(_.current=R)&&x(!1)).catch(R=>(R==null?void 0:R.type)!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>E.current?P():M.cancel()}),ir(()=>{var R,I,D,L;let M=ra(_.current,e||i||"",t||a||"",n||r||"");M!==((R=E.current)==null?void 0:R.getModel())&&(f&&kl.set(q,(I=E.current)==null?void 0:I.saveViewState()),(D=E.current)==null||D.setModel(M),f&&((L=E.current)==null||L.restoreViewState(kl.get(n))))},[n],h),ir(()=>{var M;(M=E.current)==null||M.updateOptions(u)},[u],h),ir(()=>{!E.current||i===void 0||(E.current.getOption(_.current.editor.EditorOption.readOnly)?E.current.setValue(i):i!==E.current.getValue()&&(Y.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),E.current.pushUndoStop(),Y.current=!1))},[i],h),ir(()=>{var R,I;let M=(R=E.current)==null?void 0:R.getModel();M&&a&&((I=_.current)==null||I.editor.setModelLanguage(M,a))},[a],h),ir(()=>{var M;s!==void 0&&((M=E.current)==null||M.revealLine(s))},[s],h),ir(()=>{var M;(M=_.current)==null||M.editor.setTheme(o)},[o],h);let Z=U.useCallback(()=>{var M;if(!(!A.current||!_.current)&&!H.current){F.current(_.current);let R=n||r,I=ra(_.current,i||e||"",t||a||"",R||"");E.current=(M=_.current)==null?void 0:M.editor.create(A.current,{model:I,automaticLayout:!0,...u},c),f&&E.current.restoreViewState(kl.get(R)),_.current.editor.setTheme(o),s!==void 0&&E.current.revealLine(s),y(!0),H.current=!0}},[e,t,r,i,a,n,u,c,f,o,s]);U.useEffect(()=>{h&&O.current(E.current,_.current)},[h]),U.useEffect(()=>{!C&&!h&&Z()},[C,h,Z]),j.current=i,U.useEffect(()=>{var M,R;h&&w&&((M=T.current)==null||M.dispose(),T.current=(R=E.current)==null?void 0:R.onDidChangeModelContent(I=>{Y.current||w(E.current.getValue(),I)}))},[h,w]),U.useEffect(()=>{if(h){let M=_.current.editor.onDidChangeMarkers(R=>{var D;let I=(D=E.current.getModel())==null?void 0:D.uri;if(I&&R.find(L=>L.path===I.path)){let L=_.current.editor.getModelMarkers({resource:I});S==null||S(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[h,S]);function P(){var M,R;(M=T.current)==null||M.dispose(),p?f&&kl.set(n,E.current.saveViewState()):(R=E.current.getModel())==null||R.dispose(),E.current.dispose()}return U.createElement(Ck,{width:d,height:m,isEditorReady:h,loading:l,_ref:A,className:k,wrapperProps:v})}var j2=M2,L2=U.memo(j2),q2=L2;const $2={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},z2=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:o,disabled:s,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:p="100%",theme:d="dracula",...m}=a,k=N2();U.useEffect(()=>{k&&k.editor.defineTheme("dracula",$2)});const v=U.useCallback(b=>{if(b!==void 0)if(c==="json")try{l(JSON.parse(b),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(b,t.path)},[l,t,c]),g=U.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return N.jsxs("div",{className:"form-group",children:[r&&N.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),N.jsx("div",{className:"wrapper",children:N.jsx(q2,{id:t.$id,className:en(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:s||o,tabSize:2,minimap:{enabled:!1},...m},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:i})})]})},R2=()=>N.jsx("svg",{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,children:N.jsx("path",{d:"M3 8.5l3 3 7-7"})}),Ak={ConnectControl:({id:e,status:t,label:r,disabled:i,errorMessage:a,onClick:n})=>N.jsxs(N.Fragment,{children:[N.jsxs("button",{id:e,type:"button",className:`btn fcode-oauth-button ${t==="connected"?"btn-light is-connected":"btn-primary"}${t==="pending"?" is-pending":""}`,"aria-busy":t==="pending",disabled:i,onClick:n,children:[t==="connected"&&N.jsx(R2,{}),r]}),a&&N.jsx("p",{className:"fcode-oauth-error text-danger",role:"alert",children:a})]})},xk=["none","submit","reload"],Ok={width:600,height:700},U2=3e3,na=e=>console.warn(`"ui:widget: oauth" ${e}.`),B2=e=>e.includes("{{")||e.includes("&#x2F;")||e.includes("&amp;"),V2=e=>e==null||e===""?(na('has no "authorizationUrl"; the connect button is disabled'),null):c0(e)?B2(e)?(na('"authorizationUrl" still carries Mustache syntax or HTML entities — inject the URL with {"$ref": "#/variables/x"} rather than {{x}}; the connect button is disabled'),null):e:(na(`"authorizationUrl" must be an absolute http(s) URL, got ${JSON.stringify(e)}; the connect button is disabled`),null),ld=(e,t)=>typeof e=="string"&&e.trim()?e:t,ud=(e,t,r,i,a)=>{if(e===void 0)return r;const n=Number(e);return Number.isFinite(n)?Math.min(a,Math.max(i,Math.round(n))):(na(`"${t}" must be a number; using ${r}`),r)},H2=e=>e===void 0?"none":xk.includes(e)?e:(na(`"onComplete" must be one of ${xk.join(", ")}, got ${JSON.stringify(e)}; using "none"`),"none"),W2=e=>{const t=Array.isArray(e.type)?e.type[0]:e.type;return t==="boolean"||t==="string"||t==="object"?t:(na(`expects a boolean, string or object property, got type ${JSON.stringify(t)}; treating the value as a string`),"string")},K2=(e,t)=>{const r=e??{},i=r.popup??{};return{authorizationUrl:V2(r.authorizationUrl),connectLabel:ld(r.connectLabel,"Connect"),connectedLabel:ld(r.connectedLabel,"Connected"),pendingLabel:ld(r.pendingLabel,"Waiting for authorization…"),onComplete:H2(r.onComplete),popup:{width:ud(i.width,"popup.width",Ok.width,200,2e3),height:ud(i.height,"popup.height",Ok.height,200,2e3)},closeDelay:ud(r.closeDelay,"closeDelay",U2,0,6e4),valueKind:W2(t)}},_k="connected",G2=(e,t)=>e==="boolean"?!0:e==="object"?Object.fromEntries(Object.entries(t.params).filter(([r])=>r!=="status"&&r!=="message"&&r!=="state")):typeof t.value=="string"&&t.value?t.value:(console.warn(`"ui:widget: oauth" completed without a "value" parameter; using "${_k}" so the field is not left empty.`),_k),J2=500,Y2=1500,X2=8e3,Pk="fcode-forms:oauth",Ik=()=>typeof BroadcastChannel>"u"?null:new BroadcastChannel(Pk),Tk=e=>{try{return new URL(e).searchParams.get("state")}catch{return null}},Nk=(e,t)=>{if(t.size===0)return!0;const r=e.params,i=r&&typeof r=="object"&&!Array.isArray(r)?r.state:void 0;return typeof i=="string"&&t.has(i)},Z2=["__proto__","constructor","prototype"],Q2=e=>{const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,i]of Object.entries(e))typeof i=="string"&&!Z2.includes(r)&&(t[r]=i);return t},wl=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.source==="fcode-forms"&&t.type==="oauth-completed"&&(t.status==="success"||t.status==="error")},Fk=e=>({status:e.status,...typeof e.value=="string"&&{value:e.value},...typeof e.message=="string"&&{message:e.message},params:Q2(e.params)}),eq=(e,t)=>{const r=Math.max(0,window.screenX+(window.outerWidth-e)/2),i=Math.max(0,window.screenY+(window.outerHeight-t)/2);return`popup=yes,width=${e},height=${t},left=${Math.round(r)},top=${Math.round(i)}`},tq=({url:e,name:t,width:r,height:i,closeDelay:a,pollInterval:n=J2,onResult:o})=>{const s=window.open(e,t,eq(r,i));if(!s)return o({status:"blocked"}),null;const l=Ik(),u=Tk(e),c=new Set(u?[u]:[]),f=Date.now();let p=!1,d,m;const k=()=>{window.removeEventListener("message",w),l==null||l.removeEventListener("message",S),l==null||l.close(),d!==void 0&&(clearInterval(d),d=void 0),m!==void 0&&(clearTimeout(m),m=void 0)},v=h=>{p||(p=!0,k(),o(h))},g=()=>{try{s.close()}catch{}},b=h=>{setTimeout(g,a),v(Fk(h))},w=h=>{h.source!==s||!wl(h.data)||b(h.data)},S=h=>{wl(h.data)&&Nk(h.data,c)&&b(h.data)};return window.addEventListener("message",w),l==null||l.addEventListener("message",S),d=setInterval(()=>{if(s.closed&&m===void 0){const h=l!==null&&Date.now()-f<X2;d!==void 0&&(clearInterval(d),d=void 0),m=setTimeout(()=>v({status:"cancelled",...h&&{possiblySevered:!0}}),Y2)}},n),{focus:()=>{try{s.focus()}catch{}},dispose:()=>{p=!0,k()}}},rq="/sdk/oauth-relay.html";let Sl=0,In=null,Tn=null,yo=null;const nq=()=>{},iq=()=>typeof window<"u"&&typeof document<"u"&&typeof BroadcastChannel<"u",aq=e=>{if(!iq()||!e||e===window.location.origin)return nq;if(!In){Tn=new BroadcastChannel(Pk),yo=i=>{i.origin===e&&(!In||i.source!==In.contentWindow||wl(i.data)&&(Tn==null||Tn.postMessage(i.data)))},window.addEventListener("message",yo);const r=document.createElement("iframe");r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.title="Factorial Code OAuth relay",r.style.display="none",r.src=`${e}${rq}?parentOrigin=${encodeURIComponent(window.location.origin)}`,document.body.appendChild(r),In=r}Sl+=1;let t=!1;return()=>{t||(t=!0,Sl-=1,Sl<=0&&(yo&&(window.removeEventListener("message",yo),yo=null),In==null||In.remove(),In=null,Tn==null||Tn.close(),Tn=null,Sl=0))}},oq=(e,t,r)=>{const[i,a]=U.useState(!1),n=U.useRef(null),o=U.useRef(r);o.current=r,U.useEffect(()=>()=>{var l;return(l=n.current)==null?void 0:l.dispose()},[]);const s=U.useCallback(l=>{if(l==null||l.preventDefault(),!!e.authorizationUrl){if(n.current){n.current.focus();return}a(!0),n.current=tq({url:e.authorizationUrl,name:`fcode-oauth-${t}`,width:e.popup.width,height:e.popup.height,closeDelay:e.closeDelay,onResult:u=>{n.current=null,a(!1),o.current(u)}})}},[e,t]);return{pending:i,start:s}},sq="The authorization window was blocked. Allow pop-ups for this site and try again.",lq="The authorization could not be completed.",uq=300*1e3,cq=1e3,fq=250,dq=e=>e!=null&&e!==""&&e!==!1,Dk=({id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:o=!1,readonly:s=!1})=>{var j,q;const l=U.useMemo(()=>K2(r,t),[r,t]),u=i.formContext??{},{ConnectControl:c}=((j=u.fcode)==null?void 0:j.oauth)??Ak,f=(q=u.fcode)==null?void 0:q.reloadFormSpecs,p=U.useRef(null),[d,m]=U.useState(),[k,v]=U.useState(null),[g,b]=U.useState(!1),w=dq(a);U.useEffect(()=>{if(!g)return;const H=setTimeout(()=>b(!1),uq);return()=>clearTimeout(H)},[g]),U.useEffect(()=>{if(!g)return;let H;const Y=setInterval(()=>{if(!document.hasFocus()){H=void 0;return}H??(H=Date.now()),Date.now()-H>=cq&&b(!1)},fq);return()=>clearInterval(Y)},[g]);const S=U.useCallback(H=>{f?f(H):console.warn('"ui:widget: oauth" asks for "onComplete: reload", but this form is not rendered by FcodeForm; nothing to reload.')},[f]),h=U.useCallback(H=>{switch(H.status){case"success":m(void 0),b(!1),n(G2(l.valueKind,{...H})),v(l.onComplete);break;case"error":m(H.message||lq),b(!1),f==null||f();break;case"blocked":m(sq),b(!1);break;case"cancelled":H.possiblySevered&&b(!0),l.onComplete==="reload"&&S(H.possiblySevered?{silent:!0}:void 0);break}},[l,n,S,f]),{pending:y,start:C}=oq(l,e,h),x=U.useRef(!1),_=U.useRef(new Set),E=U.useRef({pending:y,connected:w,onResult:h});E.current={pending:y,connected:w,onResult:h};const A=U.useMemo(()=>{if(!l.authorizationUrl)return null;try{return new URL(l.authorizationUrl).origin}catch{return null}},[l.authorizationUrl]);U.useEffect(()=>{if(A)return aq(A)},[A]),U.useEffect(()=>{const H=Ik();if(!H)return;const Y=Z=>{const P=E.current;!x.current||P.pending||P.connected||!wl(Z.data)||!Nk(Z.data,_.current)||P.onResult(Fk(Z.data))};return H.addEventListener("message",Y),()=>{H.removeEventListener("message",Y),H.close()}},[]);const O=U.useCallback(H=>{if(x.current=!0,l.authorizationUrl){const Y=Tk(l.authorizationUrl);Y&&_.current.add(Y)}C(H)},[C,l.authorizationUrl]);U.useEffect(()=>{var H,Y;!k||!w||(k==="submit"?(Y=(H=p.current)==null?void 0:H.closest("form"))==null||Y.requestSubmit():k==="reload"&&S(),v(null))},[k,w,S]);const F=w?"connected":y||g?"pending":"idle",T=F==="connected"?l.connectedLabel:F==="pending"?l.pendingLabel:l.connectLabel;return N.jsx("div",{className:"fcode-oauth",id:e,"data-status":F,ref:p,children:N.jsx(c,{id:`${e}__button`,status:F,label:T,disabled:o||s||w||!l.authorizationUrl,errorMessage:w?void 0:d,onClick:O})})},pq=Object.freeze(Object.defineProperty({__proto__:null,button:OL,json:xL,oauth:e=>{const{fieldPathId:t,schema:r,uiSchema:i,registry:a,formData:n,onChange:o,disabled:s,readonly:l,required:u}=e,c=pe(i),f=he("TitleFieldTemplate",a,c),p=he("DescriptionFieldTemplate",a,c),d=c.title??r.title,m=c.description??r.description;return N.jsxs("div",{className:"fcode-oauth-field",children:[d&&N.jsx(f,{id:`${t.$id}__title`,title:d,required:u,schema:r,uiSchema:i,registry:a}),m&&N.jsx(p,{id:`${t.$id}__description`,description:m,schema:r,uiSchema:i,registry:a}),N.jsx(Dk,{id:t.$id,schema:r,uiOptions:c,registry:a,value:n,onChange:k=>o(k,t.path),disabled:s,readonly:l})]})},sourceCode:z2},Symbol.toStringTag,{value:"Module"}));function mq(e,t){return e==null?!0:zg(e,t)}function cd(){return iv("rjsf-array-item-")}function Mk(e){return Array.isArray(e)?e.map(t=>({key:cd(),item:t})):[]}function jk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function hq(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Lk(e,t,r,i){let{addable:a}=pe(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function qk(e,t,r,i){if(typeof e.items=="function")try{return e.items(t,r,i)}catch(a){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,a);return}else return e.items}function gq(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:tf(t)&&jO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function yq(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:f,registry:p,rawErrors:d,name:m,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=p,S=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=li(S,h),{widget:C="select",title:x,..._}=pe(i,w),E=Vr(t,C,v),A=x??t.title??m,O=g.getDisplayLabel(t,i,w),F=Zi(Or("",b,r,!0));return N.jsx(E,{id:F[tt],name:m,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:p,value:a,disabled:n,readonly:o,required:l,label:A,hideLabel:!O,placeholder:u,autofocus:s,rawErrors:d,htmlName:F.name})}function vq(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:o=!1,required:s=!1,hideError:l,placeholder:u,onBlur:c,onFocus:f,formData:p=[],registry:d,rawErrors:m,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:S}=d,{widget:h,title:y,...C}=pe(i,S),x=Vr(t,h,g),_=y??t.title??k,E=b.getDisplayLabel(t,i,S),A=Zi(Or("",w,r,!0));return N.jsx(x,{id:A[tt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:C,schema:t,uiSchema:i,registry:d,value:p,disabled:a,readonly:n,hideError:l,required:s,label:_,hideLabel:!E,placeholder:u,autofocus:o,rawErrors:m,htmlName:A.name})}function bq(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:o=!1,autofocus:s=!1,required:l=!1,onBlur:u,onFocus:c,registry:f,formData:p=[],rawErrors:d,onSelectChange:m}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:S,...h}=pe(r,b),y=Vr(t,w,k),C=S??t.title??a,x=v.getDisplayLabel(t,r,b),_=Zi(Or("",g,i,!0));return N.jsx(y,{options:h,id:_[tt],name:a,multiple:!0,onChange:m,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:p,disabled:n,readonly:o,required:l,registry:f,autofocus:s,rawErrors:d,label:C,hideLabel:!x,htmlName:_.name})}function kq(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:o,registry:s,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:p,canMoveDown:d,rawItemSchema:m,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:S,onFocus:h,onChange:y,rawErrors:C,totalItems:x,title:_,handleAddItem:E,handleCopyItem:A,handleRemoveItem:O,handleReorderItems:F}=e,{schemaUtils:T,fields:{ArraySchemaField:j,SchemaField:q},globalUiOptions:H,globalFormOptions:Y}=s,Z=U.useMemo(()=>T.retrieveSchema(m,k),[T,m,k]),P=U.useMemo(()=>Or(r,Y,g),[r,Y,g]),M=j||q,R=he("ArrayFieldItemTemplate",s,l),I=T.getDisplayLabel(Z,v,H),{description:D}=pe(v),L=!!D||!!Z.description,{orderable:B=!0,removable:V=!0,copyable:W=!1}=l,K={moveUp:B&&p,moveDown:B&&d,copy:W&&c,remove:V&&f,toolbar:!1};K.toolbar=Object.keys(K).some(re=>K[re]);const X=U.useCallback(re=>{E(re,r+1)},[E,r]),z=U.useCallback(re=>{A(re,r)},[A,r]),$=U.useCallback(re=>{O(re,r)},[O,r]),J=U.useCallback(re=>{F(re,r,r-1)},[F,r]),G=U.useCallback(re=>{F(re,r,r+1)},[F,r]),ie={children:N.jsx(M,{name:i,title:_,index:r,schema:Z,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:hq(Z),onChange:y,onBlur:S,onFocus:h,registry:s,disabled:a,readonly:o,hideError:n,autofocus:w,rawErrors:C}),buttonsProps:{fieldPathId:P,disabled:a,readonly:o,canAdd:c,hasCopy:K.copy,hasMoveUp:K.moveUp,hasMoveDown:K.moveDown,hasRemove:K.remove,index:r,totalItems:x,onAddItem:X,onCopyItem:z,onRemoveItem:$,onMoveUpItem:J,onMoveDownItem:G,registry:s,schema:Z,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:K.toolbar,index:r,totalItems:x,readonly:o,registry:s,schema:Z,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:L};return N.jsx(R,{...ie})}const $k=U.memo(kq);function wq(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:o,title:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:S,handleRemoveItem:h,handleReorderItems:y}=e,C=t.title||s||o,{schemaUtils:x,fields:_,formContext:E,globalUiOptions:A}=d,{OptionalDataControlsField:O}=_,F=U.useMemo(()=>pe(r,A),[r,A]),T=U.useMemo(()=>Re(t.items)?t.items:{},[t.items]),j=U.useMemo(()=>x.retrieveSchema(T),[x,T]),q=U.useMemo(()=>jk(b),[b]),H=ao(d,t,f,r),Y=Xi(n),Z=U.useMemo(()=>Lk(d,t,q,r)&&(!H||Y),[d,t,q,r,H,Y]),P=Y?b:[],M=H?" rjsf-optional-array-field":"",R=e.childFieldPathId??a,I=H?N.jsx(O,{...e,fieldPathId:R}):void 0,D={canAdd:Z,items:P.map((B,V)=>{const{key:W,item:K}=B,X=K,z=i?i[V]:void 0,$=qk(r,K,V,E),J={itemKey:W,index:V,name:o&&`${o}-${V}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:C?`${C}-${V+1}`:void 0,canAdd:Z,canMoveUp:V>0,canMoveDown:V<q.length-1,rawItemSchema:T,parentFieldPathId:R,itemErrorSchema:z,itemData:X,itemUiSchema:$,autofocus:c&&V===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:S,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx($k,{...J},W)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:C,formData:q,rawErrors:v,registry:d,optionalDataControl:I},L=he("ArrayFieldTemplate",d,F);return N.jsx(L,{...D})}function Sq(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:o,title:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:S,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:C=[]}=e;const x=t.title||s||o,{fields:_,formContext:E,globalUiOptions:A}=d,O=U.useMemo(()=>pe(r,A),[r,A]),{OptionalDataControlsField:F}=_,T=ao(d,t,f,r),j=Xi(i),q=U.useMemo(()=>Re(t.items)?t.items:[],[t.items]),H=Re(t.additionalItems),Y=e.childFieldPathId??n;C.length<q.length&&(C=C.concat(new Array(q.length-C.length)));const Z=j?g:[],P=T?" rjsf-optional-array-field":"",M=T?N.jsx(F,{...e,fieldPathId:Y}):void 0,R=Lk(d,t,C,r)&&H&&(!T||j),I={canAdd:R,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:Z.map((L,B)=>{const{key:V,item:W}=L,K=W,X=B>=q.length,z=(X&&Re(t.additionalItems)?t.additionalItems:q[B])||{};let $;X?$=r.additionalItems:Array.isArray(r.items)?$=r.items[B]:$=qk(r,W,B,E);const J=a?a[B]:void 0,G={index:B,itemKey:V,name:o&&`${o}-${B}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:x?`${x}-${B+1}`:void 0,canAdd:R,canRemove:X,canMoveUp:B>=q.length+1,canMoveDown:X&&B<C.length-1,rawItemSchema:z,itemData:K,itemUiSchema:$,parentFieldPathId:Y,itemErrorSchema:J,autofocus:c&&B===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:S,handleRemoveItem:h,handleReorderItems:y};return N.jsx($k,{...G},V)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:x,errorSchema:a,rawErrors:v,optionalDataControl:M},D=he("ArrayFieldTemplate",d,O);return N.jsx(D,{...I})}function Cq(e=[]){const t=U.useMemo(()=>hr(e),[e]),[r,i]=U.useState(()=>({formDataHash:t,keyedFormData:Mk(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const s=Array.isArray(e)?e:[],l=a||[];a=s.length===l.length?l.map((u,c)=>({key:u.key,item:s[c]})):Mk(s),n=t,i({formDataHash:n,keyedFormData:a})}const o=U.useCallback(s=>{const l=jk(s),u=hr(l);return i({formDataHash:u,keyedFormData:s}),l},[]);return{keyedFormData:a,updateKeyedFormData:o}}function Eq(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:o,onChange:s}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:p}=Cq(o),d=U.useRef(f);d.current=f;const m=U.useRef(i);m.current=i;const k=e.childFieldPathId??a,v=U.useCallback((x,_)=>{x&&x.preventDefault();let E;if(m.current){E={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);_===void 0||T<_?st(E,[T],m.current[T]):T>=_&&st(E,[T+1],m.current[T])}}const A={key:cd(),item:gq(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,A):O.push(A),s(p(O),k.path,E)},[n,t,s,p,k]),g=U.useCallback((x,_)=>{x&&x.preventDefault();let E;if(m.current){E={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);T<=_?st(E,[T],m.current[T]):T>_&&st(E,[T+1],m.current[T])}}const A={key:cd(),item:bs(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,A):O.push(A),s(p(O),k.path,E)},[s,p,k]),b=U.useCallback((x,_)=>{x&&x.preventDefault();let E;if(m.current){E={};for(const O of Object.keys(m.current)){const F=parseInt(O,10);F<_?st(E,[F],m.current[F]):F>_&&st(E,[F-1],m.current[F])}}const A=d.current.filter((O,F)=>F!==_);s(p(A),k.path,E)},[s,p,k]),w=U.useCallback((x,_,E)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(m.current){A={};for(const T of Object.keys(m.current)){const j=parseInt(T,10);j===_?st(A,[E],m.current[_]):j===E?st(A,[_],m.current[E]):st(A,[T],m.current[j])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(E,0,d.current[_]),T}const F=O();s(p(F),k.path,A)},[s,p,k]),S=U.useCallback((x,_,E,A)=>{const O=typeof _.at(-1)=="number";s(O&&x===void 0?null:x,_,E,A)},[s]),h=U.useCallback(x=>{s(x,k.path,void 0,k==null?void 0:k[tt])},[s,k]),y={...e,formData:o,fieldPathId:k,onSelectChange:h},C={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:S};if(!(qi in t)){if(!l.useFallbackUiForUnsupportedType){const _=pe(r),E=he("UnsupportedFieldTemplate",n,_);return N.jsx(E,{schema:t,fieldPathId:a,reason:c(Oe.MissingItems),registry:n})}const x={...t,[qi]:{type:void 0}};y.schema=x,C.schema=x}return u.isMultiSelect(y.schema)?N.jsx(yq,{...y}):Vy(r)?N.jsx(vq,{...y}):tf(y.schema)?N.jsx(Sq,{...C}):u.isFilesArray(y.schema,r)?N.jsx(bq,{...y}):N.jsx(wq,{...C})}function Aq(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:o,required:s,disabled:l,readonly:u,hideError:c,autofocus:f,title:p,onChange:d,onFocus:m,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:S}=o,{widget:h="checkbox",title:y,label:C=!0,enumNames:x,..._}=pe(i,S),E=Vr(t,h,b),A=w(Oe.YesLabel),O=w(Oe.NoLabel);let F;const T=y??g??p??r;if(Array.isArray(t.oneOf))F=li({oneOf:t.oneOf.map(q=>{if(Re(q))return{...q,title:q.title||(q.const===!0?A:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!x&&q.length===2&&q.every(H=>typeof H=="boolean")?F=[{value:q[0],label:q[0]?A:O},{value:q[1],label:q[1]?A:O}]:F=li({enum:q},i)}const j=U.useCallback((q,H,Y)=>d(q,a.path,H,Y),[d,a]);return N.jsx(E,{options:{..._,enumOptions:F},schema:t,uiSchema:i,id:a.$id,name:r,onChange:j,onFocus:m,onBlur:k,label:T,hideLabel:!C,value:n,required:s,disabled:l,readonly:u,hideError:c,registry:o,autofocus:f,rawErrors:v,htmlName:a.name})}function xq(e){const[t,r]=U.useState(!1),{name:i,registry:a,schema:n,uiSchema:o,fieldPathId:s}=e,{globalUiOptions:l}=a,u=pe(o,l),c=he("CyclicSchemaExpandTemplate",a,u);if(!t)return N.jsx(c,{registry:a,schema:n,uiSchema:o,name:i,fieldPathId:s,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:p}=f;return N.jsx(p,{...e,schema:{...n,[sc]:!1}})}function Oq(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function _q(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function Pq(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 Iq(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:o,required:s,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:p,fieldPathId:d,onChange:m,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=p,[w,S]=U.useState(_q(r)),h=pe(o),y=Zi(Or("__internal_type_selector",b,d)),C=v(Oe.Type),x=U.useMemo(()=>Oq(C),[C]),_=O=>{O!=null&&(S(O),m(Pq(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(Oe.UnknownFieldType,[String(a.type)])}=e,F=he("UnsupportedFieldTemplate",p,h);return N.jsx(F,{schema:a,fieldPathId:d,reason:O,registry:p})}const E=he("FallbackFieldTemplate",p,h),{SchemaField:A}=g;return N.jsx(E,{schema:a,registry:p,typeSelector:N.jsx(A,{fieldPathId:y,name:`${n}__fallback_type`,schema:x,formData:w,onChange:_,onBlur:c,onFocus:f,registry:p,hideLabel:!i,disabled:l,readonly:u,required:s},r?hr(r):"__empty__"),schemaField:N.jsx(A,{...e,schema:{type:w,title:v(Oe.Value),...w==="object"&&{additionalProperties:!0}}})})}function Tq(e,t){return $i(t,function(r){return e[r]})}function Nq(e){return e==null?[]:Tq(e,Er(e))}var Fq=Math.max;function Dq(e,t,r,i){e=ni(e)?e:Nq(e),r=r?Qg(r):0;var a=e.length;return r<0&&(r=Fq(a+r,0)),bn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&cy(e,t,r)>-1}var Mq=Math.min;function jq(e,t,r){for(var i=Wc,a=e[0].length,n=e.length,o=n,s=Array(n),l=1/0,u=[];o--;){var c=e[o];l=Mq(c.length,l),s[o]=a>=120&&c.length>=120?new ai(o&&c):void 0}c=e[0];var f=-1,p=s[0];e:for(;++f<a&&u.length<l;){var d=c[f],m=d;if(d=d!==0?d:0,!(p?Xa(p,m):i(u,m))){for(o=n;--o;){var k=s[o];if(!(k?Xa(k,m):i(e[o],m)))continue e}p&&p.push(m),u.push(d)}}return u}function Lq(e){return Ya(e)?e:[]}var zk=us(function(e){var t=$i(e,Lq);return t.length&&t[0]===e[0]?jq(t):[]});function qq(e,t){return fs(e,t)}function Rk(e){return e===void 0}var Hr;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Hr||(Hr={}));var vo;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(vo||(vo={}));const $q=/^\$lookup=(.+)/,fd="layoutGrid";function Uk(e,t){return e??t}function zq(e){return/^\d+?$/.test(e)}const Nn=lf();function Rq(e,t,r,i,a){const n=ae(r,[cc],{}),o=ae(r,e),s={...ae(o,[gn],{}),...t,...n},l={...o};kt(s)||st(l,[gn],s),kt(n)||st(l,[cc],n);let{readonly:u}=pe(l);return(a===!0||Rk(u)&&i===!0)&&(u=!0,$e(s,oc)?st(l,[gn,oc],!0):st(l,`ui:${oc}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function Uq(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=jc([t]).sort(),a=jc([r]).sort();switch(e){case vo.ALL:return qq(i,a);case vo.SOME:return zk(i,a).length>0;case vo.NONE:return zk(i,a).length===0;default:return!1}}function Cl(e,t,r){let i={},a=e[t];if(yn(a)){const{children:n,className:o,...s}=a;if(a=n,o){const u=o.split(" ").map(c=>mf(r,c,c)).join(" ");i={...s,className:u}}else i=s}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function Bk(e,t,r){let i,a=t;if(zq(r)&&e&&(e==null?void 0:e.type)==="array"&&$e(e,qi)){const n=Number(r),o=e[qi];Array.isArray(o)?n>o.length?i=$g(o):i=o[n]:i=o,a={[tt]:t[tt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function Bq(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:o}=e;let s=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(s,i),p=i,d=f.readOnly;u.forEach(v=>{if(l=Or(v,o,l),$e(f,ze))s=ae(f,[ze,v],{});else if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=n.findSelectedOptionInXxxOf(f,v,g,p);s=ae(b,[ze,v],{})}else{const g=Bk(f,l,v);s=g.rawSchema??{},l=g.fieldPathId}p=ae(p,v,{}),f=n.retrieveSchema(s,p),d=Uk(f.readOnly,d)});let m,k=!1;if(kt(f)&&(f=void 0),f&&c){if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je;f=n.findSelectedOptionInXxxOf(f,c,g,p)}l=Or(c,o,l),k=f!==void 0&&Array.isArray(f.required)&&Dq(f.required,c);const v=Bk(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=Uk(f==null?void 0:f.readOnly,d),f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=dr(f);m={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:m,fieldPathId:l}}function Vq(e,t){let r=e;return bn(r)&&(r=mf(t,r)),ja(r)?r:null}function Hq(e,t){let r,i=null,a={},n;if(bn(t)||Rk(t))r=t??"";else{const{name:o="",render:s,...l}=t;r=o,a=l,kt(a)||bM(a,(u,c)=>{if(bn(u)){const f=$q.exec(u);if(Array.isArray(f)&&f.length>1){const p=f[1];a[c]=mf(e,p,p)}}}),i=Vq(s,e),!o&&i&&(n=N.jsx(i,{...l,"data-testid":Nn.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function El(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:o}=i,s=o.retrieveSchema(a,n);return t.map(l=>U.createElement(dd,{...r,key:`layoutGrid-${hr(l)}`,schema:s,layoutGridSchema:l}))}function Wq(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:o}=Cl(t,Hr.CONDITION,a),{operator:s,field:l="",value:u}=o,c=ae(i,l,null);return Uq(s,c,u)?N.jsx(El,{...r,childrenLayoutGridSchemaId:n}):null}function Kq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=Cl(t,Hr.COLUMN,i),s=pe(a),l=he("GridTemplate",i,s);return N.jsx(l,{column:!0,"data-testid":Nn.col,...o,children:N.jsx(El,{...r,childrenLayoutGridSchemaId:n})})}function Gq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=Cl(t,Hr.COLUMNS,i),s=pe(a),l=he("GridTemplate",i,s);return n.map(u=>N.jsx(l,{column:!0,"data-testid":Nn.col,...o,children:N.jsx(El,{...r,childrenLayoutGridSchemaId:[u]})},`column-${hr(u)}`))}function Jq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:o}=Cl(t,Hr.ROW,i),s=pe(a),l=he("GridTemplate",i,s);return N.jsx(l,{...o,"data-testid":Nn.row,children:N.jsx(El,{...r,childrenLayoutGridSchemaId:n})})}function Yq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:o,onFocus:s,formData:l,readonly:u,registry:c,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:m}=c,{SchemaField:k,LayoutMultiSchemaField:v}=m,g=Hq(c,t),{name:b,UIComponent:w,uiProps:S}=g,{schema:h,isRequired:y,isReadonly:C,optionsInfo:x,fieldPathId:_}=Bq(c,b,r,l,n),E=Zi(_);if(g.rendered)return g.rendered;if(h){const A=x!=null&&x.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:F}=Rq(b,S,i,C,u);return N.jsx(A,{"data-testid":x!=null&&x.hasDiscriminator?Nn.layoutMultiSchemaField:Nn.field,...p,name:b,required:y,readonly:F,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:E,formData:ae(l,b),onChange:d,onBlur:o,onFocus:s,options:x==null?void 0:x.options,registry:c})}return w?N.jsx(w,{"data-testid":Nn.uiComponent,...p,name:b,required:y,formData:l,readOnly:!!C||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:o,onFocus:s,registry:c,...S}):null}function dd(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=pe(t);if(!r&&fd in i&&Re(i[fd])&&(r=i[fd]),Re(r)){if(Hr.ROW in r)return N.jsx(Jq,{...e,layoutGridSchema:r});if(Hr.COLUMN in r)return N.jsx(Kq,{...e,layoutGridSchema:r});if(Hr.COLUMNS in r)return N.jsx(Gq,{...e,layoutGridSchema:r});if(Hr.CONDITION in r)return N.jsx(Wq,{...e,layoutGridSchema:r})}return N.jsx(Yq,{...e,gridSchema:r})}dd.TEST_IDS=Nn;function Xq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:o,name:s}=e,l=pe(a,o.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||s;if(!f)return null;const p=he("TitleFieldTemplate",o,l);return N.jsx(p,{id:ws(t),title:f,required:n,schema:i,uiSchema:a,registry:o})}function pd(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const o=ae(n,[ze,t]);return ae(o,Zn,ae(o,Vt,i))===r})}function Vk(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let o=e;$e(e,xe)?o={...e,[xe]:n}:$e(e,je)&&(o={...e,[je]:n});const s=li(o,i);if(!s)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return s}function Zq(e){var $;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:o,onChange:s,options:l,onFocus:u,registry:c,uiSchema:f,schema:p,autofocus:d,readonly:m,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:S}=c,[h,y]=U.useState(Vk(p,l,w,f,a)),C=ae(n,tt),x=dr(p),_=he("FieldErrorTemplate",c,l),E=he("FieldTemplate",c,l),A=hr(p),O=hr(l),F=f?hr(f):"",T=a?hr(a):"";U.useEffect(()=>{y(Vk(p,l,w,f,a))},[A,O,w,F,T]);const{widget:j=x?"radio":"select",title:q="",placeholder:H="",optionsSchemaSelector:Y=x,hideError:Z,...P}=pe(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=ae(a,Y);let R=ae(($=h[0])==null?void 0:$.schema,[ze,Y],{});const I=pd(h,Y,M);R=R!=null&&R.type?R:{...R,type:(I==null?void 0:I.type)||r};const D=Vr(R,j,b),L=Z===void 0?g:!!Z,B=ae(v,[Dt],[]),V=Ga(v,[Dt]),W=w.getDisplayLabel(p,f,S),K=J=>{if(i||m)return;const G=pd(h,Y,J),ie=pd(h,Y,M);let re=w.sanitizeDataForNewSchema(G,ie,a);re&&G&&(re=w.getDefaultFormState(G,re,"excludeObjectChildren")),re&&st(re,Y,J),s(re,n.path,void 0,C)},X={enumOptions:h,...P},z=!L&&B.length>0?N.jsx(_,{fieldPathId:n,schema:p,errors:B,registry:c}):void 0;return N.jsx(E,{fieldPathId:n,id:C,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,required:k,readonly:!!m,registry:c,displayLabel:W,errors:z,onChange:s,onKeyRename:ds,onKeyRenameBlur:ds,onRemoveProperty:ds,children:N.jsx(D,{id:C,name:t,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,autofocus:d,readonly:m,required:k,registry:c,multiple:!1,rawErrors:B,hideError:L,hideLabel:!W,errorSchema:V,placeholder:H,onChange:K,onBlur:o,onFocus:u,value:M,options:X,htmlName:n.name})})}function Hk(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:o,onChange:s,onFocus:l,options:u,readonly:c,registry:f,required:p=!1,schema:d,uiSchema:m}=e,{schemaUtils:k}=f,v=hr(a??null),g=U.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=U.useState(()=>{const re=dr(d);return k.getClosestMatchingOption(a,g,0,re)}),S=U.useRef(!1),h=U.useRef(a),y=U.useRef(n.$id);U.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!Ue(a,re)&&n.$id===ue){if(S.current){S.current=!1;return}const ye=dr(d),Se=k.getClosestMatchingOption(a,g,b,ye);Se!==b&&w(Se)}});const C=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,x=U.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ye=ue>=0?g[ue]:void 0,Se=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,Se,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),S.current=!0,s(ke,n.path,void 0,C)},[b,g,r,c,k,a,n,s,C]),{widgets:_,fields:E,translateString:A,globalUiOptions:O}=f,{SchemaField:F}=E,T=he("MultiSchemaFieldTemplate",f,O),j=ao(f,d,p,m),q=Xi(a),{widget:H="select",placeholder:Y,autofocus:Z,autocomplete:P,title:M=d.title,...R}=pe(m,O),I=Vr({type:"number"},H,_),D=ae(i,Dt,[]),L=Ga(i,[Dt]),B=k.getDisplayLabel(d,m,O),V=b>=0&&g[b]||null;let W;if(V){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in V)&&(ye.type=ue),W=Object.keys(ye).length>0?on(ye,V):V}let K=[];xe in d&&m&&xe in m?Array.isArray(m[xe])?K=m[xe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):je in d&&m&&je in m&&(Array.isArray(m[je])?K=m[je]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let X=m;b>=0&&K.length>b&&(X=K[b]);const z=M?Oe.TitleOptionPrefix:Oe.OptionPrefix,$=M?[M]:[],J=g.map((re,ue)=>{const{title:ye=re.title}=pe(K[ue]);return{label:ye||A(z,$.concat(String(ue+1))),value:ue}}),G=!j||q?N.jsx(I,{id:C,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:x,onBlur:o,onFocus:l,disabled:r||kt(J),multiple:!1,rawErrors:D,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:J,...R},registry:f,placeholder:Y,autocomplete:P,autofocus:Z,label:M??t,hideLabel:!B,readonly:c}):void 0,ie=W&&W.type!=="null"&&N.jsx(F,{...e,schema:W,uiSchema:X})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:m,selector:G,optionSchemaField:ie})}function Qq(e){const{formData:t,onChange:r,fieldPathId:i}=e;return U.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const e$=/\.([0-9]*0)*$/,t$=/[0.]0*$/;function r$(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,o]=U.useState(a),{StringField:s}=t.fields,l=Oh(),u=l==="."?"\\.":l;let c=i;const f=U.useCallback((d,m,k,v)=>{o(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&e$.exec(b)?_h(b.replace(t$,"")):_h(b);r(w,m,k,v)},[r,l]);if(typeof n=="string"&&typeof c=="number"){const d=new RegExp(`^(${String(c).replace(".",u)})?${u}?0*$`);n.match(d)&&(c=n)}let p=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:m}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?li(d,m):void 0)?"select":"text",{widget:b=g}=pe(m);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(c).replace(".",l))}return N.jsx(s,{...e,formData:p,onChange:f})}var Al;function n$(e){if(!Al){if(typeof document>"u")return;Al=document.createElement("textarea")}var t=`&${e};`;Al.innerHTML=t;var r=Al.value;return r===t?void 0:r}var oe=32,le=9,Fn=13,fe=10,Je=96,Pt=126,vt=91,cn=94,Ne=62,gr=35,md=37,_e=45,yr=61,Nt=92,wt=42,gt=95,it=60,Wk=64,Ir=93,Wt=33,xl=38,$t=58,hd=70,pi=102,Ol=104,mi=119,ia=116,gd=112,Kk=115,i$=160,a$=12,o$=44,_l=59,aa=63,vr=46,bt=47,hi=39,gi=34,Dn=43,Ft=124,yi=123,yd=125,Tr=40,Nr=41,s$=78,l$=110,u$=79,c$=111,Gk=120,Jk=88,vd=30,Fe=48,De=57,we=65,Ae=90,Ze=97,lt=122,Pl=128,Fr=32,f$={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},ne=f$;function d$(e){if(!Zk(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]!==`
96
+ `},Pk=g2(k2)(_k),w2={config:v2},S2=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(a){return r.reduceRight(function(n,s){return s(n)},a)}};function Ik(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ik(e[r],t[r]))}),Ak(Ak({},e),t)}var C2={type:"cancelation",msg:"operation is manually canceled"};function ld(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(C2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var E2=["monaco"],A2=m2.create({config:h2,isInitialized:!1,resolve:null,reject:null,monaco:null}),Tk=YL(A2,2),hs=Tk[0],bl=Tk[1];function x2(e){var t=w2.config(e),r=t.monaco,i=GL(t,E2);bl(function(a){return{config:Ik(a.config,i),monaco:r}})}function O2(){var e=hs(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(bl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ld(cd);if(window.monaco&&window.monaco.editor)return Nk(window.monaco),e.resolve(window.monaco),ld(cd);S2(_2,I2)(T2)}return ld(cd)}function _2(e){return document.body.appendChild(e)}function P2(e){var t=document.createElement("script");return e&&(t.src=e),t}function I2(e){var t=hs(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=P2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function T2(){var e=hs(function(r){var i=r.config,a=r.resolve,n=r.reject;return{config:i,resolve:a,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var i=r.m||r;Nk(i),e.resolve(i)},function(r){e.reject(r)})}function Nk(e){hs().monaco||bl({monaco:e})}function N2(){return hs(function(e){var t=e.monaco;return t})}var cd=new Promise(function(e,t){return bl({resolve:e,reject:t})}),kl={config:x2,init:O2,__getMonacoInstance:N2},F2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ud=F2,D2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},M2=D2;function j2({children:e}){return R.createElement("div",{style:M2.container},e)}var L2=j2,q2=L2;function $2({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return R.createElement("section",{style:{...ud.wrapper,width:e,height:t},...s},!r&&R.createElement(q2,null,i),R.createElement("div",{ref:a,style:{...ud.fullWidth,...!r&&ud.hide},className:n}))}var z2=$2,Fk=R.memo(z2);function R2(e){R.useEffect(e,[])}var fd=R2;function U2(e,t,r=!0){let i=R.useRef(!0);R.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var ir=U2;function gs(){}function ra(e,t,r,i){return B2(e,i)||V2(e,t,r,i)}function B2(e,t){return e.editor.getModel(Dk(e,t))}function V2(e,t,r,i){return e.editor.createModel(t,r,i?Dk(e,i):void 0)}function Dk(e,t){return e.Uri.parse(t)}function H2({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:u="Loading...",options:f={},height:p="100%",width:d="100%",className:h,wrapperProps:v={},beforeMount:k=gs,onMount:g=gs}){let[b,w]=R.useState(!1),[E,m]=R.useState(!0),y=R.useRef(null),S=R.useRef(null),x=R.useRef(null),_=R.useRef(g),C=R.useRef(k),A=R.useRef(!1);fd(()=>{let M=kl.init();return M.then(q=>(S.current=q)&&m(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?N():M.cancel()}),ir(()=>{if(y.current&&S.current){let M=y.current.getOriginalEditor(),q=ra(S.current,e||"",i||r||"text",n||"");q!==M.getModel()&&M.setModel(q)}},[n],b),ir(()=>{if(y.current&&S.current){let M=y.current.getModifiedEditor(),q=ra(S.current,t||"",a||r||"text",s||"");q!==M.getModel()&&M.setModel(q)}},[s],b),ir(()=>{let M=y.current.getModifiedEditor();M.getOption(S.current.editor.EditorOption.readOnly)?M.setValue(t||""):t!==M.getValue()&&(M.executeEdits("",[{range:M.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),M.pushUndoStop())},[t],b),ir(()=>{var M,q;(q=(M=y.current)==null?void 0:M.getModel())==null||q.original.setValue(e||"")},[e],b),ir(()=>{let{original:M,modified:q}=y.current.getModel();S.current.editor.setModelLanguage(M,i||r||"text"),S.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],b),ir(()=>{var M;(M=S.current)==null||M.editor.setTheme(c)},[c],b),ir(()=>{var M;(M=y.current)==null||M.updateOptions(f)},[f],b);let O=R.useCallback(()=>{var H;if(!S.current)return;C.current(S.current);let M=ra(S.current,e||"",i||r||"text",n||""),q=ra(S.current,t||"",a||r||"text",s||"");(H=y.current)==null||H.setModel({original:M,modified:q})},[r,t,a,e,i,n,s]),F=R.useCallback(()=>{var M;!A.current&&x.current&&(y.current=S.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...f}),O(),(M=S.current)==null||M.editor.setTheme(c),w(!0),A.current=!0)},[f,c,O]);R.useEffect(()=>{b&&_.current(y.current,S.current)},[b]),R.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function N(){var q,H,J,X;let M=(q=y.current)==null?void 0:q.getModel();o||((H=M==null?void 0:M.original)==null||H.dispose()),l||((J=M==null?void 0:M.modified)==null||J.dispose()),(X=y.current)==null||X.dispose()}return R.createElement(Fk,{width:d,height:p,isEditorReady:b,loading:u,_ref:x,className:h,wrapperProps:v})}var W2=H2;R.memo(W2);function K2(){let[e,t]=R.useState(kl.__getMonacoInstance());return fd(()=>{let r;return e||(r=kl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var G2=K2;function J2(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var Y2=J2,wl=new Map;function X2({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,loading:l="Loading...",options:c={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:p=!1,width:d="100%",height:h="100%",className:v,wrapperProps:k={},beforeMount:g=gs,onMount:b=gs,onChange:w,onValidate:E=gs}){let[m,y]=R.useState(!1),[S,x]=R.useState(!0),_=R.useRef(null),C=R.useRef(null),A=R.useRef(null),O=R.useRef(b),F=R.useRef(g),N=R.useRef(),M=R.useRef(i),q=Y2(n),H=R.useRef(!1),J=R.useRef(!1);fd(()=>{let j=kl.init();return j.then(U=>(_.current=U)&&x(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>C.current?P():j.cancel()}),ir(()=>{var U,T,D,L;let j=ra(_.current,e||i||"",t||a||"",n||r||"");j!==((U=C.current)==null?void 0:U.getModel())&&(f&&wl.set(q,(T=C.current)==null?void 0:T.saveViewState()),(D=C.current)==null||D.setModel(j),f&&((L=C.current)==null||L.restoreViewState(wl.get(n))))},[n],m),ir(()=>{var j;(j=C.current)==null||j.updateOptions(c)},[c],m),ir(()=>{!C.current||i===void 0||(C.current.getOption(_.current.editor.EditorOption.readOnly)?C.current.setValue(i):i!==C.current.getValue()&&(J.current=!0,C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),C.current.pushUndoStop(),J.current=!1))},[i],m),ir(()=>{var U,T;let j=(U=C.current)==null?void 0:U.getModel();j&&a&&((T=_.current)==null||T.editor.setModelLanguage(j,a))},[a],m),ir(()=>{var j;o!==void 0&&((j=C.current)==null||j.revealLine(o))},[o],m),ir(()=>{var j;(j=_.current)==null||j.editor.setTheme(s)},[s],m);let X=R.useCallback(()=>{var j;if(!(!A.current||!_.current)&&!H.current){F.current(_.current);let U=n||r,T=ra(_.current,i||e||"",t||a||"",U||"");C.current=(j=_.current)==null?void 0:j.editor.create(A.current,{model:T,automaticLayout:!0,...c},u),f&&C.current.restoreViewState(wl.get(U)),_.current.editor.setTheme(s),o!==void 0&&C.current.revealLine(o),y(!0),H.current=!0}},[e,t,r,i,a,n,c,u,f,s,o]);R.useEffect(()=>{m&&O.current(C.current,_.current)},[m]),R.useEffect(()=>{!S&&!m&&X()},[S,m,X]),M.current=i,R.useEffect(()=>{var j,U;m&&w&&((j=N.current)==null||j.dispose(),N.current=(U=C.current)==null?void 0:U.onDidChangeModelContent(T=>{J.current||w(C.current.getValue(),T)}))},[m,w]),R.useEffect(()=>{if(m){let j=_.current.editor.onDidChangeMarkers(U=>{var D;let T=(D=C.current.getModel())==null?void 0:D.uri;if(T&&U.find(L=>L.path===T.path)){let L=_.current.editor.getModelMarkers({resource:T});E==null||E(L)}});return()=>{j==null||j.dispose()}}return()=>{}},[m,E]);function P(){var j,U;(j=N.current)==null||j.dispose(),p?f&&wl.set(n,C.current.saveViewState()):(U=C.current.getModel())==null||U.dispose(),C.current.dispose()}return R.createElement(Fk,{width:d,height:h,isEditorReady:m,loading:l,_ref:A,className:v,wrapperProps:k})}var Z2=X2,Q2=R.memo(Z2),eq=Q2;const tq={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},rq=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...c}=e,{language:u="html",height:f="20vh",width:p="100%",theme:d="dracula",...h}=a,v=G2();R.useEffect(()=>{v&&v.editor.defineTheme("dracula",tq)});const k=R.useCallback(b=>{if(b!==void 0)if(u==="json")try{l(JSON.parse(b),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(b,t.path)},[l,t,u]),g=R.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return I.jsxs("div",{className:"form-group",children:[r&&I.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),I.jsx("div",{className:"wrapper",children:I.jsx(eq,{id:t.$id,className:en(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:u,defaultValue:g,onChange:k,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...h},...c})}),I.jsx("small",{className:"text-muted form-text",children:I.jsx(Sr,{children:i})})]})},nq=()=>I.jsx("svg",{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,children:I.jsx("path",{d:"M3 8.5l3 3 7-7"})}),Mk={ConnectControl:({id:e,status:t,label:r,disabled:i,errorMessage:a,onClick:n})=>I.jsxs(I.Fragment,{children:[I.jsxs("button",{id:e,type:"button",className:`btn fcode-oauth-button ${t==="connected"?"btn-light is-connected":"btn-primary"}${t==="pending"?" is-pending":""}`,"aria-busy":t==="pending",disabled:i,onClick:n,children:[t==="connected"&&I.jsx(nq,{}),r]}),a&&I.jsx("p",{className:"fcode-oauth-error text-danger",role:"alert",children:a})]})},jk=["none","submit","reload"],Lk={width:600,height:700},iq=3e3,na=e=>console.warn(`"ui:widget: oauth" ${e}.`),aq=e=>e.includes("{{")||e.includes("&#x2F;")||e.includes("&amp;"),sq=e=>e==null||e===""?(na('has no "authorizationUrl"; the connect button is disabled'),null):E0(e)?aq(e)?(na('"authorizationUrl" still carries Mustache syntax or HTML entities — inject the URL with {"$ref": "#/variables/x"} rather than {{x}}; the connect button is disabled'),null):e:(na(`"authorizationUrl" must be an absolute http(s) URL, got ${JSON.stringify(e)}; the connect button is disabled`),null),dd=(e,t)=>typeof e=="string"&&e.trim()?e:t,pd=(e,t,r,i,a)=>{if(e===void 0)return r;const n=Number(e);return Number.isFinite(n)?Math.min(a,Math.max(i,Math.round(n))):(na(`"${t}" must be a number; using ${r}`),r)},oq=e=>e===void 0?"none":jk.includes(e)?e:(na(`"onComplete" must be one of ${jk.join(", ")}, got ${JSON.stringify(e)}; using "none"`),"none"),lq=e=>{const t=Array.isArray(e.type)?e.type[0]:e.type;return t==="boolean"||t==="string"||t==="object"?t:(na(`expects a boolean, string or object property, got type ${JSON.stringify(t)}; treating the value as a string`),"string")},cq=(e,t)=>{const r=e??{},i=r.popup??{};return{authorizationUrl:sq(r.authorizationUrl),connectLabel:dd(r.connectLabel,"Connect"),connectedLabel:dd(r.connectedLabel,"Connected"),pendingLabel:dd(r.pendingLabel,"Waiting for authorization…"),onComplete:oq(r.onComplete),popup:{width:pd(i.width,"popup.width",Lk.width,200,2e3),height:pd(i.height,"popup.height",Lk.height,200,2e3)},closeDelay:pd(r.closeDelay,"closeDelay",iq,0,6e4),valueKind:lq(t)}},qk="connected",uq=(e,t)=>e==="boolean"?!0:e==="object"?Object.fromEntries(Object.entries(t.params).filter(([r])=>r!=="status"&&r!=="message"&&r!=="state")):typeof t.value=="string"&&t.value?t.value:(console.warn(`"ui:widget: oauth" completed without a "value" parameter; using "${qk}" so the field is not left empty.`),qk),fq=500,dq=1500,pq=8e3,$k="fcode-forms:oauth",zk=()=>typeof BroadcastChannel>"u"?null:new BroadcastChannel($k),Rk=e=>{try{return new URL(e).searchParams.get("state")}catch{return null}},Uk=(e,t)=>{if(t.size===0)return!0;const r=e.params,i=r&&typeof r=="object"&&!Array.isArray(r)?r.state:void 0;return typeof i=="string"&&t.has(i)},mq=["__proto__","constructor","prototype"],hq=e=>{const t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(const[r,i]of Object.entries(e))typeof i=="string"&&!mq.includes(r)&&(t[r]=i);return t},Sl=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.source==="fcode-forms"&&t.type==="oauth-completed"&&(t.status==="success"||t.status==="error")},Bk=e=>({status:e.status,...typeof e.value=="string"&&{value:e.value},...typeof e.message=="string"&&{message:e.message},params:hq(e.params)}),gq=(e,t)=>{const r=Math.max(0,window.screenX+(window.outerWidth-e)/2),i=Math.max(0,window.screenY+(window.outerHeight-t)/2);return`popup=yes,width=${e},height=${t},left=${Math.round(r)},top=${Math.round(i)}`},yq=({url:e,name:t,width:r,height:i,closeDelay:a,pollInterval:n=fq,onResult:s})=>{const o=window.open(e,t,gq(r,i));if(!o)return s({status:"blocked"}),null;const l=zk(),c=Rk(e),u=new Set(c?[c]:[]),f=Date.now();let p=!1,d,h;const v=()=>{window.removeEventListener("message",w),l==null||l.removeEventListener("message",E),l==null||l.close(),d!==void 0&&(clearInterval(d),d=void 0),h!==void 0&&(clearTimeout(h),h=void 0)},k=m=>{p||(p=!0,v(),s(m))},g=()=>{try{o.close()}catch{}},b=m=>{setTimeout(g,a),k(Bk(m))},w=m=>{m.source!==o||!Sl(m.data)||b(m.data)},E=m=>{Sl(m.data)&&Uk(m.data,u)&&b(m.data)};return window.addEventListener("message",w),l==null||l.addEventListener("message",E),d=setInterval(()=>{if(o.closed&&h===void 0){const m=l!==null&&Date.now()-f<pq;d!==void 0&&(clearInterval(d),d=void 0),h=setTimeout(()=>k({status:"cancelled",...m&&{possiblySevered:!0}}),dq)}},n),{focus:()=>{try{o.focus()}catch{}},dispose:()=>{p=!0,v()}}},vq="/sdk/oauth-relay.html";let Cl=0,In=null,Tn=null,ys=null;const bq=()=>{},kq=()=>typeof window<"u"&&typeof document<"u"&&typeof BroadcastChannel<"u",wq=e=>{if(!kq()||!e||e===window.location.origin)return bq;if(!In){Tn=new BroadcastChannel($k),ys=i=>{i.origin===e&&(!In||i.source!==In.contentWindow||Sl(i.data)&&(Tn==null||Tn.postMessage(i.data)))},window.addEventListener("message",ys);const r=document.createElement("iframe");r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex","-1"),r.title="Factorial Code OAuth relay",r.style.display="none",r.src=`${e}${vq}?parentOrigin=${encodeURIComponent(window.location.origin)}`,document.body.appendChild(r),In=r}Cl+=1;let t=!1;return()=>{t||(t=!0,Cl-=1,Cl<=0&&(ys&&(window.removeEventListener("message",ys),ys=null),In==null||In.remove(),In=null,Tn==null||Tn.close(),Tn=null,Cl=0))}},Sq=(e,t,r)=>{const[i,a]=R.useState(!1),n=R.useRef(null),s=R.useRef(r);s.current=r,R.useEffect(()=>()=>{var l;return(l=n.current)==null?void 0:l.dispose()},[]);const o=R.useCallback(l=>{if(l==null||l.preventDefault(),!!e.authorizationUrl){if(n.current){n.current.focus();return}a(!0),n.current=yq({url:e.authorizationUrl,name:`fcode-oauth-${t}`,width:e.popup.width,height:e.popup.height,closeDelay:e.closeDelay,onResult:c=>{n.current=null,a(!1),s.current(c)}})}},[e,t]);return{pending:i,start:o}},Cq="The authorization window was blocked. Allow pop-ups for this site and try again.",Eq="The authorization could not be completed.",Aq=300*1e3,xq=1e3,Oq=250,_q=e=>e!=null&&e!==""&&e!==!1,Vk=({id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s=!1,readonly:o=!1})=>{var M,q;const l=R.useMemo(()=>cq(r,t),[r,t]),c=i.formContext??{},{ConnectControl:u}=((M=c.fcode)==null?void 0:M.oauth)??Mk,f=(q=c.fcode)==null?void 0:q.reloadFormSpecs,p=R.useRef(null),[d,h]=R.useState(),[v,k]=R.useState(null),[g,b]=R.useState(!1),w=_q(a);R.useEffect(()=>{if(!g)return;const H=setTimeout(()=>b(!1),Aq);return()=>clearTimeout(H)},[g]),R.useEffect(()=>{if(!g)return;let H;const J=setInterval(()=>{if(!document.hasFocus()){H=void 0;return}H??(H=Date.now()),Date.now()-H>=xq&&b(!1)},Oq);return()=>clearInterval(J)},[g]);const E=R.useCallback(H=>{f?f(H):console.warn('"ui:widget: oauth" asks for "onComplete: reload", but this form is not rendered by FcodeForm; nothing to reload.')},[f]),m=R.useCallback(H=>{switch(H.status){case"success":h(void 0),b(!1),n(uq(l.valueKind,{...H})),k(l.onComplete);break;case"error":h(H.message||Eq),b(!1),f==null||f();break;case"blocked":h(Cq),b(!1);break;case"cancelled":H.possiblySevered&&b(!0),l.onComplete==="reload"&&E(H.possiblySevered?{silent:!0}:void 0);break}},[l,n,E,f]),{pending:y,start:S}=Sq(l,e,m),x=R.useRef(!1),_=R.useRef(new Set),C=R.useRef({pending:y,connected:w,onResult:m});C.current={pending:y,connected:w,onResult:m};const A=R.useMemo(()=>{if(!l.authorizationUrl)return null;try{return new URL(l.authorizationUrl).origin}catch{return null}},[l.authorizationUrl]);R.useEffect(()=>{if(A)return wq(A)},[A]),R.useEffect(()=>{const H=zk();if(!H)return;const J=X=>{const P=C.current;!x.current||P.pending||P.connected||!Sl(X.data)||!Uk(X.data,_.current)||P.onResult(Bk(X.data))};return H.addEventListener("message",J),()=>{H.removeEventListener("message",J),H.close()}},[]);const O=R.useCallback(H=>{if(x.current=!0,l.authorizationUrl){const J=Rk(l.authorizationUrl);J&&_.current.add(J)}S(H)},[S,l.authorizationUrl]);R.useEffect(()=>{var H,J;!v||!w||(v==="submit"?(J=(H=p.current)==null?void 0:H.closest("form"))==null||J.requestSubmit():v==="reload"&&E(),k(null))},[v,w,E]);const F=w?"connected":y||g?"pending":"idle",N=F==="connected"?l.connectedLabel:F==="pending"?l.pendingLabel:l.connectLabel;return I.jsx("div",{className:"fcode-oauth",id:e,"data-status":F,ref:p,children:I.jsx(u,{id:`${e}__button`,status:F,label:N,disabled:s||o||w||!l.authorizationUrl,errorMessage:w?void 0:d,onClick:O})})},Pq=Object.freeze(Object.defineProperty({__proto__:null,button:BL,json:UL,oauth:e=>{const{fieldPathId:t,schema:r,uiSchema:i,registry:a,formData:n,onChange:s,disabled:o,readonly:l,required:c}=e,u=pe(i),f=he("TitleFieldTemplate",a,u),p=he("DescriptionFieldTemplate",a,u),d=u.title??r.title,h=u.description??r.description;return I.jsxs("div",{className:"fcode-oauth-field",children:[d&&I.jsx(f,{id:`${t.$id}__title`,title:d,required:c,schema:r,uiSchema:i,registry:a}),h&&I.jsx(p,{id:`${t.$id}__description`,description:h,schema:r,uiSchema:i,registry:a}),I.jsx(Vk,{id:t.$id,schema:r,uiOptions:u,registry:a,value:n,onChange:v=>s(v,t.path),disabled:o,readonly:l})]})},sourceCode:rq},Symbol.toStringTag,{value:"Module"}));function Iq(e,t){return e==null?!0:Xg(e,t)}function md(){return mv("rjsf-array-item-")}function Hk(e){return Array.isArray(e)?e.map(t=>({key:md(),item:t})):[]}function Wk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function Tq(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Kk(e,t,r,i){let{addable:a}=pe(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function Gk(e,t,r,i){if(typeof e.items=="function")try{return e.items(t,r,i)}catch(a){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,a);return}else return e.items}function Nq(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:af(t)&&ZO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function Fq(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,placeholder:c,onBlur:u,onFocus:f,registry:p,rawErrors:d,name:h,onSelectChange:v}=e,{widgets:k,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=p,E=g.retrieveSchema(t.items,a),m=(i==null?void 0:i.items)??i,y=li(E,m),{widget:S="select",title:x,..._}=pe(i,w),C=Vr(t,S,k),A=x??t.title??h,O=g.getDisplayLabel(t,i,w),F=Zi(Or("",b,r,!0));return I.jsx(C,{id:F[tt],name:h,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:p,value:a,disabled:n,readonly:s,required:l,label:A,hideLabel:!O,placeholder:c,autofocus:o,rawErrors:d,htmlName:F.name})}function Dq(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:l,placeholder:c,onBlur:u,onFocus:f,formData:p=[],registry:d,rawErrors:h,name:v,onSelectChange:k}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:m,title:y,...S}=pe(i,E),x=Vr(t,m,g),_=y??t.title??v,C=b.getDisplayLabel(t,i,E),A=Zi(Or("",w,r,!0));return I.jsx(x,{id:A[tt],name:v,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:p,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!C,placeholder:c,autofocus:s,rawErrors:h,htmlName:A.name})}function Mq(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,onBlur:c,onFocus:u,registry:f,formData:p=[],rawErrors:d,onSelectChange:h}=e,{widgets:v,schemaUtils:k,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:E,...m}=pe(r,b),y=Vr(t,w,v),S=E??t.title??a,x=k.getDisplayLabel(t,r,b),_=Zi(Or("",g,i,!0));return I.jsx(y,{options:m,id:_[tt],name:a,multiple:!0,onChange:h,onBlur:c,onFocus:u,schema:t,uiSchema:r,value:p,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!x,htmlName:_.name})}function jq(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,uiOptions:l,parentUiSchema:c,canAdd:u,canRemove:f=!0,canMoveUp:p,canMoveDown:d,rawItemSchema:h,itemData:v,itemUiSchema:k,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:m,onChange:y,rawErrors:S,totalItems:x,title:_,handleAddItem:C,handleCopyItem:A,handleRemoveItem:O,handleReorderItems:F}=e,{schemaUtils:N,fields:{ArraySchemaField:M,SchemaField:q},globalUiOptions:H,globalFormOptions:J}=o,X=R.useMemo(()=>N.retrieveSchema(h,v),[N,h,v]),P=R.useMemo(()=>Or(r,J,g),[r,J,g]),j=M||q,U=he("ArrayFieldItemTemplate",o,l),T=N.getDisplayLabel(X,k,H),{description:D}=pe(k),L=!!D||!!X.description,{orderable:B=!0,removable:V=!0,copyable:W=!1}=l,Y={moveUp:B&&p,moveDown:B&&d,copy:W&&u,remove:V&&f,toolbar:!1};Y.toolbar=Object.keys(Y).some(te=>Y[te]);const Z=R.useCallback(te=>{C(te,r+1)},[C,r]),z=R.useCallback(te=>{A(te,r)},[A,r]),$=R.useCallback(te=>{O(te,r)},[O,r]),G=R.useCallback(te=>{F(te,r,r-1)},[F,r]),K=R.useCallback(te=>{F(te,r,r+1)},[F,r]),ee={children:I.jsx(j,{name:i,title:_,index:r,schema:X,uiSchema:k,formData:v,errorSchema:b,fieldPathId:P,required:Tq(X),onChange:y,onBlur:E,onFocus:m,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:u,hasCopy:Y.copy,hasMoveUp:Y.moveUp,hasMoveDown:Y.moveDown,hasRemove:Y.remove,index:r,totalItems:x,onAddItem:Z,onCopyItem:z,onRemoveItem:$,onMoveUpItem:G,onMoveDownItem:K,registry:o,schema:X,uiSchema:k},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:Y.toolbar,index:r,totalItems:x,readonly:s,registry:o,schema:X,uiSchema:k,parentUiSchema:c,displayLabel:T,hasDescription:L};return I.jsx(U,{...ee})}const Jk=R.memo(jq);function Lq(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:v,rawErrors:k,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:x,fields:_,formContext:C,globalUiOptions:A}=d,{OptionalDataControlsField:O}=_,F=R.useMemo(()=>pe(r,A),[r,A]),N=R.useMemo(()=>Re(t.items)?t.items:{},[t.items]),M=R.useMemo(()=>x.retrieveSchema(N),[x,N]),q=R.useMemo(()=>Wk(b),[b]),H=ss(d,t,f,r),J=Xi(n),X=R.useMemo(()=>Kk(d,t,q,r)&&(!H||J),[d,t,q,r,H,J]),P=J?b:[],j=H?" rjsf-optional-array-field":"",U=e.childFieldPathId??a,T=H?I.jsx(O,{...e,fieldPathId:U}):void 0,D={canAdd:X,items:P.map((B,V)=>{const{key:W,item:Y}=B,Z=Y,z=i?i[V]:void 0,$=Gk(r,Y,V,C),G={itemKey:W,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:c,disabled:l,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:X,canMoveUp:V>0,canMoveDown:V<q.length-1,rawItemSchema:N,parentFieldPathId:U,itemErrorSchema:z,itemData:Z,itemUiSchema:$,autofocus:u&&V===0,onBlur:h,onFocus:v,rawErrors:k,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:y,onChange:g};return I.jsx(Jk,{...G},W)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${M.type}${j}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:c,required:f,schema:t,title:S,formData:q,rawErrors:k,registry:d,optionalDataControl:T},L=he("ArrayFieldTemplate",d,F);return I.jsx(L,{...D})}function qq(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,disabled:l=!1,readonly:c=!1,autofocus:u=!1,required:f=!1,hideError:p=!1,registry:d,onBlur:h,onFocus:v,rawErrors:k,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:y}=e;let{formData:S=[]}=e;const x=t.title||o||s,{fields:_,formContext:C,globalUiOptions:A}=d,O=R.useMemo(()=>pe(r,A),[r,A]),{OptionalDataControlsField:F}=_,N=ss(d,t,f,r),M=Xi(i),q=R.useMemo(()=>Re(t.items)?t.items:[],[t.items]),H=Re(t.additionalItems),J=e.childFieldPathId??n;S.length<q.length&&(S=S.concat(new Array(q.length-S.length)));const X=M?g:[],P=N?" rjsf-optional-array-field":"",j=N?I.jsx(F,{...e,fieldPathId:J}):void 0,U=Kk(d,t,S,r)&&H&&(!N||M),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:X.map((L,B)=>{const{key:V,item:W}=L,Y=W,Z=B>=q.length,z=(Z&&Re(t.additionalItems)?t.additionalItems:q[B])||{};let $;Z?$=r.additionalItems:Array.isArray(r.items)?$=r.items[B]:$=Gk(r,W,B,C);const G=a?a[B]:void 0,K={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:p,readonly:c,disabled:l,required:f,title:x?`${x}-${B+1}`:void 0,canAdd:U,canRemove:Z,canMoveUp:B>=q.length+1,canMoveDown:Z&&B<S.length-1,rawItemSchema:z,itemData:Y,itemUiSchema:$,parentFieldPathId:J,itemErrorSchema:G,autofocus:u&&B===0,onBlur:h,onFocus:v,rawErrors:k,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:m,handleReorderItems:y};return I.jsx(Jk,{...K},V)}),onAddClick:w,readonly:c,required:f,registry:d,schema:t,uiSchema:r,title:x,errorSchema:a,rawErrors:k,optionalDataControl:j},D=he("ArrayFieldTemplate",d,O);return I.jsx(D,{...T})}function $q(e=[]){const t=R.useMemo(()=>hr(e),[e]),[r,i]=R.useState(()=>({formDataHash:t,keyedFormData:Hk(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],l=a||[];a=o.length===l.length?l.map((c,u)=>({key:c.key,item:o[u]})):Hk(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=R.useCallback(o=>{const l=Wk(o),c=hr(l);return i({formDataHash:c,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function zq(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:c,translateString:u}=n,{keyedFormData:f,updateKeyedFormData:p}=$q(s),d=R.useRef(f);d.current=f;const h=R.useRef(i);h.current=i;const v=e.childFieldPathId??a,k=R.useCallback((x,_)=>{x&&x.preventDefault();let C;if(h.current){C={};for(const F of Object.keys(h.current)){const N=parseInt(F,10);_===void 0||N<_?ot(C,[N],h.current[N]):N>=_&&ot(C,[N+1],h.current[N])}}const A={key:md(),item:Nq(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,A):O.push(A),o(p(O),v.path,C)},[n,t,o,p,v]),g=R.useCallback((x,_)=>{x&&x.preventDefault();let C;if(h.current){C={};for(const F of Object.keys(h.current)){const N=parseInt(F,10);N<=_?ot(C,[N],h.current[N]):N>_&&ot(C,[N+1],h.current[N])}}const A={key:md(),item:ko(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,A):O.push(A),o(p(O),v.path,C)},[o,p,v]),b=R.useCallback((x,_)=>{x&&x.preventDefault();let C;if(h.current){C={};for(const O of Object.keys(h.current)){const F=parseInt(O,10);F<_?ot(C,[F],h.current[F]):F>_&&ot(C,[F-1],h.current[F])}}const A=d.current.filter((O,F)=>F!==_);o(p(A),v.path,C)},[o,p,v]),w=R.useCallback((x,_,C)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(h.current){A={};for(const N of Object.keys(h.current)){const M=parseInt(N,10);M===_?ot(A,[C],h.current[_]):M===C?ot(A,[_],h.current[C]):ot(A,[N],h.current[M])}}function O(){const N=d.current.slice();return N.splice(_,1),N.splice(C,0,d.current[_]),N}const F=O();o(p(F),v.path,A)},[o,p,v]),E=R.useCallback((x,_,C,A)=>{const O=typeof _.at(-1)=="number";o(O&&x===void 0?null:x,_,C,A)},[o]),m=R.useCallback(x=>{o(x,v.path,void 0,v==null?void 0:v[tt])},[o,v]),y={...e,formData:s,fieldPathId:v,onSelectChange:m},S={...e,handleAddItem:k,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(qi in t)){if(!l.useFallbackUiForUnsupportedType){const _=pe(r),C=he("UnsupportedFieldTemplate",n,_);return I.jsx(C,{schema:t,fieldPathId:a,reason:u(_e.MissingItems),registry:n})}const x={...t,[qi]:{type:void 0}};y.schema=x,S.schema=x}return c.isMultiSelect(y.schema)?I.jsx(Fq,{...y}):ev(r)?I.jsx(Dq,{...y}):af(y.schema)?I.jsx(qq,{...S}):c.isFilesArray(y.schema,r)?I.jsx(Mq,{...y}):I.jsx(Lq,{...S})}function Rq(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,disabled:l,readonly:c,hideError:u,autofocus:f,title:p,onChange:d,onFocus:h,onBlur:v,rawErrors:k}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:m="checkbox",title:y,label:S=!0,enumNames:x,..._}=pe(i,E),C=Vr(t,m,b),A=w(_e.YesLabel),O=w(_e.NoLabel);let F;const N=y??g??p??r;if(Array.isArray(t.oneOf))F=li({oneOf:t.oneOf.map(q=>{if(Re(q))return{...q,title:q.title||(q.const===!0?A:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!x&&q.length===2&&q.every(H=>typeof H=="boolean")?F=[{value:q[0],label:q[0]?A:O},{value:q[1],label:q[1]?A:O}]:F=li({enum:q},i)}const M=R.useCallback((q,H,J)=>d(q,a.path,H,J),[d,a]);return I.jsx(C,{options:{..._,enumOptions:F},schema:t,uiSchema:i,id:a.$id,name:r,onChange:M,onFocus:h,onBlur:v,label:N,hideLabel:!S,value:n,required:o,disabled:l,readonly:c,hideError:u,registry:s,autofocus:f,rawErrors:k,htmlName:a.name})}function Uq(e){const[t,r]=R.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,c=pe(s,l),u=he("CyclicSchemaExpandTemplate",a,c);if(!t)return I.jsx(u,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:p}=f;return I.jsx(p,{...e,schema:{...n,[uu]:!1}})}function Bq(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function Vq(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function Hq(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 Wq(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,disabled:l=!1,readonly:c=!1,onBlur:u,onFocus:f,registry:p,fieldPathId:d,onChange:h,errorSchema:v}=e,{translateString:k,fields:g,globalFormOptions:b}=p,[w,E]=R.useState(Vq(r)),m=pe(s),y=Zi(Or("__internal_type_selector",b,d)),S=k(_e.Type),x=R.useMemo(()=>Bq(S),[S]),_=O=>{O!=null&&(E(O),h(Hq(r,O),d.path,v,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=k(_e.UnknownFieldType,[String(a.type)])}=e,F=he("UnsupportedFieldTemplate",p,m);return I.jsx(F,{schema:a,fieldPathId:d,reason:O,registry:p})}const C=he("FallbackFieldTemplate",p,m),{SchemaField:A}=g;return I.jsx(C,{schema:a,registry:p,typeSelector:I.jsx(A,{fieldPathId:y,name:`${n}__fallback_type`,schema:x,formData:w,onChange:_,onBlur:u,onFocus:f,registry:p,hideLabel:!i,disabled:l,readonly:c,required:o},r?hr(r):"__empty__"),schemaField:I.jsx(A,{...e,schema:{type:w,title:k(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function Kq(e,t){return $i(t,function(r){return e[r]})}function Gq(e){return e==null?[]:Kq(e,Er(e))}var Jq=Math.max;function Yq(e,t,r,i){e=ni(e)?e:Gq(e),r=r?uy(r):0;var a=e.length;return r<0&&(r=Jq(a+r,0)),bn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&wy(e,t,r)>-1}var Xq=Math.min;function Zq(e,t,r){for(var i=Ju,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,c=[];s--;){var u=e[s];l=Xq(u.length,l),o[s]=a>=120&&u.length>=120?new ai(s&&u):void 0}u=e[0];var f=-1,p=o[0];e:for(;++f<a&&c.length<l;){var d=u[f],h=d;if(d=d!==0?d:0,!(p?Za(p,h):i(c,h))){for(s=n;--s;){var v=o[s];if(!(v?Za(v,h):i(e[s],h)))continue e}p&&p.push(h),c.push(d)}}return c}function Qq(e){return Xa(e)?e:[]}var Yk=co(function(e){var t=$i(e,Qq);return t.length&&t[0]===e[0]?Zq(t):[]});function e$(e,t){return fo(e,t)}function Xk(e){return e===void 0}var Hr;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Hr||(Hr={}));var vs;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(vs||(vs={}));const t$=/^\$lookup=(.+)/,hd="layoutGrid";function Zk(e,t){return e??t}function r$(e){return/^\d+?$/.test(e)}const Nn=df();function n$(e,t,r,i,a){const n=ae(r,[pu],{}),s=ae(r,e),o={...ae(s,[gn],{}),...t,...n},l={...s};kt(o)||ot(l,[gn],o),kt(n)||ot(l,[pu],n);let{readonly:c}=pe(l);return(a===!0||Xk(c)&&i===!0)&&(c=!0,$e(o,cu)?ot(l,[gn,cu],!0):ot(l,`ui:${cu}`,!0)),{fieldUiSchema:l,uiReadonly:c}}function i$(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=$u([t]).sort(),a=$u([r]).sort();switch(e){case vs.ALL:return e$(i,a);case vs.SOME:return Yk(i,a).length>0;case vs.NONE:return Yk(i,a).length===0;default:return!1}}function El(e,t,r){let i={},a=e[t];if(yn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const c=s.split(" ").map(u=>vf(r,u,u)).join(" ");i={...o,className:c}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function Qk(e,t,r){let i,a=t;if(r$(r)&&e&&(e==null?void 0:e.type)==="array"&&$e(e,qi)){const n=Number(r),s=e[qi];Array.isArray(s)?n>s.length?i=Yg(s):i=s[n]:i=s,a={[tt]:t[tt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function a$(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const c=t.split("."),u=c.pop();let f=n.retrieveSchema(o,i),p=i,d=f.readOnly;c.forEach(k=>{if(l=Or(k,s,l),$e(f,ze))o=ae(f,[ze,k],{});else if(f&&($e(f,Oe)||$e(f,je))){const g=$e(f,Oe)?Oe:je,b=n.findSelectedOptionInXxxOf(f,k,g,p);o=ae(b,[ze,k],{})}else{const g=Qk(f,l,k);o=g.rawSchema??{},l=g.fieldPathId}p=ae(p,k,{}),f=n.retrieveSchema(o,p),d=Zk(f.readOnly,d)});let h,v=!1;if(kt(f)&&(f=void 0),f&&u){if(f&&($e(f,Oe)||$e(f,je))){const g=$e(f,Oe)?Oe:je;f=n.findSelectedOptionInXxxOf(f,u,g,p)}l=Or(u,s,l),v=f!==void 0&&Array.isArray(f.required)&&Yq(f.required,u);const k=Qk(f,l,u);if(k.rawSchema?(f=k.rawSchema,l=k.fieldPathId):(f=ae(f,[ze,u]),f=f&&n.retrieveSchema(f)),d=Zk(f==null?void 0:f.readOnly,d),f&&($e(f,Oe)||$e(f,je))){const g=$e(f,Oe)?Oe:je,b=dr(f);h={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:v,isReadonly:d,optionsInfo:h,fieldPathId:l}}function s$(e,t){let r=e;return bn(r)&&(r=vf(t,r)),La(r)?r:null}function o$(e,t){let r,i=null,a={},n;if(bn(t)||Xk(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,kt(a)||MM(a,(c,u)=>{if(bn(c)){const f=t$.exec(c);if(Array.isArray(f)&&f.length>1){const p=f[1];a[u]=vf(e,p,p)}}}),i=s$(o,e),!s&&i&&(n=I.jsx(i,{...l,"data-testid":Nn.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Al(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:s}=i,o=s.retrieveSchema(a,n);return t.map(l=>R.createElement(gd,{...r,key:`layoutGrid-${hr(l)}`,schema:o,layoutGridSchema:l}))}function l$(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=El(t,Hr.CONDITION,a),{operator:o,field:l="",value:c}=s,u=ae(i,l,null);return i$(o,u,c)?I.jsx(Al,{...r,childrenLayoutGridSchemaId:n}):null}function c$(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=El(t,Hr.COLUMN,i),o=pe(a),l=he("GridTemplate",i,o);return I.jsx(l,{column:!0,"data-testid":Nn.col,...s,children:I.jsx(Al,{...r,childrenLayoutGridSchemaId:n})})}function u$(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=El(t,Hr.COLUMNS,i),o=pe(a),l=he("GridTemplate",i,o);return n.map(c=>I.jsx(l,{column:!0,"data-testid":Nn.col,...s,children:I.jsx(Al,{...r,childrenLayoutGridSchemaId:[c]})},`column-${hr(c)}`))}function f$(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=El(t,Hr.ROW,i),o=pe(a),l=he("GridTemplate",i,o);return I.jsx(l,{...s,"data-testid":Nn.row,children:I.jsx(Al,{...r,childrenLayoutGridSchemaId:n})})}function d$(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:c,registry:u,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:h}=u,{SchemaField:v,LayoutMultiSchemaField:k}=h,g=o$(u,t),{name:b,UIComponent:w,uiProps:E}=g,{schema:m,isRequired:y,isReadonly:S,optionsInfo:x,fieldPathId:_}=a$(u,b,r,l,n),C=Zi(_);if(g.rendered)return g.rendered;if(m){const A=x!=null&&x.hasDiscriminator?k:v,{fieldUiSchema:O,uiReadonly:F}=n$(b,E,i,S,c);return I.jsx(A,{"data-testid":x!=null&&x.hasDiscriminator?Nn.layoutMultiSchemaField:Nn.field,...p,name:b,required:y,readonly:F,schema:m,uiSchema:O,errorSchema:ae(a,b),fieldPathId:C,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:x==null?void 0:x.options,registry:u})}return w?I.jsx(w,{"data-testid":Nn.uiComponent,...p,name:b,required:y,formData:l,readOnly:!!S||c,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:u,...E}):null}function gd(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=pe(t);if(!r&&hd in i&&Re(i[hd])&&(r=i[hd]),Re(r)){if(Hr.ROW in r)return I.jsx(f$,{...e,layoutGridSchema:r});if(Hr.COLUMN in r)return I.jsx(c$,{...e,layoutGridSchema:r});if(Hr.COLUMNS in r)return I.jsx(u$,{...e,layoutGridSchema:r});if(Hr.CONDITION in r)return I.jsx(l$,{...e,layoutGridSchema:r})}return I.jsx(d$,{...e,gridSchema:r})}gd.TEST_IDS=Nn;function p$(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=pe(a,s.globalUiOptions),{title:c}=l,{title:u}=i,f=c||r||u||o;if(!f)return null;const p=he("TitleFieldTemplate",s,l);return I.jsx(p,{id:So(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function yd(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[ze,t]);return ae(s,Zn,ae(s,Vt,i))===r})}function e1(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;$e(e,Oe)?s={...e,[Oe]:n}:$e(e,je)&&(s={...e,[je]:n});const o=li(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function m$(e){var $;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,options:l,onFocus:c,registry:u,uiSchema:f,schema:p,autofocus:d,readonly:h,required:v,errorSchema:k,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[m,y]=R.useState(e1(p,l,w,f,a)),S=ae(n,tt),x=dr(p),_=he("FieldErrorTemplate",u,l),C=he("FieldTemplate",u,l),A=hr(p),O=hr(l),F=f?hr(f):"",N=a?hr(a):"";R.useEffect(()=>{y(e1(p,l,w,f,a))},[A,O,w,F,N]);const{widget:M=x?"radio":"select",title:q="",placeholder:H="",optionsSchemaSelector:J=x,hideError:X,...P}=pe(f);if(!J)throw new Error("No selector field provided for the LayoutMultiSchemaField");const j=ae(a,J);let U=ae(($=m[0])==null?void 0:$.schema,[ze,J],{});const T=yd(m,J,j);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const D=Vr(U,M,b),L=X===void 0?g:!!X,B=ae(k,[Dt],[]),V=Ja(k,[Dt]),W=w.getDisplayLabel(p,f,E),Y=G=>{if(i||h)return;const K=yd(m,J,G),ee=yd(m,J,j);let te=w.sanitizeDataForNewSchema(K,ee,a);te&&K&&(te=w.getDefaultFormState(K,te,"excludeObjectChildren")),te&&ot(te,J,G),o(te,n.path,void 0,S)},Z={enumOptions:m,...P},z=!L&&B.length>0?I.jsx(_,{fieldPathId:n,schema:p,errors:B,registry:u}):void 0;return I.jsx(C,{fieldPathId:n,id:S,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(m)&&kt(m),uiSchema:f,required:v,readonly:!!h,registry:u,displayLabel:W,errors:z,onChange:o,onKeyRename:po,onKeyRenameBlur:po,onRemoveProperty:po,children:I.jsx(D,{id:S,name:t,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(m)&&kt(m),uiSchema:f,autofocus:d,readonly:h,required:v,registry:u,multiple:!1,rawErrors:B,hideError:L,hideLabel:!W,errorSchema:V,placeholder:H,onChange:Y,onBlur:s,onFocus:c,value:j,options:Z,htmlName:n.name})})}function t1(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:c,readonly:u,registry:f,required:p=!1,schema:d,uiSchema:h}=e,{schemaUtils:v}=f,k=hr(a??null),g=R.useMemo(()=>c.map(te=>v.retrieveSchema(te,a)),[c,v,k]),[b,w]=R.useState(()=>{const te=dr(d);return v.getClosestMatchingOption(a,g,0,te)}),E=R.useRef(!1),m=R.useRef(a),y=R.useRef(n.$id);R.useEffect(()=>{const te=m.current,se=y.current;if(m.current=a,y.current=n.$id,!Ue(a,te)&&n.$id===se){if(E.current){E.current=!1;return}const ge=dr(d),be=v.getClosestMatchingOption(a,g,b,ge);be!==b&&w(be)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,x=R.useCallback(te=>{if(r||u)return;const se=te!==void 0?parseInt(te,10):-1;if(se===b)return;const ge=se>=0?g[se]:void 0,be=b>=0?g[b]:void 0;let ve=v.sanitizeDataForNewSchema(ge,be,a);ge&&(ve=v.getDefaultFormState(ge,ve,"excludeObjectChildren")),w(se),E.current=!0,o(ve,n.path,void 0,S)},[b,g,r,u,v,a,n,o,S]),{widgets:_,fields:C,translateString:A,globalUiOptions:O}=f,{SchemaField:F}=C,N=he("MultiSchemaFieldTemplate",f,O),M=ss(f,d,p,h),q=Xi(a),{widget:H="select",placeholder:J,autofocus:X,autocomplete:P,title:j=d.title,...U}=pe(h,O),T=Vr({type:"number"},H,_),D=ae(i,Dt,[]),L=Ja(i,[Dt]),B=v.getDisplayLabel(d,h,O),V=b>=0&&g[b]||null;let W;if(V){const{required:te,type:se}=d,ge={};te&&(ge.required=te),se!==void 0&&!("type"in V)&&(ge.type=se),W=Object.keys(ge).length>0?sn(ge,V):V}let Y=[];Oe in d&&h&&Oe in h?Array.isArray(h[Oe])?Y=h[Oe]:console.warn(`uiSchema.oneOf is not an array for "${j||t}"`):je in d&&h&&je in h&&(Array.isArray(h[je])?Y=h[je]:console.warn(`uiSchema.anyOf is not an array for "${j||t}"`));let Z=h;b>=0&&Y.length>b&&(Z=Y[b]);const z=j?_e.TitleOptionPrefix:_e.OptionPrefix,$=j?[j]:[],G=g.map((te,se)=>{const{title:ge=te.title}=pe(Y[se]);return{label:ge||A(z,$.concat(String(se+1))),value:se}}),K=!M||q?I.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:x,onBlur:s,onFocus:l,disabled:r||kt(G),multiple:!1,rawErrors:D,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:G,...U},registry:f,placeholder:J,autocomplete:P,autofocus:X,label:j??t,hideLabel:!B,readonly:u}):void 0,ee=W&&W.type!=="null"&&I.jsx(F,{...e,schema:W,uiSchema:Z})||null;return I.jsx(N,{schema:d,registry:f,uiSchema:h,selector:K,optionSchemaField:ee})}function h$(e){const{formData:t,onChange:r,fieldPathId:i}=e;return R.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const g$=/\.([0-9]*0)*$/,y$=/[0.]0*$/;function v$(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=R.useState(a),{StringField:o}=t.fields,l=qh(),c=l==="."?"\\.":l;let u=i;const f=R.useCallback((d,h,v,k)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&g$.exec(b)?$h(b.replace(y$,"")):$h(b);r(w,h,v,k)},[r,l]);if(typeof n=="string"&&typeof u=="number"){const d=new RegExp(`^(${String(u).replace(".",c)})?${c}?0*$`);n.match(d)&&(u=n)}let p=u;if(typeof u=="number"&&l!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:v}=t,g=(v.isSelect(d)?li(d,h):void 0)?"select":"text",{widget:b=g}=pe(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(u).replace(".",l))}return I.jsx(o,{...e,formData:p,onChange:f})}var xl;function b$(e){if(!xl){if(typeof document>"u")return;xl=document.createElement("textarea")}var t=`&${e};`;xl.innerHTML=t;var r=xl.value;return r===t?void 0:r}var oe=32,ce=9,Fn=13,fe=10,Je=96,Pt=126,vt=91,un=94,Ne=62,gr=35,vd=37,Pe=45,yr=61,Nt=92,wt=42,gt=95,it=60,r1=64,Ir=93,Wt=33,Ol=38,$t=58,bd=70,pi=102,_l=104,mi=119,ia=116,kd=112,n1=115,k$=160,w$=12,S$=44,Pl=59,aa=63,vr=46,bt=47,hi=39,gi=34,Dn=43,Ft=124,yi=123,wd=125,Tr=40,Nr=41,C$=78,E$=110,A$=79,x$=111,i1=120,a1=88,Sd=30,Fe=48,De=57,Ce=65,xe=90,Ze=97,lt=122,Il=128,Fr=32,O$={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},ie=O$;function _$(e){if(!l1(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]!==`
97
97
  `)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
98
98
  `&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
99
- `&&t++,Zk(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=C$(e,i,a);if(n<a){let o=e.charCodeAt(n);if(o>=Ze&&o<=lt||o>=we&&o<=Ae||o>=Fe&&o<=De||o===gt){for(n++;n<a&&(o=e.charCodeAt(n),o>=Ze&&o<=lt||o>=we&&o<=Ae||o>=Fe&&o<=De||o===gt||o===_e||o===vr);)n++;n<a&&e.charCodeAt(n)===$t&&(n++,n>=a?r=!0:(o=e.charCodeAt(n),(o===oe||o===le)&&(r=!0)))}}}}return null}var p$=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,m$={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"},h$={};function Yk(e){if(!e)return h$;var t={};for(var r in e){var i=r.toLowerCase(),a=m$[i];if(a)t[a]=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 g$=/(\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 Mn(e){return e.indexOf("&")===-1?e:e.replace(p$,(t,r)=>{var i=n$(r);if(i)return i;if(r[0]==="#"){var a=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return a===0||a>=55296&&a<=57343||a>1114111?"�":a<=65535?String.fromCharCode(a):String.fromCharCode(55296+(a-65536>>10),56320+(a-65536&1023))}return t})}var Xk=/(javascript|vbscript|data(?!:image)):/i;function fn(e){if(Xk.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Xk.test(t))return null}catch{return null}return e}var zt={},Kt,It;for(Kt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],It=0;It<Kt.length;It++)zt[Kt[It]]="a";for(zt[231]=zt[199]="c",zt[240]=zt[208]="d",Kt=[200,201,202,203,233,232,234,235],It=0;It<Kt.length;It++)zt[Kt[It]]="e";for(Kt=[207,239,206,238,205,237,204,236],It=0;It<Kt.length;It++)zt[Kt[It]]="i";for(zt[209]=zt[241]="n",Kt=[248,216,339,338,213,245,212,244,211,243,210,242],It=0;It<Kt.length;It++)zt[Kt[It]]="o";for(Kt=[220,252,219,251,218,250,217,249],It=0;It<Kt.length;It++)zt[Kt[It]]="u";zt[376]=zt[255]=zt[221]=zt[253]="y";function vi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Ze&&n<=lt||n>=Fe&&n<=De){r<0&&(r=a);continue}if(n>=we&&n<=Ae){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Fr);continue}if(n===oe||n===_e){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var o=zt[n];o&&(t+=o)}return r>=0&&(t+=e.slice(r)),t}function Zk(e,t,r){return e.startsWith(t,r)}var Qk=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 bo(e){let t=e.toLowerCase();if(Qk.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Qk.has(t)):!1}var bi=1,e1=2,oa=4,t1=8,y$=16,Dr=32,jn=64,v$=(()=>{var e=new Uint8Array(128),t;for(e[le]=bi,e[fe]=bi|e1,e[a$]=bi,e[Fn]=bi|e1,e[oe]=bi,t=Wt;t<=bt;t++)e[t]=oa;for(t=$t;t<=Wk;t++)e[t]=oa;for(t=vt;t<=Je;t++)e[t]=oa;for(t=yi;t<=Pt;t++)e[t]=oa;for(t=Fe;t<=De;t++)e[t]=y$;for(t=we;t<=Ae;t++)e[t]=t1;for(t=Ze;t<=lt;t++)e[t]=t1;return e})(),b$=/[\p{P}\p{S}]/u,k$=new RegExp("\\p{Zs}","u"),ki=[];function w$(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;ki.length=0;var a=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<i;n++){var o=e.charCodeAt(n);o===Fn?(a<n&&ki.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,ki.push(`
100
- `),a=n+1):o===0&&(a<n&&ki.push(e.slice(a,n)),ki.push("�"),a=n+1)}return a<i&&ki.push(e.slice(a)),ki.join("")}function S$(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function C$(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function r1(e){if(!e)return!1;for(var t in e)return!0;return!1}function E$(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var A$=/^\n+/;function x$(e){for(var t=e.length;t>0&&(e[t-1]===`
101
- `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(A$,"")}
99
+ `&&t++,l1(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=$$(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Ze&&s<=lt||s>=Ce&&s<=xe||s>=Fe&&s<=De||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Ze&&s<=lt||s>=Ce&&s<=xe||s>=Fe&&s<=De||s===gt||s===Pe||s===vr);)n++;n<a&&e.charCodeAt(n)===$t&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===oe||s===ce)&&(r=!0)))}}}}return null}var P$=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,I$={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"},T$={};function s1(e){if(!e)return T$;var t={};for(var r in e){var i=r.toLowerCase(),a=I$[i];if(a)t[a]=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 N$=/(\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 Mn(e){return e.indexOf("&")===-1?e:e.replace(P$,(t,r)=>{var i=b$(r);if(i)return i;if(r[0]==="#"){var a=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return a===0||a>=55296&&a<=57343||a>1114111?"�":a<=65535?String.fromCharCode(a):String.fromCharCode(55296+(a-65536>>10),56320+(a-65536&1023))}return t})}var o1=/(javascript|vbscript|data(?!:image)):/i;function fn(e){if(o1.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(o1.test(t))return null}catch{return null}return e}var zt={},Kt,It;for(Kt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],It=0;It<Kt.length;It++)zt[Kt[It]]="a";for(zt[231]=zt[199]="c",zt[240]=zt[208]="d",Kt=[200,201,202,203,233,232,234,235],It=0;It<Kt.length;It++)zt[Kt[It]]="e";for(Kt=[207,239,206,238,205,237,204,236],It=0;It<Kt.length;It++)zt[Kt[It]]="i";for(zt[209]=zt[241]="n",Kt=[248,216,339,338,213,245,212,244,211,243,210,242],It=0;It<Kt.length;It++)zt[Kt[It]]="o";for(Kt=[220,252,219,251,218,250,217,249],It=0;It<Kt.length;It++)zt[Kt[It]]="u";zt[376]=zt[255]=zt[221]=zt[253]="y";function vi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Ze&&n<=lt||n>=Fe&&n<=De){r<0&&(r=a);continue}if(n>=Ce&&n<=xe){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Fr);continue}if(n===oe||n===Pe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=zt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function l1(e,t,r){return e.startsWith(t,r)}var c1=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 bs(e){let t=e.toLowerCase();if(c1.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),c1.has(t)):!1}var bi=1,u1=2,sa=4,f1=8,F$=16,Dr=32,jn=64,D$=(()=>{var e=new Uint8Array(128),t;for(e[ce]=bi,e[fe]=bi|u1,e[w$]=bi,e[Fn]=bi|u1,e[oe]=bi,t=Wt;t<=bt;t++)e[t]=sa;for(t=$t;t<=r1;t++)e[t]=sa;for(t=vt;t<=Je;t++)e[t]=sa;for(t=yi;t<=Pt;t++)e[t]=sa;for(t=Fe;t<=De;t++)e[t]=F$;for(t=Ce;t<=xe;t++)e[t]=f1;for(t=Ze;t<=lt;t++)e[t]=f1;return e})(),M$=/[\p{P}\p{S}]/u,j$=new RegExp("\\p{Zs}","u"),ki=[];function L$(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;ki.length=0;var a=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<i;n++){var s=e.charCodeAt(n);s===Fn?(a<n&&ki.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,ki.push(`
100
+ `),a=n+1):s===0&&(a<n&&ki.push(e.slice(a,n)),ki.push("�"),a=n+1)}return a<i&&ki.push(e.slice(a)),ki.join("")}function q$(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function $$(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function d1(e){if(!e)return!1;for(var t in e)return!0;return!1}function z$(e){return{attrs:{},children:[{type:ie.text,text:e}],c:!0,type:ie.htmlBlock,tag:"header"}}var R$=/^\n+/;function U$(e){for(var t=e.length;t>0&&(e[t-1]===`
101
+ `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(R$,"")}
102
102
 
103
- `}function sa(e){var r,i;if((e.type===ne.htmlSelfClosing||e.type===ne.htmlBlock)&&e.a)return[];if(e.type===ne.paragraph){var t=e.children;return t?t.flatMap(sa):[]}return e.type===ne.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===ne.htmlBlock&&e.children?[{...e,children:(i=e.children)==null?void 0:i.flatMap(sa)}]:[e]}function n1(e){for(var t=0;t<e.length;t++){if(e[t].type===ne.htmlBlock){var r=e[t],i=!1;if(r.c&&t===e.length-1){var a=r.j===void 0?r.a?r.e||"":(r.e||"")+(r.h||""):r.j,n=`</${String(r.tag).toLowerCase()}>`,o=a.toLowerCase().indexOf(n);if(o!==-1){var s=a.slice(o+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");s.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&n1(e[t].children)}}function O$(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(i.type===ne.paragraph&&i.children)for(var a=i.children,n=0;n<a.length;n++){var o=a[n];if(o.type===ne.htmlSelfClosing&&o.a&&o.tag.toLowerCase()===t){var s=e.slice(0,r);n>0&&s.push({type:ne.paragraph,children:a.slice(0,n)});var l=[];if(n+1<a.length){var u=a.slice(n+1).filter(c=>!(c.type===ne.htmlSelfClosing&&c.a));u.length>0&&(l=u)}return l=l.concat(e.slice(r+1)),{found:!0,beforeClose:s,afterClose:l}}}if((i.type===ne.htmlSelfClosing||i.type===ne.htmlBlock)&&i.a&&i.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function _$(e){var t="";for(var r in e){var i=e[r];i===!0?t+=` ${r}`:i!==void 0&&i!=null&&i!==!1&&(t+=` ${r}="${String(i)}"`)}return t}function i1(e,t,r,i){var a;return t===void 0?a=_$(r):a=t.length>0&&t.charCodeAt(0)>oe?` ${t}`:t,`<${e}${a}${i}`}function a1(e){var t=e.tag,r=e.type===ne.htmlSelfClosing,i=e,a=i.b,n=`</${t}>`;if(!r&&i.a)return{kind:"literal",literal:(i.h||n)+(i.e||"")};if(r){var o=e;return o.a?{kind:"literal",literal:o.h||n}:o.m?{kind:"literal",literal:o.m}:{kind:"literal",literal:i1(t,a,e.attrs," />")}}var s=i1(t,a,e.attrs,">"),l=i.children,u=l!=null&&l.length>0;if(i.c&&i.j!==void 0)return u?{kind:"sandwich",open:s,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:s+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var c="",f=0;f<l.length;f++){var p=l[f];if(p.type!==ne.text)return{kind:"sandwich",open:s,close:n};c+=p.text}return{kind:"literal",literal:s+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:s+d}:{kind:"literal",literal:s+d+n}}function P$(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var o=0;o<t.length;o++)i.push(t[o]);else t!=null&&i.push(t);n&&i.push(n);for(var s=[],l=0;l<i.length;l++){var u=i[l];typeof u=="string"&&s.length>0&&typeof s.at(-1)=="string"?s[s.length-1]=s.at(-1)+u:s.push(u)}return s}function la(e){return e==null||e.tagfilter!==!1}function I$(e,t,r,i){var a=t(e,r,i);return a===null?null:N$(a)}function T$(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 bd(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var i=e,a=t.split("."),n=0;n<a.length&&(i=i==null?void 0:i[a[n]],i!==void 0);)n++;return i||r}function N$(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=oe||i===gi||i===md||i===it||i===Ne||i===vt||i===Nt||i===Ir||i===cn||i===Je||i>=123){t=!0;break}}if(!t)return e;for(var a="",r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i===md&&r+2<e.length){var n=e.charCodeAt(r+1),o=e.charCodeAt(r+2);if((n>=Fe&&n<=De||n>=we&&n<=hd||n>=Ze&&n<=pi)&&(o>=Fe&&o<=De||o>=we&&o<=hd||o>=Ze&&o<=pi)){a+=e[r]+e[r+1]+e[r+2],r+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&r+1<e.length){var s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function F$(...e){return e.filter(Boolean).join(" ")}var D$=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Il=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function o1(e){return D$.has(e.toLowerCase())}function M$(e){return Il.lastIndex=0,Il.test(e)}function s1(e){return Il.lastIndex=0,e.replace(Il,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function kd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=o=>n(o,vi)}else a=vi;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||fn,slugify:a,tagfilter:la(r)}}var j$=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,L$=/^<[A-Z]/,wd=["script","pre","style","textarea"],ko=new Set(wd),q$=/<(?:pre|script|style|textarea)\b/i,l1=/<(?:pre|script|style|textarea)\b/iy,Sd=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,u1=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,c1=new Uint8Array(128);(()=>{for(var e=[Je,wt,gt,Pt,yr,vt,Wt,it,Nt,xl,fe,Ol,mi,pi],t=0;t<e.length;t++)c1[e[t]]=1})();var f1=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function $$(e){return ko.has(e)}function z$(e){return q$.test(e)}function d1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===Ft&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===Ft&&n>0){for(var o=i+1;o<a&&(e.charCodeAt(o)===oe||e.charCodeAt(o)===le);)o++;if(o>=a)return!0}if(e.charCodeAt(i)===$t&&i++,i>=a||e.charCodeAt(i)!==_e)return!1;for(;i<a&&e.charCodeAt(i)===_e;)i++;for(i<a&&e.charCodeAt(i)===$t&&i++,n++;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===Ft)i++;else return!1}return n>0}var R$=/[\u0000-\u001F\u007F]/g,U$={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},B$=/&#(x[0-9a-f]+|[0-9]+);?/gi;function V$(e){return e.indexOf("&#")===-1?e:e.replace(B$,(t,r)=>{var i=r.charCodeAt(0)===Gk||r.charCodeAt(0)===Jk?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function H$(e,t,r){if(r&&t.charCodeAt(0)===yi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===c$||i===u$)&&(a===l$||a===s$))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(U$[n]===1){var o=V$(Mn(t));if(fn(o)===null)return!0;var s=o.replace(R$,"");return s!==o&&fn(s)===null}return!1}function Cd(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function p1(e,t,r,i){for(var a=[],n=t,o=0;o<i.length;o+=2){var s=i[o];if(s>n){var l=e.slice(n,s).trim();l&&a.push(l)}n=i[o+1]}if(n<r){var u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function Wr(e,t){if(e.charCodeAt(t)!==it)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===bt&&(r++,a=!0);let n=r,o=e.charCodeAt(r);if(!(o>=Ze&&o<=lt||o>=we&&o<=Ae))return null;for(;r<i&&(e.charCodeAt(r)>=Ze&&e.charCodeAt(r)<=lt||e.charCodeAt(r)>=we&&e.charCodeAt(r)<=Ae||e.charCodeAt(r)>=Fe&&e.charCodeAt(r)<=De||e.charCodeAt(r)===_e);)r++;let s=e.slice(n,r);if(!s)return null;let l=s.charCodeAt(0),u=l>=we&&l<=Ae||s.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le||e.charCodeAt(r)===fe);)r++;let f=e.slice(c,r);if(r===c&&r<i){var p=e.charCodeAt(r);if(p!==Ne&&p!==bt)return null}let d=r,m={},k=!1;for(var v=null;r<i;){let F=e.charCodeAt(r);if(F===Ne){let T=v?p1(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:m,end:r+1,tag:s}}if(F===oe||F===le||F===fe){r++;continue}if(F===bt&&r+1<i&&e.charCodeAt(r+1)===Ne){k=r>d&&e.charCodeAt(r-1)===oe;let T=v?p1(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:m,end:r+2,tag:s}}var g=r,b=e.charCodeAt(r);if(!(b>=Ze&&b<=lt||b>=we&&b<=Ae||b===gt||b===$t))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Ze&&w<=lt||w>=we&&w<=Ae||w>=Fe&&w<=De||w===gt||w===vr||w===$t||w===_e)r++;else break}for(var S=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le);)r++;var y,C;if(e.charCodeAt(r)===yr){for(r++;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===le);)r++;var x=e.charCodeAt(r);if(x===gi||x===hi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==x;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var E=e.charCodeAt(r);if(E!==oe&&E!==le&&E!==fe&&E!==Ne&&E!==bt)return null}C=r}else if(x===yi){var A=1,_=r;for(r++;r<i&&A>0;){var w=e.charCodeAt(r);w===yi?A++:w===yd&&A--,r++}y=e.slice(_,r),C=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===oe||O===le||O===Ne||O===fe||O===gi||O===hi||O===yr||O===it||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),C=r}}else y="",C=h;H$(S,y,u)?(v===null&&(v=[]),v.push(g,C)):m[S]=y}return null}function ar(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=Wr(e,t);n?(n.q&&(r+=e.slice(i,t)+Cd(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function W$(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,o=!1;i<a;){for(var s=e.indexOf(`
104
- `,i),l=s<0?a:s,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===oe)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=s<0?a:s+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===Pt){for(var p=f,d=0,m=u;m<l&&e.charCodeAt(m)===p;)d++,m++;if(d>=3){var k=!0;if(p===Je){for(var v=m;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=s<0?a:s+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var S=e.charCodeAt(b);if(S===oe)w++,b++;else if(S===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===p){for(var h=0;b<a&&e.charCodeAt(b)===p;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===oe||e.charCodeAt(b)===le);)b++;if(b>=a||e.charCodeAt(b)===fe){i=b>=a?a:b+1;break}}}for(;g<a&&e.charCodeAt(g)!==fe;)g++;g<a&&g++}g>=a&&(i=a,o=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Ne;){y++,y<l&&e.charCodeAt(y)===oe&&y++;for(var C=0;y<l&&C<4;)if(e.charCodeAt(y)===oe)C++,y++;else if(e.charCodeAt(y)===le)C+=4,y++;else break;if(C>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===cn)){var x=m1(e,y,t);if(x){i=x,n=!1;continue}}var _=e.charCodeAt(u);if(_===gr&&c<4)n=!1;else if(c<4&&(_===_e||_===wt||_===gt)){for(var E=u,A=0;E<l;){var O=e.charCodeAt(E);if(O===_)A++;else if(O!==oe&&O!==le)break;E++}n=!(A>=3&&E>=l)}else n=!0;i=s<0?a:s+1}return o}function m1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===cn,n=t+1;for(;n<i;){var o=e.charCodeAt(n);if(o===Ir){n++;break}if(o===vt)return null;o===Nt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==Ir)return null;let s=e.slice(t+1,n-1);if(s.length>999)return null;let l=Nl(s);if(!l||n>=i||e.charCodeAt(n)!==$t)return null;n++;let u=!1;for(;n<i;){let F=e.charCodeAt(n);if(F===oe||F===le)n++;else if(F===fe&&!u)u=!0,n++;else break}if(a){let F=e.indexOf(`
105
- `,n),T=F<0?i:F,j=e.slice(n,T).trim();return r[l]={target:j,title:void 0},F<0?i:F+1}var c;if(n<i&&e.charCodeAt(n)===it){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Ne&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Nt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Ne)return null;c=e.slice(f,n),n++;for(var p=e.indexOf(`
106
- `,n),d=p<0?i:p,m=n;m<d&&(e.charCodeAt(m)===oe||e.charCodeAt(m)===le);)m++;if(m<d){if(m===n)return null;var k=e.charCodeAt(m);if(k!==gi&&k!==hi&&k!==Tr)return null}}else{for(var f=n,v=0;n<i;){var o=e.charCodeAt(n);if(o===Tr)v++;else if(o===Nr){if(v===0)break;v--}else{if(o===oe||o===le||o===fe)break;o===Nt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
107
- `,n),b=g<0?i:g,w,S=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===oe||e.charCodeAt(y)===le);)y++;if(y<i){var C=e.charCodeAt(y);if(C===gi||C===hi||C===Tr){for(var x=C===Tr?41:C,_=y+1,E=_;_<i;){var A=e.charCodeAt(_);if(A===x){for(var O=_+1;O<i&&(e.charCodeAt(O)===oe||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(E,_),S=!0,h=O<i?O+1:i);break}if(A===Nt&&_+1<i){_+=2;continue}if(A===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!S&&y===n)return null}}if(S)return r[l]||(r[l]={target:Mn(ua(c)),title:w===void 0?w:Mn(ua(w))}),h;for(;n<b&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Mn(ua(c)),title:w}),g<0?i:g+1)}var Zt=new Uint8Array(v$);for(Zt[gr]|=Dr,Zt[Ne]|=Dr,Zt[_e]|=Dr|jn,Zt[Dn]|=Dr,Zt[wt]|=Dr|jn,Zt[gt]|=Dr|jn,Zt[Je]|=Dr|jn,Zt[Pt]|=Dr|jn,Zt[it]|=Dr|jn,Zt[vt]|=jn,Zt[Wt]|=jn,Zt[Ft]|=Dr,Tl=Fe;Tl<=De;Tl++)Zt[Tl]|=Dr;var Tl;function h1(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Nt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===Ir)return!0}return!1}function Nl(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===oe){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=we&&n<=Ae){i=!1;break}else r=!1}if(i&&!r)return e;var o=e.replace(/\s+/g," ").trim();return o.indexOf("ẞ")!==-1?o.replace(/\u1E9E/g,"ss").toLowerCase():o.toLowerCase()}function Ed(e){return e<Pl?Zt[e]:e===i$?bi:0}function ua(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Ad=null,xd=-1,Fl=-1;function Ye(e,t){if(t>=xd&&t<=Fl&&e===Ad)return Fl;var r=e.indexOf(`
108
- `,t),i=r<0?e.length:r;return Ad=e,xd=t,Fl=i,i}function Le(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function wo(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==oe&&i!==le)break;t++}return t}function g1(e,t){let r=Le(e,t);for(;r<e.length;){let i=Ye(e,r);if(Gt(e,r,i))return r;r=Le(e,r)}return e.length}function Ln(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Xe=0,He=0;function Et(e,t,r){for(Xe=0,He=0;t+He<r;){let i=e.charCodeAt(t+He);if(i===le)Xe+=4-Xe%4;else if(i===oe)Xe++;else break;He++}}function Gt(e,t,r){return wo(e,t,r)>=r}function K$(e,t){if(!e)return e;var r=t.v||(t.v=Object.create(null)),i=r[e];if(i===void 0)return r[e]=0,e;for(var a=i+1,n=`${e}-${a}`;r[n]!==void 0;)a++,n=`${e}-${a}`;return r[e]=a,r[n]=0,n}function G$(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==gr)return null;let o=Ln(e,n,a,35);if(o<1||o>6||(n+=o,n<a&&e.charCodeAt(n)!==oe&&e.charCodeAt(n)!==le))return null;n=wo(e,n,a);for(var s=a;s>n&&e.charCodeAt(s-1)===oe;)s--;for(var l=s;s>n&&e.charCodeAt(s-1)===gr;)s--;if(s<l)if(s===n||e.charCodeAt(s-1)===oe)for(;s>n&&e.charCodeAt(s-1)===oe;)s--;else s=l;let u=e.slice(n,s),c=fa(u,!1,r,i);return{node:{type:ne.heading,level:o,children:c,id:""},end:Le(e,a)}}function J$(e,t,r){var i=e.charCodeAt(t);if(i!==yr&&i!==_e)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;return a>=r}function qn(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe>3)return null;let i=t+He,a=e.charCodeAt(i);if(a!==_e&&a!==wt&&a!==gt)return null;let n=0;for(;i<r;){let o=e.charCodeAt(i);if(o===a)n++;else if(o!==oe&&o!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:Le(e,r)}}var y1=0,v1=0,b1="";function Y$(e,t,r){let i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;let a=Xe,n=t+He,o=e.charCodeAt(n);if(o!==Je&&o!==Pt)return null;let s=Ln(e,n,i,o);if(s<3)return null;n+=s;let l=wo(e,n,i),u=i;if(o===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===oe||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",p="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),p=c.slice(d+1).trim()),f=ua(f);var m;if(p){f1.lastIndex=0;for(var k;(k=f1.exec(p))!=null;)m||(m={}),m[k[1]]=k[2]===void 0?k[3]:k[2]}let v=Le(e,i),g=e.length,b=e.length;var w;o===y1&&s===v1?w=b1:(w=String.fromCharCode(o).repeat(s),y1=o,v1=s,b1=w);for(var S=v;S<e.length;){var h=e.indexOf(w,S);if(h===-1)break;for(var y=h,C=0;y>0&&C<4&&e.charCodeAt(y-1)===oe;)y--,C++;if(C<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var x=h+s;x<e.length&&e.charCodeAt(x)===o;)x++;var _=Ye(e,x);if(Gt(e,x,_)){g=y,b=Le(e,_);break}}S=h+1}var E;if(a===0)E=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{E="";for(var A=v;A<g;){var O=Ye(e,A);Et(e,A,O);var F=Math.min(He,a);E+=`${e.slice(A+F,O)}
109
- `,A=Le(e,O)}E.length>0&&E.charCodeAt(E.length-1)===fe&&(E=E.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:E,infoString:p||void 0,attrs:m},end:b}}function k1(e,t,r){for(var i=0,a=t;a<r&&i<4;)e.charCodeAt(a)===le?i+=4-i%4:i++,a++;if(i<4)return"";for(var n="",o=4;o<i;o++)n+=" ";return n+e.slice(a,r)}function X$(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe<4)return null;let i="",a=t;for(;a<e.length;){let p=Ye(e,a);if(Et(e,a,p),Gt(e,a,p)){for(var n=`${k1(e,a,p)}
110
- `,o=Le(e,p);o<e.length;){var s=Ye(e,o);if(Gt(e,o,s)){n+=`${k1(e,o,s)}
111
- `,o=Le(e,s);continue}Et(e,o,s),Xe>=4&&(i+=n,a=o);break}if(a!==o)break;continue}if(Xe<4)break;let d=0,m=0;var l=0;for(let k=a;k<p&&m<4;k++){if(e.charCodeAt(k)===le){var u=4-m%4;m+u>4&&(l=m+u-4),m+=u}else m++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,p),i+=`${c}
112
- `,a=Le(e,p)}for(;i.length>0&&i.charCodeAt(i.length-1)===fe;)i=i.slice(0,-1);return i?{node:{type:ne.codeBlock,lang:void 0,text:i,infoString:void 0,attrs:void 0},end:a}:null}function Z$(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==Ne)return null;let o="",s=t,l,u=!1,c=!1,f=!1;for(;s<e.length;){let q=Ye(e,s);Et(e,s,q);let H=s+He;if(e.charCodeAt(H)===Ne){let Y=H+1;var p=Xe+1,d=!1;if(Y<q){var m=e.charCodeAt(Y);m===oe?(Y++,p++,d=!0):m===le&&(d=!0)}for(var k="",v=!1,g=Y;g<q;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=p;if(d&&Y<q&&e.charCodeAt(Y)===le){for(var w=4-b%4,S=0;S<w-1;S++)k+=" ";b+=w,Y++}for(var h=Y;h<q;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,C=0;C<y;C++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,q);if(!(o||l)){let Z=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(Z){l=Z[1].toUpperCase(),s=Le(e,q);continue}}o+=`${k}
113
- `;var x=k.trimStart();x.startsWith("```")||x.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=x.length>0,s=Le(e,q)}else if(o&&!Gt(e,s,q)&&c){if(Xe<4){var _=s+He,E=_<q?e.charCodeAt(_):0;if(E===gr||E===Ne||E===Je||E===Pt||E===it||(E===_e||E===wt||E===gt)&&qn(e,s)||(E===_e||E===wt||E===Dn)&&_+1<q&&(e.charCodeAt(_+1)===oe||e.charCodeAt(_+1)===le))break;if(E>=Fe&&E<=De){for(var A=_;A<q&&e.charCodeAt(A)>=Fe&&e.charCodeAt(A)<=De;)A++;if(A<q&&(e.charCodeAt(A)===vr||e.charCodeAt(A)===Nr))break}}if(f)break;o+=`${e.slice(s,q)}
114
- `,u=!0,s=Le(e,q)}else break}if(!(o||l))return null;var{inBlockQuote:O,l:F}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Gt(e,s,e.length);let j=Rn(o||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=F,{node:{type:ne.blockQuote,children:j,alert:l||void 0},end:s}}function w1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function $n(e,t,r){if(Et(e,t,r),Xe>3)return null;var i=t+He;if(i>=r)return null;var a=e.charCodeAt(i),n=Xe,o=i,s=i;if(a===_e||a===wt||a===Dn){if(o=i+1,o<r&&e.charCodeAt(o)!==oe&&e.charCodeAt(o)!==le&&e.charCodeAt(o)!==fe)return null}else if(a>=Fe&&a<=De){for(;s<r&&s-i<9;){var l=e.charCodeAt(s);if(l<Fe||l>De)break;s++}if(s>i&&s<r){var u=e.charCodeAt(s);if(u===vr||u===Nr){if(o=s+1,o<r&&e.charCodeAt(o)!==oe&&e.charCodeAt(o)!==le&&e.charCodeAt(o)!==fe)return null}else return null}else return null}else return null;var c=o,f=w1(e,t,o),p=0,d=c,m=f;if(c>=r)return{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[s]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,s),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le);){if(e.charCodeAt(d)===le){var k=4-m%4;m+=k}else m++;d++,p++}var v=d>=r,g=m-f;return v||g>4?(m=f+1,d=c+1,p=1):p===0&&(m=f+1,d=c,p=1),{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[s]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,s),10):void 0,contentStart:d,contentCol:m,markerCol:n,isEmpty:v}}var ca=0;function S1(e,t,r,i){var a=0,n=t;for(ca=0;n<r&&a<i;){var o=e.charCodeAt(n);if(o===le){var s=4-a%4;if(a+s>i){ca=a+s-i,n++,a=i;break}a+=s}else if(o===oe)a++;else break;n++}return n}function C1(e,t,r,i){var a=Ye(e,t),n=$n(e,t,a);if(!n)return null;var o=[],s=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,p=!1;if(!n.isEmpty){for(var d=!1,m=n.contentStart;m<a;m++)if(e.charCodeAt(m)===le){d=!0;break}if(d){var k="",v=w1(e,t,n.contentStart),g=v-n.contentCol;if(g>0)for(var b=0;b<g;b++)k+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===le){for(var S=4-v%4,h=0;h<S;h++)k+=" ";v+=S}else k+=e[w],v++;u=`${k}
115
- `}else u=`${e.slice(n.contentStart,a)}
116
- `}for(s=Le(e,a);s<e.length;){var y=Ye(e,s);Et(e,s,y);var C=e.charCodeAt(s+He);if(Xe<l&&(C===_e||C===wt||C===gt)&&Xe<=3&&qn(e,s))break;var x=$n(e,s,y);if(x&&x.ordered===n.ordered&&x.marker===n.marker&&x.markerCol<l){o.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(p=!0),l=x.contentCol,c=x.isEmpty,f=!1,u=x.isEmpty?"":`${e.slice(x.contentStart,y)}
117
- `,s=Le(e,y);continue}if(Gt(e,s,y)){var _=S1(e,s,y,l);if(ca>0||_<y){for(var E="",A=0;A<ca;A++)E+=" ";u+=`${E+e.slice(_,y)}
118
- `}else u+=`
119
- `;s=Le(e,y);for(var O=!1,F=0;F<u.length;F++){var T=u.charCodeAt(F);if(T!==fe&&T!==Fn&&T!==oe&&T!==le){O=!0;break}}if(c&&!O)if(s<e.length){var j=Ye(e,s),q=$n(e,s,j);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(s<e.length){var H=Ye(e,s);Et(e,s,H);var Y=e.charCodeAt(s+He);if((Y===_e||Y===wt||Y===gt)&&Xe<=3&&qn(e,s))break;var Z=$n(e,s,H);if(Z&&Z.ordered===n.ordered&&Z.marker===n.marker&&Z.markerCol<l){f=!0;continue}if(!Gt(e,s,H)&&Xe<l)break}continue}if(Xe>=l){var P=S1(e,s,y,l);if(ca>0){for(var M="",R=l,I=0;I<ca;I++)M+=" ",R++;for(var D=P;D<y;D++)if(e.charCodeAt(D)===le){for(var L=4-R%4,B=0;B<L;B++)M+=" ";R+=L}else M+=e[D],R++;u+=`${M}
120
- `}else u+=`${e.slice(P,y)}
121
- `;s=Le(e,y);continue}for(var V=!1,W=0;W<u.length;W++){var K=u.charCodeAt(W);if(K!==fe&&K!==Fn&&K!==oe&&K!==le){V=!0;break}}if(!f&&V&&!c){var X=s+He,z=e.charCodeAt(X),$=z===gr||z===Ne||z===it||z===Je||z===Pt||(z===_e||z===wt||z===gt||z===Dn)&&(qn(e,s)!=null||$n(e,s,y)!=null)||z>=Fe&&z<=De&&$n(e,s,y)!=null;if(!$){u+=`${e.slice(X,y)}
122
- `,s=Le(e,y);continue}}break}if(o.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),o.length===0)return null;var J=p;if(!J)for(var G=0;G<o.length;G++){if(o[G].hasBlankAfter&&G<o.length-1){J=!0;break}if(!o[G].isEmpty){for(var ie=o[G].raw,re=ie.length,ue=0,ye=!1,Se=!1,ke=!1,Pe=!1,de=0,We=0,ut=-1;ue<re;){var ve=ie.indexOf(`
123
- `,ue);if(ve<0&&(ve=re),Pe){Et(ie,ue,ve);for(var Q=ie.slice(ue+He,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=We&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Gt(ie,ue,ve)){ut>=0?ke=!0:ye&&(Se=!0),ue=ve<re?ve+1:re;continue}if(Et(ie,ue,ve),ut>=0){if(Xe>=ut){ue=ve<re?ve+1:re;continue}var te=$n(ie,ue,ve);if(te&&te.markerCol<ut&&te.contentCol<=ut){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}ut=-1,ke&&(Se=!0,ke=!1)}var ge=ie.slice(ue+He,ve),ce=ge.charCodeAt(0);if((ce===Je||ce===Pt)&&Xe<=3){for(var pt=0;pt<ge.length&&ge.charCodeAt(pt)===ce;)pt++;if(pt>=3){if(Se&&ye){J=!0;break}Pe=!0,de=ce,We=pt,ye=!0,ue=ve<re?ve+1:re;continue}}var qe=Xe<=3?$n(ie,ue,ve):null;if(qe&&ye){if(Se){J=!0;break}ut=qe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(Se){J=!0;break}ye=!0,ue=ve<re?ve+1:re}if(J)break}}for(var Ke=[],St=0;St<o.length;St++){for(var xt=o[St],ct=xt.raw,Ct=ct.length;Ct>0&&ct.charCodeAt(Ct-1)===fe;)Ct--;var yt=Ct<ct.length?ct.slice(0,Ct):ct,Si=null;if(yt.length>=3&&yt.charCodeAt(0)===vt){var Bn=yt[1];(Bn===" "||Bn==="x"||Bn==="X")&&yt.charCodeAt(2)===Ir&&(Si={type:ne.gfmTask,completed:Bn==="x"||Bn==="X"},yt=yt.slice(3))}var At;if(xt.isEmpty&&yt.trim()==="")At=[];else if(J){var Ci=r.inList;r.inList=!0;var Rl=r.i;r.i=Rl||St!==o.length-1,At=Rn(yt,r,i),r.i=Rl,r.inList=Ci}else{var dn=r.inList;r.inList=!0;var Ei=r.i;if(r.i=Ei||St!==o.length-1,At=Rn(yt,r,i),r.i=Ei,r.inList=dn,At.length===1&&At[0].type===ne.paragraph)At=At[0].children;else if(r.p){var Vn=[];r.p.push({src:At,dest:Vn,unwrap:!0}),At=Vn}else{for(var Jr=[],Qt=0;Qt<At.length;Qt++)if(At[Qt].type===ne.paragraph)for(var Yr=At[Qt].children,ma=0;ma<Yr.length;ma++)Jr.push(Yr[ma]);else Jr.push(At[Qt]);At=Jr}}if(Si){var Ai=[Si,{type:ne.text,text:" "}];if(r.p)r.p.push({src:At,dest:Ai,unwrap:!1});else for(var Mr=0;Mr<At.length;Mr++)Ai.push(At[Mr]);Ke.push(Ai)}else Ke.push(At)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:Ke},end:s}}var Dl=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 Kr(e,t,r){let i={};for(let[o,s]of Object.entries(e)){let l=o.toLowerCase();if(l==="style"&&typeof s=="string"){let u={},c=[],f=0,p=0;for(let m=0;m<s.length;m++){let k=s.charCodeAt(m);k===Tr?f++:k===Nr?f--:k===_l&&f===0&&(c.push(s.slice(p,m)),p=m+1)}p<s.length&&c.push(s.slice(p));let d=!1;c.forEach(m=>{let k=m.indexOf(":");if(k===-1)return;let v=m.slice(0,k).trim(),g=m.slice(k+1).trim();if(v&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let b=v.indexOf("-")===-1?v:v.replace(/-([a-z])/g,(w,S)=>S.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[o]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(s,t,l);u!=null&&(i[o]=u)}else if(s==="")i[o]=!0;else if(s.length>=2&&s.charCodeAt(0)===yi&&s.charCodeAt(s.length-1)===yd){var a=s.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===yi)try{i[o]=JSON.parse(a);continue}catch{}}if(a==="true"){i[o]=!0;continue}if(a==="false"){i[o]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[o]=(0,eval)(`(${a})`);continue}catch{}i[o]=a}else i[o]=s}return i}function zn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=we&&a<=Ae||a>=Ze&&a<=lt;if(!n){for(var o=String.fromCharCode(a),s=e.length-i,l=r;l<=s;){var u=e.indexOf(o,l);if(u===-1||u>s)return-1;for(var c=!0,f=1;f<i;f++){var p=e.charCodeAt(u+f),d=t.charCodeAt(f);if(p>=we&&p<=Ae&&(p+=Fr),d>=we&&d<=Ae&&(d+=Fr),p!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=we&&a<=Ae&&(a+=Fr);for(let k=r;k<=e.length-i;k++){var m=e.charCodeAt(k);if(m>=we&&m<=Ae&&(m+=Fr),m!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=we&&b<=Ae&&(b+=Fr),w>=we&&w<=Ae&&(w+=Fr),b!==w){v=!1;break}}if(v)return k}return-1}function Q$(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=we&&a<=Ae&&(a+=Fr);for(let o=Math.min(r,e.length-i);o>=0;o--){var n=e.charCodeAt(o);if(n>=we&&n<=Ae&&(n+=Fr),n!==a)continue;let s=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(o+l),c=t.charCodeAt(l);if(u>=we&&u<=Ae&&(u+=Fr),c>=we&&c<=Ae&&(c+=Fr),u!==c){s=!1;break}}if(s)return o}return-1}var Ml=-1;function Od(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,o=1,s=t,l=e.length;for(Ml=-1;s<l&&o>0;){let f=zn(e,a,s),p=zn(e,n,s);if(p===-1)return-1;if(f!==-1&&f<p){let d=Wr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!bo(d.tag)&&o++,s=d.end):s=f+1}else{var u=p+n.length,c=u<l?e.charCodeAt(u):62;if((c===Ne||c===oe||c===le||c===fe)&&(o--,o===0)){Ml=p;let d=p+n.length;for(;d<l&&e.charCodeAt(d)!==Ne;)d++;return d+1}s=p+1}}return-1}function E1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Et(e,t,a),Xe>3&&!r.inHTML)return null;var n=t+He;if(e.charCodeAt(n)!==it)return null;var o=e.indexOf(">",n+1);if(o!==-1&&o<a){var s=e.slice(n+1,o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var l=ez(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<wd.length;f++){var p=zn(e,`</${wd[f]}>`,n);p>=0&&p<c&&(c=p)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?Le(e,d+1):e.length}}else{var m=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(m,n);k>=0&&(u=Le(e,k+m.length))}var v=e.slice(n,u);if(l>=2)return{node:{type:ne.htmlComment,text:v,s:!1,raw:!0},end:u};var g="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(g=b[1]);var w=Wr(e,n),S={},h;w&&!w.f&&(S=Kr(w.attrs,g,i),h=w.g+w.b);var y=[],C=g.toLowerCase(),x=`</${C}`,_=zn(v,x,0),E="",A,O,F;if(w!=null&&w.f){F=v.slice(0,w.end-n);for(var T=v.slice(w.end-n);T.length>0&&T.charCodeAt(T.length-1)===fe;)T=T.slice(0,-1);T&&(O=ar(T))}else if(w&&!w.f){var j=w.end-n;if(_===-1){for(var q=v;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);A=ar(q)}else{var H=j;v.charCodeAt(H)===fe&&H++;for(var Y=_;Y>H;){var Z=v.charCodeAt(Y-1);if(Z!==oe&&Z!==le&&Z!==fe&&Z!==Fn)break;Y--}var P=v.slice(H,Y);P&&(O=ar(P));for(var M=v.slice(_);M.length>0&&M.charCodeAt(M.length-1)===fe;)M=M.slice(0,-1);F=ar(M),E=v.slice(j,_).trim()}}var R=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:S,b:h,children:y,e:O,h:F,j:A,text:E,c:!0,a:R},end:u}}if(l===6||l===7){var I=g1(e,t),D=I<e.length?I:e.length,L=e.slice(n,D),B=I<e.length?Le(e,I):e.length,V=Wr(e,n);if(V){var W=V.tag,K=W.toLowerCase(),X=V.f;if(X){var z=e.slice(V.end,D);return{node:{type:ne.htmlBlock,tag:W,attrs:{},children:[],h:e.slice(n,V.end),e:z?ar(z):void 0,text:z,c:!0,a:!0},end:B}}if(V.n||bo(W))return{node:{type:ne.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:[],text:"",c:!1,a:!1},end:V.end<e.length&&e.charCodeAt(V.end)===fe?V.end+1:V.end};var $=r.d||0,J=e.slice(n,D),G=-1,ie=-1,re=!1;if($<10){for(var ue=`</${K}`,ye=V.end-n,Se=1,ke=ye;ke<J.length&&Se>0;){var Pe=zn(J,`<${K}`,ke),de=zn(J,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var We=Pe+K.length+1;if(We<J.length){var ut=J.charCodeAt(We);(ut===oe||ut===le||ut===fe||ut===Ne||ut===bt)&&Se++}ke=Pe+1}else{var ve=de+ue.length;if(ve<J.length){var Q=J.charCodeAt(ve);if((Q===Ne||Q===oe||Q===le||Q===fe)&&(Se--,Se===0)){G=de;for(var ee=ve;ee<J.length&&J.charCodeAt(ee)!==Ne;)ee++;ie=ee+1;break}}else if(Se--,Se===0){G=de,ie=J.length;break}ke=de+1}}if(G===-1&&!V.f&&(l===6||V.u)){var te=Od(e,V.end,K);if(te!==-1){for(var ge=Ml,ce=V.end,pt=!1,qe=!1,Ke=!1,St=0,xt=!1,ct=!1,Ct=ce;Ct<ge;){var yt=e.charCodeAt(Ct);if(yt===fe)ct&&(pt=!0),xt||St++,ct=!0,Ct++;else if(yt===oe||yt===le)Ct++;else{if(!xt&&(xt=!0,St>=2&&yt===it)){Ke=!0;break}if(ct=!1,yt===it){var Si=e.charCodeAt(Ct+1)|32;if((Si===gd||Si===Kk||Si===ia)&&(l1.lastIndex=Ct,l1.test(e))){qe=!0;break}}Ct++}}if(pt&&!Ke&&!qe){var Bn=Ye(e,te);D=Bn,B=Le(e,Bn),J=e.slice(n,D),L=e.slice(n,D),G=ge-n,ie=te-n,re=!0}}}}var At=V.b.indexOf(`
103
+ `}function oa(e){var r,i;if((e.type===ie.htmlSelfClosing||e.type===ie.htmlBlock)&&e.a)return[];if(e.type===ie.paragraph){var t=e.children;return t?t.flatMap(oa):[]}return e.type===ie.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===ie.htmlBlock&&e.children?[{...e,children:(i=e.children)==null?void 0:i.flatMap(oa)}]:[e]}function p1(e){for(var t=0;t<e.length;t++){if(e[t].type===ie.htmlBlock){var r=e[t],i=!1;if(r.c&&t===e.length-1){var a=r.j===void 0?r.a?r.e||"":(r.e||"")+(r.h||""):r.j,n=`</${String(r.tag).toLowerCase()}>`,s=a.toLowerCase().indexOf(n);if(s!==-1){var o=a.slice(s+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");o.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&p1(e[t].children)}}function B$(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(i.type===ie.paragraph&&i.children)for(var a=i.children,n=0;n<a.length;n++){var s=a[n];if(s.type===ie.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.push({type:ie.paragraph,children:a.slice(0,n)});var l=[];if(n+1<a.length){var c=a.slice(n+1).filter(u=>!(u.type===ie.htmlSelfClosing&&u.a));c.length>0&&(l=c)}return l=l.concat(e.slice(r+1)),{found:!0,beforeClose:o,afterClose:l}}}if((i.type===ie.htmlSelfClosing||i.type===ie.htmlBlock)&&i.a&&i.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function V$(e){var t="";for(var r in e){var i=e[r];i===!0?t+=` ${r}`:i!==void 0&&i!=null&&i!==!1&&(t+=` ${r}="${String(i)}"`)}return t}function m1(e,t,r,i){var a;return t===void 0?a=V$(r):a=t.length>0&&t.charCodeAt(0)>oe?` ${t}`:t,`<${e}${a}${i}`}function h1(e){var t=e.tag,r=e.type===ie.htmlSelfClosing,i=e,a=i.b,n=`</${t}>`;if(!r&&i.a)return{kind:"literal",literal:(i.h||n)+(i.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:m1(t,a,e.attrs," />")}}var o=m1(t,a,e.attrs,">"),l=i.children,c=l!=null&&l.length>0;if(i.c&&i.j!==void 0)return c?{kind:"sandwich",open:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!c)return{kind:"literal",literal:o+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var u="",f=0;f<l.length;f++){var p=l[f];if(p.type!==ie.text)return{kind:"sandwich",open:o,close:n};u+=p.text}return{kind:"literal",literal:o+u+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function H$(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var s=0;s<t.length;s++)i.push(t[s]);else t!=null&&i.push(t);n&&i.push(n);for(var o=[],l=0;l<i.length;l++){var c=i[l];typeof c=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+c:o.push(c)}return o}function la(e){return e==null||e.tagfilter!==!1}function W$(e,t,r,i){var a=t(e,r,i);return a===null?null:G$(a)}function K$(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 Cd(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var i=e,a=t.split("."),n=0;n<a.length&&(i=i==null?void 0:i[a[n]],i!==void 0);)n++;return i||r}function G$(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=oe||i===gi||i===vd||i===it||i===Ne||i===vt||i===Nt||i===Ir||i===un||i===Je||i>=123){t=!0;break}}if(!t)return e;for(var a="",r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i===vd&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Fe&&n<=De||n>=Ce&&n<=bd||n>=Ze&&n<=pi)&&(s>=Fe&&s<=De||s>=Ce&&s<=bd||s>=Ze&&s<=pi)){a+=e[r]+e[r+1]+e[r+2],r+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&r+1<e.length){var o=e.charCodeAt(r+1);if(o>=56320&&o<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function J$(...e){return e.filter(Boolean).join(" ")}var Y$=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Tl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function g1(e){return Y$.has(e.toLowerCase())}function X$(e){return Tl.lastIndex=0,Tl.test(e)}function y1(e){return Tl.lastIndex=0,e.replace(Tl,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function Ed(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,vi)}else a=vi;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||fn,slugify:a,tagfilter:la(r)}}var Z$=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Q$=/^<[A-Z]/,Ad=["script","pre","style","textarea"],ks=new Set(Ad),ez=/<(?:pre|script|style|textarea)\b/i,v1=/<(?:pre|script|style|textarea)\b/iy,xd=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,b1=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,k1=new Uint8Array(128);(()=>{for(var e=[Je,wt,gt,Pt,yr,vt,Wt,it,Nt,Ol,fe,_l,mi,pi],t=0;t<e.length;t++)k1[e[t]]=1})();var w1=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function tz(e){return ks.has(e)}function rz(e){return ez.test(e)}function S1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===ce);)i++;if(i>=a)return!1;e.charCodeAt(i)===Ft&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===ce);)i++;if(i>=a)break;if(e.charCodeAt(i)===Ft&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===oe||e.charCodeAt(s)===ce);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===$t&&i++,i>=a||e.charCodeAt(i)!==Pe)return!1;for(;i<a&&e.charCodeAt(i)===Pe;)i++;for(i<a&&e.charCodeAt(i)===$t&&i++,n++;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===ce);)i++;if(i<a)if(e.charCodeAt(i)===Ft)i++;else return!1}return n>0}var nz=/[\u0000-\u001F\u007F]/g,iz={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},az=/&#(x[0-9a-f]+|[0-9]+);?/gi;function sz(e){return e.indexOf("&#")===-1?e:e.replace(az,(t,r)=>{var i=r.charCodeAt(0)===i1||r.charCodeAt(0)===a1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function oz(e,t,r){if(r&&t.charCodeAt(0)===yi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===x$||i===A$)&&(a===E$||a===C$))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(iz[n]===1){var s=sz(Mn(t));if(fn(s)===null)return!0;var o=s.replace(nz,"");return o!==s&&fn(o)===null}return!1}function Od(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function C1(e,t,r,i){for(var a=[],n=t,s=0;s<i.length;s+=2){var o=i[s];if(o>n){var l=e.slice(n,o).trim();l&&a.push(l)}n=i[s+1]}if(n<r){var c=e.slice(n,r).trim();c&&a.push(c)}return a.join(" ")}function Wr(e,t){if(e.charCodeAt(t)!==it)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===bt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Ze&&s<=lt||s>=Ce&&s<=xe))return null;for(;r<i&&(e.charCodeAt(r)>=Ze&&e.charCodeAt(r)<=lt||e.charCodeAt(r)>=Ce&&e.charCodeAt(r)<=xe||e.charCodeAt(r)>=Fe&&e.charCodeAt(r)<=De||e.charCodeAt(r)===Pe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),c=l>=Ce&&l<=xe||o.indexOf("-")!==-1,u=r;for(;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===ce||e.charCodeAt(r)===fe);)r++;let f=e.slice(u,r);if(r===u&&r<i){var p=e.charCodeAt(r);if(p!==Ne&&p!==bt)return null}let d=r,h={},v=!1;for(var k=null;r<i;){let F=e.charCodeAt(r);if(F===Ne){let N=k?C1(e,d,r,k):e.slice(d,r);return{r:v,u:c,f:a,b:N,q:k!=null,n:!1,g:f,attrs:h,end:r+1,tag:o}}if(F===oe||F===ce||F===fe){r++;continue}if(F===bt&&r+1<i&&e.charCodeAt(r+1)===Ne){v=r>d&&e.charCodeAt(r-1)===oe;let N=k?C1(e,d,r,k):e.slice(d,r);return{r:v,u:c,f:a,b:N,q:k!=null,n:!0,g:f,attrs:h,end:r+2,tag:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Ze&&b<=lt||b>=Ce&&b<=xe||b===gt||b===$t))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Ze&&w<=lt||w>=Ce&&w<=xe||w>=Fe&&w<=De||w===gt||w===vr||w===$t||w===Pe)r++;else break}for(var E=e.slice(g,r),m=r;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===ce);)r++;var y,S;if(e.charCodeAt(r)===yr){for(r++;r<i&&(e.charCodeAt(r)===oe||e.charCodeAt(r)===ce);)r++;var x=e.charCodeAt(r);if(x===gi||x===hi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==x;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var C=e.charCodeAt(r);if(C!==oe&&C!==ce&&C!==fe&&C!==Ne&&C!==bt)return null}S=r}else if(x===yi){var A=1,_=r;for(r++;r<i&&A>0;){var w=e.charCodeAt(r);w===yi?A++:w===wd&&A--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===oe||O===ce||O===Ne||O===fe||O===gi||O===hi||O===yr||O===it||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=m;oz(E,y,c)?(k===null&&(k=[]),k.push(g,S)):h[E]=y}return null}function ar(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=Wr(e,t);n?(n.q&&(r+=e.slice(i,t)+Od(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function lz(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,s=!1;i<a;){for(var o=e.indexOf(`
104
+ `,i),l=o<0?a:o,c=i,u=0;c<l&&u<4;)if(e.charCodeAt(c)===oe)u++,c++;else if(e.charCodeAt(c)===ce)u+=4,c++;else break;if(c>=l){n=!1,i=o<0?a:o+1;continue}if(u<4){var f=e.charCodeAt(c);if(f===Je||f===Pt){for(var p=f,d=0,h=c;h<l&&e.charCodeAt(h)===p;)d++,h++;if(d>=3){var v=!0;if(p===Je){for(var k=h;k<l;k++)if(e.charCodeAt(k)===Je){v=!1;break}}if(v){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var E=e.charCodeAt(b);if(E===oe)w++,b++;else if(E===ce)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===p){for(var m=0;b<a&&e.charCodeAt(b)===p;)m++,b++;if(m>=d){for(;b<a&&(e.charCodeAt(b)===oe||e.charCodeAt(b)===ce);)b++;if(b>=a||e.charCodeAt(b)===fe){i=b>=a?a:b+1;break}}}for(;g<a&&e.charCodeAt(g)!==fe;)g++;g<a&&g++}g>=a&&(i=a,s=!0);continue}}}}for(var y=c;y<l&&e.charCodeAt(y)===Ne;){y++,y<l&&e.charCodeAt(y)===oe&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===oe)S++,y++;else if(e.charCodeAt(y)===ce)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&u<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===un)){var x=E1(e,y,t);if(x){i=x,n=!1;continue}}var _=e.charCodeAt(c);if(_===gr&&u<4)n=!1;else if(u<4&&(_===Pe||_===wt||_===gt)){for(var C=c,A=0;C<l;){var O=e.charCodeAt(C);if(O===_)A++;else if(O!==oe&&O!==ce)break;C++}n=!(A>=3&&C>=l)}else n=!0;i=o<0?a:o+1}return s}function E1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===un,n=t+1;for(;n<i;){var s=e.charCodeAt(n);if(s===Ir){n++;break}if(s===vt)return null;s===Nt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==Ir)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=Fl(o);if(!l||n>=i||e.charCodeAt(n)!==$t)return null;n++;let c=!1;for(;n<i;){let F=e.charCodeAt(n);if(F===oe||F===ce)n++;else if(F===fe&&!c)c=!0,n++;else break}if(a){let F=e.indexOf(`
105
+ `,n),N=F<0?i:F,M=e.slice(n,N).trim();return r[l]={target:M,title:void 0},F<0?i:F+1}var u;if(n<i&&e.charCodeAt(n)===it){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Ne&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Nt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Ne)return null;u=e.slice(f,n),n++;for(var p=e.indexOf(`
106
+ `,n),d=p<0?i:p,h=n;h<d&&(e.charCodeAt(h)===oe||e.charCodeAt(h)===ce);)h++;if(h<d){if(h===n)return null;var v=e.charCodeAt(h);if(v!==gi&&v!==hi&&v!==Tr)return null}}else{for(var f=n,k=0;n<i;){var s=e.charCodeAt(n);if(s===Tr)k++;else if(s===Nr){if(k===0)break;k--}else{if(s===oe||s===ce||s===fe)break;s===Nt&&n+1<i&&n++}n++}if(u=e.slice(f,n),!u)return null}for(;n<i&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===ce);)n++;var g=e.indexOf(`
107
+ `,n),b=g<0?i:g,w,E=!1,m=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===oe||e.charCodeAt(y)===ce);)y++;if(y<i){var S=e.charCodeAt(y);if(S===gi||S===hi||S===Tr){for(var x=S===Tr?41:S,_=y+1,C=_;_<i;){var A=e.charCodeAt(_);if(A===x){for(var O=_+1;O<i&&(e.charCodeAt(O)===oe||e.charCodeAt(O)===ce);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(C,_),E=!0,m=O<i?O+1:i);break}if(A===Nt&&_+1<i){_+=2;continue}if(A===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!E&&y===n)return null}}if(E)return r[l]||(r[l]={target:Mn(ca(u)),title:w===void 0?w:Mn(ca(w))}),m;for(;n<b&&(e.charCodeAt(n)===oe||e.charCodeAt(n)===ce);)n++;return n<b?null:(r[l]||(r[l]={target:Mn(ca(u)),title:w}),g<0?i:g+1)}var Zt=new Uint8Array(D$);for(Zt[gr]|=Dr,Zt[Ne]|=Dr,Zt[Pe]|=Dr|jn,Zt[Dn]|=Dr,Zt[wt]|=Dr|jn,Zt[gt]|=Dr|jn,Zt[Je]|=Dr|jn,Zt[Pt]|=Dr|jn,Zt[it]|=Dr|jn,Zt[vt]|=jn,Zt[Wt]|=jn,Zt[Ft]|=Dr,Nl=Fe;Nl<=De;Nl++)Zt[Nl]|=Dr;var Nl;function A1(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Nt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===Ir)return!0}return!1}function Fl(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===oe){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=Ce&&n<=xe){i=!1;break}else r=!1}if(i&&!r)return e;var s=e.replace(/\s+/g," ").trim();return s.indexOf("ẞ")!==-1?s.replace(/\u1E9E/g,"ss").toLowerCase():s.toLowerCase()}function _d(e){return e<Il?Zt[e]:e===k$?bi:0}function ca(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var Pd=null,Id=-1,Dl=-1;function Ye(e,t){if(t>=Id&&t<=Dl&&e===Pd)return Dl;var r=e.indexOf(`
108
+ `,t),i=r<0?e.length:r;return Pd=e,Id=t,Dl=i,i}function Le(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function ws(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==oe&&i!==ce)break;t++}return t}function x1(e,t){let r=Le(e,t);for(;r<e.length;){let i=Ye(e,r);if(Gt(e,r,i))return r;r=Le(e,r)}return e.length}function Ln(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Xe=0,He=0;function Et(e,t,r){for(Xe=0,He=0;t+He<r;){let i=e.charCodeAt(t+He);if(i===ce)Xe+=4-Xe%4;else if(i===oe)Xe++;else break;He++}}function Gt(e,t,r){return ws(e,t,r)>=r}function cz(e,t){if(!e)return e;var r=t.v||(t.v=Object.create(null)),i=r[e];if(i===void 0)return r[e]=0,e;for(var a=i+1,n=`${e}-${a}`;r[n]!==void 0;)a++,n=`${e}-${a}`;return r[e]=a,r[n]=0,n}function uz(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==gr)return null;let s=Ln(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==oe&&e.charCodeAt(n)!==ce))return null;n=ws(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===oe;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===gr;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===oe)for(;o>n&&e.charCodeAt(o-1)===oe;)o--;else o=l;let c=e.slice(n,o),u=fa(c,!1,r,i);return{node:{type:ie.heading,level:s,children:u,id:""},end:Le(e,a)}}function fz(e,t,r){var i=e.charCodeAt(t);if(i!==yr&&i!==Pe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===ce);)a++;return a>=r}function qn(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe>3)return null;let i=t+He,a=e.charCodeAt(i);if(a!==Pe&&a!==wt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==oe&&s!==ce)return null;i++}return n<3?null:{node:{type:ie.breakThematic},end:Le(e,r)}}var O1=0,_1=0,P1="";function dz(e,t,r){let i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;let a=Xe,n=t+He,s=e.charCodeAt(n);if(s!==Je&&s!==Pt)return null;let o=Ln(e,n,i,s);if(o<3)return null;n+=o;let l=ws(e,n,i),c=i;if(s===Je){for(let N=l;N<i;N++)if(e.charCodeAt(N)===Je)return null}for(;c>l&&(e.charCodeAt(c-1)===oe||e.charCodeAt(c-1)===ce);)c--;let u=e.slice(l,c),f="",p="",d=u.indexOf(" ");d===-1?f=u:(f=u.slice(0,d),p=u.slice(d+1).trim()),f=ca(f);var h;if(p){w1.lastIndex=0;for(var v;(v=w1.exec(p))!=null;)h||(h={}),h[v[1]]=v[2]===void 0?v[3]:v[2]}let k=Le(e,i),g=e.length,b=e.length;var w;s===O1&&o===_1?w=P1:(w=String.fromCharCode(s).repeat(o),O1=s,_1=o,P1=w);for(var E=k;E<e.length;){var m=e.indexOf(w,E);if(m===-1)break;for(var y=m,S=0;y>0&&S<4&&e.charCodeAt(y-1)===oe;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var x=m+o;x<e.length&&e.charCodeAt(x)===s;)x++;var _=Ye(e,x);if(Gt(e,x,_)){g=y,b=Le(e,_);break}}E=m+1}var C;if(a===0)C=g>k&&e.charCodeAt(g-1)===fe?e.slice(k,g-1):e.slice(k,g);else{C="";for(var A=k;A<g;){var O=Ye(e,A);Et(e,A,O);var F=Math.min(He,a);C+=`${e.slice(A+F,O)}
109
+ `,A=Le(e,O)}C.length>0&&C.charCodeAt(C.length-1)===fe&&(C=C.slice(0,-1))}return{node:{type:ie.codeBlock,lang:f||void 0,text:C,infoString:p||void 0,attrs:h},end:b}}function I1(e,t,r){for(var i=0,a=t;a<r&&i<4;)e.charCodeAt(a)===ce?i+=4-i%4:i++,a++;if(i<4)return"";for(var n="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function pz(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe<4)return null;let i="",a=t;for(;a<e.length;){let p=Ye(e,a);if(Et(e,a,p),Gt(e,a,p)){for(var n=`${I1(e,a,p)}
110
+ `,s=Le(e,p);s<e.length;){var o=Ye(e,s);if(Gt(e,s,o)){n+=`${I1(e,s,o)}
111
+ `,s=Le(e,o);continue}Et(e,s,o),Xe>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Xe<4)break;let d=0,h=0;var l=0;for(let v=a;v<p&&h<4;v++){if(e.charCodeAt(v)===ce){var c=4-h%4;h+c>4&&(l=h+c-4),h+=c}else h++;d++}var u="";if(l>0)for(var f=0;f<l;f++)u+=" ";u+=e.slice(a+d,p),i+=`${u}
112
+ `,a=Le(e,p)}for(;i.length>0&&i.charCodeAt(i.length-1)===fe;)i=i.slice(0,-1);return i?{node:{type:ie.codeBlock,lang:void 0,text:i,infoString:void 0,attrs:void 0},end:a}:null}function mz(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==Ne)return null;let s="",o=t,l,c=!1,u=!1,f=!1;for(;o<e.length;){let q=Ye(e,o);Et(e,o,q);let H=o+He;if(e.charCodeAt(H)===Ne){let J=H+1;var p=Xe+1,d=!1;if(J<q){var h=e.charCodeAt(J);h===oe?(J++,p++,d=!0):h===ce&&(d=!0)}for(var v="",k=!1,g=J;g<q;g++)if(e.charCodeAt(g)===ce){k=!0;break}if(k){var b=p;if(d&&J<q&&e.charCodeAt(J)===ce){for(var w=4-b%4,E=0;E<w-1;E++)v+=" ";b+=w,J++}for(var m=J;m<q;m++)if(e.charCodeAt(m)===ce){for(var y=4-b%4,S=0;S<y;S++)v+=" ";b+=y}else v+=e[m],b++}else v=e.slice(J,q);if(!(s||l)){let X=v.match(/^\[!([A-Za-z]+)\]\s*$/);if(X){l=X[1].toUpperCase(),o=Le(e,q);continue}}s+=`${v}
113
+ `;var x=v.trimStart();x.startsWith("```")||x.startsWith("~~~")?f=!f:(v.startsWith(" ")||v.startsWith(" "))&&(f=!0),u=x.length>0,o=Le(e,q)}else if(s&&!Gt(e,o,q)&&u){if(Xe<4){var _=o+He,C=_<q?e.charCodeAt(_):0;if(C===gr||C===Ne||C===Je||C===Pt||C===it||(C===Pe||C===wt||C===gt)&&qn(e,o)||(C===Pe||C===wt||C===Dn)&&_+1<q&&(e.charCodeAt(_+1)===oe||e.charCodeAt(_+1)===ce))break;if(C>=Fe&&C<=De){for(var A=_;A<q&&e.charCodeAt(A)>=Fe&&e.charCodeAt(A)<=De;)A++;if(A<q&&(e.charCodeAt(A)===vr||e.charCodeAt(A)===Nr))break}}if(f)break;s+=`${e.slice(o,q)}
114
+ `,c=!0,o=Le(e,q)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:F}=r;r.inBlockQuote=!0,c&&(r.l=!0);var N=r.i;r.i=N||!Gt(e,o,e.length);let M=Rn(s||"",r,i);return r.i=N,r.inBlockQuote=O,r.l=F,{node:{type:ie.blockQuote,children:M,alert:l||void 0},end:o}}function T1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===ce?i+=4-i%4:i++;return i}function $n(e,t,r){if(Et(e,t,r),Xe>3)return null;var i=t+He;if(i>=r)return null;var a=e.charCodeAt(i),n=Xe,s=i,o=i;if(a===Pe||a===wt||a===Dn){if(s=i+1,s<r&&e.charCodeAt(s)!==oe&&e.charCodeAt(s)!==ce&&e.charCodeAt(s)!==fe)return null}else if(a>=Fe&&a<=De){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Fe||l>De)break;o++}if(o>i&&o<r){var c=e.charCodeAt(o);if(c===vr||c===Nr){if(s=o+1,s<r&&e.charCodeAt(s)!==oe&&e.charCodeAt(s)!==ce&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var u=s,f=T1(e,t,s),p=0,d=u,h=f;if(u>=r)return{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,o),10):void 0,contentStart:u,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===ce);){if(e.charCodeAt(d)===ce){var v=4-h%4;h+=v}else h++;d++,p++}var k=d>=r,g=h-f;return k||g>4?(h=f+1,d=u+1,p=1):p===0&&(h=f+1,d=u,p=1),{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:h,markerCol:n,isEmpty:k}}var ua=0;function N1(e,t,r,i){var a=0,n=t;for(ua=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===ce){var o=4-a%4;if(a+o>i){ua=a+o-i,n++,a=i;break}a+=o}else if(s===oe)a++;else break;n++}return n}function F1(e,t,r,i){var a=Ye(e,t),n=$n(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,c="",u=n.isEmpty,f=!1,p=!1;if(!n.isEmpty){for(var d=!1,h=n.contentStart;h<a;h++)if(e.charCodeAt(h)===ce){d=!0;break}if(d){var v="",k=T1(e,t,n.contentStart),g=k-n.contentCol;if(g>0)for(var b=0;b<g;b++)v+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===ce){for(var E=4-k%4,m=0;m<E;m++)v+=" ";k+=E}else v+=e[w],k++;c=`${v}
115
+ `}else c=`${e.slice(n.contentStart,a)}
116
+ `}for(o=Le(e,a);o<e.length;){var y=Ye(e,o);Et(e,o,y);var S=e.charCodeAt(o+He);if(Xe<l&&(S===Pe||S===wt||S===gt)&&Xe<=3&&qn(e,o))break;var x=$n(e,o,y);if(x&&x.ordered===n.ordered&&x.marker===n.marker&&x.markerCol<l){s.push({contentCol:l,raw:c,hasBlankAfter:f,isEmpty:u}),f&&(p=!0),l=x.contentCol,u=x.isEmpty,f=!1,c=x.isEmpty?"":`${e.slice(x.contentStart,y)}
117
+ `,o=Le(e,y);continue}if(Gt(e,o,y)){var _=N1(e,o,y,l);if(ua>0||_<y){for(var C="",A=0;A<ua;A++)C+=" ";c+=`${C+e.slice(_,y)}
118
+ `}else c+=`
119
+ `;o=Le(e,y);for(var O=!1,F=0;F<c.length;F++){var N=c.charCodeAt(F);if(N!==fe&&N!==Fn&&N!==oe&&N!==ce){O=!0;break}}if(u&&!O)if(o<e.length){var M=Ye(e,o),q=$n(e,o,M);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(o<e.length){var H=Ye(e,o);Et(e,o,H);var J=e.charCodeAt(o+He);if((J===Pe||J===wt||J===gt)&&Xe<=3&&qn(e,o))break;var X=$n(e,o,H);if(X&&X.ordered===n.ordered&&X.marker===n.marker&&X.markerCol<l){f=!0;continue}if(!Gt(e,o,H)&&Xe<l)break}continue}if(Xe>=l){var P=N1(e,o,y,l);if(ua>0){for(var j="",U=l,T=0;T<ua;T++)j+=" ",U++;for(var D=P;D<y;D++)if(e.charCodeAt(D)===ce){for(var L=4-U%4,B=0;B<L;B++)j+=" ";U+=L}else j+=e[D],U++;c+=`${j}
120
+ `}else c+=`${e.slice(P,y)}
121
+ `;o=Le(e,y);continue}for(var V=!1,W=0;W<c.length;W++){var Y=c.charCodeAt(W);if(Y!==fe&&Y!==Fn&&Y!==oe&&Y!==ce){V=!0;break}}if(!f&&V&&!u){var Z=o+He,z=e.charCodeAt(Z),$=z===gr||z===Ne||z===it||z===Je||z===Pt||(z===Pe||z===wt||z===gt||z===Dn)&&(qn(e,o)!=null||$n(e,o,y)!=null)||z>=Fe&&z<=De&&$n(e,o,y)!=null;if(!$){c+=`${e.slice(Z,y)}
122
+ `,o=Le(e,y);continue}}break}if(s.push({contentCol:l,raw:c,hasBlankAfter:f,isEmpty:u}),s.length===0)return null;var G=p;if(!G)for(var K=0;K<s.length;K++){if(s[K].hasBlankAfter&&K<s.length-1){G=!0;break}if(!s[K].isEmpty){for(var ee=s[K].raw,te=ee.length,se=0,ge=!1,be=!1,ve=!1,Se=!1,de=0,We=0,ct=-1;se<te;){var ke=ee.indexOf(`
123
+ `,se);if(ke<0&&(ke=te),Se){Et(ee,se,ke);for(var Q=ee.slice(se+He,ke),re=0;re<Q.length&&Q.charCodeAt(re)===de;)re++;re>=We&&Q.slice(re).trim()===""&&(Se=!1),se=ke<te?ke+1:te;continue}if(Gt(ee,se,ke)){ct>=0?ve=!0:ge&&(be=!0),se=ke<te?ke+1:te;continue}if(Et(ee,se,ke),ct>=0){if(Xe>=ct){se=ke<te?ke+1:te;continue}var ne=$n(ee,se,ke);if(ne&&ne.markerCol<ct&&ne.contentCol<=ct){se=ke<te?ke+1:te;continue}if(ne){se=ke<te?ke+1:te;continue}ct=-1,ve&&(be=!0,ve=!1)}var ye=ee.slice(se+He,ke),ue=ye.charCodeAt(0);if((ue===Je||ue===Pt)&&Xe<=3){for(var pt=0;pt<ye.length&&ye.charCodeAt(pt)===ue;)pt++;if(pt>=3){if(be&&ge){G=!0;break}Se=!0,de=ue,We=pt,ge=!0,se=ke<te?ke+1:te;continue}}var qe=Xe<=3?$n(ee,se,ke):null;if(qe&&ge){if(be){G=!0;break}ct=qe.contentCol,ve=!1,se=ke<te?ke+1:te,ge=!0;continue}if(be){G=!0;break}ge=!0,se=ke<te?ke+1:te}if(G)break}}for(var Ke=[],St=0;St<s.length;St++){for(var xt=s[St],ut=xt.raw,Ct=ut.length;Ct>0&&ut.charCodeAt(Ct-1)===fe;)Ct--;var yt=Ct<ut.length?ut.slice(0,Ct):ut,Si=null;if(yt.length>=3&&yt.charCodeAt(0)===vt){var Bn=yt[1];(Bn===" "||Bn==="x"||Bn==="X")&&yt.charCodeAt(2)===Ir&&(Si={type:ie.gfmTask,completed:Bn==="x"||Bn==="X"},yt=yt.slice(3))}var At;if(xt.isEmpty&&yt.trim()==="")At=[];else if(G){var Ci=r.inList;r.inList=!0;var Vl=r.i;r.i=Vl||St!==s.length-1,At=Rn(yt,r,i),r.i=Vl,r.inList=Ci}else{var dn=r.inList;r.inList=!0;var Ei=r.i;if(r.i=Ei||St!==s.length-1,At=Rn(yt,r,i),r.i=Ei,r.inList=dn,At.length===1&&At[0].type===ie.paragraph)At=At[0].children;else if(r.p){var Vn=[];r.p.push({src:At,dest:Vn,unwrap:!0}),At=Vn}else{for(var Jr=[],Qt=0;Qt<At.length;Qt++)if(At[Qt].type===ie.paragraph)for(var Yr=At[Qt].children,ma=0;ma<Yr.length;ma++)Jr.push(Yr[ma]);else Jr.push(At[Qt]);At=Jr}}if(Si){var Ai=[Si,{type:ie.text,text:" "}];if(r.p)r.p.push({src:At,dest:Ai,unwrap:!1});else for(var Mr=0;Mr<At.length;Mr++)Ai.push(At[Mr]);Ke.push(Ai)}else Ke.push(At)}return{node:{type:n.ordered?ie.orderedList:ie.unorderedList,start:n.ordered?n.start:void 0,items:Ke},end:o}}var Ml=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 Kr(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let c={},u=[],f=0,p=0;for(let h=0;h<o.length;h++){let v=o.charCodeAt(h);v===Tr?f++:v===Nr?f--:v===Pl&&f===0&&(u.push(o.slice(p,h)),p=h+1)}p<o.length&&u.push(o.slice(p));let d=!1;u.forEach(h=>{let v=h.indexOf(":");if(v===-1)return;let k=h.slice(0,v).trim(),g=h.slice(v+1).trim();if(k&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let b=k.indexOf("-")===-1?k:k.replace(/-([a-z])/g,(w,E)=>E.toUpperCase());c[b]=g}}),!d&&Object.keys(c).length>0&&(i[s]=c)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let c=r.sanitizer(o,t,l);c!=null&&(i[s]=c)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===yi&&o.charCodeAt(o.length-1)===wd){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===yi)try{i[s]=JSON.parse(a);continue}catch{}}if(a==="true"){i[s]=!0;continue}if(a==="false"){i[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[s]=(0,eval)(`(${a})`);continue}catch{}i[s]=a}else i[s]=o}return i}function zn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=Ce&&a<=xe||a>=Ze&&a<=lt;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var c=e.indexOf(s,l);if(c===-1||c>o)return-1;for(var u=!0,f=1;f<i;f++){var p=e.charCodeAt(c+f),d=t.charCodeAt(f);if(p>=Ce&&p<=xe&&(p+=Fr),d>=Ce&&d<=xe&&(d+=Fr),p!==d){u=!1;break}}if(u)return c;l=c+1}return-1}a>=Ce&&a<=xe&&(a+=Fr);for(let v=r;v<=e.length-i;v++){var h=e.charCodeAt(v);if(h>=Ce&&h<=xe&&(h+=Fr),h!==a)continue;let k=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(v+g),w=t.charCodeAt(g);if(b>=Ce&&b<=xe&&(b+=Fr),w>=Ce&&w<=xe&&(w+=Fr),b!==w){k=!1;break}}if(k)return v}return-1}function hz(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=Ce&&a<=xe&&(a+=Fr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=Ce&&n<=xe&&(n+=Fr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let c=e.charCodeAt(s+l),u=t.charCodeAt(l);if(c>=Ce&&c<=xe&&(c+=Fr),u>=Ce&&u<=xe&&(u+=Fr),c!==u){o=!1;break}}if(o)return s}return-1}var jl=-1;function Td(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(jl=-1;o<l&&s>0;){let f=zn(e,a,o),p=zn(e,n,o);if(p===-1)return-1;if(f!==-1&&f<p){let d=Wr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!bs(d.tag)&&s++,o=d.end):o=f+1}else{var c=p+n.length,u=c<l?e.charCodeAt(c):62;if((u===Ne||u===oe||u===ce||u===fe)&&(s--,s===0)){jl=p;let d=p+n.length;for(;d<l&&e.charCodeAt(d)!==Ne;)d++;return d+1}o=p+1}}return-1}function D1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Et(e,t,a),Xe>3&&!r.inHTML)return null;var n=t+He;if(e.charCodeAt(n)!==it)return null;var s=e.indexOf(">",n+1);if(s!==-1&&s<a){var o=e.slice(n+1,s);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)||/^[^\s@]+@[^\s@]+$/.test(o))return null}var l=gz(e,n);if(l>=1&&l<=5){var c=e.length;if(l===1){for(var u=e.length,f=0;f<Ad.length;f++){var p=zn(e,`</${Ad[f]}>`,n);p>=0&&p<u&&(u=p)}if(u<e.length){var d=e.indexOf(">",u);c=d>=0?Le(e,d+1):e.length}}else{var h=l===2?"-->":l===3?"?>":l===4?">":"]]>",v=e.indexOf(h,n);v>=0&&(c=Le(e,v+h.length))}var k=e.slice(n,c);if(l>=2)return{node:{type:ie.htmlComment,text:k,s:!1,raw:!0},end:c};var g="div",b=k.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(g=b[1]);var w=Wr(e,n),E={},m;w&&!w.f&&(E=Kr(w.attrs,g,i),m=w.g+w.b);var y=[],S=g.toLowerCase(),x=`</${S}`,_=zn(k,x,0),C="",A,O,F;if(w!=null&&w.f){F=k.slice(0,w.end-n);for(var N=k.slice(w.end-n);N.length>0&&N.charCodeAt(N.length-1)===fe;)N=N.slice(0,-1);N&&(O=ar(N))}else if(w&&!w.f){var M=w.end-n;if(_===-1){for(var q=k;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);A=ar(q)}else{var H=M;k.charCodeAt(H)===fe&&H++;for(var J=_;J>H;){var X=k.charCodeAt(J-1);if(X!==oe&&X!==ce&&X!==fe&&X!==Fn)break;J--}var P=k.slice(H,J);P&&(O=ar(P));for(var j=k.slice(_);j.length>0&&j.charCodeAt(j.length-1)===fe;)j=j.slice(0,-1);F=ar(j),C=k.slice(M,_).trim()}}var U=w?w.f:!1;return{node:{type:ie.htmlBlock,tag:g,attrs:E,b:m,children:y,e:O,h:F,j:A,text:C,c:!0,a:U},end:c}}if(l===6||l===7){var T=x1(e,t),D=T<e.length?T:e.length,L=e.slice(n,D),B=T<e.length?Le(e,T):e.length,V=Wr(e,n);if(V){var W=V.tag,Y=W.toLowerCase(),Z=V.f;if(Z){var z=e.slice(V.end,D);return{node:{type:ie.htmlBlock,tag:W,attrs:{},children:[],h:e.slice(n,V.end),e:z?ar(z):void 0,text:z,c:!0,a:!0},end:B}}if(V.n||bs(W))return{node:{type:ie.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:[],text:"",c:!1,a:!1},end:V.end<e.length&&e.charCodeAt(V.end)===fe?V.end+1:V.end};var $=r.d||0,G=e.slice(n,D),K=-1,ee=-1,te=!1;if($<10){for(var se=`</${Y}`,ge=V.end-n,be=1,ve=ge;ve<G.length&&be>0;){var Se=zn(G,`<${Y}`,ve),de=zn(G,se,ve);if(de===-1)break;if(Se!==-1&&Se<de){var We=Se+Y.length+1;if(We<G.length){var ct=G.charCodeAt(We);(ct===oe||ct===ce||ct===fe||ct===Ne||ct===bt)&&be++}ve=Se+1}else{var ke=de+se.length;if(ke<G.length){var Q=G.charCodeAt(ke);if((Q===Ne||Q===oe||Q===ce||Q===fe)&&(be--,be===0)){K=de;for(var re=ke;re<G.length&&G.charCodeAt(re)!==Ne;)re++;ee=re+1;break}}else if(be--,be===0){K=de,ee=G.length;break}ve=de+1}}if(K===-1&&!V.f&&(l===6||V.u)){var ne=Td(e,V.end,Y);if(ne!==-1){for(var ye=jl,ue=V.end,pt=!1,qe=!1,Ke=!1,St=0,xt=!1,ut=!1,Ct=ue;Ct<ye;){var yt=e.charCodeAt(Ct);if(yt===fe)ut&&(pt=!0),xt||St++,ut=!0,Ct++;else if(yt===oe||yt===ce)Ct++;else{if(!xt&&(xt=!0,St>=2&&yt===it)){Ke=!0;break}if(ut=!1,yt===it){var Si=e.charCodeAt(Ct+1)|32;if((Si===kd||Si===n1||Si===ia)&&(v1.lastIndex=Ct,v1.test(e))){qe=!0;break}}Ct++}}if(pt&&!Ke&&!qe){var Bn=Ye(e,ne);D=Bn,B=Le(e,Bn),G=e.slice(n,D),L=e.slice(n,D),K=ye-n,ee=ne-n,te=!0}}}}var At=V.b.indexOf(`
124
124
  `)!==-1||V.g.indexOf(`
125
- `)!==-1,Ci=!1;if(G!==-1){var Rl=J.slice(ie).trim();Ci=Rl.length===0}var dn=!1,Ei=D,Vn=B;if(G!==-1){var Jr=n+ie,Qt=Ye(e,Jr-1);if(Jr<Qt){for(var Yr=Jr;Yr<Qt&&(e.charCodeAt(Yr)===oe||e.charCodeAt(Yr)===le);)Yr++;if(Yr<Qt&&e.charCodeAt(Yr)===it){var ma=Wr(e,Yr);ma&&!ma.f&&(dn=!0,Ei=Jr,Vn=Jr,Ci=!0)}}if(!dn){var Ai=Le(e,Qt);if(Ai<D){for(var Mr=Ai;Mr<D&&(e.charCodeAt(Mr)===oe||e.charCodeAt(Mr)===le);)Mr++;if(Mr<D&&e.charCodeAt(Mr)===it){var n4=Wr(e,Mr);n4&&(dn=!0,Ei=Qt,Vn=Ai,Ci=!0)}}}if(!dn&&r.inHTML){dn=!0,Ei=Qt,Vn=Le(e,Qt);var i4=e.slice(Jr,Qt).trim();Ci=i4.length===0}}var ha=[],or="";if(G!==-1){or=J.slice(V.end-n,G);var ga=or.trim();if(ga){var{inline:a4,inHTML:o4,d:s4}=r;r.inHTML=!0,r.d=$+1;var l4=K==="p";if(l4)r.inline=!0,ha=fa(ga,!1,r,i);else{var J1=or.indexOf(`
125
+ `)!==-1,Ci=!1;if(K!==-1){var Vl=G.slice(ee).trim();Ci=Vl.length===0}var dn=!1,Ei=D,Vn=B;if(K!==-1){var Jr=n+ee,Qt=Ye(e,Jr-1);if(Jr<Qt){for(var Yr=Jr;Yr<Qt&&(e.charCodeAt(Yr)===oe||e.charCodeAt(Yr)===ce);)Yr++;if(Yr<Qt&&e.charCodeAt(Yr)===it){var ma=Wr(e,Yr);ma&&!ma.f&&(dn=!0,Ei=Jr,Vn=Jr,Ci=!0)}}if(!dn){var Ai=Le(e,Qt);if(Ai<D){for(var Mr=Ai;Mr<D&&(e.charCodeAt(Mr)===oe||e.charCodeAt(Mr)===ce);)Mr++;if(Mr<D&&e.charCodeAt(Mr)===it){var L4=Wr(e,Mr);L4&&(dn=!0,Ei=Qt,Vn=Ai,Ci=!0)}}}if(!dn&&r.inHTML){dn=!0,Ei=Qt,Vn=Le(e,Qt);var q4=e.slice(Jr,Qt).trim();Ci=q4.length===0}}var ha=[],sr="";if(K!==-1){sr=G.slice(V.end-n,K);var ga=sr.trim();if(ga){var{inline:$4,inHTML:z4,d:R4}=r;r.inHTML=!0,r.d=$+1;var U4=Y==="p";if(U4)r.inline=!0,ha=fa(ga,!1,r,i);else{var c0=sr.indexOf(`
126
126
 
127
- `)!==-1,Y1=Sd.test(ga),Bd=u1.test(ga),u4=J1||Y1||r.inHTML&&Bd,c4=or.length>=2&&or.charCodeAt(0)===fe&&or.charCodeAt(or.length-1)===fe&&!J1;c4&&!Y1&&!Bd?ha=[{type:ne.text,text:ga}]:u4||Bd?(r.inline=!1,ha=Rn(or,r,i)):(r.inline=!0,ha=fa(ga,!1,r,i))}r.inline=a4,r.inHTML=o4,r.d=s4}}var X1=!1;if(l===6&&G!==-1&&!r.inHTML&&!At){var f4=/<[a-zA-Z][^>]*>/.test(or),d4=or.indexOf(`
127
+ `)!==-1,u0=xd.test(ga),Xd=b1.test(ga),B4=c0||u0||r.inHTML&&Xd,V4=sr.length>=2&&sr.charCodeAt(0)===fe&&sr.charCodeAt(sr.length-1)===fe&&!c0;V4&&!u0&&!Xd?ha=[{type:ie.text,text:ga}]:B4||Xd?(r.inline=!1,ha=Rn(sr,r,i)):(r.inline=!0,ha=fa(ga,!1,r,i))}r.inline=$4,r.inHTML=z4,r.d=R4}}var f0=!1;if(l===6&&K!==-1&&!r.inHTML&&!At){var H4=/<[a-zA-Z][^>]*>/.test(sr),W4=sr.indexOf(`
128
128
 
129
- `)!==-1||Sd.test(or);f4&&!d4&&(X1=!0)}var p4=!re&&(r.inHTML||l===7||At||!Ci||X1);if(p4){var Eo,Xr,Z1=!1;if(G!==-1&&dn){var Q1=!1;if(r.inHTML&&ie<J.length){for(var Ul=ie;Ul<J.length&&J.charCodeAt(Ul)!==fe;)Ul++;var Vd=J.slice(ie,Ul).trim();Q1=Vd.length>1&&Vd.charCodeAt(0)===it&&Vd.charCodeAt(1)!==bt}Xr=Q1?J.slice(V.end-n):or,Z1=!0}else(l===7||r.inHTML)&&G!==-1?(Xr=J.slice(V.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1))):dn?Eo=e.slice(n,Ei):At?Eo=L:(Xr=J.slice(V.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1)));var e0=Eo!==void 0,Hd=ar(Eo===void 0?Xr||"":Eo),t0={type:ne.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:ha,e:e0?void 0:Hd,j:e0?Hd:void 0,text:Hd,c:!0,a:!1};return Z1&&(t0.x=!0),{node:t0,end:Vn}}var r0=ar(or);return{node:{type:ne.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:ha,e:re?void 0:r0,text:r0,c:!1,a:!1},end:Vn}}var Bl=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),m4=Bl?Bl[2]:"div",Wd=Bl?Bl[1]==="/":!1,Kd,n0,i0,Vl="";if(Wd){var Gd=L.indexOf(">");Gd===-1?Kd=L:(Kd=L.slice(0,Gd+1),Vl=L.slice(Gd+1),Vl&&(n0=ar(Vl)))}else i0=ar(L);return{node:{type:ne.htmlBlock,tag:m4,attrs:{},children:[],e:n0,h:Kd,j:i0,text:Wd?Vl:L,c:!0,a:Wd},end:B}}var Rt=Wr(e,n);if(!Rt)return null;var Hn=Rt.tag,Jd=Hn.toLowerCase(),a0=Hn.charCodeAt(0),Yd=a0>=we&&a0<=Ae;if(!(Yd||Dl.has(Jd)||ko.has(Jd)||Jd.includes("-")))return null;if(Rt.f)return{node:{type:ne.htmlSelfClosing,tag:Hn,attrs:{},h:e.slice(n,Rt.end),a:!0},end:Rt.end};var ya=Od(e,Rt.end,Hn),Ao=[];if(ya!==-1){var h4=Ml,Hl=e.slice(Rt.end,h4),Wl=Hl.trim();if(Wl){var g4=Hl.indexOf(`
129
+ `)!==-1||xd.test(sr);H4&&!W4&&(f0=!0)}var K4=!te&&(r.inHTML||l===7||At||!Ci||f0);if(K4){var Es,Xr,d0=!1;if(K!==-1&&dn){var p0=!1;if(r.inHTML&&ee<G.length){for(var Hl=ee;Hl<G.length&&G.charCodeAt(Hl)!==fe;)Hl++;var Zd=G.slice(ee,Hl).trim();p0=Zd.length>1&&Zd.charCodeAt(0)===it&&Zd.charCodeAt(1)!==bt}Xr=p0?G.slice(V.end-n):sr,d0=!0}else(l===7||r.inHTML)&&K!==-1?(Xr=G.slice(V.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1))):dn?Es=e.slice(n,Ei):At?Es=L:(Xr=G.slice(V.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1)));var m0=Es!==void 0,Qd=ar(Es===void 0?Xr||"":Es),h0={type:ie.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:ha,e:m0?void 0:Qd,j:m0?Qd:void 0,text:Qd,c:!0,a:!1};return d0&&(h0.x=!0),{node:h0,end:Vn}}var g0=ar(sr);return{node:{type:ie.htmlBlock,tag:W,attrs:Kr(V.attrs,W,i),b:V.g+V.b,children:ha,e:te?void 0:g0,text:g0,c:!1,a:!1},end:Vn}}var Wl=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),G4=Wl?Wl[2]:"div",ep=Wl?Wl[1]==="/":!1,tp,y0,v0,Kl="";if(ep){var rp=L.indexOf(">");rp===-1?tp=L:(tp=L.slice(0,rp+1),Kl=L.slice(rp+1),Kl&&(y0=ar(Kl)))}else v0=ar(L);return{node:{type:ie.htmlBlock,tag:G4,attrs:{},children:[],e:y0,h:tp,j:v0,text:ep?Kl:L,c:!0,a:ep},end:B}}var Rt=Wr(e,n);if(!Rt)return null;var Hn=Rt.tag,np=Hn.toLowerCase(),b0=Hn.charCodeAt(0),ip=b0>=Ce&&b0<=xe;if(!(ip||Ml.has(np)||ks.has(np)||np.includes("-")))return null;if(Rt.f)return{node:{type:ie.htmlSelfClosing,tag:Hn,attrs:{},h:e.slice(n,Rt.end),a:!0},end:Rt.end};var ya=Td(e,Rt.end,Hn),As=[];if(ya!==-1){var J4=jl,Gl=e.slice(Rt.end,J4),Jl=Gl.trim();if(Jl){var Y4=Gl.indexOf(`
130
130
 
131
- `)!==-1,y4=Sd.test(Wl),v4=u1.test(Wl),b4=r.inline,k4=r.inHTML,w4=r.d;r.inHTML=!0,r.d=(r.d||0)+1,g4||y4||v4?(r.inline=!1,Ao=Rn(Hl,r,i)):(r.inline=!0,Ao=fa(Wl,!1,r,i)),r.inline=b4,r.inHTML=k4,r.d=w4}var S4=Ye(e,ya),C4=e.slice(ya,S4).trim(),o0=C4?ya:Le(e,ya),s0=Yd?e.slice(n,ya):e.slice(n,o0);return{node:{type:ne.htmlBlock,tag:Hn,attrs:Kr(Rt.attrs,Hn,i),b:Rt.g+Rt.b,children:Ao,j:ar(s0),text:Yd?Hl:s0,c:!0,a:!1},end:o0}}var xo=g1(e,Rt.end),E4=xo<e.length?Le(e,xo):xo,Xd=e.slice(Rt.end,xo);if(Xd.trim()){var{inline:A4,inHTML:x4,d:O4}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,Ao=Rn(Xd,r,i),r.inline=A4,r.inHTML=x4,r.d=O4}var _4=e.slice(Rt.end,xo);return{node:{type:ne.htmlBlock,tag:Hn,attrs:Kr(Rt.attrs,Hn,i),b:Rt.g+Rt.b,children:Ao,e:ar(_4),text:Xd,c:!0,a:!1},end:E4}}function ez(e,t){if(e.charCodeAt(t)!==it)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===_e&&e.charCodeAt(r+2)===_e)return 2;if(e.charCodeAt(r)===aa)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=we&&a<=Ae)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===bt,o=n?r+1:r,s=o;s<i;){var l=e.charCodeAt(s);if(l>=we&&l<=Ae||l>=Ze&&l<=lt||l>=Fe&&l<=De||l===_e)s++;else break}if(s===o)return 0;var u=e.slice(o,s);if(ko.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(s);return c===oe||c===le||c===Ne||c===fe||s>=i?1:0}if(Dl.has(u.toLowerCase())){if(n){for(var f=s;f<i&&(e.charCodeAt(f)===oe||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Ne?6:0}var p=s<i?e.charCodeAt(s):-1;return p===oe||p===le||p===Ne||p===fe||p===bt||p===-1?6:0}if(n){for(var d=s;d<i&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Ne){var m=Ye(e,t),k=e.slice(d+1,m).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=Wr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function A1(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===oe||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===Ft&&i++,a>i&&e.charCodeAt(a-1)===Ft&&(a-2<i||e.charCodeAt(a-2)!==Nt)&&a--;for(var n=[],o=i,s=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Nt&&u+1<a){e.charCodeAt(u+1)===Ft?(s||(s=!0,l=[]),l.push(e.slice(o,u)),l.push("|"),u+=2,o=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var p=!1;u<a&&!p;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?p=!0:d===0&&u++}continue}if(c===Ft){var m=s?(l.push(e.slice(o,u)),l.join("")):e.slice(o,u);n.push(m.trim()),u++,o=u,s=!1,l=[];continue}u++}var k=s?(l.push(e.slice(o,a)),l.join("")):e.slice(o,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?fa(g,!1,t,r):[]})}function x1(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let o=Le(e,a);if(o>=e.length)return null;let s=Ye(e,o);if(!d1(e,o,s))return null;let l=e.slice(t,a),u=e.slice(o,s);for(var c=[],f=0,p=u.length;f<p&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;for(f<p&&u.charCodeAt(f)===Ft&&f++;f<p;){for(;f<p&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;if(f>=p||u.charCodeAt(f)===Ft)break;var d=u.charCodeAt(f)===$t;for(d&&f++;f<p&&u.charCodeAt(f)===_e;)f++;var m=f<p&&u.charCodeAt(f)===$t;for(m&&f++,c.push(d&&m?"center":m?"right":d?"left":null);f<p&&(u.charCodeAt(f)===oe||u.charCodeAt(f)===le);)f++;f<p&&u.charCodeAt(f)===Ft&&f++}let k=A1(l,r,i);if(c.length!==k.length)return null;let v=[],g=Le(e,s);for(;g<e.length;){let C=Ye(e,g),x=e.slice(g,C);if(Gt(e,g,C))break;if(Et(e,g,C),Xe<4){var b=e.charCodeAt(g+He);if(b===Ne||b===gr||(b===_e||b===wt||b===gt)&&qn(e,g))break;if(b===Je||b===Pt){for(var w=g+He,S=0;w<C&&e.charCodeAt(w)===b;)S++,w++;if(S>=3)break}}v.push(A1(x,r,i)),g=Le(e,C)}if(i.optimizeForStreaming&&v.length===0)return null;for(var h=k.length,y=0;y<v.length;y++)if(v[y].length<h)for(;v[y].length<h;)v[y].push([]);else v[y].length>h&&(v[y].length=h);return{node:{type:ne.table,header:k,cells:v,align:c},end:g}}function tz(e,t,r){var i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;var a=t+He;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===cn){var n=rz(e,a,r);return n||null}r.refs||(r.refs={});var o=m1(e,a,r.refs);return o===null?null:{node:{type:ne.refCollection},end:o}}function rz(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==cn)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==Ir;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var o=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==$t)return null;for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===le);)a++;var s=e.indexOf(`
132
- `,a);s<0&&(s=i);for(var l=e.slice(a,s).trim(),u=s<i?s+1:i;u<i;){var c=Ye(e,u);if(Et(e,u,c),Xe>=2&&!Gt(e,u,c))l+=`
133
- ${e.slice(u,c)}`,u=Le(e,c);else if(Gt(e,u,c)){var f=Le(e,c);if(f<i){var p=Ye(e,f);if(Et(e,f,p),Xe>=2){l+=`
134
- `,u=Le(e,c);continue}}break}else break}var d=r.refs;return d&&!d[o]&&(d[o]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function nz(e,t,r,i){let a=t,n=0,o=0,s=-1;for(;a<e.length;){let F=s>=0?s:Ye(e,a);if(s=-1,Gt(e,a,F))break;if(Et(e,a,F),Xe<4&&o>0&&!r.l){let j=e.charCodeAt(a+He);if(j===yr||j===_e){let q=a+He;for(;q<F&&e.charCodeAt(q)===j;)q++;for(;q<F&&(e.charCodeAt(q)===oe||e.charCodeAt(q)===le);)q++;if(q>=F){n=j===yr?1:2,a=Le(e,F);break}}}o=F;let T=Le(e,F);if(T<e.length){if(e.charCodeAt(T)===vd){var l=Ye(e,T);a=Le(e,l),o=l;continue}let j=Ye(e,T);if(s=j,Et(e,T,j),Xe<4){let q=e.charCodeAt(T+He);if(q===Ne){a=T;break}if(q===gr){for(var u=T+He,c=0;u<j&&e.charCodeAt(u)===gr&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=j||e.charCodeAt(u)===oe||e.charCodeAt(u)===le)){a=T;break}}if(q===Je||q===Pt){for(var f=T+He,p=0;f<j&&e.charCodeAt(f)===q;)p++,f++;if(p>=3){a=T;break}}if(q===it){var d=T+He+1,m=d<j?e.charCodeAt(d):0,k=m===Wt||m===aa;if(!k&&m===bt){for(var v=d+1,g=v;g<j&&(e.charCodeAt(g)>=we&&e.charCodeAt(g)<=Ae||e.charCodeAt(g)>=Ze&&e.charCodeAt(g)<=lt||e.charCodeAt(g)>=Fe&&e.charCodeAt(g)<=De||e.charCodeAt(g)===_e);)g++;g>v&&(k=Dl.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<j&&(e.charCodeAt(b)>=we&&e.charCodeAt(b)<=Ae||e.charCodeAt(b)>=Ze&&e.charCodeAt(b)<=lt||e.charCodeAt(b)>=Fe&&e.charCodeAt(b)<=De||e.charCodeAt(b)===_e);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=Dl.has(w)||ko.has(w)}}if(k&&E1(e,T,r,i)){a=T;break}}if(q===_e||q===wt||q===Dn){let H=T+He+1;if(H<j&&(e.charCodeAt(H)===oe||e.charCodeAt(H)===le)){var S=wo(e,H,j);if(S<j&&!qn(e,T)){a=T;break}}}if(q>=Fe&&q<=De){let H=T+He;for(;H<j&&e.charCodeAt(H)>=Fe&&e.charCodeAt(H)<=De;)H++;if(H<j&&(e.charCodeAt(H)===vr||e.charCodeAt(H)===Nr)&&H-(T+He)===1&&e.charCodeAt(T+He)===49){var h=H+1;if(h<j&&(e.charCodeAt(h)===oe||e.charCodeAt(h)===le)){var y=wo(e,h,j);if(y<j){a=T;break}}}}if(q===Ft){let H=Le(e,j);if(H<e.length){let Y=Ye(e,H);if(d1(e,H,Y)){a=T;break}}}if((q===_e||q===wt||q===gt)&&qn(e,T)){if(q!==_e){a=T;break}let H=T+He;for(;H<j&&e.charCodeAt(H)===_e;)H++;for(;H<j&&(e.charCodeAt(H)===oe||e.charCodeAt(H)===le);)H++;if(H<j){a=T;break}}}}a=Le(e,F)}for(var C=n?o:a;C>t&&(e.charCodeAt(C-1)===fe||e.charCodeAt(C-1)===Fn||e.charCodeAt(C-1)===oe||e.charCodeAt(C-1)===le);)C--;for(var x=t;x<C&&(e.charCodeAt(x)===oe||e.charCodeAt(x)===le);)x++;if(x>=C)return null;for(var _=!1,E=x;E<C;E++)if(e.charCodeAt(E)===vd){_=!0;break}var A=_?e.slice(x,C).replace(/\u001E/g,""):e.slice(x,C);if(!A)return null;let O=fa(A,!0,r,i);return n?{node:{type:ne.heading,level:n,children:O,id:""},end:a}:{node:{type:ne.paragraph,children:O},end:a}}function fa(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var o=Gr(e,0,e.length,r,i);return r.k=n,o}var s=[];return a.push({dest:s,text:e,breaks:t,inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o}),s}function iz(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let o=Ln(e,n,r,96);if(o===i){let s=e.slice(t+i,n);return s.indexOf(`
135
- `)!==-1&&(s=s.replace(/\n/g," ")),s.length>0&&s[0]===" "&&s.at(-1)===" "&&s.trim().length>0&&(s=s.slice(1,-1)),{node:{type:ne.codeInline,text:s},end:n+o}}a=n+o}return null}function _d(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let o=Ln(e,n,r,96);if(o===i)return n+o;a=n+o}return t}function az(e,t,r){if(e.charCodeAt(t)!==it)return t;if(t+1<r&&e.charCodeAt(t+1)===bt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Ne;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===_e&&e.charCodeAt(t+3)===_e){let u=e.indexOf("-->",t+4);return u>=0?u+3:t}let i=t+1,a=i;for(;i<r;){let u=e.charCodeAt(i);if(u>=we&&u<=Ae||u>=Ze&&u<=lt||u>=Fe&&u<=De||u===_e)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),o=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Ne){i++;break}if(u===bt&&i+1<r&&e.charCodeAt(i+1)===Ne){i+=2,o=!0;break}if(u===gi||u===hi){var s=u;for(i++;i<r&&e.charCodeAt(i)!==s;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(o||bo(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===it)if(i+1<r&&e.charCodeAt(i+1)===bt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Ne;)c++;if(c<r&&c++,l--,l===0)return c}i=c}else{let u=i+1,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function oz(e,t,r,i,a){if(e.charCodeAt(t)!==Pt||t+1>=r||e.charCodeAt(t+1)!==Pt)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===Je){let s=_d(e,n,r);if(s>n){n=s;continue}}if(o===Pt&&e.charCodeAt(n+1)===Pt){let s=e.slice(t+2,n),l=Gr(s,0,s.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}o===Nt&&n+1<r&&n++,n++}return null}function sz(e,t,r,i,a){if(e.charCodeAt(t)!==yr||t+1>=r||e.charCodeAt(t+1)!==yr)return null;let n=t+2;for(;n+1<r;){let o=e.charCodeAt(n);if(o===Je){let s=_d(e,n,r);if(s>n){n=s;continue}}if(o===yr&&e.charCodeAt(n+1)===yr&&n>t+2){let s=e.slice(t+2,n),l=Gr(s,0,s.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}o===Nt&&n+1<r&&n++,n++}return null}function O1(e,t,r){return e<Pl?!!(Ed(e)&oa):b$.test(t[r])}function _1(e,t,r){return e<Pl?!!(Ed(e)&bi):k$.test(t[r])}function lz(e,t,r){var i=e.charCodeAt(t);if(i!==wt&&i!==gt)return null;var a=Ln(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,o=t+a<r?e.charCodeAt(t+a):32,s=_1(n,e,t-1),l=_1(o,e,t+a),u=t>0?O1(n,e,t-1):!1,c=t+a<r?O1(o,e,t+a):!1,f=!l&&(!c||s||u),p=!s&&(!u||l||c),d,m;return i===wt?(d=f,m=p):(d=f&&(!p||u),m=p&&(!f||c)),{len:a,canOpen:d,canClose:m}}function uz(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),o=null,s=null,l=0;l<a;l++){var u={node:e[l],prev:s,next:null};s?s.next=u:o=u,n[l]=u,s=u}for(var c=Array(t.length),f=0;f<t.length;f++)c[f]=n[t[f].idx];for(var p=[],d=0;d<12;d++)p[d]=-1;for(var m=0;m<t.length;){var k=t[m];if(!(k.active&&k.canClose)){m++;continue}for(var v=k.ch===wt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=p[g]===void 0?-1:p[g],w=-1,S=m-1;S>b;S--){var h=t[S];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=S;break}}if(w<0){p[g]=m-1,!k.canOpen&&(k.active=!1),m++;continue}var y=t[w],C=y.len>=2&&k.len>=2,x=C?2:1;y.len-=x,k.len-=x;var _=c[w],E=c[m],A=_.node,O=E.node;A.text=A.text.slice(0,A.text.length-x),O.text=O.text.slice(x);for(var F=[],T=_.next;T&&T!==E;)F.push(T.node),T=T.next;var j={type:ne.textFormatted,tag:C?"strong":"em",children:F},q={node:j,prev:_,next:E};_.next=q,E.prev=q;for(var H=w+1;H<m;H++)t[H].active=!1;if(y.len===0&&(y.active=!1,A.text==="")){var Y=_.prev;q.prev=Y,Y?Y.next=q:o=q}if(k.len===0){if(k.active=!1,O.text===""){var Z=E.next;q.next=Z,Z&&(Z.prev=q)}}else continue;m++}for(var P=0,M=o;M;){var R=M.node;if(R.type===ne.text){var I=R;if(I.text===""){M=M.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,M=M.next;continue}}e[P++]=R,M=M.next}e.length=P}}function jl(e,t,r,i){return t(e,r,i)===null?null:e}var P1=0,Pd=0,I1=0,Id=0,T1=0,Td=0,Nd=0,br=0;function cz(){return Nd===2147483647&&(Pd=0,Id=0,Td=0,Ll=0,Nd=0),++Nd}var Fd=null,Ll=0,ql=[],Dd=256;function N1(e,t,r,i,a){var W;let n=e.charCodeAt(t)===Wt,o=n?t+1:t;if(e.charCodeAt(o)!==vt||Id===br&&o>=I1)return null;var s=Ll===br?Fd:null,l=s===null?0:s[o];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",o+1);if(c<0||c>=r)return I1=o,Id=br,null;u=o+1;var f=0;ql[f++]=o;for(var p=r-o>=Dd;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Nt&&u+1<r){u+=2;continue}if(d===Je){var m=_d(e,u,r);if(m>u){u=m;continue}}if(d===it){var k=F1(e,u,r);if(k){u=k.end;continue}var v=az(e,u,r);if(v>u){u=v;continue}}if(d===vt)ql[f++]=u;else if(d===Ir){var g=ql[--f];s===null&&p&&u-o>=Dd&&(s=Fd=new Int32Array(r),Ll=br),s!==null&&(s[g]=u+1)}u++}if(f>0){if(s===null&&p&&u-o>=Dd&&(s=Fd=new Int32Array(r),Ll=br),s!==null)for(;f>0;)s[ql[--f]]=-1;return null}}var b=u-1,w=e.slice(o+1,b),S=u<r?e.charCodeAt(u):0,h=!1;if(S===Tr){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;var C="",x=u;if(u<r&&e.charCodeAt(u)===it){for(u++,x=u;x<r&&e.charCodeAt(x)!==Ne;){if(e.charCodeAt(x)===Nt&&x+1<r){x+=2;continue}if(e.charCodeAt(x)===fe){y=!1;break}x++}y&&(x>=r||e.charCodeAt(x)!==Ne)&&(y=!1),y&&(C=e.slice(u,x),x++)}else if(y){var _=Pd===br?P1:-1;if(_>=0&&u>=_)y=!1;else{for(var E=0,A=!1;x<r;){var O=e.charCodeAt(x);if(O===Nt&&x+1<r){x+=2;continue}if(O===Tr)E++;else if(O===Nr){if(A=!0,E===0)break;E--}else if(O===oe||O===fe)break;x++}x>=r&&!A&&(_<0||u<_)&&(P1=u,Pd=br),C=e.slice(u,x)}}if(y){for(u=x;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;var F;if(u<r){var T=e.charCodeAt(u);if(T===gi||T===hi||T===Tr){var j=T===Tr?41:T;u++;for(var q=u;u<r&&e.charCodeAt(u)!==j;)e.charCodeAt(u)===Nt&&u+1<r&&u++,u++;u>=r?y=!1:(F=e.slice(q,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===oe||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Nr)&&(y=!1)}}if(y){if(u++,C=Mn(ua(C)),F!==void 0&&(F=Mn(ua(F))),n){var H=Gr(w,0,w.length,i,a),Y=$l(H);return{node:{type:ne.image,target:jl(C,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:Y,title:F},end:u}}var Z=i.inAnchor;i.inAnchor=!0;var V=Z?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=Z,!i.inAnchor&&Md(V)?null:{node:{type:ne.link,target:jl(C,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:F,children:V},end:u}}u=b+1,h=!0}var P="",M=u;if(!h&&S===vt){var R=u+1;M=R;for(var I=!1;M<r&&e.charCodeAt(M)!==Ir;){if(e.charCodeAt(M)===Nt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===vt){I=!0;break}M++}if(I||M>=r)return null;var D=e.slice(R,M);if(D.trim())P=Nl(D);else{if(h1(w))return null;P=Nl(w)}M+=1}else{if(h1(w))return null;P=Nl(w)}var L=(W=i.refs)==null?void 0:W[P];if(!L)return null;if(n)return{node:{type:ne.image,target:jl(L.target,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:$l(Gr(w,0,w.length,i,a)),title:L.title},end:M};var B=i.inAnchor;i.inAnchor=!0;var V=B?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=B,!i.inAnchor&&Md(V)?null:{node:{type:ne.link,target:jl(L.target,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:L.title,children:V},end:M}}function F1(e,t,r){if(e.charCodeAt(t)!==it)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Ne)break;if(a===oe||a===fe||a===Fn||a===it)return null;i++}if(i>=r||e.charCodeAt(i)!==Ne)return null;var n=e.slice(t+1,i),o=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return o?{node:{type:ne.link,target:n,title:void 0,children:[{type:ne.text,text:n}]},end:i+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:ne.link,target:`mailto:${n}`,title:void 0,children:[{type:ne.text,text:n}]},end:i+1}:null}function fz(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==cn||Td===br&&t>=T1)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==Ir&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return T1=t,Td=br,null;if(e.charCodeAt(a)!==Ir)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${vi(n)}`,text:n},end:a+1}:null}function dz(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,o=e.charCodeAt(t);if(o===Ol||o===72?t+8<=r&&e.charCodeAt(t+1)===ia&&e.charCodeAt(t+2)===ia&&e.charCodeAt(t+3)===gd&&(e.charCodeAt(t+4)===Kk&&e.charCodeAt(t+5)===$t&&e.charCodeAt(t+6)===bt&&e.charCodeAt(t+7)===bt?a="https://":e.charCodeAt(t+4)===$t&&e.charCodeAt(t+5)===bt&&e.charCodeAt(t+6)===bt&&(a="http://")):o===pi||o===70?t+6<=r&&e.charCodeAt(t+1)===ia&&e.charCodeAt(t+2)===gd&&e.charCodeAt(t+3)===$t&&e.charCodeAt(t+4)===bt&&e.charCodeAt(t+5)===bt&&(a="ftp://"):(o===mi||o===87)&&t+4<=r&&e.charCodeAt(t+1)===mi&&e.charCodeAt(t+2)===mi&&e.charCodeAt(t+3)===vr&&(a="www.",n=!0),!a)return null;let s=t+a.length;for(;s<r;){let y=e.charCodeAt(s);if(y===oe||y===fe||y===le||y===Fn||y===it||y===Ne)break;s++}for(var l=0,u=0,c=t;c<s;c++){var f=e.charCodeAt(c);f===Tr?l++:f===Nr&&u++}let p=s;for(;p>t+a.length;){let y=e.charCodeAt(p-1);if(y===vr||y===o$||y===$t||y===Wt||y===aa||y===Nr||y===wt||y===gt||y===Pt){if(y===Nr){if(l>=u)break;u--}p--}else if(y===_l){for(var d=p-2;d>t&&(e.charCodeAt(d)>=we&&e.charCodeAt(d)<=Ae||e.charCodeAt(d)>=Ze&&e.charCodeAt(d)<=lt||e.charCodeAt(d)>=Fe&&e.charCodeAt(d)<=De);)d--;d>=t&&e.charCodeAt(d)===xl?p=d:p--}else break}if(p<=t+a.length)return null;var m=t+(n?4:a.length),k=e.indexOf("/",m);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",m)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=m;b--)if(e.charCodeAt(b)===vr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:m,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var S=e.slice(t,p),h=n?`http://${S}`:S;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:S}]},end:p}}function pz(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var o=e.charCodeAt(a);if(o>=we&&o<=Ae||o>=Ze&&o<=lt||o>=Fe&&o<=De||o===vr||o===Wt||o===gr||o===36||o===md||o===xl||o===hi||o===wt||o===Dn||o===bt||o===yr||o===aa||o===cn||o===gt||o===Je||o===yi||o===Ft||o===yd||o===Pt||o===_e)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==Wk)return null;a++;for(var s=a,l=-1,u=a;a<r;){var o=e.charCodeAt(a);if(o>=we&&o<=Ae||o>=Ze&&o<=lt||o>=Fe&&o<=De)a++;else if((o===_e||o===gt)&&a>s)a++;else if(o===vr){if(a===s)break;var c=e.charCodeAt(a-1);if(c===_e||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=we&&f<=Ae||f>=Ze&&f<=lt||f>=Fe&&f<=De)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var p=e.charCodeAt(a-1);if(!(p>=we&&p<=Ae||p>=Ze&&p<=lt||p>=Fe&&p<=De)||a<=l+1)return null;for(var d=-1,m=l-1;m>=s;m--)if(e.charCodeAt(m)===vr){d=m;break}for(var k=d>=0?d+1:s,m=k;m<a;m++)if(e.charCodeAt(m)===gt)return null;var v=e.slice(t,a);return{node:{type:ne.link,target:`mailto:${v}`,title:void 0,children:[{type:ne.text,text:v}]},end:a}}function Md(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Md(e[t].children))return!0;return!1}function $l(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];a.type===ne.text?r+=a.text:a.type===ne.breakLine?r+=" ":a.type===ne.codeInline||a.type===ne.footnoteReference?r+=a.text:"children"in a&&Array.isArray(a.children)?r+=$l(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function jd(e,t,r){for(var i=0;i<e.length;i++){var a=e[i];if(a.type===ne.heading){var n=a;n.id=K$(r($l(n.children,!0)),t)}if("children"in a){var o=a.children;Array.isArray(o)&&jd(o,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var s=a.items,l=0;l<s.length;l++)jd(s[l],t,r)}}function wi(e){return{type:ne.text,text:e}}function mz(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===gr){i++;var a=i<r&&(e.charCodeAt(i)===Gk||e.charCodeAt(i)===Jk);a&&i++;for(var n=i,o=a?6:7;i<r&&i-n<=o;){var s=e.charCodeAt(i),l=s>=Fe&&s<=De||a&&(s>=we&&s<=hd||s>=Ze&&s<=pi);if(!l)break;i++}return i===n||i-n>o?-1:i<r&&e.charCodeAt(i)===_l?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=we&&c<=Ae||c>=Ze&&c<=lt||c>=Fe&&c<=De){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===_l?i+1:-1}function hz(e,t,r,i,a){if(e.charCodeAt(t)!==it)return null;var n=t+1;if(n>=r)return null;var o=e.charCodeAt(n);if(o===Wt&&n+1<r&&e.charCodeAt(n+1)===_e&&n+2<r&&e.charCodeAt(n+2)===_e){var s=n+3;if(s<r&&e.charCodeAt(s)===Ne)return{node:{type:ne.htmlComment,text:"",s:!0},end:s+1};if(s+1<r&&e.charCodeAt(s)===_e&&e.charCodeAt(s+1)===Ne)return{node:{type:ne.htmlComment,text:"-",s:!0},end:s+2};var l=e.indexOf("-->",s);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(o===aa){var u=e.indexOf("?>",n+1);return u!==-1&&u<r?{node:{type:ne.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,u+2),a:!1},end:u+2}:null}if(o===Wt&&n+1<r){var c=e.charCodeAt(n+1);if(c===vt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:ne.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(c>=we&&c<=Ae){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(o===bt){var d=n+1;if(d>=r)return null;var m=e.charCodeAt(d);if(!(m>=we&&m<=Ae||m>=Ze&&m<=lt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=we&&k<=Ae||k>=Ze&&k<=lt||k>=Fe&&k<=De||k===_e)d++;else break}for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Ne){var v=e.slice(n+1,d).trim();return{node:{type:ne.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(o>=we&&o<=Ae||o>=Ze&&o<=lt))return null;var g=Wr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),S=g.n;if(S||bo(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Kr(g.attrs,b,a),m:g.q?Cd(g):e.slice(t,g.end),a:!1},end:g.end};var h=ko.has(w),y=Od(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Kr(g.attrs,b,a),m:g.q?Cd(g):e.slice(t,g.end),a:!1},end:g.end};var C=Q$(e,`</${w}`,y),x=e.slice(g.end,C);if(h){var _=ar(x);return{node:{type:ne.htmlBlock,tag:b,attrs:Kr(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(C,y),text:_,c:!0,a:!1},end:y}}var E=[],A=x.trim();if(A){var{inAnchor:O,inline:F,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var j=A.indexOf(`
131
+ `)!==-1,X4=xd.test(Jl),Z4=b1.test(Jl),Q4=r.inline,eU=r.inHTML,tU=r.d;r.inHTML=!0,r.d=(r.d||0)+1,Y4||X4||Z4?(r.inline=!1,As=Rn(Gl,r,i)):(r.inline=!0,As=fa(Jl,!1,r,i)),r.inline=Q4,r.inHTML=eU,r.d=tU}var rU=Ye(e,ya),nU=e.slice(ya,rU).trim(),k0=nU?ya:Le(e,ya),w0=ip?e.slice(n,ya):e.slice(n,k0);return{node:{type:ie.htmlBlock,tag:Hn,attrs:Kr(Rt.attrs,Hn,i),b:Rt.g+Rt.b,children:As,j:ar(w0),text:ip?Gl:w0,c:!0,a:!1},end:k0}}var xs=x1(e,Rt.end),iU=xs<e.length?Le(e,xs):xs,ap=e.slice(Rt.end,xs);if(ap.trim()){var{inline:aU,inHTML:sU,d:oU}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,As=Rn(ap,r,i),r.inline=aU,r.inHTML=sU,r.d=oU}var lU=e.slice(Rt.end,xs);return{node:{type:ie.htmlBlock,tag:Hn,attrs:Kr(Rt.attrs,Hn,i),b:Rt.g+Rt.b,children:As,e:ar(lU),text:ap,c:!0,a:!1},end:iU}}function gz(e,t){if(e.charCodeAt(t)!==it)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===Pe&&e.charCodeAt(r+2)===Pe)return 2;if(e.charCodeAt(r)===aa)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=Ce&&a<=xe)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===bt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=Ce&&l<=xe||l>=Ze&&l<=lt||l>=Fe&&l<=De||l===Pe)o++;else break}if(o===s)return 0;var c=e.slice(s,o);if(ks.has(c.toLowerCase())){if(n)return 0;var u=e.charCodeAt(o);return u===oe||u===ce||u===Ne||u===fe||o>=i?1:0}if(Ml.has(c.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===oe||e.charCodeAt(f)===ce);)f++;return f<i&&e.charCodeAt(f)===Ne?6:0}var p=o<i?e.charCodeAt(o):-1;return p===oe||p===ce||p===Ne||p===fe||p===bt||p===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===ce);)d++;if(d<i&&e.charCodeAt(d)===Ne){var h=Ye(e,t),v=e.slice(d+1,h).trim();if(v==="")return 7}}else{var k=Ye(e,t),g=Wr(e,t);if(g&&g.end<=k){var b=e.slice(g.end,k).trim();if(b==="")return 7}}return 0}function M1(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===oe||e.charCodeAt(i)===ce);)i++;for(;a>i&&(e.charCodeAt(a-1)===oe||e.charCodeAt(a-1)===ce);)a--;i<a&&e.charCodeAt(i)===Ft&&i++,a>i&&e.charCodeAt(a-1)===Ft&&(a-2<i||e.charCodeAt(a-2)!==Nt)&&a--;for(var n=[],s=i,o=!1,l=[],c=i;c<a;){var u=e.charCodeAt(c);if(u===Nt&&c+1<a){e.charCodeAt(c+1)===Ft?(o||(o=!0,l=[]),l.push(e.slice(s,c)),l.push("|"),c+=2,s=c):c+=2;continue}if(u===Je){for(var f=0;c<a&&e.charCodeAt(c)===Je;)f++,c++;for(var p=!1;c<a&&!p;){for(var d=0;c<a&&e.charCodeAt(c)===Je;)d++,c++;d===f?p=!0:d===0&&c++}continue}if(u===Ft){var h=o?(l.push(e.slice(s,c)),l.join("")):e.slice(s,c);n.push(h.trim()),c++,s=c,o=!1,l=[];continue}c++}var v=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(v.trim()),n.map(k=>{var g=k.indexOf("\\|")===-1?k:k.replace(/\\\|/g,"|");return g?fa(g,!1,t,r):[]})}function j1(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=Le(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!S1(e,s,o))return null;let l=e.slice(t,a),c=e.slice(s,o);for(var u=[],f=0,p=c.length;f<p&&(c.charCodeAt(f)===oe||c.charCodeAt(f)===ce);)f++;for(f<p&&c.charCodeAt(f)===Ft&&f++;f<p;){for(;f<p&&(c.charCodeAt(f)===oe||c.charCodeAt(f)===ce);)f++;if(f>=p||c.charCodeAt(f)===Ft)break;var d=c.charCodeAt(f)===$t;for(d&&f++;f<p&&c.charCodeAt(f)===Pe;)f++;var h=f<p&&c.charCodeAt(f)===$t;for(h&&f++,u.push(d&&h?"center":h?"right":d?"left":null);f<p&&(c.charCodeAt(f)===oe||c.charCodeAt(f)===ce);)f++;f<p&&c.charCodeAt(f)===Ft&&f++}let v=M1(l,r,i);if(u.length!==v.length)return null;let k=[],g=Le(e,o);for(;g<e.length;){let S=Ye(e,g),x=e.slice(g,S);if(Gt(e,g,S))break;if(Et(e,g,S),Xe<4){var b=e.charCodeAt(g+He);if(b===Ne||b===gr||(b===Pe||b===wt||b===gt)&&qn(e,g))break;if(b===Je||b===Pt){for(var w=g+He,E=0;w<S&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}k.push(M1(x,r,i)),g=Le(e,S)}if(i.optimizeForStreaming&&k.length===0)return null;for(var m=v.length,y=0;y<k.length;y++)if(k[y].length<m)for(;k[y].length<m;)k[y].push([]);else k[y].length>m&&(k[y].length=m);return{node:{type:ie.table,header:v,cells:k,align:u},end:g}}function yz(e,t,r){var i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;var a=t+He;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===un){var n=vz(e,a,r);return n||null}r.refs||(r.refs={});var s=E1(e,a,r.refs);return s===null?null:{node:{type:ie.refCollection},end:s}}function vz(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==un)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==Ir;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var s=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==$t)return null;for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===ce);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===oe||e.charCodeAt(a)===ce);)a++;var o=e.indexOf(`
132
+ `,a);o<0&&(o=i);for(var l=e.slice(a,o).trim(),c=o<i?o+1:i;c<i;){var u=Ye(e,c);if(Et(e,c,u),Xe>=2&&!Gt(e,c,u))l+=`
133
+ ${e.slice(c,u)}`,c=Le(e,u);else if(Gt(e,c,u)){var f=Le(e,u);if(f<i){var p=Ye(e,f);if(Et(e,f,p),Xe>=2){l+=`
134
+ `,c=Le(e,u);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ie.footnote},end:c}}function bz(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let F=o>=0?o:Ye(e,a);if(o=-1,Gt(e,a,F))break;if(Et(e,a,F),Xe<4&&s>0&&!r.l){let M=e.charCodeAt(a+He);if(M===yr||M===Pe){let q=a+He;for(;q<F&&e.charCodeAt(q)===M;)q++;for(;q<F&&(e.charCodeAt(q)===oe||e.charCodeAt(q)===ce);)q++;if(q>=F){n=M===yr?1:2,a=Le(e,F);break}}}s=F;let N=Le(e,F);if(N<e.length){if(e.charCodeAt(N)===Sd){var l=Ye(e,N);a=Le(e,l),s=l;continue}let M=Ye(e,N);if(o=M,Et(e,N,M),Xe<4){let q=e.charCodeAt(N+He);if(q===Ne){a=N;break}if(q===gr){for(var c=N+He,u=0;c<M&&e.charCodeAt(c)===gr&&u<=6;)u++,c++;if(u>=1&&u<=6&&(c>=M||e.charCodeAt(c)===oe||e.charCodeAt(c)===ce)){a=N;break}}if(q===Je||q===Pt){for(var f=N+He,p=0;f<M&&e.charCodeAt(f)===q;)p++,f++;if(p>=3){a=N;break}}if(q===it){var d=N+He+1,h=d<M?e.charCodeAt(d):0,v=h===Wt||h===aa;if(!v&&h===bt){for(var k=d+1,g=k;g<M&&(e.charCodeAt(g)>=Ce&&e.charCodeAt(g)<=xe||e.charCodeAt(g)>=Ze&&e.charCodeAt(g)<=lt||e.charCodeAt(g)>=Fe&&e.charCodeAt(g)<=De||e.charCodeAt(g)===Pe);)g++;g>k&&(v=Ml.has(e.slice(k,g).toLowerCase()))}else if(!v){for(var b=d;b<M&&(e.charCodeAt(b)>=Ce&&e.charCodeAt(b)<=xe||e.charCodeAt(b)>=Ze&&e.charCodeAt(b)<=lt||e.charCodeAt(b)>=Fe&&e.charCodeAt(b)<=De||e.charCodeAt(b)===Pe);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();v=Ml.has(w)||ks.has(w)}}if(v&&D1(e,N,r,i)){a=N;break}}if(q===Pe||q===wt||q===Dn){let H=N+He+1;if(H<M&&(e.charCodeAt(H)===oe||e.charCodeAt(H)===ce)){var E=ws(e,H,M);if(E<M&&!qn(e,N)){a=N;break}}}if(q>=Fe&&q<=De){let H=N+He;for(;H<M&&e.charCodeAt(H)>=Fe&&e.charCodeAt(H)<=De;)H++;if(H<M&&(e.charCodeAt(H)===vr||e.charCodeAt(H)===Nr)&&H-(N+He)===1&&e.charCodeAt(N+He)===49){var m=H+1;if(m<M&&(e.charCodeAt(m)===oe||e.charCodeAt(m)===ce)){var y=ws(e,m,M);if(y<M){a=N;break}}}}if(q===Ft){let H=Le(e,M);if(H<e.length){let J=Ye(e,H);if(S1(e,H,J)){a=N;break}}}if((q===Pe||q===wt||q===gt)&&qn(e,N)){if(q!==Pe){a=N;break}let H=N+He;for(;H<M&&e.charCodeAt(H)===Pe;)H++;for(;H<M&&(e.charCodeAt(H)===oe||e.charCodeAt(H)===ce);)H++;if(H<M){a=N;break}}}}a=Le(e,F)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Fn||e.charCodeAt(S-1)===oe||e.charCodeAt(S-1)===ce);)S--;for(var x=t;x<S&&(e.charCodeAt(x)===oe||e.charCodeAt(x)===ce);)x++;if(x>=S)return null;for(var _=!1,C=x;C<S;C++)if(e.charCodeAt(C)===Sd){_=!0;break}var A=_?e.slice(x,S).replace(/\u001E/g,""):e.slice(x,S);if(!A)return null;let O=fa(A,!0,r,i);return n?{node:{type:ie.heading,level:n,children:O,id:""},end:a}:{node:{type:ie.paragraph,children:O},end:a}}function fa(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Gr(e,0,e.length,r,i);return r.k=n,s}var o=[];return a.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 kz(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=Ln(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
135
+ `)!==-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:ie.codeInline,text:o},end:n+s}}a=n+s}return null}function Nd(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=Ln(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function wz(e,t,r){if(e.charCodeAt(t)!==it)return t;if(t+1<r&&e.charCodeAt(t+1)===bt){let c=t+2;for(;c<r&&e.charCodeAt(c)!==Ne;)c++;return c<r?c+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===Pe&&e.charCodeAt(t+3)===Pe){let c=e.indexOf("-->",t+4);return c>=0?c+3:t}let i=t+1,a=i;for(;i<r;){let c=e.charCodeAt(i);if(c>=Ce&&c<=xe||c>=Ze&&c<=lt||c>=Fe&&c<=De||c===Pe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let c=e.charCodeAt(i);if(c===Ne){i++;break}if(c===bt&&i+1<r&&e.charCodeAt(i+1)===Ne){i+=2,s=!0;break}if(c===gi||c===hi){var o=c;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(c===fe)return t;i++}if(s||bs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===it)if(i+1<r&&e.charCodeAt(i+1)===bt){let c=i+2,u=c;for(;u<r&&(e.charCodeAt(u)>=Ce&&e.charCodeAt(u)<=xe||e.charCodeAt(u)>=Ze&&e.charCodeAt(u)<=lt);)u++;if(e.slice(c,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==Ne;)u++;if(u<r&&u++,l--,l===0)return u}i=u}else{let c=i+1,u=c;for(;u<r&&(e.charCodeAt(u)>=Ce&&e.charCodeAt(u)<=xe||e.charCodeAt(u)>=Ze&&e.charCodeAt(u)<=lt);)u++;e.slice(c,u).toLowerCase()===n&&l++,i++}else i++;return i}function Sz(e,t,r,i,a){if(e.charCodeAt(t)!==Pt||t+1>=r||e.charCodeAt(t+1)!==Pt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Nd(e,n,r);if(o>n){n=o;continue}}if(s===Pt&&e.charCodeAt(n+1)===Pt){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ie.textFormatted,tag:"del",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function Cz(e,t,r,i,a){if(e.charCodeAt(t)!==yr||t+1>=r||e.charCodeAt(t+1)!==yr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Nd(e,n,r);if(o>n){n=o;continue}}if(s===yr&&e.charCodeAt(n+1)===yr&&n>t+2){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ie.textFormatted,tag:"mark",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function L1(e,t,r){return e<Il?!!(_d(e)&sa):M$.test(t[r])}function q1(e,t,r){return e<Il?!!(_d(e)&bi):j$.test(t[r])}function Ez(e,t,r){var i=e.charCodeAt(t);if(i!==wt&&i!==gt)return null;var a=Ln(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+a<r?e.charCodeAt(t+a):32,o=q1(n,e,t-1),l=q1(s,e,t+a),c=t>0?L1(n,e,t-1):!1,u=t+a<r?L1(s,e,t+a):!1,f=!l&&(!u||o||c),p=!o&&(!c||l||u),d,h;return i===wt?(d=f,h=p):(d=f&&(!p||c),h=p&&(!f||u)),{len:a,canOpen:d,canClose:h}}function Az(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),s=null,o=null,l=0;l<a;l++){var c={node:e[l],prev:o,next:null};o?o.next=c:s=c,n[l]=c,o=c}for(var u=Array(t.length),f=0;f<t.length;f++)u[f]=n[t[f].idx];for(var p=[],d=0;d<12;d++)p[d]=-1;for(var h=0;h<t.length;){var v=t[h];if(!(v.active&&v.canClose)){h++;continue}for(var k=v.ch===wt?0:1,g=k*6+v.len%3*2+(v.canOpen?1:0),b=p[g]===void 0?-1:p[g],w=-1,E=h-1;E>b;E--){var m=t[E];if(!(!m.active||m.ch!==v.ch||!m.canOpen)&&!((v.canOpen||m.canClose)&&(m.len+v.len)%3===0&&m.len%3!==0)){w=E;break}}if(w<0){p[g]=h-1,!v.canOpen&&(v.active=!1),h++;continue}var y=t[w],S=y.len>=2&&v.len>=2,x=S?2:1;y.len-=x,v.len-=x;var _=u[w],C=u[h],A=_.node,O=C.node;A.text=A.text.slice(0,A.text.length-x),O.text=O.text.slice(x);for(var F=[],N=_.next;N&&N!==C;)F.push(N.node),N=N.next;var M={type:ie.textFormatted,tag:S?"strong":"em",children:F},q={node:M,prev:_,next:C};_.next=q,C.prev=q;for(var H=w+1;H<h;H++)t[H].active=!1;if(y.len===0&&(y.active=!1,A.text==="")){var J=_.prev;q.prev=J,J?J.next=q:s=q}if(v.len===0){if(v.active=!1,O.text===""){var X=C.next;q.next=X,X&&(X.prev=q)}}else continue;h++}for(var P=0,j=s;j;){var U=j.node;if(U.type===ie.text){var T=U;if(T.text===""){j=j.next;continue}if(P>0&&e[P-1].type===ie.text){e[P-1].text+=T.text,j=j.next;continue}}e[P++]=U,j=j.next}e.length=P}}function Ll(e,t,r,i){return t(e,r,i)===null?null:e}var $1=0,Fd=0,z1=0,Dd=0,R1=0,Md=0,jd=0,br=0;function xz(){return jd===2147483647&&(Fd=0,Dd=0,Md=0,ql=0,jd=0),++jd}var Ld=null,ql=0,$l=[],qd=256;function U1(e,t,r,i,a){var W;let n=e.charCodeAt(t)===Wt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Dd===br&&s>=z1)return null;var o=ql===br?Ld:null,l=o===null?0:o[s];if(l<0)return null;var c=l;if(l===0){var u=e.indexOf("]",s+1);if(u<0||u>=r)return z1=s,Dd=br,null;c=s+1;var f=0;$l[f++]=s;for(var p=r-s>=qd;c<r&&f>0;){var d=e.charCodeAt(c);if(d===Nt&&c+1<r){c+=2;continue}if(d===Je){var h=Nd(e,c,r);if(h>c){c=h;continue}}if(d===it){var v=B1(e,c,r);if(v){c=v.end;continue}var k=wz(e,c,r);if(k>c){c=k;continue}}if(d===vt)$l[f++]=c;else if(d===Ir){var g=$l[--f];o===null&&p&&c-s>=qd&&(o=Ld=new Int32Array(r),ql=br),o!==null&&(o[g]=c+1)}c++}if(f>0){if(o===null&&p&&c-s>=qd&&(o=Ld=new Int32Array(r),ql=br),o!==null)for(;f>0;)o[$l[--f]]=-1;return null}}var b=c-1,w=e.slice(s+1,b),E=c<r?e.charCodeAt(c):0,m=!1;if(E===Tr){var y=!0;for(c++;c<r&&(e.charCodeAt(c)===oe||e.charCodeAt(c)===fe);)c++;var S="",x=c;if(c<r&&e.charCodeAt(c)===it){for(c++,x=c;x<r&&e.charCodeAt(x)!==Ne;){if(e.charCodeAt(x)===Nt&&x+1<r){x+=2;continue}if(e.charCodeAt(x)===fe){y=!1;break}x++}y&&(x>=r||e.charCodeAt(x)!==Ne)&&(y=!1),y&&(S=e.slice(c,x),x++)}else if(y){var _=Fd===br?$1:-1;if(_>=0&&c>=_)y=!1;else{for(var C=0,A=!1;x<r;){var O=e.charCodeAt(x);if(O===Nt&&x+1<r){x+=2;continue}if(O===Tr)C++;else if(O===Nr){if(A=!0,C===0)break;C--}else if(O===oe||O===fe)break;x++}x>=r&&!A&&(_<0||c<_)&&($1=c,Fd=br),S=e.slice(c,x)}}if(y){for(c=x;c<r&&(e.charCodeAt(c)===oe||e.charCodeAt(c)===fe);)c++;var F;if(c<r){var N=e.charCodeAt(c);if(N===gi||N===hi||N===Tr){var M=N===Tr?41:N;c++;for(var q=c;c<r&&e.charCodeAt(c)!==M;)e.charCodeAt(c)===Nt&&c+1<r&&c++,c++;c>=r?y=!1:(F=e.slice(q,c),c++)}}if(y){for(;c<r&&(e.charCodeAt(c)===oe||e.charCodeAt(c)===fe);)c++;(c>=r||e.charCodeAt(c)!==Nr)&&(y=!1)}}if(y){if(c++,S=Mn(ca(S)),F!==void 0&&(F=Mn(ca(F))),n){var H=Gr(w,0,w.length,i,a),J=zl(H);return{node:{type:ie.image,target:Ll(S,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:J,title:F},end:c}}var X=i.inAnchor;i.inAnchor=!0;var V=X?[{type:ie.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=X,!i.inAnchor&&$d(V)?null:{node:{type:ie.link,target:Ll(S,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:F,children:V},end:c}}c=b+1,m=!0}var P="",j=c;if(!m&&E===vt){var U=c+1;j=U;for(var T=!1;j<r&&e.charCodeAt(j)!==Ir;){if(e.charCodeAt(j)===Nt&&j+1<r){j+=2;continue}if(e.charCodeAt(j)===vt){T=!0;break}j++}if(T||j>=r)return null;var D=e.slice(U,j);if(D.trim())P=Fl(D);else{if(A1(w))return null;P=Fl(w)}j+=1}else{if(A1(w))return null;P=Fl(w)}var L=(W=i.refs)==null?void 0:W[P];if(!L)return null;if(n)return{node:{type:ie.image,target:Ll(L.target,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:zl(Gr(w,0,w.length,i,a)),title:L.title},end:j};var B=i.inAnchor;i.inAnchor=!0;var V=B?[{type:ie.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=B,!i.inAnchor&&$d(V)?null:{node:{type:ie.link,target:Ll(L.target,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:L.title,children:V},end:j}}function B1(e,t,r){if(e.charCodeAt(t)!==it)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Ne)break;if(a===oe||a===fe||a===Fn||a===it)return null;i++}if(i>=r||e.charCodeAt(i)!==Ne)return null;var n=e.slice(t+1,i),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{node:{type:ie.link,target:n,title:void 0,children:[{type:ie.text,text:n}]},end:i+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:ie.link,target:`mailto:${n}`,title:void 0,children:[{type:ie.text,text:n}]},end:i+1}:null}function Oz(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==un||Md===br&&t>=R1)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==Ir&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return R1=t,Md=br,null;if(e.charCodeAt(a)!==Ir)return null;let n=e.slice(t+2,a);return n?{node:{type:ie.footnoteReference,target:`#${vi(n)}`,text:n},end:a+1}:null}function _z(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===_l||s===72?t+8<=r&&e.charCodeAt(t+1)===ia&&e.charCodeAt(t+2)===ia&&e.charCodeAt(t+3)===kd&&(e.charCodeAt(t+4)===n1&&e.charCodeAt(t+5)===$t&&e.charCodeAt(t+6)===bt&&e.charCodeAt(t+7)===bt?a="https://":e.charCodeAt(t+4)===$t&&e.charCodeAt(t+5)===bt&&e.charCodeAt(t+6)===bt&&(a="http://")):s===pi||s===70?t+6<=r&&e.charCodeAt(t+1)===ia&&e.charCodeAt(t+2)===kd&&e.charCodeAt(t+3)===$t&&e.charCodeAt(t+4)===bt&&e.charCodeAt(t+5)===bt&&(a="ftp://"):(s===mi||s===87)&&t+4<=r&&e.charCodeAt(t+1)===mi&&e.charCodeAt(t+2)===mi&&e.charCodeAt(t+3)===vr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===oe||y===fe||y===ce||y===Fn||y===it||y===Ne)break;o++}for(var l=0,c=0,u=t;u<o;u++){var f=e.charCodeAt(u);f===Tr?l++:f===Nr&&c++}let p=o;for(;p>t+a.length;){let y=e.charCodeAt(p-1);if(y===vr||y===S$||y===$t||y===Wt||y===aa||y===Nr||y===wt||y===gt||y===Pt){if(y===Nr){if(l>=c)break;c--}p--}else if(y===Pl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=Ce&&e.charCodeAt(d)<=xe||e.charCodeAt(d)>=Ze&&e.charCodeAt(d)<=lt||e.charCodeAt(d)>=Fe&&e.charCodeAt(d)<=De);)d--;d>=t&&e.charCodeAt(d)===Ol?p=d:p--}else break}if(p<=t+a.length)return null;var h=t+(n?4:a.length),v=e.indexOf("/",h);if((v<0||v>p)&&(v=p),n&&e.indexOf(".",h)===-1)return null;for(var k=-1,g=-1,b=v-1;b>=h;b--)if(e.charCodeAt(b)===vr)if(k<0)k=b;else{g=b;break}for(var w=g>=0?g+1:h,b=w;b<v;b++)if(e.charCodeAt(b)===gt)return null;var E=e.slice(t,p),m=n?`http://${E}`:E;return{node:{type:ie.link,target:m,title:void 0,children:[{type:ie.text,text:E}]},end:p}}function Pz(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=Ce&&s<=xe||s>=Ze&&s<=lt||s>=Fe&&s<=De||s===vr||s===Wt||s===gr||s===36||s===vd||s===Ol||s===hi||s===wt||s===Dn||s===bt||s===yr||s===aa||s===un||s===gt||s===Je||s===yi||s===Ft||s===wd||s===Pt||s===Pe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==r1)return null;a++;for(var o=a,l=-1,c=a;a<r;){var s=e.charCodeAt(a);if(s>=Ce&&s<=xe||s>=Ze&&s<=lt||s>=Fe&&s<=De)a++;else if((s===Pe||s===gt)&&a>o)a++;else if(s===vr){if(a===o)break;var u=e.charCodeAt(a-1);if(u===Pe||u===gt||a-c>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=Ce&&f<=xe||f>=Ze&&f<=lt||f>=Fe&&f<=De)l=a,c=a+1,a++;else break}else break}else break}if(a-c>63||l<0)return null;var p=e.charCodeAt(a-1);if(!(p>=Ce&&p<=xe||p>=Ze&&p<=lt||p>=Fe&&p<=De)||a<=l+1)return null;for(var d=-1,h=l-1;h>=o;h--)if(e.charCodeAt(h)===vr){d=h;break}for(var v=d>=0?d+1:o,h=v;h<a;h++)if(e.charCodeAt(h)===gt)return null;var k=e.slice(t,a);return{node:{type:ie.link,target:`mailto:${k}`,title:void 0,children:[{type:ie.text,text:k}]},end:a}}function $d(e){for(var t=0;t<e.length;t++)if(e[t].type===ie.link||"children"in e[t]&&Array.isArray(e[t].children)&&$d(e[t].children))return!0;return!1}function zl(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];a.type===ie.text?r+=a.text:a.type===ie.breakLine?r+=" ":a.type===ie.codeInline||a.type===ie.footnoteReference?r+=a.text:"children"in a&&Array.isArray(a.children)?r+=zl(a.children,t):!t&&a.type===ie.image&&(r+=a.alt||"")}return r}function zd(e,t,r){for(var i=0;i<e.length;i++){var a=e[i];if(a.type===ie.heading){var n=a;n.id=cz(r(zl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&zd(s,t,r)}if((a.type===ie.orderedList||a.type===ie.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)zd(o[l],t,r)}}function wi(e){return{type:ie.text,text:e}}function Iz(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===gr){i++;var a=i<r&&(e.charCodeAt(i)===i1||e.charCodeAt(i)===a1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Fe&&o<=De||a&&(o>=Ce&&o<=bd||o>=Ze&&o<=pi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===Pl?i+1:-1}for(var c=i;i<r&&i-c<48;){var u=e.charCodeAt(i);if(u>=Ce&&u<=xe||u>=Ze&&u<=lt||u>=Fe&&u<=De){i++;continue}break}return i===c?-1:i<r&&e.charCodeAt(i)===Pl?i+1:-1}function Tz(e,t,r,i,a){if(e.charCodeAt(t)!==it)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Wt&&n+1<r&&e.charCodeAt(n+1)===Pe&&n+2<r&&e.charCodeAt(n+2)===Pe){var o=n+3;if(o<r&&e.charCodeAt(o)===Ne)return{node:{type:ie.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Pe&&e.charCodeAt(o+1)===Ne)return{node:{type:ie.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ie.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===aa){var c=e.indexOf("?>",n+1);return c!==-1&&c<r?{node:{type:ie.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,c+2),a:!1},end:c+2}:null}if(s===Wt&&n+1<r){var u=e.charCodeAt(n+1);if(u===vt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:ie.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(u>=Ce&&u<=xe){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:ie.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(s===bt){var d=n+1;if(d>=r)return null;var h=e.charCodeAt(d);if(!(h>=Ce&&h<=xe||h>=Ze&&h<=lt))return null;for(d++;d<r;){var v=e.charCodeAt(d);if(v>=Ce&&v<=xe||v>=Ze&&v<=lt||v>=Fe&&v<=De||v===Pe)d++;else break}for(;d<r&&(e.charCodeAt(d)===oe||e.charCodeAt(d)===ce||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Ne){var k=e.slice(n+1,d).trim();return{node:{type:ie.htmlSelfClosing,tag:k,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=Ce&&s<=xe||s>=Ze&&s<=lt))return null;var g=Wr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),E=g.n;if(E||bs(b))return{node:{type:ie.htmlSelfClosing,tag:b,attrs:Kr(g.attrs,b,a),m:g.q?Od(g):e.slice(t,g.end),a:!1},end:g.end};var m=ks.has(w),y=Td(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ie.htmlSelfClosing,tag:b,attrs:Kr(g.attrs,b,a),m:g.q?Od(g):e.slice(t,g.end),a:!1},end:g.end};var S=hz(e,`</${w}`,y),x=e.slice(g.end,S);if(m){var _=ar(x);return{node:{type:ie.htmlBlock,tag:b,attrs:Kr(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(S,y),text:_,c:!0,a:!1},end:y}}var C=[],A=x.trim();if(A){var{inAnchor:O,inline:F,k:N}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var M=A.indexOf(`
136
136
 
137
- `)!==-1||/^#{1,6}\s/.test(A);j?(i.inline=!1,E=Rn(A,i,a)):E=Gr(A,0,A.length,i,a),i.inAnchor=O,i.inline=F,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:Kr(g.attrs,b,a),b:g.b,children:E,text:ar(x),c:!1,a:!1},end:y}}var gz=200,So=0;function Gr(e,t,r,i,a){if(So++,So>gz)return So--,[{type:ne.text,text:e.slice(t,r)}];var n=br;br=cz();let o=i;if(a.optimizeForStreaming){let ee=function(Ke,St){for(var xt=1,ct=St+1;ct<Ke.length;ct++){var Ct=Ke.charCodeAt(ct);if(Ct===vt)xt++;else if(Ct===Ir&&(xt--,xt===0))return ct}return-1},te=e.slice(t,r),ge=te;for(var s=0,l=0,u=0,c=0,f=0,p=-1,d=-1,m=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===wt?g+1<te.length&&te.charCodeAt(g+1)===wt?(s++,p=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,m=g,g++):(c++,k=g):b===Pt&&g+1<te.length&&te.charCodeAt(g+1)===Pt&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&m>=0&&w.push([m,2]),c%2===1&&k>=0&&w.push([k,1]),s%2===1&&p>=0&&w.push([p,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((Ke,St)=>St[0]-Ke[0]);for(var S=0;S<w.length;S++){var h=w[S][0],y=w[S][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,pt=-1;for(let Ke=0;Ke<te.length;Ke++)te.charCodeAt(Ke)===Je&&(ce++,pt=Ke);if(ce%2===1&&pt!==-1){let Ke=!1,St=-1,xt=0;for(;xt<te.length;)te.charCodeAt(xt)===Je&&(Ke?(Ke=!1,St=-1):(St=xt,Ke=!0)),xt++;Ke&&St!==-1&&(te=te.slice(0,St))}for(var C=!0;C;){C=!1;for(var x=-1,_=-1,E=-1,A=!1,O=0;O<te.length;O++){var F=te.charCodeAt(O);if(F===vt&&(O===0||te.charCodeAt(O-1)!==Nt)){var T=O>0&&te.charCodeAt(O-1)===Wt,j=T?O-1:O,q=ee(te,O);if(q===-1)x=j,A=T,_=O+1,E=te.length;else{var H=q+1;if(H>=te.length)x=j,A=T,_=O+1,E=q;else if(te.charCodeAt(H)===Tr){var Y=te.indexOf(")",H+1);Y===-1?(x=j,A=T,_=O+1,E=q,O=te.length):O=Y}else if(te.charCodeAt(H)===vt){var Z=te.indexOf("]",H+1);Z===-1?(x=j,A=T,_=O+1,E=q,O=te.length):O=Z}else O=q}}}if(x>=0){var P=A?"":te.slice(_,E);te=te.slice(0,x)+P,C=!0}}let qe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(qe&&qe.index!==void 0){var M=qe[0].length-qe[2].length,R=M>=2&&qe[0].charCodeAt(M-2)===bt;if(!R){for(var I=!1,D=0,L=0;L<qe.index;L++)te.charCodeAt(L)===Je&&D++;if(I=D%2===1,!I){let Ke=qe[1];zn(te,`</${Ke}`,0)===-1&&(te=te.slice(0,qe.index)+qe[2])}}}te!==ge&&(e=e.slice(0,t)+te,r=t+te.length)}let B=[];var V=[];let W=t;var K="",X=a.disableAutoLink||a.disableBareUrls||o.inAnchor?-1:e.indexOf("@",t);for(X>=r&&(X=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=iz(e,t,r),!te){var z=Ln(e,t,r,Je);t+=z-1}}else if(ee===wt||ee===gt){var $=lz(e,t,r);if($){if($.canOpen||$.canClose){(K||t>W)&&(B.push(wi(K+e.slice(W,t))),K="");var J=e.slice(t,t+$.len),G=wi(J);V.push({idx:B.length,ch:ee,len:$.len,canOpen:$.canOpen,canClose:$.canClose,active:!0}),B.push(G),t+=$.len,W=t;continue}t+=$.len-1}}else if(ee===Pt)te=oz(e,t,r,o,a);else if(ee===yr)te=sz(e,t,r,o,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===cn&&(te=fz(e,t,r)),te||(te=N1(e,t,r,o,a));else if(ee===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)te=N1(e,t,r,o,a);else if(ee===it)te=F1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=hz(e,t,r,o,a));else if(ee===xl){var ie=mz(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Mn(re);if(ue!==re){K=K+e.slice(W,t)+ue,t=ie,W=ie;continue}}}else if((ee===Ol||ee===mi||ee===pi)&&!o.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==it)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===Ol&&ye===ia||ee===pi&&ye===ia||ee===mi&&ye===mi)&&(te=dz(e,t,r,a))}if(!te&&X>=0&&X-t<=64&&!o.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=we&&ee<=Ae||ee>=Ze&&ee<=lt||ee>=Fe&&ee<=De)&&(te=pz(e,t,r,a),!te&&t>=X&&(X=e.indexOf("@",t+1),X>=r&&(X=-1))),ee===fe&&o.k){var Se=!1,ke=0;if(t>W&&e.charCodeAt(t-1)===Nt)Se=!0,ke=1;else{for(var Pe=0,de=t-1;de>=W&&e.charCodeAt(de)===oe;)Pe++,de--;Pe>=2&&(Se=!0,ke=Pe)}if(Se){for((K||t-ke>W)&&(B.push(wi(K+e.slice(W,t-ke))),K=""),B.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===oe;)t++;W=t;continue}var We=t>W&&e.charCodeAt(t-1)===oe,ut=t+1<r&&e.charCodeAt(t+1)===oe;if(We||ut){for(var ve=t;ve>W&&e.charCodeAt(ve-1)===oe;)ve--;for(K+=`${e.slice(W,ve)}
138
- `,t++;t<r&&e.charCodeAt(t)===oe;)t++;W=t;continue}}if(te)(K||t>W)&&(B.push(wi(K+e.slice(W,t))),K=""),B.push(te.node),t=te.end,W=t;else{if(ee===Nt&&t+1<r){let ge=e.charCodeAt(t+1);if(Ed(ge)&oa){(K||t>W)&&(B.push(wi(K+e.slice(W,t))),K=""),B.push(wi(e[t+1])),t+=2,W=t;continue}}if(t++,X<0||X-t>64)for(;t<r&&!(X>=0&&X-t<=64);){var Q=e.charCodeAt(t);if(Q<Pl&&!c1[Q])t++;else break}}}return(K||r>W)&&(B.push(wi(K+e.slice(W,r))),K=""),V.length>0&&uz(B,V),br=n,So--,B}var yz=500;function Rn(e,t,r){var i=t.o||0;if(i>yz)return[{type:ne.text,text:e}];if(t.o=i+1,r.optimizeForStreaming&&!(t.i||t.w)){for(var a=e.length;a>0&&e.charCodeAt(a-1)===fe;)a--;for(var n=a;n>0&&e.charCodeAt(n-1)!==fe;)n--;if(a>n&&e.charCodeAt(n)===Ft){for(var o=!1,s=n+1;s<a;s++){var l=e.charCodeAt(s);if(l!==oe&&l!==le&&l!==Ft&&l!==$t&&l!==_e){o=!0;break}}for(var u=!1,c=!1,f=0,p=n,d=n-1;d>0;){for(var m=d;m>0&&e.charCodeAt(m-1)!==fe;)m--;if(e.charCodeAt(m)!==Ft)break;p=m;for(var k=!0,v=!1,g=m;g<d;g++){var b=e.charCodeAt(g);if(b===_e)v=!0;else if(b!==oe&&b!==le&&b!==$t&&b!==Ft){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=m-1}o?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,p).trimEnd()}for(var w=-1,S=-1,h=-1,y=!1,C=e.length-1;C>=0;C--)if(e.charCodeAt(C)===it){for(var x=C+1<e.length?e.charCodeAt(C+1):0,_=x>=we&&x<=Ae||x>=Ze&&x<=lt,E=x===bt&&C+2<e.length&&(e.charCodeAt(C+2)>=we&&e.charCodeAt(C+2)<=Ae||e.charCodeAt(C+2)>=Ze&&e.charCodeAt(C+2)<=lt),A=x===Wt||x===aa,O=e.length;O>C+1&&e.charCodeAt(O-1)===fe;)O--;var F=C+1>=O;if(_||E||A||F){var T=C+1;if((E||_)&&(T=C+2),_||E)for(;T<e.length;){var j=e.charCodeAt(T);if(j>=we&&j<=Ae||j>=Ze&&j<=lt||j>=Fe&&j<=De)T++;else break}for(var q=_||E?T:C+2;q<e.length&&e.charCodeAt(q)!==Ne;)q++;if(q>=e.length)w=C,y=!0;else if((_||E)&&e.charCodeAt(q-1)!==bt){for(var H=!1,Y=q+1;Y<e.length;Y++)if(e.charCodeAt(Y)===it){H=!0;break}H||(w=C,S=T,h=q+1)}}break}if(w>=0){for(var Z=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&Z++;if(Z%2===0)if(y)e=e.slice(0,w);else{var M=e.slice(w+1,S);zn(e,`</${M}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var R=e.length;R>0&&e.charCodeAt(R-1)===fe;)R--;if(R>0){for(var I=R;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var D=I,L=0;D<R&&e.charCodeAt(D)===oe&&L<3;)D++,L++;if(I>0&&D<R&&J$(e,D,R)){for(var B=I-1,V=B;V>0&&e.charCodeAt(V-1)!==fe;)V--;Gt(e,V,B)||(e=e.slice(0,I).trimEnd())}}var W=e.length;if(W>0){for(var K=e.lastIndexOf(`
139
- `),X=K===-1?0:K+1,z=W,$=X,J=0;$<z&&e.charCodeAt($)===oe&&J<3;)$++,J++;if($<z){var G=e.charCodeAt($),ie=!1;if(G===wt||G===_e||G===Dn){var re=$+1;if(re>=z||e.charCodeAt(re)===oe||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===oe||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(G>=Fe&&G<=De){for(var ye=$;ye<z&&e.charCodeAt(ye)>=Fe&&e.charCodeAt(ye)<=De;)ye++;if(ye<z&&(e.charCodeAt(ye)===vr||e.charCodeAt(ye)===Nr)){var Se=ye+1;if(Se>=z||e.charCodeAt(Se)===oe||e.charCodeAt(Se)===le){for(var ke=Se;ke<z&&(e.charCodeAt(ke)===oe||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,X).trimEnd())}}}if(t.inline)return Gr(e,0,e.length,t,r);let Pe=[],de=0,We=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=d$(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let pt=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:pt})}de=ce.endPos}}for(;de<We;){for(var ut=e.indexOf(`
140
- `,de),ve=ut<0?We:ut;de<We&&Gt(e,de,ve);)de=ve<We?ve+1:ve,de<We&&(ut=e.indexOf(`
141
- `,de),ve=ut<0?We:ut);if(de>=We)break;var Q=e.charCodeAt(de)===vd;Et(e,de,ve);let ce=null;if(Ad=e,xd=de,Fl=ve,!Q&&Xe>=4&&!t.inHTML)ce=X$(e,de);else if(!Q){let pt=de+He,qe=e.charCodeAt(pt);qe===gr?ce=G$(e,de,t,r):qe===Ne?ce=Z$(e,de,t,r):qe===Je||qe===Pt?ce=Y$(e,de):qe===_e||qe===wt||qe===gt?(ce=qn(e,de),!ce&&(ce=C1(e,de,t,r))):qe===Dn||qe>=Fe&&qe<=De?ce=C1(e,de,t,r):qe===it?ce=E1(e,de,t,r):qe===Ft?ce=x1(e,de,t,r):qe===vt&&(ce=tz(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===Ft){ee=!0;break}ee&&(ce=x1(e,de,t,r))}if(ce||(ce=nz(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var ge=e.indexOf(`
142
- `,de);de=ge<0?We:ge+1}}return t.o=i,Pe}function vz(e,t,r,i){var a=Wr(e,t);return a?{tagName:a.tag,tagLower:a.tag.toLowerCase(),attrs:a.b,whitespaceBeforeAttrs:a.g,isSelfClosing:a.n,hasSpaceBeforeSlash:a.r,isClosing:a.f,hasNewline:a.g.includes(`
137
+ `)!==-1||/^#{1,6}\s/.test(A);M?(i.inline=!1,C=Rn(A,i,a)):C=Gr(A,0,A.length,i,a),i.inAnchor=O,i.inline=F,i.k=N}return{node:{type:ie.htmlBlock,tag:b,attrs:Kr(g.attrs,b,a),b:g.b,children:C,text:ar(x),c:!1,a:!1},end:y}}var Nz=200,Ss=0;function Gr(e,t,r,i,a){if(Ss++,Ss>Nz)return Ss--,[{type:ie.text,text:e.slice(t,r)}];var n=br;br=xz();let s=i;if(a.optimizeForStreaming){let re=function(Ke,St){for(var xt=1,ut=St+1;ut<Ke.length;ut++){var Ct=Ke.charCodeAt(ut);if(Ct===vt)xt++;else if(Ct===Ir&&(xt--,xt===0))return ut}return-1},ne=e.slice(t,r),ye=ne;for(var o=0,l=0,c=0,u=0,f=0,p=-1,d=-1,h=-1,v=-1,k=-1,g=0;g<ne.length;g++){var b=ne.charCodeAt(g);b===wt?g+1<ne.length&&ne.charCodeAt(g+1)===wt?(o++,p=g,g++):(l++,d=g):b===gt?g+1<ne.length&&ne.charCodeAt(g+1)===gt?(c++,h=g,g++):(u++,v=g):b===Pt&&g+1<ne.length&&ne.charCodeAt(g+1)===Pt&&(f++,k=g,g++)}var w=[];f%2===1&&k>=0&&w.push([k,2]),c%2===1&&h>=0&&w.push([h,2]),u%2===1&&v>=0&&w.push([v,1]),o%2===1&&p>=0&&w.push([p,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((Ke,St)=>St[0]-Ke[0]);for(var E=0;E<w.length;E++){var m=w[E][0],y=w[E][1];ne=ne.slice(0,m)+ne.slice(m+y)}let ue=0,pt=-1;for(let Ke=0;Ke<ne.length;Ke++)ne.charCodeAt(Ke)===Je&&(ue++,pt=Ke);if(ue%2===1&&pt!==-1){let Ke=!1,St=-1,xt=0;for(;xt<ne.length;)ne.charCodeAt(xt)===Je&&(Ke?(Ke=!1,St=-1):(St=xt,Ke=!0)),xt++;Ke&&St!==-1&&(ne=ne.slice(0,St))}for(var S=!0;S;){S=!1;for(var x=-1,_=-1,C=-1,A=!1,O=0;O<ne.length;O++){var F=ne.charCodeAt(O);if(F===vt&&(O===0||ne.charCodeAt(O-1)!==Nt)){var N=O>0&&ne.charCodeAt(O-1)===Wt,M=N?O-1:O,q=re(ne,O);if(q===-1)x=M,A=N,_=O+1,C=ne.length;else{var H=q+1;if(H>=ne.length)x=M,A=N,_=O+1,C=q;else if(ne.charCodeAt(H)===Tr){var J=ne.indexOf(")",H+1);J===-1?(x=M,A=N,_=O+1,C=q,O=ne.length):O=J}else if(ne.charCodeAt(H)===vt){var X=ne.indexOf("]",H+1);X===-1?(x=M,A=N,_=O+1,C=q,O=ne.length):O=X}else O=q}}}if(x>=0){var P=A?"":ne.slice(_,C);ne=ne.slice(0,x)+P,S=!0}}let qe=ne.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(qe&&qe.index!==void 0){var j=qe[0].length-qe[2].length,U=j>=2&&qe[0].charCodeAt(j-2)===bt;if(!U){for(var T=!1,D=0,L=0;L<qe.index;L++)ne.charCodeAt(L)===Je&&D++;if(T=D%2===1,!T){let Ke=qe[1];zn(ne,`</${Ke}`,0)===-1&&(ne=ne.slice(0,qe.index)+qe[2])}}}ne!==ye&&(e=e.slice(0,t)+ne,r=t+ne.length)}let B=[];var V=[];let W=t;var Y="",Z=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(Z>=r&&(Z=-1);t<r;){let re=e.charCodeAt(t),ne=null;if(re===Je){if(ne=kz(e,t,r),!ne){var z=Ln(e,t,r,Je);t+=z-1}}else if(re===wt||re===gt){var $=Ez(e,t,r);if($){if($.canOpen||$.canClose){(Y||t>W)&&(B.push(wi(Y+e.slice(W,t))),Y="");var G=e.slice(t,t+$.len),K=wi(G);V.push({idx:B.length,ch:re,len:$.len,canOpen:$.canOpen,canClose:$.canClose,active:!0}),B.push(K),t+=$.len,W=t;continue}t+=$.len-1}}else if(re===Pt)ne=Sz(e,t,r,s,a);else if(re===yr)ne=Cz(e,t,r,s,a);else if(re===vt)t+1<r&&e.charCodeAt(t+1)===un&&(ne=Oz(e,t,r)),ne||(ne=U1(e,t,r,s,a));else if(re===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)ne=U1(e,t,r,s,a);else if(re===it)ne=B1(e,t,r),!(ne||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(ne=Tz(e,t,r,s,a));else if(re===Ol){var ee=Iz(e,t,r);if(ee!==-1){var te=e.slice(t,ee),se=Mn(te);if(se!==te){Y=Y+e.slice(W,t)+se,t=ee,W=ee;continue}}}else if((re===_l||re===mi||re===pi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==it)){var ge=t+1<r?e.charCodeAt(t+1):0;(re===_l&&ge===ia||re===pi&&ge===ia||re===mi&&ge===mi)&&(ne=_z(e,t,r,a))}if(!ne&&Z>=0&&Z-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(re>=Ce&&re<=xe||re>=Ze&&re<=lt||re>=Fe&&re<=De)&&(ne=Pz(e,t,r,a),!ne&&t>=Z&&(Z=e.indexOf("@",t+1),Z>=r&&(Z=-1))),re===fe&&s.k){var be=!1,ve=0;if(t>W&&e.charCodeAt(t-1)===Nt)be=!0,ve=1;else{for(var Se=0,de=t-1;de>=W&&e.charCodeAt(de)===oe;)Se++,de--;Se>=2&&(be=!0,ve=Se)}if(be){for((Y||t-ve>W)&&(B.push(wi(Y+e.slice(W,t-ve))),Y=""),B.push({type:ie.breakLine}),t++;t<r&&e.charCodeAt(t)===oe;)t++;W=t;continue}var We=t>W&&e.charCodeAt(t-1)===oe,ct=t+1<r&&e.charCodeAt(t+1)===oe;if(We||ct){for(var ke=t;ke>W&&e.charCodeAt(ke-1)===oe;)ke--;for(Y+=`${e.slice(W,ke)}
138
+ `,t++;t<r&&e.charCodeAt(t)===oe;)t++;W=t;continue}}if(ne)(Y||t>W)&&(B.push(wi(Y+e.slice(W,t))),Y=""),B.push(ne.node),t=ne.end,W=t;else{if(re===Nt&&t+1<r){let ye=e.charCodeAt(t+1);if(_d(ye)&sa){(Y||t>W)&&(B.push(wi(Y+e.slice(W,t))),Y=""),B.push(wi(e[t+1])),t+=2,W=t;continue}}if(t++,Z<0||Z-t>64)for(;t<r&&!(Z>=0&&Z-t<=64);){var Q=e.charCodeAt(t);if(Q<Il&&!k1[Q])t++;else break}}}return(Y||r>W)&&(B.push(wi(Y+e.slice(W,r))),Y=""),V.length>0&&Az(B,V),br=n,Ss--,B}var Fz=500;function Rn(e,t,r){var i=t.o||0;if(i>Fz)return[{type:ie.text,text:e}];if(t.o=i+1,r.optimizeForStreaming&&!(t.i||t.w)){for(var a=e.length;a>0&&e.charCodeAt(a-1)===fe;)a--;for(var n=a;n>0&&e.charCodeAt(n-1)!==fe;)n--;if(a>n&&e.charCodeAt(n)===Ft){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==oe&&l!==ce&&l!==Ft&&l!==$t&&l!==Pe){s=!0;break}}for(var c=!1,u=!1,f=0,p=n,d=n-1;d>0;){for(var h=d;h>0&&e.charCodeAt(h-1)!==fe;)h--;if(e.charCodeAt(h)!==Ft)break;p=h;for(var v=!0,k=!1,g=h;g<d;g++){var b=e.charCodeAt(g);if(b===Pe)k=!0;else if(b!==oe&&b!==ce&&b!==$t&&b!==Ft){v=!1;break}}v&&k?(c=!0,u=!0):u||f++,d=h-1}s?c||(e=e.slice(0,n).trimEnd()):e=c&&f>0?e.slice(0,n).trimEnd():e.slice(0,p).trimEnd()}for(var w=-1,E=-1,m=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===it){for(var x=S+1<e.length?e.charCodeAt(S+1):0,_=x>=Ce&&x<=xe||x>=Ze&&x<=lt,C=x===bt&&S+2<e.length&&(e.charCodeAt(S+2)>=Ce&&e.charCodeAt(S+2)<=xe||e.charCodeAt(S+2)>=Ze&&e.charCodeAt(S+2)<=lt),A=x===Wt||x===aa,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var F=S+1>=O;if(_||C||A||F){var N=S+1;if((C||_)&&(N=S+2),_||C)for(;N<e.length;){var M=e.charCodeAt(N);if(M>=Ce&&M<=xe||M>=Ze&&M<=lt||M>=Fe&&M<=De)N++;else break}for(var q=_||C?N:S+2;q<e.length&&e.charCodeAt(q)!==Ne;)q++;if(q>=e.length)w=S,y=!0;else if((_||C)&&e.charCodeAt(q-1)!==bt){for(var H=!1,J=q+1;J<e.length;J++)if(e.charCodeAt(J)===it){H=!0;break}H||(w=S,E=N,m=q+1)}}break}if(w>=0){for(var X=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&X++;if(X%2===0)if(y)e=e.slice(0,w);else{var j=e.slice(w+1,E);zn(e,`</${j}`,0)===-1&&(e=e.slice(0,w)+e.slice(m))}}for(var U=e.length;U>0&&e.charCodeAt(U-1)===fe;)U--;if(U>0){for(var T=U;T>0&&e.charCodeAt(T-1)!==fe;)T--;for(var D=T,L=0;D<U&&e.charCodeAt(D)===oe&&L<3;)D++,L++;if(T>0&&D<U&&fz(e,D,U)){for(var B=T-1,V=B;V>0&&e.charCodeAt(V-1)!==fe;)V--;Gt(e,V,B)||(e=e.slice(0,T).trimEnd())}}var W=e.length;if(W>0){for(var Y=e.lastIndexOf(`
139
+ `),Z=Y===-1?0:Y+1,z=W,$=Z,G=0;$<z&&e.charCodeAt($)===oe&&G<3;)$++,G++;if($<z){var K=e.charCodeAt($),ee=!1;if(K===wt||K===Pe||K===Dn){var te=$+1;if(te>=z||e.charCodeAt(te)===oe||e.charCodeAt(te)===ce){for(var se=te;se<z&&(e.charCodeAt(se)===oe||e.charCodeAt(se)===ce);)se++;se>=z&&(ee=!0)}}else if(K>=Fe&&K<=De){for(var ge=$;ge<z&&e.charCodeAt(ge)>=Fe&&e.charCodeAt(ge)<=De;)ge++;if(ge<z&&(e.charCodeAt(ge)===vr||e.charCodeAt(ge)===Nr)){var be=ge+1;if(be>=z||e.charCodeAt(be)===oe||e.charCodeAt(be)===ce){for(var ve=be;ve<z&&(e.charCodeAt(ve)===oe||e.charCodeAt(ve)===ce);)ve++;ve>=z&&(ee=!0)}}}ee&&(e=e.slice(0,Z).trimEnd())}}}if(t.inline)return Gr(e,0,e.length,t,r);let Se=[],de=0,We=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ue=_$(e);if(ue!=null&&ue.hasValidYaml){if(r.preserveFrontmatter!==!1){let pt=e.slice(0,ue.endPos).trimEnd();Se.push({type:ie.frontmatter,text:pt})}de=ue.endPos}}for(;de<We;){for(var ct=e.indexOf(`
140
+ `,de),ke=ct<0?We:ct;de<We&&Gt(e,de,ke);)de=ke<We?ke+1:ke,de<We&&(ct=e.indexOf(`
141
+ `,de),ke=ct<0?We:ct);if(de>=We)break;var Q=e.charCodeAt(de)===Sd;Et(e,de,ke);let ue=null;if(Pd=e,Id=de,Dl=ke,!Q&&Xe>=4&&!t.inHTML)ue=pz(e,de);else if(!Q){let pt=de+He,qe=e.charCodeAt(pt);qe===gr?ue=uz(e,de,t,r):qe===Ne?ue=mz(e,de,t,r):qe===Je||qe===Pt?ue=dz(e,de):qe===Pe||qe===wt||qe===gt?(ue=qn(e,de),!ue&&(ue=F1(e,de,t,r))):qe===Dn||qe>=Fe&&qe<=De?ue=F1(e,de,t,r):qe===it?ue=D1(e,de,t,r):qe===Ft?ue=j1(e,de,t,r):qe===vt&&(ue=yz(e,de,t))}if(!ue){for(var re=!1,ne=de;ne<ke;ne++)if(e.charCodeAt(ne)===Ft){re=!0;break}re&&(ue=j1(e,de,t,r))}if(ue||(ue=bz(e,de,t,r)),ue)ue.node.type!==ie.refCollection&&Se.push(ue.node),de=ue.end;else{var ye=e.indexOf(`
142
+ `,de);de=ye<0?We:ye+1}}return t.o=i,Se}function Dz(e,t,r,i){var a=Wr(e,t);return a?{tagName:a.tag,tagLower:a.tag.toLowerCase(),attrs:a.b,whitespaceBeforeAttrs:a.g,isSelfClosing:a.n,hasSpaceBeforeSlash:a.r,isClosing:a.f,hasNewline:a.g.includes(`
143
143
  `)||a.b.includes(`
144
- `),endPos:a.end}:null}function Ld(e,t,r){So=0,e=w$(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=W$(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=Rn(e,t,r);if(i&&a){for(var o=i,s={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},l=0;l<o.length;l++){var u=o[l];t.inline=u.inline,t.inAnchor=u.inAnchor,t.inHTML=u.inHTML,t.d=u.htmlDepth,t.inList=u.inList,t.inBlockQuote=u.inBlockQuote,t.l=u.noSetext,t.o=u.depth,t.k=u.breaks;var c=Gr(u.text,0,u.text.length,t,r);t.k=!1;for(var f=0;f<c.length;f++)u.dest.push(c[f])}t.inline=s.inline,t.inAnchor=s.inAnchor,t.inHTML=s.inHTML,t.d=s.htmlDepth,t.inList=s.inList,t.inBlockQuote=s.inBlockQuote,t.l=s.noSetext,t.o=s.depth;for(var p=a,d=0;d<p.length;d++)for(var m=p[d],k=0;k<m.src.length;k++){var v=m.src[k];if(m.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)m.dest.push(g[b]);else m.dest.push(v)}t.t=void 0,t.p=void 0,jd(n,t,r.slugify)}return r1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var qd;try{da=Zr.createElement("div"),qd=da!=null&&typeof da=="object"&&"$$typeof"in da&&typeof da.$$typeof=="symbol"?da.$$typeof:Symbol.for("react.transitional.element")}catch{qd=Symbol.for("react.transitional.element")}var da;function $d(e,t,r){return{$$typeof:qd,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function kr(e,t){var r={key:e};if(t){var i=Yk(t);for(var a in i)r[a]=i[a]}return r}var D1=typeof Zr.createContext>"u"?void 0:Zr.createContext(void 0);function M1(e,t,r,i,a,n,o,s,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),vi)}`,e.children.unshift(E$(e.alert))),i("blockquote",g,t(e.children,r))}case ne.breakLine:return i("br",{key:r.key});case ne.breakThematic:return i("hr",{key:r.key});case ne.frontmatter:return s.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?Mn(e.lang):"";var u=e.attrs?Yk(e.attrs):{};return u.className=g?`language-${g} lang-${g}`:"",i("pre",{key:r.key},i("code",u,e.text))}case ne.codeInline:return i("code",{key:r.key},e.text);case ne.footnoteReference:return i("a",{key:r.key,href:a(e.target,"a","href")||void 0},i("sup",null,e.text));case ne.gfmTask:return i("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case ne.heading:return i(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case ne.htmlBlock:{let g=e;if(la(s)&&o1(g.tag)){var c=a1(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...P$(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,S=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(S&&g.c){let h=g.tag.toLowerCase(),y=$$(h),C=g.children,x=C!=null&&C.length>0;if(y){let j=w?b:g.e||"",q=la(s)?s1(j):j;if(/<[a-z][^>]{0,100}>/i.test(S)){var f=kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,kr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(x&&!_.test(S)&&la(s)&&M$(S))return l(e.tag,kr(r.key,e.attrs),t(C,r));if(z$(S)){let j=la(s)?s1(S):S;var p=kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},l(e.tag,p)}let E=kd({slugify:s.slugify,sanitizer:a,tagfilter:!0}),A=S$(S);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(A))return g.children&&g.children.length>0?l(e.tag,kr(r.key,e.attrs),t(g.children,r)):l(e.tag,kr(r.key,e.attrs));let O=Ld(A,{inline:!1,refs:o,inHTML:!1},E);n1(O);let F=g.tag.toLowerCase(),T=w;if(T&&x)return l(e.tag,kr(r.key,e.attrs),t(C,r));if(T)return t(O.flatMap(sa),r);var d=O$(O,F);if(d.found&&d.afterClose.length>0){var m=d.beforeClose.flatMap(sa),k=d.afterClose.flatMap(sa);return $d(Zr.Fragment,{children:[l(e.tag,kr(r.key,e.attrs),t(m,r)),t(k,r)]},r.key)}return l(e.tag,kr(r.key,e.attrs),t(O.flatMap(sa),r))}return bo(e.tag)?l(e.tag,kr(r.key,e.attrs)):l(e.tag,kr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(la(s)&&o1(g.tag)){var v=a1(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,kr(r.key,e.attrs))}case ne.image:{let g=e.target===null?null:a(e.target,"img","src");return i("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:g||void 0})}case ne.link:{let g={key:r.key};if(e.target!=null){let b=I$(e.target,a,"a","href");b!=null&&(g.href=b)}return e.title&&(g.title=e.title),i("a",g,t(e.children,r))}case ne.table:{let g=e;return i("table",{key:r.key},i("thead",{key:"thead"},i("tr",null,g.header.map(function(b,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(b,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(b,w){return i("tr",{key:w},b.map(function(S,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(S,r))}))})))}case ne.text:return e.text;case ne.textFormatted:return i(e.tag,{key:r.key},t(e.children,r));case ne.orderedList:case ne.unorderedList:{let g=e.type===ne.orderedList?"ol":"ul";return i(g,{key:r.key,start:e.type===ne.orderedList?e.start:void 0},e.items.map(function(b,w){return i("li",{key:w},t(b,r))}))}case ne.paragraph:return i("p",{key:r.key},t(e.children,r));case ne.ref:return null;default:return null}}var bz=(e,t,r,i,a,n,o)=>{var s=u=>u.map(c=>"text"in c?c.text:""),l=(u,c={})=>{var f=Array.isArray(u)?u:[u],p=(c.renderDepth||0)+1;if(p>2500)return s(f);c.renderDepth=p;for(var d=c.key,m=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=M1.bind(null,f[v],l,c,t,r,i,a,n,o);g=e(b,f[v],l,c)}else g=M1(f[v],l,c,t,r,i,a,n,o);var w=typeof g=="string";if(k&&typeof g=="string"){var S=m.at(-1);m[m.length-1]=(typeof S=="string"?S:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)m.push(g[h]);else m.push(g);k=w}return c.key=d,c.renderDepth=p-1,m};return l},kz=(e,t)=>{let r=bd(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:bd(t,`${e}.component`,e):e};function wz(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||vi,a=r.sanitizer||fn,n=r.createElement,o=r1(r.overrides),s=w=>zd(w,{...r,wrapper:null});function l(w){for(var S in w){var h=w[S];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===it&&(j$.test(h)||L$.test(h)||vz(h,0))){var y=s(h.trim());w[S]=S==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,S,...h){var y=S||{},C=w;if(o){var x=bd(r.overrides,`${w}.props`,{});C=kz(w,r.overrides),y={...y,...x,className:F$(y.className,x.className)||void 0}}if(!n){var _=y.key;return _!=null&&delete y.key,h.length===1?y.children=h[0]:h.length>1&&(y.children=h),$d(C,y,_)}return n(C,y,...h)}function c(w,S,...h){return S&&l(S),u(w,S,...h)}let f=kd(r,r.forceInline),p=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=bz(r.renderRule,u,a,i,p,r,c),m=d(e,{inline:r.forceInline,refs:p}),k=T$(p);if(k.length>0&&m.push(u("footer",{key:"footer"},k.map(function(w){let S=w.identifier.charCodeAt(0)===cn?w.identifier.slice(1):w.identifier,h=Ld(w.footnote,{inline:!0,refs:p},f);return u("div",{id:i(S,vi),key:w.identifier},`${S}: `,d(h,{inline:!0,refs:p}))}))),r.wrapper===null)return m;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(m.length>1||r.forceWrapper)g=m;else return m.length===1?m[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,$d(v,b,"outer")}function zd(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let o=r.forceInline||!(r.forceBlock||g$.test(n)),s=kd(r,o),l=o?n:x$(n),u=Ld(l,{inline:o,refs:a},s);return wz(u,{...r,forceInline:o})}let a={};return i(e)}function Sz(e){let t=Zr.useRef(e),r=t.current;if(r!==e){var i=!0,a=0;for(var n in e)if(a++,!Object.is(r[n],e[n])){i=!1;break}if(i){var o=0;for(var s in r)o++;i=o===a}i||(t.current=e)}return t.current}var Co=({children:e,options:t,...r})=>{if(!(typeof Zr.useContext<"u")){let s={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return zd(e??"",s)}let i=D1?Zr.useContext(D1):void 0,a=Sz(r),n=Zr.useMemo(()=>({...i,...t,overrides:{...i==null?void 0:i.overrides,...t==null?void 0:t.overrides},wrapperProps:{...i==null?void 0:i.wrapperProps,...t==null?void 0:t.wrapperProps,...a}}),[i,t,a]),o=e??"";return Zr.useMemo(()=>zd(o,n),[o,n])};const j1=Symbol("remove-this-key"),L1=Symbol("reset");function Cz(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function Ez(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(Oe.NewStringDefault)}}function q1(e){return!!(e!=null&&e[hn])}function $1(e){return Object.keys(e).filter(t=>q1(e[t]))}function Az(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:o,onChange:s,onBlur:l,onFocus:u,disabled:c,readonly:f,required:p,hideError:d,propertyName:m,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=U.useState(!1),{globalFormOptions:S,fields:h}=i,{SchemaField:y}=h,C=Zi(Or(m,S,t.path)),x=U.useCallback((O,F,T,j)=>{let q=O;O===void 0&&g&&(q=""),s(q,F,T,j)},[s,g]),_=U.useCallback(O=>{m!==O&&w(!0),k(m,O)},[m,k]),E=U.useCallback(O=>{const{target:{value:F}}=O;_(F)},[_]),A=U.useCallback(()=>{v(m)},[m,v]);return N.jsx(y,{name:m,required:p,schema:r,uiSchema:a,errorSchema:n,fieldPathId:C,formData:o,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:E,onRemoveProperty:A,onChange:x,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const xz=U.memo(Az);function Oz(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:o,required:s=!1,disabled:l,readonly:u,hideError:c,onBlur:f,onFocus:p,onChange:d,registry:m,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=m,{OptionalDataControlsField:S}=v,h=U.useRef(i);h.current=i;const y=U.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),C=U.useMemo(()=>pe(r,w),[r,w]),x=U.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,E=U.useRef({previousKey:"",currentKey:void 0}),[A,O]=U.useState(()=>$1(x)),F=U.useMemo(()=>{const V=new Set($1(x));return Object.keys(x).filter(W=>!V.has(W))},[x]),T=C.title??y.title??k??o,j=C.description??y.description,q=ao(m,y,s,r),H=Xi(i);let Y=[];const Z=U.useCallback((V,W)=>{const{duplicateKeySuffixSeparator:K="-"}=pe(r,w);let X=0,z=V;for(;$e(W,z);)X+=1,z=`${V}${K}${X}`;return z},[r,w]),P=U.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const V={...i},W=Z("newKey",V);if(y.patternProperties)st(V,W,null);else{let K,X,z;if(Re(y.additionalProperties)){K=y.additionalProperties.type,X=y.additionalProperties.const,z=y.additionalProperties.default;let J=y.additionalProperties;at in J&&(J=g.retrieveSchema({[at]:J[at]},i),K=J.type,X=J.const,z=g.getDefaultFormState(J,z)),!K&&(je in J||xe in J)&&(K="object")}const $=X??z??Ez(b,K);st(V,W,$)}E.current.previousKey===W&&(E.current.currentKey=W,E.current.previousKey=Z(W,V)),O(K=>[...K,W]),d(V,_.path)},[i,d,b,g,_,Z,y]),M=U.useCallback((V,W)=>{if(V!==W){const K=h.current,X=Z(W,K),z={...K},$={[V]:X},J=Object.keys(z).map(ie=>({[Object.hasOwn($,ie)?$[ie]:ie]:z[ie]})),G=Object.assign({},...J);h.current=G,V!==E.current.currentKey&&(E.current.previousKey=V),E.current.currentKey=X,O(ie=>ie.map(re=>re===V?X:re)),d(G,_.path)}},[d,_,Z]),R=U.useCallback(V=>{O(W=>W.filter(K=>K!==V)),d(j1,[..._.path,V])},[d,_]),I=U.useCallback(V=>E.current.currentKey===V?E.current.previousKey:V,[]);if(!q||H)try{const V=new Set(F),W=A.filter(K=>Object.hasOwn(x,K)&&!V.has(K));Y=iM([...F,...W],C.order)}catch(V){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(Co,{options:{disableParsingRawHTML:!0},children:b(Oe.InvalidObjectField,[o||"root",V.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const D=he("ObjectFieldTemplate",m,C),L=q?N.jsx(S,{...e,fieldPathId:_,schema:y}):void 0,B={title:C.label===!1?"":T,description:C.label===!1?void 0:j,properties:Y.map(V=>{var $;const W=q1(($=y.properties)==null?void 0:$[V]),K=W?r.additionalProperties:r[V],X=pe(K).widget==="hidden";return{content:N.jsx(xz,{propertyName:V,required:Cz(y,V),schema:ae(y,[ze,V],{}),uiSchema:K,errorSchema:ae(a,[V]),fieldPathId:_,formData:ae(i,[V]),handleKeyRename:M,handleRemoveProperty:R,addedByAdditionalProperties:W,onChange:d,onBlur:f,onFocus:p,registry:m,disabled:l,readonly:u,hideError:c},I(V)),name:V,readonly:u,disabled:l,required:s,hidden:X}}),readonly:u,disabled:l,required:s,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:m,optionalDataControl:L,className:q?"rjsf-optional-object-field":void 0};return N.jsx(D,{...B,onAddProperty:P})}function _z(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:o,errorSchema:s,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:p}=u,d=pe(r,c),m=he("OptionalDataControlsTemplate",u,d),k=Xi(i);let v,g,b,w;if(a||n)v=pf(l,"Msg"),g=k?void 0:p(Oe.OptionalObjectEmptyMsg);else{const S=k?Oe.OptionalObjectRemove:Oe.OptionalObjectAdd;g=p(S),k?(v=pf(l,"Remove"),w=()=>o(void 0,l.path,s)):(v=pf(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=pr(t)==="array"?[]:{}),o(h,l.path,s)})}return g&&N.jsx(m,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const Pz={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Iz(e,t,r){const{field:i}=t,{fields:a,schemaUtils:n}=r;if(typeof i=="function")return i;if(typeof i=="string"&&i in a)return a[i];const o=pr(e),s=Array.isArray(o)?o[0]:o||"",l=e.$id;let u=Pz[s];return l&&l in a&&(u=l),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&u!=="ObjectField"?()=>null:u in a?a[u]:a.FallbackField}function Tz(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:o,onChange:s,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:m,globalFormOptions:k,globalUiOptions:v,fields:g}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:S}=g,h=r[tt],y=U.useCallback((ke,Pe,de,We)=>s(ke,Pe,de,We||h),[h,s]);if(t[sc])return N.jsx(S,{...e});const C=aM(t,i,p),x=pe(C,v),_=he("FieldTemplate",p,x),E=he("DescriptionFieldTemplate",p,x),A=he("FieldHelpTemplate",p,x),O=he("FieldErrorTemplate",p,x),F=m.retrieveSchema(t,a),T=Iz(F,x,p),q=!!F.deprecated?x.deprecatedHandling??"label":void 0,H=!!(x.disabled??e.disabled)||q==="disable",Y=!!(x.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),Z=x.hideError,P=Z===void 0?e.hideError:!!Z,M=!!(x.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let R=m.getDisplayLabel(F,C,v);const I=x.field&&x.fieldReplacesAnyOrOneOf===!0;let D,L,B={fieldPathId:r};if((je in F||xe in F)&&!I&&!m.isSelect(F)){F[je]?(D=b,L=F[je].map(de=>m.retrieveSchema(Re(de)?de:{},a))):F[xe]&&(D=w,L=F[xe].map(de=>m.retrieveSchema(Re(de)?de:{},a)));const ke=ao(p,F,f,C),Pe=Xi(a);R=R&&(!ke||Pe),B={childFieldPathId:r,fieldPathId:Or("XxxOf",k,r)}}const{__errors:V,...W}=n||{},K=Ga(C,["ui:classNames","classNames","ui:style"]);gn in K&&(K[gn]=Ga(K[gn],["classNames","style"]));const X=N.jsx(T,{...e,onChange:y,...B,schema:F,uiSchema:K,disabled:H,readonly:Y,hideError:P,autofocus:M,errorSchema:W,rawErrors:V}),z=r[tt];let $;d?$=o:$=hn in F?o:x.title||e.schema.title||F.title||e.title||o,q==="label"&&($=p.translateString(Oe.DeprecatedLabel,[$]));const J=x.description||e.schema.description||F.description||"",{help:G}=x,ie=x.widget==="hidden"||q==="hide",re=["rjsf-field",`rjsf-field-${pr(F)}`];!P&&V&&V.length>0&&re.push("rjsf-field-error"),x.classNames&&re.push(x.classNames);const ue=N.jsx(A,{help:G,fieldPathId:r,schema:F,uiSchema:C,hasErrors:!P&&V&&V.length>0,registry:p}),ye=P||D&&!m.isSelect(F)?void 0:N.jsx(O,{errors:V,errorSchema:n,fieldPathId:r,schema:F,uiSchema:C,registry:p}),Se={description:N.jsx(E,{id:xn(z),description:J,schema:F,uiSchema:C,registry:p}),rawDescription:J,help:ue,rawHelp:typeof G=="string"?G:void 0,errors:ye,rawErrors:P?void 0:V,fieldPathId:r,id:z,label:$,hidden:ie,onChange:s,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:H,readonly:Y,hideError:P,displayLabel:R,classNames:re.join(" ").trim(),style:x.style,formData:a,schema:F,uiSchema:C,registry:p};return N.jsx(_,{...Se,children:N.jsxs(N.Fragment,{children:[X,D&&N.jsx(D,{name:o,disabled:H,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:C})]})})}const Nz=U.memo(Tz,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?gf(e,t):Ue(e,t)});function Fz(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:o,disabled:s=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:p,registry:d,rawErrors:m,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:S,globalUiOptions:h}=d,y=S.isSelect(t)?li(t,i):void 0;let C=y?"select":"text";b&&QD(t,b,w)&&(C=b);const{widget:x=C,placeholder:_="",title:E,...A}=pe(i),O=S.getDisplayLabel(t,i,h),F=E??v??g??r,T=Vr(t,x,w),j=U.useCallback((q,H,Y)=>c(q,a.path,H,Y),[c,a]);return N.jsx(T,{options:{...A,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:F,hideLabel:!O,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:o,disabled:s,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:m,htmlName:a.name})}function Dz(){return{AnyOfField:Hk,ArrayField:Eq,BooleanField:Aq,CyclicSchemaField:xq,FallbackField:Iq,LayoutGridField:dd,LayoutHeaderField:Xq,LayoutMultiSchemaField:Zq,NumberField:r$,ObjectField:Oz,OneOfField:Hk,OptionalDataControlsField:_z,SchemaField:Nz,StringField:Fz,NullField:Qq}}function Mz(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,o=pe(n,i.globalUiOptions),{label:s=!0}=o;if(!r||!s)return null;const l=he("DescriptionFieldTemplate",i,o);return N.jsx(l,{id:xn(t),description:r,schema:a,uiSchema:n,registry:i})}function jz(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:o,onCopyItem:s,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(v,{id:rr(o,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:p}),(a||i)&&N.jsx(k,{id:rr(o,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),r&&N.jsx(m,{id:rr(o,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:s,uiSchema:d,registry:p}),n&&N.jsx(g,{id:rr(o,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:p})]})}function Lz(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:o,registry:s,uiSchema:l}=e,u=pe(l),c=he("ArrayFieldItemButtonsTemplate",s,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},m={display:"flex",justifyContent:"flex-end",marginTop:a?`${p}px`:0};return N.jsxs("div",{className:r,style:d,children:[N.jsx("div",{className:o?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),o&&N.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:N.jsx("div",{className:"btn-group",style:m,children:N.jsx(c,{...i,style:f})})})]})}function qz(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:o,optionalDataControl:s,onAddClick:l,readonly:u,registry:c,required:f,schema:p,title:d}=e,m=pe(n),k=he("ArrayFieldDescriptionTemplate",c,m),v=he("ArrayFieldTitleTemplate",c,m),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(v,{fieldPathId:a,title:m.title||d,required:f,schema:p,uiSchema:n,registry:c,optionalDataControl:g?s:void 0}),N.jsx(k,{fieldPathId:a,description:m.description||p.description,schema:p,uiSchema:n,registry:c}),g?void 0:s,N.jsx("div",{className:"row array-item-list",children:o}),t&&N.jsx(b,{id:rr(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function $z(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:o,optionalDataControl:s}=e,l=pe(a,o.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=he("TitleFieldTemplate",o,l);return N.jsx(c,{id:ws(t),title:r,required:n,schema:i,uiSchema:a,registry:o,optionalDataControl:s})}function zz(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:ff(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>N.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function Rz(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:o,autofocus:s,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:p,schema:d,uiSchema:m,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...S}=e,{ClearButton:h}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...S,...HD(d,g,p)};let C;y.type==="number"||y.type==="integer"?C=a||a===0?a:"":C=a??"";const x=U.useCallback(({target:{value:O}})=>c(O===""?p.emptyValue:O),[c,p]),_=U.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),E=U.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),A=U.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(p.emptyValue??"")},[c,p.emptyValue]);return N.jsxs(N.Fragment,{children:[N.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:o,autoFocus:s,value:C,...y,list:d.examples?ff(t):void 0,onChange:f||x,onBlur:_,onFocus:E,"aria-describedby":xr(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!o&&C&&N.jsx(h,{registry:k,onClick:A}),N.jsx(zz,{id:t,schema:d})]})}function Uz(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...o}=e;return N.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...o,children:N.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const Un=U.memo(Uz);function Bz(e){const{registry:{translateString:t}}=e;return N.jsx(Un,{title:t(Oe.CopyButton),...e,icon:"copy"})}const Vz=U.memo(Bz);function Hz(e){const{registry:{translateString:t}}=e;return N.jsx(Un,{title:t(Oe.MoveDownButton),...e,icon:"arrow-down"})}const Wz=U.memo(Hz);function Kz(e){const{registry:{translateString:t}}=e;return N.jsx(Un,{title:t(Oe.MoveUpButton),...e,icon:"arrow-up"})}const Gz=U.memo(Kz);function Jz(e){const{registry:{translateString:t}}=e;return N.jsx(Un,{title:t(Oe.RemoveButton),...e,iconType:"danger",icon:"remove"})}const Yz=U.memo(Jz);function Xz({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:o}=a;return N.jsx(Un,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:o(Oe.ClearButton),onClick:r,disabled:i,registry:a,...n})}const Zz=U.memo(Xz);function Qz({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return N.jsx("div",{className:"row",children:N.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:N.jsx(Un,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Oe.AddButton),onClick:r,disabled:i,registry:a})})})}function eR({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=sf(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function tR(){return{SubmitButton:eR,AddButton:Qz,CopyButton:Vz,MoveDownButton:Wz,MoveUpButton:Gz,RemoveButton:Yz,ClearButton:Zz}}function rR(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,o=`${r[tt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(Oe.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:o,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[tt]),children:n(Oe.ExpandButton)})," "]})]})}const z1=lf();function R1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(Co,{options:{disableParsingRawHTML:!0},"data-testid":z1.markdown,children:e}):e}R1.TEST_IDS=z1;function nR(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(R1,{description:r,registry:i,uiSchema:a})}):null}function iR({errors:e,registry:t}){const{translateString:r}=t;return N.jsxs("div",{className:"panel panel-danger errors",children:[N.jsx("div",{className:"panel-heading",children:N.jsx("h3",{className:"panel-title",children:r(Oe.ErrorsLabel)})}),N.jsx("ul",{className:"list-group",children:e.map((i,a)=>N.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function aR(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=he("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function oR(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=cf(r);return N.jsx("div",{children:N.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>N.jsx("li",{className:"text-danger",children:a},n))})})}const U1=lf();function B1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(Co,{options:{disableParsingRawHTML:!0},"data-testid":U1.markdown,children:e}):e}B1.TEST_IDS=U1;function sR(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:df(t),className:"help-block",children:N.jsx(B1,{help:r,registry:a,uiSchema:i})}):null}const lR="*";function V1(e){const{label:t,required:r,id:i}=e;return t?N.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&N.jsx("span",{className:"required",children:lR})]}):null}function uR(e){const{id:t,label:r,children:i,errors:a,help:n,description:o,hidden:s,required:l,displayLabel:u,registry:c,uiSchema:f}=e,p=pe(f),d=he("WrapIfAdditionalTemplate",c,p);if(s)return N.jsx("div",{className:"hidden",children:i});const m=p.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!m&&N.jsx(V1,{label:r,required:l,id:t}),u&&o?o:null,i,a,n]})}function cR(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function fR(e){const{selector:t,optionSchemaField:r}=e;return N.jsxs("div",{className:"panel panel-default panel-body",children:[N.jsx("div",{className:"form-group",children:t}),r]})}function dR(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:o,optionalDataControl:s,properties:l,readonly:u,registry:c,required:f,schema:p,title:d,uiSchema:m}=e,k=pe(m),v=he("TitleFieldTemplate",c,k),g=he("DescriptionFieldTemplate",c,k);if((p.oneOf||p.anyOf)&&!p.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:S}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(v,{id:ws(n),title:d,required:f,schema:p,uiSchema:m,registry:c,optionalDataControl:w?s:void 0}),r&&N.jsx(g,{id:xn(n),description:r,schema:p,uiSchema:m,registry:c}),w?void 0:s,l.map(h=>h.content),Mh(p,m,a)&&N.jsx(S,{id:rr(n,"add"),className:"rjsf-object-property-expand",onClick:o,disabled:i||u,uiSchema:m,registry:c})]})}function pR(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(Un,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(Un,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):N.jsx("em",{id:t,children:i})}const mR="*";function hR(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return N.jsxs("legend",{id:t,children:[r,i&&N.jsx("span",{className:"required",children:mR}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function gR(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let o=Oe.UnsupportedField;const s=[];return r!=null&&r.$id&&(o=Oe.UnsupportedFieldWithId,s.push(r.$id)),i&&(o=o===Oe.UnsupportedField?Oe.UnsupportedFieldWithReason:Oe.UnsupportedFieldWithIdAndReason,s.push(i)),N.jsxs("div",{className:"unsupported-field",children:[N.jsx("p",{children:N.jsx(Co,{options:{disableParsingRawHTML:!0},children:n(o,s)})}),t&&N.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function yR(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:o,onKeyRenameBlur:s,onRemoveProperty:l,rawDescription:u,readonly:c,required:f,schema:p,hideError:d,rawErrors:m,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:S}=b.ButtonTemplates,h=w(Oe.KeyLabel,[o]),y=hn in p,C=!!u,x=["form-group",r];!d&&m&&m.length>0&&x.push("has-error has-danger");const _=x.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:k});const E=C?46:26;return N.jsx("div",{className:_,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-xs-5 form-additional",children:N.jsxs("div",{className:"form-group",children:[n&&N.jsx(V1,{label:h,required:f,id:`${t}-key`}),n&&u&&N.jsx("div",{children:" "}),N.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:s,defaultValue:o},o)]})}),N.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${E}px`:void 0},children:N.jsx(S,{id:rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function vR(){return{ArrayFieldDescriptionTemplate:Mz,ArrayFieldItemTemplate:Lz,ArrayFieldItemButtonsTemplate:jz,ArrayFieldTemplate:qz,ArrayFieldTitleTemplate:$z,ButtonTemplates:tR(),BaseInputTemplate:Rz,CyclicSchemaExpandTemplate:rR,DescriptionFieldTemplate:nR,ErrorListTemplate:iR,FallbackFieldTemplate:aR,FieldTemplate:uR,FieldErrorTemplate:oR,FieldHelpTemplate:sR,GridTemplate:cR,MultiSchemaFieldTemplate:fR,ObjectFieldTemplate:dR,OptionalDataControlsTemplate:pR,TitleFieldTemplate:hR,UnsupportedFieldTemplate:gR,WrapIfAdditionalTemplate:yR}}function bR({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function kR(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:o,registry:s,onBlur:l,onFocus:u}=e,{translateString:c}=s,{elements:f,handleChange:p,handleClear:d,handleSetNow:m}=fM(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>N.jsx("li",{className:"list-inline-item",children:N.jsx(cM,{rootId:n,name:o,select:p,...k,disabled:t,readonly:r,registry:s,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:m,children:c(Oe.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(Oe.ClearLabel)})})]})}function wR({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:o,onBlur:s,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,m=no(r),k=Array.isArray(i)?i:[i],v=U.useCallback(({target:b})=>s(e,Ar(b==null?void 0:b.value,f,m,d)),[s,e,f,d,m]),g=U.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const S=Yi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=t||h||n?"disabled":"",C=_=>{_.target.checked?o(Qy(w,k,f)):o(Xy(w,k,f))},x=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:Ss(e,w),name:u||e,checked:S,value:ro(b.value,w,m),disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("span",{children:b.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function SR({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:o,label:s,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:p,registry:d,htmlName:m}){const k=he("DescriptionFieldTemplate",d,r),v=io(e),g=U.useCallback(C=>p(C.target.checked),[p]),b=U.useCallback(C=>c(i,C.target.checked),[c,i]),w=U.useCallback(C=>f(i,C.target.checked),[f,i]),y=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||o?"disabled":""}`,children:[!l&&y&&N.jsx(k,{id:xn(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:m||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||o,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":xr(i)}),tM(N.jsx("span",{children:s}),l)]})]})}function CR(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=he("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function ER(e){const{onChange:t,value:r,options:i,registry:a}=e,n=he("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:gM(r),onChange:o=>t(rM(o))})}function AR(e){const{onChange:t,options:r,registry:i}=e,a=he("BaseInputTemplate",i,r),n=U.useCallback(o=>t(o||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function xR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function OR({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const o=r(Oe.PreviewLabel);return["image/jpeg","image/png"].includes(a)?N.jsx("img",{src:i,alt:o,style:{maxWidth:"100%"},className:"file-preview"}):N.jsxs(N.Fragment,{children:[" ",N.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:o})]})}function _R({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:o}=he("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((s,l)=>{const{name:u,size:c,type:f}=s,p=()=>i(l);return N.jsxs("li",{children:[N.jsx(Co,{children:n(Oe.FilesInfo,[u,f,String(c)])}),r&&N.jsx(OR,{fileInfo:s,registry:t}),N.jsx(o,{onClick:p,registry:t})]},l)})})}function PR(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:o,options:s,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=hM(o,n,a),p=he("BaseInputTemplate",l,s),d=m=>{m.target.files&&c(m.target.files)};return N.jsxs("div",{children:[N.jsx(p,{...e,disabled:t||r,type:"file",required:o?!1:i,onChangeOverride:d,value:"",accept:s.accept?String(s.accept):void 0}),N.jsx(_R,{filesInfo:u,onRemove:f,registry:l,preview:s.filePreview,options:s})]})}function IR({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function TR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function NR({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:o,onFocus:s,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:p,inline:d,emptyValue:m}=e,k=no(e),v=U.useCallback(({target:b})=>o(u,Ar(b==null?void 0:b.value,f,k,m)),[o,f,m,u,k]),g=U.useCallback(({target:b})=>s(u,Ar(b==null?void 0:b.value,f,k,m)),[s,f,m,u,k]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const S=Yi(b.value,t),h=Array.isArray(p)&&p.includes(b.value),y=i||h||a?"disabled":"",C=()=>l(b.value),x=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:Ss(u,w),checked:S,name:c||u,required:r,value:ro(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(u)}),N.jsx("span",{children:b.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function FR(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return N.jsxs("div",{className:"field-range-wrapper",children:[N.jsx(r,{type:"range",...e}),N.jsx("span",{className:"range-view",children:t})]})}function DR({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:o,onFocus:s,onBlur:l,schema:u,options:c,htmlName:f}){const{stars:p=5,shape:d="star"}=c,m=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(p,1),5),k=u.minimum||0,v=U.useCallback(S=>{!i&&!a&&o(S)},[o,i,a]),g=U.useCallback(S=>{if(s){const h=Number(S.target.dataset.value);s(e,h)}},[s,e]),b=U.useCallback(S=>{if(l){const h=Number(S.target.dataset.value);l(e,h)}},[l,e]),w=S=>d==="heart"?S?"♥":"♡":S?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(m)].map((S,h)=>{const y=k+h,C=y<=t;return N.jsx("span",{onClick:()=>v(y),onKeyDown:x=>(x.key==="Enter"||x.key===" ")&&v(y),onFocus:g,onBlur:b,"data-value":y,tabIndex:i||a?-1:0,role:"radio","aria-checked":y===t,"aria-label":`${y} ${d==="heart"?"heart":"star"}${y===1?"":"s"}`,style:{color:C?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(C)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Rd(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function MR({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:o,multiple:s=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:f,placeholder:p,htmlName:d,registry:m,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=s?[]:"",S=no(r),h=U.useCallback(E=>{const A=Rd(E,s);return f(t,Ar(A,v,S,b))},[f,t,s,v,b,S]),y=U.useCallback(E=>{const A=Rd(E,s);return c(t,Ar(A,v,S,b))},[c,t,s,v,b,S]),C=U.useCallback(E=>{const A=Rd(E,s);return u(Ar(A,v,S,b))},[u,s,v,b,S]),x=MD(i,v,s,S,w),_=!s&&e.default===void 0;return nM(t,e,v,s),N.jsxs(N.Fragment,{children:[N.jsx(oM,{id:t,multiple:s,options:r,registry:m,uiSchema:k,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:s,className:"form-control",value:x,required:a,disabled:n||o,autoFocus:l,onBlur:y,onFocus:h,onChange:C,"aria-describedby":xr(t),children:[_&&N.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:E,label:A},O)=>{const F=g&&g.includes(E);return N.jsx("option",{value:ro(E,O,S),disabled:F,children:A},String(E))})]})]})}function jR({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:o,autofocus:s=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const p=U.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=U.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),m=U.useCallback(({target:k})=>c(e,k==null?void 0:k.value),[e,c]);return N.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:o,autoFocus:s,rows:t.rows,onBlur:d,onFocus:m,onChange:p,"aria-describedby":xr(e)})}function LR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function qR(e){const{onChange:t,options:r,registry:i}=e,a=he("BaseInputTemplate",i,r),n=U.useCallback(o=>t(o?`${o}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function $R(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function zR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function RR(){return{AltDateWidget:kR,AltDateTimeWidget:bR,CheckboxWidget:SR,CheckboxesWidget:wR,ColorWidget:CR,DateWidget:AR,DateTimeWidget:ER,EmailWidget:xR,FileWidget:PR,HiddenWidget:IR,PasswordWidget:TR,RadioWidget:NR,RangeWidget:FR,RatingWidget:DR,SelectWidget:MR,TextWidget:LR,TextareaWidget:jR,TimeWidget:qR,UpDownWidget:$R,URLWidget:zR}}function UR(){return{fields:Dz(),templates:vR(),widgets:RR(),rootSchema:{},formContext:{},translateString:DD,globalFormOptions:{idPrefix:Ih,idSeparator:Th,useFallbackUiForUnsupportedType:!1}}}function pa(e,t){return{...Ky(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}const BR=class xi extends U.Component{constructor(r){super(r);Jt(this,"formElement");Jt(this,"pendingChanges",[]);Jt(this,"isProcessingUserChange",!1);Jt(this,"getUsedFormData",(r,i)=>ED(r,i));Jt(this,"getFieldNames",(r,i)=>AD(r,i));Jt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});Jt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),o=Or("",a.globalFormOptions,n);this.onChange(i,n,void 0,o[tt])});Jt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});Jt(this,"reset",()=>{const{formData:r,initialFormData:i=L1,onChange:a}=this.props,s={formData:this.getStateFromProps(this.props,r??i,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(s,()=>a==null?void 0:a(pa({...this.state,...s})))});Jt(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:o,liveValidate:s}=this.props;if(a&&a(r,i),n===!0&&o==="onBlur"||s==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c}=this.state;let f=c,p={formData:f};if(n===!0&&o==="onBlur"&&(f=this.omitExtraData(c),p={formData:f}),s==="onBlur"){const{schema:m,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(m,k,v,f,u,g,b);p={formData:f,...w,customErrors:g}}const d=Object.keys(p).filter(m=>!m.startsWith("schemaValidation")).some(m=>{const k=ae(this.state,m),v=ae(p,m);return!Ue(k,v)});this.setState(p,()=>{l&&d&&l(pa({...this.state,...p}),r)})}});Jt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});Jt(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:o}=this.props;let{formData:s}=this.state;if(i===!0&&(s=this.omitExtraData(s)),n||this.validateFormWithFormData(s)){const l=a||{},u=a?yf(a):[];this.setState({formData:s,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{o&&o(pa({...this.state,formData:s},"submitted"),r)})}});Jt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});Jt(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?xi.mergeErrors(l,i):l,f=l.errors.length>0||i&&a;return f?(n&&(typeof n=="function"?n(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:c,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},()=>{o?o(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:i,initialFormData:a,onChange:n}=r,o=i??a;this.state={...this.getStateFromProps(r,o,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Ue(this.state.formData,o)&&n(pa(this.state)),this.formElement=U.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:o}=a;return r.extraErrors&&({errors:n,errorSchema:o}=oo(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:o}=oo({errors:n,errorSchema:o},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:o}}return null}getSnapshotBeforeUpdate(r,i){if(!Ue(this.props,r)){const a=rv(this.props.formData,r.formData),n=rv(this.props.formData,this.state.formData),o=!Ue(r.schema,this.props.schema),s=a.length>0||!Ue(r.formData,this.props.formData),l=n.length>0||!Ue(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,o||s?void 0:this.state.retrievedSchema,o,a,!l),c=!Ue(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,o=!Ue(n.formData,this.props.formData),s=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,s&&o)return;o&&!Ue(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(pa(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,o=[],s=!1,l=!1){var Z;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,m=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=m&&!r.noValidate&&k,g="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}=u;(!w||w.doesSchemaUtilsDiffer(f,c,g,b))&&(w=TD(f,c,g,b));const S=w.getRootSchema();let h=i;i===L1?h=void 0:i===void 0&&d&&(h=u.formData);let y,C,x=!1;const _=[];do{y=w.getDefaultFormState(S,h,!1,u.initialDefaultsGenerated);const P=l?hr({formData:y}):"";if(C=this.updateRetrievedSchema(a??w.retrieveSchema(S,y)),l&&!_.includes(P)&&!Ue(C,u.retrievedSchema)){const M=w.sanitizeDataForNewSchema(C,u.retrievedSchema,y);if(x=!Ue(M,y),x){y=M,h=M;const R=hr({formData:M});x=!_.includes(R),_.push(R)}_.push(P)}else x=!1}while(x);const E=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let A,O,{schemaValidationErrors:F,schemaValidationErrorSchema:T}=u;if(v&&!s){const P=this.liveValidate(S,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);A=P.errors,O=P.errorSchema,F=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=E();if(A=P.errors,O=P.errorSchema,o.length>0&&!v){const R=o.reduce((I,D)=>(I[D]=void 0,I),{});T=Sn(P.errorSchema,R,"preventDuplicates"),O=T}const M=xi.mergeErrors({errorSchema:O,errors:A},r.extraErrors,u.customErrors);A=M.errors,O=M.errorSchema}const j=xi.getRegistry(r,S,w),q=Ue(u.registry,j)?u.registry:j,H=u.fieldPathId&&((Z=u.fieldPathId)==null?void 0:Z[tt])===q.globalFormOptions.idPrefix?u.fieldPathId:Or("",q.globalFormOptions);return{schemaUtils:w,schema:S,uiSchema:p,fieldPathId:H,formData:y,edit:m,errors:A,errorSchema:O,schemaValidationErrors:F,schemaValidationErrorSchema:T,retrievedSchema:C,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return sM(this,r,i,a)}validate(r,i=this.state.schema,a,n){const o=a||this.state.schemaUtils,{customValidate:s,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return o.getValidator().validateFormData(f,c,s,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:o}=this.state,s=pe(o),l=he("ErrorListTemplate",r,s);return i!=null&&i.length?N.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:o,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:o}=r;if(i){const s=oo(r,i);n=s.errorSchema,o=s.errors}if(a){const s=oo({errors:o,errorSchema:n},a.ErrorSchema,!0);n=s.errorSchema,o=s.errors}return{errors:o,errorSchema:n}}liveValidate(r,i,a,n,o,s,l,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:p}=c;u&&(p=Sn(a,c.errorSchema,"preventDuplicates"));const d=f,m=p;return{...xi.mergeErrors({errorSchema:p,errors:f},o,s),schemaValidationErrors:d,schemaValidationErrorSchema:m}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:i,id:a}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:s,liveOmit:l,noValidate:u,liveValidate:c,onChange:f,disabled:p,readonly:d}=this.props,{formData:m,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:S,retrievedSchema:h}=this.state,y=b;const C=g.path[0]||"",x=!i||i.length===0||i.length===1&&i[0]===C;let _=x?r:bs(m);const E=be(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),A=m==null,O=E&&A?void 0:_;if(be(_)||Array.isArray(_)){let q=!1;if(r===j1)mq(_,i);else if(!x){let Z=r;if(r===void 0)if(typeof i[i.length-1]=="number")Z=null;else{const{field:M}=k.findFieldInSchema(v,i,m),R=M;!(R&&(xe in R||je in R))&&R!==void 0&&(q=!0)}q?st(_,i,void 0):st(_,i,Z)}const H=h&&!x&&!be(r)&&!Array.isArray(r)&&!p&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,H);_=Y.formData,h=Y.retrievedSchema,q&&_&&st(_,i,void 0)}const F=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},j=_;if(s===!0&&(l===!0||l==="onChange")&&(j=this.omitExtraData(_),T={...T,formData:j}),n){const q=x?b:ae(b,i);if(!kt(q))x?y=n:(y=bs(b),st(y,i,n));else if(S||(S=new tv),x){const H=ae(n,Dt);H&&S.setErrors(H)}else st(S.ErrorSchema,i,n)}else S&&ae(S.ErrorSchema,[...i,Dt])&&S.clearErrors(i);if(F&&this.pendingChanges.length===1){const q=this.liveValidate(v,k,y,j,o,S,h);T={...T,formData:j,...q,customErrors:S}}else if(!u&&n){const q=xi.mergeErrors({errorSchema:y,errors:w},o,S);T={...T,formData:j,...q,customErrors:S}}this.setState(T,()=>{f&&f(pa({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return Ue(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Th,idPrefix:o=Ih,nameGenerator:s,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...s!==void 0&&{nameGenerator:s}}}static getRegistry(r,i,a){var p;const{translateString:n,uiSchema:o={}}=r,{fields:s,templates:l,widgets:u,formContext:c,translateString:f}=UR();return{fields:{...s,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:o[cc],globalFormOptions:xi.getGlobalFormOptions(r),uiSchemaDefinitions:o[UO]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,o=pv(n);o[0]===""?o[0]=i:o.unshift(i);const s=o.join(a);let l=this.formElement.current.elements[s];l||(l=this.formElement.current.querySelector(`input[id^="${s}"], button[id^="${s}"]`)),l!=null&&l.length&&(l=l[0]),l&&l.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:i}=this.state;return r===!0&&(i=this.omitExtraData(i)),this.validateFormWithFormData(i)}render(){const{children:r,id:i,className:a="",tagName:n,name:o,method:s,target:l,action:u,autoComplete:c,enctype:f,acceptCharset:p,noHtml5Validate:d=!1,disabled:m,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:S,errorSchema:h,fieldPathId:y,registry:C}=this.state,{SchemaField:x}=C.fields,{SubmitButton:_}=C.templates.ButtonTemplates,E=g?n:void 0,A=g||n||"form";let{[Go]:O={}}=pe(w);m&&(O={...O,props:{...O.props,disabled:!0}});const F={[gn]:{[Go]:O}};return N.jsxs(A,{className:a||"rjsf",id:i,name:o,method:s,target:l,action:u,autoComplete:c,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:[v==="top"&&this.renderErrors(C),N.jsx(x,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:C,disabled:m,readonly:k}),r||N.jsx(_,{uiSchema:F,registry:C}),v==="bottom"&&this.renderErrors(C)]})}},VR=(e,t)=>e.map(r=>{var n,o;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(o=t.properties)==null?void 0:o[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),H1=({id:e,...t})=>{const[r,i]=U.useState(t.formData);return N.jsx(BR,{id:e,idPrefix:`root_${e}`,transformErrors:a=>VR(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:o}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const s of n.required){const l=(n.properties||{})[s];l&&l.type==="boolean"&&o[s]===!1&&delete o[s]}i(o)}})},HR=["tabs","sidebar"],W1=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),WR=e=>{const t=e??{};return{layout:HR.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},KR=(e,t,r,i)=>{const a=e??{};if(!Array.isArray(a.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const n=a.fields.filter(o=>typeof o!="string"||!r.includes(o)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${o}"; dropped.`),!1):i.has(o)?(console.warn(`"ui:steps" step ${t+1} repeats field "${o}"; keeping its first occurrence.`),!1):(i.add(o),!0));return n.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{title:typeof a.title=="string"&&a.title?a.title:`Step ${t+1}`,...typeof a.description=="string"&&a.description&&{description:a.description},fields:n}},GR=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return W1('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((s,l)=>KR(s,l,i,a)).filter(s=>!!s);if(n.length<2)return W1("fewer than two usable steps"),null;const o=i.filter(s=>!a.has(s));return o.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${o.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...o)),{config:WR(r.config),steps:n}},JR={StepsNavigation:({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return N.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[N.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(o=>N.jsx("li",{className:"fcode-steps-nav-item",children:N.jsxs("button",{type:"button",className:en("fcode-steps-item",{"is-completed":o.status==="completed","is-current":o.status==="current","is-upcoming":o.status==="upcoming","has-errors":o.hasErrors}),disabled:!o.clickable,"aria-current":o.status==="current"?"step":void 0,onClick:()=>i(o.index),children:[N.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:o.index+1}),N.jsx("span",{className:"fcode-steps-item-title",children:o.title})]})},o.index))}),N.jsxs("div",{className:"fcode-steps-main",children:[n&&N.jsxs("div",{className:"fcode-steps-header",children:[N.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&N.jsx("p",{className:"fcode-steps-description",children:n.description})]}),N.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},BackButton:({label:e,onClick:t,disabled:r})=>N.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e})},zl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),YR=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(o=>i.add(o)),(n.oneOf??[]).forEach(o=>Object.keys((o==null?void 0:o.properties)??{}).forEach(s=>i.add(s)))};for(const n of t){const o=r[n];o&&typeof o=="object"&&!Array.isArray(o)&&a(o)}return t.forEach(n=>i.delete(n)),[...i]},XR=(e,t)=>{const r=e,i=Object.entries(zl(r.dependencies,t)).reduce((a,[n,o])=>{if(Array.isArray(o)){const s=o.filter(l=>t.includes(l));s.length>0&&(a[n]=s)}else a[n]=o;return a},{});return{...e,properties:zl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},ZR=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),QR=({parsed:e,components:t,...r})=>{var H,Y;const{steps:i,config:a}=e,n=r.schema,o=r.uiSchema,[s,l]=U.useState(0),[u,c]=U.useState(0),[f,p]=U.useState({...r.formData??{}}),d=U.useRef({}),m=U.useMemo(()=>i.map(Z=>[...Z.fields,...YR(n,Z.fields)]),[i,n]),k=U.useMemo(()=>i.map((Z,P)=>({schema:XR(n,Z.fields),uiSchema:ZR(o,m[P])})),[i,n,o,m]),v=r.extraErrors,g=U.useMemo(()=>m.map(Z=>Z.some(P=>!!v&&P in v)),[m,v]);U.useEffect(()=>{const Z=g.findIndex(Boolean);Z>=0&&l(Z)},[v]),U.useEffect(()=>{d.current=zl(f,m[s])},[s]);const b=(Z,P,M)=>({...Object.fromEntries(Object.entries(Z).filter(([R])=>!m[M].includes(R))),...P}),w=Z=>{p(P=>b(P,d.current,s)),l(Z)},S=r.readonly===!0||r.disabled===!0||(o==null?void 0:o["ui:readonly"])===!0,h=Z=>Z!==s&&(S||Z<=u),y=Z=>{h(Z)&&w(Z)},C=s===i.length-1,x=(Z,P)=>{const M=b(f,Z.formData??{},s);if(p(M),C){r.onSubmit&&r.onSubmit({...Z,formData:M},P);return}l(s+1),c(R=>Math.max(R,s+1))},_=Z=>{d.current=Z.formData??{},r.onChange&&r.onChange(Z)},E=i.map((Z,P)=>({index:P,title:Z.title,description:Z.description,status:P<s?"completed":P===s?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:A,BackButton:O}=t,F=(Y=(H=r.templates)==null?void 0:H.ButtonTemplates)==null?void 0:Y.SubmitButton,T=sf(o??{}),j={"ui:submitButtonOptions":C?T:{...T,submitText:a.nextLabel,norender:!1}},q={translateString:Z=>Z};return N.jsx(A,{layout:a.layout,items:E,currentIndex:s,onNavigate:y,children:N.jsx(H1,{...r,schema:k[s].schema,uiSchema:k[s].uiSchema,formData:zl(f,m[s]),onChange:_,onSubmit:x,children:N.jsxs("div",{className:"fcode-steps-actions",children:[s>0&&N.jsx(O,{label:a.backLabel,onClick:()=>w(s-1)}),F&&N.jsx(F,{uiSchema:j,registry:q})]})},s)})},e4=({id:e,schema:t,options:r,registry:i,value:a,onChange:n,disabled:o,readonly:s})=>N.jsx(Dk,{id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:o,readonly:s}),t4=(e,t)=>({...e,fcode:{...e==null?void 0:e.fcode,oauth:(t==null?void 0:t.oauth)??Ak}}),r4=(e,t)=>e&&e in co?ml({},co[e]):t&&t in co?ml({},co[t]):ml({},co.en),K1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:o,className:s,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;np(l);const p=U.useMemo(()=>r4(a,n),[a,n]),d=U.useMemo(()=>GR(c.uiSchema,c.schema),[c.uiSchema,c.schema]),m=U.useMemo(()=>t4(c.formContext,u),[c.formContext,u]),k={id:e,validator:o||p,className:en(["fcode-form",s,{[`theme-${f}`]:f}]),fields:{...pq,...u==null?void 0:u.fields,...i},templates:{...dk.templates,...u==null?void 0:u.templates,...t},widgets:{oauth:e4,...dk.widgets,...u==null?void 0:u.widgets,...r},...c,formContext:m};return d?N.jsx(QR,{parsed:d,components:(u==null?void 0:u.multistep)??JR,...k}):N.jsx(H1,{...k})},G1={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Ud=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=V0,onSuccess:o,keepSuccessView:s=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:p=!1,readonly:d=!1,options:m,...k})=>{const[v,g]=U.useState({processId:i,steps:[],variables:{...m&&m.variables}}),[b]=b0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale,async:f}),w=U.useMemo(()=>{const K=Qd();return console.log(`Building Factorial Code form with id ${K}`),K},[r,v]),S=U.useMemo(()=>{const K=c||{};return window.location.search?{...K,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:K},[c]),[h,y]=U.useState(!1),[C,x]=U.useState(S),[_,E]=U.useState({}),[A,O]=U.useState(null),F=U.useCallback(K=>{E({}),y(!0),x(K.formData),b({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...v.steps.length>0&&{steps:v.steps},...Object.keys(v.variables).length>0&&{variables:v.variables},...m&&m.locale&&{locale:m.locale}},...K.formData}).then(({results:X,resolvedFiles:z})=>{if(x(S),X.nextProcessId){const $=v.steps;$.push({processId:v.processId,data:{...K.formData,...z},result:X}),g({processId:X.nextProcessId,steps:$,variables:{...v.variables,...X.variables}}),n(X.nextProcessId,X);return}X.redirect&&B0(X.redirect),o?o(w,X,K.formData):(console.log(`Form ${w} has been successfully submitted.`),To("fcode-forms-on-submit-success",{formId:w,formSubmittedData:K.formData,processExecutionResult:X})),(!o||s)&&O({kind:"success",message:X.message||H0})}).catch(X=>{X!=null&&X.formErrors?E(G0(X==null?void 0:X.formErrors)):l?l(w,X,K.formData):(console.log(`There has been an error submitting the form ${w}`,X),To("fcode-forms-on-submit-error",{formId:w,error:X}),O({kind:"error",message:Ap(X)}))}).finally(()=>y(!1))},[w,S,o,s,l,b,v]),{loading:T,reloading:j,formSpecs:q,error:H,reload:Y}=k0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale}),Z={...G1,...m};np(Z);const P=U.useMemo(()=>{var K;return{...k.formContext,fcode:{...(K=k.formContext)==null?void 0:K.fcode,reloadFormSpecs:Y}}},[k.formContext,Y]);U.useEffect(()=>{H&&(l?l(w,H,{}):(console.log(`There has been an error submitting the form ${w}`,H),To("fcode-forms-on-submit-error",{formId:w,error:H})))},[H]);const M=en(["fcode-form-wrapper",Z.className]);if(T)return N.jsx("div",{className:en([M,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(Sp,{active:!0,content:Z.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(Cp,{})})})});if(H||!q)return N.jsx("div",{className:M,"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:K0(H)})})});q.schema.embedFormOptions={...G1,...q.schema.embedFormOptions,...m,variables:{...q.schema.embedFormOptions&&q.schema.embedFormOptions.variables,...v.variables,...m&&m.variables}};const R=Ah(q),I=Object.keys(R.schema.properties||{}),D=Object.fromEntries(Object.entries(C).filter(([K,X])=>I.includes(K)));if(A)return N.jsx("div",{className:en(["fcode-form-wrapper",R.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:en(["fcode-form-markdown",A.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${A.kind}-message`,children:N.jsx(Yu,{components:u,children:A.message})})})});const{loadingOverlayDisabled:L,loadingOverlayContent:B,locale:V,fallbackLocale:W}=R.embedFormOptions;return N.jsx("div",{className:en(["fcode-form-wrapper",R.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(Sp,{active:h||j,content:j?Z.loadingContent:B,disabled:L,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(K1,{id:w,schema:R.schema,uiSchema:R.uiSchema,embedFormOptions:R.embedFormOptions,locale:V,fallbackLocale:W,formData:D,onSubmit:F,noHtml5Validate:!0,disabled:p,readonly:d,showErrorList:!1,extraErrors:_,...k,formContext:P},w)})})})};Ud.displayName="FcodeForm",Ge.FcodeForm=Ud,Ge.FcodeJsonSchemaForm=K1,Ge.buildId=Qd,Ge.default=Ud,Ge.processFormSpecs=Ah,Ge.resolveErrorMessage=Ap,Object.defineProperties(Ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
144
+ `),endPos:a.end}:null}function Rd(e,t,r){Ss=0,e=L$(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=lz(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=Rn(e,t,r);if(i&&a){for(var s=i,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},l=0;l<s.length;l++){var c=s[l];t.inline=c.inline,t.inAnchor=c.inAnchor,t.inHTML=c.inHTML,t.d=c.htmlDepth,t.inList=c.inList,t.inBlockQuote=c.inBlockQuote,t.l=c.noSetext,t.o=c.depth,t.k=c.breaks;var u=Gr(c.text,0,c.text.length,t,r);t.k=!1;for(var f=0;f<u.length;f++)c.dest.push(u[f])}t.inline=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var p=a,d=0;d<p.length;d++)for(var h=p[d],v=0;v<h.src.length;v++){var k=h.src[v];if(h.unwrap&&k.type===ie.paragraph)for(var g=k.children,b=0;b<g.length;b++)h.dest.push(g[b]);else h.dest.push(k)}t.t=void 0,t.p=void 0,zd(n,t,r.slugify)}return d1(t.refs)?[{type:ie.refCollection,refs:t.refs},...n]:n}var Ud;try{da=Zr.createElement("div"),Ud=da!=null&&typeof da=="object"&&"$$typeof"in da&&typeof da.$$typeof=="symbol"?da.$$typeof:Symbol.for("react.transitional.element")}catch{Ud=Symbol.for("react.transitional.element")}var da;function Bd(e,t,r){return{$$typeof:Ud,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function kr(e,t){var r={key:e};if(t){var i=s1(t);for(var a in i)r[a]=i[a]}return r}var V1=typeof Zr.createContext>"u"?void 0:Zr.createContext(void 0);function H1(e,t,r,i,a,n,s,o,l){switch(e.type){case ie.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),vi)}`,e.children.unshift(z$(e.alert))),i("blockquote",g,t(e.children,r))}case ie.breakLine:return i("br",{key:r.key});case ie.breakThematic:return i("hr",{key:r.key});case ie.frontmatter:return o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ie.codeBlock:{let g=e.lang?Mn(e.lang):"";var c=e.attrs?s1(e.attrs):{};return c.className=g?`language-${g} lang-${g}`:"",i("pre",{key:r.key},i("code",c,e.text))}case ie.codeInline:return i("code",{key:r.key},e.text);case ie.footnoteReference:return i("a",{key:r.key,href:a(e.target,"a","href")||void 0},i("sup",null,e.text));case ie.gfmTask:return i("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case ie.heading:return i(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case ie.htmlBlock:{let g=e;if(la(o)&&g1(g.tag)){var u=h1(g);return u.kind==="literal"?i("span",{key:r.key},u.literal):i("span",{key:r.key},...H$(u.open,g.children?t(g.children,r):null,u.close))}let b=g.j,w=b!==void 0,E=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(E&&g.c){let m=g.tag.toLowerCase(),y=tz(m),S=g.children,x=S!=null&&S.length>0;if(y){let M=w?b:g.e||"",q=la(o)?y1(M):M;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,kr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(x&&!_.test(E)&&la(o)&&X$(E))return l(e.tag,kr(r.key,e.attrs),t(S,r));if(rz(E)){let M=la(o)?y1(E):E;var p=kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:M},l(e.tag,p)}let C=Ed({slugify:o.slugify,sanitizer:a,tagfilter:!0}),A=q$(E);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(A))return g.children&&g.children.length>0?l(e.tag,kr(r.key,e.attrs),t(g.children,r)):l(e.tag,kr(r.key,e.attrs));let O=Rd(A,{inline:!1,refs:s,inHTML:!1},C);p1(O);let F=g.tag.toLowerCase(),N=w;if(N&&x)return l(e.tag,kr(r.key,e.attrs),t(S,r));if(N)return t(O.flatMap(oa),r);var d=B$(O,F);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(oa),v=d.afterClose.flatMap(oa);return Bd(Zr.Fragment,{children:[l(e.tag,kr(r.key,e.attrs),t(h,r)),t(v,r)]},r.key)}return l(e.tag,kr(r.key,e.attrs),t(O.flatMap(oa),r))}return bs(e.tag)?l(e.tag,kr(r.key,e.attrs)):l(e.tag,kr(r.key,e.attrs),e.children?t(e.children,r):"")}case ie.htmlSelfClosing:{let g=e;if(la(o)&&g1(g.tag)){var k=h1(g);return i("span",{key:r.key},k.kind==="literal"?k.literal:k.open+(k.close||""))}return l(e.tag,kr(r.key,e.attrs))}case ie.image:{let g=e.target===null?null:a(e.target,"img","src");return i("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:g||void 0})}case ie.link:{let g={key:r.key};if(e.target!=null){let b=W$(e.target,a,"a","href");b!=null&&(g.href=b)}return e.title&&(g.title=e.title),i("a",g,t(e.children,r))}case ie.table:{let g=e;return i("table",{key:r.key},i("thead",{key:"thead"},i("tr",null,g.header.map(function(b,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(b,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(b,w){return i("tr",{key:w},b.map(function(E,m){return i("td",{key:m,style:g.align[m]===null?{}:{textAlign:g.align[m]}},t(E,r))}))})))}case ie.text:return e.text;case ie.textFormatted:return i(e.tag,{key:r.key},t(e.children,r));case ie.orderedList:case ie.unorderedList:{let g=e.type===ie.orderedList?"ol":"ul";return i(g,{key:r.key,start:e.type===ie.orderedList?e.start:void 0},e.items.map(function(b,w){return i("li",{key:w},t(b,r))}))}case ie.paragraph:return i("p",{key:r.key},t(e.children,r));case ie.ref:return null;default:return null}}var Mz=(e,t,r,i,a,n,s)=>{var o=c=>c.map(u=>"text"in u?u.text:""),l=(c,u={})=>{var f=Array.isArray(c)?c:[c],p=(u.renderDepth||0)+1;if(p>2500)return o(f);u.renderDepth=p;for(var d=u.key,h=[],v=!1,k=0;k<f.length;k++){u.key=k;var g;if(e){var b=H1.bind(null,f[k],l,u,t,r,i,a,n,s);g=e(b,f[k],l,u)}else g=H1(f[k],l,u,t,r,i,a,n,s);var w=typeof g=="string";if(v&&typeof g=="string"){var E=h.at(-1);h[h.length-1]=(typeof E=="string"?E:"")+g}else if(g!=null)if(Array.isArray(g))for(var m=0;m<g.length;m++)h.push(g[m]);else h.push(g);v=w}return u.key=d,u.renderDepth=p-1,h};return l},jz=(e,t)=>{let r=Cd(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Cd(t,`${e}.component`,e):e};function Lz(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||vi,a=r.sanitizer||fn,n=r.createElement,s=d1(r.overrides),o=w=>Vd(w,{...r,wrapper:null});function l(w){for(var E in w){var m=w[E];if(typeof m=="string"&&m.length>0&&m.charCodeAt(0)===it&&(Z$.test(m)||Q$.test(m)||Dz(m,0))){var y=o(m.trim());w[E]=E==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function c(w,E,...m){var y=E||{},S=w;if(s){var x=Cd(r.overrides,`${w}.props`,{});S=jz(w,r.overrides),y={...y,...x,className:J$(y.className,x.className)||void 0}}if(!n){var _=y.key;return _!=null&&delete y.key,m.length===1?y.children=m[0]:m.length>1&&(y.children=m),Bd(S,y,_)}return n(S,y,...m)}function u(w,E,...m){return E&&l(E),c(w,E,...m)}let f=Ed(r,r.forceInline),p=e[0]&&e[0].type===ie.refCollection?e[0].refs:{},d=Mz(r.renderRule,c,a,i,p,r,u),h=d(e,{inline:r.forceInline,refs:p}),v=K$(p);if(v.length>0&&h.push(c("footer",{key:"footer"},v.map(function(w){let E=w.identifier.charCodeAt(0)===un?w.identifier.slice(1):w.identifier,m=Rd(w.footnote,{inline:!0,refs:p},f);return c("div",{id:i(E,vi),key:w.identifier},`${E}: `,d(m,{inline:!0,refs:p}))}))),r.wrapper===null)return h;let k=r.wrapper||(r.forceInline?"span":"div"),g;if(h.length>1||r.forceWrapper)g=h;else return h.length===1?h[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,Bd(k,b,"outer")}function Vd(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||N$.test(n)),o=Ed(r,s),l=s?n:U$(n),c=Rd(l,{inline:s,refs:a},o);return Lz(c,{...r,forceInline:s})}let a={};return i(e)}function qz(e){let t=Zr.useRef(e),r=t.current;if(r!==e){var i=!0,a=0;for(var n in e)if(a++,!Object.is(r[n],e[n])){i=!1;break}if(i){var s=0;for(var o in r)s++;i=s===a}i||(t.current=e)}return t.current}var Cs=({children:e,options:t,...r})=>{if(!(typeof Zr.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Vd(e??"",o)}let i=V1?Zr.useContext(V1):void 0,a=qz(r),n=Zr.useMemo(()=>({...i,...t,overrides:{...i==null?void 0:i.overrides,...t==null?void 0:t.overrides},wrapperProps:{...i==null?void 0:i.wrapperProps,...t==null?void 0:t.wrapperProps,...a}}),[i,t,a]),s=e??"";return Zr.useMemo(()=>Vd(s,n),[s,n])};const W1=Symbol("remove-this-key"),K1=Symbol("reset");function $z(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function zz(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(_e.NewStringDefault)}}function G1(e){return!!(e!=null&&e[hn])}function J1(e){return Object.keys(e).filter(t=>G1(e[t]))}function Rz(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:c,disabled:u,readonly:f,required:p,hideError:d,propertyName:h,handleKeyRename:v,handleRemoveProperty:k,addedByAdditionalProperties:g}=e,[b,w]=R.useState(!1),{globalFormOptions:E,fields:m}=i,{SchemaField:y}=m,S=Zi(Or(h,E,t.path)),x=R.useCallback((O,F,N,M)=>{let q=O;O===void 0&&g&&(q=""),o(q,F,N,M)},[o,g]),_=R.useCallback(O=>{h!==O&&w(!0),v(h,O)},[h,v]),C=R.useCallback(O=>{const{target:{value:F}}=O;_(F)},[_]),A=R.useCallback(()=>{k(h)},[h,k]);return I.jsx(y,{name:h,required:p,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:C,onRemoveProperty:A,onChange:x,onBlur:l,onFocus:c,registry:i,disabled:u,readonly:f,hideError:d})}const Uz=R.memo(Rz);function Bz(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!1,disabled:l,readonly:c,hideError:u,onBlur:f,onFocus:p,onChange:d,registry:h,title:v}=e,{fields:k,schemaUtils:g,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=k,m=R.useRef(i);m.current=i;const y=R.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=R.useMemo(()=>pe(r,w),[r,w]),x=R.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,C=R.useRef({previousKey:"",currentKey:void 0}),[A,O]=R.useState(()=>J1(x)),F=R.useMemo(()=>{const V=new Set(J1(x));return Object.keys(x).filter(W=>!V.has(W))},[x]),N=S.title??y.title??v??s,M=S.description??y.description,q=ss(h,y,o,r),H=Xi(i);let J=[];const X=R.useCallback((V,W)=>{const{duplicateKeySuffixSeparator:Y="-"}=pe(r,w);let Z=0,z=V;for(;$e(W,z);)Z+=1,z=`${V}${Y}${Z}`;return z},[r,w]),P=R.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const V={...i},W=X("newKey",V);if(y.patternProperties)ot(V,W,null);else{let Y,Z,z;if(Re(y.additionalProperties)){Y=y.additionalProperties.type,Z=y.additionalProperties.const,z=y.additionalProperties.default;let G=y.additionalProperties;at in G&&(G=g.retrieveSchema({[at]:G[at]},i),Y=G.type,Z=G.const,z=g.getDefaultFormState(G,z)),!Y&&(je in G||Oe in G)&&(Y="object")}const $=Z??z??zz(b,Y);ot(V,W,$)}C.current.previousKey===W&&(C.current.currentKey=W,C.current.previousKey=X(W,V)),O(Y=>[...Y,W]),d(V,_.path)},[i,d,b,g,_,X,y]),j=R.useCallback((V,W)=>{if(V!==W){const Y=m.current,Z=X(W,Y),z={...Y},$={[V]:Z},G=Object.keys(z).map(ee=>({[Object.hasOwn($,ee)?$[ee]:ee]:z[ee]})),K=Object.assign({},...G);m.current=K,V!==C.current.currentKey&&(C.current.previousKey=V),C.current.currentKey=Z,O(ee=>ee.map(te=>te===V?Z:te)),d(K,_.path)}},[d,_,X]),U=R.useCallback(V=>{O(W=>W.filter(Y=>Y!==V)),d(W1,[..._.path,V])},[d,_]),T=R.useCallback(V=>C.current.currentKey===V?C.current.previousKey:V,[]);if(!q||H)try{const V=new Set(F),W=A.filter(Y=>Object.hasOwn(x,Y)&&!V.has(Y));J=kM([...F,...W],S.order)}catch(V){return I.jsxs("div",{children:[I.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:I.jsx(Cs,{options:{disableParsingRawHTML:!0},children:b(_e.InvalidObjectField,[s||"root",V.message])})}),I.jsx("pre",{children:JSON.stringify(y)})]})}const D=he("ObjectFieldTemplate",h,S),L=q?I.jsx(E,{...e,fieldPathId:_,schema:y}):void 0,B={title:S.label===!1?"":N,description:S.label===!1?void 0:M,properties:J.map(V=>{var $;const W=G1(($=y.properties)==null?void 0:$[V]),Y=W?r.additionalProperties:r[V],Z=pe(Y).widget==="hidden";return{content:I.jsx(Uz,{propertyName:V,required:$z(y,V),schema:ae(y,[ze,V],{}),uiSchema:Y,errorSchema:ae(a,[V]),fieldPathId:_,formData:ae(i,[V]),handleKeyRename:j,handleRemoveProperty:U,addedByAdditionalProperties:W,onChange:d,onBlur:f,onFocus:p,registry:h,disabled:l,readonly:c,hideError:u},T(V)),name:V,readonly:c,disabled:l,required:o,hidden:Z}}),readonly:c,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:h,optionalDataControl:L,className:q?"rjsf-optional-object-field":void 0};return I.jsx(D,{...B,onAddProperty:P})}function Vz(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:c}=e,{globalUiOptions:u={},schemaUtils:f,translateString:p}=c,d=pe(r,u),h=he("OptionalDataControlsTemplate",c,d),v=Xi(i);let k,g,b,w;if(a||n)k=yf(l,"Msg"),g=v?void 0:p(_e.OptionalObjectEmptyMsg);else{const E=v?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=p(E),v?(k=yf(l,"Remove"),w=()=>s(void 0,l.path,o)):(k=yf(l,"Add"),b=()=>{let m=f.getDefaultFormState(t,i,"excludeObjectChildren");m===void 0&&(m=pr(t)==="array"?[]:{}),s(m,l.path,o)})}return g&&I.jsx(h,{id:k,registry:c,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const Hz={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Wz(e,t,r){const{field:i}=t,{fields:a,schemaUtils:n}=r;if(typeof i=="function")return i;if(typeof i=="string"&&i in a)return a[i];const s=pr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let c=Hz[o];return l&&l in a&&(c=l),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&c!=="ObjectField"?()=>null:c in a?a[c]:a.FallbackField}function Kz(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f=!1,registry:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:v,globalUiOptions:k,fields:g}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=g,m=r[tt],y=R.useCallback((ve,Se,de,We)=>o(ve,Se,de,We||m),[m,o]);if(t[uu])return I.jsx(E,{...e});const S=wM(t,i,p),x=pe(S,k),_=he("FieldTemplate",p,x),C=he("DescriptionFieldTemplate",p,x),A=he("FieldHelpTemplate",p,x),O=he("FieldErrorTemplate",p,x),F=h.retrieveSchema(t,a),N=Wz(F,x,p),q=!!F.deprecated?x.deprecatedHandling??"label":void 0,H=!!(x.disabled??e.disabled)||q==="disable",J=!!(x.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),X=x.hideError,P=X===void 0?e.hideError:!!X,j=!!(x.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let U=h.getDisplayLabel(F,S,k);const T=x.field&&x.fieldReplacesAnyOrOneOf===!0;let D,L,B={fieldPathId:r};if((je in F||Oe in F)&&!T&&!h.isSelect(F)){F[je]?(D=b,L=F[je].map(de=>h.retrieveSchema(Re(de)?de:{},a))):F[Oe]&&(D=w,L=F[Oe].map(de=>h.retrieveSchema(Re(de)?de:{},a)));const ve=ss(p,F,f,S),Se=Xi(a);U=U&&(!ve||Se),B={childFieldPathId:r,fieldPathId:Or("XxxOf",v,r)}}const{__errors:V,...W}=n||{},Y=Ja(S,["ui:classNames","classNames","ui:style"]);gn in Y&&(Y[gn]=Ja(Y[gn],["classNames","style"]));const Z=I.jsx(N,{...e,onChange:y,...B,schema:F,uiSchema:Y,disabled:H,readonly:J,hideError:P,autofocus:j,errorSchema:W,rawErrors:V}),z=r[tt];let $;d?$=s:$=hn in F?s:x.title||e.schema.title||F.title||e.title||s,q==="label"&&($=p.translateString(_e.DeprecatedLabel,[$]));const G=x.description||e.schema.description||F.description||"",{help:K}=x,ee=x.widget==="hidden"||q==="hide",te=["rjsf-field",`rjsf-field-${pr(F)}`];!P&&V&&V.length>0&&te.push("rjsf-field-error"),x.classNames&&te.push(x.classNames);const se=I.jsx(A,{help:K,fieldPathId:r,schema:F,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:p}),ge=P||D&&!h.isSelect(F)?void 0:I.jsx(O,{errors:V,errorSchema:n,fieldPathId:r,schema:F,uiSchema:S,registry:p}),be={description:I.jsx(C,{id:xn(z),description:G,schema:F,uiSchema:S,registry:p}),rawDescription:G,help:se,rawHelp:typeof K=="string"?K:void 0,errors:ge,rawErrors:P?void 0:V,fieldPathId:r,id:z,label:$,hidden:ee,onChange:o,onKeyRename:l,onKeyRenameBlur:c,onRemoveProperty:u,required:f,disabled:H,readonly:J,hideError:P,displayLabel:U,classNames:te.join(" ").trim(),style:x.style,formData:a,schema:F,uiSchema:S,registry:p};return I.jsx(_,{...be,children:I.jsxs(I.Fragment,{children:[Z,D&&I.jsx(D,{name:s,disabled:H,readonly:J,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:S})]})})}const Gz=R.memo(Kz,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?kf(e,t):Ue(e,t)});function Jz(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!1,readonly:l=!1,autofocus:c=!1,onChange:u,onBlur:f,onFocus:p,registry:d,rawErrors:h,hideError:v,title:k}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:m}=d,y=E.isSelect(t)?li(t,i):void 0;let S=y?"select":"text";b&&hM(t,b,w)&&(S=b);const{widget:x=S,placeholder:_="",title:C,...A}=pe(i),O=E.getDisplayLabel(t,i,m),F=C??k??g??r,N=Vr(t,x,w),M=R.useCallback((q,H,J)=>u(q,a.path,H,J),[u,a]);return I.jsx(N,{options:{...A,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:F,hideLabel:!O,hideError:v,value:n,onChange:M,onBlur:f,onFocus:p,required:s,disabled:o,readonly:l,autofocus:c,registry:d,placeholder:_,rawErrors:h,htmlName:a.name})}function Yz(){return{AnyOfField:t1,ArrayField:zq,BooleanField:Rq,CyclicSchemaField:Uq,FallbackField:Wq,LayoutGridField:gd,LayoutHeaderField:p$,LayoutMultiSchemaField:m$,NumberField:v$,ObjectField:Bz,OneOfField:t1,OptionalDataControlsField:Vz,SchemaField:Gz,StringField:Jz,NullField:h$}}function Xz(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=pe(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=he("DescriptionFieldTemplate",i,s);return I.jsx(l,{id:xn(t),description:r,schema:a,uiSchema:n,registry:i})}function Zz(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:c,onMoveUpItem:u,readonly:f,registry:p,uiSchema:d}=e,{CopyButton:h,MoveDownButton:v,MoveUpButton:k,RemoveButton:g}=p.templates.ButtonTemplates;return I.jsxs(I.Fragment,{children:[(a||i)&&I.jsx(k,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:u,uiSchema:d,registry:p}),(a||i)&&I.jsx(v,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:c,uiSchema:d,registry:p}),r&&I.jsx(h,{id:rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:p}),n&&I.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:p})]})}function Qz(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,c=pe(l),u=he("ArrayFieldItemButtonsTemplate",o,c),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:a?`${p}px`:0};return I.jsxs("div",{className:r,style:d,children:[I.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&I.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:I.jsx("div",{className:"btn-group",style:h,children:I.jsx(u,{...i,style:f})})})]})}function eR(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,onAddClick:l,readonly:c,registry:u,required:f,schema:p,title:d}=e,h=pe(n),v=he("ArrayFieldDescriptionTemplate",u,h),k=he("ArrayFieldTitleTemplate",u,h),g=!c&&!i,{ButtonTemplates:{AddButton:b}}=u.templates;return I.jsxs("fieldset",{className:r,id:a.$id,children:[I.jsx(k,{fieldPathId:a,title:h.title||d,required:f,schema:p,uiSchema:n,registry:u,optionalDataControl:g?o:void 0}),I.jsx(v,{fieldPathId:a,description:h.description||p.description,schema:p,uiSchema:n,registry:u}),g?void 0:o,I.jsx("div",{className:"row array-item-list",children:s}),t&&I.jsx(b,{id:rr(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||c,uiSchema:n,registry:u})]})}function tR(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=pe(a,s.globalUiOptions),{label:c=!0}=l;if(!r||!c)return null;const u=he("TitleFieldTemplate",s,l);return I.jsx(u,{id:So(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function rR(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?I.jsx("datalist",{id:hf(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>I.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function nR(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:c,onChange:u,onChangeOverride:f,options:p,schema:d,uiSchema:h,registry:v,rawErrors:k,type:g,hideLabel:b,hideError:w,...E}=e,{ClearButton:m}=v.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...E,...oM(d,g,p)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const x=R.useCallback(({target:{value:O}})=>u(O===""?p.emptyValue:O),[u,p]),_=R.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),C=R.useCallback(({target:O})=>c(t,O==null?void 0:O.value),[c,t]),A=R.useCallback(O=>{O.preventDefault(),O.stopPropagation(),u(p.emptyValue??"")},[u,p.emptyValue]);return I.jsxs(I.Fragment,{children:[I.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?hf(t):void 0,onChange:f||x,onBlur:_,onFocus:C,"aria-describedby":xr(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!s&&S&&I.jsx(m,{registry:v,onClick:A}),I.jsx(rR,{id:t,schema:d})]})}function iR(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return I.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:I.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const Un=R.memo(iR);function aR(e){const{registry:{translateString:t}}=e;return I.jsx(Un,{title:t(_e.CopyButton),...e,icon:"copy"})}const sR=R.memo(aR);function oR(e){const{registry:{translateString:t}}=e;return I.jsx(Un,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const lR=R.memo(oR);function cR(e){const{registry:{translateString:t}}=e;return I.jsx(Un,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const uR=R.memo(cR);function fR(e){const{registry:{translateString:t}}=e;return I.jsx(Un,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const dR=R.memo(fR);function pR({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return I.jsx(Un,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const mR=R.memo(pR);function hR({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return I.jsx("div",{className:"row",children:I.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:I.jsx(Un,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function gR({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ff(e);return r?null:I.jsx("div",{children:I.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function yR(){return{SubmitButton:gR,AddButton:hR,CopyButton:sR,MoveDownButton:lR,MoveUpButton:uR,RemoveButton:dR,ClearButton:mR}}function vR(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[tt]}-button`;return I.jsxs("div",{style:{marginTop:"1rem"},children:[I.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),I.jsxs("div",{children:[I.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[tt]),children:n(_e.ExpandButton)})," "]})]})}const Y1=df();function X1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInDescription&&typeof e=="string"?I.jsx(Cs,{options:{disableParsingRawHTML:!0},"data-testid":Y1.markdown,children:e}):e}X1.TEST_IDS=Y1;function bR(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?I.jsx("div",{id:t,className:"field-description",children:I.jsx(X1,{description:r,registry:i,uiSchema:a})}):null}function kR({errors:e,registry:t}){const{translateString:r}=t;return I.jsxs("div",{className:"panel panel-danger errors",children:[I.jsx("div",{className:"panel-heading",children:I.jsx("h3",{className:"panel-title",children:r(_e.ErrorsLabel)})}),I.jsx("ul",{className:"list-group",children:e.map((i,a)=>I.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function wR(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=he("MultiSchemaFieldTemplate",r);return I.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function SR(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=mf(r);return I.jsx("div",{children:I.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>I.jsx("li",{className:"text-danger",children:a},n))})})}const Z1=df();function Q1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInHelp&&typeof e=="string"?I.jsx(Cs,{options:{disableParsingRawHTML:!0},"data-testid":Z1.markdown,children:e}):e}Q1.TEST_IDS=Z1;function CR(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?I.jsx("div",{id:gf(t),className:"help-block",children:I.jsx(Q1,{help:r,registry:a,uiSchema:i})}):null}const ER="*";function e0(e){const{label:t,required:r,id:i}=e;return t?I.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&I.jsx("span",{className:"required",children:ER})]}):null}function AR(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:c,registry:u,uiSchema:f}=e,p=pe(f),d=he("WrapIfAdditionalTemplate",u,p);if(o)return I.jsx("div",{className:"hidden",children:i});const h=p.widget==="checkbox";return I.jsxs(d,{...e,children:[c&&!h&&I.jsx(e0,{label:r,required:l,id:t}),c&&s?s:null,i,a,n]})}function xR(e){const{children:t,column:r,className:i,...a}=e;return I.jsx("div",{className:i,...a,children:t})}function OR(e){const{selector:t,optionSchemaField:r}=e;return I.jsxs("div",{className:"panel panel-default panel-body",children:[I.jsx("div",{className:"form-group",children:t}),r]})}function _R(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:l,readonly:c,registry:u,required:f,schema:p,title:d,uiSchema:h}=e,v=pe(h),k=he("TitleFieldTemplate",u,v),g=he("DescriptionFieldTemplate",u,v);if((p.oneOf||p.anyOf)&&!p.properties&&l.length===0)return null;const w=!c&&!i,{ButtonTemplates:{AddButton:E}}=u.templates;return I.jsxs("fieldset",{className:t,id:n.$id,children:[d&&I.jsx(k,{id:So(n),title:d,required:f,schema:p,uiSchema:h,registry:u,optionalDataControl:w?o:void 0}),r&&I.jsx(g,{id:xn(n),description:r,schema:p,uiSchema:h,registry:u}),w?void 0:o,l.map(m=>m.content),Wh(p,h,a)&&I.jsx(E,{id:rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||c,uiSchema:h,registry:u})]})}function PR(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?I.jsx(Un,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?I.jsx(Un,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):I.jsx("em",{id:t,children:i})}const IR="*";function TR(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return I.jsxs("legend",{id:t,children:[r,i&&I.jsx("span",{className:"required",children:IR}),a&&I.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function NR(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=_e.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=_e.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===_e.UnsupportedField?_e.UnsupportedFieldWithReason:_e.UnsupportedFieldWithIdAndReason,o.push(i)),I.jsxs("div",{className:"unsupported-field",children:[I.jsx("p",{children:I.jsx(Cs,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&I.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function FR(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:l,rawDescription:c,readonly:u,required:f,schema:p,hideError:d,rawErrors:h,children:v,uiSchema:k,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:E}=b.ButtonTemplates,m=w(_e.KeyLabel,[s]),y=hn in p,S=!!c,x=["form-group",r];!d&&h&&h.length>0&&x.push("has-error has-danger");const _=x.join(" ").trim();if(!y)return I.jsx("div",{className:_,style:i,children:v});const C=S?46:26;return I.jsx("div",{className:_,style:i,children:I.jsxs("div",{className:"row",children:[I.jsx("div",{className:"col-xs-5 form-additional",children:I.jsxs("div",{className:"form-group",children:[n&&I.jsx(e0,{label:m,required:f,id:`${t}-key`}),n&&c&&I.jsx("div",{children:" "}),I.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),I.jsx("div",{className:"form-additional form-group col-xs-5",children:v}),I.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${C}px`:void 0},children:I.jsx(E,{id:rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||u,onClick:l,uiSchema:k,registry:g})})]})})}function DR(){return{ArrayFieldDescriptionTemplate:Xz,ArrayFieldItemTemplate:Qz,ArrayFieldItemButtonsTemplate:Zz,ArrayFieldTemplate:eR,ArrayFieldTitleTemplate:tR,ButtonTemplates:yR(),BaseInputTemplate:nR,CyclicSchemaExpandTemplate:vR,DescriptionFieldTemplate:bR,ErrorListTemplate:kR,FallbackFieldTemplate:wR,FieldTemplate:AR,FieldErrorTemplate:SR,FieldHelpTemplate:CR,GridTemplate:xR,MultiSchemaFieldTemplate:OR,ObjectFieldTemplate:_R,OptionalDataControlsTemplate:PR,TitleFieldTemplate:TR,UnsupportedFieldTemplate:NR,WrapIfAdditionalTemplate:FR}}function MR({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return I.jsx(r,{time:e,...t})}function jR(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:c}=e,{translateString:u}=o,{elements:f,handleChange:p,handleClear:d,handleSetNow:h}=OM(e);return I.jsxs("ul",{className:"list-inline",children:[f.map((v,k)=>I.jsx("li",{className:"list-inline-item",children:I.jsx(xM,{rootId:n,name:s,select:p,...v,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:c,autofocus:i&&k===0})},k)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&I.jsx("li",{className:"list-inline-item",children:I.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(_e.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&I.jsx("li",{className:"list-inline-item",children:I.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(_e.ClearLabel)})})]})}function LR({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:c}){const{inline:u=!1,enumOptions:f,enumDisabled:p,emptyValue:d}=r,h=is(r),v=Array.isArray(i)?i:[i],k=R.useCallback(({target:b})=>o(e,Ar(b==null?void 0:b.value,f,h,d)),[o,e,f,d,h]),g=R.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return I.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Yi(b.value,v),m=Array.isArray(p)&&p.includes(b.value),y=t||m||n?"disabled":"",S=_=>{_.target.checked?s(cv(w,v,f)):s(ov(w,v,f))},x=I.jsxs("span",{children:[I.jsx("input",{type:"checkbox",id:Co(e,w),name:c||e,checked:E,value:ns(b.value,w,h),disabled:t||m||n,autoFocus:a&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":xr(e)}),I.jsx("span",{children:b.label})]});return u?I.jsx("label",{className:`checkbox-inline ${y}`,children:x},String(b.value)):I.jsx("div",{className:`checkbox ${y}`,children:I.jsx("label",{children:x})},String(b.value))})})}function qR({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:c=!1,onBlur:u,onFocus:f,onChange:p,registry:d,htmlName:h}){const v=he("DescriptionFieldTemplate",d,r),k=as(e),g=R.useCallback(S=>p(S.target.checked),[p]),b=R.useCallback(S=>u(i,S.target.checked),[u,i]),w=R.useCallback(S=>f(i,S.target.checked),[f,i]),y=pe(t).widget==="checkbox"?void 0:r.description??e.description;return I.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&I.jsx(v,{id:xn(i),description:y,schema:e,uiSchema:t,registry:d}),I.jsxs("label",{children:[I.jsx("input",{type:"checkbox",id:i,name:h||i,checked:typeof a>"u"?!1:a,required:k,disabled:n||s,autoFocus:c,onChange:g,onBlur:b,onFocus:w,"aria-describedby":xr(i)}),yM(I.jsx("span",{children:o}),l)]})]})}function $R(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=he("BaseInputTemplate",a,i);return I.jsx(n,{type:"color",...e,disabled:t||r})}function zR(e){const{onChange:t,value:r,options:i,registry:a}=e,n=he("BaseInputTemplate",a,i);return I.jsx(n,{type:"datetime-local",...e,value:NM(r),onChange:s=>t(vM(s))})}function RR(e){const{onChange:t,options:r,registry:i}=e,a=he("BaseInputTemplate",i,r),n=R.useCallback(s=>t(s||void 0),[t]);return I.jsx(a,{type:"date",...e,onChange:n})}function UR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return I.jsx(i,{type:"email",...e})}function BR({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(_e.PreviewLabel);return["image/jpeg","image/png"].includes(a)?I.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):I.jsxs(I.Fragment,{children:[" ",I.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function VR({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=he("ButtonTemplates",t,a);return I.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:c,size:u,type:f}=o,p=()=>i(l);return I.jsxs("li",{children:[I.jsx(Cs,{children:n(_e.FilesInfo,[c,f,String(u)])}),r&&I.jsx(BR,{fileInfo:o,registry:t}),I.jsx(s,{onClick:p,registry:t})]},l)})})}function HR(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:c,handleChange:u,handleRemove:f}=TM(s,n,a),p=he("BaseInputTemplate",l,o),d=h=>{h.target.files&&u(h.target.files)};return I.jsxs("div",{children:[I.jsx(p,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),I.jsx(VR,{filesInfo:c,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function WR({id:e,value:t,htmlName:r}){return I.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function KR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return I.jsx(i,{type:"password",...e})}function GR({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:c,htmlName:u}){const{enumOptions:f,enumDisabled:p,inline:d,emptyValue:h}=e,v=is(e),k=R.useCallback(({target:b})=>s(c,Ar(b==null?void 0:b.value,f,v,h)),[s,f,h,c,v]),g=R.useCallback(({target:b})=>o(c,Ar(b==null?void 0:b.value,f,v,h)),[o,f,h,c,v]);return I.jsx("div",{className:"field-radio-group",id:c,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Yi(b.value,t),m=Array.isArray(p)&&p.includes(b.value),y=i||m||a?"disabled":"",S=()=>l(b.value),x=I.jsxs("span",{children:[I.jsx("input",{type:"radio",id:Co(c,w),checked:E,name:u||c,required:r,value:ns(b.value,w,v),disabled:i||m||a,autoFocus:n&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":xr(c)}),I.jsx("span",{children:b.label})]});return d?I.jsx("label",{className:`radio-inline ${y}`,children:x},String(b.value)):I.jsx("div",{className:`radio ${y}`,children:I.jsx("label",{children:x})},String(b.value))})})}function JR(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return I.jsxs("div",{className:"field-range-wrapper",children:[I.jsx(r,{type:"range",...e}),I.jsx("span",{className:"range-view",children:t})]})}function YR({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,onBlur:l,schema:c,options:u,htmlName:f}){const{stars:p=5,shape:d="star"}=u,h=c.maximum?Math.min(c.maximum,5):Math.min(Math.max(p,1),5),v=c.minimum||0,k=R.useCallback(E=>{!i&&!a&&s(E)},[s,i,a]),g=R.useCallback(E=>{if(o){const m=Number(E.target.dataset.value);o(e,m)}},[o,e]),b=R.useCallback(E=>{if(l){const m=Number(E.target.dataset.value);l(e,m)}},[l,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return I.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(h)].map((E,m)=>{const y=v+m,S=y<=t;return I.jsx("span",{onClick:()=>k(y),onKeyDown:x=>(x.key==="Enter"||x.key===" ")&&k(y),onFocus:g,onBlur:b,"data-value":y,tabIndex:i||a?-1:0,role:"radio","aria-checked":y===t,"aria-label":`${y} ${d==="heart"?"heart":"star"}${y===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},m)}),I.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Hd(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function XR({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!1,autofocus:l=!1,onChange:c,onBlur:u,onFocus:f,placeholder:p,htmlName:d,registry:h,uiSchema:v}){const{enumOptions:k,enumDisabled:g,emptyValue:b}=r,w=o?[]:"",E=is(r),m=R.useCallback(C=>{const A=Hd(C,o);return f(t,Ar(A,k,E,b))},[f,t,o,k,b,E]),y=R.useCallback(C=>{const A=Hd(C,o);return u(t,Ar(A,k,E,b))},[u,t,o,k,b,E]),S=R.useCallback(C=>{const A=Hd(C,o);return c(Ar(A,k,E,b))},[c,o,k,b,E]),x=XD(i,k,o,E,w),_=!o&&e.default===void 0;return bM(t,e,k,o),I.jsxs(I.Fragment,{children:[I.jsx(SM,{id:t,multiple:o,options:r,registry:h,uiSchema:v,value:i}),I.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:x,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:m,onChange:S,"aria-describedby":xr(t),children:[_&&I.jsx("option",{value:"",children:p}),Array.isArray(k)&&k.map(({value:C,label:A},O)=>{const F=g&&g.includes(C);return I.jsx("option",{value:ns(C,O,E),disabled:F,children:A},String(C))})]})]})}function ZR({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:c,onFocus:u,htmlName:f}){const p=R.useCallback(({target:{value:v}})=>l(v===""?t.emptyValue:v),[l,t.emptyValue]),d=R.useCallback(({target:v})=>c(e,v==null?void 0:v.value),[c,e]),h=R.useCallback(({target:v})=>u(e,v==null?void 0:v.value),[e,u]);return I.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:h,onChange:p,"aria-describedby":xr(e)})}function QR(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return I.jsx(i,{...e})}function e4(e){const{onChange:t,options:r,registry:i}=e,a=he("BaseInputTemplate",i,r),n=R.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return I.jsx(a,{type:"time",...e,onChange:n})}function t4(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return I.jsx(i,{type:"number",...e})}function r4(e){const{options:t,registry:r}=e,i=he("BaseInputTemplate",r,t);return I.jsx(i,{type:"url",...e})}function n4(){return{AltDateWidget:jR,AltDateTimeWidget:MR,CheckboxWidget:qR,CheckboxesWidget:LR,ColorWidget:$R,DateWidget:RR,DateTimeWidget:zR,EmailWidget:UR,FileWidget:HR,HiddenWidget:WR,PasswordWidget:KR,RadioWidget:GR,RangeWidget:JR,RatingWidget:YR,SelectWidget:XR,TextWidget:QR,TextareaWidget:ZR,TimeWidget:e4,UpDownWidget:t4,URLWidget:r4}}function i4(){return{fields:Yz(),templates:DR(),widgets:n4(),rootSchema:{},formContext:{},translateString:YD,globalFormOptions:{idPrefix:Rh,idSeparator:Uh,useFallbackUiForUnsupportedType:!1}}}function pa(e,t){return{...nv(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}const a4=class xi extends R.Component{constructor(r){super(r);Jt(this,"formElement");Jt(this,"pendingChanges",[]);Jt(this,"isProcessingUserChange",!1);Jt(this,"getUsedFormData",(r,i)=>zD(r,i));Jt(this,"getFieldNames",(r,i)=>RD(r,i));Jt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});Jt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Or("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[tt])});Jt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});Jt(this,"reset",()=>{const{formData:r,initialFormData:i=K1,onChange:a}=this.props,o={formData:this.getStateFromProps(this.props,r??i,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>a==null?void 0:a(pa({...this.state,...o})))});Jt(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(a&&a(r,i),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:c}=this.props,{formData:u}=this.state;let f=u,p={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(u),p={formData:f}),o==="onBlur"){const{schema:h,schemaUtils:v,errorSchema:k,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(h,v,k,f,c,g,b);p={formData:f,...w,customErrors:g}}const d=Object.keys(p).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const v=ae(this.state,h),k=ae(p,h);return!Ue(v,k)});this.setState(p,()=>{l&&d&&l(pa({...this.state,...p}),r)})}});Jt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});Jt(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(i===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const l=a||{},c=a?wf(a):[];this.setState({formData:o,errors:c,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(pa({...this.state,formData:o},"submitted"),r)})}});Jt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});Jt(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:c,errorSchema:u}=i?xi.mergeErrors(l,i):l,f=l.errors.length>0||i&&a;return f?(n&&(typeof n=="function"?n(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:u,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},()=>{s?s(c):console.error("Form validation failed",c)})):c.length>0?this.setState({errors:c,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:i,initialFormData:a,onChange:n}=r,s=i??a;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Ue(this.state.formData,s)&&n(pa(this.state)),this.formElement=R.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=a;return r.extraErrors&&({errors:n,errorSchema:s}=os(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=os({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!Ue(this.props,r)){const a=dv(this.props.formData,r.formData),n=dv(this.props.formData,this.state.formData),s=!Ue(r.schema,this.props.schema),o=a.length>0||!Ue(r.formData,this.props.formData),l=n.length>0||!Ue(this.state.formData,this.props.formData),c=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),u=!Ue(c,i);return{nextState:c,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!Ue(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Ue(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(pa(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var X;const c=this.state||{},u="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,h=typeof i<"u",v="liveValidate"in r?r.liveValidate:this.props.liveValidate,k=h&&!r.noValidate&&v,g="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}=c;(!w||w.doesSchemaUtilsDiffer(f,u,g,b))&&(w=KD(f,u,g,b));const E=w.getRootSchema();let m=i;i===K1?m=void 0:i===void 0&&d&&(m=c.formData);let y,S,x=!1;const _=[];do{y=w.getDefaultFormState(E,m,!1,c.initialDefaultsGenerated);const P=l?hr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(E,y)),l&&!_.includes(P)&&!Ue(S,c.retrievedSchema)){const j=w.sanitizeDataForNewSchema(S,c.retrievedSchema,y);if(x=!Ue(j,y),x){y=j,m=j;const U=hr({formData:j});x=!_.includes(U),_.push(U)}_.push(P)}else x=!1}while(x);const C=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:c.errors||[],errorSchema:c.errorSchema||{}}:{errors:c.schemaValidationErrors||[],errorSchema:c.schemaValidationErrorSchema||{}};let A,O,{schemaValidationErrors:F,schemaValidationErrorSchema:N}=c;if(k&&!o){const P=this.liveValidate(E,w,c.errorSchema,y,void 0,c.customErrors,a,a!==void 0);A=P.errors,O=P.errorSchema,F=P.schemaValidationErrors,N=P.schemaValidationErrorSchema}else{const P=C();if(A=P.errors,O=P.errorSchema,s.length>0&&!k){const U=s.reduce((T,D)=>(T[D]=void 0,T),{});N=Sn(P.errorSchema,U,"preventDuplicates"),O=N}const j=xi.mergeErrors({errorSchema:O,errors:A},r.extraErrors,c.customErrors);A=j.errors,O=j.errorSchema}const M=xi.getRegistry(r,E,w),q=Ue(c.registry,M)?c.registry:M,H=c.fieldPathId&&((X=c.fieldPathId)==null?void 0:X[tt])===q.globalFormOptions.idPrefix?c.fieldPathId:Or("",q.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:H,formData:y,edit:h,errors:A,errorSchema:O,schemaValidationErrors:F,schemaValidationErrorSchema:N,retrievedSchema:S,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return CM(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:c}=this.props,u=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,u,o,l,c)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=pe(s),l=he("ErrorListTemplate",r,o);return i!=null&&i.length?I.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:s}=r;if(i){const o=os(r,i);n=o.errorSchema,s=o.errors}if(a){const o=os({errors:s,errorSchema:n},a.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,i,a,n,s,o,l,c=!1){const u=this.validate(n,r,i,l),{errors:f}=u;let{errorSchema:p}=u;c&&(p=Sn(a,u.errorSchema,"preventDuplicates"));const d=f,h=p;return{...xi.mergeErrors({errorSchema:p,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:h}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:i,id:a}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:l,noValidate:c,liveValidate:u,onChange:f,disabled:p,readonly:d}=this.props,{formData:h,schemaUtils:v,schema:k,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:m}=this.state,y=b;const S=g.path[0]||"",x=!i||i.length===0||i.length===1&&i[0]===S;let _=x?r:ko(h);const C=we(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),A=h==null,O=C&&A?void 0:_;if(we(_)||Array.isArray(_)){let q=!1;if(r===W1)Iq(_,i);else if(!x){let X=r;if(r===void 0)if(typeof i[i.length-1]=="number")X=null;else{const{field:j}=v.findFieldInSchema(k,i,h),U=j;!(U&&(Oe in U||je in U))&&U!==void 0&&(q=!0)}q?ot(_,i,void 0):ot(_,i,X)}const H=m&&!x&&!we(r)&&!Array.isArray(r)&&!p&&!d,J=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,H);_=J.formData,m=J.retrievedSchema,q&&_&&ot(_,i,void 0)}const F=!c&&(u===!0||u==="onChange");let N={formData:_,retrievedSchema:m},M=_;if(o===!0&&(l===!0||l==="onChange")&&(M=this.omitExtraData(_),N={...N,formData:M}),n){const q=x?b:ae(b,i);if(!kt(q))x?y=n:(y=ko(b),ot(y,i,n));else if(E||(E=new fv),x){const H=ae(n,Dt);H&&E.setErrors(H)}else ot(E.ErrorSchema,i,n)}else E&&ae(E.ErrorSchema,[...i,Dt])&&E.clearErrors(i);if(F&&this.pendingChanges.length===1){const q=this.liveValidate(k,v,y,M,s,E,m);N={...N,formData:M,...q,customErrors:E}}else if(!c&&n){const q=xi.mergeErrors({errorSchema:y,errors:w},s,E);N={...N,formData:M,...q,customErrors:E}}this.setState(N,()=>{f&&f(pa({...this.state,...N}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return Ue(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Uh,idPrefix:s=Rh,nameGenerator:o,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,i,a){var p;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:c,formContext:u,translateString:f}=i4();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...c,...r.widgets},rootSchema:i,formContext:r.formContext||u,schemaUtils:a,translateString:n||f,globalUiOptions:s[pu],globalFormOptions:xi.getGlobalFormOptions(r),uiSchemaDefinitions:s[i_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=Cv(n);s[0]===""?s[0]=i:s.unshift(i);const o=s.join(a);let l=this.formElement.current.elements[o];l||(l=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),l!=null&&l.length&&(l=l[0]),l&&l.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:i}=this.state;return r===!0&&(i=this.omitExtraData(i)),this.validateFormWithFormData(i)}render(){const{children:r,id:i,className:a="",tagName:n,name:s,method:o,target:l,action:c,autoComplete:u,enctype:f,acceptCharset:p,noHtml5Validate:d=!1,disabled:h,readonly:v,showErrorList:k="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:m,fieldPathId:y,registry:S}=this.state,{SchemaField:x}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,C=g?n:void 0,A=g||n||"form";let{[Gs]:O={}}=pe(w);h&&(O={...O,props:{...O.props,disabled:!0}});const F={[gn]:{[Gs]:O}};return I.jsxs(A,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:c,autoComplete:u,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:C,ref:this.formElement,children:[k==="top"&&this.renderErrors(S),I.jsx(x,{name:"",schema:b,uiSchema:w,errorSchema:m,fieldPathId:y,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:v}),r||I.jsx(_,{uiSchema:F,registry:S}),k==="bottom"&&this.renderErrors(S)]})}},s4=(e,t)=>e.map(r=>{var n,s;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(s=t.properties)==null?void 0:s[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),Wd=({id:e,...t})=>{const[r,i]=R.useState(t.formData);return I.jsx(a4,{id:e,idPrefix:`root_${e}`,transformErrors:a=>s4(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:s}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const o of n.required){const l=(n.properties||{})[o];l&&l.type==="boolean"&&s[o]===!1&&delete s[o]}i(s)}})},o4=["tabs","sidebar"],Kd=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),l4={nextLabel:"Next",backLabel:"Back",leaveTitle:"Leave this step?",leaveMessage:"What you entered here hasn't been saved and will be lost.",leaveConfirmLabel:"Leave",leaveCancelLabel:"Stay"},c4=e=>{const t=e??{},r=Object.fromEntries(Object.entries(l4).map(([i,a])=>[i,typeof t[i]=="string"?t[i]:a]));return{layout:o4.includes(t.layout)?t.layout:"tabs",...r}},u4=["nextLabel","backLabel"],t0=(e,t)=>({title:typeof e.title=="string"&&e.title?e.title:`Step ${t+1}`,...typeof e.description=="string"&&e.description&&{description:e.description},...Object.fromEntries(u4.filter(r=>typeof e[r]=="string"&&e[r]).map(r=>[r,e[r]]))}),f4=(e,t)=>typeof e.process!="string"||!e.process?(console.warn(`"ui:steps" step ${t+1} has an empty or non-string "process"; dropped.`),null):("fields"in e&&console.warn(`"ui:steps" step ${t+1} names a process, so its "fields" are ignored: the process's own form renders there.`),{...t0(e,t),process:e.process}),d4=(e,t,r,i)=>{if(!Array.isArray(e.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const a=e.fields.filter(n=>typeof n!="string"||!r.includes(n)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${n}"; dropped.`),!1):i.has(n)?(console.warn(`"ui:steps" step ${t+1} repeats field "${n}"; keeping its first occurrence.`),!1):(i.add(n),!0));return a.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{...t0(e,t),fields:a}},p4=e=>"process"in e,m4=(e,t)=>{const r=new Set,i=[],a=[];return e.forEach((n,s)=>{const o=n??{};if(p4(o)){const l=f4(o,s);l&&a.push(l)}else if(a.length>0)console.warn(`"ui:steps" step ${s+1} lists fields after a process step; dropped. In-form steps must come before every process step.`);else{const l=d4(o,s,t,r);l&&i.push(l)}}),{steps:i,processSteps:a,assigned:r}},Gd=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return Kd('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),{steps:a,processSteps:n,assigned:s}=m4(r.steps,i);if(a.length===0)return Kd("no usable in-form step before the first process step"),null;if(a.length+n.length<2)return Kd("fewer than two usable steps"),null;const o=i.filter(l=>!s.has(l));return o.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${o.join(", ")}); appending them to the last in-form step.`),a[a.length-1].fields.push(...o)),{config:c4(r.config),steps:a,processSteps:n}},h4={StepsNavigation:({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return I.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[I.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>I.jsx("li",{className:"fcode-steps-nav-item",children:I.jsxs("button",{type:"button",className:en("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","is-skipped":s.status==="skipped","is-substep":(s.depth??0)>0,"has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[I.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.counter??s.index+1}),I.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),I.jsxs("div",{className:"fcode-steps-main",children:[n&&I.jsxs("div",{className:"fcode-steps-header",children:[I.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&I.jsx("p",{className:"fcode-steps-description",children:n.description})]}),I.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},BackButton:({label:e,onClick:t,disabled:r})=>I.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e})},g4="data-fcode-step",r0=({config:e,components:t,templates:r,uiSchema:i,isFinal:a,labels:n,onBack:s})=>{var d;const{BackButton:o}=t,l=(d=r==null?void 0:r.ButtonTemplates)==null?void 0:d.SubmitButton,c=ff(i??{}),u={...c.props,[g4]:a?"submit":"next"},f={"ui:submitButtonOptions":a?{...c,...(n==null?void 0:n.nextLabel)&&{submitText:n.nextLabel},props:u}:{...c,submitText:(n==null?void 0:n.nextLabel)??e.nextLabel,norender:!1,props:u}},p={translateString:h=>h};return I.jsxs("div",{className:"fcode-steps-actions",children:[s&&I.jsx(o,{label:(n==null?void 0:n.backLabel)??e.backLabel,onClick:s}),l&&I.jsx(l,{uiSchema:f,registry:p})]})},y4=(e,t)=>{const r=t==null?void 0:t.parent,i=e.map((s,o)=>({item:r?{...s,depth:1,counter:`${r.counter}.${o+1}`}:{...s,counter:s.counter??String(o+1)},target:{local:o}})),a=[...((t==null?void 0:t.before)??[]).map(s=>({item:s,target:{flowIndex:s.index}})),...r?[{item:r,target:null}]:[],...i,...((t==null?void 0:t.after)??[]).map(s=>({item:s,target:{flowIndex:s.index}}))],n=a.length-i.length-((t==null?void 0:t.after.length)??0);return{items:a.map(({item:s},o)=>({...s,index:o})),targetOf:s=>{var o;return((o=a[s])==null?void 0:o.target)??null},indexOfOwn:s=>n+s}},n0=e=>e==null||e===""?void 0:e,i0=(e,t)=>Object.keys(e??{}).some(r=>JSON.stringify(n0(e==null?void 0:e[r]))!==JSON.stringify(n0(t==null?void 0:t[r]))),a0=e=>({...cf(e.validator,e.schema,e.formData??{})}),v4={position:"fixed",inset:0,zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"1rem",backgroundColor:"rgb(0 0 0 / 0.4)"},b4={boxSizing:"border-box",width:"100%",maxWidth:"26rem",padding:"1.5rem",borderRadius:"0.5rem",backgroundColor:"var(--ycf-form-background-color, #fff)",color:"var(--ycf-base-text-color, inherit)",boxShadow:"0 10px 30px rgb(0 0 0 / 0.2)"},k4={display:"flex",justifyContent:"flex-end",gap:"0.75rem"},w4=({open:e,title:t,message:r,confirmLabel:i,cancelLabel:a,onConfirm:n,onCancel:s})=>e?I.jsx("div",{className:"fcode-steps-leave-backdrop",style:v4,children:I.jsxs("div",{className:"fcode-steps-leave",style:b4,role:"alertdialog","aria-modal":"true","aria-labelledby":"fcode-steps-leave-title","aria-describedby":"fcode-steps-leave-message",children:[I.jsx("h3",{id:"fcode-steps-leave-title",className:"fcode-steps-leave-title",children:t}),I.jsx("p",{id:"fcode-steps-leave-message",className:"fcode-steps-leave-message",children:r}),I.jsxs("div",{className:"fcode-steps-leave-actions",style:k4,children:[I.jsx("button",{type:"button",className:"btn btn-light",onClick:s,children:a}),I.jsx("button",{type:"button",className:"btn btn-primary",onClick:n,children:i})]})]})}):null,s0=(e,t)=>{const r=R.useRef(!1),[i,a]=R.useState(null),n=c=>{c&&(r.current=!0)},s=c=>{r.current?a(()=>c):c()},o=t.LeaveConfirm??w4,l=I.jsx(o,{open:i!==null,title:e.leaveTitle,message:e.leaveMessage,confirmLabel:e.leaveConfirmLabel,cancelLabel:e.leaveCancelLabel,onConfirm:()=>{const c=i;a(null),c==null||c()},onCancel:()=>a(null)});return{noteChange:n,guard:s,confirmation:l}},Rl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),S4=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(s=>i.add(s)),(n.oneOf??[]).forEach(s=>Object.keys((s==null?void 0:s.properties)??{}).forEach(o=>i.add(o)))};for(const n of t){const s=r[n];s&&typeof s=="object"&&!Array.isArray(s)&&a(s)}return t.forEach(n=>i.delete(n)),[...i]},C4=(e,t)=>{const r=e,i=Object.entries(Rl(r.dependencies,t)).reduce((a,[n,s])=>{if(Array.isArray(s)){const o=s.filter(l=>t.includes(l));o.length>0&&(a[n]=o)}else a[n]=s;return a},{});return{...e,properties:Rl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},E4=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),A4=(e,t,r)=>({nextLabel:e.nextLabel??(t.isLast?r==null?void 0:r.nextLabel:void 0),backLabel:e.backLabel??(t.isFirst?r==null?void 0:r.backLabel:void 0)}),Jd=({parsed:e,components:t,flow:r,...i})=>{const{steps:a,config:n}=e,s=i.schema,o=i.uiSchema,l=(r==null?void 0:r.initialStepIndex)??(r!=null&&r.revisiting?a.length-1:0),[c,u]=R.useState(l),[f,p]=R.useState(r!=null&&r.revisiting?a.length-1:l),[d,h]=R.useState({...i.formData??{}}),v=R.useRef({}),[k]=R.useState(()=>a0(i)),g=s0(n,t),b=R.useMemo(()=>a.map(X=>[...X.fields,...S4(s,X.fields)]),[a,s]),w=R.useMemo(()=>a.map((X,P)=>({schema:C4(s,X.fields),uiSchema:E4(o,b[P])})),[a,s,o,b]),E=i.extraErrors,m=R.useMemo(()=>b.map(X=>X.some(P=>!!E&&P in E)),[b,E]);R.useEffect(()=>{const X=m.findIndex(Boolean);X>=0&&u(X)},[E]),R.useEffect(()=>{v.current=Rl(d,b[c])},[c]);const y=(X,P,j)=>({...Object.fromEntries(Object.entries(X).filter(([U])=>!b[j].includes(U))),...P}),S=X=>{h(P=>y(P,v.current,c)),u(X)},x=i.readonly===!0||i.disabled===!0||(o==null?void 0:o["ui:readonly"])===!0,_=X=>X!==c&&(x||X<=f),C=c===a.length-1,A=(X,P)=>{const j=y(d,X.formData??{},c);if(h(j),C){i.onSubmit&&i.onSubmit({...X,formData:j},P);return}u(c+1),p(U=>Math.max(U,c+1))},O=X=>{v.current=X.formData??{},g.noteChange(i0(X.formData,k)),i.onChange&&i.onChange(X)},F=a.map((X,P)=>({index:P,title:X.title,description:X.description,status:P<c?"completed":P===c?"current":"upcoming",clickable:_(P),hasErrors:m[P]})),N=y4(F,r),M=X=>{const P=N.targetOf(X);P&&"flowIndex"in P?g.guard(()=>r==null?void 0:r.onNavigate(P.flowIndex)):P&&_(P.local)&&S(P.local)},q=r==null?void 0:r.onBack,H=q&&(()=>g.guard(q)),{StepsNavigation:J}=t;return I.jsxs(I.Fragment,{children:[I.jsx(J,{layout:n.layout,items:r?N.items:F,currentIndex:r?N.indexOfOwn(c):c,onNavigate:M,children:I.jsx(Wd,{...i,schema:w[c].schema,uiSchema:w[c].uiSchema,formData:Rl(d,b[c]),onChange:O,onSubmit:A,children:I.jsx(r0,{config:n,components:t,templates:i.templates,uiSchema:o,isFinal:C&&(!r||r.endsFlow),labels:A4(a[c],{isFirst:c===0,isLast:C},r==null?void 0:r.labels),onBack:c>0?()=>S(c-1):H})},c)}),g.confirmation]})},x4=({flow:e,item:t,components:r,...i})=>{const{StepsNavigation:a}=r,[n]=R.useState(()=>a0(i)),s=s0(e.config,r),o=e.onBack,l=Object.fromEntries(Object.entries(i.uiSchema??{}).filter(([c])=>c!=="ui:steps"&&c!=="ui:submitButtonOptions"));return I.jsxs(I.Fragment,{children:[I.jsx(a,{layout:e.config.layout,items:[...e.before,t,...e.after],currentIndex:t.index,onNavigate:c=>{c!==t.index&&s.guard(()=>e.onNavigate(c))},children:I.jsx(Wd,{...i,uiSchema:l,onChange:c=>{var u;s.noteChange(i0(c.formData,n)),(u=i.onChange)==null||u.call(i,c)},children:I.jsx(r0,{config:e.config,components:r,templates:i.templates,uiSchema:i.uiSchema,isFinal:e.endsFlow,labels:e.labels,onBack:o&&(()=>s.guard(o))})})}),s.confirmation]})},O4=({id:e,schema:t,options:r,registry:i,value:a,onChange:n,disabled:s,readonly:o})=>I.jsx(Vk,{id:e,schema:t,uiOptions:r,registry:i,value:a,onChange:n,disabled:s,readonly:o}),_4=(e,t)=>({...e,fcode:{...e==null?void 0:e.fcode,oauth:(t==null?void 0:t.oauth)??Mk}}),P4=(e,t)=>e&&e in fs?hl({},fs[e]):t&&t in fs?hl({},fs[t]):hl({},fs.en),o0=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:c,flow:u,...f})=>{const{theme:p}=l;mp(l);const d=R.useMemo(()=>P4(a,n),[a,n]),h=R.useMemo(()=>{if(u)return null;const w=Gd(f.uiSchema,f.schema);return w&&w.steps.length>=2?w:null},[u,f.uiSchema,f.schema]),v=R.useMemo(()=>{if((u==null?void 0:u.kind)!=="page")return null;const w=Gd(f.uiSchema,f.schema);return w&&w.processSteps.length>0&&console.warn(`"ui:steps" process steps are only read from a flow's entry form; ignoring them here.`),w&&w.steps.length>=2?{...w,config:u.config,processSteps:[]}:null},[u,f.uiSchema,f.schema]),k=R.useMemo(()=>_4(f.formContext,c),[f.formContext,c]),g={id:e,validator:s||d,className:en(["fcode-form",o,{[`theme-${p}`]:p}]),fields:{...Pq,...c==null?void 0:c.fields,...i},templates:{...Sk.templates,...c==null?void 0:c.templates,...t},widgets:{oauth:O4,...Sk.widgets,...c==null?void 0:c.widgets,...r},...f,formContext:k},b=(c==null?void 0:c.multistep)??h4;return(u==null?void 0:u.kind)==="entry"?I.jsx(Jd,{parsed:u.multistep,components:b,flow:u,...g}):(u==null?void 0:u.kind)==="page"&&v?I.jsx(Jd,{parsed:v,components:b,flow:{...u,parent:u.item},...g}):(u==null?void 0:u.kind)==="page"?I.jsx(x4,{flow:u,item:u.item,components:b,...g}):h?I.jsx(Jd,{parsed:h,components:b,...g}):I.jsx(Wd,{...g})},Ul=-1,I4=e=>{var r;const t=(r=e==null?void 0:e["ui:steps"])==null?void 0:r.steps;return Array.isArray(t)&&t.some(i=>!!i&&typeof i=="object"&&"process"in i)},T4=(e,t,r)=>{if(!I4(e))return null;const i=Gd(e,t);return!i||i.processSteps.length===0?null:{multistep:i,visits:[{position:Ul,...r}]}},Bl=e=>e.visits[e.visits.length-1],N4=(e,t,r)=>{const{processSteps:i}=e;if(typeof r=="string"&&r){const n=i.findIndex((s,o)=>o>t&&s.process===r);return n>=0?{kind:"step",position:n,processId:r}:(console.warn(`nextProcessId "${r}" is not a later step of this form's flow (${i.map(s=>s.process).join(", ")}); leaving the flow to render that form on its own.`),{kind:"leave"})}const a=t+1;return a<i.length?{kind:"step",position:a,processId:i[a].process}:{kind:"finish"}},F4=(e,t)=>t.position===Ul?e.steps.length-1:e.steps.length+t.position,D4=(e,t)=>{const{multistep:r,visits:i}=e,a=t<r.steps.length,n=a?Ul:t-r.steps.length,s=i.findIndex(o=>o.position===n);return s<0||s===i.length-1?null:{multistep:r,visits:[...i.slice(0,s),{...i[s],...a&&{stepIndex:t}}]}},M4=(e,t,r)=>e===t?"current":e>t?"upcoming":r.has(e)?"completed":"skipped",j4=(e,t)=>{const{multistep:r,visits:i}=e,{steps:a,processSteps:n,config:s}=r,o=Bl(e),l=new Set(i.map(p=>p.position)),c=n.map((p,d)=>{const h=M4(d,o.position,l);return{index:a.length+d,counter:String(a.length+d+1),title:p.title,description:p.description,status:h,clickable:h==="completed",hasErrors:h==="current"&&t.hasErrors}});if(o.position===Ul)return{kind:"entry",multistep:r,config:s,before:[],after:c,onNavigate:t.onNavigate,endsFlow:!1,initialStepIndex:o.stepIndex,revisiting:o.formData!==void 0};const u=a.map((p,d)=>({index:d,counter:String(d+1),title:p.title,description:p.description,status:"completed",clickable:!0,hasErrors:!1})),f=i[i.length-2];return{kind:"page",item:c[o.position],config:s,before:[...u,...c.slice(0,o.position)],after:c.slice(o.position+1),onNavigate:t.onNavigate,onBack:()=>t.onNavigate(F4(r,f)),endsFlow:o.position===n.length-1,labels:{nextLabel:n[o.position].nextLabel,backLabel:n[o.position].backLabel},initialStepIndex:o.stepIndex,revisiting:o.formData!==void 0}},l0={theme:"light",loadingOverlayDisabled:!1,locale:"en"},Yd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,transport:i,processId:a,processVersion:n,onNextStep:s=sw,onSuccess:o,keepSuccessView:l=!1,onError:c,markdownComponents:u,defaultValues:f={},async:p=!1,disabled:d=!1,readonly:h=!1,options:v,...k})=>{const[g,b]=R.useState({processId:a,steps:[],variables:{...v&&v.variables}}),{loading:w,reloading:E,formSpecs:m,uploads:y,error:S,reload:x,reloadUploads:_}=j0(i?{transport:i,processId:g.processId,locale:v==null?void 0:v.locale,params:{...g.variables,...v==null?void 0:v.variables}}:{hostUrl:e,headers:t,team:r,processId:g.processId,processVersion:n,locale:v==null?void 0:v.locale}),[C]=M0(i?{transport:i,processId:g.processId,locale:v==null?void 0:v.locale,async:p,uploads:y,reloadUploads:_}:{hostUrl:e,headers:t,team:r,processId:g.processId,processVersion:n,locale:v==null?void 0:v.locale,async:p}),A=R.useMemo(()=>{const ee=op();return console.log(`Building Factorial Code form with id ${ee}`),ee},[r,g]),O=R.useMemo(()=>{const ee=f||{};return window.location.search?{...ee,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:ee},[f]),[F,N]=R.useState(!1),[M,q]=R.useState(O),[H,J]=R.useState({}),[X,P]=R.useState(null),j=R.useCallback((ee,te)=>{J({}),N(!0),q(ee.formData),C({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...g.steps.length>0&&{steps:g.steps},...Object.keys(g.variables).length>0&&{variables:g.variables},...v&&v.locale&&{locale:v.locale}},...ee.formData}).then(({results:se,resolvedFiles:ge})=>{q(O);const be=[...g.steps,{processId:g.processId,data:{...ee.formData,...ge},result:se}],ve={...g.variables,...se.variables},Se=te&&N4(te.multistep,Bl(te).position,se.nextProcessId);if(te&&(Se==null?void 0:Se.kind)==="step"){b({processId:Se.processId,steps:be,variables:ve,flow:{multistep:te.multistep,visits:[...te.visits.slice(0,-1),{...Bl(te),formData:ee.formData},{position:Se.position,processId:Se.processId,steps:be,variables:ve}]}}),s(Se.processId,se);return}if(se.nextProcessId){b({processId:se.nextProcessId,steps:be,variables:ve}),s(se.nextProcessId,se);return}se.redirect&&aw(se.redirect),o?o(A,se,ee.formData):(console.log(`Form ${A} has been successfully submitted.`),Ts("fcode-forms-on-submit-success",{formId:A,formSubmittedData:ee.formData,processExecutionResult:se})),(!o||l)&&P({kind:"success",message:se.message||ow})}).catch(se=>{se!=null&&se.formErrors?J(uw(se==null?void 0:se.formErrors)):c?c(A,se,ee.formData):(console.log(`There has been an error submitting the form ${A}`,se),Ts("fcode-forms-on-submit-error",{formId:A,error:se}),P({kind:"error",message:jp(se)}))}).finally(()=>N(!1))},[A,O,o,l,c,C,g]),U={...l0,...v};mp(U);const T=R.useMemo(()=>{var ee;return{...k.formContext,fcode:{...(ee=k.formContext)==null?void 0:ee.fcode,reloadFormSpecs:x}}},[k.formContext,x]);R.useEffect(()=>{S&&(c?c(A,S,{}):(console.log(`There has been an error submitting the form ${A}`,S),Ts("fcode-forms-on-submit-error",{formId:A,error:S})))},[S]);const D=en(["fcode-form-wrapper",U.className]);if(w)return I.jsx("div",{className:en([D,"fcode-form-loading"]),"data-testid":"fcode-form",children:I.jsx(Fp,{active:!0,content:U.loadingContent,children:I.jsx("div",{className:"fcode-form-outer",children:I.jsx(Dp,{})})})});if(S||!m)return I.jsx("div",{className:D,"data-testid":"fcode-form",children:I.jsx("div",{className:"fcode-form-outer",children:I.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:cw(S)})})});m.schema.embedFormOptions={...l0,...m.schema.embedFormOptions,...v,variables:{...m.schema.embedFormOptions&&m.schema.embedFormOptions.variables,...g.variables,...v&&v.variables}};const L=jh(m),B=g.flow??T4(L.uiSchema,L.schema,{processId:g.processId,steps:g.steps,variables:g.variables}),W=B&&j4(B,{onNavigate:ee=>{const te=B&&D4(B,ee);if(!te)return;const se=Bl(te);J({}),q(se.formData??O),b({processId:se.processId,steps:se.steps,variables:se.variables,flow:te})},hasErrors:Object.keys(H).length>0}),Y=Object.keys(L.schema.properties||{}),Z=Object.fromEntries(Object.entries(M).filter(([ee])=>Y.includes(ee)));if(X)return I.jsx("div",{className:en(["fcode-form-wrapper",L.embedFormOptions.className]),"data-testid":"fcode-form",children:I.jsx("div",{className:"fcode-form-outer",children:I.jsx("div",{className:en(["fcode-form-markdown",X.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${X.kind}-message`,children:I.jsx(Qc,{components:u,children:X.message})})})});const{loadingOverlayDisabled:z,loadingOverlayContent:$,locale:G,fallbackLocale:K}=L.embedFormOptions;return I.jsx("div",{className:en(["fcode-form-wrapper",L.embedFormOptions.className]),"data-testid":"fcode-form",children:I.jsx(Fp,{active:F||E,content:E?U.loadingContent:$,disabled:z,children:I.jsx("div",{className:"fcode-form-outer",children:I.jsx(o0,{id:A,schema:L.schema,uiSchema:L.uiSchema,embedFormOptions:L.embedFormOptions,locale:G,fallbackLocale:K,formData:Z,onSubmit:ee=>j(ee,B),flow:W??void 0,noHtml5Validate:!0,disabled:d,readonly:h,showErrorList:!1,extraErrors:H,...k,formContext:T},A)})})})};Yd.displayName="FcodeForm",Ge.FcodeForm=Yd,Ge.FcodeJsonSchemaForm=o0,Ge.buildId=op,Ge.default=Yd,Ge.processFormSpecs=jh,Ge.resolveErrorMessage=jp,Object.defineProperties(Ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
145
145
  //# sourceMappingURL=fcode-form.umd.js.map