@factorialco/fcode-react-forms 3.1.0 → 3.2.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.
@@ -1,62 +1,62 @@
1
- "use strict";var f0=Object.defineProperty;var d0=(e,t,r)=>t in e?f0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $t=(e,t,r)=>d0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("react/jsx-runtime"),V=require("react"),Os=require("react-dom");function m0(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 tn=m0(V),Xy=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Zy=()=>Math.random().toString(36).substring(2,10),p0=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),h0="Fcode-Version-Tag",g0="Fcode-Locale",em="Fcode-Resolved-Files",Qy=e=>e?{[h0]:e}:{},ev=e=>e?{[g0]:e}:{},y0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const s={...t,...Qy(a),...ev(n)},o=await fetch(Xy(e,r,i),{cache:"force-cache",...Object.keys(s).length>0&&{headers:s}}),l=await o.json();if(o.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(o.ok)return l;throw l},v0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,b0=e=>{const t=v0.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})}},k0=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=b0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},w0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,em);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${em} header`,a)}},x0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=k0(o),c=Xy(e,r,i),f={"Fcode-Async":n?"true":"false"},m=Qy(a),d=ev(s);let p;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,...m,...d};delete g["Content-Type"],delete g["content-type"],p=await fetch(c,{headers:g,method:"POST",body:v})}else p=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...m,...d},method:"POST",body:JSON.stringify(o)});let k={};try{const v=await p.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(p.ok)return{results:k,resolvedFiles:w0(p)};throw k},S0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s=!1})=>{const[o,l]=V.useState(!1),[u,c]=V.useState(void 0),[f,m]=V.useState(void 0),[d,p]=V.useState(void 0),k=V.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[V.useCallback(async g=>{try{m(g),l(!0);const b=await x0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw p(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},C0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[s,o]=V.useState(!0),[l,u]=V.useState(),[c,f]=V.useState(),m=JSON.stringify(t??null),d=V.useMemo(()=>t,[m]);return V.useEffect(()=>{let p=!1;return o(!0),f(void 0),y0({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(k=>{p||u(k)}).catch(k=>{p||f(k)}).finally(()=>{p||o(!1)}),()=>{p=!0}},[e,d,r,i,a,n]),{loading:s,formSpecs:l,error:c}},E0=e=>p0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),A0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},O0=e=>{if(A0(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},_0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function P0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>E0(r)?O0(r):_0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function tv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=V.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]);P0({stylesheets:n})}function Uo(){return Uo=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},Uo.apply(null,arguments)}function rv(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 Rc(e,t){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rc(e,t)}function nv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rc(e,t)}function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _s={exports:{}},Ps={exports:{}},Ze={};/** @license React v16.13.1
1
+ "use strict";var p0=Object.defineProperty;var h0=(e,t,r)=>t in e?p0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $t=(e,t,r)=>h0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("react/jsx-runtime"),V=require("react"),Os=require("react-dom");function g0(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 rn=g0(V),ev=(e,t,r)=>`${e}/api/${t}/forms/${r}`,tv=()=>Math.random().toString(36).substring(2,10),y0=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),v0="Fcode-Version-Tag",b0="Fcode-Locale",rm="Fcode-Resolved-Files",rv=e=>e?{[v0]:e}:{},nv=e=>e?{[b0]:e}:{},k0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const s={...t,...rv(a),...nv(n)},o=await fetch(ev(e,r,i),{cache:"force-cache",...Object.keys(s).length>0&&{headers:s}}),l=await o.json();if(o.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(o.ok)return l;throw l},w0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,x0=e=>{const t=w0.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})}},S0=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=x0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},C0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,rm);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${rm} header`,a)}},E0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=S0(o),c=ev(e,r,i),f={"Fcode-Async":n?"true":"false"},m=rv(a),d=nv(s);let p;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,...m,...d};delete g["Content-Type"],delete g["content-type"],p=await fetch(c,{headers:g,method:"POST",body:v})}else p=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...m,...d},method:"POST",body:JSON.stringify(o)});let k={};try{const v=await p.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(p.ok)return{results:k,resolvedFiles:C0(p)};throw k},A0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s=!1})=>{const[o,l]=V.useState(!1),[u,c]=V.useState(void 0),[f,m]=V.useState(void 0),[d,p]=V.useState(void 0),k=V.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[V.useCallback(async g=>{try{m(g),l(!0);const b=await E0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw p(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},O0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[s,o]=V.useState(!0),[l,u]=V.useState(),[c,f]=V.useState(),m=JSON.stringify(t??null),d=V.useMemo(()=>t,[m]);return V.useEffect(()=>{let p=!1;return o(!0),f(void 0),k0({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(k=>{p||u(k)}).catch(k=>{p||f(k)}).finally(()=>{p||o(!1)}),()=>{p=!0}},[e,d,r,i,a,n]),{loading:s,formSpecs:l,error:c}},_0=e=>y0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),P0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},I0=e=>{if(P0(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},T0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function j0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>_0(r)?I0(r):T0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function iv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=V.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]);j0({stylesheets:n})}function Uo(){return Uo=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},Uo.apply(null,arguments)}function av(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 Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Nc(e,t)}function sv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nc(e,t)}function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _s={exports:{}},Ps={exports:{}},Ze={};/** @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 tm;function I0(){if(tm)return Ze;tm=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=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 o:case c:case p:case d:case s:return h;default:return y}}case r:return y}}}function C(h){return w(h)===u}return Ze.AsyncMode=l,Ze.ConcurrentMode=u,Ze.ContextConsumer=o,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=c,Ze.Fragment=i,Ze.Lazy=p,Ze.Memo=d,Ze.Portal=r,Ze.Profiler=n,Ze.StrictMode=a,Ze.Suspense=f,Ze.isAsyncMode=function(h){return C(h)||w(h)===l},Ze.isConcurrentMode=C,Ze.isContextConsumer=function(h){return w(h)===o},Ze.isContextProvider=function(h){return w(h)===s},Ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ze.isForwardRef=function(h){return w(h)===c},Ze.isFragment=function(h){return w(h)===i},Ze.isLazy=function(h){return w(h)===p},Ze.isMemo=function(h){return w(h)===d},Ze.isPortal=function(h){return w(h)===r},Ze.isProfiler=function(h){return w(h)===n},Ze.isStrictMode=function(h){return w(h)===a},Ze.isSuspense=function(h){return w(h)===f},Ze.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===m||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Ze.typeOf=w,Ze}var Qe={};/** @license React v16.13.1
8
+ */var nm;function R0(){if(nm)return Ze;nm=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=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 o:case c:case p:case d:case s:return h;default:return y}}case r:return y}}}function C(h){return w(h)===u}return Ze.AsyncMode=l,Ze.ConcurrentMode=u,Ze.ContextConsumer=o,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=c,Ze.Fragment=i,Ze.Lazy=p,Ze.Memo=d,Ze.Portal=r,Ze.Profiler=n,Ze.StrictMode=a,Ze.Suspense=f,Ze.isAsyncMode=function(h){return C(h)||w(h)===l},Ze.isConcurrentMode=C,Ze.isContextConsumer=function(h){return w(h)===o},Ze.isContextProvider=function(h){return w(h)===s},Ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ze.isForwardRef=function(h){return w(h)===c},Ze.isFragment=function(h){return w(h)===i},Ze.isLazy=function(h){return w(h)===p},Ze.isMemo=function(h){return w(h)===d},Ze.isPortal=function(h){return w(h)===r},Ze.isProfiler=function(h){return w(h)===n},Ze.isStrictMode=function(h){return w(h)===a},Ze.isSuspense=function(h){return w(h)===f},Ze.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===m||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Ze.typeOf=w,Ze}var Qe={};/** @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 rm;function T0(){return rm||(rm=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=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(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===n||q===a||q===f||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===d||q.$$typeof===s||q.$$typeof===o||q.$$typeof===c||q.$$typeof===v||q.$$typeof===g||q.$$typeof===b||q.$$typeof===k)}function C(q){if(typeof q=="object"&&q!==null){var W=q.$$typeof;switch(W){case t:var K=q.type;switch(K){case l:case u:case i:case n:case a:case f:return K;default:var ie=K&&K.$$typeof;switch(ie){case o:case c:case p:case d:case s:return ie;default:return W}}case r:return W}}}var h=l,y=u,S=o,A=s,_=t,x=c,E=i,O=p,j=d,T=r,F=n,L=a,J=f,Y=!1;function Q(q){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(q)||C(q)===l}function P(q){return C(q)===u}function D(q){return C(q)===o}function B(q){return C(q)===s}function I(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function R(q){return C(q)===c}function M(q){return C(q)===i}function U(q){return C(q)===p}function $(q){return C(q)===d}function H(q){return C(q)===r}function G(q){return C(q)===n}function X(q){return C(q)===a}function z(q){return C(q)===f}Qe.AsyncMode=h,Qe.ConcurrentMode=y,Qe.ContextConsumer=S,Qe.ContextProvider=A,Qe.Element=_,Qe.ForwardRef=x,Qe.Fragment=E,Qe.Lazy=O,Qe.Memo=j,Qe.Portal=T,Qe.Profiler=F,Qe.StrictMode=L,Qe.Suspense=J,Qe.isAsyncMode=Q,Qe.isConcurrentMode=P,Qe.isContextConsumer=D,Qe.isContextProvider=B,Qe.isElement=I,Qe.isForwardRef=R,Qe.isFragment=M,Qe.isLazy=U,Qe.isMemo=$,Qe.isPortal=H,Qe.isProfiler=G,Qe.isStrictMode=X,Qe.isSuspense=z,Qe.isValidElementType=w,Qe.typeOf=C})()),Qe}var nm;function iv(){return nm||(nm=1,process.env.NODE_ENV==="production"?Ps.exports=I0():Ps.exports=T0()),Ps.exports}/*
15
+ */var im;function N0(){return im||(im=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=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(q){return typeof q=="string"||typeof q=="function"||q===i||q===u||q===n||q===a||q===f||q===m||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===d||q.$$typeof===s||q.$$typeof===o||q.$$typeof===c||q.$$typeof===v||q.$$typeof===g||q.$$typeof===b||q.$$typeof===k)}function C(q){if(typeof q=="object"&&q!==null){var W=q.$$typeof;switch(W){case t:var K=q.type;switch(K){case l:case u:case i:case n:case a:case f:return K;default:var ie=K&&K.$$typeof;switch(ie){case o:case c:case p:case d:case s:return ie;default:return W}}case r:return W}}}var h=l,y=u,S=o,A=s,_=t,x=c,E=i,O=p,R=d,T=r,D=n,L=a,J=f,Y=!1;function X(q){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(q)||C(q)===l}function P(q){return C(q)===u}function F(q){return C(q)===o}function B(q){return C(q)===s}function I(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function N(q){return C(q)===c}function M(q){return C(q)===i}function U(q){return C(q)===p}function $(q){return C(q)===d}function H(q){return C(q)===r}function G(q){return C(q)===n}function Z(q){return C(q)===a}function z(q){return C(q)===f}Qe.AsyncMode=h,Qe.ConcurrentMode=y,Qe.ContextConsumer=S,Qe.ContextProvider=A,Qe.Element=_,Qe.ForwardRef=x,Qe.Fragment=E,Qe.Lazy=O,Qe.Memo=R,Qe.Portal=T,Qe.Profiler=D,Qe.StrictMode=L,Qe.Suspense=J,Qe.isAsyncMode=X,Qe.isConcurrentMode=P,Qe.isContextConsumer=F,Qe.isContextProvider=B,Qe.isElement=I,Qe.isForwardRef=N,Qe.isFragment=M,Qe.isLazy=U,Qe.isMemo=$,Qe.isPortal=H,Qe.isProfiler=G,Qe.isStrictMode=Z,Qe.isSuspense=z,Qe.isValidElementType=w,Qe.typeOf=C})()),Qe}var am;function ov(){return am||(am=1,process.env.NODE_ENV==="production"?Ps.exports=R0():Ps.exports=N0()),Ps.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Gl,im;function j0(){if(im)return Gl;im=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(c){return s[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,s){for(var o,l=i(n),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){u=e(o);for(var m=0;m<u.length;m++)r.call(o,u[m])&&(l[u[m]]=o[u[m]])}}return l},Gl}var Jl,am;function Pf(){if(am)return Jl;am=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Yl,sm;function av(){return sm||(sm=1,Yl=Function.call.bind(Object.prototype.hasOwnProperty)),Yl}var Xl,om;function R0(){if(om)return Xl;om=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pf(),r={},i=av();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,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 m=Error((l||"React class")+": "+o+" 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 m.name="Invariant Violation",m}f=n[c](s,c,l,o,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Xl=a,Xl}var Zl,lm;function N0(){if(lm)return Zl;lm=1;var e=iv(),t=j0(),r=Pf(),i=av(),a=R0(),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 Zl=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var D=P&&(u&&P[u]||P[c]);if(typeof D=="function")return D}var m="<<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:C(),elementType:h(),instanceOf:y,node:x(),objectOf:A,oneOf:S,oneOfType:_,shape:O,exact:j};function p(P,D){return P===D?P!==0||1/P===1/D:P!==P&&D!==D}function k(P,D){this.message=P,this.data=D&&typeof D=="object"?D:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var D={},B=0;function I(M,U,$,H,G,X,z){if(H=H||m,X=X||$,z!==r){if(l){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+$;!D[W]&&B<3&&(n("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[W]=!0,B++)}}return U[$]==null?M?U[$]===null?new k("The "+G+" `"+X+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+G+" `"+X+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(U,$,H,G,X)}var R=I.bind(null,!1);return R.isRequired=I.bind(null,!0),R}function g(P){function D(B,I,R,M,U,$){var H=B[I],G=L(H);if(G!==P){var X=J(H);return new k("Invalid "+M+" `"+U+"` of type "+("`"+X+"` supplied to `"+R+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(D)}function b(){return v(s)}function w(P){function D(B,I,R,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var $=B[I];if(!Array.isArray($)){var H=L($);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+R+"`, expected an array."))}for(var G=0;G<$.length;G++){var X=P($,G,R,M,U+"["+G+"]",r);if(X instanceof Error)return X}return null}return v(D)}function C(){function P(D,B,I,R,M){var U=D[B];if(!o(U)){var $=L(U);return new k("Invalid "+R+" `"+M+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(D,B,I,R,M){var U=D[B];if(!e.isValidElementType(U)){var $=L(U);return new k("Invalid "+R+" `"+M+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function D(B,I,R,M,U){if(!(B[I]instanceof P)){var $=P.name||m,H=Q(B[I]);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+R+"`, expected ")+("instance of `"+$+"`."))}return null}return v(D)}function S(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),s;function D(B,I,R,M,U){for(var $=B[I],H=0;H<P.length;H++)if(p($,P[H]))return null;var G=JSON.stringify(P,function(z,q){var W=J(q);return W==="symbol"?String(q):q});return new k("Invalid "+M+" `"+U+"` of value `"+String($)+"` "+("supplied to `"+R+"`, expected one of "+G+"."))}return v(D)}function A(P){function D(B,I,R,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+R+"`, expected an object."));for(var G in $)if(i($,G)){var X=P($,G,R,M,U+"."+G,r);if(X instanceof Error)return X}return null}return v(D)}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 D=0;D<P.length;D++){var B=P[D];if(typeof B!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(B)+" at index "+D+"."),s}function I(R,M,U,$,H){for(var G=[],X=0;X<P.length;X++){var z=P[X],q=z(R,M,U,$,H,r);if(q==null)return null;q.data&&i(q.data,"expectedType")&&G.push(q.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new k("Invalid "+$+" `"+H+"` supplied to "+("`"+U+"`"+W+"."))}return v(I)}function x(){function P(D,B,I,R,M){return T(D[B])?null:new k("Invalid "+R+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function E(P,D,B,I,R){return new k((P||"React class")+": "+D+" type `"+B+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function O(P){function D(B,I,R,M,U){var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+R+"`, expected `object`."));for(var G in P){var X=P[G];if(typeof X!="function")return E(R,M,U,G,J(X));var z=X($,G,R,M,U+"."+G,r);if(z)return z}return null}return v(D)}function j(P){function D(B,I,R,M,U){var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+R+"`, expected `object`."));var G=t({},B[I],P);for(var X in G){var z=P[X];if(i(P,X)&&typeof z!="function")return E(R,M,U,X,J(z));if(!z)return new k("Invalid "+M+" `"+U+"` key `"+X+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(B[I],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=z($,X,R,M,U+"."+X,r);if(q)return q}return null}return v(D)}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||o(P))return!0;var D=f(P);if(D){var B=D.call(P),I;if(D!==P.entries){for(;!(I=B.next()).done;)if(!T(I.value))return!1}else for(;!(I=B.next()).done;){var R=I.value;if(R&&!T(R[1]))return!1}}else return!1;return!0;default:return!1}}function F(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function L(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":F(D,P)?"symbol":D}function J(P){if(typeof P>"u"||P===null)return""+P;var D=L(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Y(P){var D=J(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Q(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Zl}var Ql,um;function F0(){if(um)return Ql;um=1;var e=Pf();function t(){}function r(){}return r.resetWarningCache=t,Ql=function(){function i(s,o,l,u,c,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}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},Ql}var cm;function D0(){if(cm)return _s.exports;if(cm=1,process.env.NODE_ENV!=="production"){var e=iv(),t=!0;_s.exports=N0()(e.isElement,t)}else _s.exports=F0()();return _s.exports}var M0=D0();const Ce=Wr(M0);function L0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function q0(e,t){e.classList?e.classList.add(t):L0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function fm(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=fm(e.className,t):e.setAttribute("class",fm(e.className&&e.className.baseVal||"",t))}const dm={disabled:!1};var $0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.number,Ce.shape({enter:Ce.number,exit:Ce.number,appear:Ce.number}).isRequired]):null,U0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.string,Ce.shape({enter:Ce.string,exit:Ce.string,active:Ce.string}),Ce.shape({enter:Ce.string,enterDone:Ce.string,enterActive:Ce.string,exit:Ce.string,exitDone:Ce.string,exitActive:Ce.string})]):null;const sv=V.createContext(null);var ov=function(t){return t.scrollTop},Pa="unmounted",ti="exited",ri="entering",Fi="entered",Nc="exiting",Gr=(function(e){nv(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=ti,n.appearStatus=ri):l=Fi:i.unmountOnExit||i.mountOnEnter?l=Pa:l=ti,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===Pa?{status:ti}: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!==ri&&s!==Fi&&(n=ri):(s===ri||s===Fi)&&(n=Nc)}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===ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this);s&&ov(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:Pa})},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],u=l[0],c=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||dm.disabled){this.safeSetState({status:Fi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ri},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Fi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Os.findDOMNode(this);if(!n||dm.disabled){this.safeSetState({status:ti},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Nc},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ti},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],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===Pa)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=rv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(sv.Provider,{value:null},typeof s=="function"?s(a,o):V.cloneElement(V.Children.only(s),o))},t})(V.Component);Gr.contextType=sv;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ce.shape({current:typeof Element>"u"?Ce.any:function(e,t,r,i,a,n){var s=e[t];return Ce.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ce.oneOfType([Ce.func.isRequired,Ce.element.isRequired]).isRequired,in:Ce.bool,mountOnEnter:Ce.bool,unmountOnExit:Ce.bool,appear:Ce.bool,enter:Ce.bool,exit:Ce.bool,timeout:function(t){var r=$0;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:Ce.func,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}:{};function _i(){}Gr.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};Gr.UNMOUNTED=Pa;Gr.EXITED=ti;Gr.ENTERING=ri;Gr.ENTERED=Fi;Gr.EXITING=Nc;var B0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return q0(t,i)})},eu=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return z0(t,i)})},If=(function(e){nv(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 u=i.resolveArguments(o,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.removeClasses(c,m),i.addClass(c,m,"done"),i.props.onEntered&&i.props.onEntered(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"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,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+o:l[o],m=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,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"),u=l.doneClassName;n==="appear"&&s==="done"&&u&&(o+=" "+u),s==="active"&&a&&ov(a),o&&(this.appliedClasses[n][s]=o,B0(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,u=s.done;this.appliedClasses[n]={},o&&eu(a,o),l&&eu(a,l),u&&eu(a,u)},r.render=function(){var a=this.props;a.classNames;var n=rv(a,["classNames"]);return V.createElement(Gr,Uo({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);If.defaultProps={classNames:""};If.propTypes=process.env.NODE_ENV!=="production"?Uo({},Gr.propTypes,{classNames:U0,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}):{};const V0=If,mm=({active:e,children:t,content:r,disabled:i})=>{const a=V.useRef(null);return i?N.jsx(N.Fragment,{children:t}):N.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,N.jsx(V0,{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})]})})})]})},H0=["first","second"],lv=()=>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"}),H0.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"})]});lv.displayName="FormSkeleton";const Io=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},K0=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},W0=(e,t)=>{Io("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},G0="The form has been successfully submitted",pm="There has been an error submitting the form",J0=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 pm}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:pm},Y0="The form couldn't be loaded",X0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Y0},uv=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]=uv(e[t]);break}return e},Z0=e=>{let t={};return e.fields&&(t={...uv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function Q0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ew=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rw={};function hm(e,t){return(rw.jsx?tw:ew).test(e)}const nw=/[ \t\n\f\r]/g;function iw(e){return typeof e=="object"?e.type==="text"?gm(e.value):!1:gm(e)}function gm(e){return e.replace(nw,"")===""}class ns{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ns.prototype.normal={};ns.prototype.property={};ns.prototype.space=void 0;function cv(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ns(r,i,t)}function Fc(e){return e.toLowerCase()}class Zt{constructor(t,r){this.attribute=r,this.property=t}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let aw=0;const Se=vi(),Ot=vi(),Dc=vi(),oe=vi(),ft=vi(),ai=vi(),tr=vi();function vi(){return 2**++aw}const Mc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ot,commaOrSpaceSeparated:tr,commaSeparated:ai,number:oe,overloadedBoolean:Dc,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),tu=Object.keys(Mc);class Tf extends Zt{constructor(t,r,i,a){let n=-1;if(super(t,r),ym(this,"space",a),typeof i=="number")for(;++n<tu.length;){const s=tu[n];ym(this,tu[n],(i&Mc[s])===Mc[s])}}}Tf.prototype.defined=!0;function ym(e,t,r){r&&(e[t]=r)}function na(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new Tf(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Fc(i)]=i,r[Fc(n.attribute)]=i}return new ns(t,r,e.space)}const fv=na({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,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:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dv(e,t){return t in e?e[t]:t}function mv(e,t){return dv(e,t.toLowerCase())}const sw=na({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ai,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:ft,autoFocus:Se,autoPlay:Se,blocking:ft,capture:null,charSet:null,checked:Se,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Se,controlsList:ft,coords:oe|ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Dc,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:ft,height:oe,hidden:Dc,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:ft,itemRef:ft,itemScope:Se,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:ft,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:ai,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:mv}),ow=na({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tr,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:ai,g2:ai,glyphName:ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dv}),pv=na({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()}}),hv=na({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mv}),gv=na({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lw={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"},uw=/[A-Z]/g,vm=/-[a-z]/g,cw=/^data[-\w.:]+$/i;function fw(e,t){const r=Fc(t);let i=t,a=Zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(vm,mw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!vm.test(n)){let s=n.replace(uw,dw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Tf}return new a(i,t)}function dw(e){return"-"+e.toLowerCase()}function mw(e){return e.charAt(1).toUpperCase()}const pw=cv([fv,sw,pv,hv,gv],"html"),jf=cv([fv,ow,pv,hv,gv],"svg");function hw(e){return e.join(" ").trim()}var Pi={},ru,bm;function gw(){if(bm)return ru;bm=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
- `,u="/",c="*",f="",m="comment",d="declaration";function p(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 C(T){var F=T.match(t);F&&(b+=F.length);var L=T.lastIndexOf(l);w=~L?T.length-L:w+T.length}function h(){var T={line:b,column:w};return function(F){return F.position=new y(T),_(),F}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function S(T){var F=new Error(g.source+":"+b+":"+w+": "+T);if(F.reason=T,F.filename=g.source,F.line=b,F.column=w,F.source=v,!g.silent)throw F}function A(T){var F=T.exec(v);if(F){var L=F[0];return C(L),v=v.slice(L.length),F}}function _(){A(r)}function x(T){var F;for(T=T||[];F=E();)F!==!1&&T.push(F);return T}function E(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var F=2;f!=v.charAt(F)&&(c!=v.charAt(F)||u!=v.charAt(F+1));)++F;if(F+=2,f===v.charAt(F-1))return S("End of comment missing");var L=v.slice(2,F-2);return w+=2,C(L),v=v.slice(F),w+=2,T({type:m,comment:L})}}function O(){var T=h(),F=A(i);if(F){if(E(),!A(a))return S("property missing ':'");var L=A(n),J=T({type:d,property:k(F[0].replace(e,f)),value:L?k(L[0].replace(e,f)):f});return A(s),J}}function j(){var T=[];x(T);for(var F;F=O();)F!==!1&&(T.push(F),x(T));return T}return _(),j()}function k(v){return v?v.replace(o,f):f}return ru=p,ru}var km;function yw(){if(km)return Pi;km=1;var e=Pi&&Pi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=r;const t=e(gw());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:u,value:c}=l;o?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Pi}var ya={},wm;function vw(){if(wm)return ya;wm=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.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)},s=function(u,c){return c.toUpperCase()},o=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,o):u=u.replace(i,o),u.replace(t,s))};return ya.camelCase=l,ya}var va,xm;function bw(){if(xm)return va;xm=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(yw()),r=vw();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,va=i,va}var kw=bw();const ww=Wr(kw),yv=vv("end"),Rf=vv("start");function vv(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 xw(e){const t=Rf(e),r=yv(e);if(t&&r)return{start:t,end:r}}function Da(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sm(e.position):"start"in e||"end"in e?Sm(e):"line"in e||"column"in e?Lc(e):""}function Lc(e){return Cm(e&&e.line)+":"+Cm(e&&e.column)}function Sm(e){return Lc(e&&e.start)+"-"+Lc(e&&e.end)}function Cm(e){return e&&typeof e=="number"?e:1}class zt 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=Da(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}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Nf={}.hasOwnProperty,Sw=new Map,Cw=/[A-Z]/g,Ew=new Set(["table","tbody","thead","tfoot","tr"]),Aw=new Set(["td","th"]),bv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ow(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=Fw(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=Nw(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"?jf:pw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=kv(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function kv(e,t,r){if(t.type==="element")return _w(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Pw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tw(e,t,r);if(t.type==="mdxjsEsm")return Iw(e,t);if(t.type==="root")return jw(e,t,r);if(t.type==="text")return Rw(e,t)}function _w(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=jf,e.schema=a),e.ancestors.push(t);const n=xv(e,t.tagName,!1),s=Dw(e,t);let o=Df(e,t);return Ew.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!iw(l):!0})),wv(e,s,n,t),Ff(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Pw(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)}Va(e,t.position)}function Iw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Va(e,t.position)}function Tw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=jf,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:xv(e,t.name,!0),s=Mw(e,t),o=Df(e,t);return wv(e,s,n,t),Ff(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function jw(e,t,r){const i={};return Ff(i,Df(e,t)),e.create(t,e.Fragment,i,r)}function Rw(e,t){return t.value}function wv(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Ff(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Nw(e,t,r){return i;function i(a,n,s,o){const u=Array.isArray(s.children)?r:t;return o?u(n,s,o):u(n,s)}}function Fw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=Rf(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 Dw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&Nf.call(t.properties,a)){const n=Lw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Aw.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 Mw(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 Va(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 Va(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function Df(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Sw;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 u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=kv(e,n,s);o!==void 0&&r.push(o)}return r}function Lw(e,t,r){const i=fw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Q0(r):hw(r)),i.property==="style"){let a=typeof r=="object"?r:qw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=zw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?lw[i.property]||i.property:i.attribute,r]}}function qw(e,t){try{return ww(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new zt("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=bv+"#cannot-parse-style-attribute",a}}function xv(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=hm(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=hm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Nf.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Va(e)}function Va(e,t){const r=new zt("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=bv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function zw(e){const t={};let r;for(r in e)Nf.call(e,r)&&(t[$w(r)]=e[r]);return t}function $w(e){let t=e.replace(Cw,Uw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Uw(e){return"-"+e.toLowerCase()}const nu={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"]},Bw={};function Mf(e,t){const r=Bw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Sv(e,i,a)}function Sv(e,t,r){if(Vw(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 Em(e.children,t,r)}return Array.isArray(e)?Em(e,t,r):""}function Em(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Sv(e[a],t,r);return i.join("")}function Vw(e){return!!(e&&typeof e=="object")}const Am=document.createElement("i");function Lf(e){const t="&"+e+";";Am.innerHTML=t;const r=Am.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(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 ur(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Om={}.hasOwnProperty;function Cv(e){const t={};let r=-1;for(;++r<e.length;)Hw(t,e[r]);return t}function Hw(e,t){let r;for(r in t){const a=(Om.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Om.call(a,s)||(a[s]=[]);const o=n[s];Kw(a[s],Array.isArray(o)?o:o?[o]:[])}}}function Kw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ar(e,0,0,i)}function Ev(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 Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=zn(/[A-Za-z]/),Lt=zn(/[\dA-Za-z]/),Ww=zn(/[#-'*+\--9=?A-Z^-~]/);function Bo(e){return e!==null&&(e<32||e===127)}const qc=zn(/\d/),Gw=zn(/[\dA-Fa-f]/),Jw=zn(/[!-/:-@[-`{-~]/);function he(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 fl=zn(new RegExp("\\p{P}|\\p{S}","u")),oi=zn(/\s/);function zn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ia(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Lt(e.charCodeAt(r+1))&&Lt(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 Yw={tokenize:Xw};function Xw(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 he(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const Zw={tokenize:Qw},_m={tokenize:ex};function Qw(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const C=r[i];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const C=t.events.length;let h=C,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 S=C;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return ar(t.events,h+1,0,t.events.slice(C)),t.events.length=S,u(w)}return o(w)}function u(w){if(i===r.length){if(!a)return m(w);if(a.currentConstruct&&a.currentConstruct.concrete)return p(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_m,c,f)(w)}function c(w){return a&&b(),g(i),m(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(_m,d,p)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),m(w)}function p(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 he(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,C){const h=t.sliceStream(w);if(C&&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<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let A=S,_,x;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(_){x=t.events[A][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...x},y++;ar(t.events,A+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let C=r.length;for(;C-- >w;){const h=r[C];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 ex(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 Ji(e){if(e===null||dt(e)||oi(e))return 1;if(fl(e))return 2}function dl(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 zc={name:"attention",resolveAll:tx,tokenize:rx};function tx(e,t){let r=-1,i,a,n,s,o,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},m={...e[r][1].start};Pm(f,-l),Pm(m,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:m},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},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ur(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ur(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=ur(u,dl(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=ur(u,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ur(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ar(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 rx(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ji(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 u=e.exit("attentionSequence"),c=Ji(l),f=!c||c===2&&a||r.includes(l),m=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!m)),u._close=!!(n===42?m:m&&(c||!f)),t(l)}}function Pm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nx={name:"autolink",tokenize:ix};function ix(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 Bt(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||Lt(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||Lt(d))&&i++<32?(e.consume(d),o):(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||Bo(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Ww(d)?(e.consume(d),u):r(d)}function c(d){return Lt(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):m(d)}function m(d){if((d===45||Lt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const is={partial:!0,tokenize:ax};function ax(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||he(n)?t(n):r(n)}}const Av={continuation:{tokenize:ox},exit:lx,name:"blockQuote",tokenize:sx};function sx(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 ox(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(Av,t,r)(s)}}function lx(e){e.exit("blockQuote")}const Ov={name:"characterEscape",tokenize:ux};function ux(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 Jw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const _v={name:"characterReference",tokenize:cx};function cx(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"),u):(e.enter("characterReferenceValue"),n=31,s=Lt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=Gw,c):(e.enter("characterReferenceValue"),n=7,s=qc,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===Lt&&!Lf(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),c):r(f)}}const Im={partial:!0,tokenize:dx},Tm={concrete:!0,name:"codeFenced",tokenize:fx};function fx(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,s=0,o;return l;function l(y){return u(y)}function u(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"),c(y)}function c(y){return y===o?(s++,e.consume(y),c):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||he(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Im,k,C)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||he(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),m)}function d(y){return y===null||he(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),p)}function k(y){return e.attempt(a,C,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||he(y)?e.check(Im,k,C)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||he(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function C(y){return e.exit("codeFenced"),t(y)}function h(y,S,A){let _=0;return x;function x(F){return y.enter("lineEnding"),y.consume(F),y.exit("lineEnding"),E}function E(F){return y.enter("codeFencedFence"),Me(F)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):O(F)}function O(F){return F===o?(y.enter("codeFencedFenceSequence"),j(F)):A(F)}function j(F){return F===o?(_++,y.consume(F),j):_>=s?(y.exit("codeFencedFenceSequence"),Me(F)?Be(y,T,"whitespace")(F):T(F)):A(F)}function T(F){return F===null||he(F)?(y.exit("codeFencedFence"),S(F)):A(F)}}}function dx(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 iu={name:"codeIndented",tokenize:px},mx={partial:!0,tokenize:hx};function px(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?s(u):r(u)}function s(u){return u===null?l(u):he(u)?e.attempt(mx,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function hx(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):he(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):he(s)?a(s):r(s)}}const gx={name:"codeText",previous:vx,resolve:yx,tokenize:bx};function yx(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 vx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bx(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,c(f)):he(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||he(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 kx{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&&ba(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),ba(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ba(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);ba(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ba(this.left,r.reverse())}}}function ba(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 Pv(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new kx(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,wx(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=c.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.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={...c.get(a)[1].start},o=c.slice(a,r),o.unshift(i),c.splice(a,r-a+1,o))}}return ar(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function wx(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=[],u={};let c,f,m=-1,d=r,p=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&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const g=o.slice(v[m],v[m+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),m=-1;++m<l.length;)u[p+l[m][0]]=p+l[m][1],p+=l[m][1]-l[m][0]-1;return u}const xx={resolve:Cx,tokenize:Ex},Sx={partial:!0,tokenize:Ax};function Cx(e){return Pv(e),e}function Ex(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):he(o)?e.check(Sx,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 Ax(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||he(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 Iv(e,t,r,i,a,n,s,o,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),m):g===null||g===32||g===41||Bo(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(g))}function m(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),m(g)):g===null||g===60||he(g)?r(g):(e.consume(g),g===92?p:d)}function p(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(o),e.exit(s),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||Bo(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 Tv(e,t,r,i,a,n){const s=this;let o=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 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):he(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||he(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function jv(e,t,r,i,a,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===s?(e.exit(n),l(s)):m===null?r(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}function Ma(e,t){let r;return i;function i(a){return he(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 Ox={name:"definition",tokenize:Px},_x={partial:!0,tokenize:Ix};function Px(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return Tv.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=Ar(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)?Ma(e,u)(d):u(d)}function u(d){return Iv(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(_x,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||he(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function Ix(e,t,r){return i;function i(o){return dt(o)?Ma(e,a)(o):r(o)}function a(o){return jv(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||he(o)?t(o):r(o)}}const Tx={name:"hardBreakEscape",tokenize:jx};function jx(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return he(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Rx={name:"headingAtx",resolve:Nx,tokenize:Fx};function Nx(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"},ar(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function Fx(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||dt(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const Dx=["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"],jm=["pre","script","style","textarea"],Mx={concrete:!0,name:"htmlFlow",resolveTo:zx,tokenize:$x},Lx={partial:!0,tokenize:Bx},qx={partial:!0,tokenize:Ux};function zx(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 $x(e,t,r){const i=this;let a,n,s,o,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),m):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function m(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,o=0,p):Bt(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 p(I){const R="CDATA[";return I===R.charCodeAt(o++)?(e.consume(I),o===R.length?i.interrupt?t:O:p):r(I)}function k(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const R=I===47,M=s.toLowerCase();return!R&&!n&&jm.includes(M)?(a=1,i.interrupt?t(I):O(I)):Dx.includes(s.toLowerCase())?(a=6,R?(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||Lt(I)?(e.consume(I),s+=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):x(I)}function w(I){return I===47?(e.consume(I),x):I===58||I===95||Bt(I)?(e.consume(I),C):Me(I)?(e.consume(I),w):x(I)}function C(I){return I===45||I===46||I===58||I===95||Lt(I)?(e.consume(I),C):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,S):Me(I)?(e.consume(I),y):A(I)}function S(I){return I===l?(e.consume(I),l=null,_):I===null||he(I)?r(I):(e.consume(I),S)}function A(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),A)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function x(I){return I===62?(e.consume(I),E):r(I)}function E(I){return I===null||he(I)?O(I):Me(I)?(e.consume(I),E):r(I)}function O(I){return I===45&&a===2?(e.consume(I),L):I===60&&a===1?(e.consume(I),J):I===62&&a===4?(e.consume(I),D):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),Q):he(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Lx,B,j)(I)):I===null||he(I)?(e.exit("htmlFlowData"),j(I)):(e.consume(I),O)}function j(I){return e.check(qx,T,B)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),F}function F(I){return I===null||he(I)?j(I):(e.enter("htmlFlowData"),O(I))}function L(I){return I===45?(e.consume(I),P):O(I)}function J(I){return I===47?(e.consume(I),s="",Y):O(I)}function Y(I){if(I===62){const R=s.toLowerCase();return jm.includes(R)?(e.consume(I),D):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function Q(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),D):I===45&&a===2?(e.consume(I),P):O(I)}function D(I){return I===null||he(I)?(e.exit("htmlFlowData"),B(I)):(e.consume(I),D)}function B(I){return e.exit("htmlFlow"),t(I)}}function Ux(e,t,r){const i=this;return a;function a(s){return he(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 Bx(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(is,t,r)}}const Vx={name:"htmlText",tokenize:Hx};function Hx(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),u):P===47?(e.consume(P),h):P===63?(e.consume(P),w):Bt(P)?(e.consume(P),A):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Bt(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),m):he(P)?(s=f,J(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?L(P):P===45?m(P):f(P)}function p(P){const D="CDATA[";return P===D.charCodeAt(n++)?(e.consume(P),n===D.length?k:p):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):he(P)?(s=k,J(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?L(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?L(P):he(P)?(s=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),C):he(P)?(s=w,J(P)):(e.consume(P),w)}function C(P){return P===62?L(P):w(P)}function h(P){return Bt(P)?(e.consume(P),y):r(P)}function y(P){return P===45||Lt(P)?(e.consume(P),y):S(P)}function S(P){return he(P)?(s=S,J(P)):Me(P)?(e.consume(P),S):L(P)}function A(P){return P===45||Lt(P)?(e.consume(P),A):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),L):P===58||P===95||Bt(P)?(e.consume(P),x):he(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):L(P)}function x(P){return P===45||P===46||P===58||P===95||Lt(P)?(e.consume(P),x):E(P)}function E(P){return P===61?(e.consume(P),O):he(P)?(s=E,J(P)):Me(P)?(e.consume(P),E):_(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,j):he(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function j(P){return P===a?(e.consume(P),a=void 0,F):P===null?r(P):he(P)?(s=j,J(P)):(e.consume(P),j)}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 F(P){return P===47||P===62||dt(P)?_(P):r(P)}function L(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function J(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return Me(P)?Be(e,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):Q(P)}function Q(P){return e.enter("htmlTextData"),s(P)}}const qf={name:"labelEnd",resolveAll:Jx,resolveTo:Yx,tokenize:Xx},Kx={tokenize:Zx},Wx={tokenize:Qx},Gx={tokenize:eS};function Jx(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&&ar(e,0,e.length,r),e}function Yx(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}},u={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ur(o,e.slice(n+1,n+i+3)),o=ur(o,[["enter",c,t]]),o=ur(o,dl(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=ur(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=ur(o,e.slice(s+1)),o=ur(o,[["exit",l,t]]),ar(e,n,e.length,o),e}function Xx(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(m){return n?n._inactive?f(m):(s=i.parser.defined.includes(Ar(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):r(m)}function l(m){return m===40?e.attempt(Kx,c,s?c:f)(m):m===91?e.attempt(Wx,c,s?u:f)(m):s?c(m):f(m)}function u(m){return e.attempt(Gx,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function Zx(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)?Ma(e,n)(f):n(f)}function n(f){return f===41?c(f):Iv(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Ma(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?jv(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ma(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 Qx(e,t,r){const i=this;return a;function a(o){return Tv.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function eS(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 tS={name:"labelStartImage",resolveAll:qf.resolveAll,tokenize:rS};function rS(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 nS={name:"labelStartLink",resolveAll:qf.resolveAll,tokenize:iS};function iS(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 au={name:"lineEnding",tokenize:aS};function aS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const To={name:"thematicBreak",tokenize:sS};function sS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(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,o,"whitespace")(u):o(u))}}const Yt={continuation:{tokenize:cS},exit:dS,name:"list",tokenize:uS},oS={partial:!0,tokenize:mS},lS={partial:!0,tokenize:fS};function uS(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 p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:qc(d)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(To,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 qc(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"),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(is,i.interrupt?r:c,e.attempt(oS,m,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function cS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(is,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(lS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Yt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function fS(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 dS(e){e.exit(this.containerState.type)}function mS(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 Rm={name:"setextUnderline",resolveTo:pS,tokenize:hS};function pS(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 hS(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,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const gS={tokenize:yS};function yS(e){const t=this,r=e.attempt(is,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(xx,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 vS={resolveAll:Nv()},bS=Rv("string"),kS=Rv("text");function Rv(e){return{resolveAll:Nv(e==="text"?wS: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(c){return u(c)?n(c):o(c)}function o(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 m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function Nv(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 wS(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 u=a[n];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={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={...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 xS={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Av},SS={91:Ox},CS={[-2]:iu,[-1]:iu,32:iu},ES={35:Rx,42:To,45:[Rm,To],60:Mx,61:Rm,95:To,96:Tm,126:Tm},AS={38:_v,92:Ov},OS={[-5]:au,[-4]:au,[-3]:au,33:tS,38:_v,42:zc,60:[nx,Vx],91:nS,92:[Tx,Ov],93:qf,95:zc,96:gx},_S={null:[zc,vS]},PS={null:[42,95]},IS={null:[]},TS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:PS,contentInitial:SS,disable:IS,document:xS,flow:ES,flowInitial:CS,insideSpan:_S,string:AS,text:OS},Symbol.toStringTag,{value:"Module"}));function jS(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(h),check:S(y),consume:b,enter:w,exit:C,interrupt:S(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:p,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(E){return s=ur(s,E),v(),s[s.length-1]!==null?[]:(A(t,0),u.events=dl(n,u.events,u),u.events)}function m(E,O){return NS(d(E),O)}function d(E){return RS(s,E)}function p(){const{_bufferIndex:E,_index:O,line:j,column:T,offset:F}=i;return{_bufferIndex:E,_index:O,line:j,column:T,offset:F}}function k(E){a[E.line]=E.column,x()}function v(){let E;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(E){c=c(E)}function b(E){he(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=E}function w(E,O){const j=O||{};return j.type=E,j.start=p(),u.events.push(["enter",j,u]),o.push(j),j}function C(E){const O=o.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(E,O){A(E,O.from)}function y(E,O){O.restore()}function S(E,O){return j;function j(T,F,L){let J,Y,Q,P;return Array.isArray(T)?B(T):"tokenize"in T?B([T]):D(T);function D(U){return $;function $(H){const G=H!==null&&U[H],X=H!==null&&U.null,z=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(X)?X:X?[X]:[]];return B(z)(H)}}function B(U){return J=U,Y=0,U.length===0?L:I(U[Y])}function I(U){return $;function $(H){return P=_(),Q=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?M():U.tokenize.call(O?Object.assign(Object.create(u),O):u,l,R,M)(H)}}function R(U){return E(Q,P),F}function M(U){return P.restore(),++Y<J.length?I(J[Y]):L}}}function A(E,O){E.resolveAll&&!n.includes(E)&&n.push(E),E.resolve&&ar(u.events,O,u.events.length-O,E.resolve(u.events.slice(O),u)),E.resolveTo&&(u.events=E.resolveTo(u.events,u))}function _(){const E=p(),O=u.previous,j=u.currentConstruct,T=u.events.length,F=Array.from(o);return{from:T,restore:L};function L(){i=E,u.previous=O,u.currentConstruct=j,u.events.length=T,o=F,x()}}function x(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function RS(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 NS(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=`
19
+ */var Jl,sm;function F0(){if(sm)return Jl;sm=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(c){return s[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 Jl=a()?Object.assign:function(n,s){for(var o,l=i(n),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){u=e(o);for(var m=0;m<u.length;m++)r.call(o,u[m])&&(l[u[m]]=o[u[m]])}}return l},Jl}var Yl,om;function If(){if(om)return Yl;om=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yl=e,Yl}var Xl,lm;function lv(){return lm||(lm=1,Xl=Function.call.bind(Object.prototype.hasOwnProperty)),Xl}var Zl,um;function D0(){if(um)return Zl;um=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=If(),r={},i=lv();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,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 m=Error((l||"React class")+": "+o+" 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 m.name="Invariant Violation",m}f=n[c](s,c,l,o,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Zl=a,Zl}var Ql,cm;function M0(){if(cm)return Ql;cm=1;var e=ov(),t=F0(),r=If(),i=lv(),a=D0(),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 Ql=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var F=P&&(u&&P[u]||P[c]);if(typeof F=="function")return F}var m="<<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:C(),elementType:h(),instanceOf:y,node:x(),objectOf:A,oneOf:S,oneOfType:_,shape:O,exact:R};function p(P,F){return P===F?P!==0||1/P===1/F:P!==P&&F!==F}function k(P,F){this.message=P,this.data=F&&typeof F=="object"?F:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var F={},B=0;function I(M,U,$,H,G,Z,z){if(H=H||m,Z=Z||$,z!==r){if(l){var q=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 q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+$;!F[W]&&B<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+H+"`. 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."),F[W]=!0,B++)}}return U[$]==null?M?U[$]===null?new k("The "+G+" `"+Z+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+G+" `"+Z+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(U,$,H,G,Z)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function g(P){function F(B,I,N,M,U,$){var H=B[I],G=L(H);if(G!==P){var Z=J(H);return new k("Invalid "+M+" `"+U+"` of type "+("`"+Z+"` supplied to `"+N+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(F)}function b(){return v(s)}function w(P){function F(B,I,N,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var $=B[I];if(!Array.isArray($)){var H=L($);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an array."))}for(var G=0;G<$.length;G++){var Z=P($,G,N,M,U+"["+G+"]",r);if(Z instanceof Error)return Z}return null}return v(F)}function C(){function P(F,B,I,N,M){var U=F[B];if(!o(U)){var $=L(U);return new k("Invalid "+N+" `"+M+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(F,B,I,N,M){var U=F[B];if(!e.isValidElementType(U)){var $=L(U);return new k("Invalid "+N+" `"+M+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function F(B,I,N,M,U){if(!(B[I]instanceof P)){var $=P.name||m,H=X(B[I]);return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("instance of `"+$+"`."))}return null}return v(F)}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 F(B,I,N,M,U){for(var $=B[I],H=0;H<P.length;H++)if(p($,P[H]))return null;var G=JSON.stringify(P,function(z,q){var W=J(q);return W==="symbol"?String(q):q});return new k("Invalid "+M+" `"+U+"` of value `"+String($)+"` "+("supplied to `"+N+"`, expected one of "+G+"."))}return v(F)}function A(P){function F(B,I,N,M,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an object."));for(var G in $)if(i($,G)){var Z=P($,G,N,M,U+"."+G,r);if(Z instanceof Error)return Z}return null}return v(F)}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 F=0;F<P.length;F++){var B=P[F];if(typeof B!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(B)+" at index "+F+"."),s}function I(N,M,U,$,H){for(var G=[],Z=0;Z<P.length;Z++){var z=P[Z],q=z(N,M,U,$,H,r);if(q==null)return null;q.data&&i(q.data,"expectedType")&&G.push(q.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new k("Invalid "+$+" `"+H+"` supplied to "+("`"+U+"`"+W+"."))}return v(I)}function x(){function P(F,B,I,N,M){return T(F[B])?null:new k("Invalid "+N+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function E(P,F,B,I,N){return new k((P||"React class")+": "+F+" type `"+B+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function O(P){function F(B,I,N,M,U){var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));for(var G in P){var Z=P[G];if(typeof Z!="function")return E(N,M,U,G,J(Z));var z=Z($,G,N,M,U+"."+G,r);if(z)return z}return null}return v(F)}function R(P){function F(B,I,N,M,U){var $=B[I],H=L($);if(H!=="object")return new k("Invalid "+M+" `"+U+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));var G=t({},B[I],P);for(var Z in G){var z=P[Z];if(i(P,Z)&&typeof z!="function")return E(N,M,U,Z,J(z));if(!z)return new k("Invalid "+M+" `"+U+"` key `"+Z+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(B[I],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=z($,Z,N,M,U+"."+Z,r);if(q)return q}return null}return v(F)}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||o(P))return!0;var F=f(P);if(F){var B=F.call(P),I;if(F!==P.entries){for(;!(I=B.next()).done;)if(!T(I.value))return!1}else for(;!(I=B.next()).done;){var N=I.value;if(N&&!T(N[1]))return!1}}else return!1;return!0;default:return!1}}function D(P,F){return P==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function L(P){var F=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":D(F,P)?"symbol":F}function J(P){if(typeof P>"u"||P===null)return""+P;var F=L(P);if(F==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return F}function Y(P){var F=J(P);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function X(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Ql}var eu,fm;function L0(){if(fm)return eu;fm=1;var e=If();function t(){}function r(){}return r.resetWarningCache=t,eu=function(){function i(s,o,l,u,c,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}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 dm;function q0(){if(dm)return _s.exports;if(dm=1,process.env.NODE_ENV!=="production"){var e=ov(),t=!0;_s.exports=M0()(e.isElement,t)}else _s.exports=L0()();return _s.exports}var z0=q0();const Ce=Wr(z0);function $0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function U0(e,t){e.classList?e.classList.add(t):$0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function B0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mm(e.className,t):e.setAttribute("class",mm(e.className&&e.className.baseVal||"",t))}const pm={disabled:!1};var V0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.number,Ce.shape({enter:Ce.number,exit:Ce.number,appear:Ce.number}).isRequired]):null,H0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.string,Ce.shape({enter:Ce.string,exit:Ce.string,active:Ce.string}),Ce.shape({enter:Ce.string,enterDone:Ce.string,enterActive:Ce.string,exit:Ce.string,exitDone:Ce.string,exitActive:Ce.string})]):null;const uv=V.createContext(null);var cv=function(t){return t.scrollTop},Pa="unmounted",ti="exited",ri="entering",Fi="entered",Fc="exiting",Gr=(function(e){sv(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=ti,n.appearStatus=ri):l=Fi:i.unmountOnExit||i.mountOnEnter?l=Pa:l=ti,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===Pa?{status:ti}: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!==ri&&s!==Fi&&(n=ri):(s===ri||s===Fi)&&(n=Fc)}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===ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this);s&&cv(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:Pa})},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],u=l[0],c=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||pm.disabled){this.safeSetState({status:Fi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ri},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Fi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Os.findDOMNode(this);if(!n||pm.disabled){this.safeSetState({status:ti},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Fc},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ti},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],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===Pa)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=av(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(uv.Provider,{value:null},typeof s=="function"?s(a,o):V.cloneElement(V.Children.only(s),o))},t})(V.Component);Gr.contextType=uv;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ce.shape({current:typeof Element>"u"?Ce.any:function(e,t,r,i,a,n){var s=e[t];return Ce.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ce.oneOfType([Ce.func.isRequired,Ce.element.isRequired]).isRequired,in:Ce.bool,mountOnEnter:Ce.bool,unmountOnExit:Ce.bool,appear:Ce.bool,enter:Ce.bool,exit:Ce.bool,timeout:function(t){var r=V0;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:Ce.func,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}:{};function _i(){}Gr.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};Gr.UNMOUNTED=Pa;Gr.EXITED=ti;Gr.ENTERING=ri;Gr.ENTERED=Fi;Gr.EXITING=Fc;var K0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return U0(t,i)})},tu=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return B0(t,i)})},Tf=(function(e){sv(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 u=i.resolveArguments(o,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.removeClasses(c,m),i.addClass(c,m,"done"),i.props.onEntered&&i.props.onEntered(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"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,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+o:l[o],m=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,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"),u=l.doneClassName;n==="appear"&&s==="done"&&u&&(o+=" "+u),s==="active"&&a&&cv(a),o&&(this.appliedClasses[n][s]=o,K0(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,u=s.done;this.appliedClasses[n]={},o&&tu(a,o),l&&tu(a,l),u&&tu(a,u)},r.render=function(){var a=this.props;a.classNames;var n=av(a,["classNames"]);return V.createElement(Gr,Uo({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);Tf.defaultProps={classNames:""};Tf.propTypes=process.env.NODE_ENV!=="production"?Uo({},Gr.propTypes,{classNames:H0,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}):{};const W0=Tf,hm=({active:e,children:t,content:r,disabled:i})=>{const a=V.useRef(null);return i?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(W0,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},G0=["first","second"],fv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),G0.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});fv.displayName="FormSkeleton";const Io=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},J0=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},Y0=(e,t)=>{Io("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},X0="The form has been successfully submitted",gm="There has been an error submitting the form",Z0=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 gm}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:gm},Q0="The form couldn't be loaded",ew=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Q0},dv=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]=dv(e[t]);break}return e},tw=e=>{let t={};return e.fields&&(t={...dv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function rw(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const nw=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aw={};function ym(e,t){return(aw.jsx?iw:nw).test(e)}const sw=/[ \t\n\f\r]/g;function ow(e){return typeof e=="object"?e.type==="text"?vm(e.value):!1:vm(e)}function vm(e){return e.replace(sw,"")===""}class ns{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ns.prototype.normal={};ns.prototype.property={};ns.prototype.space=void 0;function mv(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ns(r,i,t)}function Dc(e){return e.toLowerCase()}class Zt{constructor(t,r){this.attribute=r,this.property=t}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let lw=0;const Se=vi(),Ot=vi(),Mc=vi(),oe=vi(),ft=vi(),ai=vi(),tr=vi();function vi(){return 2**++lw}const Lc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ot,commaOrSpaceSeparated:tr,commaSeparated:ai,number:oe,overloadedBoolean:Mc,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),ru=Object.keys(Lc);class jf extends Zt{constructor(t,r,i,a){let n=-1;if(super(t,r),bm(this,"space",a),typeof i=="number")for(;++n<ru.length;){const s=ru[n];bm(this,ru[n],(i&Lc[s])===Lc[s])}}}jf.prototype.defined=!0;function bm(e,t,r){r&&(e[t]=r)}function na(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new jf(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Dc(i)]=i,r[Dc(n.attribute)]=i}return new ns(t,r,e.space)}const pv=na({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,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:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hv(e,t){return t in e?e[t]:t}function gv(e,t){return hv(e,t.toLowerCase())}const uw=na({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ai,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:ft,autoFocus:Se,autoPlay:Se,blocking:ft,capture:null,charSet:null,checked:Se,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Se,controlsList:ft,coords:oe|ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Mc,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:ft,height:oe,hidden:Mc,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:ft,itemRef:ft,itemScope:Se,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:ft,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:ai,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:gv}),cw=na({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tr,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:ai,g2:ai,glyphName:ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hv}),yv=na({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()}}),vv=na({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gv}),bv=na({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),fw={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"},dw=/[A-Z]/g,km=/-[a-z]/g,mw=/^data[-\w.:]+$/i;function pw(e,t){const r=Dc(t);let i=t,a=Zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&mw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(km,gw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!km.test(n)){let s=n.replace(dw,hw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=jf}return new a(i,t)}function hw(e){return"-"+e.toLowerCase()}function gw(e){return e.charAt(1).toUpperCase()}const yw=mv([pv,uw,yv,vv,bv],"html"),Rf=mv([pv,cw,yv,vv,bv],"svg");function vw(e){return e.join(" ").trim()}var Pi={},nu,wm;function bw(){if(wm)return nu;wm=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
+ `,u="/",c="*",f="",m="comment",d="declaration";function p(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 C(T){var D=T.match(t);D&&(b+=D.length);var L=T.lastIndexOf(l);w=~L?T.length-L:w+T.length}function h(){var T={line:b,column:w};return function(D){return D.position=new y(T),_(),D}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function S(T){var D=new Error(g.source+":"+b+":"+w+": "+T);if(D.reason=T,D.filename=g.source,D.line=b,D.column=w,D.source=v,!g.silent)throw D}function A(T){var D=T.exec(v);if(D){var L=D[0];return C(L),v=v.slice(L.length),D}}function _(){A(r)}function x(T){var D;for(T=T||[];D=E();)D!==!1&&T.push(D);return T}function E(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var D=2;f!=v.charAt(D)&&(c!=v.charAt(D)||u!=v.charAt(D+1));)++D;if(D+=2,f===v.charAt(D-1))return S("End of comment missing");var L=v.slice(2,D-2);return w+=2,C(L),v=v.slice(D),w+=2,T({type:m,comment:L})}}function O(){var T=h(),D=A(i);if(D){if(E(),!A(a))return S("property missing ':'");var L=A(n),J=T({type:d,property:k(D[0].replace(e,f)),value:L?k(L[0].replace(e,f)):f});return A(s),J}}function R(){var T=[];x(T);for(var D;D=O();)D!==!1&&(T.push(D),x(T));return T}return _(),R()}function k(v){return v?v.replace(o,f):f}return nu=p,nu}var xm;function kw(){if(xm)return Pi;xm=1;var e=Pi&&Pi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=r;const t=e(bw());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:u,value:c}=l;o?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Pi}var ya={},Sm;function ww(){if(Sm)return ya;Sm=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.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)},s=function(u,c){return c.toUpperCase()},o=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,o):u=u.replace(i,o),u.replace(t,s))};return ya.camelCase=l,ya}var va,Cm;function xw(){if(Cm)return va;Cm=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(kw()),r=ww();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,va=i,va}var Sw=xw();const Cw=Wr(Sw),kv=wv("end"),Nf=wv("start");function wv(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 Ew(e){const t=Nf(e),r=kv(e);if(t&&r)return{start:t,end:r}}function Da(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Em(e.position):"start"in e||"end"in e?Em(e):"line"in e||"column"in e?qc(e):""}function qc(e){return Am(e&&e.line)+":"+Am(e&&e.column)}function Em(e){return qc(e&&e.start)+"-"+qc(e&&e.end)}function Am(e){return e&&typeof e=="number"?e:1}class zt 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=Da(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}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Ff={}.hasOwnProperty,Aw=new Map,Ow=/[A-Z]/g,_w=new Set(["table","tbody","thead","tfoot","tr"]),Pw=new Set(["td","th"]),xv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Iw(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=Lw(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=Mw(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"?Rf:yw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=Sv(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function Sv(e,t,r){if(t.type==="element")return Tw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return jw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Nw(e,t,r);if(t.type==="mdxjsEsm")return Rw(e,t);if(t.type==="root")return Fw(e,t,r);if(t.type==="text")return Dw(e,t)}function Tw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=Rf,e.schema=a),e.ancestors.push(t);const n=Ev(e,t.tagName,!1),s=qw(e,t);let o=Mf(e,t);return _w.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!ow(l):!0})),Cv(e,s,n,t),Df(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function jw(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)}Va(e,t.position)}function Rw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Va(e,t.position)}function Nw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=Rf,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:Ev(e,t.name,!0),s=zw(e,t),o=Mf(e,t);return Cv(e,s,n,t),Df(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Fw(e,t,r){const i={};return Df(i,Mf(e,t)),e.create(t,e.Fragment,i,r)}function Dw(e,t){return t.value}function Cv(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Df(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Mw(e,t,r){return i;function i(a,n,s,o){const u=Array.isArray(s.children)?r:t;return o?u(n,s,o):u(n,s)}}function Lw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=Nf(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 qw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&Ff.call(t.properties,a)){const n=$w(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Pw.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 zw(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 Va(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 Va(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function Mf(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Aw;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 u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=Sv(e,n,s);o!==void 0&&r.push(o)}return r}function $w(e,t,r){const i=pw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?rw(r):vw(r)),i.property==="style"){let a=typeof r=="object"?r:Uw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=Bw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?fw[i.property]||i.property:i.attribute,r]}}function Uw(e,t){try{return Cw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new zt("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=xv+"#cannot-parse-style-attribute",a}}function Ev(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=ym(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=ym(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Ff.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Va(e)}function Va(e,t){const r=new zt("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=xv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Bw(e){const t={};let r;for(r in e)Ff.call(e,r)&&(t[Vw(r)]=e[r]);return t}function Vw(e){let t=e.replace(Ow,Hw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Hw(e){return"-"+e.toLowerCase()}const iu={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"]},Kw={};function Lf(e,t){const r=Kw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Av(e,i,a)}function Av(e,t,r){if(Ww(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 Om(e.children,t,r)}return Array.isArray(e)?Om(e,t,r):""}function Om(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Av(e[a],t,r);return i.join("")}function Ww(e){return!!(e&&typeof e=="object")}const _m=document.createElement("i");function qf(e){const t="&"+e+";";_m.innerHTML=t;const r=_m.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(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 ur(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Pm={}.hasOwnProperty;function Ov(e){const t={};let r=-1;for(;++r<e.length;)Gw(t,e[r]);return t}function Gw(e,t){let r;for(r in t){const a=(Pm.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Pm.call(a,s)||(a[s]=[]);const o=n[s];Jw(a[s],Array.isArray(o)?o:o?[o]:[])}}}function Jw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ar(e,0,0,i)}function _v(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 Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=zn(/[A-Za-z]/),Lt=zn(/[\dA-Za-z]/),Yw=zn(/[#-'*+\--9=?A-Z^-~]/);function Bo(e){return e!==null&&(e<32||e===127)}const zc=zn(/\d/),Xw=zn(/[\dA-Fa-f]/),Zw=zn(/[!-/:-@[-`{-~]/);function he(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 dl=zn(new RegExp("\\p{P}|\\p{S}","u")),oi=zn(/\s/);function zn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ia(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Lt(e.charCodeAt(r+1))&&Lt(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 Qw={tokenize:ex};function ex(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 he(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const tx={tokenize:rx},Im={tokenize:nx};function rx(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const C=r[i];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const C=t.events.length;let h=C,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 S=C;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return ar(t.events,h+1,0,t.events.slice(C)),t.events.length=S,u(w)}return o(w)}function u(w){if(i===r.length){if(!a)return m(w);if(a.currentConstruct&&a.currentConstruct.concrete)return p(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Im,c,f)(w)}function c(w){return a&&b(),g(i),m(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(Im,d,p)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),m(w)}function p(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 he(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,C){const h=t.sliceStream(w);if(C&&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<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let A=S,_,x;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(_){x=t.events[A][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...x},y++;ar(t.events,A+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let C=r.length;for(;C-- >w;){const h=r[C];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 nx(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 Ji(e){if(e===null||dt(e)||oi(e))return 1;if(dl(e))return 2}function ml(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 $c={name:"attention",resolveAll:ix,tokenize:ax};function ix(e,t){let r=-1,i,a,n,s,o,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},m={...e[r][1].start};Tm(f,-l),Tm(m,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:m},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},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ur(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ur(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=ur(u,ml(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=ur(u,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ur(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ar(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 ax(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ji(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 u=e.exit("attentionSequence"),c=Ji(l),f=!c||c===2&&a||r.includes(l),m=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!m)),u._close=!!(n===42?m:m&&(c||!f)),t(l)}}function Tm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const sx={name:"autolink",tokenize:ox};function ox(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 Bt(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||Lt(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||Lt(d))&&i++<32?(e.consume(d),o):(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||Bo(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Yw(d)?(e.consume(d),u):r(d)}function c(d){return Lt(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):m(d)}function m(d){if((d===45||Lt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const is={partial:!0,tokenize:lx};function lx(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||he(n)?t(n):r(n)}}const Pv={continuation:{tokenize:cx},exit:fx,name:"blockQuote",tokenize:ux};function ux(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 cx(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(Pv,t,r)(s)}}function fx(e){e.exit("blockQuote")}const Iv={name:"characterEscape",tokenize:dx};function dx(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 Zw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Tv={name:"characterReference",tokenize:mx};function mx(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"),u):(e.enter("characterReferenceValue"),n=31,s=Lt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=Xw,c):(e.enter("characterReferenceValue"),n=7,s=zc,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===Lt&&!qf(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),c):r(f)}}const jm={partial:!0,tokenize:hx},Rm={concrete:!0,name:"codeFenced",tokenize:px};function px(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,s=0,o;return l;function l(y){return u(y)}function u(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"),c(y)}function c(y){return y===o?(s++,e.consume(y),c):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||he(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(jm,k,C)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||he(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),m)}function d(y){return y===null||he(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),p)}function k(y){return e.attempt(a,C,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||he(y)?e.check(jm,k,C)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||he(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function C(y){return e.exit("codeFenced"),t(y)}function h(y,S,A){let _=0;return x;function x(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),E}function E(D){return y.enter("codeFencedFence"),Me(D)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):O(D)}function O(D){return D===o?(y.enter("codeFencedFenceSequence"),R(D)):A(D)}function R(D){return D===o?(_++,y.consume(D),R):_>=s?(y.exit("codeFencedFenceSequence"),Me(D)?Be(y,T,"whitespace")(D):T(D)):A(D)}function T(D){return D===null||he(D)?(y.exit("codeFencedFence"),S(D)):A(D)}}}function hx(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 au={name:"codeIndented",tokenize:yx},gx={partial:!0,tokenize:vx};function yx(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?s(u):r(u)}function s(u){return u===null?l(u):he(u)?e.attempt(gx,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function vx(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):he(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):he(s)?a(s):r(s)}}const bx={name:"codeText",previous:wx,resolve:kx,tokenize:xx};function kx(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 wx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function xx(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,c(f)):he(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||he(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 Sx{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&&ba(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),ba(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ba(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);ba(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ba(this.left,r.reverse())}}}function ba(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 jv(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new Sx(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,Cx(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=c.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.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={...c.get(a)[1].start},o=c.slice(a,r),o.unshift(i),c.splice(a,r-a+1,o))}}return ar(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Cx(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=[],u={};let c,f,m=-1,d=r,p=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&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const g=o.slice(v[m],v[m+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),m=-1;++m<l.length;)u[p+l[m][0]]=p+l[m][1],p+=l[m][1]-l[m][0]-1;return u}const Ex={resolve:Ox,tokenize:_x},Ax={partial:!0,tokenize:Px};function Ox(e){return jv(e),e}function _x(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):he(o)?e.check(Ax,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 Px(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||he(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 Rv(e,t,r,i,a,n,s,o,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),m):g===null||g===32||g===41||Bo(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(g))}function m(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),m(g)):g===null||g===60||he(g)?r(g):(e.consume(g),g===92?p:d)}function p(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(o),e.exit(s),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||Bo(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 Nv(e,t,r,i,a,n){const s=this;let o=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 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):he(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||he(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function Fv(e,t,r,i,a,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===s?(e.exit(n),l(s)):m===null?r(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}function Ma(e,t){let r;return i;function i(a){return he(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 Ix={name:"definition",tokenize:jx},Tx={partial:!0,tokenize:Rx};function jx(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return Nv.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=Ar(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)?Ma(e,u)(d):u(d)}function u(d){return Rv(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(Tx,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||he(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function Rx(e,t,r){return i;function i(o){return dt(o)?Ma(e,a)(o):r(o)}function a(o){return Fv(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||he(o)?t(o):r(o)}}const Nx={name:"hardBreakEscape",tokenize:Fx};function Fx(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return he(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Dx={name:"headingAtx",resolve:Mx,tokenize:Lx};function Mx(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"},ar(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function Lx(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||dt(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const qx=["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"],Nm=["pre","script","style","textarea"],zx={concrete:!0,name:"htmlFlow",resolveTo:Bx,tokenize:Vx},$x={partial:!0,tokenize:Kx},Ux={partial:!0,tokenize:Hx};function Bx(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 Vx(e,t,r){const i=this;let a,n,s,o,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),m):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function m(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,o=0,p):Bt(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 p(I){const N="CDATA[";return I===N.charCodeAt(o++)?(e.consume(I),o===N.length?i.interrupt?t:O:p):r(I)}function k(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const N=I===47,M=s.toLowerCase();return!N&&!n&&Nm.includes(M)?(a=1,i.interrupt?t(I):O(I)):qx.includes(s.toLowerCase())?(a=6,N?(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||Lt(I)?(e.consume(I),s+=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):x(I)}function w(I){return I===47?(e.consume(I),x):I===58||I===95||Bt(I)?(e.consume(I),C):Me(I)?(e.consume(I),w):x(I)}function C(I){return I===45||I===46||I===58||I===95||Lt(I)?(e.consume(I),C):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,S):Me(I)?(e.consume(I),y):A(I)}function S(I){return I===l?(e.consume(I),l=null,_):I===null||he(I)?r(I):(e.consume(I),S)}function A(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),A)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function x(I){return I===62?(e.consume(I),E):r(I)}function E(I){return I===null||he(I)?O(I):Me(I)?(e.consume(I),E):r(I)}function O(I){return I===45&&a===2?(e.consume(I),L):I===60&&a===1?(e.consume(I),J):I===62&&a===4?(e.consume(I),F):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),X):he(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check($x,B,R)(I)):I===null||he(I)?(e.exit("htmlFlowData"),R(I)):(e.consume(I),O)}function R(I){return e.check(Ux,T,B)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),D}function D(I){return I===null||he(I)?R(I):(e.enter("htmlFlowData"),O(I))}function L(I){return I===45?(e.consume(I),P):O(I)}function J(I){return I===47?(e.consume(I),s="",Y):O(I)}function Y(I){if(I===62){const N=s.toLowerCase();return Nm.includes(N)?(e.consume(I),F):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function X(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),F):I===45&&a===2?(e.consume(I),P):O(I)}function F(I){return I===null||he(I)?(e.exit("htmlFlowData"),B(I)):(e.consume(I),F)}function B(I){return e.exit("htmlFlow"),t(I)}}function Hx(e,t,r){const i=this;return a;function a(s){return he(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 Kx(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(is,t,r)}}const Wx={name:"htmlText",tokenize:Gx};function Gx(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),u):P===47?(e.consume(P),h):P===63?(e.consume(P),w):Bt(P)?(e.consume(P),A):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Bt(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),m):he(P)?(s=f,J(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?L(P):P===45?m(P):f(P)}function p(P){const F="CDATA[";return P===F.charCodeAt(n++)?(e.consume(P),n===F.length?k:p):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):he(P)?(s=k,J(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?L(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?L(P):he(P)?(s=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),C):he(P)?(s=w,J(P)):(e.consume(P),w)}function C(P){return P===62?L(P):w(P)}function h(P){return Bt(P)?(e.consume(P),y):r(P)}function y(P){return P===45||Lt(P)?(e.consume(P),y):S(P)}function S(P){return he(P)?(s=S,J(P)):Me(P)?(e.consume(P),S):L(P)}function A(P){return P===45||Lt(P)?(e.consume(P),A):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),L):P===58||P===95||Bt(P)?(e.consume(P),x):he(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):L(P)}function x(P){return P===45||P===46||P===58||P===95||Lt(P)?(e.consume(P),x):E(P)}function E(P){return P===61?(e.consume(P),O):he(P)?(s=E,J(P)):Me(P)?(e.consume(P),E):_(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,R):he(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function R(P){return P===a?(e.consume(P),a=void 0,D):P===null?r(P):he(P)?(s=R,J(P)):(e.consume(P),R)}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 D(P){return P===47||P===62||dt(P)?_(P):r(P)}function L(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function J(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(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 zf={name:"labelEnd",resolveAll:Zx,resolveTo:Qx,tokenize:eS},Jx={tokenize:tS},Yx={tokenize:rS},Xx={tokenize:nS};function Zx(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&&ar(e,0,e.length,r),e}function Qx(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}},u={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ur(o,e.slice(n+1,n+i+3)),o=ur(o,[["enter",c,t]]),o=ur(o,ml(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=ur(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=ur(o,e.slice(s+1)),o=ur(o,[["exit",l,t]]),ar(e,n,e.length,o),e}function eS(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(m){return n?n._inactive?f(m):(s=i.parser.defined.includes(Ar(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):r(m)}function l(m){return m===40?e.attempt(Jx,c,s?c:f)(m):m===91?e.attempt(Yx,c,s?u:f)(m):s?c(m):f(m)}function u(m){return e.attempt(Xx,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function tS(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)?Ma(e,n)(f):n(f)}function n(f){return f===41?c(f):Rv(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Ma(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?Fv(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ma(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 rS(e,t,r){const i=this;return a;function a(o){return Nv.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function nS(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 iS={name:"labelStartImage",resolveAll:zf.resolveAll,tokenize:aS};function aS(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 sS={name:"labelStartLink",resolveAll:zf.resolveAll,tokenize:oS};function oS(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 su={name:"lineEnding",tokenize:lS};function lS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const To={name:"thematicBreak",tokenize:uS};function uS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(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,o,"whitespace")(u):o(u))}}const Yt={continuation:{tokenize:mS},exit:hS,name:"list",tokenize:dS},cS={partial:!0,tokenize:gS},fS={partial:!0,tokenize:pS};function dS(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 p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:zc(d)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(To,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 zc(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"),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(is,i.interrupt?r:c,e.attempt(cS,m,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function mS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(is,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(fS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Yt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function pS(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 hS(e){e.exit(this.containerState.type)}function gS(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 Fm={name:"setextUnderline",resolveTo:yS,tokenize:vS};function yS(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 vS(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,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const bS={tokenize:kS};function kS(e){const t=this,r=e.attempt(is,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Ex,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 wS={resolveAll:Mv()},xS=Dv("string"),SS=Dv("text");function Dv(e){return{resolveAll:Mv(e==="text"?CS: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(c){return u(c)?n(c):o(c)}function o(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 m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function Mv(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 CS(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 u=a[n];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={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={...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 ES={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Pv},AS={91:Ix},OS={[-2]:au,[-1]:au,32:au},_S={35:Dx,42:To,45:[Fm,To],60:zx,61:Fm,95:To,96:Rm,126:Rm},PS={38:Tv,92:Iv},IS={[-5]:su,[-4]:su,[-3]:su,33:iS,38:Tv,42:$c,60:[sx,Wx],91:sS,92:[Nx,Iv],93:zf,95:$c,96:bx},TS={null:[$c,wS]},jS={null:[42,95]},RS={null:[]},NS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:jS,contentInitial:AS,disable:RS,document:ES,flow:_S,flowInitial:OS,insideSpan:TS,string:PS,text:IS},Symbol.toStringTag,{value:"Module"}));function FS(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(h),check:S(y),consume:b,enter:w,exit:C,interrupt:S(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:p,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(E){return s=ur(s,E),v(),s[s.length-1]!==null?[]:(A(t,0),u.events=ml(n,u.events,u),u.events)}function m(E,O){return MS(d(E),O)}function d(E){return DS(s,E)}function p(){const{_bufferIndex:E,_index:O,line:R,column:T,offset:D}=i;return{_bufferIndex:E,_index:O,line:R,column:T,offset:D}}function k(E){a[E.line]=E.column,x()}function v(){let E;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(E){c=c(E)}function b(E){he(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=E}function w(E,O){const R=O||{};return R.type=E,R.start=p(),u.events.push(["enter",R,u]),o.push(R),R}function C(E){const O=o.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(E,O){A(E,O.from)}function y(E,O){O.restore()}function S(E,O){return R;function R(T,D,L){let J,Y,X,P;return Array.isArray(T)?B(T):"tokenize"in T?B([T]):F(T);function F(U){return $;function $(H){const G=H!==null&&U[H],Z=H!==null&&U.null,z=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return B(z)(H)}}function B(U){return J=U,Y=0,U.length===0?L:I(U[Y])}function I(U){return $;function $(H){return P=_(),X=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?M():U.tokenize.call(O?Object.assign(Object.create(u),O):u,l,N,M)(H)}}function N(U){return E(X,P),D}function M(U){return P.restore(),++Y<J.length?I(J[Y]):L}}}function A(E,O){E.resolveAll&&!n.includes(E)&&n.push(E),E.resolve&&ar(u.events,O,u.events.length-O,E.resolve(u.events.slice(O),u)),E.resolveTo&&(u.events=E.resolveTo(u.events,u))}function _(){const E=p(),O=u.previous,R=u.currentConstruct,T=u.events.length,D=Array.from(o);return{from:T,restore:L};function L(){i=E,u.previous=O,u.currentConstruct=R,u.events.length=T,o=D,x()}}function x(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function DS(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 MS(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
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 FS(e){const i={constructs:Cv([TS,...(e||{}).extensions||[]]),content:a(Yw),defined:[],document:a(Zw),flow:a(gS),lazy:{},string:a(bS),text:a(kS)};return i;function a(n){return s;function s(o){return jS(i,n,o)}}}function DS(e){for(;!Pv(e););return e}const Nm=/[\0\t\n\r]/g;function MS(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(Nm.lastIndex=f,u=Nm.exec(n),m=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(m),!u){t=n.slice(f);break}if(d===10&&f===m&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<m&&(l.push(n.slice(f,m)),e+=m-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=m+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const LS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qS(e){return e.replace(LS,zS)}function zS(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Ev(r.slice(n?2:1),n?16:10)}return Lf(r)||e}const Fv={}.hasOwnProperty;function $S(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),US(r)(DS(FS(r).document().write(MS()(e,t,!0))))}function US(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(we),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(X),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(z,s),codeText:n(q,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(W),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(K),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,s),htmlFlowData:_,htmlText:n(ue,s),htmlTextData:_,image:n(ge),label:s,link:n(we),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ve),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:U,characterReference:$,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:x,codeIndented:l(g),codeText:l(F),codeTextData:x,data:x,definition:l(),definitionDestinationString:C,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(j),htmlFlowData:x,htmlText:l(T),htmlTextData:x,image:l(J),label:Q,labelText:Y,lineEnding:E,link:l(L),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:R,resourceDestinationString:P,resourceTitleString:D,resource:B,setextHeading:l(A),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};Dv(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Z){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},pe=[];let ce=-1;for(;++ce<Z.length;)if(Z[ce][1].type==="listOrdered"||Z[ce][1].type==="listUnordered")if(Z[ce][0]==="enter")pe.push(ce);else{const ct=pe.pop();ce=a(Z,ct,ce)}for(ce=-1;++ce<Z.length;){const ct=t[Z[ce][0]];Fv.call(ct,Z[ce][1].type)&&ct[Z[ce][1].type].call(Object.assign({sliceSerialize:Z[ce][2].sliceSerialize},te),Z[ce][1])}if(te.tokenStack.length>0){const ct=te.tokenStack[te.tokenStack.length-1];(ct[1]||Fm).call(te,void 0,ct[0])}for(ee.position={start:pn(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:pn(Z.length>0?Z[Z.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(Z,ee,te){let pe=ee-1,ce=-1,ct=!1,Fe,He,bt,Et;for(;++pe<=te;){const ot=Z[pe];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ce++:ce--,Et=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(Fe&&!Et&&!ce&&!bt&&(bt=pe),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!ce&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ce===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(Fe){let kt=pe;for(He=void 0;kt--;){const pt=Z[kt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;He&&(Z[He][1].type="lineEndingBlank",ct=!0),pt[1].type="lineEnding",He=kt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}bt&&(!He||bt<He)&&(Fe._spread=!0),Fe.end=Object.assign({},He?Z[He][1].start:ot[1].end),Z.splice(He||pe,0,["exit",Fe,ot[2]]),pe++,te++}if(ot[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};Fe=kt,Z.splice(pe,0,["enter",kt,ot[2]]),pe++,te++,bt=void 0,Et=!0}}}return Z[ee][1]._spread=ct,te}function n(Z,ee){return te;function te(pe){o.call(this,Z(pe),pe),ee&&ee.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Z,ee,te){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ee,te||void 0]),Z.position={start:pn(ee.start),end:void 0}}function l(Z){return ee;function ee(te){Z&&Z.call(this,te),u.call(this,te)}}function u(Z,ee){const te=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==Z.type&&(ee?ee.call(this,Z,pe[0]):(pe[1]||Fm).call(this,Z,pe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Da({start:Z.start,end:Z.end})+"): it’s not open");te.position.end=pn(Z.end)}function c(){return Mf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(Z){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Z}function p(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Z}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z.replace(/(\r?\n|\r)$/g,"")}function b(Z){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Z)).toLowerCase()}function w(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Z}function C(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Z}function h(Z){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Z).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Z){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Z){const te=this.stack[this.stack.length-1].children;let pe=te[te.length-1];(!pe||pe.type!=="text")&&(pe=st(),pe.position={start:pn(Z.start),end:void 0},te.push(pe)),this.stack.push(pe)}function x(Z){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Z),ee.position.end=pn(Z.end)}function E(Z){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=pn(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Z),x.call(this,Z))}function O(){this.data.atHardBreak=!0}function j(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function T(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function F(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Z}function L(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ee,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function J(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ee,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Y(Z){const ee=this.sliceSerialize(Z),te=this.stack[this.stack.length-2];te.label=qS(ee),te.identifier=Ar(ee).toLowerCase()}function Q(){const Z=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 pe=Z.children;te.children=pe}else te.alt=ee}function P(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Z}function D(){const Z=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Z}function B(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function R(Z){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function M(Z){this.data.characterReferenceType=Z.type}function U(Z){const ee=this.sliceSerialize(Z),te=this.data.characterReferenceType;let pe;te?(pe=Ev(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Lf(ee);const ce=this.stack[this.stack.length-1];ce.value+=pe}function $(Z){const ee=this.stack.pop();ee.position.end=pn(Z.end)}function H(Z){x.call(this,Z);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Z)}function G(Z){x.call(this,Z);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Z)}function X(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:0,children:[]}}function re(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function we(){return{type:"link",title:null,url:"",children:[]}}function ke(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Pe(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function pn(e){return{line:e.line,column:e.column,offset:e.offset}}function Dv(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Dv(e,i):BS(e,i)}}function BS(e,t){let r;for(r in t)if(Fv.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 Fm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Da({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is still open")}function VS(e){const t=this;t.parser=r;function r(i){return $S(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HS(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 KS(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
- `}]}function WS(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 GS(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JS(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YS(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=ia(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 u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function XS(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 ZS(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Mv(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 QS(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Mv(e,t);const a={src:ia(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 eC(e,t){const r={src:ia(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 tC(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 rC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Mv(e,t);const a={href:ia(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 nC(e,t){const r={href:ia(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 iC(e,t,r){const i=e.all(t),a=r?aC(r):Lv(t),n={},s=[];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 o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
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 LS(e){const i={constructs:Ov([NS,...(e||{}).extensions||[]]),content:a(Qw),defined:[],document:a(tx),flow:a(bS),lazy:{},string:a(xS),text:a(SS)};return i;function a(n){return s;function s(o){return FS(i,n,o)}}}function qS(e){for(;!jv(e););return e}const Dm=/[\0\t\n\r]/g;function zS(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(Dm.lastIndex=f,u=Dm.exec(n),m=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(m),!u){t=n.slice(f);break}if(d===10&&f===m&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<m&&(l.push(n.slice(f,m)),e+=m-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=m+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const $S=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function US(e){return e.replace($S,BS)}function BS(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return _v(r.slice(n?2:1),n?16:10)}return qf(r)||e}const Lv={}.hasOwnProperty;function VS(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),HS(r)(qS(LS(r).document().write(zS()(e,t,!0))))}function HS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(we),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(Z),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(z,s),codeText:n(q,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(W),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(K),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,s),htmlFlowData:_,htmlText:n(ue,s),htmlTextData:_,image:n(ge),label:s,link:n(we),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ve),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:U,characterReference:$,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:x,codeIndented:l(g),codeText:l(D),codeTextData:x,data:x,definition:l(),definitionDestinationString:C,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(R),htmlFlowData:x,htmlText:l(T),htmlTextData:x,image:l(J),label:X,labelText:Y,lineEnding:E,link:l(L),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:N,resourceDestinationString:P,resourceTitleString:F,resource:B,setextHeading:l(A),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};qv(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},pe=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")pe.push(ce);else{const ct=pe.pop();ce=a(Q,ct,ce)}for(ce=-1;++ce<Q.length;){const ct=t[Q[ce][0]];Lv.call(ct,Q[ce][1].type)&&ct[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const ct=te.tokenStack[te.tokenStack.length-1];(ct[1]||Mm).call(te,void 0,ct[0])}for(ee.position={start:hn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:hn(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 pe=ee-1,ce=-1,ct=!1,Fe,He,bt,Et;for(;++pe<=te;){const ot=Q[pe];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ce++:ce--,Et=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(Fe&&!Et&&!ce&&!bt&&(bt=pe),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!ce&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ce===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(Fe){let kt=pe;for(He=void 0;kt--;){const pt=Q[kt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;He&&(Q[He][1].type="lineEndingBlank",ct=!0),pt[1].type="lineEnding",He=kt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}bt&&(!He||bt<He)&&(Fe._spread=!0),Fe.end=Object.assign({},He?Q[He][1].start:ot[1].end),Q.splice(He||pe,0,["exit",Fe,ot[2]]),pe++,te++}if(ot[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};Fe=kt,Q.splice(pe,0,["enter",kt,ot[2]]),pe++,te++,bt=void 0,Et=!0}}}return Q[ee][1]._spread=ct,te}function n(Q,ee){return te;function te(pe){o.call(this,Q(pe),pe),ee&&ee.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(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:hn(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(),pe=this.tokenStack.pop();if(pe)pe[0].type!==Q.type&&(ee?ee.call(this,Q,pe[0]):(pe[1]||Mm).call(this,Q,pe[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Da({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=hn(Q.end)}function c(){return Lf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(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 p(){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=Ar(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function C(){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 S(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let pe=te[te.length-1];(!pe||pe.type!=="text")&&(pe=st(),pe.position={start:hn(Q.start),end:void 0},te.push(pe)),this.stack.push(pe)}function x(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=hn(Q.end)}function E(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=hn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),x.call(this,Q))}function O(){this.data.atHardBreak=!0}function R(){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 D(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function L(){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 J(){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=US(ee),te.identifier=Ar(ee).toLowerCase()}function X(){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 pe=Q.children;te.children=pe}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function B(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function N(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=Ar(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function M(Q){this.data.characterReferenceType=Q.type}function U(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let pe;te?(pe=_v(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=qf(ee);const ce=this.stack[this.stack.length-1];ce.value+=pe}function $(Q){const ee=this.stack.pop();ee.position.end=hn(Q.end)}function H(Q){x.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function G(Q){x.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function Z(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function q(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:0,children:[]}}function re(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function we(){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 Ve(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function hn(e){return{line:e.line,column:e.column,offset:e.offset}}function qv(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?qv(e,i):KS(e,i)}}function KS(e,t){let r;for(r in t)if(Lv.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 Mm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Da({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is still open")}function WS(e){const t=this;t.parser=r;function r(i){return VS(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GS(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 JS(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
+ `}]}function YS(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 XS(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZS(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function QS(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=ia(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 u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function eC(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 tC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function zv(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 rC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return zv(e,t);const a={src:ia(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 nC(e,t){const r={src:ia(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 iC(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 aC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return zv(e,t);const a={href:ia(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 sC(e,t){const r={href:ia(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 oC(e,t,r){const i=e.all(t),a=r?lC(r):$v(t),n={},s=[];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 o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
26
26
  `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function aC(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=Lv(r[i])}return t}function Lv(e){const t=e.spread;return t??e.children.length>1}function sC(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 oC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function uC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cC(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=Rf(t.children[1]),l=yv(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 fC(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 u=[];for(;++l<o;){const f=t.children[l],m={},d=s?s[l]:void 0;d&&(m.align=d);let p={type:"element",tagName:n,properties:m,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function dC(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 mC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(Lm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(Lm(t.slice(a),a>0,!1)),n.join("")}function Lm(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 pC(e,t){const r={type:"text",value:mC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function hC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const gC={blockquote:HS,break:KS,code:WS,delete:GS,emphasis:JS,footnoteReference:YS,heading:XS,html:ZS,imageReference:QS,image:eC,inlineCode:tC,linkReference:rC,link:nC,listItem:iC,list:sC,paragraph:oC,root:lC,strong:uC,table:cC,tableCell:dC,tableRow:fC,text:pC,thematicBreak:hC,toml:Is,yaml:Is,definition:Is,footnoteDefinition:Is};function Is(){}const qv=-1,ml=0,La=1,Vo=2,zf=3,$f=4,Uf=5,Bf=6,zv=7,$v=8,yC=typeof self=="object"?self:globalThis,qm=(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 yC[e](t)},vC=(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 ml:case qv:return r(s,a);case La:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Vo:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case zf:return r(new Date(s),a);case $f:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Uf:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case Bf:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case zv:{const{name:o,message:l}=s;return r(qm(o,l),a)}case $v: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(qm(n,s),a)};return i},zm=e=>vC(new Map,e)(0),Ii="",{toString:bC}={},{keys:kC}=Object,ka=e=>{const t=typeof e;if(t!=="object"||!e)return[ml,t];const r=bC.call(e).slice(8,-1);switch(r){case"Array":return[La,Ii];case"Object":return[Vo,Ii];case"Date":return[zf,Ii];case"RegExp":return[$f,Ii];case"Map":return[Uf,Ii];case"Set":return[Bf,Ii];case"DataView":return[La,r]}return r.includes("Array")?[La,r]:r.includes("Error")?[zv,r]:[Vo,r]},Ts=([e,t])=>e===ml&&(t==="function"||t==="symbol"),wC=(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]=ka(s);switch(o){case ml:{let c=s;switch(l){case"bigint":o=$v,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([qv],s)}return a([o,c],s)}case La:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],f=a([o,c],s);for(const m of s)c.push(n(m));return f}case Vo:{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 c=[],f=a([o,c],s);for(const m of kC(s))(e||!Ts(ka(s[m])))&&c.push([n(m),n(s[m])]);return f}case zf:return a([o,s.toISOString()],s);case $f:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case Uf:{const c=[],f=a([o,c],s);for(const[m,d]of s)(e||!(Ts(ka(m))||Ts(ka(d))))&&c.push([n(m),n(d)]);return f}case Bf:{const c=[],f=a([o,c],s);for(const m of s)(e||!Ts(ka(m)))&&c.push(n(m));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},$m=(e,{json:t,lossy:r}={})=>{const i=[];return wC(!(t||r),!!t,new Map,i)(e),i},Ho=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zm($m(e,t)):structuredClone(e):(e,t)=>zm($m(e,t));function xC(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 SC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function CC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||xC,i=e.options.footnoteBackLabel||SC,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 u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),m=ia(f.toLowerCase());let d=0;const p=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){p.length>0&&p.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(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(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ho(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
27
+ `});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function lC(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=$v(r[i])}return t}function $v(e){const t=e.spread;return t??e.children.length>1}function uC(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 cC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function dC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mC(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=Nf(t.children[1]),l=kv(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 pC(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 u=[];for(;++l<o;){const f=t.children[l],m={},d=s?s[l]:void 0;d&&(m.align=d);let p={type:"element",tagName:n,properties:m,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function hC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Lm=9,qm=32;function gC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(zm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(zm(t.slice(a),a>0,!1)),n.join("")}function zm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===Lm||n===qm;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===Lm||n===qm;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function yC(e,t){const r={type:"text",value:gC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function vC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const bC={blockquote:GS,break:JS,code:YS,delete:XS,emphasis:ZS,footnoteReference:QS,heading:eC,html:tC,imageReference:rC,image:nC,inlineCode:iC,linkReference:aC,link:sC,listItem:oC,list:uC,paragraph:cC,root:fC,strong:dC,table:mC,tableCell:hC,tableRow:pC,text:yC,thematicBreak:vC,toml:Is,yaml:Is,definition:Is,footnoteDefinition:Is};function Is(){}const Uv=-1,pl=0,La=1,Vo=2,$f=3,Uf=4,Bf=5,Vf=6,Bv=7,Vv=8,kC=typeof self=="object"?self:globalThis,$m=(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 kC[e](t)},wC=(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 pl:case Uv:return r(s,a);case La:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Vo:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case $f:return r(new Date(s),a);case Uf:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Bf:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case Vf:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case Bv:{const{name:o,message:l}=s;return r($m(o,l),a)}case Vv: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($m(n,s),a)};return i},Um=e=>wC(new Map,e)(0),Ii="",{toString:xC}={},{keys:SC}=Object,ka=e=>{const t=typeof e;if(t!=="object"||!e)return[pl,t];const r=xC.call(e).slice(8,-1);switch(r){case"Array":return[La,Ii];case"Object":return[Vo,Ii];case"Date":return[$f,Ii];case"RegExp":return[Uf,Ii];case"Map":return[Bf,Ii];case"Set":return[Vf,Ii];case"DataView":return[La,r]}return r.includes("Array")?[La,r]:r.includes("Error")?[Bv,r]:[Vo,r]},Ts=([e,t])=>e===pl&&(t==="function"||t==="symbol"),CC=(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]=ka(s);switch(o){case pl:{let c=s;switch(l){case"bigint":o=Vv,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([Uv],s)}return a([o,c],s)}case La:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],f=a([o,c],s);for(const m of s)c.push(n(m));return f}case Vo:{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 c=[],f=a([o,c],s);for(const m of SC(s))(e||!Ts(ka(s[m])))&&c.push([n(m),n(s[m])]);return f}case $f:return a([o,s.toISOString()],s);case Uf:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case Bf:{const c=[],f=a([o,c],s);for(const[m,d]of s)(e||!(Ts(ka(m))||Ts(ka(d))))&&c.push([n(m),n(d)]);return f}case Vf:{const c=[],f=a([o,c],s);for(const m of s)(e||!Ts(ka(m)))&&c.push(n(m));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},Bm=(e,{json:t,lossy:r}={})=>{const i=[];return CC(!(t||r),!!t,new Map,i)(e),i},Ho=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Um(Bm(e,t)):structuredClone(e):(e,t)=>Um(Bm(e,t));function EC(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 AC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function OC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||EC,i=e.options.footnoteBackLabel||AC,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 u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),m=ia(f.toLowerCase());let d=0;const p=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){p.length>0&&p.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(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(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ho(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
28
28
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
29
- `}]}}const pl=(function(e){if(e==null)return _C;if(typeof e=="function")return hl(e);if(typeof e=="object")return Array.isArray(e)?EC(e):AC(e);if(typeof e=="string")return OC(e);throw new Error("Expected function, string, or object as test")});function EC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=pl(e[r]);return hl(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function AC(e){const t=e;return hl(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function OC(e){return hl(t);function t(r){return r&&r.type===e}}function hl(e){return t;function t(r,i,a){return!!(PC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function _C(){return!0}function PC(e){return e!==null&&typeof e=="object"&&"type"in e}const Uv=[],IC=!0,$c=!1,TC="skip";function Bv(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=pl(a),s=i?-1:1;o(e,void 0,[])();function o(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(m,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=Uv,p,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=jC(r(l,c)),d[0]===$c))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==TC)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(p=o(b,k,v)(),p[0]===$c)return p;k=typeof p[1]=="number"?p[1]:k+s}}return d}}}function jC(e){return Array.isArray(e)?e:typeof e=="number"?[IC,e]:e==null?Uv:[e]}function Vf(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),Bv(e,n,o,a);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Uc={}.hasOwnProperty,RC={};function NC(e,t){const r=t||RC,i=new Map,a=new Map,n=new Map,s={...gC,...r.handlers},o={all:u,applyData:DC,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:FC,wrap:LC};return Vf(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,m=String(c.identifier).toUpperCase();f.has(m)||f.set(m,c)}}),o;function l(c,f){const m=c.type,d=o.handlers[m];if(Uc.call(o.handlers,m)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in c){const{children:k,...v}=c,g=Ho(v);return g.children=o.all(c),g}return Ho(c)}return(o.options.unknownHandler||MC)(o,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=o.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Um(p.value)),!Array.isArray(p)&&p.type==="element")){const k=p.children[0];k&&k.type==="text"&&(k.value=Um(k.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function FC(e,t){e.position&&(t.position=xw(e))}function DC(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,Ho(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function MC(e,t){const r=t.data||{},i="value"in t&&!(Uc.call(r,"hProperties")||Uc.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 LC(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
29
+ `}]}}const hl=(function(e){if(e==null)return TC;if(typeof e=="function")return gl(e);if(typeof e=="object")return Array.isArray(e)?_C(e):PC(e);if(typeof e=="string")return IC(e);throw new Error("Expected function, string, or object as test")});function _C(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=hl(e[r]);return gl(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function PC(e){const t=e;return gl(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function IC(e){return gl(t);function t(r){return r&&r.type===e}}function gl(e){return t;function t(r,i,a){return!!(jC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function TC(){return!0}function jC(e){return e!==null&&typeof e=="object"&&"type"in e}const Hv=[],RC=!0,Uc=!1,NC="skip";function Kv(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=hl(a),s=i?-1:1;o(e,void 0,[])();function o(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(m,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=Hv,p,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=FC(r(l,c)),d[0]===Uc))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==NC)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(p=o(b,k,v)(),p[0]===Uc)return p;k=typeof p[1]=="number"?p[1]:k+s}}return d}}}function FC(e){return Array.isArray(e)?e:typeof e=="number"?[RC,e]:e==null?Hv:[e]}function Hf(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),Kv(e,n,o,a);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Bc={}.hasOwnProperty,DC={};function MC(e,t){const r=t||DC,i=new Map,a=new Map,n=new Map,s={...bC,...r.handlers},o={all:u,applyData:qC,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:LC,wrap:$C};return Hf(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,m=String(c.identifier).toUpperCase();f.has(m)||f.set(m,c)}}),o;function l(c,f){const m=c.type,d=o.handlers[m];if(Bc.call(o.handlers,m)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in c){const{children:k,...v}=c,g=Ho(v);return g.children=o.all(c),g}return Ho(c)}return(o.options.unknownHandler||zC)(o,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=o.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Vm(p.value)),!Array.isArray(p)&&p.type==="element")){const k=p.children[0];k&&k.type==="text"&&(k.value=Vm(k.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function LC(e,t){e.position&&(t.position=Ew(e))}function qC(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,Ho(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function zC(e,t){const r=t.data||{},i="value"in t&&!(Bc.call(r,"hProperties")||Bc.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 $C(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 Um(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Bm(e,t){const r=NC(e,t),i=r.one(e,void 0),a=CC(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 qC(e,t){return e&&"run"in e?async function(r,i){const a=Bm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Bm(r,{file:i,...e||t})}}function Vm(e){if(e)throw e}var su,Hm;function zC(){if(Hm)return su;Hm=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 m;for(m in u);return typeof m>"u"||e.call(u,m)},s=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},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return su=function l(){var u,c,f,m,d,p,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=o(k,c),m=o(u,c),k!==m&&(b&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,p,m)})):typeof m<"u"&&s(k,{name:c,newValue:m}));return k},su}var $C=zC();const ou=Wr($C);function Bc(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 UC(){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,...u){const c=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?BC(c,o)(...u):s(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 BC(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(u){const c=u;if(o&&r)throw c;return a(c)}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 Lr={basename:VC,dirname:HC,extname:KC,join:WC,sep:"/"};function VC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');as(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 HC(e){if(as(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 KC(e){as(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 WC(...e){let t=-1,r;for(;++t<e.length;)as(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":GC(r)}function GC(e){as(e);const t=e.codePointAt(0)===47;let r=JC(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function JC(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 as(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const YC={cwd:XC};function XC(){return"/"}function Vc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ZC(e){if(typeof e=="string")e=new URL(e);else if(!Vc(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 QC(e)}function QC(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 lu=["history","path","basename","stem","extname","dirname"];class Vv{constructor(t){let r;t?Vc(t)?r={path:t}:typeof t=="string"||eE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":YC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<lu.length;){const n=lu[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)lu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Lr.basename(this.path):void 0}set basename(t){cu(t,"basename"),uu(t,"basename"),this.path=Lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Lr.dirname(this.path):void 0}set dirname(t){Km(this.basename,"dirname"),this.path=Lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Lr.extname(this.path):void 0}set extname(t){if(uu(t,"extname"),Km(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=Lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vc(t)&&(t=ZC(t)),cu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Lr.basename(this.path,this.extname):void 0}set stem(t){cu(t,"stem"),uu(t,"stem"),this.path=Lr.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 zt(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 uu(e,t){if(e&&e.includes(Lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Lr.sep+"`")}function cu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Km(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function eE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),rE={}.hasOwnProperty;class Hf extends tE{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=UC()}copy(){const t=new Hf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ou(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(mu("data",this.frozen),this.namespace[t]=r,this):rE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mu("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=js(t),i=this.parser||this.Parser;return fu("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),fu("process",this.parser||this.Parser),du("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=js(t),l=i.parse(o);i.run(l,o,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);aE(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?s(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),fu("processSync",this.parser||this.Parser),du("processSync",this.compiler||this.Compiler),this.process(t,a),Gm("processSync","process",r),i;function a(n,s){r=!0,Vm(n),i=s}}run(t,r,i){Wm(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=js(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?o(c):s?s(d):i(void 0,d,m)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Gm("runSync","run",i),a;function n(s,o){Vm(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=js(r),a=this.compiler||this.Compiler;return du("stringify",a),Wm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(mu("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(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(a.settings=ou(!0,a.settings,u.settings))}function o(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,m=-1;for(;++f<i.length;)if(i[f][0]===u){m=f;break}if(m===-1)i.push([u,...c]);else if(c.length>0){let[d,...p]=c;const k=i[m][1];Bc(k)&&Bc(d)&&(d=ou(!0,k,d)),i[m]=[u,d,...p]}}}}const nE=new Hf().freeze();function fu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function du(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mu(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 Wm(e){if(!Bc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function js(e){return iE(e)?e:new Vv(e)}function iE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function aE(e){return typeof e=="string"||sE(e)}function sE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jm=[],Ym={allowDangerousHtml:!0},lE=/^(https?|ircs?|mailto|xmpp)$/i,uE=[{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 cE(e){const t=fE(e),r=dE(e);return mE(t.runSync(t.parse(r),r),e)}function fE(e){const t=e.rehypePlugins||Jm,r=e.remarkPlugins||Jm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ym}:Ym;return nE().use(VS).use(r).use(qC,i).use(t)}function dE(e){const t=e.children||"",r=new Vv;return typeof t=="string"&&(r.value=t),r}function mE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||pE;for(const c of uE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+oE+c.id,void 0);return Vf(e,u),Ow(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in nu)if(Object.hasOwn(nu,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],k=nu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(p||""),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,m)),d&&m&&typeof f=="number")return o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function pE(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||lE.test(e.slice(0,t))?e:""}function Xm(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 hE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function gE(e,t,r){const a=pl((r||{}).ignore||[]),n=yE(t);let s=-1;for(;++s<n.length;)Bv(e,"text",o);function o(u,c){let f=-1,m;for(;++f<c.length;){const d=c[f],p=m?m.children:void 0;if(a(d,p?p.indexOf(d):void 0,m))return;m=d}if(m)return l(u,c)}function l(u,c){const f=c[c.length-1],m=n[s][0],d=n[s][1];let p=0;const v=f.children.indexOf(u);let g=!1,b=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const C=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?m.lastIndex=C+1:(p!==C&&b.push({type:"text",value:u.value.slice(p,C)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=C+w[0].length,g=!0),!m.global)break;w=m.exec(u.value)}return g?(p<u.value.length&&b.push({type:"text",value:u.value.slice(p)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function yE(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([vE(a[0]),bE(a[1])])}return t}function vE(e){return typeof e=="string"?new RegExp(hE(e),"g"):e}function bE(e){return typeof e=="function"?e:function(){return e}}const pu="phrasing",hu=["autolink","link","image","label"];function kE(){return{transforms:[OE],enter:{literalAutolink:xE,literalAutolinkEmail:gu,literalAutolinkHttp:gu,literalAutolinkWww:gu},exit:{literalAutolink:AE,literalAutolinkEmail:EE,literalAutolinkHttp:SE,literalAutolinkWww:CE}}}function wE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:hu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:hu},{character:":",before:"[ps]",after:"\\/",inConstruct:pu,notInConstruct:hu}]}}function xE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gu(e){this.config.enter.autolinkProtocol.call(this,e)}function SE(e){this.config.exit.autolinkProtocol.call(this,e)}function CE(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 EE(e){this.config.exit.autolinkEmail.call(this,e)}function AE(e){this.exit(e)}function OE(e){gE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_E],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),PE]],{ignore:["link","linkReference"]})}function _E(e,t,r,i,a){let n="";if(!Hv(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!IE(r)))return!1;const s=TE(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 PE(e,t,r,i){return!Hv(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function IE(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 TE(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=Xm(e,"(");let n=Xm(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 Hv(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||oi(r)||fl(r))&&(!t||r!==47)}Kv.peek=zE;function jE(){this.buffer()}function RE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NE(){this.buffer()}function FE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function DE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function ME(e){this.exit(e)}function LE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function qE(e){this.exit(e)}function zE(){return"["}function Kv(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 $E(){return{enter:{gfmFootnoteCallString:jE,gfmFootnoteCall:RE,gfmFootnoteDefinitionLabelString:NE,gfmFootnoteDefinition:FE},exit:{gfmFootnoteCallString:DE,gfmFootnoteCall:ME,gfmFootnoteDefinitionLabelString:LE,gfmFootnoteDefinition:qE}}}function UE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Kv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),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?Wv:BE))),u(),l}}function BE(e,t,r){return t===0?e:Wv(e,t,r)}function Wv(e,t,r){return(r?"":" ")+e}const VE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gv.peek=JE;function HE(){return{canContainEols:["delete"],enter:{strikethrough:WE},exit:{strikethrough:GE}}}function KE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VE}],handlers:{delete:Gv}}}function WE(e){this.enter({type:"delete",children:[]},e)}function GE(e){this.exit(e)}function Gv(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 JE(){return"~"}function YE(e){return e.length}function XE(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||YE,n=[],s=[],o=[],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=ZE(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)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=Zm(i[f]);else{const k=Zm(i);for(;++f<u;)n[f]=k}f=-1;const m=[],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),m[f]=w}s.splice(1,0,m),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",C="";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),C=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),C=w):C=" ".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(C),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}p.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
35
- `)}function ZE(e){return e==null?"":String(e)}function Zm(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 QE(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()),eA);return a(),s}function eA(e,t,r){return">"+(r?"":" ")+e}function tA(e,t){return Qm(e,t.inConstruct,!0)&&!Qm(e,t.notInConstruct,!1)}function Qm(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 ep(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
- `&&tA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
- `}function rA(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 nA(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 iA(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 aA(e,t,r,i){const a=iA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(nA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,sA);return f(),m}const o=r.createTracker(i),l=a.repeat(Math.max(rA(n,a)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
32
+ `}),r}function Vm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Hm(e,t){const r=MC(e,t),i=r.one(e,void 0),a=OC(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 UC(e,t){return e&&"run"in e?async function(r,i){const a=Hm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Hm(r,{file:i,...e||t})}}function Km(e){if(e)throw e}var ou,Wm;function BC(){if(Wm)return ou;Wm=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 m;for(m in u);return typeof m>"u"||e.call(u,m)},s=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},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return ou=function l(){var u,c,f,m,d,p,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=o(k,c),m=o(u,c),k!==m&&(b&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,p,m)})):typeof m<"u"&&s(k,{name:c,newValue:m}));return k},ou}var VC=BC();const lu=Wr(VC);function Vc(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 HC(){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,...u){const c=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?KC(c,o)(...u):s(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 KC(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(u){const c=u;if(o&&r)throw c;return a(c)}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 Lr={basename:WC,dirname:GC,extname:JC,join:YC,sep:"/"};function WC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');as(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 GC(e){if(as(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 JC(e){as(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 YC(...e){let t=-1,r;for(;++t<e.length;)as(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":XC(r)}function XC(e){as(e);const t=e.codePointAt(0)===47;let r=ZC(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function ZC(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 as(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const QC={cwd:eE};function eE(){return"/"}function Hc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tE(e){if(typeof e=="string")e=new URL(e);else if(!Hc(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 rE(e)}function rE(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 uu=["history","path","basename","stem","extname","dirname"];class Wv{constructor(t){let r;t?Hc(t)?r={path:t}:typeof t=="string"||nE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":QC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<uu.length;){const n=uu[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)uu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Lr.basename(this.path):void 0}set basename(t){fu(t,"basename"),cu(t,"basename"),this.path=Lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Lr.dirname(this.path):void 0}set dirname(t){Gm(this.basename,"dirname"),this.path=Lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Lr.extname(this.path):void 0}set extname(t){if(cu(t,"extname"),Gm(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=Lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hc(t)&&(t=tE(t)),fu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Lr.basename(this.path,this.extname):void 0}set stem(t){fu(t,"stem"),cu(t,"stem"),this.path=Lr.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 zt(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 cu(e,t){if(e&&e.includes(Lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Lr.sep+"`")}function fu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Gm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),aE={}.hasOwnProperty;class Kf extends iE{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=HC()}copy(){const t=new Kf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(lu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(pu("data",this.frozen),this.namespace[t]=r,this):aE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(pu("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=js(t),i=this.parser||this.Parser;return du("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),du("process",this.parser||this.Parser),mu("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=js(t),l=i.parse(o);i.run(l,o,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);lE(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?s(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),du("processSync",this.parser||this.Parser),mu("processSync",this.compiler||this.Compiler),this.process(t,a),Ym("processSync","process",r),i;function a(n,s){r=!0,Km(n),i=s}}run(t,r,i){Jm(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=js(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?o(c):s?s(d):i(void 0,d,m)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Ym("runSync","run",i),a;function n(s,o){Km(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=js(r),a=this.compiler||this.Compiler;return mu("stringify",a),Jm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(pu("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(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(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");o(u.plugins),u.settings&&(a.settings=lu(!0,a.settings,u.settings))}function o(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,m=-1;for(;++f<i.length;)if(i[f][0]===u){m=f;break}if(m===-1)i.push([u,...c]);else if(c.length>0){let[d,...p]=c;const k=i[m][1];Vc(k)&&Vc(d)&&(d=lu(!0,k,d)),i[m]=[u,d,...p]}}}}const sE=new Kf().freeze();function du(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pu(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 Jm(e){if(!Vc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ym(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function js(e){return oE(e)?e:new Wv(e)}function oE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lE(e){return typeof e=="string"||uE(e)}function uE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xm=[],Zm={allowDangerousHtml:!0},fE=/^(https?|ircs?|mailto|xmpp)$/i,dE=[{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 mE(e){const t=pE(e),r=hE(e);return gE(t.runSync(t.parse(r),r),e)}function pE(e){const t=e.rehypePlugins||Xm,r=e.remarkPlugins||Xm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Zm}:Zm;return sE().use(WS).use(r).use(UC,i).use(t)}function hE(e){const t=e.children||"",r=new Wv;return typeof t=="string"&&(r.value=t),r}function gE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||yE;for(const c of dE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+cE+c.id,void 0);return Hf(e,u),Iw(e,{Fragment:j.Fragment,components:a,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in iu)if(Object.hasOwn(iu,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],k=iu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(p||""),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,m)),d&&m&&typeof f=="number")return o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function yE(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||fE.test(e.slice(0,t))?e:""}function Qm(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 vE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bE(e,t,r){const a=hl((r||{}).ignore||[]),n=kE(t);let s=-1;for(;++s<n.length;)Kv(e,"text",o);function o(u,c){let f=-1,m;for(;++f<c.length;){const d=c[f],p=m?m.children:void 0;if(a(d,p?p.indexOf(d):void 0,m))return;m=d}if(m)return l(u,c)}function l(u,c){const f=c[c.length-1],m=n[s][0],d=n[s][1];let p=0;const v=f.children.indexOf(u);let g=!1,b=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const C=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?m.lastIndex=C+1:(p!==C&&b.push({type:"text",value:u.value.slice(p,C)}),Array.isArray(y)?b.push(...y):y&&b.push(y),p=C+w[0].length,g=!0),!m.global)break;w=m.exec(u.value)}return g?(p<u.value.length&&b.push({type:"text",value:u.value.slice(p)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function kE(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([wE(a[0]),xE(a[1])])}return t}function wE(e){return typeof e=="string"?new RegExp(vE(e),"g"):e}function xE(e){return typeof e=="function"?e:function(){return e}}const hu="phrasing",gu=["autolink","link","image","label"];function SE(){return{transforms:[IE],enter:{literalAutolink:EE,literalAutolinkEmail:yu,literalAutolinkHttp:yu,literalAutolinkWww:yu},exit:{literalAutolink:PE,literalAutolinkEmail:_E,literalAutolinkHttp:AE,literalAutolinkWww:OE}}}function CE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hu,notInConstruct:gu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hu,notInConstruct:gu},{character:":",before:"[ps]",after:"\\/",inConstruct:hu,notInConstruct:gu}]}}function EE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function yu(e){this.config.enter.autolinkProtocol.call(this,e)}function AE(e){this.config.exit.autolinkProtocol.call(this,e)}function OE(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 _E(e){this.config.exit.autolinkEmail.call(this,e)}function PE(e){this.exit(e)}function IE(e){bE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,TE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),jE]],{ignore:["link","linkReference"]})}function TE(e,t,r,i,a){let n="";if(!Gv(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!RE(r)))return!1;const s=NE(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 jE(e,t,r,i){return!Gv(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function RE(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 NE(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=Qm(e,"(");let n=Qm(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 Gv(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||oi(r)||dl(r))&&(!t||r!==47)}Jv.peek=BE;function FE(){this.buffer()}function DE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ME(){this.buffer()}function LE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function zE(e){this.exit(e)}function $E(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function UE(e){this.exit(e)}function BE(){return"["}function Jv(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 VE(){return{enter:{gfmFootnoteCallString:FE,gfmFootnoteCall:DE,gfmFootnoteDefinitionLabelString:ME,gfmFootnoteDefinition:LE},exit:{gfmFootnoteCallString:qE,gfmFootnoteCall:zE,gfmFootnoteDefinitionLabelString:$E,gfmFootnoteDefinition:UE}}}function HE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Jv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),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?Yv:KE))),u(),l}}function KE(e,t,r){return t===0?e:Yv(e,t,r)}function Yv(e,t,r){return(r?"":" ")+e}const WE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Xv.peek=ZE;function GE(){return{canContainEols:["delete"],enter:{strikethrough:YE},exit:{strikethrough:XE}}}function JE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:WE}],handlers:{delete:Xv}}}function YE(e){this.enter({type:"delete",children:[]},e)}function XE(e){this.exit(e)}function Xv(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 ZE(){return"~"}function QE(e){return e.length}function eA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||QE,n=[],s=[],o=[],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=tA(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)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=ep(i[f]);else{const k=ep(i);for(;++f<u;)n[f]=k}f=-1;const m=[],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),m[f]=w}s.splice(1,0,m),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",C="";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),C=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),C=w):C=" ".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(C),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}p.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
35
+ `)}function tA(e){return e==null?"":String(e)}function ep(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 rA(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()),nA);return a(),s}function nA(e,t,r){return">"+(r?"":" ")+e}function iA(e,t){return tp(e,t.inConstruct,!0)&&!tp(e,t.notInConstruct,!1)}function tp(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 rp(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
+ `&&iA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
+ `}function aA(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 sA(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 oA(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 lA(e,t,r,i){const a=oA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(sA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,uA);return f(),m}const o=r.createTracker(i),l=a.repeat(Math.max(aA(n,a)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
38
38
  `,encode:["`"],...o.current()})),f()}return c+=o.move(`
39
39
  `),n&&(c+=o.move(n+`
40
- `)),c+=o.move(l),u(),c}function sA(e,t,r){return(r?"":" ")+e}function Kf(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 oA(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),o(),e.title&&(o=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),o()),s(),u}function lA(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 Ha(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ko(e,t,r){const i=Ji(e),a=Ji(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}}Jv.peek=uA;function Jv(e,t,r,i){const a=lA(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 u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function uA(e,t,r){return r.options.emphasis||"*"}function cA(e,t){let r=!1;return Vf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,$c}),!!((!e.depth||e.depth<3)&&Mf(e)&&(t.options.setext||r))}function fA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(cA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
40
+ `)),c+=o.move(l),u(),c}function uA(e,t,r){return(r?"":" ")+e}function Wf(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 cA(e,t,r,i){const a=Wf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=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("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
41
+ `,...l.current()}))),o(),e.title&&(o=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),o()),s(),u}function fA(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 Ha(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ko(e,t,r){const i=Ji(e),a=Ji(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}}Zv.peek=dA;function Zv(e,t,r,i){const a=fA(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 u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function dA(e,t,r){return r.options.emphasis||"*"}function mA(e,t){let r=!1;return Hf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Uc}),!!((!e.depth||e.depth<3)&&Lf(e)&&(t.options.setext||r))}function pA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(mA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
42
42
  `,after:`
43
43
  `});return f(),c(),m+`
44
44
  `+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
45
45
  `))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");n.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
46
- `,...n.current()});return/^[\t ]/.test(u)&&(u=Ha(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Yv.peek=dA;function Yv(e){return e.value||""}function dA(){return"<"}Xv.peek=mA;function Xv(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=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),o()),u+=l.move(")"),s(),u}function mA(){return"!"}Zv.peek=pA;function Zv(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 u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function pA(){return"!"}Qv.peek=hA;function Qv(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 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 hA(){return"`"}function eb(e,t){const r=Mf(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))}tb.peek=gA;function tb(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(eb(e,r)){const c=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=c,f}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function gA(e,t,r){return eb(e,r)?"<":"["}rb.peek=yA;function rb(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 u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function yA(){return"["}function Wf(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 vA(e){const t=Wf(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 bA(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 nb(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 kA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?bA(r):Wf(r);const o=e.ordered?s==="."?")":".":vA(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),nb(r)===s&&c){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),u}function wA(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 xA(e,t,r,i){const a=wA(r);let n=r.bulletCurrent||Wf(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"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function SA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const CA=pl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function EA(e,t,r,i){return(e.children.some(function(s){return CA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function AA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ib.peek=OA;function ib(e,t,r,i){const a=AA(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 u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function OA(e,t,r){return r.options.strong||"*"}function _A(e,t,r,i){return r.safe(e.value,i)}function PA(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 IA(e,t,r){const i=(nb(r)+(r.options.ruleSpaces?" ":"")).repeat(PA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const ab={blockquote:QE,break:ep,code:aA,definition:oA,emphasis:Jv,hardBreak:ep,heading:fA,html:Yv,image:Xv,imageReference:Zv,inlineCode:Qv,link:tb,linkReference:rb,list:kA,listItem:xA,paragraph:SA,root:EA,strong:ib,text:_A,thematicBreak:IA};function TA(){return{enter:{table:jA,tableData:tp,tableHeader:tp,tableRow:NA},exit:{codeText:FA,table:RA,tableData:yu,tableHeader:yu,tableRow:yu}}}function jA(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 RA(e){this.exit(e),this.data.inTable=void 0}function NA(e){this.enter({type:"tableRow",children:[]},e)}function yu(e){this.exit(e)}function tp(e){this.enter({type:"tableCell",children:[]},e)}function FA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,DA));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function DA(e,t){return t==="|"?t:e}function MA(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
46
+ `,...n.current()});return/^[\t ]/.test(u)&&(u=Ha(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Qv.peek=hA;function Qv(e){return e.value||""}function hA(){return"<"}eb.peek=gA;function eb(e,t,r,i){const a=Wf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=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("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=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),o()),u+=l.move(")"),s(),u}function gA(){return"!"}tb.peek=yA;function tb(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 u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function yA(){return"!"}rb.peek=vA;function rb(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 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 vA(){return"`"}function nb(e,t){const r=Lf(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))}ib.peek=bA;function ib(e,t,r,i){const a=Wf(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(nb(e,r)){const c=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=c,f}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function bA(e,t,r){return nb(e,r)?"<":"["}ab.peek=kA;function ab(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 u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function kA(){return"["}function Gf(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 wA(e){const t=Gf(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 xA(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 sb(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 SA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?xA(r):Gf(r);const o=e.ordered?s==="."?")":".":wA(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&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),sb(r)===s&&c){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),u}function CA(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 EA(e,t,r,i){const a=CA(r);let n=r.bulletCurrent||Gf(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"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function AA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const OA=hl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _A(e,t,r,i){return(e.children.some(function(s){return OA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function PA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ob.peek=IA;function ob(e,t,r,i){const a=PA(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 u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function IA(e,t,r){return r.options.strong||"*"}function TA(e,t,r,i){return r.safe(e.value,i)}function jA(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 RA(e,t,r){const i=(sb(r)+(r.options.ruleSpaces?" ":"")).repeat(jA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const lb={blockquote:rA,break:rp,code:lA,definition:cA,emphasis:Zv,hardBreak:rp,heading:pA,html:Qv,image:eb,imageReference:tb,inlineCode:rb,link:ib,linkReference:ab,list:SA,listItem:EA,paragraph:AA,root:_A,strong:ob,text:TA,thematicBreak:RA};function NA(){return{enter:{table:FA,tableData:np,tableHeader:np,tableRow:MA},exit:{codeText:LA,table:DA,tableData:vu,tableHeader:vu,tableRow:vu}}}function FA(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 DA(e){this.exit(e),this.data.inTable=void 0}function MA(e){this.enter({type:"tableRow",children:[]},e)}function vu(e){this.exit(e)}function np(e){this.enter({type:"tableCell",children:[]},e)}function LA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,qA));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function qA(e,t){return t==="|"?t:e}function zA(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
47
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:l,tableRow:o}};function s(d,p,k,v){return u(c(d,k,v),d.align)}function o(d,p,k,v){const g=f(d,k,v),b=u([g]);return b.slice(0,b.indexOf(`
48
- `))}function l(d,p,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,p){return XE(d,{align:p,alignDelimiters:i,padding:r,stringLength:a})}function c(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("table");for(;++g<v.length;)b[g]=f(v[g],p,k);return w(),b}function f(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,p,k);return w(),b}function m(d,p,k){let v=ab.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function LA(){return{exit:{taskListCheckValueChecked:rp,taskListCheckValueUnchecked:rp,paragraph:zA}}}function qA(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$A}}}function rp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zA(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 $A(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=ab.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function UA(){return[kE(),$E(),HE(),TA(),LA()]}function BA(e){return{extensions:[wE(),UE(e),KE(),MA(e),qA()]}}const VA={tokenize:YA,partial:!0},sb={tokenize:XA,partial:!0},ob={tokenize:ZA,partial:!0},lb={tokenize:QA,partial:!0},HA={tokenize:eO,partial:!0},ub={name:"wwwAutolink",tokenize:GA,previous:fb},cb={name:"protocolAutolink",tokenize:JA,previous:db},an={name:"emailAutolink",tokenize:WA,previous:mb},Jr={};function KA(){return{text:Jr}}let Wn=48;for(;Wn<123;)Jr[Wn]=an,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);Jr[43]=an;Jr[45]=an;Jr[46]=an;Jr[95]=an;Jr[72]=[an,cb];Jr[104]=[an,cb];Jr[87]=[an,ub];Jr[119]=[an,ub];function WA(e,t,r){const i=this;let a,n;return s;function s(f){return!Hc(f)||!mb.call(i,i.previous)||Gf(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Hc(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(HA,c,u)(f):f===45||f===95||Lt(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&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function GA(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!fb.call(i,i.previous)||Gf(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VA,e.attempt(sb,e.attempt(ob,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function JA(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&db.call(i,i.previous)&&!Gf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Bt(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=a.toLowerCase();if(m==="http"||m==="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||Bo(f)||dt(f)||oi(f)||fl(f)?r(f):e.attempt(sb,e.attempt(ob,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function YA(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 XA(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(lb,l,o)(u):u===null||dt(u)||oi(u)||u!==45&&fl(u)?l(u):(n=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!n?r(u):t(u)}}function ZA(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(lb,t,n)(s):s===null||dt(s)||oi(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function QA(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)||oi(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||oi(o)?t(o):i(o)}function n(o){return Bt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Bt(o)?(e.consume(o),s):r(o)}}function eO(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return Lt(n)?r(n):t(n)}}function fb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function db(e){return!Bt(e)}function mb(e){return!(e===47||Hc(e))}function Hc(e){return e===43||e===45||e===46||e===95||Lt(e)}function Gf(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 tO={tokenize:uO,partial:!0};function rO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sO,continuation:{tokenize:oO},exit:lO}},text:{91:{name:"gfmFootnoteCall",tokenize:aO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nO,resolveTo:iO}}}}function nO(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 u=Ar(i.sliceSerialize({start:s.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 iO(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 aO(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",u)}function u(f){if(n>999||f===93&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Ar(i.sliceSerialize(m)))?(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?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),n++,u):u(f)}}function sO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(s>999||p===93&&!o||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=Ar(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(o=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(p)}function d(p){return t(p)}}function oO(e,t,r){return e.check(is,t,e.attempt(tO,t,r))}function lO(e){e.exit("gfmFootnoteDefinition")}function uO(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 cO(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 u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&ar(m,m.length,0,dl(d,s.slice(u+1,l),o)),ar(m,m.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),ar(s,u-1,l-u+3,m),l=u+m.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 u=this.previous,c=this.events;let f=0;return m;function m(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=Ji(u);if(p===126)return f>1?l(p):(s.consume(p),f++,d);if(f<2&&!r)return l(p);const v=s.exit("strikethroughSequenceTemporary"),g=Ji(p);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(p)}}}class fO{constructor(){this.map=[]}add(t,r,i){dO(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 dO(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 mO(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 pO(){return{flow:{null:{name:"table",tokenize:hO,resolveAll:gO}}}}function hO(e,t,r){const i=this;let a=0,n=0,s;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const T=i.events[E][1].type;if(T==="lineEnding"||T==="linePrefix")E--;else break}const O=E>-1?i.events[E][1].type:null,j=O==="tableHead"||O==="tableRow"?y:l;return j===y&&i.parser.lazy[i.now().line]?r(x):j(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(s=!0,n+=1),c(x)}function c(x){return x===null?r(x):he(x)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d):r(x):Me(x)?Be(e,c,"whitespace")(x):(n+=1,s&&(s=!1,a+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||dt(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?m:f)}function m(x){return x===92||x===124?(e.consume(x),f):f(x)}function d(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(x):(e.enter("tableDelimiterRow"),s=!1,Me(x)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?v(x):x===124?(s=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):h(x)}function k(x){return Me(x)?Be(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(n+=1,g(x)):x===null||he(x)?C(x):h(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),b(x)):h(x)}function b(x){return x===45?(e.consume(x),b):x===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return Me(x)?Be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?p(x):x===null||he(x)?!s||a!==n?h(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):h(x)}function h(x){return r(x)}function y(x){return e.enter("tableRow"),S(x)}function S(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):x===null||he(x)?(e.exit("tableRow"),t(x)):Me(x)?Be(e,S,"whitespace")(x):(e.enter("data"),A(x))}function A(x){return x===null||x===124||dt(x)?(e.exit("data"),S(x)):(e.consume(x),x===92?_:A)}function _(x){return x===92||x===124?(e.consume(x),A):A(x)}}function gO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const m=new fO;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(np(m,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",c,t]])),a=p.type==="tableDelimiterRow"?2:c?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Rs(m,t,n,a,r,f)):s[1]!==0&&(f=Rs(m,t,s,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&np(m,t,l,u,c),m.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=mO(t.events,r))}return e}function Rs(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 u=Di(t.events,r[2]),c=Di(t.events,r[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const m=t.events[r[2]],d=t.events[r[3]];if(m[1].end=Object.assign({},d[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,k=r[3]-r[2]-1;e.add(p,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 np(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 yO={name:"tasklistCheck",tokenize:bO};function vO(){return{text:{91:yO}}}function bO(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 he(l)?t(l):Me(l)?e.check({tokenize:kO},t,r)(l):r(l)}}function kO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function wO(e){return Cv([KA(),rO(),cO(e),pO(),vO()])}const xO={};function SO(e){const t=this,r=e||xO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(wO(r)),n.push(UA()),s.push(BA(r))}const pb=cE,hb=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Ir(e){const t=e.components||{};return t.a||(t.a=hb),N.jsx(pb,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const CO=["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 Kc(e){const t=e.components||{};return t.a||(t.a=hb),N.jsx(pb,{...e,remarkPlugins:[SO],components:t,allowedElements:CO})}/*!
48
+ `))}function l(d,p,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,p){return eA(d,{align:p,alignDelimiters:i,padding:r,stringLength:a})}function c(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("table");for(;++g<v.length;)b[g]=f(v[g],p,k);return w(),b}function f(d,p,k){const v=d.children;let g=-1;const b=[],w=p.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,p,k);return w(),b}function m(d,p,k){let v=lb.inlineCode(d,p,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function $A(){return{exit:{taskListCheckValueChecked:ip,taskListCheckValueUnchecked:ip,paragraph:BA}}}function UA(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:VA}}}function ip(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function BA(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 VA(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=lb.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function HA(){return[SE(),VE(),GE(),NA(),$A()]}function KA(e){return{extensions:[CE(),HE(e),JE(),zA(e),UA()]}}const WA={tokenize:QA,partial:!0},ub={tokenize:eO,partial:!0},cb={tokenize:tO,partial:!0},fb={tokenize:rO,partial:!0},GA={tokenize:nO,partial:!0},db={name:"wwwAutolink",tokenize:XA,previous:pb},mb={name:"protocolAutolink",tokenize:ZA,previous:hb},sn={name:"emailAutolink",tokenize:YA,previous:gb},Jr={};function JA(){return{text:Jr}}let Wn=48;for(;Wn<123;)Jr[Wn]=sn,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);Jr[43]=sn;Jr[45]=sn;Jr[46]=sn;Jr[95]=sn;Jr[72]=[sn,mb];Jr[104]=[sn,mb];Jr[87]=[sn,db];Jr[119]=[sn,db];function YA(e,t,r){const i=this;let a,n;return s;function s(f){return!Kc(f)||!gb.call(i,i.previous)||Jf(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Kc(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(GA,c,u)(f):f===45||f===95||Lt(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&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function XA(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!pb.call(i,i.previous)||Jf(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(WA,e.attempt(ub,e.attempt(cb,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function ZA(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&hb.call(i,i.previous)&&!Jf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Bt(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=a.toLowerCase();if(m==="http"||m==="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||Bo(f)||dt(f)||oi(f)||dl(f)?r(f):e.attempt(ub,e.attempt(cb,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function QA(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(u){return u===46||u===95?e.check(fb,l,o)(u):u===null||dt(u)||oi(u)||u!==45&&dl(u)?l(u):(n=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!n?r(u):t(u)}}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(fb,t,n)(s):s===null||dt(s)||oi(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)||oi(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||oi(o)?t(o):i(o)}function n(o){return Bt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Bt(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 Lt(n)?r(n):t(n)}}function pb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function hb(e){return!Bt(e)}function gb(e){return!(e===47||Kc(e))}function Kc(e){return e===43||e===45||e===46||e===95||Lt(e)}function Jf(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:uO,continuation:{tokenize:cO},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 u=Ar(i.sliceSerialize({start:s.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 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",u)}function u(f){if(n>999||f===93&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Ar(i.sliceSerialize(m)))?(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?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),n++,u):u(f)}}function uO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(s>999||p===93&&!o||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=Ar(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(o=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(p)}function d(p){return t(p)}}function cO(e,t,r){return e.check(is,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 mO(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 u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&ar(m,m.length,0,ml(d,s.slice(u+1,l),o)),ar(m,m.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),ar(s,u-1,l-u+3,m),l=u+m.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 u=this.previous,c=this.events;let f=0;return m;function m(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const k=Ji(u);if(p===126)return f>1?l(p):(s.consume(p),f++,d);if(f<2&&!r)return l(p);const v=s.exit("strikethroughSequenceTemporary"),g=Ji(p);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(p)}}}class pO{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(x){let E=i.events.length-1;for(;E>-1;){const T=i.events[E][1].type;if(T==="lineEnding"||T==="linePrefix")E--;else break}const O=E>-1?i.events[E][1].type:null,R=O==="tableHead"||O==="tableRow"?y:l;return R===y&&i.parser.lazy[i.now().line]?r(x):R(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(s=!0,n+=1),c(x)}function c(x){return x===null?r(x):he(x)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d):r(x):Me(x)?Be(e,c,"whitespace")(x):(n+=1,s&&(s=!1,a+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||dt(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?m:f)}function m(x){return x===92||x===124?(e.consume(x),f):f(x)}function d(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(x):(e.enter("tableDelimiterRow"),s=!1,Me(x)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?v(x):x===124?(s=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):h(x)}function k(x){return Me(x)?Be(e,v,"whitespace")(x):v(x)}function v(x){return x===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(n+=1,g(x)):x===null||he(x)?C(x):h(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),b(x)):h(x)}function b(x){return x===45?(e.consume(x),b):x===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return Me(x)?Be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?p(x):x===null||he(x)?!s||a!==n?h(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):h(x)}function h(x){return r(x)}function y(x){return e.enter("tableRow"),S(x)}function S(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):x===null||he(x)?(e.exit("tableRow"),t(x)):Me(x)?Be(e,S,"whitespace")(x):(e.enter("data"),A(x))}function A(x){return x===null||x===124||dt(x)?(e.exit("data"),S(x)):(e.consume(x),x===92?_:A)}function _(x){return x===92||x===124?(e.consume(x),A):A(x)}}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,u,c,f;const m=new pO;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(ap(m,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",c,t]])),a=p.type==="tableDelimiterRow"?2:c?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Rs(m,t,n,a,r,f)):s[1]!==0&&(f=Rs(m,t,s,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&ap(m,t,l,u,c),m.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 Rs(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 u=Di(t.events,r[2]),c=Di(t.events,r[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const m=t.events[r[2]],d=t.events[r[3]];if(m[1].end=Object.assign({},d[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,k=r[3]-r[2]-1;e.add(p,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 ap(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:xO};function wO(){return{text:{91:kO}}}function xO(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 he(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 CO(e){return Ov([JA(),aO(),mO(e),yO(),wO()])}const EO={};function AO(e){const t=this,r=e||EO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(CO(r)),n.push(HA()),s.push(KA(r))}const yb=mE,vb=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Ir(e){const t=e.components||{};return t.a||(t.a=vb),j.jsx(yb,{...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 Wc(e){const t=e.components||{};return t.a||(t.a=vb),j.jsx(yb,{...e,remarkPlugins:[AO],components:t,allowedElements:OO})}/*!
49
49
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
50
50
  * http://github.com/janl/mustache.js
51
- */var EO=Object.prototype.toString,aa=Array.isArray||function(t){return EO.call(t)==="[object Array]"};function Jf(e){return typeof e=="function"}function AO(e){return aa(e)?"array":typeof e}function vu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ip(e,t){return e!=null&&typeof e=="object"&&t in e}function OO(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var _O=RegExp.prototype.test;function PO(e,t){return _O.call(e,t)}var IO=/\S/;function TO(e){return!PO(IO,e)}var jO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function RO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return jO[r]})}var NO=/\s*/,FO=/\s+/,ap=/\s*=/,DO=/\s*\}/,MO=/#|\^|\/|>|\{|&|=|!/;function LO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",u=0;function c(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function p(A){if(typeof A=="string"&&(A=A.split(FO,2)),!aa(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(vu(A[0])+"\\s*"),m=new RegExp("\\s*"+vu(A[1])),d=new RegExp("\\s*"+vu("}"+A[1]))}p(t||pr.tags);for(var k=new ss(e),v,g,b,w,C,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,S=b.length;y<S;++y)w=b.charAt(y),TO(w)?(n.push(a.length),l+=w):(o=!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(s=!0,g=k.scan(MO)||"name",k.scan(NO),g==="="?(b=k.scanUntil(ap),k.scan(ap),k.scanUntil(m)):g==="{"?(b=k.scanUntil(d),k.scan(DO),k.scanUntil(m),g="&"):b=k.scanUntil(m),!k.scan(m))throw new Error("Unclosed tag at "+k.pos);if(g==">"?C=[g,b,v,k.pos,l,u,r]:C=[g,b,v,k.pos],u++,a.push(C),g==="#"||g==="^")i.push(C);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==="&"?o=!0:g==="="&&p(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return zO(qO(a))}function qO(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 zO(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 ss(e){this.string=e,this.tail=e,this.pos=0}ss.prototype.eos=function(){return this.tail===""};ss.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};ss.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 Yi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Yi.prototype.push=function(t){return new Yi(t,this)};Yi.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=ip(n,s[o])||OO(n,s[o])),n=n[s[o++]];else n=a.view[t],l=ip(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Jf(i)&&(i=i.call(this.view)),i};function Gt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Gt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Gt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||pr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=LO(t,r),n&&i.set(a,s)),s};Gt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Yi?r:new Yi(r,void 0);return this.renderTokens(s,o,i,t,a)};Gt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,u,c=0,f=t.length;c<f;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,r,i,a,n):l==="^"?u=this.renderInverted(o,r,i,a,n):l===">"?u=this.renderPartial(o,r,i,n):l==="&"?u=this.unescapedValue(o,r):l==="name"?u=this.escapedValue(o,r,n):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(s+=u);return s};Gt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(m){return s.render(m,r,i,n)}if(l){if(aa(l))for(var c=0,f=l.length;c<f;++c)o+=this.renderTokens(t[4],r.push(l[c]),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(Jf(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&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}};Gt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||aa(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)};Gt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
51
+ */var _O=Object.prototype.toString,aa=Array.isArray||function(t){return _O.call(t)==="[object Array]"};function Yf(e){return typeof e=="function"}function PO(e){return aa(e)?"array":typeof e}function bu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function sp(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 jO(e,t){return TO.call(e,t)}var RO=/\S/;function NO(e){return!jO(RO,e)}var FO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function DO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return FO[r]})}var MO=/\s*/,LO=/\s+/,op=/\s*=/,qO=/\s*\}/,zO=/#|\^|\/|>|\{|&|=|!/;function $O(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",u=0;function c(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function p(A){if(typeof A=="string"&&(A=A.split(LO,2)),!aa(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(bu(A[0])+"\\s*"),m=new RegExp("\\s*"+bu(A[1])),d=new RegExp("\\s*"+bu("}"+A[1]))}p(t||pr.tags);for(var k=new ss(e),v,g,b,w,C,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,S=b.length;y<S;++y)w=b.charAt(y),NO(w)?(n.push(a.length),l+=w):(o=!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(s=!0,g=k.scan(zO)||"name",k.scan(MO),g==="="?(b=k.scanUntil(op),k.scan(op),k.scanUntil(m)):g==="{"?(b=k.scanUntil(d),k.scan(qO),k.scanUntil(m),g="&"):b=k.scanUntil(m),!k.scan(m))throw new Error("Unclosed tag at "+k.pos);if(g==">"?C=[g,b,v,k.pos,l,u,r]:C=[g,b,v,k.pos],u++,a.push(C),g==="#"||g==="^")i.push(C);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==="&"?o=!0:g==="="&&p(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.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 ss(e){this.string=e,this.tail=e,this.pos=0}ss.prototype.eos=function(){return this.tail===""};ss.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};ss.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 Yi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Yi.prototype.push=function(t){return new Yi(t,this)};Yi.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=sp(n,s[o])||IO(n,s[o])),n=n[s[o++]];else n=a.view[t],l=sp(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Yf(i)&&(i=i.call(this.view)),i};function Gt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Gt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Gt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||pr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=$O(t,r),n&&i.set(a,s)),s};Gt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Yi?r:new Yi(r,void 0);return this.renderTokens(s,o,i,t,a)};Gt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,u,c=0,f=t.length;c<f;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,r,i,a,n):l==="^"?u=this.renderInverted(o,r,i,a,n):l===">"?u=this.renderPartial(o,r,i,n):l==="&"?u=this.unescapedValue(o,r):l==="name"?u=this.escapedValue(o,r,n):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(s+=u);return s};Gt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(m){return s.render(m,r,i,n)}if(l){if(aa(l))for(var c=0,f=l.length;c<f;++c)o+=this.renderTokens(t[4],r.push(l[c]),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(Yf(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&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}};Gt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||aa(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)};Gt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
53
53
  `),s=0;s<n.length;s++)n[s].length&&(s>0||!i)&&(n[s]=a+n[s]);return n.join(`
54
- `)};Gt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Jf(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],u=t[4],c=s;l==0&&u&&(c=this.indentPartial(s,u,o));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}};Gt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Gt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||pr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===pr.escape?String(n):a(n)};Gt.prototype.rawValue=function(t){return t[1]};Gt.prototype.getConfigTags=function(t){return aa(t)?t:t&&typeof t=="object"?t.tags:void 0};Gt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!aa(t))return t.escape};var pr={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){Ka.templateCache=e},get templateCache(){return Ka.templateCache}},Ka=new Gt;pr.clearCache=function(){return Ka.clearCache()};pr.parse=function(t,r){return Ka.parse(t,r)};pr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+AO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Ka.render(t,r,i,a)};pr.escape=RO;pr.Scanner=ss;pr.Context=Yi;pr.Writer=Gt;const bu=e=>e&&typeof e=="object"&&!Array.isArray(e),Wc=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(bu(e)&&bu(r))for(const i in r)bu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Wc(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Wc(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()},UO=([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&&{...Wo(t.properties,i.globalUiSchema)},...t.oneOf&&Wc({},...t.oneOf.map(o=>Wo(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Wo=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=UO([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":$O(o,n)}}},{}),Gc=(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=>Gc(n,t)):r[i]=Gc(a,t):r[i]=a}return r},BO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Gc(a,["ui","isSensitive","isTransient"])},VO=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)}},gb=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&gb(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),HO=(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(gb(JSON.parse(i))):i},KO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(pr.render(HO(e,r),r))};function yb(e){const t=KO(e,e.schema.embedFormOptions);return{schema:BO(t.schema),uiSchema:VO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var ku={exports:{}};/*!
54
+ `)};Gt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Yf(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],u=t[4],c=s;l==0&&u&&(c=this.indentPartial(s,u,o));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}};Gt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Gt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||pr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===pr.escape?String(n):a(n)};Gt.prototype.rawValue=function(t){return t[1]};Gt.prototype.getConfigTags=function(t){return aa(t)?t:t&&typeof t=="object"?t.tags:void 0};Gt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!aa(t))return t.escape};var pr={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){Ka.templateCache=e},get templateCache(){return Ka.templateCache}},Ka=new Gt;pr.clearCache=function(){return Ka.clearCache()};pr.parse=function(t,r){return Ka.parse(t,r)};pr.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 Ka.render(t,r,i,a)};pr.escape=DO;pr.Scanner=ss;pr.Context=Yi;pr.Writer=Gt;const ku=e=>e&&typeof e=="object"&&!Array.isArray(e),Gc=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(ku(e)&&ku(r))for(const i in r)ku(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Gc(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Gc(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&&{...Wo(t.properties,i.globalUiSchema)},...t.oneOf&&Gc({},...t.oneOf.map(o=>Wo(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Wo=(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)}}},{}),Jc=(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=>Jc(n,t)):r[i]=Jc(a,t):r[i]=a}return r},KO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Jc(a,["ui","isSensitive","isTransient"])},WO=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)}},bb=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&bb(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(bb(JSON.parse(i))):i},JO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(pr.render(GO(e,r),r))};function kb(e){const t=JO(e,e.schema.embedFormOptions);return{schema:KO(t.schema),uiSchema:WO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var wu={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 sp;function WO(){return sp||(sp=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})()})(ku)),ku.exports}var GO=WO();const wn=Wr(GO);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 vb(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 op(e){if(e==="")return;if(e===null)return null;const t=vb(),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 Sn=Symbol("__additional_property"),qi="additionalProperties",Hr="allOf",Le="anyOf",Kt="const",li="default",Yf="dependencies",YO="enum",Nt="__errors",nt="$id",Xf="if",Xi="items",XO="_$junk_option_schema_id$_",jo="$name",Ae="oneOf",Jc="patternProperties",$e="properties",wu="readonly",bb="required",Go="submitButtonOptions",at="$ref",Ro=Symbol("__rjsf_ref"),Zf=Symbol("__rjsf_ref_cycle"),Ia="$schema",kb="root",wb="_",ZO=["discriminator","propertyName"],lp="formContext",QO="layoutGridLookupMap",xb="__rjsf",Qf=`${xb}_additionalProperties`,Sb=`${xb}_rootSchema`,e_="ui:field",ed="ui:widget",Cn="ui:options",Yc="ui:globalOptions",t_="ui:definitions",r_="https://json-schema.org/draft/2019-09/schema",No="https://json-schema.org/draft/2020-12/schema";function me(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===ed&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===Cn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Cb(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=me(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Eb=typeof global=="object"&&global&&global.Object===Object&&global,n_=typeof self=="object"&&self&&self.Object===Object&&self,Yr=Eb||n_||Function("return this")(),hr=Yr.Symbol,Ab=Object.prototype,i_=Ab.hasOwnProperty,a_=Ab.toString,wa=hr?hr.toStringTag:void 0;function s_(e){var t=i_.call(e,wa),r=e[wa];try{e[wa]=void 0;var i=!0}catch{}var a=a_.call(e);return i&&(t?e[wa]=r:delete e[wa]),a}var o_=Object.prototype,l_=o_.toString;function u_(e){return l_.call(e)}var c_="[object Null]",f_="[object Undefined]",up=hr?hr.toStringTag:void 0;function sn(e){return e==null?e===void 0?f_:c_:up&&up in Object(e)?s_(e):u_(e)}function Ob(e,t){return function(r){return e(t(r))}}var gl=Ob(Object.getPrototypeOf,Object);function gr(e){return e!=null&&typeof e=="object"}var d_="[object Object]",m_=Function.prototype,p_=Object.prototype,_b=m_.toString,h_=p_.hasOwnProperty,g_=_b.call(Object);function jn(e){if(!gr(e)||sn(e)!=d_)return!1;var t=gl(e);if(t===null)return!0;var r=h_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_b.call(r)==g_}function Xc(e){const t={[Nt]:[],addError(r){this[Nt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:Xc(i)}),t);if(jn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:Xc(r[a])}),t)}return t}var jt=Array.isArray,y_="[object Symbol]";function os(e){return typeof e=="symbol"||gr(e)&&sn(e)==y_}var v_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b_=/^\w*$/;function td(e,t){if(jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||os(e)?!0:b_.test(e)||!v_.test(e)||t!=null&&e in Object(t)}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var k_="[object AsyncFunction]",w_="[object Function]",x_="[object GeneratorFunction]",S_="[object Proxy]";function ls(e){if(!Ue(e))return!1;var t=sn(e);return t==w_||t==x_||t==k_||t==S_}var xu=Yr["__core-js_shared__"],cp=(function(){var e=/[^.]+$/.exec(xu&&xu.keys&&xu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function C_(e){return!!cp&&cp in e}var E_=Function.prototype,A_=E_.toString;function bi(e){if(e!=null){try{return A_.call(e)}catch{}try{return e+""}catch{}}return""}var O_=/[\\^$.*+?()[\]{}|]/g,__=/^\[object .+?Constructor\]$/,P_=Function.prototype,I_=Object.prototype,T_=P_.toString,j_=I_.hasOwnProperty,R_=RegExp("^"+T_.call(j_).replace(O_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N_(e){if(!Ue(e)||C_(e))return!1;var t=ls(e)?R_:__;return t.test(bi(e))}function F_(e,t){return e==null?void 0:e[t]}function ki(e,t){var r=F_(e,t);return N_(r)?r:void 0}var Wa=ki(Object,"create");function D_(){this.__data__=Wa?Wa(null):{},this.size=0}function M_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var L_="__lodash_hash_undefined__",q_=Object.prototype,z_=q_.hasOwnProperty;function $_(e){var t=this.__data__;if(Wa){var r=t[e];return r===L_?void 0:r}return z_.call(t,e)?t[e]:void 0}var U_=Object.prototype,B_=U_.hasOwnProperty;function V_(e){var t=this.__data__;return Wa?t[e]!==void 0:B_.call(t,e)}var H_="__lodash_hash_undefined__";function K_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wa&&t===void 0?H_:t,this}function ui(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])}}ui.prototype.clear=D_;ui.prototype.delete=M_;ui.prototype.get=$_;ui.prototype.has=V_;ui.prototype.set=K_;function W_(){this.__data__=[],this.size=0}function us(e,t){return e===t||e!==e&&t!==t}function yl(e,t){for(var r=e.length;r--;)if(us(e[r][0],t))return r;return-1}var G_=Array.prototype,J_=G_.splice;function Y_(e){var t=this.__data__,r=yl(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 X_(e){var t=this.__data__,r=yl(t,e);return r<0?void 0:t[r][1]}function Z_(e){return yl(this.__data__,e)>-1}function Q_(e,t){var r=this.__data__,i=yl(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function on(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])}}on.prototype.clear=W_;on.prototype.delete=Y_;on.prototype.get=X_;on.prototype.has=Z_;on.prototype.set=Q_;var Ga=ki(Yr,"Map");function eP(){this.size=0,this.__data__={hash:new ui,map:new(Ga||on),string:new ui}}function tP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vl(e,t){var r=e.__data__;return tP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rP(e){var t=vl(this,e).delete(e);return this.size-=t?1:0,t}function nP(e){return vl(this,e).get(e)}function iP(e){return vl(this,e).has(e)}function aP(e,t){var r=vl(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function ln(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])}}ln.prototype.clear=eP;ln.prototype.delete=rP;ln.prototype.get=nP;ln.prototype.has=iP;ln.prototype.set=aP;var sP="Expected a function";function rd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sP);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(rd.Cache||ln),r}rd.Cache=ln;var oP=500;function lP(e){var t=rd(e,function(i){return r.size===oP&&r.clear(),i}),r=t.cache;return t}var uP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cP=/\\(\\)?/g,Pb=lP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uP,function(r,i,a,n){t.push(a?n.replace(cP,"$1"):i||r)}),t});function sa(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 fp=hr?hr.prototype:void 0,dp=fp?fp.toString:void 0;function Ib(e){if(typeof e=="string")return e;if(jt(e))return sa(e,Ib)+"";if(os(e))return dp?dp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function nd(e){return e==null?"":Ib(e)}function oa(e,t){return jt(e)?e:td(e,t)?[e]:Pb(nd(e))}function Rn(e){if(typeof e=="string"||os(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function bl(e,t){t=oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Rn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:bl(e,t);return i===void 0?r:i}const{getOwnPropertyNames:mp,getOwnPropertySymbols:fP}=Object,{hasOwnProperty:dP}=Object.prototype;function Su(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ns(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 pp(e){const t=fP(e);return t.length?mp(e).concat(t):mp(e)}const mP=Object.hasOwn||((e,t)=>dP.call(e,t)),pP="__v",hP="__o",gP="_owner",{getOwnPropertyDescriptor:hp,keys:gp}=Object,wi=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function yP(e,t){return e===t}function vP(e,t){return e.byteLength===t.byteLength&&Jo(new Uint8Array(e),new Uint8Array(t))}function bP(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 kP(e,t){return e.byteLength===t.byteLength&&Jo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function wP(e,t){return wi(e.getTime(),t.getTime())}function xP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function yp(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 u=t.entries();let c=0,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const m=s.value,d=o.value;if(r.equals(m[0],d[0],l,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function SP(e,t,r){const i=gp(e);let a=i.length;if(gp(t).length!==a)return!1;for(;a-- >0;)if(!Tb(e,t,r,i[a]))return!1;return!0}function xa(e,t,r){const i=pp(e);let a=i.length;if(pp(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Tb(e,t,r,n)||(s=hp(e,n),o=hp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function CP(e,t){return wi(e.valueOf(),t.valueOf())}function EP(e,t){return e.source===t.source&&e.flags===t.flags}function vp(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 u=0,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function Jo(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 AP(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 Tb(e,t,r,i){return(i===gP||i===hP||i===pP)&&(e.$$typeof||t.$$typeof)?!0:mP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const OP=Object.prototype.toString;function _P(e){const t=jP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(m,d,p){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(m,d,p):k==="function"?a(m,d,p):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(m,d,p);if(v===Array)return r(m,d,p);if(v===Date)return i(m,d,p);if(v===RegExp)return l(m,d,p);if(v===Map)return n(m,d,p);if(v===Set)return u(m,d,p);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,p);const g=OP.call(m),b=t[g];if(b)return b(m,d,p);const w=c&&c(m,d,p,g);return w?w(m,d,p):!1}}function PP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:vP,areArraysEqual:r?xa:bP,areDataViewsEqual:kP,areDatesEqual:wP,areErrorsEqual:xP,areFunctionsEqual:yP,areMapsEqual:r?Su(yp,xa):yp,areNumbersEqual:wi,areObjectsEqual:r?xa:SP,arePrimitiveWrappersEqual:CP,areRegExpsEqual:EP,areSetsEqual:r?Su(vp,xa):vp,areTypedArraysEqual:r?Su(Jo,xa):Jo,areUrlsEqual:AP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ns(i.areArraysEqual),n=Ns(i.areMapsEqual),s=Ns(i.areObjectsEqual),o=Ns(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function IP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function TP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(o,l,{cache:u,equals:i,meta:c,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 jP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":s,"[object Number]":u,"[object Object]":(p,k,v)=>typeof p.then!="function"&&typeof k.then!="function"&&l(p,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}un();un({strict:!0});un({circular:!0});un({circular:!0,strict:!0});un({createInternalComparator:()=>wi});un({strict:!0,createInternalComparator:()=>wi});un({circular:!0,createInternalComparator:()=>wi});un({circular:!0,createInternalComparator:()=>wi,strict:!0});function un(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=PP(e),s=_P(n),o=r?r(s):IP(s);return TP({circular:t,comparator:s,createState:i,equals:o,strict:a})}const ze=un({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Sa={exports:{}},Cu,bp;function jb(){if(bp)return Cu;bp=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(x){let E="",O=0,j=0;for(j=0;j<x.length;j++)if(O=x[j].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[j];break}for(j+=1;j<x.length;j++){if(O=x[j].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[j]}return E}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(x){return x.length=0,!0}function u(x,E,O){if(x.length){const j=s(x);if(j!=="")E.push(j);else return O.error=!0,!1;x.length=0}return!0}function c(x){let E=0;const O={error:!1,address:"",zone:""},j=[],T=[];let F=!1,L=!1,J=u;for(let Y=0;Y<x.length;Y++){const Q=x[Y];if(!(Q==="["||Q==="]"))if(Q===":"){if(F===!0&&(L=!0),!J(T,j,O))break;if(++E>7){O.error=!0;break}Y>0&&x[Y-1]===":"&&(F=!0),j.push(":");continue}else if(Q==="%"){if(!J(T,j,O))break;J=l}else{T.push(Q);continue}}return T.length&&(J===l?O.zone=T.join(""):L?j.push(T.join("")):j.push(s(T))),O.address=j.join(""),O}function f(x){if(m(x,":")<2)return{host:x,isIPV6:!1};const E=c(x);if(E.error)return{host:x,isIPV6:!1};{let O=E.address,j=E.address;return E.zone&&(O+="%"+E.zone,j+="%25"+E.zone),{host:O,isIPV6:!0,escapedHost:j}}}function m(x,E){let O=0;for(let j=0;j<x.length;j++)x[j]===E&&O++;return O}function d(x){let E=x;const O=[];let j=-1,T=0;for(;T=E.length;){if(T===1){if(E===".")break;if(E==="/"){O.push("/");break}else{O.push(E);break}}else if(T===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){O.push("/");break}}else if(T===3&&E==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),O.length!==0&&O.pop();continue}}if((j=E.indexOf("/",1))===-1){O.push(E);break}else O.push(E.slice(0,j)),E=E.slice(j)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(x,E){const O=E?v:k;return O.lastIndex=0,x.replace(O,j=>p[j])}function b(x,E=!1){if(x.indexOf("%")===-1)return x;let O="";for(let j=0;j<x.length;j++){if(x[j]==="%"&&j+2<x.length){const T=x.slice(j+1,j+3);if(r(T)){const F=T.toUpperCase(),L=String.fromCharCode(parseInt(F,16));E&&i(L)?O+=L:O+="%"+F,j+=2;continue}}O+=x[j]}return O}const w=new Array(256);{const x="0123456789ABCDEF";for(let E=0;E<256;E++)w[E]="%"+x[E>>4]+x[E&15]}function C(x){return x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||x===42||x===43||x===45||x===46||x===47||x===64||x===95}function h(x){return x<2048?w[192|x>>6]+w[128|x&63]:x<65536?w[224|x>>12]+w[128|x>>6&63]+w[128|x&63]:w[240|x>>18]+w[128|x>>12&63]+w[128|x>>6&63]+w[128|x&63]}function y(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const F=T.toUpperCase(),L=String.fromCharCode(parseInt(F,16));L!=="."&&i(L)?E+=L:E+="%"+F,O+=2;continue}}if(a(j))E+=j;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function S(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const F=T.toUpperCase(),L=String.fromCharCode(parseInt(F,16));i(L)?E+=L:E+="%"+F,O+=2;continue}}if(n(j))E+=j;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function A(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const F=x.slice(O+1,O+3);if(r(F)){E+="%"+F.toUpperCase(),O+=2;continue}}const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}return E}function _(x){const E=[];if(x.userinfo!==void 0&&(E.push(x.userinfo),E.push("@")),x.host!==void 0){let O=unescape(x.host);if(!t(O)){const j=f(O);j.isIPV6===!0?O=`[${j.escapedHost}]`:O=g(O,!1)}E.push(O)}return(typeof x.port=="number"||typeof x.port=="string")&&(E.push(":"),E.push(String(x.port))),E.length?E.join(""):void 0}return Cu={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Cu}var Eu,kp;function RP(){if(kp)return Eu;kp=1;const{isUUID:e}=jb(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;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 m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Eu={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Eu}var wp;function NP(){if(wp)return Sa.exports;wp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=jb(),{SCHEMES:c,getSchemeHandler:f}=RP();function m(E,O){return typeof E=="string"?E=S(E,O):typeof E=="object"&&(E=y(v(E,O),O)),E}function d(E,O,j){const T=j?Object.assign({scheme:"null"},j):{scheme:"null"},{parsed:F,malformedAuthorityOrPort:L}=h(E,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(L||Y)throw new Error(F.error||J.error||"URI is malformed.");const Q=p(F,J,T,!0);return T.skipEscape=!0,v(Q,T)}function p(E,O,j,T){const F={};return T||(E=y(v(E,j),j),O=y(v(O,j),j)),j=j||{},!j.tolerant&&O.scheme?(F.scheme=O.scheme,F.userinfo=O.userinfo,F.host=O.host,F.port=O.port,F.path=t(O.path||""),F.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(F.userinfo=O.userinfo,F.host=O.host,F.port=O.port,F.path=t(O.path||""),F.query=O.query):(O.path?(O.path[0]==="/"?F.path=t(O.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?F.path="/"+O.path:E.path?F.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+O.path:F.path=O.path,F.path=t(F.path)),F.query=O.query):(F.path=E.path,O.query!==void 0?F.query=O.query:F.query=E.query),F.userinfo=E.userinfo,F.host=E.host,F.port=E.port),F.scheme=E.scheme),F.fragment=O.fragment,F}function k(E,O,j){const T=_(E,j),F=_(O,j);return T!==void 0&&F!==void 0&&T.toLowerCase()===F.toLowerCase()}function v(E,O){const j={host:E.host,scheme:E.scheme,userinfo:E.userinfo,port:E.port,path:E.path,query:E.query,nid:E.nid,nss:E.nss,uuid:E.uuid,fragment:E.fragment,reference:E.reference,resourceName:E.resourceName,secure:E.secure,error:""},T=Object.assign({},O),F=[],L=f(T.scheme||j.scheme);L&&L.serialize&&L.serialize(j,T),j.path!==void 0&&(T.skipEscape?j.path=i(j.path):(j.path=s(j.path),j.scheme!==void 0&&(j.path=j.path.split("%3A").join(":")))),T.reference!=="suffix"&&j.scheme&&F.push(j.scheme,":");const J=r(j);if(J!==void 0&&(T.reference!=="suffix"&&F.push("//"),F.push(J),j.path&&j.path[0]!=="/"&&F.push("/")),j.path!==void 0){let Y=j.path;!T.absolutePath&&(!L||!L.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),F.push(Y)}return j.query!==void 0&&F.push("?",j.query),j.fragment!==void 0&&F.push("#",j.fragment),F.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function C(E,O){if(O[2]!==void 0&&E.path&&E.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof E.port=="number"&&(E.port<0||E.port>65535))return"URI port is malformed."}function h(E,O){const j=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let F=!1,L=!1;j.reference==="suffix"&&(j.scheme?E=j.scheme+":"+E:E="//"+E);const J=E.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",F=!0);const Y=E.match(w);if(Y!==null){const P=Y[1],D=P.replace(/[\t\n\r]/g,"");D.length>=2&&(D.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",F=!0):P.length!==D.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",F=!0))}const Q=E.match(g);if(Q){T.scheme=Q[1]===void 0?void 0:Q[1].toLowerCase(),T.userinfo=Q[3],T.host=Q[4],T.port=parseInt(Q[5],10),T.path=Q[6]||"",T.query=Q[7],T.fragment=Q[8],isNaN(T.port)&&(T.port=Q[5]);const P=C(T,Q);if(P!==void 0&&(T.error=T.error||P,F=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),L=I.isIPV6}else L=!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",j.reference&&j.reference!=="suffix"&&j.reference!==T.reference&&(T.error=T.error||"URI is not a "+j.reference+" reference.");const D=f(j.scheme||T.scheme);if(!j.unicodeSupport&&(!D||!D.unicodeSupport)&&T.host&&(j.domainHost||D&&D.domainHost)&&L===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(B){T.error=T.error||"Host's domain name can not be converted to ASCII: "+B}(!D||D&&!D.skipNormalize)&&(E.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=o(unescape(T.host),L))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),D&&D.parse&&D.parse(T,j)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:F}}function y(E,O){return h(E,O).parsed}function S(E,O){return A(E,O).normalized}function A(E,O){const{parsed:j,malformedAuthorityOrPort:T}=h(E,O);return{normalized:T?E:v(j,O),malformedAuthorityOrPort:T}}function _(E,O){if(typeof E=="string"){const{normalized:j,malformedAuthorityOrPort:T}=A(E,O);return T?void 0:j}if(typeof E=="object")return v(E,O)}const x={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:k,serialize:v,parse:y};return Sa.exports=x,Sa.exports.default=x,Sa.exports.fastUri=x,Sa.exports}var FP=NP();const id=Wr(FP);var Ca={},xp;function DP(){if(xp)return Ca;xp=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 m,d,p=1,k=c.length;p<k;){if(c[p]==="constructor"||c[p]==="prototype"||c[p]==="__proto__")return u;if(m=i(c[p++]),d=k>p,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),d&&(c[p]!==""&&c[p]<1/0||c[p]==="-"?u[m]=[]:u[m]={})),!d)break;u=u[m]}var v=u[m];return f===void 0?delete u[m]:u[m]=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 s(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 m=1;m<f;){if(u=u[i(c[m++])],f===m)return u;if(typeof u!="object"||u===null)return}}function o(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 s(f,c)},set:function(f,m){return o(f,c,m)}}}return Ca.get=s,Ca.set=o,Ca.compile=l,Ca}var MP=DP();const Au=Wr(MP);var LP=Object.prototype;function kl(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||LP;return e===r}var qP=Ob(Object.keys,Object),zP=Object.prototype,$P=zP.hasOwnProperty;function Rb(e){if(!kl(e))return qP(e);var t=[];for(var r in Object(e))$P.call(e,r)&&r!="constructor"&&t.push(r);return t}var Zc=ki(Yr,"DataView"),Qc=ki(Yr,"Promise"),Hi=ki(Yr,"Set"),ef=ki(Yr,"WeakMap"),Sp="[object Map]",UP="[object Object]",Cp="[object Promise]",Ep="[object Set]",Ap="[object WeakMap]",Op="[object DataView]",BP=bi(Zc),VP=bi(Ga),HP=bi(Qc),KP=bi(Hi),WP=bi(ef),cr=sn;(Zc&&cr(new Zc(new ArrayBuffer(1)))!=Op||Ga&&cr(new Ga)!=Sp||Qc&&cr(Qc.resolve())!=Cp||Hi&&cr(new Hi)!=Ep||ef&&cr(new ef)!=Ap)&&(cr=function(e){var t=sn(e),r=t==UP?e.constructor:void 0,i=r?bi(r):"";if(i)switch(i){case BP:return Op;case VP:return Sp;case HP:return Cp;case KP:return Ep;case WP:return Ap}return t});var GP="[object Arguments]";function _p(e){return gr(e)&&sn(e)==GP}var Nb=Object.prototype,JP=Nb.hasOwnProperty,YP=Nb.propertyIsEnumerable,Zi=_p((function(){return arguments})())?_p:function(e){return gr(e)&&JP.call(e,"callee")&&!YP.call(e,"callee")},XP=9007199254740991;function ad(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=XP}function xi(e){return e!=null&&ad(e.length)&&!ls(e)}function ZP(){return!1}var Fb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pp=Fb&&typeof module=="object"&&module&&!module.nodeType&&module,QP=Pp&&Pp.exports===Fb,Ip=QP?Yr.Buffer:void 0,eI=Ip?Ip.isBuffer:void 0,ci=eI||ZP,tI="[object Arguments]",rI="[object Array]",nI="[object Boolean]",iI="[object Date]",aI="[object Error]",sI="[object Function]",oI="[object Map]",lI="[object Number]",uI="[object Object]",cI="[object RegExp]",fI="[object Set]",dI="[object String]",mI="[object WeakMap]",pI="[object ArrayBuffer]",hI="[object DataView]",gI="[object Float32Array]",yI="[object Float64Array]",vI="[object Int8Array]",bI="[object Int16Array]",kI="[object Int32Array]",wI="[object Uint8Array]",xI="[object Uint8ClampedArray]",SI="[object Uint16Array]",CI="[object Uint32Array]",ht={};ht[gI]=ht[yI]=ht[vI]=ht[bI]=ht[kI]=ht[wI]=ht[xI]=ht[SI]=ht[CI]=!0;ht[tI]=ht[rI]=ht[pI]=ht[nI]=ht[hI]=ht[iI]=ht[aI]=ht[sI]=ht[oI]=ht[lI]=ht[uI]=ht[cI]=ht[fI]=ht[dI]=ht[mI]=!1;function EI(e){return gr(e)&&ad(e.length)&&!!ht[sn(e)]}function sd(e){return function(t){return e(t)}}var Db=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qa=Db&&typeof module=="object"&&module&&!module.nodeType&&module,AI=qa&&qa.exports===Db,Ou=AI&&Eb.process,Qi=(function(){try{var e=qa&&qa.require&&qa.require("util").types;return e||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),Tp=Qi&&Qi.isTypedArray,cs=Tp?sd(Tp):EI,OI="[object Map]",_I="[object Set]",PI=Object.prototype,II=PI.hasOwnProperty;function wt(e){if(e==null)return!0;if(xi(e)&&(jt(e)||typeof e=="string"||typeof e.splice=="function"||ci(e)||cs(e)||Zi(e)))return!e.length;var t=cr(e);if(t==OI||t==_I)return!e.size;if(kl(e))return!Rb(e).length;for(var r in e)if(II.call(e,r))return!1;return!0}function TI(){this.__data__=new on,this.size=0}function jI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function RI(e){return this.__data__.get(e)}function NI(e){return this.__data__.has(e)}var FI=200;function DI(e,t){var r=this.__data__;if(r instanceof on){var i=r.__data__;if(!Ga||i.length<FI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ln(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new on(e);this.size=t.size}Or.prototype.clear=TI;Or.prototype.delete=jI;Or.prototype.get=RI;Or.prototype.has=NI;Or.prototype.set=DI;function od(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Yo=(function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ld(e,t,r){t=="__proto__"&&Yo?Yo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var MI=Object.prototype,LI=MI.hasOwnProperty;function ud(e,t,r){var i=e[t];(!(LI.call(e,t)&&us(i,r))||r===void 0&&!(t in e))&&ld(e,t,r)}function la(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?ld(r,o,l):ud(r,o,l)}return r}function Mb(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var qI=9007199254740991,zI=/^(?:0|[1-9]\d*)$/;function wl(e,t){var r=typeof e;return t=t??qI,!!t&&(r=="number"||r!="symbol"&&zI.test(e))&&e>-1&&e%1==0&&e<t}var $I=Object.prototype,UI=$I.hasOwnProperty;function Lb(e,t){var r=jt(e),i=!r&&Zi(e),a=!r&&!i&&ci(e),n=!r&&!i&&!a&&cs(e),s=r||i||a||n,o=s?Mb(e.length,String):[],l=o.length;for(var u in e)(t||UI.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wl(u,l)))&&o.push(u);return o}function Cr(e){return xi(e)?Lb(e):Rb(e)}function BI(e,t){return e&&la(t,Cr(t),e)}function VI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var HI=Object.prototype,KI=HI.hasOwnProperty;function WI(e){if(!Ue(e))return VI(e);var t=kl(e),r=[];for(var i in e)i=="constructor"&&(t||!KI.call(e,i))||r.push(i);return r}function fs(e){return xi(e)?Lb(e,!0):WI(e)}function GI(e,t){return e&&la(t,fs(t),e)}var qb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jp=qb&&typeof module=="object"&&module&&!module.nodeType&&module,JI=jp&&jp.exports===qb,Rp=JI?Yr.Buffer:void 0,Np=Rp?Rp.allocUnsafe:void 0;function zb(e,t){if(t)return e.slice();var r=e.length,i=Np?Np(r):new e.constructor(r);return e.copy(i),i}function cd(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function YI(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 $b(){return[]}var XI=Object.prototype,ZI=XI.propertyIsEnumerable,Fp=Object.getOwnPropertySymbols,fd=Fp?function(e){return e==null?[]:(e=Object(e),YI(Fp(e),function(t){return ZI.call(e,t)}))}:$b;function QI(e,t){return la(e,fd(e),t)}function dd(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var eT=Object.getOwnPropertySymbols,Ub=eT?function(e){for(var t=[];e;)dd(t,fd(e)),e=gl(e);return t}:$b;function tT(e,t){return la(e,Ub(e),t)}function Bb(e,t,r){var i=t(e);return jt(e)?i:dd(i,r(e))}function tf(e){return Bb(e,Cr,fd)}function md(e){return Bb(e,fs,Ub)}var rT=Object.prototype,nT=rT.hasOwnProperty;function iT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nT.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Xo=Yr.Uint8Array;function pd(e){var t=new e.constructor(e.byteLength);return new Xo(t).set(new Xo(e)),t}function aT(e,t){var r=t?pd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var sT=/\w*$/;function oT(e){var t=new e.constructor(e.source,sT.exec(e));return t.lastIndex=e.lastIndex,t}var Dp=hr?hr.prototype:void 0,Mp=Dp?Dp.valueOf:void 0;function lT(e){return Mp?Object(Mp.call(e)):{}}function Vb(e,t){var r=t?pd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var uT="[object Boolean]",cT="[object Date]",fT="[object Map]",dT="[object Number]",mT="[object RegExp]",pT="[object Set]",hT="[object String]",gT="[object Symbol]",yT="[object ArrayBuffer]",vT="[object DataView]",bT="[object Float32Array]",kT="[object Float64Array]",wT="[object Int8Array]",xT="[object Int16Array]",ST="[object Int32Array]",CT="[object Uint8Array]",ET="[object Uint8ClampedArray]",AT="[object Uint16Array]",OT="[object Uint32Array]";function _T(e,t,r){var i=e.constructor;switch(t){case yT:return pd(e);case uT:case cT:return new i(+e);case vT:return aT(e,r);case bT:case kT:case wT:case xT:case ST:case CT:case ET:case AT:case OT:return Vb(e,r);case fT:return new i;case dT:case hT:return new i(e);case mT:return oT(e);case pT:return new i;case gT:return lT(e)}}var Lp=Object.create,Hb=(function(){function e(){}return function(t){if(!Ue(t))return{};if(Lp)return Lp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Kb(e){return typeof e.constructor=="function"&&!kl(e)?Hb(gl(e)):{}}var PT="[object Map]";function IT(e){return gr(e)&&cr(e)==PT}var qp=Qi&&Qi.isMap,TT=qp?sd(qp):IT,jT="[object Set]";function RT(e){return gr(e)&&cr(e)==jT}var zp=Qi&&Qi.isSet,NT=zp?sd(zp):RT,FT=1,DT=2,MT=4,Wb="[object Arguments]",LT="[object Array]",qT="[object Boolean]",zT="[object Date]",$T="[object Error]",Gb="[object Function]",UT="[object GeneratorFunction]",BT="[object Map]",VT="[object Number]",Jb="[object Object]",HT="[object RegExp]",KT="[object Set]",WT="[object String]",GT="[object Symbol]",JT="[object WeakMap]",YT="[object ArrayBuffer]",XT="[object DataView]",ZT="[object Float32Array]",QT="[object Float64Array]",ej="[object Int8Array]",tj="[object Int16Array]",rj="[object Int32Array]",nj="[object Uint8Array]",ij="[object Uint8ClampedArray]",aj="[object Uint16Array]",sj="[object Uint32Array]",mt={};mt[Wb]=mt[LT]=mt[YT]=mt[XT]=mt[qT]=mt[zT]=mt[ZT]=mt[QT]=mt[ej]=mt[tj]=mt[rj]=mt[BT]=mt[VT]=mt[Jb]=mt[HT]=mt[KT]=mt[WT]=mt[GT]=mt[nj]=mt[ij]=mt[aj]=mt[sj]=!0;mt[$T]=mt[Gb]=mt[JT]=!1;function za(e,t,r,i,a,n){var s,o=t&FT,l=t&DT,u=t&MT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Ue(e))return e;var c=jt(e);if(c){if(s=iT(e),!o)return cd(e,s)}else{var f=cr(e),m=f==Gb||f==UT;if(ci(e))return zb(e,o);if(f==Jb||f==Wb||m&&!a){if(s=l||m?{}:Kb(e),!o)return l?tT(e,GI(s,e)):QI(e,BI(s,e))}else{if(!mt[f])return a?e:{};s=_T(e,f,o)}}n||(n=new Or);var d=n.get(e);if(d)return d;n.set(e,s),NT(e)?e.forEach(function(v){s.add(za(v,t,r,v,e,n))}):TT(e)&&e.forEach(function(v,g){s.set(g,za(v,t,r,g,e,n))});var p=u?l?md:tf:l?fs:Cr,k=c?void 0:p(e);return od(k||e,function(v,g){k&&(g=v,v=e[g]),ud(s,g,za(v,t,r,g,e,n))}),s}function Yb(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function oj(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 lj(e,t){return t.length<2?e:bl(e,oj(t,0,-1))}var uj=Object.prototype,cj=uj.hasOwnProperty;function Xb(e,t){t=oa(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=Rn(t[r]);if(a==="__proto__"&&!cj.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=lj(e,t);return n==null||delete n[Rn(Yb(t))]}function fj(e){return jn(e)?void 0:e}var $p=hr?hr.isConcatSpreadable:void 0;function dj(e){return jt(e)||Zi(e)||!!($p&&e&&e[$p])}function ds(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=dj),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?ds(o,t-1,r,i,a):dd(a,o):i||(a[a.length]=o)}return a}function rf(e){var t=e==null?0:e.length;return t?ds(e,1):[]}function mj(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 Up=Math.max;function Zb(e,t,r){return t=Up(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Up(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),mj(e,this,o)}}function pj(e){return function(){return e}}function xl(e){return e}var hj=Yo?function(e,t){return Yo(e,"toString",{configurable:!0,enumerable:!1,value:pj(t),writable:!0})}:xl,gj=800,yj=16,vj=Date.now;function bj(e){var t=0,r=0;return function(){var i=vj(),a=yj-(i-r);if(r=i,a>0){if(++t>=gj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qb=bj(hj);function ek(e){return Qb(Zb(e,void 0,rf),e+"")}var kj=1,wj=2,xj=4,Ja=ek(function(e,t){var r={};if(e==null)return r;var i=!1;t=sa(t,function(n){return n=oa(n,e),i||(i=n.length>1),n}),la(e,md(e),r),i&&(r=za(r,kj|wj|xj,fj));for(var a=t.length;a--;)Xb(r,t[a]);return r});function Zo(e,t){if(nt in e&&id.equal(e[nt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Ue(i)){const a=Zo(i,t);if(a!==void 0)return a}}else if(Ue(r)){const i=Zo(r,t);if(i!==void 0)return i}}function nf(e,t){const r=ae(e,nt,t);let i=e;at in i&&(i={...i,[at]:id.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Ue(s)?nf(s,r):s)}:Ue(n)&&(i={...i,[a]:nf(n,r)});return i}function hd(e,t){const r=t[e];return[Ja(t,[e]),r]}function tk(e,t={},r=[],i=ae(t,[nt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||nt in t&&t[nt]===s?n=Au.get(t,l):t[Ia]===No&&(n=Zo(t,s.replace(/\/$/,"")),n!==void 0&&(n=Au.get(n,l)))}else if(t[Ia]===No){const l=s?id.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=Zo(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[nt],wt(c)||(n=Au.get(n,decodeURIComponent(c.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,...m]=r,d=[...m,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=hd(at,n),c=tk(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ia]===r_||t[Ia]===No?{[Hr]:[l,c]}:{...l,...c}:c}return n}function Ya(e,t={},r=ae(t,[nt])){return tk(e,t,[],r)}var Sj=Object.prototype,Cj=Sj.hasOwnProperty;function Ej(e,t){return e!=null&&Cj.call(e,t)}function rk(e,t,r){t=oa(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=Rn(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&&ad(a)&&wl(s,a)&&(jt(e)||Zi(e)))}function qe(e,t){return e!=null&&rk(e,t,Ej)}var Aj="[object String]";function Nn(e){return typeof e=="string"||!jt(e)&&gr(e)&&sn(e)==Aj}function yr(e){let t;const r=ae(e,ZO);return Nn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var Oj=1/0;function _j(e){var t=e==null?0:e.length;return t?ds(e,Oj):[]}function af(e,t,r){(r!==void 0&&!us(e[t],r)||r===void 0&&!(t in e))&&ld(e,t,r)}function Pj(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 nk=Pj();function Xa(e){return gr(e)&&xi(e)}function sf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ij(e){return la(e,fs(e))}function Tj(e,t,r,i,a,n,s){var o=sf(e,r),l=sf(t,r),u=s.get(l);if(u){af(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var m=jt(l),d=!m&&ci(l),p=!m&&!d&&cs(l);c=l,m||d||p?jt(o)?c=o:Xa(o)?c=cd(o):d?(f=!1,c=zb(l,!0)):p?(f=!1,c=Vb(l,!0)):c=[]:jn(l)||Zi(l)?(c=o,Zi(o)?c=Ij(o):(!Ue(o)||ls(o))&&(c=Kb(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),af(e,r,c)}function ik(e,t,r,i,a){e!==t&&nk(t,function(n,s){if(a||(a=new Or),Ue(n))Tj(e,t,s,r,ik,i,a);else{var o=i?i(sf(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),af(e,s,o)}},fs)}function Sl(e,t){return Qb(Zb(e,t,xl),e+"")}function jj(e,t,r){if(!Ue(r))return!1;var i=typeof t;return(i=="number"?xi(r)&&wl(t,r.length):i=="string"&&t in r)?us(r[t],e):!1}function Rj(e){return Sl(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&&jj(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 Nj=Rj(function(e,t,r){ik(e,t,r)});function gd(e,t,r,i){if(!Ue(e))return e;t=oa(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=Rn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var c=o[l];u=i?i(c,l,o):void 0,u===void 0&&(u=Ue(c)?c:wl(t[a+1])?[]:{})}ud(o,l,u),o=o[l]}return e}function lt(e,t,r){return e==null?e:gd(e,t,r)}function ak(e){return typeof e=="function"?e:xl}var Fj=/\s/;function Dj(e){for(var t=e.length;t--&&Fj.test(e.charAt(t)););return t}var Mj=/^\s+/;function Lj(e){return e&&e.slice(0,Dj(e)+1).replace(Mj,"")}var Bp=NaN,qj=/^[-+]0x[0-9a-f]+$/i,zj=/^0b[01]+$/i,$j=/^0o[0-7]+$/i,Uj=parseInt;function Bj(e){if(typeof e=="number")return e;if(os(e))return Bp;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lj(e);var r=zj.test(e);return r||$j.test(e)?Uj(e.slice(2),r?2:8):qj.test(e)?Bp:+e}var Vp=1/0,Vj=17976931348623157e292;function Hj(e){if(!e)return e===0?e:0;if(e=Bj(e),e===Vp||e===-Vp){var t=e<0?-1:1;return t*Vj}return e===e?e:0}function sk(e){var t=Hj(e),r=t%1;return t===t?r?t-r:t:0}var Kj=9007199254740991,_u=4294967295,Wj=Math.min;function ok(e,t){if(e=sk(e),e<1||e>Kj)return[];var r=_u,i=Wj(e,_u);t=ak(t),e-=_u;for(var a=Mb(i,t);++r<e;)t(r);return a}function lk(e,t){return e&&nk(e,t,Cr)}var Gj="__lodash_hash_undefined__";function Jj(e){return this.__data__.set(e,Gj),this}function Yj(e){return this.__data__.has(e)}function fi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ln;++t<r;)this.add(e[t])}fi.prototype.add=fi.prototype.push=Jj;fi.prototype.has=Yj;function Xj(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 Zj=1,Qj=2;function uk(e,t,r,i,a,n){var s=r&Zj,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=n.get(e),c=n.get(t);if(u&&c)return u==t&&c==e;var f=-1,m=!0,d=r&Qj?new fi:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var p=e[f],k=t[f];if(i)var v=s?i(k,p,f,t,e,n):i(p,k,f,e,t,n);if(v!==void 0){if(v)continue;m=!1;break}if(d){if(!Xj(t,function(g,b){if(!Za(d,b)&&(p===g||a(p,g,r,i,n)))return d.push(b)})){m=!1;break}}else if(!(p===k||a(p,k,r,i,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function eR(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function yd(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var tR=1,rR=2,nR="[object Boolean]",iR="[object Date]",aR="[object Error]",sR="[object Map]",oR="[object Number]",lR="[object RegExp]",uR="[object Set]",cR="[object String]",fR="[object Symbol]",dR="[object ArrayBuffer]",mR="[object DataView]",Hp=hr?hr.prototype:void 0,Pu=Hp?Hp.valueOf:void 0;function pR(e,t,r,i,a,n,s){switch(r){case mR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dR:return!(e.byteLength!=t.byteLength||!n(new Xo(e),new Xo(t)));case nR:case iR:case oR:return us(+e,+t);case aR:return e.name==t.name&&e.message==t.message;case lR:case cR:return e==t+"";case sR:var o=eR;case uR:var l=i&tR;if(o||(o=yd),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=rR,s.set(e,t);var c=uk(o(e),o(t),i,a,n,s);return s.delete(e),c;case fR:if(Pu)return Pu.call(e)==Pu.call(t)}return!1}var hR=1,gR=Object.prototype,yR=gR.hasOwnProperty;function vR(e,t,r,i,a,n){var s=r&hR,o=tf(e),l=o.length,u=tf(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var m=o[f];if(!(s?m in t:yR.call(t,m)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<l;){m=o[f];var g=e[m],b=t[m];if(i)var w=s?i(b,g,m,t,e,n):i(g,b,m,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var C=e.constructor,h=t.constructor;C!=h&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var bR=1,Kp="[object Arguments]",Wp="[object Array]",Fs="[object Object]",kR=Object.prototype,Gp=kR.hasOwnProperty;function wR(e,t,r,i,a,n){var s=jt(e),o=jt(t),l=s?Wp:cr(e),u=o?Wp:cr(t);l=l==Kp?Fs:l,u=u==Kp?Fs:u;var c=l==Fs,f=u==Fs,m=l==u;if(m&&ci(e)){if(!ci(t))return!1;s=!0,c=!1}if(m&&!c)return n||(n=new Or),s||cs(e)?uk(e,t,r,i,a,n):pR(e,t,l,r,i,a,n);if(!(r&bR)){var d=c&&Gp.call(e,"__wrapped__"),p=f&&Gp.call(t,"__wrapped__");if(d||p){var k=d?e.value():e,v=p?t.value():t;return n||(n=new Or),a(k,v,r,i,n)}}return m?(n||(n=new Or),vR(e,t,r,i,a,n)):!1}function Cl(e,t,r,i,a){return e===t?!0:e==null||t==null||!gr(e)&&!gr(t)?e!==e&&t!==t:wR(e,t,r,i,Cl,a)}var xR=1,SR=2;function CR(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],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Or,f;if(!(f===void 0?Cl(u,l,xR|SR,i,c):f))return!1}}return!0}function ck(e){return e===e&&!Ue(e)}function ER(e){for(var t=Cr(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,ck(a)]}return t}function fk(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function AR(e){var t=ER(e);return t.length==1&&t[0][2]?fk(t[0][0],t[0][1]):function(r){return r===e||CR(r,e,t)}}function OR(e,t){return e!=null&&t in Object(e)}function dk(e,t){return e!=null&&rk(e,t,OR)}var _R=1,PR=2;function IR(e,t){return td(e)&&ck(t)?fk(Rn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?dk(r,e):Cl(t,i,_R|PR)}}function TR(e){return function(t){return t==null?void 0:t[e]}}function jR(e){return function(t){return bl(t,e)}}function RR(e){return td(e)?TR(Rn(e)):jR(e)}function vd(e){return typeof e=="function"?e:e==null?xl:typeof e=="object"?jt(e)?IR(e[0],e[1]):AR(e):RR(e)}function NR(e,t,r){var i=jt(e),a=i||ci(e)||cs(e);if(t=vd(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Ue(e)?r=ls(n)?Hb(gl(e)):{}:r={}}return(a?od:lk)(e,function(s,o,l){return t(r,s,o,l)}),r}function FR(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 DR(e){return e!==e}function MR(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function mk(e,t,r){return t===t?MR(e,t,r):FR(e,DR,r)}function bd(e,t){var r=e==null?0:e.length;return!!r&&mk(e,t,0)>-1}function Fo(){}var LR=1/0,qR=Hi&&1/yd(new Hi([,-0]))[1]==LR?function(e){return new Hi(e)}:Fo,zR=200;function pk(e,t,r){var i=-1,a=bd,n=e.length,s=!0,o=[],l=o;if(n>=zR){var u=qR(e);if(u)return yd(u);s=!1,a=Za,l=new fi}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function hk(e){return e&&e.length?pk(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 $R=Sl(function(e){return pk(ds(e,1,Xa,!0))});function vr(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 nn(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&&be(o)?a[n]=nn(s,o):e&&t&&(vr(e)==="object"||vr(t)==="object")&&n===bb&&Array.isArray(s)&&Array.isArray(o)?a[n]=$R(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var UR="[object Number]";function gk(e){return typeof e=="number"||gr(e)&&sn(e)==UR}function yk(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,[$e,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function Qo(e,t,r,i,a){if(t===void 0)return 0;const n=yk(t,r,a);if(gk(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&qe(o,[$e,a])){const l=ae(t,a),u=ae(o,[$e,a],{});if(e.isValid(u,l,i))return s}else if(o[$e]){const l={anyOf:Object.keys(o[$e]).map(c=>({required:[c]}))};let u;if(o.anyOf){const{...c}=o;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...o,...l};if(delete u.required,e.isValid(u,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const BR=Object.prototype;function Ta(e){for(const t in e)if(BR.hasOwnProperty.call(e,t))return!1;return!0}const VR=["array","boolean","integer","null","number","object","string"];new Set(VR);const HR=["$defs","definitions","properties","patternProperties","dependencies"];new Set(HR);const KR=["items","allOf","oneOf","anyOf"];new Set(KR);const WR=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(WR);function Do(e){return typeof e=="object"}function qr(e){return Do(e)?Ta(e):e===!0}function zi(e,t){return e<t?-1:e>t?1:0}function Iu(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 GR(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 Jp(e){return e.length===0}function Tu(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 vk(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 u=r[l];for(let c=0;c<o;c++)if(e(u,s[c])===0)continue e;o=s.push(u)}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 JR(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 s=[...t].sort(e),o=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(s[l],o[u]);c===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,u++):c<0?l++:u++}return i}}function YR(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const Yp=YR,bk=()=>0,XR=e=>e===void 0,ZR=e=>typeof e!="object",Xp={boolean:0,number:1,string:2};function QR(e,t){const r=typeof e,i=typeof t;return r===i?zi(e,t):Xp[r]-Xp[i]}function eN(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 El(e,t,r=bk){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Mi(e){return El(XR,e)}function vn(e,t){return El(r=>r===void 0||e(r),t)}function ju(e,t){return El(Array.isArray,e,t)}const At=Mi(zi),Ru=vn(e=>e===0,(e,t)=>e-t);function tN({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Yp(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),C=Math.min(b.length,w.length);for(let h=0;h<C;h++){const y=zi(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<C;h++){const y=b[h],S=k(v[y],g[y]);if(S!==0)return S}return 0}}function a(k){const v=Tu(k),g=Yp(e,vk(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(zi);function s(k,v){if(Do(k)){if(Do(v)){const g=Object.keys(k),b=Object.keys(v),w=eN(g,b),C=w.length;for(let h=0;h<C;h++){const y=w[h];if(k[y]===v[y])continue;const A=(p[y]??o)(k[y],v[y]);if(A!==0)return A}return 0}return v===!0&&Ta(k)?0:1}return Do(v)?k===!0&&Ta(v)?0:-1:zi(k,v)}const o=Mi(u),l=El(ZR,ju(i(o),Tu(u)),QR);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Mi(s),f=vn(Ta,i(c)),m=Mi(a(s)),d=vn(qr,s),p={$id:At,$comment:At,$defs:f,$ref:At,$schema:At,const:o,contains:c,contentEncoding:At,contentMediaType:At,default:o,definitions:f,description:At,else:c,examples:o,exclusiveMaximum:At,exclusiveMinimum:At,format:At,if:c,maximum:At,maxItems:At,maxLength:At,maxProperties:At,minimum:At,multipleOf:At,not:c,pattern:At,propertyNames:c,readOnly:At,then:c,title:At,writeOnly:At,uniqueItems:vn(k=>k===!1,bk),minLength:Ru,minItems:Ru,minProperties:Ru,required:vn(Jp,n),enum:vn(Jp,a(u)),type:Mi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?zi(k,v):n(g?k:[k],b?v:[v])}),items:vn(k=>!Array.isArray(k)&&qr(k),ju(s,Tu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:vn(Ta,i(Mi(ju(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function Zp(e){return e}const kk=(e,t)=>e?kk(t%e,e):t,rN=(e,t)=>Math.abs(e*t)/kk(e,t);function nN(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Nu(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 Fu(e,t){return e||t}function Qp(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 iN(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function Gn(e,t,r){r===void 0||qr(r)?delete e[t]:e[t]=r}const aN=["properties","patternProperties","additionalProperties"];function eh(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 th=[[],[]];function rh(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 sN=["items","additionalItems"],oN=["if","then","else"];function nh(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 Du(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 Jn(e,t,r){return[e,t,r]}function lN(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 uN=[Jn("minimum","maximum",e=>e.maximum>=e.minimum),Jn("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Jn("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Jn("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Jn("minLength","maxLength",e=>e.maxLength>=e.minLength),Jn("minItems","maxItems",e=>e.maxItems>=e.minItems),Jn("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function cN({mergePatterns:e=nN,isSubRegExp:t=Object.is,intersectJson:r=GR,deduplicateJsonSchemaDef:i=Zp,defaultMerger:a=Zp,assigners:n=[],checks:s=uN,mergers:o}={}){function l(C){const h=C.length;let y=C[0];for(let S=1;S<h;S++){const A=g(y,C[S]);if(A===!1)return!1;qr(A)||(y=A)}return y}function u(C,h,y,S,A,_,x){if(C.length=0,y===!1)return!1;if(C.push(y),A!==void 0){if(A===!1)return!1;C.push(A)}if(rh(C,h,_))return!1;const O=C.length<2;if(x===!1){if(O)return;if(rh(C,h,S))return!1}else O&&x!==void 0&&C.push(x);return C.length===1?C[0]:l(C)}function c(C,h,y,S,A,_){const x=y.length;if(x>0&&A!==!1)if(_)Object.assign(C,h);else for(let E=0;E<x;E++){const O=y[E];S.has(O)||(C[O]=g(h[O],A))}return C}const f=(C,{properties:h={},patternProperties:y,additionalProperties:S=!0},{properties:A={},patternProperties:_,additionalProperties:x=!0})=>{const E=qr(S),O=qr(x);if(E&&O)return Gn(C,"properties",b(h,A)),Gn(C,"patternProperties",y&&_?b(y,_):y??_),delete C.additionalProperties,C;const j=g(S,x);Gn(C,"additionalProperties",j);const T={},F=Object.keys(h),L=F.length,[J,Y]=y?eh(y):th,[Q,P]=_?eh(_):th,D=[],B=new Set,I=O?void 0:x;for(let G=0;G<L;G++){const X=F[G];B.add(X);const z=u(D,X,h[X],J,A[X],Q,I);z!==void 0&&(T[X]=z)}const R=Object.keys(A),M=R.length,U=E?void 0:S;for(let G=0;G<M;G++){const X=R[G];if(B.has(X))continue;const z=u(D,X,A[X],Q,void 0,J,U);z!==void 0&&(T[X]=z)}Gn(C,"properties",T);let $={};const H=new Set;return Y.length>0&&P.length>0&&Nu(Y,P,(G,X)=>{t(G,X)&&H.add(G),t(X,G)&&H.add(X),$[e(G,X)]=g(y[G],_[X])}),$=c($,y,Y,H,x,O),$=c($,_,P,H,S,E),Gn(C,"patternProperties",$),C},m=(C,{items:h=[],additionalItems:y},{items:S=[],additionalItems:A})=>{const _=Array.isArray(h),x=Array.isArray(S),E=[];if(C.items=E,_&&x){const[O,j,T]=h.length<S.length?[h.length,y,S]:[S.length,A,h];let F=0;for(;F<O;F++)E.push(g(h[F],S[F]));if(j===!1)C.additionalItems=!1;else{const L=j===void 0||qr(j);for(;F<T.length;F++)E.push(L?T[F]:g(T[F],j));Gn(C,"additionalItems",y!==void 0&&A!==void 0?g(y,A):y??A)}}else if(_||x){const[O,j,T]=_?[h,S,y]:[S,h,A];Gn(C,"additionalItems",T&&g(T,j));for(let F=0;F<O.length;F++)E.push(g(O[F],j))}else delete C.additionalItems,C.items=g(h,S);return C},d=(C,h,y)=>{nh(C,h);const S=nh({},y);return C.allOf===void 0?C.allOf=[S]:C.allOf=C.allOf.concat(S),C};function p(C,h){const y=[];if(Nu(C,h,(S,A)=>{try{y.push(g(S,A))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(C)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=iN([[aN,f],[sN,m],[oN,d],...n]),v=lN(s);function g(C,h){if(C===!1||h===!1)return!1;if(qr(C))return qr(h)?!0:h;if(qr(h))return C;let y={...C};const S=new Set,A=new Set,_=Reflect.ownKeys(h),x=_.length;for(let E=0;E<x;E++){const O=_[E],j=h[O];if(j===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let Q=0;Q<Y;Q++){const P=T[Q];C[P.oppositeKey]!==void 0&&A.add(P.check)}}const F=C[O];if(F===void 0){y[O]=j;continue}const L=k.get(O);if(L){S.add(L);continue}const J=w[O]??a;y[O]=J(F,j)}for(const E of S)y=E(y,C,h);for(const E of A)E(y);return y}const b=Qp(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(C,h)=>{if(C===h)return C;const y=Array.isArray(C),S=Array.isArray(h);if(!y&&!S){const A=Du(C,h);if(A!==void 0)return A}else if(y||S){const A=new Set;if(y&&S)Nu(C,h,(x,E)=>{const O=Du(x,E);O!==void 0&&A.add(O)});else{const x=y?C:h,E=y?h:C,O=x.length;for(let j=0;j<O;j++){const T=Du(E,x[j]);T!==void 0&&A.add(T)}}const _=A.size;if(_===1)return A.values().next().value;if(_>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${C.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(C,h)=>{const y=i([C,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Fu,writeOnly:Fu,enum:(C,h)=>{const y=r(C,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(C)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(C,h)=>i(C.concat(h)),propertyNames:g,contains:g,dependencies:Qp((C,h)=>Array.isArray(C)?Array.isArray(h)?Iu(C,h):g(h,{required:C}):Array.isArray(h)?g(C,{required:h}):g(C,h)),examples:(C,h)=>{if(!Array.isArray(C)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(C)}" and "${JSON.stringify(h)}"`);return Iu(C,h)},multipleOf:(C,h)=>{let y=1;for(;!Number.isInteger(C)||!Number.isInteger(h);)y*=10,C*=10,h*=10;return rN(C,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:Fu,required:Iu,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function fN(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 dN(e){return t=>e(fN(t))}const{compareSchemaDefinitions:mN,compareSchemaValues:pN}=tN(),{mergeArrayOfSchemaDefinitions:hN}=cN({intersectJson:JR(pN),deduplicateJsonSchemaDef:vk(mN)}),wk=dN(hN);function Ft(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function xk(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function gN(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Ur(e,p,r,n,i,a,s))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Ur(e,p,r,n,i,a,s))}}else{const p=f?l:u;if(p!==void 0){const k=xk(p);d=d.concat(Ur(e,k,r,n,i,a,s))}}return d.length&&(m=d.map(p=>nn(c,p))),m.flatMap(p=>Ur(e,p,r,n,i,a,s))}function Sk(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>ok(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Ck(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(lt(r,[i],e.patternProperties[i]),r),{})}function yN(e,t,r,i,a,n,s,o){const l=Ek(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(Yf in t)return Ok(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(Hr in t&&Array.isArray(t[Hr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return Sk(u).map(f=>({...t,allOf:f}))}return[t]}function Ek(e,t,r,i,a,n,s,o){const l=En(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function En(e,t,r,i,a,n=!1){if(!be(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...u}=s;if(r.includes(l))return n?{...s,[Zf]:!0}:s;r.push(l),s={...Ya(l,t,o),...u,[Ro]:l},nt in s&&(o=s[nt])}if($e in s){const l=[],u=NR(s[$e],(c,f,m)=>{const d=[...r];c[m]=En(f,t,d,o,a,!a),l.push(d)},{});Nj(r,hk(_j(l))),s={...s,[$e]:u}}if(Xi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:En(s.items,t,r,o,a)}),a){let l,u;Le in e&&Array.isArray(e[Le])?(l=Le,u=s[Le]):Ae in e&&Array.isArray(e[Ae])&&(l=Ae,u=s[Ae]),l&&u&&(s={...s,[l]:u.map(c=>En(c,t,r,o,a))})}return ze(e,s)?e:s}function vN(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&be(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(Jc in n){const l=Ck(n,o);if(!wt(l)){n.properties[o]=Ft(e,{[Hr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][Sn]=!0;return}}if(qi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Ft(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:Le in n.additionalProperties||Ae 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][Sn]=!0}else n.properties[o]={type:"null"},n.properties[o][Sn]=!0}}),n}function bN(e){return wk(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?yN(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(Xf in f)return gN(e,f,r,a,n,i,s);if(Hr in f){if(a){const{allOf:d,...p}=f;return[...d,p]}try{const d=[],p=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{p.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:p}),f=s?s(f):bN(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:p,...k}=f;return k}}return $e in f&&Jc in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const k=Ck(d,p);return wt(k)||(d.properties[p]=Ft(e,{allOf:[d.properties[p],...Object.values(k)]},r,ae(i,[p]),s)),d},{...f,properties:{...f.properties}})),Jc in f||qi in f&&f.additionalProperties!==!1?vN(e,f,r,i,s):f}):[{}]}function kN(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 u=a===void 0&&i?{}:a,c=yr(t);n=n.map(m=>En(m,r,[]));const f=Qo(e,u,n,r,c);if(i){const m=Ak(n,!1,r);return Qo(e,u,m,r,c),n.map(d=>nn(l,d))}return[nn(l,n[f])]}return[t]}function Ak(e,t=!1,r){return e.map(i=>{if(!be(i))return xk(i);const a=t&&r?En(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Ok(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return kN(e,l,r,i,n).flatMap(c=>_k(e,o,c,r,i,a,n,s))}function _k(e,t,r,i,a,n,s,o){let l=[r];for(const u in t)if((a||ae(s,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=hd(u,t);return Array.isArray(f)?l[0]=wN(r,f):be(f)&&(l=xN(e,r,i,u,f,a,n,s,o)),l.flatMap(m=>_k(e,c,m,i,a,n,s,o))}return l}function wN(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 xN(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,l).flatMap(c=>{const{oneOf:f,...m}=c,d=nn(t,m);if(f===void 0)return d;const p=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:Ek(e,v,r,n,s,o));return Sk(p).flatMap(v=>SN(e,d,r,i,v,n,s,o,l))})}function SN(e,t,r,i,a,n,s,o,l){const u=a.filter(c=>{if(typeof c=="boolean"||!(c!=null&&c.properties))return!1;const{[i]:f}=c.properties;if(f){const m={type:"object",properties:{[i]:f}};return e.isValid(m,o,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,[m]=hd(i,f.properties),d={...f,properties:m};return Ur(e,d,r,o,n,s,l).map(k=>nn(t,k))})}function ja(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=yr(r)||i,u=r[a].map(f=>Ft(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>ze(ae(f,[$e,l,li],ae(f,[$e,l,Kt])),c))}}function Pk(e,t,r,i,a){let n=r;if(qe(r,at)&&(n=Ft(e,r,t,void 0,a)),wt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&qe(n,o))return n=ae(n,o),Pk(e,t,n,l,a)}function Mo(e,t,r,i,a,n){const s=Pk(e,t,r,i,n);return s===void 0?a:s}const ih={title:"!@#$_UNKNOWN_$#@!"};function CN(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),u=String(l);s.length&&s.forEach(d=>{o=Mo(e,t,o,[$e,d],{},n),qe(o,Ae)?o=ja(e,t,o,u,Ae,ae(a,d),n):qe(o,Le)&&(o=ja(e,t,o,u,Le,ae(a,d),n))}),qe(o,Ae)?o=ja(e,t,o,u,Ae,a,n):qe(o,Le)&&(o=ja(e,t,o,u,Le,a,n));let c=Mo(e,t,o,[$e,l],ih,n);c===ih&&(c=void 0);const f=Mo(e,t,o,bb,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function EN(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 AN(e,t){return function(r,i){if(r==null)return r;if(!xi(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 Ik=AN(lk);function ON(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function _N(e,t,r){var i=jt(e)?EN:ON,a=arguments.length<3;return i(e,vd(t),r,a,Ik)}const PN={type:"object",$id:XO,properties:{__not_really_there__:{type:"number"}}};function of(e,t,r,i,a){let n=0;return r&&(Ue(r.properties)?n+=_N(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if(qe(o,at)){const c=Ft(e,o,t,u,a);return s+of(e,t,c,u||{},a)}if((qe(o,Ae)||qe(o,Le))&&u){const c=qe(o,Ae)?Ae:Le,f=yr(o);return s+ea(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Ue(u)?1:0;return s+c+of(e,t,o,u,a)}if(o.type===Qa(u)){let c=s+1;return o.default?c+=u===o.default?1:-1:o.const&&(c+=u===o.const?1:-1),c}return s},0):Nn(r.type)&&r.type===Qa(i)&&(n+=1)),n}function ea(e,t,r,i,a=-1,n,s){const o=i.map(m=>En(m,t,[])),l=yk(r,i,n);if(gk(l))return l;const u=o.reduce((m,d,p)=>(Qo(e,r,[PN,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||ok(o.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,k=o[d],v=of(e,t,k,r,s);return c.add(v),v>p?{bestIndex:d,bestScore:v}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Tk(e){const t=e[Kt],r=vr(e);return be(t)&&Nn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function jk(e){return Array.isArray(e.enum)&&e.enum.length===1||Kt in e}function kd(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function ta(e){return e==null}function es(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((u,c)=>o[c]!==void 0?es(n[c],t[c],r,i,a):u);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const u=ae(t,o),c=be(e)&&o in e,f=o in t,m=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(v=>be(v)),p=c&&be(ae(e,o)),k=f&&be(u);return p&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=es(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&ta(t)||typeof t=="number"&&Number.isNaN(t))||a&&!ta(t)?e:t}function Fn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&be(s))i[a]=Fn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function IN(e){if(YO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Kt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function TN(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 di(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,s=u}let o=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 s&&(o=TN(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=yr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=me(i==null?void 0:i[s]),f=n;let m,d=c;if(a){const p=ae(f,[$e,a],{});m=ae(p,li,ae(p,Kt)),d=(l=(o=d??(p==null?void 0:p.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(m)}else m=IN(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function Al(e,t,r={},i){const a=Ft(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"&&jk(s)):!1}function wd(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Al(e,t.items,r,i)}const jN=["string","number","integer","boolean","null"];var ra;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(ra||(ra={}));function Mu(e,t=ra.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!==ra.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Rk(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&wt(t)&&r===null?null:t}function ah(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!wt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?wt(r)||(e[t]=r):(!wt(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 An(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:m}=r;let d=be(a)?a:{};const p=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=o;if(p[Kt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Tk(p))k=p[Kt];else if(be(k)&&be(p.default)&&!p[Le]&&!p[Ae]&&!p[at])v?k=Fn(p.default,k):k=Fn(k,p.default);else if(li in p&&!v&&!p[Le]&&!p[Ae]&&!p[at])k=p.default;else if(at in p){const y=p[at];o.includes(y)||(w=o.concat(y),g=Ya(y,n));const S=a===void 0||be(a)&&wt(a);g&&!k&&S&&(k=p.default),f&&g&&!be(a)&&(d=a)}else if(Yf in p){const y={...sh(e,p,r,k),...d};[g]=Ok(e,p,n,!1,[],y,u)}else if(kd(p)&&!v)k=p.items.map((y,S)=>An(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(Ae in p){const{oneOf:y,...S}=p;if(y.length===0)return;const A=yr(p),{type:_="null"}=S;!Array.isArray(_)&&jN.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[ea(e,n,a??p.default,y,0,A,u)],g=nn(S,g)}else if(Le in p){const{anyOf:y,...S}=p;if(y.length===0)return;const A=yr(p);g=y[ea(e,n,a??p.default,y,0,A,u)],g=nn(S,g)}if(g)return An(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=p.default);const C=sh(e,p,r,k);let h=C??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,A=xd(e,p,n,a,l,u);(!be(a)||Hr in p)&&(h=es(h,A,S,!0))}return h}function xd(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&Hr in t,o=s?Ft(e,t,r,i,n):t,l=!jk(o)&&Al(e,o,r,n);let u=i;if(l){const f=di(o);u=(f==null?void 0:f.some(d=>ze(d.value,i)))?i:void 0}return o[Kt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,m)=>{const d=ae(o,[$e,m],{});return m in f&&(s||be(d)&&Hr in d)&&(f[m]=xd(e,d,r,ae(f,m),a,n)),f},{...u})),u}function RN(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&Hr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Xf in d?Ft(e,d,i,m,o):d,v=k[Kt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var C;const h=ae(k,[$e,w],{}),y=be(v)&&v[w]!==void 0,S=(be(h)&&Kt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Tk(h),A=An(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(C=k.required)===null||C===void 0?void 0:C.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return ah(b,w,A,a,l,k.required,s,S,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,C=[];Object.keys(m).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),C.push(h)}),be(f)&&C.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const S=An(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(m,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});ah(g,h,S,a,l,C)})}return Rk(t,g)}}function NN(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var m,d;let p=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",C=g==="requiredOnly",h=g==="all"||!w&&!C,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(p)&&(p=p.map((E,O)=>{const j=Mu(k,ra.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return An(e,j,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:E,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const E=Mu(k);if(w)p=r;else{const O=r.map((T,F)=>An(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(p,[F]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=es(p,O,(C&&o||h)&&b)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!o?p:p??A;if(C&&!o)return p||void 0;let x;if(!k.minItems||wd(e,k,i,s)||y(e,k,i)||k.minItems<=_)x=p||!o&&!l?p:A;else{const E=p||[],O=Mu(k,ra.Invert),j=O.default,T=Array.from({length:k.minItems-_},()=>An(e,O,{parentDefaults:j,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));x=E.concat(T)}return Rk(t,x)}function sh(e,t,r={},i){switch(vr(t)){case"object":return RN(e,t,r,i);case"array":return NN(e,t,r,i);default:return}}function Nk(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Ft(e,t,i,r,s),u=An(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,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",m=xd(e,l,i??l,r,n,s);return es(u,m,!0,f,!0)}return u}function Fk(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function Dk(e,t,r={},i,a){if(r[ed]==="files")return!0;if(t.items){const n=Ft(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function FN(e,t,r={},i,a,n){const s=me(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=vr(t),c=!!t[Sn];u==="array"&&(l=c||wd(e,t,i,n)||Dk(e,t,r,i,n)||Fk(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[ed]&&(l=!1),r!=null&&r[e_]&&(l=!1)}return l}function Mk(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=bl(e,s);r(o,s)&&gd(n,oa(s,e),o)}return n}function DN(e,t){return Mk(e,t,function(r,i){return dk(e,i)})}var Lk=ek(function(e,t){return e==null?{}:DN(e,t)});function MN(e,t){if(t.length===0&&typeof e!="object")return e;const r=Lk(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function LN(e,t){const r=(a,n)=>typeof a!="object"||wt(a)||n&&!wt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=s.map(f=>[...f,l]);u[Qf]&&u[jo]!==""?n.push(u[jo]):i(u,n,c)}else l===jo&&u!==""&&s.forEach(c=>{const f=ae(t,c),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function qk(e){return ta(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(qk):!1}function qN(e,t){return t?t(e):wk(e)}function zN(e,t,r={},i,a){function n(p){return be(p)}function s(p){return be(p)}function o(p,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:C,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function S(_,x,E,O=!1){var j;const T=d(x,E,v[_]);if(!O&&be(T)){let F=s(x)?x:{};F.$ref!==void 0&&(F=Ya(F.$ref,r));const L=new Set((j=F.required)!==null&&j!==void 0?j:[]);if(Object.entries(T).every(([Y,Q])=>!L.has(Y)&&qk(Q)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,x]of Object.entries(b))S(_,x,k[_],y.has(_));let A;if(C!==void 0){A=[];const _=Object.entries(C).map(([E,O])=>[new RegExp(E),O]),x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))if(!x.has(E)){const j=_.find(([T])=>T.test(E));j===void 0?A.push(E):S(E,j[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(A!==void 0)for(const x of A)S(x,_,k[x]);else{const x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))x.has(E)||S(E,_,O)}}if(h!==void 0)for(const[_,x]of Object.entries(k))v[_]=x;return v}function l(p,k,v){const{items:g,additionalItems:b}=p;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(p,k,v){const{if:g,then:b,else:w}=p;if(g===void 0)return v;const h=(s(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(p,k,v,g){if(!Array.isArray(p)||Al(e,k,r,a))return g;const b=Ak(p,!0,r),w=ea(e,r,v,b,0,yr(k),a),C=p[w],h=be(C)?En(C,r,[]):b[w];return d(h,v,g)}function f(p,k,v){const{anyOf:g}=p;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,p,k,v)}function m(p,k,v){const{dependencies:g}=p;if(g===void 0||!n(k))return v;let b=v;for(const[w,C]of Object.entries(g))w in k&&!Array.isArray(C)&&(b=d(C,k,b));return b}function d(p,k,v){if(k===void 0||p===!1)return;if(p===!0||wt(p))return k;let g=p;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ya(b,r),k,v);if(w){g=qN(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)v=d(y[S],k,v)}let C=f(g,k,c(g.oneOf,g,k,v));const h=vr(g);if(h==="object"){if(!n(k))return;C=o(g,k,n(C)?C:{})}else if(h==="array"){if(!Array.isArray(k))return;C=l(g,k,Array.isArray(C)?C:[])}else C===void 0&&(C=k);return m(g,k,u(g,k,C))}return d(t,i)}const or=Symbol("no Value");function zk(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=>Kt in i?i[Kt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:or).filter(i=>i!==or);return r.length>0?r:void 0}function $N(e,t){const r=zk(e);if(!r||r.some(a=>ze(a,t)))return or;const i=ae(e,li,or);return i!==or&&r.some(a=>ze(a,i))?i:r.length===1?r[0]:void 0}function lf(e,t,r,i,a={},n){let s;if(qe(r,$e)){const o={};if(qe(i,$e)){const c=ae(i,$e,{});Object.keys(c).forEach(f=>{qe(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,$e,{})),u={};l.forEach(c=>{const f=ae(a,c);let m=ae(i,[$e,c],{}),d=ae(r,[$e,c],{});qe(m,at)&&(m=Ft(e,m,t,f,n)),qe(d,at)&&(d=Ft(e,d,t,f,n));const p=ae(m,"type"),k=ae(d,"type");if(!p||p===k)if(qe(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=lf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,li,or),g=ae(m,li,or);v!==or&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Kt,or),w=ae(m,Kt,or);if(b!==or&&b!==f&&(o[c]=w===f?b:void 0),qe(a,c)){const C=$N(d,f);C!==or&&(o[c]=C)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...u}}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)){qe(o,at)&&(o=Ft(e,o,t,a,n)),qe(l,at)&&(l=Ft(e,l,t,a,n));const u=ae(o,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")s=a.reduce((m,d)=>{const p=lf(e,t,l,o,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=zk(l),d=m?a.filter(p=>m.some(k=>ze(k,p))):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 bn(e,t,r,i,a,n=[],s){if(at in t||Yf in t||Hr in t||Xf in t){const l=Ft(e,t,i,a,s);if(n.findIndex(c=>ze(c,l))===-1)return bn(e,l,r,i,a,n.concat(l),s)}let o={[jo]:r.replace(/^\./,"")};if(Ae in t||Le in t){const l=Ae in t?t.oneOf:t.anyOf,u=yr(t),c=ea(e,i,a,l,0,u,s),f=l[c];o={...o,...bn(e,f,r,i,a,n,s)}}if(qi in t&&t[qi]!==!1){lt(o,Qf,!0);const l=Ue(t[qi])?t[qi]:{},u=ae(t,$e,{});for(const c of Object.keys(a??{}))c in u||(o[c]=bn(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(Xi in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=bn(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=bn(e,u,`${r}.${f}`,i,c,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{o[f]=bn(e,l,`${r}.${f}`,i,c,n,s)})}else if($e in t)for(const l in t.properties){const u=ae(t,[$e,l],{});o[l]=bn(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function UN(e,t,r="",i,a,n){return bn(e,t,r,i,a,void 0,n)}class BN{constructor(t,r,i,a){(r==null?void 0:r[Ia])===No?this.rootSchema=nf(r,ae(r,nt,"#")):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||!ze(this.rootSchema,r)||!ze(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return CN(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return ja(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Nk(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return FN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return ea(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return Qo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return Mo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Dk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return wd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Al(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return zN(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Ft(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return lf(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return UN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function VN(e,t,r={},i){return new BN(e,t,r,i)}function HN(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||"",u=decodeURI(((t=o.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 kn(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function $k(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 $k(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:kn(l,2)});return o}function KN(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 WN(e,t){return KN(e,t)}function Ol(e,t=[],r){if(Array.isArray(e))return e.map(n=>Ol(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function Uk(e,t,r=[]){const i=Ol(e,r);return Array.isArray(t)?t.filter(a=>!ze(a,i)):ze(i,t)?void 0:t}function ua(e,t){return Array.isArray(t)?t.some(r=>ze(r,e)):ze(t,e)}function Bk(e,t=[],r=!1){const i=t.map((a,n)=>ua(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function GN(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=Bk(e,t,r);return typeof s>"u"?a:s}function Vk(e,t,r=[]){const i=Ol(e,r);if(!ta(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 oh(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 _r(e,t,r="indexed",i){return r!=="realValue"?Ol(e,t,i):Array.isArray(e)?e.map(a=>oh(a,t,i)):oh(e,t,i)}function ms(e,t,r="indexed"){return r!=="realValue"?String(t):ta(e)?"":String(typeof e=="object"?t:e)}var JN=1,YN=4;function el(e){return za(e,JN|YN)}function XN(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:gd(e,t,r,i)}class Hk{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={},XN(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?el(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Nt);return Array.isArray(a)||(a=[],i[Nt]=a),Array.isArray(t)?lt(i,Nt,[...new Set([...a,...t])]):lt(i,Nt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return lt(i,Nt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return lt(r,Nt,[]),this}}var ZN=200;function QN(e,t,r,i){var a=-1,n=bd,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=ZN&&(n=Za,s=!1,t=new fi(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=u;m--;)if(t[m]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var eF=Sl(function(e,t){return Xa(e)?QN(e,ds(t,1,Xa,!0)):[]});function tF(e,t){if(e==null)return{};var r=sa(md(e),function(i){return[i]});return t=vd(t),Mk(e,r,function(i,a){return t(i,a[0])})}function lh(e,t){const r=jn(e),i=jn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Cr(e);if(!r&&i)return Cr(t);const a=Cr(tF(e,(s,o)=>!ze(s,ae(t,o)))),n=eF(Cr(t),Cr(e));return[...a,...n]}function rF(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,minute:l,second:u}=e,c={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},m={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,c,m);break;case"DMY":d.push(c,f,m);break;case"YMD":default:d.push(m,f,c)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function nF(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 iF(e,t,r={},i=!0){const a={type:t||"text",...nF(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 ps(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const uh={props:{disabled:!1},submitText:"Submit",norender:!1};function Kk(e={}){const t=me(e);if(t!=null&&t[Go]){const r=t[Go];return{...uh,...r}}return uh}function ye(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 aF=0;function Wk(e){var t=++aF;return nd(e)+t}function Sd(){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,Wk("test-id-")),e.get(r)}})}var Ds={exports:{}},et={};/**
58
+ */var lp;function YO(){return lp||(lp=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})()})(wu)),wu.exports}var XO=YO();const tn=Wr(XO);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 ZO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function wb(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 up(e){if(e==="")return;if(e===null)return null;const t=wb(),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 Sn=Symbol("__additional_property"),qi="additionalProperties",Hr="allOf",Le="anyOf",Kt="const",li="default",Xf="dependencies",QO="enum",Nt="__errors",nt="$id",Zf="if",Xi="items",e_="_$junk_option_schema_id$_",jo="$name",Ae="oneOf",Yc="patternProperties",$e="properties",xu="readonly",xb="required",Go="submitButtonOptions",at="$ref",Ro=Symbol("__rjsf_ref"),Qf=Symbol("__rjsf_ref_cycle"),Ia="$schema",Sb="root",Cb="_",t_=["discriminator","propertyName"],cp="formContext",r_="layoutGridLookupMap",Eb="__rjsf",ed=`${Eb}_additionalProperties`,Ab=`${Eb}_rootSchema`,n_="ui:field",td="ui:widget",Cn="ui:options",Xc="ui:globalOptions",i_="ui:definitions",a_="https://json-schema.org/draft/2019-09/schema",No="https://json-schema.org/draft/2020-12/schema";function me(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===td&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===Cn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Ob(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=me(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var _b=typeof global=="object"&&global&&global.Object===Object&&global,s_=typeof self=="object"&&self&&self.Object===Object&&self,Yr=_b||s_||Function("return this")(),hr=Yr.Symbol,Pb=Object.prototype,o_=Pb.hasOwnProperty,l_=Pb.toString,wa=hr?hr.toStringTag:void 0;function u_(e){var t=o_.call(e,wa),r=e[wa];try{e[wa]=void 0;var i=!0}catch{}var a=l_.call(e);return i&&(t?e[wa]=r:delete e[wa]),a}var c_=Object.prototype,f_=c_.toString;function d_(e){return f_.call(e)}var m_="[object Null]",p_="[object Undefined]",fp=hr?hr.toStringTag:void 0;function on(e){return e==null?e===void 0?p_:m_:fp&&fp in Object(e)?u_(e):d_(e)}function Ib(e,t){return function(r){return e(t(r))}}var yl=Ib(Object.getPrototypeOf,Object);function gr(e){return e!=null&&typeof e=="object"}var h_="[object Object]",g_=Function.prototype,y_=Object.prototype,Tb=g_.toString,v_=y_.hasOwnProperty,b_=Tb.call(Object);function jn(e){if(!gr(e)||on(e)!=h_)return!1;var t=yl(e);if(t===null)return!0;var r=v_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Tb.call(r)==b_}function Zc(e){const t={[Nt]:[],addError(r){this[Nt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:Zc(i)}),t);if(jn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:Zc(r[a])}),t)}return t}var jt=Array.isArray,k_="[object Symbol]";function os(e){return typeof e=="symbol"||gr(e)&&on(e)==k_}var w_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x_=/^\w*$/;function rd(e,t){if(jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||os(e)?!0:x_.test(e)||!w_.test(e)||t!=null&&e in Object(t)}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var S_="[object AsyncFunction]",C_="[object Function]",E_="[object GeneratorFunction]",A_="[object Proxy]";function ls(e){if(!Ue(e))return!1;var t=on(e);return t==C_||t==E_||t==S_||t==A_}var Su=Yr["__core-js_shared__"],dp=(function(){var e=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function O_(e){return!!dp&&dp in e}var __=Function.prototype,P_=__.toString;function bi(e){if(e!=null){try{return P_.call(e)}catch{}try{return e+""}catch{}}return""}var I_=/[\\^$.*+?()[\]{}|]/g,T_=/^\[object .+?Constructor\]$/,j_=Function.prototype,R_=Object.prototype,N_=j_.toString,F_=R_.hasOwnProperty,D_=RegExp("^"+N_.call(F_).replace(I_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M_(e){if(!Ue(e)||O_(e))return!1;var t=ls(e)?D_:T_;return t.test(bi(e))}function L_(e,t){return e==null?void 0:e[t]}function ki(e,t){var r=L_(e,t);return M_(r)?r:void 0}var Wa=ki(Object,"create");function q_(){this.__data__=Wa?Wa(null):{},this.size=0}function z_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $_="__lodash_hash_undefined__",U_=Object.prototype,B_=U_.hasOwnProperty;function V_(e){var t=this.__data__;if(Wa){var r=t[e];return r===$_?void 0:r}return B_.call(t,e)?t[e]:void 0}var H_=Object.prototype,K_=H_.hasOwnProperty;function W_(e){var t=this.__data__;return Wa?t[e]!==void 0:K_.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]=Wa&&t===void 0?G_:t,this}function ui(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])}}ui.prototype.clear=q_;ui.prototype.delete=z_;ui.prototype.get=V_;ui.prototype.has=W_;ui.prototype.set=J_;function Y_(){this.__data__=[],this.size=0}function us(e,t){return e===t||e!==e&&t!==t}function vl(e,t){for(var r=e.length;r--;)if(us(e[r][0],t))return r;return-1}var X_=Array.prototype,Z_=X_.splice;function Q_(e){var t=this.__data__,r=vl(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=vl(t,e);return r<0?void 0:t[r][1]}function tP(e){return vl(this.__data__,e)>-1}function rP(e,t){var r=this.__data__,i=vl(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ln(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])}}ln.prototype.clear=Y_;ln.prototype.delete=Q_;ln.prototype.get=eP;ln.prototype.has=tP;ln.prototype.set=rP;var Ga=ki(Yr,"Map");function nP(){this.size=0,this.__data__={hash:new ui,map:new(Ga||ln),string:new ui}}function iP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bl(e,t){var r=e.__data__;return iP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function aP(e){var t=bl(this,e).delete(e);return this.size-=t?1:0,t}function sP(e){return bl(this,e).get(e)}function oP(e){return bl(this,e).has(e)}function lP(e,t){var r=bl(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function un(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])}}un.prototype.clear=nP;un.prototype.delete=aP;un.prototype.get=sP;un.prototype.has=oP;un.prototype.set=lP;var uP="Expected a function";function nd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(uP);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(nd.Cache||un),r}nd.Cache=un;var cP=500;function fP(e){var t=nd(e,function(i){return r.size===cP&&r.clear(),i}),r=t.cache;return t}var dP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mP=/\\(\\)?/g,jb=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(mP,"$1"):i||r)}),t});function sa(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 mp=hr?hr.prototype:void 0,pp=mp?mp.toString:void 0;function Rb(e){if(typeof e=="string")return e;if(jt(e))return sa(e,Rb)+"";if(os(e))return pp?pp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function id(e){return e==null?"":Rb(e)}function oa(e,t){return jt(e)?e:rd(e,t)?[e]:jb(id(e))}function Rn(e){if(typeof e=="string"||os(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function kl(e,t){t=oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Rn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:kl(e,t);return i===void 0?r:i}const{getOwnPropertyNames:hp,getOwnPropertySymbols:pP}=Object,{hasOwnProperty:hP}=Object.prototype;function Cu(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ns(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 gp(e){const t=pP(e);return t.length?hp(e).concat(t):hp(e)}const gP=Object.hasOwn||((e,t)=>hP.call(e,t)),yP="__v",vP="__o",bP="_owner",{getOwnPropertyDescriptor:yp,keys:vp}=Object,wi=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&&Jo(new Uint8Array(e),new Uint8Array(t))}function xP(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&&Jo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function CP(e,t){return wi(e.getTime(),t.getTime())}function EP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function bp(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 u=t.entries();let c=0,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const m=s.value,d=o.value;if(r.equals(m[0],d[0],l,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function AP(e,t,r){const i=vp(e);let a=i.length;if(vp(t).length!==a)return!1;for(;a-- >0;)if(!Nb(e,t,r,i[a]))return!1;return!0}function xa(e,t,r){const i=gp(e);let a=i.length;if(gp(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Nb(e,t,r,n)||(s=yp(e,n),o=yp(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 wi(e.valueOf(),t.valueOf())}function _P(e,t){return e.source===t.source&&e.flags===t.flags}function kp(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 u=0,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function Jo(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 Nb(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=FP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(m,d,p){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(m,d,p):k==="function"?a(m,d,p):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(m,d,p);if(v===Array)return r(m,d,p);if(v===Date)return i(m,d,p);if(v===RegExp)return l(m,d,p);if(v===Map)return n(m,d,p);if(v===Set)return u(m,d,p);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,p);const g=IP.call(m),b=t[g];if(b)return b(m,d,p);const w=c&&c(m,d,p,g);return w?w(m,d,p):!1}}function jP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:wP,areArraysEqual:r?xa:xP,areDataViewsEqual:SP,areDatesEqual:CP,areErrorsEqual:EP,areFunctionsEqual:kP,areMapsEqual:r?Cu(bp,xa):bp,areNumbersEqual:wi,areObjectsEqual:r?xa:AP,arePrimitiveWrappersEqual:OP,areRegExpsEqual:_P,areSetsEqual:r?Cu(kp,xa):kp,areTypedArraysEqual:r?Cu(Jo,xa):Jo,areUrlsEqual:PP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ns(i.areArraysEqual),n=Ns(i.areMapsEqual),s=Ns(i.areObjectsEqual),o=Ns(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function RP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function NP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(o,l,{cache:u,equals:i,meta:c,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 FP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":s,"[object Number]":u,"[object Object]":(p,k,v)=>typeof p.then!="function"&&typeof k.then!="function"&&l(p,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}cn();cn({strict:!0});cn({circular:!0});cn({circular:!0,strict:!0});cn({createInternalComparator:()=>wi});cn({strict:!0,createInternalComparator:()=>wi});cn({circular:!0,createInternalComparator:()=>wi});cn({circular:!0,createInternalComparator:()=>wi,strict:!0});function cn(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=jP(e),s=TP(n),o=r?r(s):RP(s);return NP({circular:t,comparator:s,createState:i,equals:o,strict:a})}const ze=cn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Sa={exports:{}},Eu,wp;function Fb(){if(wp)return Eu;wp=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(x){let E="",O=0,R=0;for(R=0;R<x.length;R++)if(O=x[R].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[R];break}for(R+=1;R<x.length;R++){if(O=x[R].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[R]}return E}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(x){return x.length=0,!0}function u(x,E,O){if(x.length){const R=s(x);if(R!=="")E.push(R);else return O.error=!0,!1;x.length=0}return!0}function c(x){let E=0;const O={error:!1,address:"",zone:""},R=[],T=[];let D=!1,L=!1,J=u;for(let Y=0;Y<x.length;Y++){const X=x[Y];if(!(X==="["||X==="]"))if(X===":"){if(D===!0&&(L=!0),!J(T,R,O))break;if(++E>7){O.error=!0;break}Y>0&&x[Y-1]===":"&&(D=!0),R.push(":");continue}else if(X==="%"){if(!J(T,R,O))break;J=l}else{T.push(X);continue}}return T.length&&(J===l?O.zone=T.join(""):L?R.push(T.join("")):R.push(s(T))),O.address=R.join(""),O}function f(x){if(m(x,":")<2)return{host:x,isIPV6:!1};const E=c(x);if(E.error)return{host:x,isIPV6:!1};{let O=E.address,R=E.address;return E.zone&&(O+="%"+E.zone,R+="%25"+E.zone),{host:O,isIPV6:!0,escapedHost:R}}}function m(x,E){let O=0;for(let R=0;R<x.length;R++)x[R]===E&&O++;return O}function d(x){let E=x;const O=[];let R=-1,T=0;for(;T=E.length;){if(T===1){if(E===".")break;if(E==="/"){O.push("/");break}else{O.push(E);break}}else if(T===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){O.push("/");break}}else if(T===3&&E==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),O.length!==0&&O.pop();continue}}if((R=E.indexOf("/",1))===-1){O.push(E);break}else O.push(E.slice(0,R)),E=E.slice(R)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(x,E){const O=E?v:k;return O.lastIndex=0,x.replace(O,R=>p[R])}function b(x,E=!1){if(x.indexOf("%")===-1)return x;let O="";for(let R=0;R<x.length;R++){if(x[R]==="%"&&R+2<x.length){const T=x.slice(R+1,R+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));E&&i(L)?O+=L:O+="%"+D,R+=2;continue}}O+=x[R]}return O}const w=new Array(256);{const x="0123456789ABCDEF";for(let E=0;E<256;E++)w[E]="%"+x[E>>4]+x[E&15]}function C(x){return x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||x===42||x===43||x===45||x===46||x===47||x===64||x===95}function h(x){return x<2048?w[192|x>>6]+w[128|x&63]:x<65536?w[224|x>>12]+w[128|x>>6&63]+w[128|x&63]:w[240|x>>18]+w[128|x>>12&63]+w[128|x>>6&63]+w[128|x&63]}function y(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));L!=="."&&i(L)?E+=L:E+="%"+D,O+=2;continue}}if(a(R))E+=R;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function S(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const D=T.toUpperCase(),L=String.fromCharCode(parseInt(D,16));i(L)?E+=L:E+="%"+D,O+=2;continue}}if(n(R))E+=R;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function A(x){let E="";for(let O=0;O<x.length;O++){const R=x[O];if(R==="%"&&O+2<x.length){const D=x.slice(O+1,O+3);if(r(D)){E+="%"+D.toUpperCase(),O+=2;continue}}const T=x.charCodeAt(O);if(T<128)E+=C(T)?R:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const D=x.charCodeAt(O+1);D>=56320&&D<=57343?(E+=h(65536+(T-55296<<10)+(D-56320)),O++):E+=h(65533)}else E+=h(65533)}return E}function _(x){const E=[];if(x.userinfo!==void 0&&(E.push(x.userinfo),E.push("@")),x.host!==void 0){let O=unescape(x.host);if(!t(O)){const R=f(O);R.isIPV6===!0?O=`[${R.escapedHost}]`:O=g(O,!1)}E.push(O)}return(typeof x.port=="number"||typeof x.port=="string")&&(E.push(":"),E.push(String(x.port))),E.length?E.join(""):void 0}return Eu={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Eu}var Au,xp;function DP(){if(xp)return Au;xp=1;const{isUUID:e}=Fb(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function 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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;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 m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Au={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Au}var Sp;function MP(){if(Sp)return Sa.exports;Sp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=Fb(),{SCHEMES:c,getSchemeHandler:f}=DP();function m(E,O){return typeof E=="string"?E=S(E,O):typeof E=="object"&&(E=y(v(E,O),O)),E}function d(E,O,R){const T=R?Object.assign({scheme:"null"},R):{scheme:"null"},{parsed:D,malformedAuthorityOrPort:L}=h(E,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(L||Y)throw new Error(D.error||J.error||"URI is malformed.");const X=p(D,J,T,!0);return T.skipEscape=!0,v(X,T)}function p(E,O,R,T){const D={};return T||(E=y(v(E,R),R),O=y(v(O,R),R)),R=R||{},!R.tolerant&&O.scheme?(D.scheme=O.scheme,D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(D.userinfo=O.userinfo,D.host=O.host,D.port=O.port,D.path=t(O.path||""),D.query=O.query):(O.path?(O.path[0]==="/"?D.path=t(O.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?D.path="/"+O.path:E.path?D.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+O.path:D.path=O.path,D.path=t(D.path)),D.query=O.query):(D.path=E.path,O.query!==void 0?D.query=O.query:D.query=E.query),D.userinfo=E.userinfo,D.host=E.host,D.port=E.port),D.scheme=E.scheme),D.fragment=O.fragment,D}function k(E,O,R){const T=_(E,R),D=_(O,R);return T!==void 0&&D!==void 0&&T.toLowerCase()===D.toLowerCase()}function v(E,O){const R={host:E.host,scheme:E.scheme,userinfo:E.userinfo,port:E.port,path:E.path,query:E.query,nid:E.nid,nss:E.nss,uuid:E.uuid,fragment:E.fragment,reference:E.reference,resourceName:E.resourceName,secure:E.secure,error:""},T=Object.assign({},O),D=[],L=f(T.scheme||R.scheme);L&&L.serialize&&L.serialize(R,T),R.path!==void 0&&(T.skipEscape?R.path=i(R.path):(R.path=s(R.path),R.scheme!==void 0&&(R.path=R.path.split("%3A").join(":")))),T.reference!=="suffix"&&R.scheme&&D.push(R.scheme,":");const J=r(R);if(J!==void 0&&(T.reference!=="suffix"&&D.push("//"),D.push(J),R.path&&R.path[0]!=="/"&&D.push("/")),R.path!==void 0){let Y=R.path;!T.absolutePath&&(!L||!L.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),D.push(Y)}return R.query!==void 0&&D.push("?",R.query),R.fragment!==void 0&&D.push("#",R.fragment),D.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function C(E,O){if(O[2]!==void 0&&E.path&&E.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof E.port=="number"&&(E.port<0||E.port>65535))return"URI port is malformed."}function h(E,O){const R=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let D=!1,L=!1;R.reference==="suffix"&&(R.scheme?E=R.scheme+":"+E:E="//"+E);const J=E.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",D=!0);const Y=E.match(w);if(Y!==null){const P=Y[1],F=P.replace(/[\t\n\r]/g,"");F.length>=2&&(F.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",D=!0):P.length!==F.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",D=!0))}const X=E.match(g);if(X){T.scheme=X[1]===void 0?void 0:X[1].toLowerCase(),T.userinfo=X[3],T.host=X[4],T.port=parseInt(X[5],10),T.path=X[6]||"",T.query=X[7],T.fragment=X[8],isNaN(T.port)&&(T.port=X[5]);const P=C(T,X);if(P!==void 0&&(T.error=T.error||P,D=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),L=I.isIPV6}else L=!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",R.reference&&R.reference!=="suffix"&&R.reference!==T.reference&&(T.error=T.error||"URI is not a "+R.reference+" reference.");const F=f(R.scheme||T.scheme);if(!R.unicodeSupport&&(!F||!F.unicodeSupport)&&T.host&&(R.domainHost||F&&F.domainHost)&&L===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(B){T.error=T.error||"Host's domain name can not be converted to ASCII: "+B}(!F||F&&!F.skipNormalize)&&(E.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=o(unescape(T.host),L))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),F&&F.parse&&F.parse(T,R)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:D}}function y(E,O){return h(E,O).parsed}function S(E,O){return A(E,O).normalized}function A(E,O){const{parsed:R,malformedAuthorityOrPort:T}=h(E,O);return{normalized:T?E:v(R,O),malformedAuthorityOrPort:T}}function _(E,O){if(typeof E=="string"){const{normalized:R,malformedAuthorityOrPort:T}=A(E,O);return T?void 0:R}if(typeof E=="object")return v(E,O)}const x={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:k,serialize:v,parse:y};return Sa.exports=x,Sa.exports.default=x,Sa.exports.fastUri=x,Sa.exports}var LP=MP();const ad=Wr(LP);var Ca={},Cp;function qP(){if(Cp)return Ca;Cp=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 m,d,p=1,k=c.length;p<k;){if(c[p]==="constructor"||c[p]==="prototype"||c[p]==="__proto__")return u;if(m=i(c[p++]),d=k>p,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),d&&(c[p]!==""&&c[p]<1/0||c[p]==="-"?u[m]=[]:u[m]={})),!d)break;u=u[m]}var v=u[m];return f===void 0?delete u[m]:u[m]=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 s(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 m=1;m<f;){if(u=u[i(c[m++])],f===m)return u;if(typeof u!="object"||u===null)return}}function o(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 s(f,c)},set:function(f,m){return o(f,c,m)}}}return Ca.get=s,Ca.set=o,Ca.compile=l,Ca}var zP=qP();const Ou=Wr(zP);var $P=Object.prototype;function wl(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$P;return e===r}var UP=Ib(Object.keys,Object),BP=Object.prototype,VP=BP.hasOwnProperty;function Db(e){if(!wl(e))return UP(e);var t=[];for(var r in Object(e))VP.call(e,r)&&r!="constructor"&&t.push(r);return t}var Qc=ki(Yr,"DataView"),ef=ki(Yr,"Promise"),Hi=ki(Yr,"Set"),tf=ki(Yr,"WeakMap"),Ep="[object Map]",HP="[object Object]",Ap="[object Promise]",Op="[object Set]",_p="[object WeakMap]",Pp="[object DataView]",KP=bi(Qc),WP=bi(Ga),GP=bi(ef),JP=bi(Hi),YP=bi(tf),cr=on;(Qc&&cr(new Qc(new ArrayBuffer(1)))!=Pp||Ga&&cr(new Ga)!=Ep||ef&&cr(ef.resolve())!=Ap||Hi&&cr(new Hi)!=Op||tf&&cr(new tf)!=_p)&&(cr=function(e){var t=on(e),r=t==HP?e.constructor:void 0,i=r?bi(r):"";if(i)switch(i){case KP:return Pp;case WP:return Ep;case GP:return Ap;case JP:return Op;case YP:return _p}return t});var XP="[object Arguments]";function Ip(e){return gr(e)&&on(e)==XP}var Mb=Object.prototype,ZP=Mb.hasOwnProperty,QP=Mb.propertyIsEnumerable,Zi=Ip((function(){return arguments})())?Ip:function(e){return gr(e)&&ZP.call(e,"callee")&&!QP.call(e,"callee")},eI=9007199254740991;function sd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eI}function xi(e){return e!=null&&sd(e.length)&&!ls(e)}function tI(){return!1}var Lb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tp=Lb&&typeof module=="object"&&module&&!module.nodeType&&module,rI=Tp&&Tp.exports===Lb,jp=rI?Yr.Buffer:void 0,nI=jp?jp.isBuffer:void 0,ci=nI||tI,iI="[object Arguments]",aI="[object Array]",sI="[object Boolean]",oI="[object Date]",lI="[object Error]",uI="[object Function]",cI="[object Map]",fI="[object Number]",dI="[object Object]",mI="[object RegExp]",pI="[object Set]",hI="[object String]",gI="[object WeakMap]",yI="[object ArrayBuffer]",vI="[object DataView]",bI="[object Float32Array]",kI="[object Float64Array]",wI="[object Int8Array]",xI="[object Int16Array]",SI="[object Int32Array]",CI="[object Uint8Array]",EI="[object Uint8ClampedArray]",AI="[object Uint16Array]",OI="[object Uint32Array]",ht={};ht[bI]=ht[kI]=ht[wI]=ht[xI]=ht[SI]=ht[CI]=ht[EI]=ht[AI]=ht[OI]=!0;ht[iI]=ht[aI]=ht[yI]=ht[sI]=ht[vI]=ht[oI]=ht[lI]=ht[uI]=ht[cI]=ht[fI]=ht[dI]=ht[mI]=ht[pI]=ht[hI]=ht[gI]=!1;function _I(e){return gr(e)&&sd(e.length)&&!!ht[on(e)]}function od(e){return function(t){return e(t)}}var qb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qa=qb&&typeof module=="object"&&module&&!module.nodeType&&module,PI=qa&&qa.exports===qb,_u=PI&&_b.process,Qi=(function(){try{var e=qa&&qa.require&&qa.require("util").types;return e||_u&&_u.binding&&_u.binding("util")}catch{}})(),Rp=Qi&&Qi.isTypedArray,cs=Rp?od(Rp):_I,II="[object Map]",TI="[object Set]",jI=Object.prototype,RI=jI.hasOwnProperty;function wt(e){if(e==null)return!0;if(xi(e)&&(jt(e)||typeof e=="string"||typeof e.splice=="function"||ci(e)||cs(e)||Zi(e)))return!e.length;var t=cr(e);if(t==II||t==TI)return!e.size;if(wl(e))return!Db(e).length;for(var r in e)if(RI.call(e,r))return!1;return!0}function NI(){this.__data__=new ln,this.size=0}function FI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function DI(e){return this.__data__.get(e)}function MI(e){return this.__data__.has(e)}var LI=200;function qI(e,t){var r=this.__data__;if(r instanceof ln){var i=r.__data__;if(!Ga||i.length<LI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new un(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new ln(e);this.size=t.size}Or.prototype.clear=NI;Or.prototype.delete=FI;Or.prototype.get=DI;Or.prototype.has=MI;Or.prototype.set=qI;function ld(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Yo=(function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ud(e,t,r){t=="__proto__"&&Yo?Yo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var zI=Object.prototype,$I=zI.hasOwnProperty;function cd(e,t,r){var i=e[t];(!($I.call(e,t)&&us(i,r))||r===void 0&&!(t in e))&&ud(e,t,r)}function la(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?ud(r,o,l):cd(r,o,l)}return r}function zb(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 xl(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 $b(e,t){var r=jt(e),i=!r&&Zi(e),a=!r&&!i&&ci(e),n=!r&&!i&&!a&&cs(e),s=r||i||a||n,o=s?zb(e.length,String):[],l=o.length;for(var u in e)(t||HI.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||xl(u,l)))&&o.push(u);return o}function Cr(e){return xi(e)?$b(e):Db(e)}function KI(e,t){return e&&la(t,Cr(t),e)}function WI(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(!Ue(e))return WI(e);var t=wl(e),r=[];for(var i in e)i=="constructor"&&(t||!JI.call(e,i))||r.push(i);return r}function fs(e){return xi(e)?$b(e,!0):YI(e)}function XI(e,t){return e&&la(t,fs(t),e)}var Ub=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Np=Ub&&typeof module=="object"&&module&&!module.nodeType&&module,ZI=Np&&Np.exports===Ub,Fp=ZI?Yr.Buffer:void 0,Dp=Fp?Fp.allocUnsafe:void 0;function Bb(e,t){if(t)return e.slice();var r=e.length,i=Dp?Dp(r):new e.constructor(r);return e.copy(i),i}function fd(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 Vb(){return[]}var eT=Object.prototype,tT=eT.propertyIsEnumerable,Mp=Object.getOwnPropertySymbols,dd=Mp?function(e){return e==null?[]:(e=Object(e),QI(Mp(e),function(t){return tT.call(e,t)}))}:Vb;function rT(e,t){return la(e,dd(e),t)}function md(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,Hb=nT?function(e){for(var t=[];e;)md(t,dd(e)),e=yl(e);return t}:Vb;function iT(e,t){return la(e,Hb(e),t)}function Kb(e,t,r){var i=t(e);return jt(e)?i:md(i,r(e))}function rf(e){return Kb(e,Cr,dd)}function pd(e){return Kb(e,fs,Hb)}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 Xo=Yr.Uint8Array;function hd(e){var t=new e.constructor(e.byteLength);return new Xo(t).set(new Xo(e)),t}function lT(e,t){var r=t?hd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var uT=/\w*$/;function cT(e){var t=new e.constructor(e.source,uT.exec(e));return t.lastIndex=e.lastIndex,t}var Lp=hr?hr.prototype:void 0,qp=Lp?Lp.valueOf:void 0;function fT(e){return qp?Object(qp.call(e)):{}}function Wb(e,t){var r=t?hd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var dT="[object Boolean]",mT="[object Date]",pT="[object Map]",hT="[object Number]",gT="[object RegExp]",yT="[object Set]",vT="[object String]",bT="[object Symbol]",kT="[object ArrayBuffer]",wT="[object DataView]",xT="[object Float32Array]",ST="[object Float64Array]",CT="[object Int8Array]",ET="[object Int16Array]",AT="[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 hd(e);case dT:case mT:return new i(+e);case wT:return lT(e,r);case xT:case ST:case CT:case ET:case AT:case OT:case _T:case PT:case IT:return Wb(e,r);case pT:return new i;case hT:case vT:return new i(e);case gT:return cT(e);case yT:return new i;case bT:return fT(e)}}var zp=Object.create,Gb=(function(){function e(){}return function(t){if(!Ue(t))return{};if(zp)return zp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Jb(e){return typeof e.constructor=="function"&&!wl(e)?Gb(yl(e)):{}}var jT="[object Map]";function RT(e){return gr(e)&&cr(e)==jT}var $p=Qi&&Qi.isMap,NT=$p?od($p):RT,FT="[object Set]";function DT(e){return gr(e)&&cr(e)==FT}var Up=Qi&&Qi.isSet,MT=Up?od(Up):DT,LT=1,qT=2,zT=4,Yb="[object Arguments]",$T="[object Array]",UT="[object Boolean]",BT="[object Date]",VT="[object Error]",Xb="[object Function]",HT="[object GeneratorFunction]",KT="[object Map]",WT="[object Number]",Zb="[object Object]",GT="[object RegExp]",JT="[object Set]",YT="[object String]",XT="[object Symbol]",ZT="[object WeakMap]",QT="[object ArrayBuffer]",ej="[object DataView]",tj="[object Float32Array]",rj="[object Float64Array]",nj="[object Int8Array]",ij="[object Int16Array]",aj="[object Int32Array]",sj="[object Uint8Array]",oj="[object Uint8ClampedArray]",lj="[object Uint16Array]",uj="[object Uint32Array]",mt={};mt[Yb]=mt[$T]=mt[QT]=mt[ej]=mt[UT]=mt[BT]=mt[tj]=mt[rj]=mt[nj]=mt[ij]=mt[aj]=mt[KT]=mt[WT]=mt[Zb]=mt[GT]=mt[JT]=mt[YT]=mt[XT]=mt[sj]=mt[oj]=mt[lj]=mt[uj]=!0;mt[VT]=mt[Xb]=mt[ZT]=!1;function za(e,t,r,i,a,n){var s,o=t&LT,l=t&qT,u=t&zT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Ue(e))return e;var c=jt(e);if(c){if(s=oT(e),!o)return fd(e,s)}else{var f=cr(e),m=f==Xb||f==HT;if(ci(e))return Bb(e,o);if(f==Zb||f==Yb||m&&!a){if(s=l||m?{}:Jb(e),!o)return l?iT(e,XI(s,e)):rT(e,KI(s,e))}else{if(!mt[f])return a?e:{};s=TT(e,f,o)}}n||(n=new Or);var d=n.get(e);if(d)return d;n.set(e,s),MT(e)?e.forEach(function(v){s.add(za(v,t,r,v,e,n))}):NT(e)&&e.forEach(function(v,g){s.set(g,za(v,t,r,g,e,n))});var p=u?l?pd:rf:l?fs:Cr,k=c?void 0:p(e);return ld(k||e,function(v,g){k&&(g=v,v=e[g]),cd(s,g,za(v,t,r,g,e,n))}),s}function Qb(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function cj(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 fj(e,t){return t.length<2?e:kl(e,cj(t,0,-1))}var dj=Object.prototype,mj=dj.hasOwnProperty;function ek(e,t){t=oa(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=Rn(t[r]);if(a==="__proto__"&&!mj.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=fj(e,t);return n==null||delete n[Rn(Qb(t))]}function pj(e){return jn(e)?void 0:e}var Bp=hr?hr.isConcatSpreadable:void 0;function hj(e){return jt(e)||Zi(e)||!!(Bp&&e&&e[Bp])}function ds(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=hj),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?ds(o,t-1,r,i,a):md(a,o):i||(a[a.length]=o)}return a}function nf(e){var t=e==null?0:e.length;return t?ds(e,1):[]}function gj(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 Vp=Math.max;function tk(e,t,r){return t=Vp(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Vp(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),gj(e,this,o)}}function yj(e){return function(){return e}}function Sl(e){return e}var vj=Yo?function(e,t){return Yo(e,"toString",{configurable:!0,enumerable:!1,value:yj(t),writable:!0})}:Sl,bj=800,kj=16,wj=Date.now;function xj(e){var t=0,r=0;return function(){var i=wj(),a=kj-(i-r);if(r=i,a>0){if(++t>=bj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rk=xj(vj);function nk(e){return rk(tk(e,void 0,nf),e+"")}var Sj=1,Cj=2,Ej=4,Ja=nk(function(e,t){var r={};if(e==null)return r;var i=!1;t=sa(t,function(n){return n=oa(n,e),i||(i=n.length>1),n}),la(e,pd(e),r),i&&(r=za(r,Sj|Cj|Ej,pj));for(var a=t.length;a--;)ek(r,t[a]);return r});function Zo(e,t){if(nt in e&&ad.equal(e[nt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Ue(i)){const a=Zo(i,t);if(a!==void 0)return a}}else if(Ue(r)){const i=Zo(r,t);if(i!==void 0)return i}}function af(e,t){const r=ae(e,nt,t);let i=e;at in i&&(i={...i,[at]:ad.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Ue(s)?af(s,r):s)}:Ue(n)&&(i={...i,[a]:af(n,r)});return i}function gd(e,t){const r=t[e];return[Ja(t,[e]),r]}function ik(e,t={},r=[],i=ae(t,[nt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||nt in t&&t[nt]===s?n=Ou.get(t,l):t[Ia]===No&&(n=Zo(t,s.replace(/\/$/,"")),n!==void 0&&(n=Ou.get(n,l)))}else if(t[Ia]===No){const l=s?ad.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=Zo(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[nt],wt(c)||(n=Ou.get(n,decodeURIComponent(c.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,...m]=r,d=[...m,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=gd(at,n),c=ik(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ia]===a_||t[Ia]===No?{[Hr]:[l,c]}:{...l,...c}:c}return n}function Ya(e,t={},r=ae(t,[nt])){return ik(e,t,[],r)}var Aj=Object.prototype,Oj=Aj.hasOwnProperty;function _j(e,t){return e!=null&&Oj.call(e,t)}function ak(e,t,r){t=oa(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=Rn(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&&sd(a)&&xl(s,a)&&(jt(e)||Zi(e)))}function qe(e,t){return e!=null&&ak(e,t,_j)}var Pj="[object String]";function Nn(e){return typeof e=="string"||!jt(e)&&gr(e)&&on(e)==Pj}function yr(e){let t;const r=ae(e,t_);return Nn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var Ij=1/0;function Tj(e){var t=e==null?0:e.length;return t?ds(e,Ij):[]}function sf(e,t,r){(r!==void 0&&!us(e[t],r)||r===void 0&&!(t in e))&&ud(e,t,r)}function jj(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 sk=jj();function Xa(e){return gr(e)&&xi(e)}function of(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Rj(e){return la(e,fs(e))}function Nj(e,t,r,i,a,n,s){var o=of(e,r),l=of(t,r),u=s.get(l);if(u){sf(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var m=jt(l),d=!m&&ci(l),p=!m&&!d&&cs(l);c=l,m||d||p?jt(o)?c=o:Xa(o)?c=fd(o):d?(f=!1,c=Bb(l,!0)):p?(f=!1,c=Wb(l,!0)):c=[]:jn(l)||Zi(l)?(c=o,Zi(o)?c=Rj(o):(!Ue(o)||ls(o))&&(c=Jb(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),sf(e,r,c)}function ok(e,t,r,i,a){e!==t&&sk(t,function(n,s){if(a||(a=new Or),Ue(n))Nj(e,t,s,r,ok,i,a);else{var o=i?i(of(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),sf(e,s,o)}},fs)}function Cl(e,t){return rk(tk(e,t,Sl),e+"")}function Fj(e,t,r){if(!Ue(r))return!1;var i=typeof t;return(i=="number"?xi(r)&&xl(t,r.length):i=="string"&&t in r)?us(r[t],e):!1}function Dj(e){return Cl(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&&Fj(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 Mj=Dj(function(e,t,r){ok(e,t,r)});function yd(e,t,r,i){if(!Ue(e))return e;t=oa(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=Rn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var c=o[l];u=i?i(c,l,o):void 0,u===void 0&&(u=Ue(c)?c:xl(t[a+1])?[]:{})}cd(o,l,u),o=o[l]}return e}function lt(e,t,r){return e==null?e:yd(e,t,r)}function lk(e){return typeof e=="function"?e:Sl}var Lj=/\s/;function qj(e){for(var t=e.length;t--&&Lj.test(e.charAt(t)););return t}var zj=/^\s+/;function $j(e){return e&&e.slice(0,qj(e)+1).replace(zj,"")}var Hp=NaN,Uj=/^[-+]0x[0-9a-f]+$/i,Bj=/^0b[01]+$/i,Vj=/^0o[0-7]+$/i,Hj=parseInt;function Kj(e){if(typeof e=="number")return e;if(os(e))return Hp;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$j(e);var r=Bj.test(e);return r||Vj.test(e)?Hj(e.slice(2),r?2:8):Uj.test(e)?Hp:+e}var Kp=1/0,Wj=17976931348623157e292;function Gj(e){if(!e)return e===0?e:0;if(e=Kj(e),e===Kp||e===-Kp){var t=e<0?-1:1;return t*Wj}return e===e?e:0}function uk(e){var t=Gj(e),r=t%1;return t===t?r?t-r:t:0}var Jj=9007199254740991,Pu=4294967295,Yj=Math.min;function ck(e,t){if(e=uk(e),e<1||e>Jj)return[];var r=Pu,i=Yj(e,Pu);t=lk(t),e-=Pu;for(var a=zb(i,t);++r<e;)t(r);return a}function fk(e,t){return e&&sk(e,t,Cr)}var Xj="__lodash_hash_undefined__";function Zj(e){return this.__data__.set(e,Xj),this}function Qj(e){return this.__data__.has(e)}function fi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new un;++t<r;)this.add(e[t])}fi.prototype.add=fi.prototype.push=Zj;fi.prototype.has=Qj;function eR(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 tR=1,rR=2;function dk(e,t,r,i,a,n){var s=r&tR,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=n.get(e),c=n.get(t);if(u&&c)return u==t&&c==e;var f=-1,m=!0,d=r&rR?new fi:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var p=e[f],k=t[f];if(i)var v=s?i(k,p,f,t,e,n):i(p,k,f,e,t,n);if(v!==void 0){if(v)continue;m=!1;break}if(d){if(!eR(t,function(g,b){if(!Za(d,b)&&(p===g||a(p,g,r,i,n)))return d.push(b)})){m=!1;break}}else if(!(p===k||a(p,k,r,i,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function nR(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function vd(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var iR=1,aR=2,sR="[object Boolean]",oR="[object Date]",lR="[object Error]",uR="[object Map]",cR="[object Number]",fR="[object RegExp]",dR="[object Set]",mR="[object String]",pR="[object Symbol]",hR="[object ArrayBuffer]",gR="[object DataView]",Wp=hr?hr.prototype:void 0,Iu=Wp?Wp.valueOf:void 0;function yR(e,t,r,i,a,n,s){switch(r){case gR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case hR:return!(e.byteLength!=t.byteLength||!n(new Xo(e),new Xo(t)));case sR:case oR:case cR:return us(+e,+t);case lR:return e.name==t.name&&e.message==t.message;case fR:case mR:return e==t+"";case uR:var o=nR;case dR:var l=i&iR;if(o||(o=vd),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=aR,s.set(e,t);var c=dk(o(e),o(t),i,a,n,s);return s.delete(e),c;case pR:if(Iu)return Iu.call(e)==Iu.call(t)}return!1}var vR=1,bR=Object.prototype,kR=bR.hasOwnProperty;function wR(e,t,r,i,a,n){var s=r&vR,o=rf(e),l=o.length,u=rf(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var m=o[f];if(!(s?m in t:kR.call(t,m)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<l;){m=o[f];var g=e[m],b=t[m];if(i)var w=s?i(b,g,m,t,e,n):i(g,b,m,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var C=e.constructor,h=t.constructor;C!=h&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var xR=1,Gp="[object Arguments]",Jp="[object Array]",Fs="[object Object]",SR=Object.prototype,Yp=SR.hasOwnProperty;function CR(e,t,r,i,a,n){var s=jt(e),o=jt(t),l=s?Jp:cr(e),u=o?Jp:cr(t);l=l==Gp?Fs:l,u=u==Gp?Fs:u;var c=l==Fs,f=u==Fs,m=l==u;if(m&&ci(e)){if(!ci(t))return!1;s=!0,c=!1}if(m&&!c)return n||(n=new Or),s||cs(e)?dk(e,t,r,i,a,n):yR(e,t,l,r,i,a,n);if(!(r&xR)){var d=c&&Yp.call(e,"__wrapped__"),p=f&&Yp.call(t,"__wrapped__");if(d||p){var k=d?e.value():e,v=p?t.value():t;return n||(n=new Or),a(k,v,r,i,n)}}return m?(n||(n=new Or),wR(e,t,r,i,a,n)):!1}function El(e,t,r,i,a){return e===t?!0:e==null||t==null||!gr(e)&&!gr(t)?e!==e&&t!==t:CR(e,t,r,i,El,a)}var ER=1,AR=2;function OR(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],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Or,f;if(!(f===void 0?El(u,l,ER|AR,i,c):f))return!1}}return!0}function mk(e){return e===e&&!Ue(e)}function _R(e){for(var t=Cr(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,mk(a)]}return t}function pk(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function PR(e){var t=_R(e);return t.length==1&&t[0][2]?pk(t[0][0],t[0][1]):function(r){return r===e||OR(r,e,t)}}function IR(e,t){return e!=null&&t in Object(e)}function hk(e,t){return e!=null&&ak(e,t,IR)}var TR=1,jR=2;function RR(e,t){return rd(e)&&mk(t)?pk(Rn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?hk(r,e):El(t,i,TR|jR)}}function NR(e){return function(t){return t==null?void 0:t[e]}}function FR(e){return function(t){return kl(t,e)}}function DR(e){return rd(e)?NR(Rn(e)):FR(e)}function bd(e){return typeof e=="function"?e:e==null?Sl:typeof e=="object"?jt(e)?RR(e[0],e[1]):PR(e):DR(e)}function MR(e,t,r){var i=jt(e),a=i||ci(e)||cs(e);if(t=bd(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Ue(e)?r=ls(n)?Gb(yl(e)):{}:r={}}return(a?ld:fk)(e,function(s,o,l){return t(r,s,o,l)}),r}function LR(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 qR(e){return e!==e}function zR(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function gk(e,t,r){return t===t?zR(e,t,r):LR(e,qR,r)}function kd(e,t){var r=e==null?0:e.length;return!!r&&gk(e,t,0)>-1}function Fo(){}var $R=1/0,UR=Hi&&1/vd(new Hi([,-0]))[1]==$R?function(e){return new Hi(e)}:Fo,BR=200;function yk(e,t,r){var i=-1,a=kd,n=e.length,s=!0,o=[],l=o;if(n>=BR){var u=UR(e);if(u)return vd(u);s=!1,a=Za,l=new fi}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function vk(e){return e&&e.length?yk(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 VR=Cl(function(e){return yk(ds(e,1,Xa,!0))});function vr(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 an(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&&be(o)?a[n]=an(s,o):e&&t&&(vr(e)==="object"||vr(t)==="object")&&n===xb&&Array.isArray(s)&&Array.isArray(o)?a[n]=VR(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var HR="[object Number]";function bk(e){return typeof e=="number"||gr(e)&&on(e)==HR}function kk(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,[$e,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function Qo(e,t,r,i,a){if(t===void 0)return 0;const n=kk(t,r,a);if(bk(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&qe(o,[$e,a])){const l=ae(t,a),u=ae(o,[$e,a],{});if(e.isValid(u,l,i))return s}else if(o[$e]){const l={anyOf:Object.keys(o[$e]).map(c=>({required:[c]}))};let u;if(o.anyOf){const{...c}=o;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...o,...l};if(delete u.required,e.isValid(u,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const KR=Object.prototype;function Ta(e){for(const t in e)if(KR.hasOwnProperty.call(e,t))return!1;return!0}const WR=["array","boolean","integer","null","number","object","string"];new Set(WR);const GR=["$defs","definitions","properties","patternProperties","dependencies"];new Set(GR);const JR=["items","allOf","oneOf","anyOf"];new Set(JR);const YR=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(YR);function Do(e){return typeof e=="object"}function qr(e){return Do(e)?Ta(e):e===!0}function zi(e,t){return e<t?-1:e>t?1:0}function Tu(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 XR(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 Xp(e){return e.length===0}function ju(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 wk(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 u=r[l];for(let c=0;c<o;c++)if(e(u,s[c])===0)continue e;o=s.push(u)}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 ZR(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 s=[...t].sort(e),o=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(s[l],o[u]);c===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,u++):c<0?l++:u++}return i}}function QR(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const Zp=QR,xk=()=>0,eN=e=>e===void 0,tN=e=>typeof e!="object",Qp={boolean:0,number:1,string:2};function rN(e,t){const r=typeof e,i=typeof t;return r===i?zi(e,t):Qp[r]-Qp[i]}function nN(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 Al(e,t,r=xk){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Mi(e){return Al(eN,e)}function bn(e,t){return Al(r=>r===void 0||e(r),t)}function Ru(e,t){return Al(Array.isArray,e,t)}const At=Mi(zi),Nu=bn(e=>e===0,(e,t)=>e-t);function iN({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Zp(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),C=Math.min(b.length,w.length);for(let h=0;h<C;h++){const y=zi(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<C;h++){const y=b[h],S=k(v[y],g[y]);if(S!==0)return S}return 0}}function a(k){const v=ju(k),g=Zp(e,wk(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(zi);function s(k,v){if(Do(k)){if(Do(v)){const g=Object.keys(k),b=Object.keys(v),w=nN(g,b),C=w.length;for(let h=0;h<C;h++){const y=w[h];if(k[y]===v[y])continue;const A=(p[y]??o)(k[y],v[y]);if(A!==0)return A}return 0}return v===!0&&Ta(k)?0:1}return Do(v)?k===!0&&Ta(v)?0:-1:zi(k,v)}const o=Mi(u),l=Al(tN,Ru(i(o),ju(u)),rN);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Mi(s),f=bn(Ta,i(c)),m=Mi(a(s)),d=bn(qr,s),p={$id:At,$comment:At,$defs:f,$ref:At,$schema:At,const:o,contains:c,contentEncoding:At,contentMediaType:At,default:o,definitions:f,description:At,else:c,examples:o,exclusiveMaximum:At,exclusiveMinimum:At,format:At,if:c,maximum:At,maxItems:At,maxLength:At,maxProperties:At,minimum:At,multipleOf:At,not:c,pattern:At,propertyNames:c,readOnly:At,then:c,title:At,writeOnly:At,uniqueItems:bn(k=>k===!1,xk),minLength:Nu,minItems:Nu,minProperties:Nu,required:bn(Xp,n),enum:bn(Xp,a(u)),type:Mi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?zi(k,v):n(g?k:[k],b?v:[v])}),items:bn(k=>!Array.isArray(k)&&qr(k),Ru(s,ju(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:bn(Ta,i(Mi(Ru(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function eh(e){return e}const Sk=(e,t)=>e?Sk(t%e,e):t,aN=(e,t)=>Math.abs(e*t)/Sk(e,t);function sN(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Fu(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 Du(e,t){return e||t}function th(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 oN(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function Gn(e,t,r){r===void 0||qr(r)?delete e[t]:e[t]=r}const lN=["properties","patternProperties","additionalProperties"];function rh(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 nh=[[],[]];function ih(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 uN=["items","additionalItems"],cN=["if","then","else"];function ah(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 Mu(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 Jn(e,t,r){return[e,t,r]}function fN(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 dN=[Jn("minimum","maximum",e=>e.maximum>=e.minimum),Jn("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Jn("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Jn("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Jn("minLength","maxLength",e=>e.maxLength>=e.minLength),Jn("minItems","maxItems",e=>e.maxItems>=e.minItems),Jn("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function mN({mergePatterns:e=sN,isSubRegExp:t=Object.is,intersectJson:r=XR,deduplicateJsonSchemaDef:i=eh,defaultMerger:a=eh,assigners:n=[],checks:s=dN,mergers:o}={}){function l(C){const h=C.length;let y=C[0];for(let S=1;S<h;S++){const A=g(y,C[S]);if(A===!1)return!1;qr(A)||(y=A)}return y}function u(C,h,y,S,A,_,x){if(C.length=0,y===!1)return!1;if(C.push(y),A!==void 0){if(A===!1)return!1;C.push(A)}if(ih(C,h,_))return!1;const O=C.length<2;if(x===!1){if(O)return;if(ih(C,h,S))return!1}else O&&x!==void 0&&C.push(x);return C.length===1?C[0]:l(C)}function c(C,h,y,S,A,_){const x=y.length;if(x>0&&A!==!1)if(_)Object.assign(C,h);else for(let E=0;E<x;E++){const O=y[E];S.has(O)||(C[O]=g(h[O],A))}return C}const f=(C,{properties:h={},patternProperties:y,additionalProperties:S=!0},{properties:A={},patternProperties:_,additionalProperties:x=!0})=>{const E=qr(S),O=qr(x);if(E&&O)return Gn(C,"properties",b(h,A)),Gn(C,"patternProperties",y&&_?b(y,_):y??_),delete C.additionalProperties,C;const R=g(S,x);Gn(C,"additionalProperties",R);const T={},D=Object.keys(h),L=D.length,[J,Y]=y?rh(y):nh,[X,P]=_?rh(_):nh,F=[],B=new Set,I=O?void 0:x;for(let G=0;G<L;G++){const Z=D[G];B.add(Z);const z=u(F,Z,h[Z],J,A[Z],X,I);z!==void 0&&(T[Z]=z)}const N=Object.keys(A),M=N.length,U=E?void 0:S;for(let G=0;G<M;G++){const Z=N[G];if(B.has(Z))continue;const z=u(F,Z,A[Z],X,void 0,J,U);z!==void 0&&(T[Z]=z)}Gn(C,"properties",T);let $={};const H=new Set;return Y.length>0&&P.length>0&&Fu(Y,P,(G,Z)=>{t(G,Z)&&H.add(G),t(Z,G)&&H.add(Z),$[e(G,Z)]=g(y[G],_[Z])}),$=c($,y,Y,H,x,O),$=c($,_,P,H,S,E),Gn(C,"patternProperties",$),C},m=(C,{items:h=[],additionalItems:y},{items:S=[],additionalItems:A})=>{const _=Array.isArray(h),x=Array.isArray(S),E=[];if(C.items=E,_&&x){const[O,R,T]=h.length<S.length?[h.length,y,S]:[S.length,A,h];let D=0;for(;D<O;D++)E.push(g(h[D],S[D]));if(R===!1)C.additionalItems=!1;else{const L=R===void 0||qr(R);for(;D<T.length;D++)E.push(L?T[D]:g(T[D],R));Gn(C,"additionalItems",y!==void 0&&A!==void 0?g(y,A):y??A)}}else if(_||x){const[O,R,T]=_?[h,S,y]:[S,h,A];Gn(C,"additionalItems",T&&g(T,R));for(let D=0;D<O.length;D++)E.push(g(O[D],R))}else delete C.additionalItems,C.items=g(h,S);return C},d=(C,h,y)=>{ah(C,h);const S=ah({},y);return C.allOf===void 0?C.allOf=[S]:C.allOf=C.allOf.concat(S),C};function p(C,h){const y=[];if(Fu(C,h,(S,A)=>{try{y.push(g(S,A))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(C)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=oN([[lN,f],[uN,m],[cN,d],...n]),v=fN(s);function g(C,h){if(C===!1||h===!1)return!1;if(qr(C))return qr(h)?!0:h;if(qr(h))return C;let y={...C};const S=new Set,A=new Set,_=Reflect.ownKeys(h),x=_.length;for(let E=0;E<x;E++){const O=_[E],R=h[O];if(R===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let X=0;X<Y;X++){const P=T[X];C[P.oppositeKey]!==void 0&&A.add(P.check)}}const D=C[O];if(D===void 0){y[O]=R;continue}const L=k.get(O);if(L){S.add(L);continue}const J=w[O]??a;y[O]=J(D,R)}for(const E of S)y=E(y,C,h);for(const E of A)E(y);return y}const b=th(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(C,h)=>{if(C===h)return C;const y=Array.isArray(C),S=Array.isArray(h);if(!y&&!S){const A=Mu(C,h);if(A!==void 0)return A}else if(y||S){const A=new Set;if(y&&S)Fu(C,h,(x,E)=>{const O=Mu(x,E);O!==void 0&&A.add(O)});else{const x=y?C:h,E=y?h:C,O=x.length;for(let R=0;R<O;R++){const T=Mu(E,x[R]);T!==void 0&&A.add(T)}}const _=A.size;if(_===1)return A.values().next().value;if(_>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${C.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(C,h)=>{const y=i([C,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Du,writeOnly:Du,enum:(C,h)=>{const y=r(C,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(C)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(C,h)=>i(C.concat(h)),propertyNames:g,contains:g,dependencies:th((C,h)=>Array.isArray(C)?Array.isArray(h)?Tu(C,h):g(h,{required:C}):Array.isArray(h)?g(C,{required:h}):g(C,h)),examples:(C,h)=>{if(!Array.isArray(C)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(C)}" and "${JSON.stringify(h)}"`);return Tu(C,h)},multipleOf:(C,h)=>{let y=1;for(;!Number.isInteger(C)||!Number.isInteger(h);)y*=10,C*=10,h*=10;return aN(C,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:Du,required:Tu,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function pN(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 hN(e){return t=>e(pN(t))}const{compareSchemaDefinitions:gN,compareSchemaValues:yN}=iN(),{mergeArrayOfSchemaDefinitions:vN}=mN({intersectJson:ZR(yN),deduplicateJsonSchemaDef:wk(gN)}),Ck=hN(vN);function Ft(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function Ek(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function bN(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Ur(e,p,r,n,i,a,s))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Ur(e,p,r,n,i,a,s))}}else{const p=f?l:u;if(p!==void 0){const k=Ek(p);d=d.concat(Ur(e,k,r,n,i,a,s))}}return d.length&&(m=d.map(p=>an(c,p))),m.flatMap(p=>Ur(e,p,r,n,i,a,s))}function Ak(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>ck(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Ok(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(lt(r,[i],e.patternProperties[i]),r),{})}function kN(e,t,r,i,a,n,s,o){const l=_k(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(Xf in t)return Ik(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(Hr in t&&Array.isArray(t[Hr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return Ak(u).map(f=>({...t,allOf:f}))}return[t]}function _k(e,t,r,i,a,n,s,o){const l=En(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function En(e,t,r,i,a,n=!1){if(!be(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...u}=s;if(r.includes(l))return n?{...s,[Qf]:!0}:s;r.push(l),s={...Ya(l,t,o),...u,[Ro]:l},nt in s&&(o=s[nt])}if($e in s){const l=[],u=MR(s[$e],(c,f,m)=>{const d=[...r];c[m]=En(f,t,d,o,a,!a),l.push(d)},{});Mj(r,vk(Tj(l))),s={...s,[$e]:u}}if(Xi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:En(s.items,t,r,o,a)}),a){let l,u;Le in e&&Array.isArray(e[Le])?(l=Le,u=s[Le]):Ae in e&&Array.isArray(e[Ae])&&(l=Ae,u=s[Ae]),l&&u&&(s={...s,[l]:u.map(c=>En(c,t,r,o,a))})}return ze(e,s)?e:s}function wN(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&be(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(Yc in n){const l=Ok(n,o);if(!wt(l)){n.properties[o]=Ft(e,{[Hr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][Sn]=!0;return}}if(qi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Ft(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:Le in n.additionalProperties||Ae 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][Sn]=!0}else n.properties[o]={type:"null"},n.properties[o][Sn]=!0}}),n}function xN(e){return Ck(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?kN(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(Zf in f)return bN(e,f,r,a,n,i,s);if(Hr in f){if(a){const{allOf:d,...p}=f;return[...d,p]}try{const d=[],p=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{p.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:p}),f=s?s(f):xN(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:p,...k}=f;return k}}return $e in f&&Yc in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const k=Ok(d,p);return wt(k)||(d.properties[p]=Ft(e,{allOf:[d.properties[p],...Object.values(k)]},r,ae(i,[p]),s)),d},{...f,properties:{...f.properties}})),Yc in f||qi in f&&f.additionalProperties!==!1?wN(e,f,r,i,s):f}):[{}]}function SN(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 u=a===void 0&&i?{}:a,c=yr(t);n=n.map(m=>En(m,r,[]));const f=Qo(e,u,n,r,c);if(i){const m=Pk(n,!1,r);return Qo(e,u,m,r,c),n.map(d=>an(l,d))}return[an(l,n[f])]}return[t]}function Pk(e,t=!1,r){return e.map(i=>{if(!be(i))return Ek(i);const a=t&&r?En(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Ik(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return SN(e,l,r,i,n).flatMap(c=>Tk(e,o,c,r,i,a,n,s))}function Tk(e,t,r,i,a,n,s,o){let l=[r];for(const u in t)if((a||ae(s,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=gd(u,t);return Array.isArray(f)?l[0]=CN(r,f):be(f)&&(l=EN(e,r,i,u,f,a,n,s,o)),l.flatMap(m=>Tk(e,c,m,i,a,n,s,o))}return l}function CN(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 EN(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,l).flatMap(c=>{const{oneOf:f,...m}=c,d=an(t,m);if(f===void 0)return d;const p=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:_k(e,v,r,n,s,o));return Ak(p).flatMap(v=>AN(e,d,r,i,v,n,s,o,l))})}function AN(e,t,r,i,a,n,s,o,l){const u=a.filter(c=>{if(typeof c=="boolean"||!(c!=null&&c.properties))return!1;const{[i]:f}=c.properties;if(f){const m={type:"object",properties:{[i]:f}};return e.isValid(m,o,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,[m]=gd(i,f.properties),d={...f,properties:m};return Ur(e,d,r,o,n,s,l).map(k=>an(t,k))})}function ja(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=yr(r)||i,u=r[a].map(f=>Ft(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>ze(ae(f,[$e,l,li],ae(f,[$e,l,Kt])),c))}}function jk(e,t,r,i,a){let n=r;if(qe(r,at)&&(n=Ft(e,r,t,void 0,a)),wt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&qe(n,o))return n=ae(n,o),jk(e,t,n,l,a)}function Mo(e,t,r,i,a,n){const s=jk(e,t,r,i,n);return s===void 0?a:s}const sh={title:"!@#$_UNKNOWN_$#@!"};function ON(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),u=String(l);s.length&&s.forEach(d=>{o=Mo(e,t,o,[$e,d],{},n),qe(o,Ae)?o=ja(e,t,o,u,Ae,ae(a,d),n):qe(o,Le)&&(o=ja(e,t,o,u,Le,ae(a,d),n))}),qe(o,Ae)?o=ja(e,t,o,u,Ae,a,n):qe(o,Le)&&(o=ja(e,t,o,u,Le,a,n));let c=Mo(e,t,o,[$e,l],sh,n);c===sh&&(c=void 0);const f=Mo(e,t,o,xb,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function _N(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 PN(e,t){return function(r,i){if(r==null)return r;if(!xi(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 Rk=PN(fk);function IN(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function TN(e,t,r){var i=jt(e)?_N:IN,a=arguments.length<3;return i(e,bd(t),r,a,Rk)}const jN={type:"object",$id:e_,properties:{__not_really_there__:{type:"number"}}};function lf(e,t,r,i,a){let n=0;return r&&(Ue(r.properties)?n+=TN(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if(qe(o,at)){const c=Ft(e,o,t,u,a);return s+lf(e,t,c,u||{},a)}if((qe(o,Ae)||qe(o,Le))&&u){const c=qe(o,Ae)?Ae:Le,f=yr(o);return s+ea(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Ue(u)?1:0;return s+c+lf(e,t,o,u,a)}if(o.type===Qa(u)){let c=s+1;return o.default?c+=u===o.default?1:-1:o.const&&(c+=u===o.const?1:-1),c}return s},0):Nn(r.type)&&r.type===Qa(i)&&(n+=1)),n}function ea(e,t,r,i,a=-1,n,s){const o=i.map(m=>En(m,t,[])),l=kk(r,i,n);if(bk(l))return l;const u=o.reduce((m,d,p)=>(Qo(e,r,[jN,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||ck(o.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,k=o[d],v=lf(e,t,k,r,s);return c.add(v),v>p?{bestIndex:d,bestScore:v}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Nk(e){const t=e[Kt],r=vr(e);return be(t)&&Nn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Fk(e){return Array.isArray(e.enum)&&e.enum.length===1||Kt in e}function wd(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function ta(e){return e==null}function es(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((u,c)=>o[c]!==void 0?es(n[c],t[c],r,i,a):u);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const u=ae(t,o),c=be(e)&&o in e,f=o in t,m=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(v=>be(v)),p=c&&be(ae(e,o)),k=f&&be(u);return p&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=es(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&ta(t)||typeof t=="number"&&Number.isNaN(t))||a&&!ta(t)?e:t}function Fn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&be(s))i[a]=Fn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function RN(e){if(QO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Kt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function NN(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 di(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,s=u}let o=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 s&&(o=NN(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=yr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=me(i==null?void 0:i[s]),f=n;let m,d=c;if(a){const p=ae(f,[$e,a],{});m=ae(p,li,ae(p,Kt)),d=(l=(o=d??(p==null?void 0:p.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(m)}else m=RN(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function Ol(e,t,r={},i){const a=Ft(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"&&Fk(s)):!1}function xd(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Ol(e,t.items,r,i)}const FN=["string","number","integer","boolean","null"];var ra;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(ra||(ra={}));function Lu(e,t=ra.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!==ra.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Dk(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&wt(t)&&r===null?null:t}function oh(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!wt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?wt(r)||(e[t]=r):(!wt(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 An(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:m}=r;let d=be(a)?a:{};const p=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=o;if(p[Kt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Nk(p))k=p[Kt];else if(be(k)&&be(p.default)&&!p[Le]&&!p[Ae]&&!p[at])v?k=Fn(p.default,k):k=Fn(k,p.default);else if(li in p&&!v&&!p[Le]&&!p[Ae]&&!p[at])k=p.default;else if(at in p){const y=p[at];o.includes(y)||(w=o.concat(y),g=Ya(y,n));const S=a===void 0||be(a)&&wt(a);g&&!k&&S&&(k=p.default),f&&g&&!be(a)&&(d=a)}else if(Xf in p){const y={...lh(e,p,r,k),...d};[g]=Ik(e,p,n,!1,[],y,u)}else if(wd(p)&&!v)k=p.items.map((y,S)=>An(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(Ae in p){const{oneOf:y,...S}=p;if(y.length===0)return;const A=yr(p),{type:_="null"}=S;!Array.isArray(_)&&FN.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[ea(e,n,a??p.default,y,0,A,u)],g=an(S,g)}else if(Le in p){const{anyOf:y,...S}=p;if(y.length===0)return;const A=yr(p);g=y[ea(e,n,a??p.default,y,0,A,u)],g=an(S,g)}if(g)return An(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=p.default);const C=lh(e,p,r,k);let h=C??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,A=Sd(e,p,n,a,l,u);(!be(a)||Hr in p)&&(h=es(h,A,S,!0))}return h}function Sd(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&Hr in t,o=s?Ft(e,t,r,i,n):t,l=!Fk(o)&&Ol(e,o,r,n);let u=i;if(l){const f=di(o);u=(f==null?void 0:f.some(d=>ze(d.value,i)))?i:void 0}return o[Kt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,m)=>{const d=ae(o,[$e,m],{});return m in f&&(s||be(d)&&Hr in d)&&(f[m]=Sd(e,d,r,ae(f,m),a,n)),f},{...u})),u}function DN(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&Hr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Zf in d?Ft(e,d,i,m,o):d,v=k[Kt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var C;const h=ae(k,[$e,w],{}),y=be(v)&&v[w]!==void 0,S=(be(h)&&Kt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Nk(h),A=An(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(C=k.required)===null||C===void 0?void 0:C.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return oh(b,w,A,a,l,k.required,s,S,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,C=[];Object.keys(m).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),C.push(h)}),be(f)&&C.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const S=An(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(m,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});oh(g,h,S,a,l,C)})}return Dk(t,g)}}function MN(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var m,d;let p=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",C=g==="requiredOnly",h=g==="all"||!w&&!C,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(p)&&(p=p.map((E,O)=>{const R=Lu(k,ra.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return An(e,R,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:E,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const E=Lu(k);if(w)p=r;else{const O=r.map((T,D)=>An(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(p,[D]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=es(p,O,(C&&o||h)&&b)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!o?p:p??A;if(C&&!o)return p||void 0;let x;if(!k.minItems||xd(e,k,i,s)||y(e,k,i)||k.minItems<=_)x=p||!o&&!l?p:A;else{const E=p||[],O=Lu(k,ra.Invert),R=O.default,T=Array.from({length:k.minItems-_},()=>An(e,O,{parentDefaults:R,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));x=E.concat(T)}return Dk(t,x)}function lh(e,t,r={},i){switch(vr(t)){case"object":return DN(e,t,r,i);case"array":return MN(e,t,r,i);default:return}}function Mk(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Ft(e,t,i,r,s),u=An(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,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",m=Sd(e,l,i??l,r,n,s);return es(u,m,!0,f,!0)}return u}function Lk(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function qk(e,t,r={},i,a){if(r[td]==="files")return!0;if(t.items){const n=Ft(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function LN(e,t,r={},i,a,n){const s=me(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=vr(t),c=!!t[Sn];u==="array"&&(l=c||xd(e,t,i,n)||qk(e,t,r,i,n)||Lk(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[td]&&(l=!1),r!=null&&r[n_]&&(l=!1)}return l}function zk(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=kl(e,s);r(o,s)&&yd(n,oa(s,e),o)}return n}function qN(e,t){return zk(e,t,function(r,i){return hk(e,i)})}var $k=nk(function(e,t){return e==null?{}:qN(e,t)});function zN(e,t){if(t.length===0&&typeof e!="object")return e;const r=$k(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function $N(e,t){const r=(a,n)=>typeof a!="object"||wt(a)||n&&!wt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=s.map(f=>[...f,l]);u[ed]&&u[jo]!==""?n.push(u[jo]):i(u,n,c)}else l===jo&&u!==""&&s.forEach(c=>{const f=ae(t,c),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function Uk(e){return ta(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(Uk):!1}function UN(e,t){return t?t(e):Ck(e)}function BN(e,t,r={},i,a){function n(p){return be(p)}function s(p){return be(p)}function o(p,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:C,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function S(_,x,E,O=!1){var R;const T=d(x,E,v[_]);if(!O&&be(T)){let D=s(x)?x:{};D.$ref!==void 0&&(D=Ya(D.$ref,r));const L=new Set((R=D.required)!==null&&R!==void 0?R:[]);if(Object.entries(T).every(([Y,X])=>!L.has(Y)&&Uk(X)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,x]of Object.entries(b))S(_,x,k[_],y.has(_));let A;if(C!==void 0){A=[];const _=Object.entries(C).map(([E,O])=>[new RegExp(E),O]),x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))if(!x.has(E)){const R=_.find(([T])=>T.test(E));R===void 0?A.push(E):S(E,R[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(A!==void 0)for(const x of A)S(x,_,k[x]);else{const x=new Set(Object.keys(b??{}));for(const[E,O]of Object.entries(k))x.has(E)||S(E,_,O)}}if(h!==void 0)for(const[_,x]of Object.entries(k))v[_]=x;return v}function l(p,k,v){const{items:g,additionalItems:b}=p;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(p,k,v){const{if:g,then:b,else:w}=p;if(g===void 0)return v;const h=(s(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(p,k,v,g){if(!Array.isArray(p)||Ol(e,k,r,a))return g;const b=Pk(p,!0,r),w=ea(e,r,v,b,0,yr(k),a),C=p[w],h=be(C)?En(C,r,[]):b[w];return d(h,v,g)}function f(p,k,v){const{anyOf:g}=p;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,p,k,v)}function m(p,k,v){const{dependencies:g}=p;if(g===void 0||!n(k))return v;let b=v;for(const[w,C]of Object.entries(g))w in k&&!Array.isArray(C)&&(b=d(C,k,b));return b}function d(p,k,v){if(k===void 0||p===!1)return;if(p===!0||wt(p))return k;let g=p;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ya(b,r),k,v);if(w){g=UN(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)v=d(y[S],k,v)}let C=f(g,k,c(g.oneOf,g,k,v));const h=vr(g);if(h==="object"){if(!n(k))return;C=o(g,k,n(C)?C:{})}else if(h==="array"){if(!Array.isArray(k))return;C=l(g,k,Array.isArray(C)?C:[])}else C===void 0&&(C=k);return m(g,k,u(g,k,C))}return d(t,i)}const or=Symbol("no Value");function Bk(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(i=>Kt in i?i[Kt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:or).filter(i=>i!==or);return r.length>0?r:void 0}function VN(e,t){const r=Bk(e);if(!r||r.some(a=>ze(a,t)))return or;const i=ae(e,li,or);return i!==or&&r.some(a=>ze(a,i))?i:r.length===1?r[0]:void 0}function uf(e,t,r,i,a={},n){let s;if(qe(r,$e)){const o={};if(qe(i,$e)){const c=ae(i,$e,{});Object.keys(c).forEach(f=>{qe(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,$e,{})),u={};l.forEach(c=>{const f=ae(a,c);let m=ae(i,[$e,c],{}),d=ae(r,[$e,c],{});qe(m,at)&&(m=Ft(e,m,t,f,n)),qe(d,at)&&(d=Ft(e,d,t,f,n));const p=ae(m,"type"),k=ae(d,"type");if(!p||p===k)if(qe(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=uf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,li,or),g=ae(m,li,or);v!==or&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Kt,or),w=ae(m,Kt,or);if(b!==or&&b!==f&&(o[c]=w===f?b:void 0),qe(a,c)){const C=VN(d,f);C!==or&&(o[c]=C)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...u}}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)){qe(o,at)&&(o=Ft(e,o,t,a,n)),qe(l,at)&&(l=Ft(e,l,t,a,n));const u=ae(o,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")s=a.reduce((m,d)=>{const p=uf(e,t,l,o,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=Bk(l),d=m?a.filter(p=>m.some(k=>ze(k,p))):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 kn(e,t,r,i,a,n=[],s){if(at in t||Xf in t||Hr in t||Zf in t){const l=Ft(e,t,i,a,s);if(n.findIndex(c=>ze(c,l))===-1)return kn(e,l,r,i,a,n.concat(l),s)}let o={[jo]:r.replace(/^\./,"")};if(Ae in t||Le in t){const l=Ae in t?t.oneOf:t.anyOf,u=yr(t),c=ea(e,i,a,l,0,u,s),f=l[c];o={...o,...kn(e,f,r,i,a,n,s)}}if(qi in t&&t[qi]!==!1){lt(o,ed,!0);const l=Ue(t[qi])?t[qi]:{},u=ae(t,$e,{});for(const c of Object.keys(a??{}))c in u||(o[c]=kn(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(Xi in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=kn(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=kn(e,u,`${r}.${f}`,i,c,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{o[f]=kn(e,l,`${r}.${f}`,i,c,n,s)})}else if($e in t)for(const l in t.properties){const u=ae(t,[$e,l],{});o[l]=kn(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function HN(e,t,r="",i,a,n){return kn(e,t,r,i,a,void 0,n)}class KN{constructor(t,r,i,a){(r==null?void 0:r[Ia])===No?this.rootSchema=af(r,ae(r,nt,"#")):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||!ze(this.rootSchema,r)||!ze(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return ON(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return ja(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Mk(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return LN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return ea(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return Qo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return Mo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return qk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return xd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Ol(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return BN(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Ft(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 HN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function WN(e,t,r={},i){return new KN(e,t,r,i)}function GN(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||"",u=decodeURI(((t=o.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 wn(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Vk(e,t){const r=e<=0&&t<=0,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 Vk(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:wn(l,2)});return o}function JN(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 YN(e,t){return JN(e,t)}function _l(e,t=[],r){if(Array.isArray(e))return e.map(n=>_l(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function Hk(e,t,r=[]){const i=_l(e,r);return Array.isArray(t)?t.filter(a=>!ze(a,i)):ze(i,t)?void 0:t}function ua(e,t){return Array.isArray(t)?t.some(r=>ze(r,e)):ze(t,e)}function Kk(e,t=[],r=!1){const i=t.map((a,n)=>ua(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function XN(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=Kk(e,t,r);return typeof s>"u"?a:s}function Wk(e,t,r=[]){const i=_l(e,r);if(!ta(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 uh(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 _r(e,t,r="indexed",i){return r!=="realValue"?_l(e,t,i):Array.isArray(e)?e.map(a=>uh(a,t,i)):uh(e,t,i)}function ms(e,t,r="indexed"){return r!=="realValue"?String(t):ta(e)?"":String(typeof e=="object"?t:e)}var ZN=1,QN=4;function el(e){return za(e,ZN|QN)}function eF(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:yd(e,t,r,i)}class Gk{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={},eF(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?el(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Nt);return Array.isArray(a)||(a=[],i[Nt]=a),Array.isArray(t)?lt(i,Nt,[...new Set([...a,...t])]):lt(i,Nt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return lt(i,Nt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return lt(r,Nt,[]),this}}var tF=200;function rF(e,t,r,i){var a=-1,n=kd,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=tF&&(n=Za,s=!1,t=new fi(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=u;m--;)if(t[m]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var nF=Cl(function(e,t){return Xa(e)?rF(e,ds(t,1,Xa,!0)):[]});function iF(e,t){if(e==null)return{};var r=sa(pd(e),function(i){return[i]});return t=bd(t),zk(e,r,function(i,a){return t(i,a[0])})}function ch(e,t){const r=jn(e),i=jn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Cr(e);if(!r&&i)return Cr(t);const a=Cr(iF(e,(s,o)=>!ze(s,ae(t,o)))),n=nF(Cr(t),Cr(e));return[...a,...n]}function aF(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,minute:l,second:u}=e,c={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},m={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,c,m);break;case"DMY":d.push(c,f,m);break;case"YMD":default:d.push(m,f,c)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function sF(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 oF(e,t,r={},i=!0){const a={type:t||"text",...sF(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 ps(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const fh={props:{disabled:!1},submitText:"Submit",norender:!1};function Cd(e={}){const t=me(e);if(t!=null&&t[Go]){const r=t[Go];return{...fh,...r}}return fh}function ye(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 lF=0;function Jk(e){var t=++lF;return id(e)+t}function Ed(){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,Jk("test-id-")),e.get(r)}})}var Ds={exports:{}},et={};/**
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 q=z($,X,R,M,U+"."+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 ch;function sF(){if(ch)return et;ch=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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p;p=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 o:case s:case l:case m:case f:case n:return v;default:return g}}case t:return g}}}return et.ContextConsumer=s,et.ContextProvider=n,et.Element=e,et.ForwardRef=l,et.Fragment=r,et.Lazy=m,et.Memo=f,et.Portal=t,et.Profiler=a,et.StrictMode=i,et.Suspense=u,et.SuspenseList=c,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(v){return k(v)===s},et.isContextProvider=function(v){return k(v)===n},et.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},et.isForwardRef=function(v){return k(v)===l},et.isFragment=function(v){return k(v)===r},et.isLazy=function(v){return k(v)===m},et.isMemo=function(v){return k(v)===f},et.isPortal=function(v){return k(v)===t},et.isProfiler=function(v){return k(v)===a},et.isStrictMode=function(v){return k(v)===i},et.isSuspense=function(v){return k(v)===u},et.isSuspenseList=function(v){return k(v)===c},et.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===m||v.$$typeof===f||v.$$typeof===n||v.$$typeof===s||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},et.typeOf=k,et}var tt={};/**
67
+ */var dh;function uF(){if(dh)return et;dh=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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p;p=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 o:case s:case l:case m:case f:case n:return v;default:return g}}case t:return g}}}return et.ContextConsumer=s,et.ContextProvider=n,et.Element=e,et.ForwardRef=l,et.Fragment=r,et.Lazy=m,et.Memo=f,et.Portal=t,et.Profiler=a,et.StrictMode=i,et.Suspense=u,et.SuspenseList=c,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(v){return k(v)===s},et.isContextProvider=function(v){return k(v)===n},et.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},et.isForwardRef=function(v){return k(v)===l},et.isFragment=function(v){return k(v)===r},et.isLazy=function(v){return k(v)===m},et.isMemo=function(v){return k(v)===f},et.isPortal=function(v){return k(v)===t},et.isProfiler=function(v){return k(v)===a},et.isStrictMode=function(v){return k(v)===i},et.isSuspense=function(v){return k(v)===u},et.isSuspenseList=function(v){return k(v)===c},et.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===m||v.$$typeof===f||v.$$typeof===n||v.$$typeof===s||v.$$typeof===l||v.$$typeof===p||v.getModuleId!==void 0)},et.typeOf=k,et}var tt={};/**
68
68
  * @license React
69
69
  * react-is.development.js
70
70
  *
@@ -72,74 +72,74 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var q=z($,X,R,M,U+"."+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 fh;function oF(){return fh||(fh=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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function C(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===u||K===c||g||K===d||p||k||v||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===f||K.$$typeof===n||K.$$typeof===s||K.$$typeof===l||K.$$typeof===w||K.getModuleId!==void 0))}function h(K){if(typeof K=="object"&&K!==null){var ie=K.$$typeof;switch(ie){case e:var re=K.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case o:case s:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,S=n,A=e,_=l,x=r,E=m,O=f,j=t,T=a,F=i,L=u,J=c,Y=!1,Q=!1;function P(K){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(K){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return h(K)===s}function I(K){return h(K)===n}function R(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function M(K){return h(K)===l}function U(K){return h(K)===r}function $(K){return h(K)===m}function H(K){return h(K)===f}function G(K){return h(K)===t}function X(K){return h(K)===a}function z(K){return h(K)===i}function q(K){return h(K)===u}function W(K){return h(K)===c}tt.ContextConsumer=y,tt.ContextProvider=S,tt.Element=A,tt.ForwardRef=_,tt.Fragment=x,tt.Lazy=E,tt.Memo=O,tt.Portal=j,tt.Profiler=T,tt.StrictMode=F,tt.Suspense=L,tt.SuspenseList=J,tt.isAsyncMode=P,tt.isConcurrentMode=D,tt.isContextConsumer=B,tt.isContextProvider=I,tt.isElement=R,tt.isForwardRef=M,tt.isFragment=U,tt.isLazy=$,tt.isMemo=H,tt.isPortal=G,tt.isProfiler=X,tt.isStrictMode=z,tt.isSuspense=q,tt.isSuspenseList=W,tt.isValidElementType=C,tt.typeOf=h})()),tt}var dh;function lF(){return dh||(dh=1,process.env.NODE_ENV==="production"?Ds.exports=sF():Ds.exports=oF()),Ds.exports}var uF=lF();const mh=Wr(uF),Lu={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 cF(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}),lt(e,"MergedWidget",r)}return r}function Kr(e,t,r={}){const i=vr(e);if(typeof t=="function"||t&&mh.isForwardRef(V.createElement(t))||mh.isMemo(t))return cF(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 Kr(e,a,r)}if(typeof i=="string"){if(!(i in Lu))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in Lu[i]){const a=r[Lu[i][t]];return Kr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function Gk(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 Jk(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function fr(e){return Gk(Jk(e))}function fF(e){return Gk(Jk(e))}function dF(e,t,r={}){try{return Kr(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 Si(e,t){return`${Nn(e)?e:e[nt]}__${t}`}function $n(e){return Si(e,"description")}function Cd(e){return Si(e,"error")}function Ed(e){return Si(e,"examples")}function Ad(e){return Si(e,"help")}function _l(e){return Si(e,"title")}function Rr(e,t=!1){const r=t?` ${Ed(e)}`:"";return`${Cd(e)} ${$n(e)} ${Ad(e)}${r}`}function Pl(e,t){return`${e}-${t}`}function ir(e,t){return Si(e,t)}function qu(e,t){return Si(e,`optional${t}`)}function ca(e){return!ta(e)&&(!Ue(e)||Array.isArray(e)||!wt(e))}function mF(e,t){const{rootSchema:r,schemaUtils:i}=e;if(ze(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return ze(t,a)}return!1}function pF(e,t,r){return t?r:e}function hF(e){return e?new Date(e).toJSON():void 0}function gF(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Bk(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 Od(e,t,r){const i=[QO];return qe(e,lp)&&i.unshift(lp),ae(e,[...i,t],r)}function yF(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,m)=>(f[m]=!0,f),{}),i=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,a=r(e),n=t.filter(c=>c==="*"||a[c]),s=r(n),o=e.filter(c=>!s[c]),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 u=[...n];return u.splice(l,1,...o),u}function zu(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 vF(e,t,r){var i,a;const n=(i=e[Ro])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||wt(t)?l={...o}:l=Fn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Ro])try{u=Ya(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
- `,c),l}for(const c of[Ae,Le]){const f=u[c];if(Array.isArray(f)&&f.length>0){const m=l[c],d=Array.isArray(m)?[...m]:[];let p=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Ro])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Fn(s[g],b),p=!0}}p&&(l[c]=d)}}}return l}function $a(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 $a(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return $a(e.oneOf[0]);if(e.allOf){const a=n=>$a(n);return e.allOf.some(a)}return!1}function bF({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>ua(d,s)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const m=ye("DescriptionFieldTemplate",a,i);return N.jsx(m,{id:$n(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function uf(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 kF(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!uf(s,t)||!uf(o,r)}const{props:a,state:n}=e;return!ze(a,t)||!ze(n,r)}function ph(e){const t=hk(e.map(r=>Ue(r)?vr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function hs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return Le in t&&Array.isArray(t[Le])?n=ph(t[Le]):Ae in t&&Array.isArray(t[Ae])?n=ph(t[Ae]):n=vr(t),!mF(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function hh(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),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function _d(e,t=[]){if(!e)return[];let r=[];return Nt in e&&(r=r.concat(e[Nt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Nt){const n=e[a];if(jn(n))return i.concat(_d(n,[...t,a]))}return i},r)}function Yk(e){return jt(e)?sa(e,Rn):os(e)?[e]:cd(Pb(nd(e)))}function wF(e){const t=new Hk;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:Yk(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Tr(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,[nt]:o,...l!==void 0&&{name:l}}}function Xk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return jn(i)?{...t,[r]:Xk(i)}:{...t,[r]:i}},{})}function xF(e){return Object.values(e).every(t=>t!==-1)}function SF(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=V.useCallback(g=>n(r,g),[n,r]);return N.jsx(k,{schema:{type:"integer"},id:p,name:o,className:t,options:{enumOptions:$k(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":Rr(s)})}function CF(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=V.useState(zu(s,t));V.useEffect(()=>{l(zu(s,t))},[t,s]);const u=V.useCallback((d,p)=>{const k={...o,[d]:typeof p>"u"?-1:p};xF(k)?n(hh(k,t)):l(k)},[o,n,t]),c=V.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=V.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=zu(new Date().toJSON(),t);n(hh(p,t))},[r,i,t,n]);return{elements:V.useMemo(()=>rF(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function fa(e){const t=V.useRef(e);return ze(e,t.current)||(t.current=e),t.current}function EF(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function AF(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:EF(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function OF(e){return Promise.all(Array.from(e).map(AF))}function gh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=HN(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function _F(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?gh(e):gh([e||""]),[e]),n=V.useCallback(async o=>{const u=(await OF(o)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),s=V.useCallback(o=>{if(r){const l=i.filter((u,c)=>c!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function PF(e){if(!e)return"";const t=new Date(e),r=kn(t.getFullYear(),4),i=kn(t.getMonth()+1,2),a=kn(t.getDate(),2),n=kn(t.getHours(),2),s=kn(t.getMinutes(),2),o=kn(t.getSeconds(),2),l=kn(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function Ra(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=_d(t),s=t;return wt(a)||(s=Fn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function IF(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]=Sb+i:t[r]=Pd(i)}return e}function TF(e){return e.map(t=>Pd(t))}function Pd(e){return Array.isArray(e)?TF([...e]):Ue(e)?IF({...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 jF(e,t){var r=jt(e)?od:Ik;return r(e,ak(t))}function RF(e,t){return e==null?!0:Xb(e,t)}function cf(){return Wk("rjsf-array-item-")}function yh(e){return Array.isArray(e)?e.map(t=>({key:cf(),item:t})):[]}function Zk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function NF(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Qk(e,t,r,i){let{addable:a}=me(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function e1(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 FF(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:kd(t)&&JO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function DF(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:f,registry:m,rawErrors:d,name:p,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=m,C=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=di(C,h),{widget:S="select",title:A,..._}=me(i,w),x=Kr(t,S,v),E=A??t.title??p,O=g.getDisplayLabel(t,i,w),j=fa(Tr("",b,r,!0));return N.jsx(x,{id:j[nt],name:p,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:s,required:l,label:E,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:j.name})}function MF(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:l,placeholder:u,onBlur:c,onFocus:f,formData:m=[],registry:d,rawErrors:p,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:C}=d,{widget:h,title:y,...S}=me(i,C),A=Kr(t,h,g),_=y??t.title??k,x=b.getDisplayLabel(t,i,C),E=fa(Tr("",w,r,!0));return N.jsx(A,{id:E[nt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!x,placeholder:u,autofocus:s,rawErrors:p,htmlName:E.name})}function LF(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,onBlur:u,onFocus:c,registry:f,formData:m=[],rawErrors:d,onSelectChange:p}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:C,...h}=me(r,b),y=Kr(t,w,k),S=C??t.title??a,A=v.getDisplayLabel(t,r,b),_=fa(Tr("",g,i,!0));return N.jsx(y,{options:h,id:_[nt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:_.name})}function qF(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:m,canMoveDown:d,rawItemSchema:p,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:C,onFocus:h,onChange:y,rawErrors:S,totalItems:A,title:_,handleAddItem:x,handleCopyItem:E,handleRemoveItem:O,handleReorderItems:j}=e,{schemaUtils:T,fields:{ArraySchemaField:F,SchemaField:L},globalUiOptions:J,globalFormOptions:Y}=o,Q=V.useMemo(()=>T.retrieveSchema(p,k),[T,p,k]),P=V.useMemo(()=>Tr(r,Y,g),[r,Y,g]),D=F||L,B=ye("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(Q,v,J),{description:R}=me(v),M=!!R||!!Q.description,{orderable:U=!0,removable:$=!0,copyable:H=!1}=l,G={moveUp:U&&m,moveDown:U&&d,copy:H&&c,remove:$&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const X=V.useCallback(re=>{x(re,r+1)},[x,r]),z=V.useCallback(re=>{E(re,r)},[E,r]),q=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{j(re,r,r-1)},[j,r]),K=V.useCallback(re=>{j(re,r,r+1)},[j,r]),ie={children:N.jsx(D,{name:i,title:_,index:r,schema:Q,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:NF(Q),onChange:y,onBlur:C,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:A,onAddItem:X,onCopyItem:z,onRemoveItem:q,onMoveUpItem:W,onMoveDownItem:K,registry:o,schema:Q,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:Q,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:M};return N.jsx(B,{...ie})}const t1=V.memo(qF);function zF(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:A,fields:_,formContext:x,globalUiOptions:E}=d,{OptionalDataControlsField:O}=_,j=V.useMemo(()=>me(r,E),[r,E]),T=V.useMemo(()=>Ue(t.items)?t.items:{},[t.items]),F=V.useMemo(()=>A.retrieveSchema(T),[A,T]),L=V.useMemo(()=>Zk(b),[b]),J=hs(d,t,f,r),Y=ca(n),Q=V.useMemo(()=>Qk(d,t,L,r)&&(!J||Y),[d,t,L,r,J,Y]),P=Y?b:[],D=J?" rjsf-optional-array-field":"",B=e.childFieldPathId??a,I=J?N.jsx(O,{...e,fieldPathId:B}):void 0,R={canAdd:Q,items:P.map((U,$)=>{const{key:H,item:G}=U,X=G,z=i?i[$]:void 0,q=e1(r,G,$,x),W={itemKey:H,index:$,name:s&&`${s}-${$}`,registry:d,uiOptions:j,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:S?`${S}-${$+1}`:void 0,canAdd:Q,canMoveUp:$>0,canMoveDown:$<L.length-1,rawItemSchema:T,parentFieldPathId:B,itemErrorSchema:z,itemData:X,itemUiSchema:q,autofocus:c&&$===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx(t1,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${D}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:S,formData:L,rawErrors:v,registry:d,optionalDataControl:I},M=ye("ArrayFieldTemplate",d,j);return N.jsx(M,{...R})}function $F(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:_,formContext:x,globalUiOptions:E}=d,O=V.useMemo(()=>me(r,E),[r,E]),{OptionalDataControlsField:j}=_,T=hs(d,t,f,r),F=ca(i),L=V.useMemo(()=>Ue(t.items)?t.items:[],[t.items]),J=Ue(t.additionalItems),Y=e.childFieldPathId??n;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const Q=F?g:[],P=T?" rjsf-optional-array-field":"",D=T?N.jsx(j,{...e,fieldPathId:Y}):void 0,B=Qk(d,t,S,r)&&J&&(!T||F),I={canAdd:B,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:Q.map((M,U)=>{const{key:$,item:H}=M,G=H,X=U>=L.length,z=(X&&Ue(t.additionalItems)?t.additionalItems:L[U])||{};let q;X?q=r.additionalItems:Array.isArray(r.items)?q=r.items[U]:q=e1(r,H,U,x);const W=a?a[U]:void 0,K={index:U,itemKey:$,name:s&&`${s}-${U}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:A?`${A}-${U+1}`:void 0,canAdd:B,canRemove:X,canMoveUp:U>=L.length+1,canMoveDown:X&&U<S.length-1,rawItemSchema:z,itemData:G,itemUiSchema:q,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&U===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y};return N.jsx(t1,{...K},$)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:a,rawErrors:v,optionalDataControl:D},R=ye("ArrayFieldTemplate",d,O);return N.jsx(R,{...I})}function UF(e=[]){const t=V.useMemo(()=>fr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:yh(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((u,c)=>({key:u.key,item:o[c]})):yh(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=V.useCallback(o=>{const l=Zk(o),u=fr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function BF(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=UF(s),d=V.useRef(f);d.current=f;const p=V.useRef(i);p.current=i;const k=e.childFieldPathId??a,v=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const j of Object.keys(p.current)){const T=parseInt(j,10);_===void 0||T<_?lt(x,[T],p.current[T]):T>=_&&lt(x,[T+1],p.current[T])}}const E={key:cf(),item:FF(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,E):O.push(E),o(m(O),k.path,x)},[n,t,o,m,k]),g=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const j of Object.keys(p.current)){const T=parseInt(j,10);T<=_?lt(x,[T],p.current[T]):T>_&&lt(x,[T+1],p.current[T])}}const E={key:cf(),item:el(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,E):O.push(E),o(m(O),k.path,x)},[o,m,k]),b=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const O of Object.keys(p.current)){const j=parseInt(O,10);j<_?lt(x,[j],p.current[j]):j>_&&lt(x,[j-1],p.current[j])}}const E=d.current.filter((O,j)=>j!==_);o(m(E),k.path,x)},[o,m,k]),w=V.useCallback((A,_,x)=>{A&&(A.preventDefault(),A.currentTarget.blur());let E;if(p.current){E={};for(const T of Object.keys(p.current)){const F=parseInt(T,10);F===_?lt(E,[x],p.current[_]):F===x?lt(E,[_],p.current[x]):lt(E,[T],p.current[F])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(x,0,d.current[_]),T}const j=O();o(m(j),k.path,E)},[o,m,k]),C=V.useCallback((A,_,x,E)=>{const O=typeof _.at(-1)=="number";o(O&&A===void 0?null:A,_,x,E)},[o]),h=V.useCallback(A=>{o(A,k.path,void 0,k==null?void 0:k[nt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},S={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:C};if(!(Xi in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),x=ye("UnsupportedFieldTemplate",n,_);return N.jsx(x,{schema:t,fieldPathId:a,reason:c(_e.MissingItems),registry:n})}const A={...t,[Xi]:{type:void 0}};y.schema=A,S.schema=A}return u.isMultiSelect(y.schema)?N.jsx(DF,{...y}):Fk(r)?N.jsx(MF,{...y}):kd(y.schema)?N.jsx($F,{...S}):u.isFilesArray(y.schema,r)?N.jsx(LF,{...y}):N.jsx(zF,{...S})}function VF(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,disabled:l,readonly:u,hideError:c,autofocus:f,title:m,onChange:d,onFocus:p,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:C}=s,{widget:h="checkbox",title:y,label:S=!0,enumNames:A,..._}=me(i,C),x=Kr(t,h,b),E=w(_e.YesLabel),O=w(_e.NoLabel);let j;const T=y??g??m??r;if(Array.isArray(t.oneOf))j=di({oneOf:t.oneOf.map(L=>{if(Ue(L))return{...L,title:L.title||(L.const===!0?E:O)}}).filter(L=>L)},i);else{const L=t.enum??[!0,!1];!A&&L.length===2&&L.every(J=>typeof J=="boolean")?j=[{value:L[0],label:L[0]?E:O},{value:L[1],label:L[1]?E:O}]:j=di({enum:L},i)}const F=V.useCallback((L,J,Y)=>d(L,a.path,J,Y),[d,a]);return N.jsx(x,{options:{..._,enumOptions:j},schema:t,uiSchema:i,id:a.$id,name:r,onChange:F,onFocus:p,onBlur:k,label:T,hideLabel:!S,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function HF(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=me(s,l),c=ye("CyclicSchemaExpandTemplate",a,u);if(!t)return N.jsx(c,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return N.jsx(m,{...e,schema:{...n,[Zf]:!1}})}function KF(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function WF(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function GF(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 JF(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:m,fieldPathId:d,onChange:p,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=m,[w,C]=V.useState(WF(r)),h=me(s),y=fa(Tr("__internal_type_selector",b,d)),S=v(_e.Type),A=V.useMemo(()=>KF(S),[S]),_=O=>{O!=null&&(C(O),p(GF(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(_e.UnknownFieldType,[String(a.type)])}=e,j=ye("UnsupportedFieldTemplate",m,h);return N.jsx(j,{schema:a,fieldPathId:d,reason:O,registry:m})}const x=ye("FallbackFieldTemplate",m,h),{SchemaField:E}=g;return N.jsx(x,{schema:a,registry:m,typeSelector:N.jsx(E,{fieldPathId:y,name:`${n}__fallback_type`,schema:A,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:o},r?fr(r):"__empty__"),schemaField:N.jsx(E,{...e,schema:{type:w,title:v(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function YF(e,t){return sa(t,function(r){return e[r]})}function XF(e){return e==null?[]:YF(e,Cr(e))}var ZF=Math.max;function QF(e,t,r,i){e=xi(e)?e:XF(e),r=r?sk(r):0;var a=e.length;return r<0&&(r=ZF(a+r,0)),Nn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&mk(e,t,r)>-1}var eD=Math.min;function tD(e,t,r){for(var i=bd,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=eD(c.length,l),o[s]=a>=120&&c.length>=120?new fi(s&&c):void 0}c=e[0];var f=-1,m=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?Za(m,p):i(u,p))){for(s=n;--s;){var k=o[s];if(!(k?Za(k,p):i(e[s],p)))continue e}m&&m.push(p),u.push(d)}}return u}function rD(e){return Xa(e)?e:[]}var vh=Sl(function(e){var t=sa(e,rD);return t.length&&t[0]===e[0]?tD(t):[]});function nD(e,t){return Cl(e,t)}function r1(e){return e===void 0}var Br;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Br||(Br={}));var Ua;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Ua||(Ua={}));const iD=/^\$lookup=(.+)/,$u="layoutGrid";function bh(e,t){return e??t}function aD(e){return/^\d+?$/.test(e)}const On=Sd();function sD(e,t,r,i,a){const n=ae(r,[Yc],{}),s=ae(r,e),o={...ae(s,[Cn],{}),...t,...n},l={...s};wt(o)||lt(l,[Cn],o),wt(n)||lt(l,[Yc],n);let{readonly:u}=me(l);return(a===!0||r1(u)&&i===!0)&&(u=!0,qe(o,wu)?lt(l,[Cn,wu],!0):lt(l,`ui:${wu}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function oD(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=rf([t]).sort(),a=rf([r]).sort();switch(e){case Ua.ALL:return nD(i,a);case Ua.SOME:return vh(i,a).length>0;case Ua.NONE:return vh(i,a).length===0;default:return!1}}function Il(e,t,r){let i={},a=e[t];if(jn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>Od(r,c,c)).join(" ");i={...o,className:u}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function kh(e,t,r){let i,a=t;if(aD(r)&&e&&(e==null?void 0:e.type)==="array"&&qe(e,Xi)){const n=Number(r),s=e[Xi];Array.isArray(s)?n>s.length?i=Yb(s):i=s[n]:i=s,a={[nt]:t[nt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function lD(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(o,i),m=i,d=f.readOnly;u.forEach(v=>{if(l=Tr(v,s,l),qe(f,$e))o=ae(f,[$e,v],{});else if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=n.findSelectedOptionInXxxOf(f,v,g,m);o=ae(b,[$e,v],{})}else{const g=kh(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}m=ae(m,v,{}),f=n.retrieveSchema(o,m),d=bh(f.readOnly,d)});let p,k=!1;if(wt(f)&&(f=void 0),f&&c){if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Tr(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&QF(f.required,c);const v=kh(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[$e,c]),f=f&&n.retrieveSchema(f)),d=bh(f==null?void 0:f.readOnly,d),f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=yr(f);p={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:p,fieldPathId:l}}function uD(e,t){let r=e;return Nn(r)&&(r=Od(t,r)),ls(r)?r:null}function cD(e,t){let r,i=null,a={},n;if(Nn(t)||r1(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,wt(a)||jF(a,(u,c)=>{if(Nn(u)){const f=iD.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=Od(e,m,m)}}}),i=uD(o,e),!s&&i&&(n=N.jsx(i,{...l,"data-testid":On.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Tl(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=>V.createElement(Id,{...r,key:`layoutGrid-${fr(l)}`,schema:o,layoutGridSchema:l}))}function fD(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=Il(t,Br.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return oD(o,c,u)?N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n}):null}function dD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.COLUMN,i),o=me(a),l=ye("GridTemplate",i,o);return N.jsx(l,{column:!0,"data-testid":On.col,...s,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n})})}function mD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.COLUMNS,i),o=me(a),l=ye("GridTemplate",i,o);return n.map(u=>N.jsx(l,{column:!0,"data-testid":On.col,...s,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:[u]})},`column-${fr(u)}`))}function pD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.ROW,i),o=me(a),l=ye("GridTemplate",i,o);return N.jsx(l,{...s,"data-testid":On.row,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n})})}function hD(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:k,LayoutMultiSchemaField:v}=p,g=cD(c,t),{name:b,UIComponent:w,uiProps:C}=g,{schema:h,isRequired:y,isReadonly:S,optionsInfo:A,fieldPathId:_}=lD(c,b,r,l,n),x=fa(_);if(g.rendered)return g.rendered;if(h){const E=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:j}=sD(b,C,i,S,u);return N.jsx(E,{"data-testid":A!=null&&A.hasDiscriminator?On.layoutMultiSchemaField:On.field,...m,name:b,required:y,readonly:j,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:x,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:c})}return w?N.jsx(w,{"data-testid":On.uiComponent,...m,name:b,required:y,formData:l,readOnly:!!S||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...C}):null}function Id(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&$u in i&&Ue(i[$u])&&(r=i[$u]),Ue(r)){if(Br.ROW in r)return N.jsx(pD,{...e,layoutGridSchema:r});if(Br.COLUMN in r)return N.jsx(dD,{...e,layoutGridSchema:r});if(Br.COLUMNS in r)return N.jsx(mD,{...e,layoutGridSchema:r});if(Br.CONDITION in r)return N.jsx(fD,{...e,layoutGridSchema:r})}return N.jsx(hD,{...e,gridSchema:r})}Id.TEST_IDS=On;function gD(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=me(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const m=ye("TitleFieldTemplate",s,l);return N.jsx(m,{id:_l(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function Uu(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[$e,t]);return ae(s,li,ae(s,Kt,i))===r})}function wh(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;qe(e,Ae)?s={...e,[Ae]:n}:qe(e,Le)&&(s={...e,[Le]:n});const o=di(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function yD(e){var q;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,options:l,onFocus:u,registry:c,uiSchema:f,schema:m,autofocus:d,readonly:p,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:C}=c,[h,y]=V.useState(wh(m,l,w,f,a)),S=ae(n,nt),A=yr(m),_=ye("FieldErrorTemplate",c,l),x=ye("FieldTemplate",c,l),E=fr(m),O=fr(l),j=f?fr(f):"",T=a?fr(a):"";V.useEffect(()=>{y(wh(m,l,w,f,a))},[E,O,w,j,T]);const{widget:F=A?"radio":"select",title:L="",placeholder:J="",optionsSchemaSelector:Y=A,hideError:Q,...P}=me(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const D=ae(a,Y);let B=ae((q=h[0])==null?void 0:q.schema,[$e,Y],{});const I=Uu(h,Y,D);B=B!=null&&B.type?B:{...B,type:(I==null?void 0:I.type)||r};const R=Kr(B,F,b),M=Q===void 0?g:!!Q,U=ae(v,[Nt],[]),$=Ja(v,[Nt]),H=w.getDisplayLabel(m,f,C),G=W=>{if(i||p)return;const K=Uu(h,Y,W),ie=Uu(h,Y,D);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&&lt(re,Y,W),o(re,n.path,void 0,S)},X={enumOptions:h,...P},z=!M&&U.length>0?N.jsx(_,{fieldPathId:n,schema:m,errors:U,registry:c}):void 0;return N.jsx(x,{fieldPathId:n,id:S,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,required:k,readonly:!!p,registry:c,displayLabel:H,errors:z,onChange:o,onKeyRename:Fo,onKeyRenameBlur:Fo,onRemoveProperty:Fo,children:N.jsx(R,{id:S,name:t,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,autofocus:d,readonly:p,required:k,registry:c,multiple:!1,rawErrors:U,hideError:M,hideLabel:!H,errorSchema:$,placeholder:J,onChange:G,onBlur:s,onFocus:u,value:D,options:X,htmlName:n.name})})}function xh(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:k}=f,v=fr(a??null),g=V.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=V.useState(()=>{const re=yr(d);return k.getClosestMatchingOption(a,g,0,re)}),C=V.useRef(!1),h=V.useRef(a),y=V.useRef(n.$id);V.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!ze(a,re)&&n.$id===ue){if(C.current){C.current=!1;return}const ge=yr(d),we=k.getClosestMatchingOption(a,g,b,ge);we!==b&&w(we)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ge=ue>=0?g[ue]:void 0,we=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ge,we,a);ge&&(ke=k.getDefaultFormState(ge,ke,"excludeObjectChildren")),w(ue),C.current=!0,o(ke,n.path,void 0,S)},[b,g,r,c,k,a,n,o,S]),{widgets:_,fields:x,translateString:E,globalUiOptions:O}=f,{SchemaField:j}=x,T=ye("MultiSchemaFieldTemplate",f,O),F=hs(f,d,m,p),L=ca(a),{widget:J="select",placeholder:Y,autofocus:Q,autocomplete:P,title:D=d.title,...B}=me(p,O),I=Kr({type:"number"},J,_),R=ae(i,Nt,[]),M=Ja(i,[Nt]),U=k.getDisplayLabel(d,p,O),$=b>=0&&g[b]||null;let H;if($){const{required:re,type:ue}=d,ge={};re&&(ge.required=re),ue!==void 0&&!("type"in $)&&(ge.type=ue),H=Object.keys(ge).length>0?nn(ge,$):$}let G=[];Ae in d&&p&&Ae in p?Array.isArray(p[Ae])?G=p[Ae]:console.warn(`uiSchema.oneOf is not an array for "${D||t}"`):Le in d&&p&&Le in p&&(Array.isArray(p[Le])?G=p[Le]:console.warn(`uiSchema.anyOf is not an array for "${D||t}"`));let X=p;b>=0&&G.length>b&&(X=G[b]);const z=D?_e.TitleOptionPrefix:_e.OptionPrefix,q=D?[D]:[],W=g.map((re,ue)=>{const{title:ge=re.title}=me(G[ue]);return{label:ge||E(z,q.concat(String(ue+1))),value:ue}}),K=!F||L?N.jsx(I,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:l,disabled:r||wt(W),multiple:!1,rawErrors:R,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:W,...B},registry:f,placeholder:Y,autocomplete:P,autofocus:Q,label:D??t,hideLabel:!U,readonly:c}):void 0,ie=H&&H.type!=="null"&&N.jsx(j,{...e,schema:H,uiSchema:X})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:p,selector:K,optionSchemaField:ie})}function vD(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const bD=/\.([0-9]*0)*$/,kD=/[0.]0*$/;function wD(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=V.useState(a),{StringField:o}=t.fields,l=vb(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,p,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&bD.exec(b)?op(b.replace(kD,"")):op(b);r(w,p,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 m=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:p}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?di(d,p):void 0)?"select":"text",{widget:b=g}=me(p);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(c).replace(".",l))}return N.jsx(o,{...e,formData:m,onChange:f})}var Ms;function xD(e){if(!Ms){if(typeof document>"u")return;Ms=document.createElement("textarea")}var t=`&${e};`;Ms.innerHTML=t;var r=Ms.value;return r===t?void 0:r}var se=32,le=9,Dn=13,fe=10,Je=96,_t=126,vt=91,cn=94,Re=62,br=35,ff=37,Oe=45,dr=61,Tt=92,xt=42,gt=95,rt=60,n1=64,jr=93,Wt=33,jl=38,qt=58,df=70,mi=102,tl=104,si=119,Ki=116,mf=112,i1=115,SD=160,CD=12,ED=44,rl=59,da=63,mr=46,yt=47,pi=39,hi=34,Mn=43,It=124,gi=123,Td=125,Er=40,Pr=41,AD=78,OD=110,_D=79,PD=111,a1=120,s1=88,pf=30,Te=48,je=57,xe=65,Ee=90,Xe=97,ut=122,Rl=128,Sr=32,ID={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=ID;function TD(e){if(!Ch(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]!==`
75
+ */var mh;function cF(){return mh||(mh=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"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function C(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===u||K===c||g||K===d||p||k||v||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===f||K.$$typeof===n||K.$$typeof===s||K.$$typeof===l||K.$$typeof===w||K.getModuleId!==void 0))}function h(K){if(typeof K=="object"&&K!==null){var ie=K.$$typeof;switch(ie){case e:var re=K.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case o:case s:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,S=n,A=e,_=l,x=r,E=m,O=f,R=t,T=a,D=i,L=u,J=c,Y=!1,X=!1;function P(K){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(K){return X||(X=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return h(K)===s}function I(K){return h(K)===n}function N(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function M(K){return h(K)===l}function U(K){return h(K)===r}function $(K){return h(K)===m}function H(K){return h(K)===f}function G(K){return h(K)===t}function Z(K){return h(K)===a}function z(K){return h(K)===i}function q(K){return h(K)===u}function W(K){return h(K)===c}tt.ContextConsumer=y,tt.ContextProvider=S,tt.Element=A,tt.ForwardRef=_,tt.Fragment=x,tt.Lazy=E,tt.Memo=O,tt.Portal=R,tt.Profiler=T,tt.StrictMode=D,tt.Suspense=L,tt.SuspenseList=J,tt.isAsyncMode=P,tt.isConcurrentMode=F,tt.isContextConsumer=B,tt.isContextProvider=I,tt.isElement=N,tt.isForwardRef=M,tt.isFragment=U,tt.isLazy=$,tt.isMemo=H,tt.isPortal=G,tt.isProfiler=Z,tt.isStrictMode=z,tt.isSuspense=q,tt.isSuspenseList=W,tt.isValidElementType=C,tt.typeOf=h})()),tt}var ph;function fF(){return ph||(ph=1,process.env.NODE_ENV==="production"?Ds.exports=uF():Ds.exports=cF()),Ds.exports}var dF=fF();const hh=Wr(dF),qu={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 mF(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})=>j.jsx(e,{options:{...i,...a},...n}),lt(e,"MergedWidget",r)}return r}function Kr(e,t,r={}){const i=vr(e);if(typeof t=="function"||t&&hh.isForwardRef(V.createElement(t))||hh.isMemo(t))return mF(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 Kr(e,a,r)}if(typeof i=="string"){if(!(i in qu))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in qu[i]){const a=r[qu[i][t]];return Kr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function Yk(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 Xk(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function fr(e){return Yk(Xk(e))}function pF(e){return Yk(Xk(e))}function hF(e,t,r={}){try{return Kr(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 Si(e,t){return`${Nn(e)?e:e[nt]}__${t}`}function $n(e){return Si(e,"description")}function Ad(e){return Si(e,"error")}function Od(e){return Si(e,"examples")}function _d(e){return Si(e,"help")}function Pl(e){return Si(e,"title")}function Rr(e,t=!1){const r=t?` ${Od(e)}`:"";return`${Ad(e)} ${$n(e)} ${_d(e)}${r}`}function Il(e,t){return`${e}-${t}`}function ir(e,t){return Si(e,t)}function zu(e,t){return Si(e,`optional${t}`)}function ca(e){return!ta(e)&&(!Ue(e)||Array.isArray(e)||!wt(e))}function gF(e,t){const{rootSchema:r,schemaUtils:i}=e;if(ze(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return ze(t,a)}return!1}function yF(e,t,r){return t?r:e}function vF(e){return e?new Date(e).toJSON():void 0}function bF(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Kk(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 Pd(e,t,r){const i=[r_];return qe(e,cp)&&i.unshift(cp),ae(e,[...i,t],r)}function kF(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,m)=>(f[m]=!0,f),{}),i=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,a=r(e),n=t.filter(c=>c==="*"||a[c]),s=r(n),o=e.filter(c=>!s[c]),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 u=[...n];return u.splice(l,1,...o),u}function $u(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 wF(e,t,r){var i,a;const n=(i=e[Ro])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||wt(t)?l={...o}:l=Fn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Ro])try{u=Ya(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
+ `,c),l}for(const c of[Ae,Le]){const f=u[c];if(Array.isArray(f)&&f.length>0){const m=l[c],d=Array.isArray(m)?[...m]:[];let p=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Ro])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Fn(s[g],b),p=!0}}p&&(l[c]=d)}}}return l}function $a(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 $a(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return $a(e.oneOf[0]);if(e.allOf){const a=n=>$a(n);return e.allOf.some(a)}return!1}function xF({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>ua(d,s)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const m=ye("DescriptionFieldTemplate",a,i);return j.jsx(m,{id:$n(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function cf(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 SF(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!cf(s,t)||!cf(o,r)}const{props:a,state:n}=e;return!ze(a,t)||!ze(n,r)}function gh(e){const t=vk(e.map(r=>Ue(r)?vr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function hs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return Le in t&&Array.isArray(t[Le])?n=gh(t[Le]):Ae in t&&Array.isArray(t[Ae])?n=gh(t[Ae]):n=vr(t),!gF(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function yh(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),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function Id(e,t=[]){if(!e)return[];let r=[];return Nt in e&&(r=r.concat(e[Nt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Nt){const n=e[a];if(jn(n))return i.concat(Id(n,[...t,a]))}return i},r)}function Zk(e){return jt(e)?sa(e,Rn):os(e)?[e]:fd(jb(id(e)))}function CF(e){const t=new Gk;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:Zk(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Tr(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,[nt]:o,...l!==void 0&&{name:l}}}function Qk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return jn(i)?{...t,[r]:Qk(i)}:{...t,[r]:i}},{})}function EF(e){return Object.values(e).every(t=>t!==-1)}function AF(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=V.useCallback(g=>n(r,g),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:p,name:o,className:t,options:{enumOptions:Vk(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":Rr(s)})}function OF(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=V.useState($u(s,t));V.useEffect(()=>{l($u(s,t))},[t,s]);const u=V.useCallback((d,p)=>{const k={...o,[d]:typeof p>"u"?-1:p};EF(k)?n(yh(k,t)):l(k)},[o,n,t]),c=V.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=V.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=$u(new Date().toJSON(),t);n(yh(p,t))},[r,i,t,n]);return{elements:V.useMemo(()=>aF(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function fa(e){const t=V.useRef(e);return ze(e,t.current)||(t.current=e),t.current}function _F(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function PF(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:_F(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function IF(e){return Promise.all(Array.from(e).map(PF))}function vh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=GN(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function TF(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?vh(e):vh([e||""]),[e]),n=V.useCallback(async o=>{const u=(await IF(o)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),s=V.useCallback(o=>{if(r){const l=i.filter((u,c)=>c!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function jF(e){if(!e)return"";const t=new Date(e),r=wn(t.getFullYear(),4),i=wn(t.getMonth()+1,2),a=wn(t.getDate(),2),n=wn(t.getHours(),2),s=wn(t.getMinutes(),2),o=wn(t.getSeconds(),2),l=wn(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function Ra(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=Id(t),s=t;return wt(a)||(s=Fn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function RF(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]=Ab+i:t[r]=Td(i)}return e}function NF(e){return e.map(t=>Td(t))}function Td(e){return Array.isArray(e)?NF([...e]):Ue(e)?RF({...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 FF(e,t){var r=jt(e)?ld:Rk;return r(e,lk(t))}function DF(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(`/${Le}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Ae}/`):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(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 MF(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=o.replace(/\//g,"."),k=`${p} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=p?`${p}.${b}`:b;let C=me(ae(t,w.replace(/^\./,""))).title;if(C===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);C=me(ae(t,h)).title}if(C===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);C=ae(t,[...h,b,"title"])}if(C)d=d.replace(`'${b}'`,`'${C}'`),v=C;else{const h=ae(f,[$e,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=p.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const _ of y)S.push($e,_);S.push($e,b,"title");const A=ae(i,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),k=d;else{const b=me(ae(t,p.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&&(p=p?`${p}.${u.missingProperty}`:u.missingProperty),{name:l,property:p,message:d,params:u,stack:k,schemaPath:c,title:v}});return DF(a,r)}function LF(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=MF(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=CF(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Mk(e,i,r,i,!0),m=a(f,Zc(f),s,c),d=Qk(m);return Ra({errors:u,errorSchema:c},d)}var Ms={exports:{}},Uu={},Zr={},Yn={},Bu={},Vu={},Hu={},bh;function tl(){return bh||(bh=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,C)=>`${w}${C}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,C)=>(C instanceof r&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let C=0;for(;C<b.length;)o(w,b[C]),w.push(g[++C]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let C=0;for(;C<b.length;)w.push(n),o(w,b[C]),w.push(n,d(g[++C]));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=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:s`${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 m(g){return new i(d(g))}e.stringify=m;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=p;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})(Hu)),Hu}var Ku={},kh;function wh(){return kh||(kh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=tl();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 s=(0,t._)`\n`;class o extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s: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 m=this.toName(u),{prefix:d}=m,p=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(p);if(b)return b}else k=this._values[d]=new Map;k.set(p,m);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,m.setValue(c,{property:d,itemIndex:g}),m}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,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},c,f)}_reduceValues(u,c,f={},m){let d=t.nil;for(const p in u){const k=u[p];if(!k)continue;const v=f[p]=f[p]||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=m==null?void 0:m(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=o})(Ku)),Ku}var xh;function Ne(){return xh||(xh=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=tl(),r=wh();var i=tl();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=wh();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(N,M){return this}}class s extends n{constructor(N,M,U){super(),this.varKind=N,this.name=M,this.rhs=U}render({es5:N,_n:M}){const U=N?r.varKinds.var:this.varKind,$=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${$};`+M}optimizeNames(N,M){if(N[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,N,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(N,M,U){super(),this.lhs=N,this.rhs=M,this.sideEffects=U}render({_n:N}){return`${this.lhs} = ${this.rhs};`+N}optimizeNames(N,M){if(!(this.lhs instanceof t.Name&&!N[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,N,M),this}get names(){const N=this.lhs instanceof t.Name?{}:{...this.lhs.names};return R(N,this.rhs)}}class l extends o{constructor(N,M,U,$){super(N,U,$),this.op=M}render({_n:N}){return`${this.lhs} ${this.op}= ${this.rhs};`+N}}class u extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`${this.label}:`+N}}class c extends n{constructor(N){super(),this.label=N,this.names={}}render({_n:N}){return`break${this.label?` ${this.label}`:""};`+N}}class f extends n{constructor(N){super(),this.error=N}render({_n:N}){return`throw ${this.error};`+N}get names(){return this.error.names}}class m extends n{constructor(N){super(),this.code=N}render({_n:N}){return`${this.code};`+N}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(N,M){return this.code=T(this.code,N,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(N=[]){super(),this.nodes=N}render(N){return this.nodes.reduce((M,U)=>M+U.render(N),"")}optimizeNodes(){const{nodes:N}=this;let M=N.length;for(;M--;){const U=N[M].optimizeNodes();Array.isArray(U)?N.splice(M,1,...U):U?N[M]=U:N.splice(M,1)}return N.length>0?this:void 0}optimizeNames(N,M){const{nodes:U}=this;let $=U.length;for(;$--;){const H=U[$];H.optimizeNames(N,M)||(D(N,H.names),U.splice($,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((N,M)=>O(N,M.names),{})}}class p extends d{render(N){return"{"+N._n+super.render(N)+"}"+N._n}}class k extends d{}class v extends p{}v.kind="else";class g extends p{constructor(N,M){super(M),this.condition=N}render(N){let M=`if(${this.condition})`+super.render(N);return this.else&&(M+="else "+this.else.render(N)),M}optimizeNodes(){super.optimizeNodes();const N=this.condition;if(N===!0)return this.nodes;let M=this.else;if(M){const U=M.optimizeNodes();M=this.else=Array.isArray(U)?new v(U):U}if(M)return N===!1?M instanceof g?M:M.nodes:this.nodes.length?this:new g(L(N),M instanceof g?[M]:M.nodes);if(!(N===!1||!this.nodes.length))return this}optimizeNames(N,M){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(N,M),!!(super.optimizeNames(N,M)||this.else))return this.condition=T(this.condition,N,M),this}get names(){const N=super.names;return R(N,this.condition),this.else&&O(N,this.else.names),N}}g.kind="if";class b extends p{}b.kind="for";class w extends b{constructor(N){super(),this.iteration=N}render(N){return`for(${this.iteration})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iteration=T(this.iteration,N,M),this}get names(){return O(super.names,this.iteration.names)}}class C extends b{constructor(N,M,U,$){super(),this.varKind=N,this.name=M,this.from=U,this.to=$}render(N){const M=N.es5?r.varKinds.var:this.varKind,{name:U,from:$,to:H}=this;return`for(${M} ${U}=${$}; ${U}<${H}; ${U}++)`+super.render(N)}get names(){const N=R(super.names,this.from);return R(N,this.to)}}class h extends b{constructor(N,M,U,$){super(),this.loop=N,this.varKind=M,this.name=U,this.iterable=$}render(N){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(N)}optimizeNames(N,M){if(super.optimizeNames(N,M))return this.iterable=T(this.iterable,N,M),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(N,M,U){super(),this.name=N,this.args=M,this.async=U}render(N){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(N)}}y.kind="func";class S extends d{render(N){return"return "+super.render(N)}}S.kind="return";class A extends p{render(N){let M="try"+super.render(N);return this.catch&&(M+=this.catch.render(N)),this.finally&&(M+=this.finally.render(N)),M}optimizeNodes(){var N,M;return super.optimizeNodes(),(N=this.catch)===null||N===void 0||N.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(N,M){var U,$;return super.optimizeNames(N,M),(U=this.catch)===null||U===void 0||U.optimizeNames(N,M),($=this.finally)===null||$===void 0||$.optimizeNames(N,M),this}get names(){const N=super.names;return this.catch&&O(N,this.catch.names),this.finally&&O(N,this.finally.names),N}}class _ extends p{constructor(N){super(),this.error=N}render(N){return`catch(${this.error})`+super.render(N)}}_.kind="catch";class x extends p{render(N){return"finally"+super.render(N)}}x.kind="finally";class E{constructor(N,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
77
+ `:""},this._extScope=N,this._scope=new r.Scope({parent:N}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(N){return this._scope.name(N)}scopeName(N){return this._extScope.name(N)}scopeValue(N,M){const U=this._extScope.value(N,M);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(N,M){return this._extScope.getValue(N,M)}scopeRefs(N){return this._extScope.scopeRefs(N,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(N,M,U,$){const H=this._scope.toName(M);return U!==void 0&&$&&(this._constants[H.str]=U),this._leafNode(new s(N,H,U)),H}const(N,M,U){return this._def(r.varKinds.const,N,M,U)}let(N,M,U){return this._def(r.varKinds.let,N,M,U)}var(N,M,U){return this._def(r.varKinds.var,N,M,U)}assign(N,M,U){return this._leafNode(new o(N,M,U))}add(N,M){return this._leafNode(new l(N,e.operators.ADD,M))}code(N){return typeof N=="function"?N():N!==t.nil&&this._leafNode(new m(N)),this}object(...N){const M=["{"];for(const[U,$]of N)M.length>1&&M.push(","),M.push(U),(U!==$||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,$));return M.push("}"),new t._Code(M)}if(N,M,U){if(this._blockNode(new g(N)),M&&U)this.code(M).else().code(U).endIf();else if(M)this.code(M).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(N){return this._elseNode(new g(N))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(N,M){return this._blockNode(N),M&&this.code(M).endFor(),this}for(N,M){return this._for(new w(N),M)}forRange(N,M,U,$,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(N);return this._for(new C(H,G,M,U),()=>$(G))}forOf(N,M,U,$=r.varKinds.const){const H=this._scope.toName(N);if(this.opts.es5){const G=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${G}.length`,Z=>{this.var(H,(0,t._)`${G}[${Z}]`),U(H)})}return this._for(new h("of",$,H,M),()=>U(H))}forIn(N,M,U,$=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(N,(0,t._)`Object.keys(${M})`,U);const H=this._scope.toName(N);return this._for(new h("in",$,H,M),()=>U(H))}endFor(){return this._endBlockNode(b)}label(N){return this._leafNode(new u(N))}break(N){return this._leafNode(new c(N))}return(N){const M=new S;if(this._blockNode(M),this.code(N),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(N,M,U){if(!M&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const $=new A;if(this._blockNode($),this.code(N),M){const H=this.name("e");this._currNode=$.catch=new _(H),M(H)}return U&&(this._currNode=$.finally=new x,this.code(U)),this._endBlockNode(_,x)}throw(N){return this._leafNode(new f(N))}block(N,M){return this._blockStarts.push(this._nodes.length),N&&this.code(N).endBlock(M),this}endBlock(N){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-M;if(U<0||N!==void 0&&U!==N)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${N} expected`);return this._nodes.length=M,this}func(N,M=t.nil,U,$){return this._blockNode(new y(N,M,U)),$&&this.code($).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(N=1){for(;N-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(N){return this._currNode.nodes.push(N),this}_blockNode(N){this._currNode.nodes.push(N),this._nodes.push(N)}_endBlockNode(N,M){const U=this._currNode;if(U instanceof N||M&&U instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${N.kind}/${M.kind}`:N.kind}"`)}_elseNode(N){const M=this._currNode;if(!(M instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=N,this}get _root(){return this._nodes[0]}get _currNode(){const N=this._nodes;return N[N.length-1]}set _currNode(N){const M=this._nodes;M[M.length-1]=N}}e.CodeGen=E;function O(I,N){for(const M in N)I[M]=(I[M]||0)+(N[M]||0);return I}function R(I,N){return N instanceof t._CodeOrName?O(I,N.names):I}function T(I,N,M){if(I instanceof t.Name)return U(I);if(!$(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=U(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function U(H){const G=M[H.str];return G===void 0||N[H.str]!==1?H:(delete N[H.str],G)}function $(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&N[G.str]===1&&M[G.str]!==void 0)}}function D(I,N){for(const M in N)I[M]=(I[M]||0)-(N[M]||0)}function L(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${B(I)}`}e.not=L;const J=F(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const X=F(e.operators.OR);function P(...I){return I.reduce(X)}e.or=P;function F(I){return(N,M)=>N===t.nil?M:M===t.nil?N:(0,t._)`${B(N)} ${I} ${B(M)}`}function B(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Vu)),Vu}var Ie={},Sh;function We(){if(Sh)return Ie;Sh=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkStrictMode=Ie.getErrorPath=Ie.Type=Ie.useFunc=Ie.setEvaluated=Ie.evaluatedPropsToName=Ie.mergeEvaluated=Ie.eachItem=Ie.unescapeJsonPointer=Ie.escapeJsonPointer=Ie.escapeFragment=Ie.unescapeFragment=Ie.schemaRefOrVal=Ie.schemaHasRulesButRef=Ie.schemaHasRules=Ie.checkUnknownRules=Ie.alwaysValidSchema=Ie.toHash=void 0;const e=Ne(),t=tl();function r(h){const y={};for(const S of h)y[S]=!0;return y}Ie.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))}Ie.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:S,self:A}=h;if(!S.strictSchema||typeof y=="boolean")return;const _=A.RULES.keywords;for(const x in y)_[x]||C(h,`unknown keyword: "${x}"`)}Ie.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(y[S])return!0;return!1}Ie.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(S!=="$ref"&&y.all[S])return!0;return!1}Ie.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},S,A,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${h}${y}${(0,e.getProperty)(A)}`}Ie.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Ie.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Ie.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ie.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ie.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const S of h)y(S);else y(h)}Ie.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:S,resultToName:A}){return(_,x,E,O)=>{const R=E===void 0?x:E instanceof e.Name?(x instanceof e.Name?h(_,x,E):y(_,x,E),E):x instanceof e.Name?(y(_,E,x),x):S(x,E);return O===e.Name&&!(R instanceof e.Name)?A(_,R):R}}Ie.mergeEvaluated={props:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(S,!0),()=>h.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>{y===!0?h.assign(S,!0):(h.assign(S,(0,e._)`${S} || {}`),k(h,S,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>h.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>h.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function p(h,y){if(y===!0)return h.var("props",!0);const S=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,S,y),S}Ie.evaluatedPropsToName=p;function k(h,y,S){Object.keys(S).forEach(A=>h.assign((0,e._)`${y}${(0,e.getProperty)(A)}`,!0))}Ie.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))})}Ie.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Ie.Type=b={}));function w(h,y,S){if(h instanceof e.Name){const A=y===b.Num;return S?A?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:A?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(h).toString():"/"+c(h)}Ie.getErrorPath=w;function C(h,y,S=h.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);h.self.logger.warn(y)}}return Ie.checkStrictMode=C,Ie}var Ls={},Ch;function Un(){if(Ch)return Ls;Ch=1,Object.defineProperty(Ls,"__esModule",{value:!0});const e=Ne(),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 Ls.default=t,Ls}var Eh;function Tl(){return Eh||(Eh=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=Ne(),r=We(),i=Un();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:C}=v,{gen:h,compositeRule:y,allErrors:S}=C,A=f(v,g,b);w??(y||S)?l(h,A):u(C,(0,t._)`[${A}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:C,compositeRule:h,allErrors:y}=w,S=f(v,g,b);l(C,S),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(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=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:C,it:h}){if(C===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",C,i.default.errors,S=>{v.const(y,(0,t._)`${i.default.vErrors}[${S}]`),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=o;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:C}=v;C.$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._)`{}`:m(v,g,b)}function m(v,g,b={}){const{gen:w,it:C}=v,h=[d(C,b),p(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 p({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${v}`;return b&&(C=(0,t.str)`${C}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,C]}function k(v,{params:g,message:b},w){const{keyword:C,data:h,schemaValue:y,it:S}=v,{opts:A,propertyName:_,topSchemaRef:x,schemaPath:E}=S;w.push([c.keyword,C],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),A.messages&&w.push([c.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${x}${E}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Bu)),Bu}var Ah;function qF(){if(Ah)return Yn;Ah=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.boolOrEmptySchema=Yn.topBoolOrEmptySchema=void 0;const e=Tl(),t=Ne(),r=Un(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:u,validateName:c}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Yn.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}Yn.boolOrEmptySchema=n;function s(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return Yn}var Rt={},Xn={},Oh;function e1(){if(Oh)return Xn;Oh=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.getRules=Xn.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)}Xn.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 Xn.getRules=i,Xn}var Qr={},_h;function t1(){if(_h)return Qr;_h=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.shouldUseRule=Qr.shouldUseGroup=Qr.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}Qr.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}Qr.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 Qr.shouldUseRule=r,Qr}var Ph;function rl(){if(Ph)return Rt;Ph=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;const e=e1(),t=t1(),r=Tl(),i=Ne(),a=We();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Rt.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}Rt.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(","))}Rt.getJSONTypes=o;function l(b,w){const{gen:C,data:h,opts:y}=b,S=c(w,y.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const _=p(w,h,y.strictNumbers,n.Wrong);C.if(_,()=>{S.length?f(b,w,S):v(b)})}return A}Rt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(C=>u.has(C)||w==="array"&&C==="array"):[]}function f(b,w,C){const{gen:h,data:y,opts:S}=b,A=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&h.if((0,i._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(A,(0,i._)`typeof ${y}`).if(p(w,y,S.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const E of C)(u.has(E)||E==="array"&&S.coerceTypes==="array")&&x(E);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(b,_)});function x(E){switch(E){case"string":h.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${A} == "boolean" || ${y} === null
78
+ || (${A} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${A} === "boolean" || ${y} === null
79
+ || (${A} === "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._)`${A} === "string" || ${A} === "number"
80
+ || ${A} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:b,parentData:w,parentDataProperty:C},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${C}]`,h))}function d(b,w,C,h=n.Correct){const y=h===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=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?S:(0,i.not)(S);function A(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,C?(0,i._)`isFinite(${w})`:i.nil)}}Rt.checkDataType=d;function p(b,w,C,h){if(b.length===1)return d(b[0],w,C,h);let y;const S=(0,a.toHash)(b);if(S.array&&S.object){const A=(0,i._)`typeof ${w} != "object"`;y=S.null?A:(0,i._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const A in S)y=(0,i.and)(y,d(A,w,C,h));return y}Rt.checkDataTypes=p;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)}Rt.reportTypeError=v;function g(b){const{gen:w,data:C,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:C,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return Rt}var Ea={},Ih;function zF(){if(Ih)return Ea;Ih=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.assignDefaults=void 0;const e=Ne(),t=We();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,u)=>i(a,u,l.default))}Ea.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:u,opts:c}=a;if(s===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 m=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Ea}var wr={},it={},Th;function Nr(){if(Th)return it;Th=1,Object.defineProperty(it,"__esModule",{value:!0}),it.validateUnion=it.validateArray=it.usePattern=it.callValidateCode=it.schemaProperties=it.allSchemaProperties=it.noPropertyInData=it.propertyInData=it.isOwnProperty=it.hasPropFunc=it.reportMissingProp=it.checkMissingProp=it.checkReportMissingProp=void 0;const e=Ne(),t=We(),r=Un(),i=We();function a(b,w){const{gen:C,data:h,it:y}=b;C.if(c(C,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}it.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:C}},h,y){return(0,e.or)(...h.map(S=>(0,e.and)(c(b,w,S,C.ownProperties),(0,e._)`${y} = ${S}`)))}it.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}it.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}it.hasPropFunc=o;function l(b,w,C){return(0,e._)`${o(b)}.call(${w}, ${C})`}it.isOwnProperty=l;function u(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,C)}`:y}it.propertyInData=u;function c(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,C))):y}it.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}it.allSchemaProperties=f;function m(b,w){return f(w).filter(C=>!(0,t.alwaysValidSchema)(b,w[C]))}it.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:C,topSchemaRef:h,schemaPath:y,errorPath:S},it:A},_,x,E){const O=E?(0,e._)`${b}, ${w}, ${h}${y}`:w,R=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&R.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${C.object(...R)}`;return x!==e.nil?(0,e._)`${_}.call(${x}, ${T})`:(0,e._)`${_}(${T})`}it.callValidateCode=d;const p=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},C){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(C,h);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(b,y)}(${C}, ${h})`})}it.usePattern=k;function v(b){const{gen:w,data:C,keyword:h,it:y}=b,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return A(()=>w.assign(_,!1)),_}return w.var(S,!0),A(()=>w.break()),S;function A(_){const x=w.const("len",(0,e._)`${C}.length`);w.forRange("i",0,x,E=>{b.subschema({keyword:h,dataProp:E,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}it.validateArray=v;function g(b){const{gen:w,schema:C,keyword:h,it:y}=b;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(x=>(0,t.alwaysValidSchema)(y,x))&&!y.opts.unevaluated)return;const A=w.let("valid",!1),_=w.name("_valid");w.block(()=>C.forEach((x,E)=>{const O=b.subschema({keyword:h,schemaProp:E,compositeRule:!0},_);w.assign(A,(0,e._)`${A} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return it.validateUnion=g,it}var jh;function $F(){if(jh)return wr;jh=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.validateKeywordUsage=wr.validSchemaType=wr.funcKeywordCode=wr.macroKeywordCode=void 0;const e=Ne(),t=Un(),r=Nr(),i=Tl();function a(m,d){const{gen:p,keyword:k,schema:v,parentSchema:g,it:b}=m,w=d.macro.call(b.self,v,g,b),C=u(p,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=p.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:C,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}wr.macroKeywordCode=a;function n(m,d){var p;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:C}=m;l(C,d);const h=!w&&d.compile?d.compile.call(C.self,g,b,C):d.validate,y=u(k,v,h),S=k.let("valid");m.block$data(S,A),m.ok((p=d.valid)!==null&&p!==void 0?p:S);function A(){if(d.errors===!1)E(),d.modifying&&s(m),O(()=>m.error());else{const R=d.async?_():x();d.modifying&&s(m),O(()=>o(m,R))}}function _(){const R=k.let("ruleErrs",null);return k.try(()=>E((0,e._)`await `),T=>k.assign(S,!1).if((0,e._)`${T} instanceof ${C.ValidationError}`,()=>k.assign(R,(0,e._)`${T}.errors`),()=>k.throw(T))),R}function x(){const R=(0,e._)`${y}.errors`;return k.assign(R,null),E(e.nil),R}function E(R=d.async?(0,e._)`await `:e.nil){const T=C.opts.passContext?t.default.this:t.default.self,D=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${R}${(0,r.callValidateCode)(m,y,T,D)}`,d.modifying)}function O(R){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:S),R)}}wr.funcKeywordCode=n;function s(m){const{gen:d,data:p,it:k}=m;d.if(k.parentData,()=>d.assign(p,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(m,d){const{gen:p}=m;p.if((0,e._)`Array.isArray(${d})`,()=>{p.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)(m)},()=>m.error())}function l({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,d,p){if(p===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof p=="function"?{ref:p}:{ref:p,code:(0,e.stringify)(p)})}function c(m,d,p=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||p&&typeof m>"u")}wr.validSchemaType=c;function f({schema:m,opts:d,self:p,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(m,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[g])){const C=`keyword "${g}" value is invalid at path "${k}": `+p.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(C);else throw new Error(C)}}return wr.validateKeywordUsage=f,wr}var en={},Rh;function UF(){if(Rh)return en;Rh=1,Object.defineProperty(en,"__esModule",{value:!0}),en.extendSubschemaMode=en.extendSubschemaData=en.getSubschema=void 0;const e=Ne(),t=We();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,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 m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(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')}en.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:p,dataPathArr:k,opts:v}=s,g=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const p=u instanceof e.Name?u:m.let("data",u,!0);d(p),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(p){n.data=p,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,p]}}en.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,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=s,n.jtdMetadata=o}return en.extendSubschemaMode=a,en}var Ut={},Wu,Nh;function r1(){return Nh||(Nh=1,Wu=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}),Wu}var Gu={exports:{}},Fh;function BF(){if(Fh)return Gu.exports;Fh=1;var e=Gu.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,u,c,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,m);for(var d in s){var p=s[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var k=0;k<p.length;k++)t(i,a,n,p[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var v in p)t(i,a,n,p[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Gu.exports}var Dh;function jl(){if(Dh)return Ut;Dh=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;const e=We(),t=r1(),r=BF(),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?!s(k):v?o(k)<=v:!1}Ut.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(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+=o(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)}Ut.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ut._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ut.normalizeId=f;function m(k,v,g){return g=f(g),k.resolve(v,g)}Ut.resolveUrl=m;const d=/^[a-z_][-a-z0-9._]*$/i;function p(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),C={"":w},h=l(b,w,!1),y={},S=new Set;return r(k,{allKeys:!0},(x,E,O,R)=>{if(R===void 0)return;const T=h+E;let D=C[R];typeof x[g]=="string"&&(D=L.call(this,x[g])),J.call(this,x.$anchor),J.call(this,x.$dynamicAnchor),C[E]=D;function L(Y){const X=this.opts.uriResolver.resolve;if(Y=f(D?X(D,Y):Y),S.has(Y))throw _(Y);S.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(x,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(A(x,y[Y],Y),y[Y]=x):this.refs[Y]=T),Y}function J(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);L.call(this,`#${Y}`)}}}),y;function A(x,E,O){if(E!==void 0&&!t(x,E))throw _(O)}function _(x){return new Error(`reference "${x}" resolves to more than one schema`)}}return Ut.getSchemaRefs=p,Ut}var Mh;function Rl(){if(Mh)return Zr;Mh=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;const e=qF(),t=rl(),r=t1(),i=rl(),a=zF(),n=$F(),s=UF(),o=Ne(),l=Un(),u=jl(),c=We(),f=Tl();function m(z){if(h(z)&&(S(z),C(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}Zr.validateFunctionCode=m;function d({gen:z,validateName:q,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?z.func(q,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,o._)`"use strict"; ${b(W,ie)}`),k(z,ie),z.code(re)}):z.func(q,(0,o._)`${l.default.data}, ${p(ie)}`,K.$async,()=>z.code(b(W,ie)).code(re))}function p(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 k(z,q){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}`),q.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),q.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v(z){const{schema:q,opts:W,gen:K}=z;d(z,()=>{W.$comment&&q.$comment&&R(z),x(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g(z),A(z),T(z)})}function g(z){const{gen:q,validateName:W}=z;z.evaluated=q.const("evaluated",(0,o._)`${W}.evaluated`),q.if((0,o._)`${z.evaluated}.dynamicProps`,()=>q.assign((0,o._)`${z.evaluated}.props`,(0,o._)`undefined`)),q.if((0,o._)`${z.evaluated}.dynamicItems`,()=>q.assign((0,o._)`${z.evaluated}.items`,(0,o._)`undefined`))}function b(z,q){const W=typeof z=="object"&&z[q.schemaId];return W&&(q.code.source||q.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w(z,q){if(h(z)&&(S(z),C(z))){y(z,q);return}(0,e.boolOrEmptySchema)(z,q)}function C({schema:z,self:q}){if(typeof z=="boolean")return!z;for(const W in z)if(q.RULES.all[W])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,q){const{schema:W,gen:K,opts:ie}=z;ie.$comment&&W.$comment&&R(z),E(z),O(z);const re=K.const("_errs",l.default.errors);A(z,re),K.var(q,(0,o._)`${re} === ${l.default.errors}`)}function S(z){(0,c.checkUnknownRules)(z),_(z)}function A(z,q){if(z.opts.jtd)return L(z,[],!1,q);const W=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,W);L(z,W,!K,q)}function _(z){const{schema:q,errSchemaPath:W,opts:K,self:ie}=z;q.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(q,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function x(z){const{schema:q,opts:W}=z;q.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function E(z){const q=z.schema[z.opts.schemaId];q&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,q))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function R({gen:z,schemaEnv:q,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)z.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${K}/$comment`,ge=z.scopeValue("root",{ref:q.root});z.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ge}.schema)`)}}function T(z){const{gen:q,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=z;W.$async?q.if((0,o._)`${l.default.errors} === 0`,()=>q.return(l.default.data),()=>q.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):(q.assign((0,o._)`${K}.errors`,l.default.vErrors),re.unevaluated&&D(z),q.return((0,o._)`${l.default.errors} === 0`))}function D({gen:z,evaluated:q,props:W,items:K}){W instanceof o.Name&&z.assign((0,o._)`${q}.props`,W),K instanceof o.Name&&z.assign((0,o._)`${q}.items`,K)}function L(z,q,W,K){const{gen:ie,schema:re,data:ue,allErrors:ge,opts:we,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(we.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>$(z,"$ref",Pe.all.$ref.definition));return}we.jtd||Y(z,q),ie.block(()=>{for(const Ve of Pe.rules)de(Ve);de(Pe.post)});function de(Ve){(0,r.shouldUseGroup)(re,Ve)&&(Ve.type?(ie.if((0,i.checkDataType)(Ve.type,ue,we.strictNumbers)),J(z,Ve),q.length===1&&q[0]===Ve.type&&W&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):J(z,Ve),ge||ie.if((0,o._)`${l.default.errors} === ${K||0}`))}}function J(z,q){const{gen:W,schema:K,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,q.type),W.block(()=>{for(const re of q.rules)(0,r.shouldUseRule)(K,re)&&$(z,re.keyword,re.definition,q.type)})}function Y(z,q){z.schemaEnv.meta||!z.opts.strictTypes||(X(z,q),z.opts.allowUnionTypes||P(z,q),F(z,z.dataTypes))}function X(z,q){if(q.length){if(!z.dataTypes.length){z.dataTypes=q;return}q.forEach(W=>{I(z.dataTypes,W)||M(z,`type "${W}" not allowed by context "${z.dataTypes.join(",")}"`)}),N(z,q)}}function P(z,q){q.length>1&&!(q.length===2&&q.includes("null"))&&M(z,"use allowUnionTypes to allow union type keyword")}function F(z,q){const W=z.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>B(q,ue))&&M(z,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function B(z,q){return z.includes(q)||q==="number"&&z.includes("integer")}function I(z,q){return z.includes(q)||q==="integer"&&z.includes("number")}function N(z,q){const W=[];for(const K of z.dataTypes)I(q,K)?W.push(K):q.includes("integer")&&K==="number"&&W.push("integer");z.dataTypes=W}function M(z,q){const W=z.schemaEnv.baseId+z.errSchemaPath;q+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)(z,q,z.opts.strictTypes)}class U{constructor(q,W,K){if((0,n.validateKeywordUsage)(q,W,K),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=K,this.data=q.data,this.schema=q.schema[K],this.$data=W.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(q,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=W,this.$data)this.schemaCode=q.gen.const("vSchema",Z(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=q.gen.const("_errs",l.default.errors))}result(q,W,K){this.failResult((0,o.not)(q),W,K)}failResult(q,W,K){this.gen.if(q),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,W){this.failResult((0,o.not)(q),void 0,W)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),q)})`)}error(q,W,K){if(W){this.setParams(W),this._error(q,K),this.setParams({});return}this._error(q,K)}_error(q,W){(q?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,W){W?Object.assign(this.params,q):this.params=q}block$data(q,W,K=o.nil){this.gen.block(()=>{this.check$data(q,K),W()})}check$data(q=o.nil,W=o.nil){if(!this.$data)return;const{gen:K,schemaCode:ie,schemaType:re,def:ue}=this;K.if((0,o.or)((0,o._)`${ie} === undefined`,W)),q!==o.nil&&K.assign(q,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),q!==o.nil&&K.assign(q,!1)),K.else()}invalid$data(){const{gen:q,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,o.or)(ue(),ge());function ue(){if(K.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const we=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(we,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ge(){if(ie.validateSchema){const we=q.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${we}(${W})`}return o.nil}}subschema(q,W){const K=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(K,this.it,q),(0,s.extendSubschemaMode)(K,q);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated(q,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&q.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,q.props,K.props,W)),K.items!==!0&&q.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,q.items,K.items,W)))}mergeValidEvaluated(q,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated(q,o.Name)),!0}}Zr.KeywordCxt=U;function $(z,q,W,K){const ie=new U(z,W,q);"code"in W?W.code(ie,K):ie.$data&&W.validate?(0,n.funcKeywordCode)(ie,W):"macro"in W?(0,n.macroKeywordCode)(ie,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(ie,W)}const H=/^\/(?:[^~]|~0|~1)*$/,G=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Z(z,{dataLevel:q,dataNames:W,dataPathArr:K}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!H.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=G.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=q)throw new Error(we("property/index",Pe));return K[q-Pe]}if(Pe>q)throw new Error(we("data",Pe));if(re=W[q-Pe],!ie)return re}let ue=re;const ge=ie.split("/");for(const ke of ge)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function we(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${q}`}}return Zr.getData=Z,Zr}var qs={},Lh;function jd(){if(Lh)return qs;Lh=1,Object.defineProperty(qs,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return qs.default=e,qs}var zs={},qh;function Nl(){if(qh)return zs;qh=1,Object.defineProperty(zs,"__esModule",{value:!0});const e=jl();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 zs.default=t,zs}var er={},zh;function Rd(){if(zh)return er;zh=1,Object.defineProperty(er,"__esModule",{value:!0}),er.resolveSchema=er.getCompilingSchema=er.resolveRef=er.compileSchema=er.SchemaEnv=void 0;const e=Ne(),t=jd(),r=Un(),i=jl(),a=We(),n=Rl();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={}}}er.SchemaEnv=s;function o(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:C}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:C,ownProperties:h});let S;v.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=y.scopeName("validate");v.validateName=A;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:A,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let x;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const E=y.toString();x=`${y.scopeRefs(r.default.scope)}return ${E}`,this.opts.code.process&&(x=this.opts.code.process(x,v));const R=new Function(`${r.default.self}`,`${r.default.scope}`,x)(this,this.scope.get());if(this.scope.value(A,{ref:R}),R.errors=null,R.schema=v.schema,R.schemaEnv=v,v.$async&&(R.$async=!0),this.opts.code.source===!0&&(R.source={validateName:A,validateCode:E,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:D}=_;R.evaluated={props:T instanceof e.Name?void 0:T,items:D instanceof e.Name?void 0:D,dynamicProps:T instanceof e.Name,dynamicItems:D instanceof e.Name},R.source&&(R.source.evaluated=(0,e.stringify)(R.evaluated))}return v.validate=R,v}catch(E){throw delete v.validate,delete v.validateName,x&&this.logger.error("Error compiling schema, function code:",x),E}finally{this._compilations.delete(v)}}er.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const C=v.refs[b];if(C)return C;let h=m.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;y&&(h=new s({schema:y,schemaId:S,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}er.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}er.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function m(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 C=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===C)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const S=d.call(this,v,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:A}=this.opts,_=S[A];return _&&(C=(0,i.resolveUrl)(this.opts.uriResolver,C,_)),new s({schema:S,schemaId:A,root:v,baseId:C})}return k.call(this,b,y)}}er.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var C;if(((C=v.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,a.unescapeFragment)(S)];if(A===void 0)return;b=A;const _=typeof b=="object"&&b[this.opts.schemaId];!p.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,S)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return er}const VF="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",HF="Meta-schema for $data reference (JSON AnySchema extension proposal)",KF="object",WF=["$data"],GF={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},JF=!1,YF={$id:VF,description:HF,type:KF,required:WF,properties:GF,additionalProperties:JF};var $s={},Aa={exports:{}},Ju,$h;function n1(){if($h)return Ju;$h=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="",S=0,A=0;for(A=0;A<h.length;A++)if(S=h[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A];break}for(A+=1;A<h.length;A++){if(S=h[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,S){if(h.length){const A=n(h);if(A!=="")y.push(A);else return S.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const S={error:!1,address:"",zone:""},A=[],_=[];let x=!1,E=!1,O=l;for(let R=0;R<h.length;R++){const T=h[R];if(!(T==="["||T==="]"))if(T===":"){if(x===!0&&(E=!0),!O(_,A,S))break;if(++y>7){S.error=!0;break}R>0&&h[R-1]===":"&&(x=!0),A.push(":");continue}else if(T==="%"){if(!O(_,A,S))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?S.zone=_.join(""):E?A.push(_.join("")):A.push(n(_))),S.address=A.join(""),S}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 S=y.address,A=y.address;return y.zone&&(S+="%"+y.zone,A+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(h,y){let S=0;for(let A=0;A<h.length;A++)h[A]===y&&S++;return S}function m(h){let y=h;const S=[];let A=-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((A=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,A)),y=y.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const S=y?k:p;return S.lastIndex=0,h.replace(S,A=>d[A])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let S="";for(let A=0;A<h.length;A++){if(h[A]==="%"&&A+2<h.length){const _=h.slice(A+1,A+3);if(r(_)){const x=_.toUpperCase(),E=String.fromCharCode(parseInt(x,16));y&&i(E)?S+=E:S+="%"+x,A+=2;continue}}S+=h[A]}return S}function b(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){const _=A.toUpperCase(),x=String.fromCharCode(parseInt(_,16));x!=="."&&i(x)?y+=x:y+="%"+_,S+=2;continue}}a(h[S])?y+=h[S]:y+=escape(h[S])}return y}function w(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){y+="%"+A.toUpperCase(),S+=2;continue}}y+=escape(h[S])}return y}function C(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let S=unescape(h.host);if(!t(S)){const A=c(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}y.push(S)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Ju={nonSimpleDomain:s,recomposeAuthority:C,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Ju}var Yu,Uh;function XF(){if(Uh)return Yu;Uh=1;const{isUUID:e}=n1(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;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 m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Yu={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Yu}var Bh;function ZF(){if(Bh)return Aa.exports;Bh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=n1(),{SCHEMES:u,getSchemeHandler:c}=XF();function f(A,_){return typeof A=="string"?A=C(A,_):typeof A=="object"&&(A=w(k(A,_),_)),A}function m(A,_,x){const E=x?Object.assign({scheme:"null"},x):{scheme:"null"},O=d(w(A,E),w(_,E),E,!0);return E.skipEscape=!0,k(O,E)}function d(A,_,x,E){const O={};return E||(A=w(k(A,x),x),_=w(k(_,x),x)),x=x||{},!x.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):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?O.path="/"+_.path:A.path?O.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=A.path,_.query!==void 0?O.query=_.query:O.query=A.query),O.userinfo=A.userinfo,O.host=A.host,O.port=A.port),O.scheme=A.scheme),O.fragment=_.fragment,O}function p(A,_,x){const E=y(A,x),O=y(_,x);return E!==void 0&&O!==void 0&&E.toLowerCase()===O.toLowerCase()}function k(A,_){const x={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:""},E=Object.assign({},_),O=[],R=c(E.scheme||x.scheme);R&&R.serialize&&R.serialize(x,E),x.path!==void 0&&(E.skipEscape?x.path=i(x.path):(x.path=n(x.path),x.scheme!==void 0&&(x.path=x.path.split("%3A").join(":")))),E.reference!=="suffix"&&x.scheme&&O.push(x.scheme,":");const T=r(x);if(T!==void 0&&(E.reference!=="suffix"&&O.push("//"),O.push(T),x.path&&x.path[0]!=="/"&&O.push("/")),x.path!==void 0){let D=x.path;!E.absolutePath&&(!R||!R.absolutePath)&&(D=t(D)),T===void 0&&D[0]==="/"&&D[1]==="/"&&(D="/%2F"+D.slice(2)),O.push(D)}return x.query!==void 0&&O.push("?",x.query),x.fragment!==void 0&&O.push("#",x.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(A,_){if(_[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function b(A,_){const x=Object.assign({},_),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,R=!1;x.reference==="suffix"&&(x.scheme?A=x.scheme+":"+A:A="//"+A);const T=A.match(v);if(T){E.scheme=T[1],E.userinfo=T[3],E.host=T[4],E.port=parseInt(T[5],10),E.path=T[6]||"",E.query=T[7],E.fragment=T[8],isNaN(E.port)&&(E.port=T[5]);const D=g(E,T);if(D!==void 0&&(E.error=E.error||D,O=!0),E.host)if(o(E.host)===!1){const Y=e(E.host);E.host=Y.host.toLowerCase(),R=Y.isIPV6}else R=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",x.reference&&x.reference!=="suffix"&&x.reference!==E.reference&&(E.error=E.error||"URI is not a "+x.reference+" reference.");const L=c(x.scheme||E.scheme);if(!x.unicodeSupport&&(!L||!L.unicodeSupport)&&E.host&&(x.domainHost||L&&L.domainHost)&&R===!1&&l(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII: "+J}if((!L||L&&!L.skipNormalize)&&(A.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=s(unescape(E.host),R))),E.path&&(E.path=a(E.path)),E.fragment))try{E.fragment=encodeURI(decodeURIComponent(E.fragment))}catch{E.error=E.error||"URI malformed"}L&&L.parse&&L.parse(E,x)}else E.error=E.error||"URI can not be parsed.";return{parsed:E,malformedAuthorityOrPort:O}}function w(A,_){return b(A,_).parsed}function C(A,_){return h(A,_).normalized}function h(A,_){const{parsed:x,malformedAuthorityOrPort:E}=b(A,_);return{normalized:E?A:k(x,_),malformedAuthorityOrPort:E}}function y(A,_){if(typeof A=="string"){const{normalized:x,malformedAuthorityOrPort:E}=h(A,_);return E?void 0:x}if(typeof A=="object")return k(A,_)}const S={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:k,parse:w};return Aa.exports=S,Aa.exports.default=S,Aa.exports.fastUri=S,Aa.exports}var Vh;function QF(){if(Vh)return $s;Vh=1,Object.defineProperty($s,"__esModule",{value:!0});const e=ZF();return e.code='require("ajv/dist/runtime/uri").default',$s.default=e,$s}var Hh;function eD(){return Hh||(Hh=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=Rl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne();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=jd(),a=Nl(),n=e1(),s=Rd(),o=Ne(),l=jl(),u=rl(),c=We(),f=YF,m=QF(),d=(P,F)=>new RegExp(P,F);d.code="new RegExp";const p=["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 F,B,I,N,M,U,$,H,G,Z,z,q,W,K,ie,re,ue,ge,we,ke,Pe,de,Ve,st,ve;const Q=P.strict,ee=(F=P.code)===null||F===void 0?void 0:F.optimize,te=ee===!0||ee===void 0?1:ee||0,pe=(I=(B=P.code)===null||B===void 0?void 0:B.regExp)!==null&&I!==void 0?I:d,ce=(N=P.uriResolver)!==null&&N!==void 0?N:m.default;return{strictSchema:(U=(M=P.strictSchema)!==null&&M!==void 0?M:Q)!==null&&U!==void 0?U:!0,strictNumbers:(H=($=P.strictNumbers)!==null&&$!==void 0?$:Q)!==null&&H!==void 0?H:!0,strictTypes:(Z=(G=P.strictTypes)!==null&&G!==void 0?G:Q)!==null&&Z!==void 0?Z:"log",strictTuples:(q=(z=P.strictTuples)!==null&&z!==void 0?z:Q)!==null&&q!==void 0?q:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Q)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:te,regExp:pe}:{optimize:te,regExp:pe},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:(ge=P.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(we=P.inlineRefs)!==null&&we!==void 0?we:!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:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(st=P.unicodeRegExp)!==null&&st!==void 0?st:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class C{constructor(F={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,F=this.opts={...F,...w(F)};const{es5:B,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:B,lines:I}),this.logger=O(F.logger);const N=F.validateFormats;F.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,F,"NOT SUPPORTED"),h.call(this,g,F,"DEPRECATED","warn"),this._metaOpts=x.call(this),F.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),F.keywords&&_.call(this,F.keywords),typeof F.meta=="object"&&this.addMetaSchema(F.meta),S.call(this),F.validateFormats=N}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:F,meta:B,schemaId:I}=this.opts;let N=f;I==="id"&&(N={...f},N.id=N.$id,delete N.$id),B&&F&&this.addMetaSchema(N,N[I],!1)}defaultMeta(){const{meta:F,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof F=="object"?F[B]||F:void 0}validate(F,B){let I;if(typeof F=="string"){if(I=this.getSchema(F),!I)throw new Error(`no schema with key or ref "${F}"`)}else I=this.compile(F);const N=I(B);return"$async"in I||(this.errors=I.errors),N}compile(F,B){const I=this._addSchema(F,B);return I.validate||this._compileSchemaEnv(I)}compileAsync(F,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return N.call(this,F,B);async function N(Z,z){await M.call(this,Z.$schema);const q=this._addSchema(Z,z);return q.validate||U.call(this,q)}async function M(Z){Z&&!this.getSchema(Z)&&await N.call(this,{$ref:Z},!0)}async function U(Z){try{return this._compileSchemaEnv(Z)}catch(z){if(!(z instanceof a.default))throw z;return $.call(this,z),await H.call(this,z.missingSchema),U.call(this,Z)}}function $({missingSchema:Z,missingRef:z}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${z} cannot be resolved`)}async function H(Z){const z=await G.call(this,Z);this.refs[Z]||await M.call(this,z.$schema),this.refs[Z]||this.addSchema(z,Z,B)}async function G(Z){const z=this._loading[Z];if(z)return z;try{return await(this._loading[Z]=I(Z))}finally{delete this._loading[Z]}}}addSchema(F,B,I,N=this.opts.validateSchema){if(Array.isArray(F)){for(const U of F)this.addSchema(U,void 0,I,N);return this}let M;if(typeof F=="object"){const{schemaId:U}=this.opts;if(M=F[U],M!==void 0&&typeof M!="string")throw new Error(`schema ${U} must be string`)}return B=(0,l.normalizeId)(B||M),this._checkUnique(B),this.schemas[B]=this._addSchema(F,I,B,N,!0),this}addMetaSchema(F,B,I=this.opts.validateSchema){return this.addSchema(F,B,!0,I),this}validateSchema(F,B){if(typeof F=="boolean")return!0;let I;if(I=F.$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 N=this.validate(I,F);if(!N&&B){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return N}getSchema(F){let B;for(;typeof(B=y.call(this,F))=="string";)F=B;if(B===void 0){const{schemaId:I}=this.opts,N=new s.SchemaEnv({schema:{},schemaId:I});if(B=s.resolveSchema.call(this,N,F),!B)return;this.refs[F]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(F){if(F instanceof RegExp)return this._removeAllSchemas(this.schemas,F),this._removeAllSchemas(this.refs,F),this;switch(typeof F){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=y.call(this,F);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[F],delete this.refs[F],this}case"object":{const B=F;this._cache.delete(B);let I=F[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(F){for(const B of F)this.addKeyword(B);return this}addKeyword(F,B){let I;if(typeof F=="string")I=F,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=I);else if(typeof F=="object"&&B===void 0){if(B=F,I=B.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,B),!B)return(0,c.eachItem)(I,M=>D.call(this,M)),this;J.call(this,B);const N={...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)};return(0,c.eachItem)(I,N.type.length===0?M=>D.call(this,M,N):M=>N.type.forEach(U=>D.call(this,M,N,U))),this}getKeyword(F){const B=this.RULES.all[F];return typeof B=="object"?B.definition:!!B}removeKeyword(F){const{RULES:B}=this;delete B.keywords[F],delete B.all[F];for(const I of B.rules){const N=I.rules.findIndex(M=>M.keyword===F);N>=0&&I.rules.splice(N,1)}return this}addFormat(F,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[F]=B,this}errorsText(F=this.errors,{separator:B=", ",dataVar:I="data"}={}){return!F||F.length===0?"No errors":F.map(N=>`${I}${N.instancePath} ${N.message}`).reduce((N,M)=>N+B+M)}$dataMetaSchema(F,B){const I=this.RULES.all;F=JSON.parse(JSON.stringify(F));for(const N of B){const M=N.split("/").slice(1);let U=F;for(const $ of M)U=U[$];for(const $ in I){const H=I[$];if(typeof H!="object")continue;const{$data:G}=H.definition,Z=U[$];G&&Z&&(U[$]=X(Z))}}return F}_removeAllSchemas(F,B){for(const I in F){const N=F[I];(!B||B.test(I))&&(typeof N=="string"?delete F[I]:N&&!N.meta&&(this._cache.delete(N.schema),delete F[I]))}}_addSchema(F,B,I,N=this.opts.validateSchema,M=this.opts.addUsedSchema){let U;const{schemaId:$}=this.opts;if(typeof F=="object")U=F[$];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof F!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(F);if(H!==void 0)return H;I=(0,l.normalizeId)(U||I);const G=l.getSchemaRefs.call(this,F,I);return H=new s.SchemaEnv({schema:F,schemaId:$,meta:B,baseId:I,localRefs:G}),this._cache.set(H.schema,H),M&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),N&&this.validateSchema(F,!0),H}_checkUnique(F){if(this.schemas[F]||this.refs[F])throw new Error(`schema with key or id "${F}" already exists`)}_compileSchemaEnv(F){if(F.meta?this._compileMetaSchema(F):s.compileSchema.call(this,F),!F.validate)throw new Error("ajv implementation error");return F.validate}_compileMetaSchema(F){const B=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,F)}finally{this.opts=B}}}C.ValidationError=i.default,C.MissingRefError=a.default,e.default=C;function h(P,F,B,I="error"){for(const N in P){const M=N;M in F&&this.logger[I](`${B}: option ${N}. ${P[M]}`)}}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 F in P)this.addSchema(P[F],F)}function A(){for(const P in this.opts.formats){const F=this.opts.formats[P];F&&this.addFormat(P,F)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const F in P){const B=P[F];B.keyword||(B.keyword=F),this.addKeyword(B)}}function x(){const P={...this.opts};for(const F of p)delete P[F];return P}const E={log(){},warn(){},error(){}};function O(P){if(P===!1)return E;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 R=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,F){const{RULES:B}=this;if((0,c.eachItem)(P,I=>{if(B.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!R.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!F&&F.$data&&!("code"in F||"validate"in F))throw new Error('$data keyword must have "code" or "validate" function')}function D(P,F,B){var I;const N=F==null?void 0:F.post;if(B&&N)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let U=N?M.post:M.rules.find(({type:H})=>H===B);if(U||(U={type:B,rules:[]},M.rules.push(U)),M.keywords[P]=!0,!F)return;const $={keyword:P,definition:{...F,type:(0,u.getJSONTypes)(F.type),schemaType:(0,u.getJSONTypes)(F.schemaType)}};F.before?L.call(this,U,$,F.before):U.rules.push($),M.all[P]=$,(I=F.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function L(P,F,B){const I=P.rules.findIndex(N=>N.keyword===B);I>=0?P.rules.splice(I,0,F):(P.rules.push(F),this.logger.warn(`rule ${B} is not defined`))}function J(P){let{metaSchema:F}=P;F!==void 0&&(P.$data&&this.opts.$data&&(F=X(F)),P.validateSchema=this.compile(F,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function X(P){return{anyOf:[P,Y]}}})(Uu)),Uu}var Us={},Bs={},Vs={},Kh;function tD(){if(Kh)return Vs;Kh=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Vs.default=e,Vs}var gn={},Wh;function rD(){if(Wh)return gn;Wh=1,Object.defineProperty(gn,"__esModule",{value:!0}),gn.callRef=gn.getValidate=void 0;const e=Nl(),t=Nr(),r=Ne(),i=Un(),a=Rd(),n=We(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:m}=u,{baseId:d,schemaEnv:p,validateName:k,opts:v,self:g}=m,{root:b}=p;if((f==="#"||f==="#/")&&d===b.baseId)return C();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(m.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function C(){if(p===b)return l(u,k,p,p.$async);const S=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${S}.validate`,b,b.$async)}function h(S){const A=o(u,S);l(u,A,S,S.$async)}function y(S){const A=c.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=c.name("valid"),x=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},_);u.mergeEvaluated(x),u.ok(_)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}gn.getValidate=o;function l(u,c,f,m){const{gen:d,it:p}=u,{allErrors:k,schemaEnv:v,opts:g}=p,b=g.passContext?i.default.this:r.nil;m?w():C();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${p.ValidationError})`,()=>d.throw(A)),h(A),k||d.assign(S,!1)}),u.ok(S)}function C(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(S){const A=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${A} : ${i.default.vErrors}.concat(${A})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var A;if(!p.opts.unevaluated)return;const _=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const x=d.var("props",(0,r._)`${S}.evaluated.props`);p.props=n.mergeEvaluated.props(d,x,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const x=d.var("items",(0,r._)`${S}.evaluated.items`);p.items=n.mergeEvaluated.items(d,x,p.items,r.Name)}}}return gn.callRef=l,gn.default=s,gn}var Gh;function nD(){if(Gh)return Bs;Gh=1,Object.defineProperty(Bs,"__esModule",{value:!0});const e=tD(),t=rD(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Bs.default=r,Bs}var Hs={},Ks={},Jh;function iD(){if(Jh)return Ks;Jh=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=Ne(),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 Ks.default=a,Ks}var Ws={},Yh;function aD(){if(Yh)return Ws;Yh=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=Ne(),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,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._)`(${s} === 0 || (${u} = ${n}/${s}, ${c}))`)}};return Ws.default=r,Ws}var Gs={},Js={},Xh;function sD(){if(Xh)return Js;Xh=1,Object.defineProperty(Js,"__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 Js.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Js}var Zh;function oD(){if(Zh)return Gs;Zh=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e=Ne(),t=We(),r=sD(),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:u}=n,c=s==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Gs.default=a,Gs}var Ys={},Qh;function lD(){if(Qh)return Ys;Qh=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=Nr(),t=We(),r=Ne(),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:u,schemaCode:c,it:f}=n,m=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,p=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${p}(${c}, ${m}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return Ys.default=a,Ys}var Xs={},eg;function uD(){if(eg)return Xs;eg=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Ne(),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 Xs.default=r,Xs}var Zs={},tg;function cD(){if(tg)return Zs;tg=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),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:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?p():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const C of o)if((b==null?void 0:b[C])===void 0&&!w.has(C)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${C}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function p(){if(d||c)n.block$data(t.nil,v);else for(const b of o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||c){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 v(){s.forOf("prop",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,m.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Zs.default=a,Zs}var Qs={},rg;function fD(){if(rg)return Qs;rg=1,Object.defineProperty(Qs,"__esModule",{value:!0});const e=Ne(),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 Qs.default=r,Qs}var eo={},to={},ng;function Nd(){if(ng)return to;ng=1,Object.defineProperty(to,"__esModule",{value:!0});const e=r1();return e.code='require("ajv/dist/runtime/equal").default',to.default=e,to}var ig;function dD(){if(ig)return eo;ig=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=rl(),t=Ne(),r=We(),i=Nd(),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:u,schema:c,parentSchema:f,schemaCode:m,it:d}=s;if(!u&&!c)return;const p=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(p,v,(0,t._)`${m} === false`),s.ok(p);function v(){const C=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:C,j:h}),o.assign(p,!0),o.if((0,t._)`${C} > 1`,()=>(g()?b:w)(C,h))}function g(){return k.length>0&&!k.some(C=>C==="object"||C==="array")}function b(C,h){const y=o.name("item"),S=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${C}--;`,()=>{o.let(y,(0,t._)`${l}[${C}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${A}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${A}[${y}]`),s.error(),o.assign(p,!1).break()}).code((0,t._)`${A}[${y}] = ${C}`)})}function w(C,h){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${C}--;`,()=>o.for((0,t._)`${h} = ${C}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${C}], ${l}[${h}])`,()=>{s.error(),o.assign(p,!1).break(S)})))}}};return eo.default=n,eo}var ro={},ag;function mD(){if(ag)return ro;ag=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nd(),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:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):n.fail((0,e._)`${c} !== ${o}`)}};return ro.default=a,ro}var no={},sg;function pD(){if(sg)return no;sg=1,Object.defineProperty(no,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nd(),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:u,schemaCode:c,it:f}=n;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=f.opts.loopEnum;let d;const p=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(m||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,C)=>g(b,C)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${p()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const C=u[w];return typeof C=="object"&&C!==null?(0,e._)`${p()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${C}`}}};return no.default=a,no}var og;function hD(){if(og)return Hs;og=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=iD(),t=aD(),r=oD(),i=lD(),a=uD(),n=cD(),s=fD(),o=dD(),l=mD(),u=pD(),c=[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,u.default];return Hs.default=c,Hs}var io={},Ti={},lg;function i1(){if(lg)return Ti;lg=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.validateAdditionalItems=void 0;const e=Ne(),t=We(),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:u,keyword:c,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){o.forRange("i",s.length,m,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},p),f.allErrors||o.if((0,e.not)(p),()=>o.break())})}}return Ti.validateAdditionalItems=a,Ti.default=i,Ti}var ao={},ji={},ug;function a1(){if(ug)return ji;ug=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.validateTuple=void 0;const e=Ne(),t=We(),r=Nr(),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:u,data:c,keyword:f,it:m}=n;k(u),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,o.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);o.forEach((v,g)=>{(0,t.alwaysValidSchema)(m,v)||(l.if((0,e._)`${p} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=m,w=o.length,C=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!C){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return ji.validateTuple=a,ji.default=i,ji}var cg;function gD(){if(cg)return ao;cg=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=a1(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return ao.default=t,ao}var so={},fg;function yD(){if(fg)return so;fg=1,Object.defineProperty(so,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nr(),i=i1(),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:u}=s,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,i.validateAdditionalItems)(s,c):s.ok((0,r.validateArray)(s)))}};return so.default=n,so}var oo={},dg;function vD(){if(dg)return oo;dg=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t=We(),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:u}=a;let c,f;const{minContains:m,maxContains:d}=o;u.opts.next?(c=m===void 0?1:m,f=d):c=1;const p=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,s)){let w=(0,e._)`${p} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${p} <= ${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"),C=n.let("count",0);g(w,()=>n.if(w,()=>b(C)))}function g(w,C){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),C()})}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 oo.default=i,oo}var Xu={},mg;function bD(){return mg||(mg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne(),r=We(),i=Nr();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},
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);s(l,u),o(l,c)}};function n({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const m=Array.isArray(l[f])?u:c;m[f]=l[f]}return[u,c]}function s(l,u=l.schema){const{gen:c,data:f,it:m}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const p in u){const k=u[p];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,p,m.opts.ownProperties);l.setParams({property:p,depsCount:k.length,deps:k.join(", ")}),m.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=s;function o(l,u=l.schema){const{gen:c,data:f,keyword:m,it:d}=l,p=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:m,schemaProp:k},p);l.mergeValidEvaluated(v,p)},()=>c.var(p,!0)),l.ok(p))}e.validateSchemaDeps=o,e.default=a})(Xu)),Xu}var lo={},pg;function kD(){if(pg)return lo;pg=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=n.name("valid");n.forIn("key",o,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 lo.default=i,lo}var uo={},hg;function s1(){if(hg)return uo;hg=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Un(),i=We(),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:u,data:c,errsCount:f,it:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=m;if(m.props=!0,p.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(m,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?C(y):o.if(b(y),()=>C(y))})}function b(y){let S;if(k.length>8){const A=(0,i.schemaRefOrVal)(m,u.properties,"properties");S=(0,e.isOwnProperty)(o,A,y)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${y} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function C(y){if(p.removeAdditional==="all"||p.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)(m,l)){const S=o.name("valid");p.removeAdditional==="failing"?(h(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(h(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function h(y,S,A){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};A===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return uo.default=n,uo}var co={},gg;function wD(){if(gg)return co;gg=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Rl(),t=Nr(),r=We(),i=s1(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,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)(o);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)p(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function p(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return co.default=a,co}var fo={},yg;function xD(){if(yg)return fo;yg=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),i=We(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(o),d=m.filter(C=>(0,r.alwaysValidSchema)(c,o[C]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const C of m)p&&b(C),c.allErrors?w(C):(s.var(k,!0),w(C),s.if(k))}function b(C){for(const h in p)new RegExp(C).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${C} (use allowMatchingProperties)`)}function w(C){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,C)}.test(${h})`,()=>{const y=d.includes(C);y||n.subschema({keyword:"patternProperties",schemaProp:C,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return fo.default=a,fo}var mo={},vg;function SD(){if(vg)return mo;vg=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=We(),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 mo.default=t,mo}var po={},bg;function CD(){if(bg)return po;bg=1,Object.defineProperty(po,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nr().validateUnion,error:{message:"must match a schema in anyOf"}};return po.default=t,po}var ho={},kg;function ED(){if(kg)return ho;kg=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=s,c=n.let("valid",!1),f=n.let("passing",null),m=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((p,k)=>{let v;(0,t.alwaysValidSchema)(l,p)?n.var(m,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return ho.default=i,ho}var go={},wg;function AD(){if(wg)return go;wg=1,Object.defineProperty(go,"__esModule",{value:!0});const e=We(),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 u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return go.default=t,go}var yo={},xg;function OD(){if(xg)return yo;xg=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=a(l,"then"),c=a(l,"else");if(!u&&!c)return;const f=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,p("then",k),p("else",k))}else u?s.if(m,p("then")):s.if((0,e.not)(m),p("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function p(k,v){return()=>{const g=n.subschema({keyword:k},m);s.assign(f,m),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return yo.default=i,yo}var vo={},Sg;function _D(){if(Sg)return vo;Sg=1,Object.defineProperty(vo,"__esModule",{value:!0});const e=We(),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 vo.default=t,vo}var Cg;function PD(){if(Cg)return io;Cg=1,Object.defineProperty(io,"__esModule",{value:!0});const e=i1(),t=gD(),r=a1(),i=yD(),a=vD(),n=bD(),s=kD(),o=s1(),l=wD(),u=xD(),c=SD(),f=CD(),m=ED(),d=AD(),p=OD(),k=_D();function v(g=!1){const b=[c.default,f.default,m.default,d.default,p.default,k.default,s.default,o.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 io.default=v,io}var bo={},ko={},Eg;function ID(){if(Eg)return ko;Eg=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=Ne(),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:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;o?k():v();function k(){const g=n.scopeValue("formats",{ref:p.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),w=n.let("fType"),C=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(C,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(C,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${C}`}function y(){const S=d.$async?(0,e._)`(${b}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,e._)`${C}(${s})`,A=(0,e._)`(typeof ${C} == "function" ? ${S} : ${C}.test(${s}))`;return(0,e._)`${C} && ${C} !== true && ${w} === ${a} && !${A}`}}function v(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,C]=y(g);b===a&&i.pass(S());function h(){if(f.strictSchema===!1){p.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(A){const _=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,x=n.scopeValue("formats",{key:l,ref:A,code:_});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${x}.validate`]:["string",A,x]}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 ${C}(${s})`}return typeof w=="function"?(0,e._)`${C}(${s})`:(0,e._)`${C}.test(${s})`}}}};return ko.default=r,ko}var Ag;function TD(){if(Ag)return bo;Ag=1,Object.defineProperty(bo,"__esModule",{value:!0});const t=[ID().default];return bo.default=t,bo}var Zn={},Og;function jD(){return Og||(Og=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.contentVocabulary=Zn.metadataVocabulary=void 0,Zn.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Zn.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Zn}var _g;function RD(){if(_g)return Us;_g=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=nD(),t=hD(),r=PD(),i=TD(),a=jD(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Us.default=n,Us}var wo={},Oa={},Pg;function ND(){if(Pg)return Oa;Pg=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Oa.DiscrError=e={})),Oa}var Ig;function FD(){if(Ig)return wo;Ig=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ne(),t=ND(),r=Rd(),i=Nl(),a=We(),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:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=o,{oneOf:d}=f;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=c.propertyName;if(typeof p!="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)(p)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:p})),o.ok(k);function g(){const C=w();l.if(!1);for(const h in C)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(C[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:p}),l.endIf()}function b(C){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:C},h);return o.mergeEvaluated(y,e.Name),h}function w(){var C;const h={},y=A(f);let S=!0;for(let E=0;E<d.length;E++){let O=d[E];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,m.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(m.opts.uriResolver,m.baseId,T)}const R=(C=O==null?void 0:O.properties)===null||C===void 0?void 0:C[p];if(typeof R!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);S=S&&(y||A(O)),_(R,E)}if(!S)throw new Error(`discriminator: "${p}" must be required`);return h;function A({required:E}){return Array.isArray(E)&&E.includes(p)}function _(E,O){if(E.const)x(E.const,O);else if(E.enum)for(const R of E.enum)x(R,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function x(E,O){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[E]=O}}}};return wo.default=s,wo}const DD="http://json-schema.org/draft-07/schema#",MD="http://json-schema.org/draft-07/schema#",LD="Core schema meta-schema",qD={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:[]}},zD=["object","boolean"],$D={$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:"#"}},UD={$schema:DD,$id:MD,title:LD,definitions:qD,type:zD,properties:$D,default:!0};var Tg;function o1(){return Tg||(Tg=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=eD(),i=RD(),a=FD(),n=UD,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(p,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 u=Rl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ne();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=jd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Nl();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Ms,Ms.exports)),Ms.exports}var BD=o1();const VD=Wr(BD);var xo={exports:{}},Zu={},jg;function HD(){return jg||(jg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,x){return{validate:_,compare:x}}e.fullFormats={date:t(n,s),time:t(l,u),"date-time":t(f,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},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$/,s),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,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){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 x=i.exec(_);if(!x)return!1;const E=+x[1],O=+x[2],R=+x[3];return O>=1&&O<=12&&R>=1&&R<=(O===2&&r(E)?29:a[O])}function s(_,x){if(_&&x)return _>x?1:_<x?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,x){const E=o.exec(_);if(!E)return!1;const O=+E[1],R=+E[2],T=+E[3],D=E[5];return(O<=23&&R<=59&&T<=59||O===23&&R===59&&T===60)&&(!x||D!=="")}function u(_,x){if(!(_&&x))return;const E=o.exec(_),O=o.exec(x);if(E&&O)return _=E[1]+E[2]+E[3]+(E[4]||""),x=O[1]+O[2]+O[3]+(O[4]||""),_>x?1:_<x?-1:0}const c=/t|\s/i;function f(_){const x=_.split(c);return x.length===2&&n(x[0])&&l(x[1],!0)}function m(_,x){if(!(_&&x))return;const[E,O]=_.split(c),[R,T]=x.split(c),D=s(E,R);if(D!==void 0)return D||u(O,T)}const d=/\/|:/,p=/^(?:[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(_)&&p.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 C(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function A(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(Zu)),Zu}var Qu={},Rg;function KD(){return Rg||(Rg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=o1(),r=Ne(),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:u,schemaCode:c,keyword:f,it:m}=o,{opts:d,self:p}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,p.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:p.formats,code:d.code.formats}),C=l.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${C} != "object"`,r._`${C} instanceof RegExp`,r._`typeof ${C}.compare != "function"`,b(C)))}function g(){const w=k.schema,C=p.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:C,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(Qu)),Qu}var Ng;function WD(){return Ng||(Ng=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=HD(),i=KD(),a=Ne(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};o.get=(u,c="full")=>{const m=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function l(u,c,f,m){var d,p;(d=(p=u.opts.code).formats)!==null&&d!==void 0||(p.formats=a._`require("ajv-formats/dist/formats").${m}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(xo,xo.exports)),xo.exports}var GD=WD();const Fg=Wr(GD),JD={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},YD=/^(#?([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*\)))$/,XD=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function ZD(e,t,r={},i,a=VD,n){let s=new a({...JD,...r});return i?Fg(s,i):i!==!1&&Fg(s),s.addFormat("data-url",XD),s.addFormat("color",YD),s.addKeyword(ed),Array.isArray(e)&&s.addMetaSchema(e),Ue(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class QD{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=ZD(i,a,n,s,o,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,s;try{t[nt]&&(s=this.ajv.getSchema(t[nt])),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 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(s.errors),((a=s.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(", "))})),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 LF(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[nt])!==null&&r!==void 0?r:Ab;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):ze(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=Td(t),s=(a=n[nt])!==null&&a!==void 0?a:pF(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 Lo(e={},t){return new QD(e,t)}Lo();var ec,Dg;function eM(){return Dg||(Dg=1,ec=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}}),ec}var tc,Mg;function tM(){return Mg||(Mg=1,tc=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}}),tc}var rc,Lg;function rM(){return Lg||(Lg=1,rc=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}}),rc}var nc,qg;function nM(){return qg||(qg=1,nc=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}}),nc}var ic,zg;function iM(){return zg||(zg=1,ic=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}}),ic}var ac,$g;function aM(){return $g||($g=1,ac=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}}),ac}var sc,Ug;function sM(){return Ug||(Ug=1,sc=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}}),sc}var oc,Bg;function oM(){return Bg||(Bg=1,oc=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}}),oc}var lc,Vg;function lM(){return Vg||(Vg=1,lc=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}}),lc}var uc,Hg;function uM(){return Hg||(Hg=1,uc=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}}),uc}var cc,Kg;function cM(){return Kg||(Kg=1,cc=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}}),cc}var fc,Wg;function fM(){return Wg||(Wg=1,fc=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}}),fc}var dc,Gg;function dM(){return Gg||(Gg=1,dc=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}}),dc}var mc,Jg;function mM(){return Jg||(Jg=1,mc=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}}),mc}var pc,Yg;function pM(){return Yg||(Yg=1,pc=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}}),pc}var hc,Xg;function hM(){return Xg||(Xg=1,hc=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}}),hc}var gc,Zg;function gM(){return Zg||(Zg=1,gc=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}}),gc}var yc,Qg;function yM(){return Qg||(Qg=1,yc=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}}),yc}var vc,ey;function vM(){return ey||(ey=1,vc=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}}),vc}var bc,ty;function bM(){return ty||(ty=1,bc=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}}),bc}var kc,ry;function kM(){return ry||(ry=1,kc=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}}),kc}var wc,ny;function wM(){return ny||(ny=1,wc=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}}),wc}var xc,iy;function xM(){return iy||(iy=1,xc=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}}),xc}var Sc,ay;function SM(){return ay||(ay=1,Sc={en:eM(),ar:tM(),ca:rM(),cs:nM(),de:iM(),es:aM(),fi:sM(),fr:oM(),hu:lM(),id:uM(),it:cM(),ja:fM(),ko:dM(),nb:mM(),nl:pM(),pl:hM(),"pt-BR":gM(),ru:yM(),sk:vM(),sv:bM(),th:kM(),zh:wM(),"zh-TW":xM()}),Sc}var CM=SM();const _a=Wr(CM),So={flex:1,paddingLeft:6,paddingRight:6};function EM(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates;return j.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",style:So,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",style:So,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",style:So,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",style:So,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function AM(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=me(n),o=ye("ArrayFieldItemButtonsTemplate",a,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function OM(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,registry:l,required:u,schema:c,title:f,uiSchema:m}=e,d=me(m),p=ye("ArrayFieldTitleTemplate",l,d),k=ye("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=l.templates.ButtonTemplates,g=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),j.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,registry:l}),g?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:ir(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:l})})]})]})]})})})}const gs={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},_M=()=>j.jsx("svg",{...gs,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),PM=()=>j.jsx("svg",{...gs,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),IM=()=>j.jsxs("svg",{...gs,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),l1=()=>j.jsx("svg",{...gs,children:j.jsx("path",{d:"M3.5 8h9"})}),TM=()=>j.jsx("svg",{...gs,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function da({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function jM(e){const{translateString:t}=e.registry;return j.jsx(da,{title:t(_e.CopyButton),...e,icon:j.jsx(IM,{})})}function RM(e){const{translateString:t}=e.registry;return j.jsx(da,{title:t(_e.MoveUpButton),...e,icon:j.jsx(_M,{})})}function NM(e){const{translateString:t}=e.registry;return j.jsx(da,{title:t(_e.MoveDownButton),...e,icon:j.jsx(PM,{})})}function FM(e){const{translateString:t}=e.registry;return j.jsx(da,{title:t(_e.RemoveButton),...e,variant:"danger",icon:j.jsx(l1,{})})}function DM(e){const{translateString:t}=e.registry;return j.jsx(da,{title:t(_e.ClearButton),...e,icon:j.jsx(l1,{})})}function MM({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(da,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:j.jsx(TM,{})})}function LM({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Cd(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const qM={SubmitButton:LM,AddButton:MM,CopyButton:jM,MoveDownButton:NM,MoveUpButton:RM,RemoveButton:FM,ClearButton:DM};function zM({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(Ir,{children:t}):t})}):null}function $M({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Ad(t),children:e.filter(Boolean).map((r,i)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(Ir,{children:r}):r})},`${r}-${i}`))})}function UM({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:_d(e),children:t}):null}function BM(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),k=ye("WrapIfAdditionalTemplate",d,p);if(l)return j.jsx("div",{className:"hidden",children:r});const v=a.length>0;return j.jsxs(j.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(Wc,{children:f.markdown.before})}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[i&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(Ir,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(Ir,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&j.jsx("div",{className:"fcode-form-markdown",children:j.jsx(Wc,{children:f.markdown.after})})]})}function VM(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,readonly:l,registry:u,required:c,schema:f,title:m,uiSchema:d}=e,p=me(d),k=ye("TitleFieldTemplate",u,p),v=ye("DescriptionFieldTemplate",u,p),{AddButton:g}=u.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!l&&!r;return j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:Pl(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:$n(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(C=>j.jsx("div",{className:`row mb-2${C.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:C.content})},C.name)),Ob(f,d,i)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(g,{id:ir(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function HM({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(Ir,{children:a.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function KM(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:l,required:u,schema:c,hideError:f,rawErrors:m,children:d,uiSchema:p,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=Sn in c,C=[r];!f&&m&&m.length>0&&C.push("has-error has-danger");const h=C.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return j.jsx("div",{className:h,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:y,children:g(_e.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:a||l,onClick:o,uiSchema:p,registry:k})})]})})}const WM=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:EM,ArrayFieldItemTemplate:AM,ArrayFieldTemplate:OM,ButtonTemplates:qM,DescriptionFieldTemplate:zM,FieldErrorTemplate:$M,FieldHelpTemplate:UM,FieldTemplate:BM,ObjectFieldTemplate:VM,TitleFieldTemplate:HM,WrapIfAdditionalTemplate:KM},Symbol.toStringTag,{value:"Module"}));function GM({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ye("DescriptionFieldTemplate",d,r),k=$a(e),v=V.useCallback(y=>m(y.target.checked),[m]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),b=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&j.jsx(p,{id:$n(i),description:h,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:k,disabled:n||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":Rr(i)}),!l&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:i,children:j.jsx(Ir,{components:{p:"span"},children:o})})]})]})}function JM({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]),g=V.useCallback(({target:b})=>u(e,_r(b==null?void 0:b.value,f,p,d)),[u,e,f,d,p]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=Il(e,w),S=A=>{A.target.checked?o(Wk(w,k,f)):o(Hk(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:C,value:ms(b.value,w,p),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:y,children:j.jsx(Ir,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function YM({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=ps(e),k=V.useCallback(({target:g})=>s(u,_r(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]),v=V.useCallback(({target:g})=>o(u,_r(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]);return j.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=ua(g.value,t),C=Array.isArray(f)&&f.includes(g.value),h=Il(u,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ms(g.value,b,p),required:r,disabled:i||C||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":Rr(u)}),j.jsx("label",{className:"form-check-label",htmlFor:h,children:j.jsx(Ir,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const XM=5;function ZM({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c}){const f=V.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=V.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=V.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||XM,onChange:f,onBlur:m,onFocus:d,"aria-describedby":Rr(e)})}const QM=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:GM,CheckboxesWidget:JM,RadioWidget:YM,TextareaWidget:ZM},Symbol.toStringTag,{value:"Module"})),sy={templates:WM,widgets:QM},e2=e=>e==="{}"?`{
84
+
85
+ }`:e,t2=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:u}=e,c=V.useRef(null),[f,m]=V.useState(e2(JSON.stringify(o||{},null,2))),d=V.useCallback(b=>{m(b.target.value)},[t]),p=V.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=V.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=V.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(o,null,2)||"{}";return j.jsxs("div",{className:"form-group",children:[n&&j.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),j.jsxs("div",{className:"wrapper",children:[j.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
86
+ `).length,value:g,className:tn(["form-control","textarea"]),onChange:d,onKeyDown:p,onFocus:v,onBlur:k,readOnly:l,disabled:u}),j.jsx("div",{className:"shadow",children:f})]}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:s})})]})},r2=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return j.jsxs("div",{className:"form-group",children:[j.jsx("div",{className:"wrapper",children:j.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:a})})]})};function oy(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 n2(e){if(Array.isArray(e))return e}function i2(e,t,r){return(t=f2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a2(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,u=!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(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function s2(){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 ly(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 uy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ly(Object(r),!0).forEach(function(i){i2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function o2(e,t){if(e==null)return{};var r,i,a=l2(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 l2(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 u2(e,t){return n2(e)||a2(e,t)||d2(e,t)||s2()}function c2(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 f2(e){var t=c2(e,"string");return typeof t=="symbol"?t:t+""}function d2(e,t){if(e){if(typeof e=="string")return oy(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)?oy(e,t):void 0}}function m2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cy(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 fy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cy(Object(r),!0).forEach(function(i){m2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function p2(){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 Na(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 nl(e){return{}.toString.call(e).includes("Object")}function h2(e){return!Object.keys(e).length}function ts(e){return typeof e=="function"}function g2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function y2(e,t){return nl(t)||On("changeType"),Object.keys(t).some(function(r){return!g2(e,r)})&&On("changeField"),t}function v2(e){ts(e)||On("selectorType")}function b2(e){ts(e)||nl(e)||On("handlerType"),nl(e)&&Object.values(e).some(function(t){return!ts(t)})&&On("handlersType")}function k2(e){e||On("initialIsRequired"),nl(e)||On("initialType"),h2(e)&&On("initialContent")}function w2(e,t){throw new Error(e[t]||e.default)}var x2={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"},On=Na(w2)(x2),Co={changes:y2,selector:v2,handler:b2,initial:k2};function S2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Co.initial(e),Co.handler(t);var r={current:e},i=Na(A2)(r,t),a=Na(E2)(r),n=Na(Co.changes)(e),s=Na(C2)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Co.selector(u),u(r.current)}function l(u){p2(i,a,n,s)(u)}return[o,l]}function C2(e,t){return ts(t)?t(e.current):t}function E2(e,t){return e.current=fy(fy({},e.current),t),t}function A2(e,t,r){return ts(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 O2={create:S2},_2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function P2(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 I2(e){return{}.toString.call(e).includes("Object")}function T2(e){return e||dy("configIsRequired"),I2(e)||dy("configType"),e.urls?(j2(),{paths:{vs:e.urls.monacoBase}}):e}function j2(){console.warn(u1.deprecation)}function R2(e,t){throw new Error(e[t]||e.default)}var u1={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
+ You are using deprecated way of configuration.
89
+
90
+ Instead of using
91
+ monaco.config({ urls: { monacoBase: '...' } })
92
+ use
93
+ monaco.config({ paths: { vs: '...' } })
94
+
95
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
96
+ `},dy=P2(R2)(u1),N2={config:T2},F2=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 c1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],c1(e[r],t[r]))}),uy(uy({},e),t)}var D2={type:"cancelation",msg:"operation is manually canceled"};function Cc(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(D2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var M2=["monaco"],L2=O2.create({config:_2,isInitialized:!1,resolve:null,reject:null,monaco:null}),f1=u2(L2,2),ys=f1[0],Fl=f1[1];function q2(e){var t=N2.config(e),r=t.monaco,i=o2(t,M2);Fl(function(a){return{config:c1(a.config,i),monaco:r}})}function z2(){var e=ys(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(Fl({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Cc(Ec);if(window.monaco&&window.monaco.editor)return d1(window.monaco),e.resolve(window.monaco),Cc(Ec);F2($2,B2)(V2)}return Cc(Ec)}function $2(e){return document.body.appendChild(e)}function U2(e){var t=document.createElement("script");return e&&(t.src=e),t}function B2(e){var t=ys(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=U2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function V2(){var e=ys(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;d1(i),e.resolve(i)},function(r){e.reject(r)})}function d1(e){ys().monaco||Fl({monaco:e})}function H2(){return ys(function(e){var t=e.monaco;return t})}var Ec=new Promise(function(e,t){return Fl({resolve:e,reject:t})}),il={config:q2,init:z2,__getMonacoInstance:H2},K2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Ac=K2,W2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},G2=W2;function J2({children:e}){return V.createElement("div",{style:G2.container},e)}var Y2=J2,X2=Y2;function Z2({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return V.createElement("section",{style:{...Ac.wrapper,width:e,height:t},...s},!r&&V.createElement(X2,null,i),V.createElement("div",{ref:a,style:{...Ac.fullWidth,...!r&&Ac.hide},className:n}))}var Q2=Z2,m1=V.memo(Q2);function eL(e){V.useEffect(e,[])}var Fd=eL;function tL(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var nr=tL;function Ua(){}function $i(e,t,r,i){return rL(e,i)||nL(e,t,r,i)}function rL(e,t){return e.editor.getModel(p1(e,t))}function nL(e,t,r,i){return e.editor.createModel(t,r,i?p1(e,i):void 0)}function p1(e,t){return e.Uri.parse(t)}function iL({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:k={},beforeMount:v=Ua,onMount:g=Ua}){let[b,w]=V.useState(!1),[C,h]=V.useState(!0),y=V.useRef(null),S=V.useRef(null),A=V.useRef(null),_=V.useRef(g),x=V.useRef(v),E=V.useRef(!1);Fd(()=>{let D=il.init();return D.then(L=>(S.current=L)&&h(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>y.current?T():D.cancel()}),nr(()=>{if(y.current&&S.current){let D=y.current.getOriginalEditor(),L=$i(S.current,e||"",i||r||"text",n||"");L!==D.getModel()&&D.setModel(L)}},[n],b),nr(()=>{if(y.current&&S.current){let D=y.current.getModifiedEditor(),L=$i(S.current,t||"",a||r||"text",s||"");L!==D.getModel()&&D.setModel(L)}},[s],b),nr(()=>{let D=y.current.getModifiedEditor();D.getOption(S.current.editor.EditorOption.readOnly)?D.setValue(t||""):t!==D.getValue()&&(D.executeEdits("",[{range:D.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),D.pushUndoStop())},[t],b),nr(()=>{var D,L;(L=(D=y.current)==null?void 0:D.getModel())==null||L.original.setValue(e||"")},[e],b),nr(()=>{let{original:D,modified:L}=y.current.getModel();S.current.editor.setModelLanguage(D,i||r||"text"),S.current.editor.setModelLanguage(L,a||r||"text")},[r,i,a],b),nr(()=>{var D;(D=S.current)==null||D.editor.setTheme(u)},[u],b),nr(()=>{var D;(D=y.current)==null||D.updateOptions(f)},[f],b);let O=V.useCallback(()=>{var J;if(!S.current)return;x.current(S.current);let D=$i(S.current,e||"",i||r||"text",n||""),L=$i(S.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:D,modified:L})},[r,t,a,e,i,n,s]),R=V.useCallback(()=>{var D;!E.current&&A.current&&(y.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),O(),(D=S.current)==null||D.editor.setTheme(u),w(!0),E.current=!0)},[f,u,O]);V.useEffect(()=>{b&&_.current(y.current,S.current)},[b]),V.useEffect(()=>{!C&&!b&&R()},[C,b,R]);function T(){var L,J,Y,X;let D=(L=y.current)==null?void 0:L.getModel();o||((J=D==null?void 0:D.original)==null||J.dispose()),l||((Y=D==null?void 0:D.modified)==null||Y.dispose()),(X=y.current)==null||X.dispose()}return V.createElement(m1,{width:d,height:m,isEditorReady:b,loading:c,_ref:A,className:p,wrapperProps:k})}var aL=iL;V.memo(aL);function sL(){let[e,t]=V.useState(il.__getMonacoInstance());return Fd(()=>{let r;return e||(r=il.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var oL=sL;function lL(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var uL=lL,Eo=new Map;function cL({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:m=!1,width:d="100%",height:p="100%",className:k,wrapperProps:v={},beforeMount:g=Ua,onMount:b=Ua,onChange:w,onValidate:C=Ua}){let[h,y]=V.useState(!1),[S,A]=V.useState(!0),_=V.useRef(null),x=V.useRef(null),E=V.useRef(null),O=V.useRef(b),R=V.useRef(g),T=V.useRef(),D=V.useRef(i),L=uL(n),J=V.useRef(!1),Y=V.useRef(!1);Fd(()=>{let F=il.init();return F.then(B=>(_.current=B)&&A(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>x.current?P():F.cancel()}),nr(()=>{var B,I,N,M;let F=$i(_.current,e||i||"",t||a||"",n||r||"");F!==((B=x.current)==null?void 0:B.getModel())&&(f&&Eo.set(L,(I=x.current)==null?void 0:I.saveViewState()),(N=x.current)==null||N.setModel(F),f&&((M=x.current)==null||M.restoreViewState(Eo.get(n))))},[n],h),nr(()=>{var F;(F=x.current)==null||F.updateOptions(u)},[u],h),nr(()=>{!x.current||i===void 0||(x.current.getOption(_.current.editor.EditorOption.readOnly)?x.current.setValue(i):i!==x.current.getValue()&&(Y.current=!0,x.current.executeEdits("",[{range:x.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),x.current.pushUndoStop(),Y.current=!1))},[i],h),nr(()=>{var B,I;let F=(B=x.current)==null?void 0:B.getModel();F&&a&&((I=_.current)==null||I.editor.setModelLanguage(F,a))},[a],h),nr(()=>{var F;o!==void 0&&((F=x.current)==null||F.revealLine(o))},[o],h),nr(()=>{var F;(F=_.current)==null||F.editor.setTheme(s)},[s],h);let X=V.useCallback(()=>{var F;if(!(!E.current||!_.current)&&!J.current){R.current(_.current);let B=n||r,I=$i(_.current,i||e||"",t||a||"",B||"");x.current=(F=_.current)==null?void 0:F.editor.create(E.current,{model:I,automaticLayout:!0,...u},c),f&&x.current.restoreViewState(Eo.get(B)),_.current.editor.setTheme(s),o!==void 0&&x.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);V.useEffect(()=>{h&&O.current(x.current,_.current)},[h]),V.useEffect(()=>{!S&&!h&&X()},[S,h,X]),D.current=i,V.useEffect(()=>{var F,B;h&&w&&((F=T.current)==null||F.dispose(),T.current=(B=x.current)==null?void 0:B.onDidChangeModelContent(I=>{Y.current||w(x.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let F=_.current.editor.onDidChangeMarkers(B=>{var N;let I=(N=x.current.getModel())==null?void 0:N.uri;if(I&&B.find(M=>M.path===I.path)){let M=_.current.editor.getModelMarkers({resource:I});C==null||C(M)}});return()=>{F==null||F.dispose()}}return()=>{}},[h,C]);function P(){var F,B;(F=T.current)==null||F.dispose(),m?f&&Eo.set(n,x.current.saveViewState()):(B=x.current.getModel())==null||B.dispose(),x.current.dispose()}return V.createElement(m1,{width:d,height:p,isEditorReady:h,loading:l,_ref:E,className:k,wrapperProps:v})}var fL=cL,dL=V.memo(fL),mL=dL;const pL="vs-dark",hL=!0,gL=[{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"}],yL={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},vL={base:pL,inherit:hL,rules:gL,colors:yL},bL=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,k=oL();V.useEffect(()=>{k&&k.editor.defineTheme("dracula",vL)});const v=V.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=V.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(mL,{id:t.$id,className:tn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...p},...u})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(Ir,{children:i})})]})},kL=Object.freeze(Object.defineProperty({__proto__:null,button:r2,json:t2,sourceCode:bL},Symbol.toStringTag,{value:"Module"}));function wL(e,t){return e==null?!0:ek(e,t)}function ff(){return Jk("rjsf-array-item-")}function my(e){return Array.isArray(e)?e.map(t=>({key:ff(),item:t})):[]}function h1(e){return Array.isArray(e)?e.map(t=>t.item):[]}function xL(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function g1(e,t,r,i){let{addable:a}=me(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function y1(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 SL(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:wd(t)&&ZO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function CL(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:f,registry:m,rawErrors:d,name:p,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=m,C=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=di(C,h),{widget:S="select",title:A,..._}=me(i,w),x=Kr(t,S,v),E=A??t.title??p,O=g.getDisplayLabel(t,i,w),R=fa(Tr("",b,r,!0));return j.jsx(x,{id:R[nt],name:p,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:s,required:l,label:E,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:R.name})}function EL(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:l,placeholder:u,onBlur:c,onFocus:f,formData:m=[],registry:d,rawErrors:p,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:C}=d,{widget:h,title:y,...S}=me(i,C),A=Kr(t,h,g),_=y??t.title??k,x=b.getDisplayLabel(t,i,C),E=fa(Tr("",w,r,!0));return j.jsx(A,{id:E[nt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!x,placeholder:u,autofocus:s,rawErrors:p,htmlName:E.name})}function AL(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,onBlur:u,onFocus:c,registry:f,formData:m=[],rawErrors:d,onSelectChange:p}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:C,...h}=me(r,b),y=Kr(t,w,k),S=C??t.title??a,A=v.getDisplayLabel(t,r,b),_=fa(Tr("",g,i,!0));return j.jsx(y,{options:h,id:_[nt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:_.name})}function OL(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:m,canMoveDown:d,rawItemSchema:p,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:C,onFocus:h,onChange:y,rawErrors:S,totalItems:A,title:_,handleAddItem:x,handleCopyItem:E,handleRemoveItem:O,handleReorderItems:R}=e,{schemaUtils:T,fields:{ArraySchemaField:D,SchemaField:L},globalUiOptions:J,globalFormOptions:Y}=o,X=V.useMemo(()=>T.retrieveSchema(p,k),[T,p,k]),P=V.useMemo(()=>Tr(r,Y,g),[r,Y,g]),F=D||L,B=ye("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(X,v,J),{description:N}=me(v),M=!!N||!!X.description,{orderable:U=!0,removable:$=!0,copyable:H=!1}=l,G={moveUp:U&&m,moveDown:U&&d,copy:H&&c,remove:$&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const Z=V.useCallback(re=>{x(re,r+1)},[x,r]),z=V.useCallback(re=>{E(re,r)},[E,r]),q=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{R(re,r,r-1)},[R,r]),K=V.useCallback(re=>{R(re,r,r+1)},[R,r]),ie={children:j.jsx(F,{name:i,title:_,index:r,schema:X,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:xL(X),onChange:y,onBlur:C,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:A,onAddItem:Z,onCopyItem:z,onRemoveItem:q,onMoveUpItem:W,onMoveDownItem:K,registry:o,schema:X,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:X,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:M};return j.jsx(B,{...ie})}const v1=V.memo(OL);function _L(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:A,fields:_,formContext:x,globalUiOptions:E}=d,{OptionalDataControlsField:O}=_,R=V.useMemo(()=>me(r,E),[r,E]),T=V.useMemo(()=>Ue(t.items)?t.items:{},[t.items]),D=V.useMemo(()=>A.retrieveSchema(T),[A,T]),L=V.useMemo(()=>h1(b),[b]),J=hs(d,t,f,r),Y=ca(n),X=V.useMemo(()=>g1(d,t,L,r)&&(!J||Y),[d,t,L,r,J,Y]),P=Y?b:[],F=J?" rjsf-optional-array-field":"",B=e.childFieldPathId??a,I=J?j.jsx(O,{...e,fieldPathId:B}):void 0,N={canAdd:X,items:P.map((U,$)=>{const{key:H,item:G}=U,Z=G,z=i?i[$]:void 0,q=y1(r,G,$,x),W={itemKey:H,index:$,name:s&&`${s}-${$}`,registry:d,uiOptions:R,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:S?`${S}-${$+1}`:void 0,canAdd:X,canMoveUp:$>0,canMoveDown:$<L.length-1,rawItemSchema:T,parentFieldPathId:B,itemErrorSchema:z,itemData:Z,itemUiSchema:q,autofocus:c&&$===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y,onChange:g};return j.jsx(v1,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${D.type}${F}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:S,formData:L,rawErrors:v,registry:d,optionalDataControl:I},M=ye("ArrayFieldTemplate",d,R);return j.jsx(M,{...N})}function PL(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:_,formContext:x,globalUiOptions:E}=d,O=V.useMemo(()=>me(r,E),[r,E]),{OptionalDataControlsField:R}=_,T=hs(d,t,f,r),D=ca(i),L=V.useMemo(()=>Ue(t.items)?t.items:[],[t.items]),J=Ue(t.additionalItems),Y=e.childFieldPathId??n;S.length<L.length&&(S=S.concat(new Array(L.length-S.length)));const X=D?g:[],P=T?" rjsf-optional-array-field":"",F=T?j.jsx(R,{...e,fieldPathId:Y}):void 0,B=g1(d,t,S,r)&&J&&(!T||D),I={canAdd:B,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:X.map((M,U)=>{const{key:$,item:H}=M,G=H,Z=U>=L.length,z=(Z&&Ue(t.additionalItems)?t.additionalItems:L[U])||{};let q;Z?q=r.additionalItems:Array.isArray(r.items)?q=r.items[U]:q=y1(r,H,U,x);const W=a?a[U]:void 0,K={index:U,itemKey:$,name:s&&`${s}-${U}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:A?`${A}-${U+1}`:void 0,canAdd:B,canRemove:Z,canMoveUp:U>=L.length+1,canMoveDown:Z&&U<S.length-1,rawItemSchema:z,itemData:G,itemUiSchema:q,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&U===0,onBlur:p,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y};return j.jsx(v1,{...K},$)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:a,rawErrors:v,optionalDataControl:F},N=ye("ArrayFieldTemplate",d,O);return j.jsx(N,{...I})}function IL(e=[]){const t=V.useMemo(()=>fr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:my(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((u,c)=>({key:u.key,item:o[c]})):my(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=V.useCallback(o=>{const l=h1(o),u=fr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function TL(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=IL(s),d=V.useRef(f);d.current=f;const p=V.useRef(i);p.current=i;const k=e.childFieldPathId??a,v=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);_===void 0||T<_?lt(x,[T],p.current[T]):T>=_&&lt(x,[T+1],p.current[T])}}const E={key:ff(),item:SL(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,E):O.push(E),o(m(O),k.path,x)},[n,t,o,m,k]),g=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const R of Object.keys(p.current)){const T=parseInt(R,10);T<=_?lt(x,[T],p.current[T]):T>_&&lt(x,[T+1],p.current[T])}}const E={key:ff(),item:el(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,E):O.push(E),o(m(O),k.path,x)},[o,m,k]),b=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const O of Object.keys(p.current)){const R=parseInt(O,10);R<_?lt(x,[R],p.current[R]):R>_&&lt(x,[R-1],p.current[R])}}const E=d.current.filter((O,R)=>R!==_);o(m(E),k.path,x)},[o,m,k]),w=V.useCallback((A,_,x)=>{A&&(A.preventDefault(),A.currentTarget.blur());let E;if(p.current){E={};for(const T of Object.keys(p.current)){const D=parseInt(T,10);D===_?lt(E,[x],p.current[_]):D===x?lt(E,[_],p.current[x]):lt(E,[T],p.current[D])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(x,0,d.current[_]),T}const R=O();o(m(R),k.path,E)},[o,m,k]),C=V.useCallback((A,_,x,E)=>{const O=typeof _.at(-1)=="number";o(O&&A===void 0?null:A,_,x,E)},[o]),h=V.useCallback(A=>{o(A,k.path,void 0,k==null?void 0:k[nt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},S={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:C};if(!(Xi in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),x=ye("UnsupportedFieldTemplate",n,_);return j.jsx(x,{schema:t,fieldPathId:a,reason:c(_e.MissingItems),registry:n})}const A={...t,[Xi]:{type:void 0}};y.schema=A,S.schema=A}return u.isMultiSelect(y.schema)?j.jsx(CL,{...y}):Lk(r)?j.jsx(EL,{...y}):wd(y.schema)?j.jsx(PL,{...S}):u.isFilesArray(y.schema,r)?j.jsx(AL,{...y}):j.jsx(_L,{...S})}function jL(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,disabled:l,readonly:u,hideError:c,autofocus:f,title:m,onChange:d,onFocus:p,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:C}=s,{widget:h="checkbox",title:y,label:S=!0,enumNames:A,..._}=me(i,C),x=Kr(t,h,b),E=w(_e.YesLabel),O=w(_e.NoLabel);let R;const T=y??g??m??r;if(Array.isArray(t.oneOf))R=di({oneOf:t.oneOf.map(L=>{if(Ue(L))return{...L,title:L.title||(L.const===!0?E:O)}}).filter(L=>L)},i);else{const L=t.enum??[!0,!1];!A&&L.length===2&&L.every(J=>typeof J=="boolean")?R=[{value:L[0],label:L[0]?E:O},{value:L[1],label:L[1]?E:O}]:R=di({enum:L},i)}const D=V.useCallback((L,J,Y)=>d(L,a.path,J,Y),[d,a]);return j.jsx(x,{options:{..._,enumOptions:R},schema:t,uiSchema:i,id:a.$id,name:r,onChange:D,onFocus:p,onBlur:k,label:T,hideLabel:!S,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function RL(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=me(s,l),c=ye("CyclicSchemaExpandTemplate",a,u);if(!t)return j.jsx(c,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[Qf]:!1}})}function NL(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function FL(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function DL(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 ML(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:m,fieldPathId:d,onChange:p,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=m,[w,C]=V.useState(FL(r)),h=me(s),y=fa(Tr("__internal_type_selector",b,d)),S=v(_e.Type),A=V.useMemo(()=>NL(S),[S]),_=O=>{O!=null&&(C(O),p(DL(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(_e.UnknownFieldType,[String(a.type)])}=e,R=ye("UnsupportedFieldTemplate",m,h);return j.jsx(R,{schema:a,fieldPathId:d,reason:O,registry:m})}const x=ye("FallbackFieldTemplate",m,h),{SchemaField:E}=g;return j.jsx(x,{schema:a,registry:m,typeSelector:j.jsx(E,{fieldPathId:y,name:`${n}__fallback_type`,schema:A,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:o},r?fr(r):"__empty__"),schemaField:j.jsx(E,{...e,schema:{type:w,title:v(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function LL(e,t){return sa(t,function(r){return e[r]})}function qL(e){return e==null?[]:LL(e,Cr(e))}var zL=Math.max;function $L(e,t,r,i){e=xi(e)?e:qL(e),r=r?uk(r):0;var a=e.length;return r<0&&(r=zL(a+r,0)),Nn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&gk(e,t,r)>-1}var UL=Math.min;function BL(e,t,r){for(var i=kd,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=UL(c.length,l),o[s]=a>=120&&c.length>=120?new fi(s&&c):void 0}c=e[0];var f=-1,m=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?Za(m,p):i(u,p))){for(s=n;--s;){var k=o[s];if(!(k?Za(k,p):i(e[s],p)))continue e}m&&m.push(p),u.push(d)}}return u}function VL(e){return Xa(e)?e:[]}var py=Cl(function(e){var t=sa(e,VL);return t.length&&t[0]===e[0]?BL(t):[]});function HL(e,t){return El(e,t)}function b1(e){return e===void 0}var Br;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Br||(Br={}));var Ba;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Ba||(Ba={}));const KL=/^\$lookup=(.+)/,Oc="layoutGrid";function hy(e,t){return e??t}function WL(e){return/^\d+?$/.test(e)}const _n=Ed();function GL(e,t,r,i,a){const n=ae(r,[Xc],{}),s=ae(r,e),o={...ae(s,[Cn],{}),...t,...n},l={...s};wt(o)||lt(l,[Cn],o),wt(n)||lt(l,[Xc],n);let{readonly:u}=me(l);return(a===!0||b1(u)&&i===!0)&&(u=!0,qe(o,xu)?lt(l,[Cn,xu],!0):lt(l,`ui:${xu}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function JL(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=nf([t]).sort(),a=nf([r]).sort();switch(e){case Ba.ALL:return HL(i,a);case Ba.SOME:return py(i,a).length>0;case Ba.NONE:return py(i,a).length===0;default:return!1}}function Dl(e,t,r){let i={},a=e[t];if(jn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>Pd(r,c,c)).join(" ");i={...o,className:u}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function gy(e,t,r){let i,a=t;if(WL(r)&&e&&(e==null?void 0:e.type)==="array"&&qe(e,Xi)){const n=Number(r),s=e[Xi];Array.isArray(s)?n>s.length?i=Qb(s):i=s[n]:i=s,a={[nt]:t[nt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function YL(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(o,i),m=i,d=f.readOnly;u.forEach(v=>{if(l=Tr(v,s,l),qe(f,$e))o=ae(f,[$e,v],{});else if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=n.findSelectedOptionInXxxOf(f,v,g,m);o=ae(b,[$e,v],{})}else{const g=gy(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}m=ae(m,v,{}),f=n.retrieveSchema(o,m),d=hy(f.readOnly,d)});let p,k=!1;if(wt(f)&&(f=void 0),f&&c){if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Tr(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&$L(f.required,c);const v=gy(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[$e,c]),f=f&&n.retrieveSchema(f)),d=hy(f==null?void 0:f.readOnly,d),f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,b=yr(f);p={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:p,fieldPathId:l}}function XL(e,t){let r=e;return Nn(r)&&(r=Pd(t,r)),ls(r)?r:null}function ZL(e,t){let r,i=null,a={},n;if(Nn(t)||b1(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,wt(a)||FF(a,(u,c)=>{if(Nn(u)){const f=KL.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=Pd(e,m,m)}}}),i=XL(o,e),!s&&i&&(n=j.jsx(i,{...l,"data-testid":_n.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Ml(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=>V.createElement(Dd,{...r,key:`layoutGrid-${fr(l)}`,schema:o,layoutGridSchema:l}))}function QL(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=Dl(t,Br.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return JL(o,c,u)?j.jsx(Ml,{...r,childrenLayoutGridSchemaId:n}):null}function eq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Dl(t,Br.COLUMN,i),o=me(a),l=ye("GridTemplate",i,o);return j.jsx(l,{column:!0,"data-testid":_n.col,...s,children:j.jsx(Ml,{...r,childrenLayoutGridSchemaId:n})})}function tq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Dl(t,Br.COLUMNS,i),o=me(a),l=ye("GridTemplate",i,o);return n.map(u=>j.jsx(l,{column:!0,"data-testid":_n.col,...s,children:j.jsx(Ml,{...r,childrenLayoutGridSchemaId:[u]})},`column-${fr(u)}`))}function rq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Dl(t,Br.ROW,i),o=me(a),l=ye("GridTemplate",i,o);return j.jsx(l,{...s,"data-testid":_n.row,children:j.jsx(Ml,{...r,childrenLayoutGridSchemaId:n})})}function nq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:k,LayoutMultiSchemaField:v}=p,g=ZL(c,t),{name:b,UIComponent:w,uiProps:C}=g,{schema:h,isRequired:y,isReadonly:S,optionsInfo:A,fieldPathId:_}=YL(c,b,r,l,n),x=fa(_);if(g.rendered)return g.rendered;if(h){const E=A!=null&&A.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:R}=GL(b,C,i,S,u);return j.jsx(E,{"data-testid":A!=null&&A.hasDiscriminator?_n.layoutMultiSchemaField:_n.field,...m,name:b,required:y,readonly:R,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:x,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:c})}return w?j.jsx(w,{"data-testid":_n.uiComponent,...m,name:b,required:y,formData:l,readOnly:!!S||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...C}):null}function Dd(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&Oc in i&&Ue(i[Oc])&&(r=i[Oc]),Ue(r)){if(Br.ROW in r)return j.jsx(rq,{...e,layoutGridSchema:r});if(Br.COLUMN in r)return j.jsx(eq,{...e,layoutGridSchema:r});if(Br.COLUMNS in r)return j.jsx(tq,{...e,layoutGridSchema:r});if(Br.CONDITION in r)return j.jsx(QL,{...e,layoutGridSchema:r})}return j.jsx(nq,{...e,gridSchema:r})}Dd.TEST_IDS=_n;function iq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=me(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const m=ye("TitleFieldTemplate",s,l);return j.jsx(m,{id:Pl(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function _c(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[$e,t]);return ae(s,li,ae(s,Kt,i))===r})}function yy(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;qe(e,Ae)?s={...e,[Ae]:n}:qe(e,Le)&&(s={...e,[Le]:n});const o=di(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function aq(e){var q;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,options:l,onFocus:u,registry:c,uiSchema:f,schema:m,autofocus:d,readonly:p,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:C}=c,[h,y]=V.useState(yy(m,l,w,f,a)),S=ae(n,nt),A=yr(m),_=ye("FieldErrorTemplate",c,l),x=ye("FieldTemplate",c,l),E=fr(m),O=fr(l),R=f?fr(f):"",T=a?fr(a):"";V.useEffect(()=>{y(yy(m,l,w,f,a))},[E,O,w,R,T]);const{widget:D=A?"radio":"select",title:L="",placeholder:J="",optionsSchemaSelector:Y=A,hideError:X,...P}=me(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const F=ae(a,Y);let B=ae((q=h[0])==null?void 0:q.schema,[$e,Y],{});const I=_c(h,Y,F);B=B!=null&&B.type?B:{...B,type:(I==null?void 0:I.type)||r};const N=Kr(B,D,b),M=X===void 0?g:!!X,U=ae(v,[Nt],[]),$=Ja(v,[Nt]),H=w.getDisplayLabel(m,f,C),G=W=>{if(i||p)return;const K=_c(h,Y,W),ie=_c(h,Y,F);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&&lt(re,Y,W),o(re,n.path,void 0,S)},Z={enumOptions:h,...P},z=!M&&U.length>0?j.jsx(_,{fieldPathId:n,schema:m,errors:U,registry:c}):void 0;return j.jsx(x,{fieldPathId:n,id:S,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,required:k,readonly:!!p,registry:c,displayLabel:H,errors:z,onChange:o,onKeyRename:Fo,onKeyRenameBlur:Fo,onRemoveProperty:Fo,children:j.jsx(N,{id:S,name:t,schema:m,label:(L||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,autofocus:d,readonly:p,required:k,registry:c,multiple:!1,rawErrors:U,hideError:M,hideLabel:!H,errorSchema:$,placeholder:J,onChange:G,onBlur:s,onFocus:u,value:F,options:Z,htmlName:n.name})})}function vy(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:k}=f,v=fr(a??null),g=V.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=V.useState(()=>{const re=yr(d);return k.getClosestMatchingOption(a,g,0,re)}),C=V.useRef(!1),h=V.useRef(a),y=V.useRef(n.$id);V.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!ze(a,re)&&n.$id===ue){if(C.current){C.current=!1;return}const ge=yr(d),we=k.getClosestMatchingOption(a,g,b,ge);we!==b&&w(we)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ge=ue>=0?g[ue]:void 0,we=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ge,we,a);ge&&(ke=k.getDefaultFormState(ge,ke,"excludeObjectChildren")),w(ue),C.current=!0,o(ke,n.path,void 0,S)},[b,g,r,c,k,a,n,o,S]),{widgets:_,fields:x,translateString:E,globalUiOptions:O}=f,{SchemaField:R}=x,T=ye("MultiSchemaFieldTemplate",f,O),D=hs(f,d,m,p),L=ca(a),{widget:J="select",placeholder:Y,autofocus:X,autocomplete:P,title:F=d.title,...B}=me(p,O),I=Kr({type:"number"},J,_),N=ae(i,Nt,[]),M=Ja(i,[Nt]),U=k.getDisplayLabel(d,p,O),$=b>=0&&g[b]||null;let H;if($){const{required:re,type:ue}=d,ge={};re&&(ge.required=re),ue!==void 0&&!("type"in $)&&(ge.type=ue),H=Object.keys(ge).length>0?an(ge,$):$}let G=[];Ae in d&&p&&Ae in p?Array.isArray(p[Ae])?G=p[Ae]:console.warn(`uiSchema.oneOf is not an array for "${F||t}"`):Le in d&&p&&Le in p&&(Array.isArray(p[Le])?G=p[Le]:console.warn(`uiSchema.anyOf is not an array for "${F||t}"`));let Z=p;b>=0&&G.length>b&&(Z=G[b]);const z=F?_e.TitleOptionPrefix:_e.OptionPrefix,q=F?[F]:[],W=g.map((re,ue)=>{const{title:ge=re.title}=me(G[ue]);return{label:ge||E(z,q.concat(String(ue+1))),value:ue}}),K=!D||L?j.jsx(I,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:l,disabled:r||wt(W),multiple:!1,rawErrors:N,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:W,...B},registry:f,placeholder:Y,autocomplete:P,autofocus:X,label:F??t,hideLabel:!U,readonly:c}):void 0,ie=H&&H.type!=="null"&&j.jsx(R,{...e,schema:H,uiSchema:Z})||null;return j.jsx(T,{schema:d,registry:f,uiSchema:p,selector:K,optionSchemaField:ie})}function sq(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const oq=/\.([0-9]*0)*$/,lq=/[0.]0*$/;function uq(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=V.useState(a),{StringField:o}=t.fields,l=wb(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,p,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&oq.exec(b)?up(b.replace(lq,"")):up(b);r(w,p,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 m=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:p}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?di(d,p):void 0)?"select":"text",{widget:b=g}=me(p);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(c).replace(".",l))}return j.jsx(o,{...e,formData:m,onChange:f})}var Ao;function cq(e){if(!Ao){if(typeof document>"u")return;Ao=document.createElement("textarea")}var t=`&${e};`;Ao.innerHTML=t;var r=Ao.value;return r===t?void 0:r}var se=32,le=9,Dn=13,fe=10,Je=96,_t=126,vt=91,fn=94,Re=62,br=35,df=37,Oe=45,dr=61,Tt=92,xt=42,gt=95,rt=60,k1=64,jr=93,Wt=33,Ll=38,qt=58,mf=70,mi=102,al=104,si=119,Ki=116,pf=112,w1=115,fq=160,dq=12,mq=44,sl=59,ma=63,mr=46,yt=47,pi=39,hi=34,Mn=43,It=124,gi=123,Md=125,Er=40,Pr=41,pq=78,hq=110,gq=79,yq=111,x1=120,S1=88,hf=30,Te=48,je=57,xe=65,Ee=90,Xe=97,ut=122,ql=128,Sr=32,vq={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=vq;function bq(e){if(!ky(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]!==`
77
97
  `)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
78
98
  `&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
79
- `&&t++,Ch(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=UD(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt||s===Oe||s===mr);)n++;n<a&&e.charCodeAt(n)===qt&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var jD=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,RD={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"},ND={};function o1(e){if(!e)return ND;var t={};for(var r in e){var i=r.toLowerCase(),a=RD[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 FD=/(\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 _n(e){return e.indexOf("&")===-1?e:e.replace(jD,(t,r)=>{var i=xD(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 Sh=/(javascript|vbscript|data(?!:image)):/i;function rn(e){if(Sh.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Sh.test(t))return null}catch{return null}return e}var Mt={},Vt,Pt;for(Vt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="a";for(Mt[231]=Mt[199]="c",Mt[240]=Mt[208]="d",Vt=[200,201,202,203,233,232,234,235],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="e";for(Vt=[207,239,206,238,205,237,204,236],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="i";for(Mt[209]=Mt[241]="n",Vt=[248,216,339,338,213,245,212,244,211,243,210,242],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="o";for(Vt=[220,252,219,251,218,250,217,249],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="u";Mt[376]=Mt[255]=Mt[221]=Mt[253]="y";function yi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Xe&&n<=ut||n>=Te&&n<=je){r<0&&(r=a);continue}if(n>=xe&&n<=Ee){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Sr);continue}if(n===se||n===Oe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=Mt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Ch(e,t,r){return e.startsWith(t,r)}var Eh=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 gs(e){let t=e.toLowerCase();if(Eh.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Eh.has(t)):!1}var ii=1,Ah=2,$i=4,Oh=8,DD=16,wr=32,hn=64,MD=(()=>{var e=new Uint8Array(128),t;for(e[le]=ii,e[fe]=ii|Ah,e[CD]=ii,e[Dn]=ii|Ah,e[se]=ii,t=Wt;t<=yt;t++)e[t]=$i;for(t=qt;t<=n1;t++)e[t]=$i;for(t=vt;t<=Je;t++)e[t]=$i;for(t=gi;t<=_t;t++)e[t]=$i;for(t=Te;t<=je;t++)e[t]=DD;for(t=xe;t<=Ee;t++)e[t]=Oh;for(t=Xe;t<=ut;t++)e[t]=Oh;return e})(),LD=/[\p{P}\p{S}]/u,qD=new RegExp("\\p{Zs}","u"),Yn=[];function zD(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;Yn.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===Dn?(a<n&&Yn.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,Yn.push(`
80
- `),a=n+1):s===0&&(a<n&&Yn.push(e.slice(a,n)),Yn.push("�"),a=n+1)}return a<i&&Yn.push(e.slice(a)),Yn.join("")}function $D(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function UD(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function l1(e){if(!e)return!1;for(var t in e)return!0;return!1}function BD(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var VD=/^\n+/;function HD(e){for(var t=e.length;t>0&&(e[t-1]===`
81
- `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(VD,"")}
99
+ `&&t++,ky(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=Iq(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt||s===Oe||s===mr);)n++;n<a&&e.charCodeAt(n)===qt&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var kq=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,wq={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"},xq={};function C1(e){if(!e)return xq;var t={};for(var r in e){var i=r.toLowerCase(),a=wq[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 Sq=/(\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 Pn(e){return e.indexOf("&")===-1?e:e.replace(kq,(t,r)=>{var i=cq(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 by=/(javascript|vbscript|data(?!:image)):/i;function nn(e){if(by.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(by.test(t))return null}catch{return null}return e}var Mt={},Vt,Pt;for(Vt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="a";for(Mt[231]=Mt[199]="c",Mt[240]=Mt[208]="d",Vt=[200,201,202,203,233,232,234,235],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="e";for(Vt=[207,239,206,238,205,237,204,236],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="i";for(Mt[209]=Mt[241]="n",Vt=[248,216,339,338,213,245,212,244,211,243,210,242],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="o";for(Vt=[220,252,219,251,218,250,217,249],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="u";Mt[376]=Mt[255]=Mt[221]=Mt[253]="y";function yi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Xe&&n<=ut||n>=Te&&n<=je){r<0&&(r=a);continue}if(n>=xe&&n<=Ee){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Sr);continue}if(n===se||n===Oe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=Mt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function ky(e,t,r){return e.startsWith(t,r)}var wy=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 vs(e){let t=e.toLowerCase();if(wy.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),wy.has(t)):!1}var ii=1,xy=2,Ui=4,Sy=8,Cq=16,xr=32,yn=64,Eq=(()=>{var e=new Uint8Array(128),t;for(e[le]=ii,e[fe]=ii|xy,e[dq]=ii,e[Dn]=ii|xy,e[se]=ii,t=Wt;t<=yt;t++)e[t]=Ui;for(t=qt;t<=k1;t++)e[t]=Ui;for(t=vt;t<=Je;t++)e[t]=Ui;for(t=gi;t<=_t;t++)e[t]=Ui;for(t=Te;t<=je;t++)e[t]=Cq;for(t=xe;t<=Ee;t++)e[t]=Sy;for(t=Xe;t<=ut;t++)e[t]=Sy;return e})(),Aq=/[\p{P}\p{S}]/u,Oq=new RegExp("\\p{Zs}","u"),Qn=[];function _q(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;Qn.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===Dn?(a<n&&Qn.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,Qn.push(`
100
+ `),a=n+1):s===0&&(a<n&&Qn.push(e.slice(a,n)),Qn.push("�"),a=n+1)}return a<i&&Qn.push(e.slice(a)),Qn.join("")}function Pq(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function Iq(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function E1(e){if(!e)return!1;for(var t in e)return!0;return!1}function Tq(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var jq=/^\n+/;function Rq(e){for(var t=e.length;t>0&&(e[t-1]===`
101
+ `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(jq,"")}
82
102
 
83
- `}function Ui(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(Ui):[]}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(Ui)}]:[e]}function u1(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()}>`,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&&u1(e[t].children)}}function KD(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 s=a[n];if(s.type===ne.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.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:o,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 WD(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 _h(e,t,r,i){var a;return t===void 0?a=WD(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Ph(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 s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:_h(t,a,e.attrs," />")}}var o=_h(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:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:o+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var c="",f=0;f<l.length;f++){var m=l[f];if(m.type!==ne.text)return{kind:"sandwich",open:o,close:n};c+=m.text}return{kind:"literal",literal:o+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function GD(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 u=i[l];typeof u=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+u:o.push(u)}return o}function Li(e){return e==null||e.tagfilter!==!1}function JD(e,t,r,i){var a=t(e,r,i);return a===null?null:XD(a)}function YD(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 hf(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 XD(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===hi||i===ff||i===rt||i===Re||i===vt||i===Tt||i===jr||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===ff&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Te&&n<=je||n>=xe&&n<=df||n>=Xe&&n<=mi)&&(s>=Te&&s<=je||s>=xe&&s<=df||s>=Xe&&s<=mi)){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 ZD(...e){return e.filter(Boolean).join(" ")}var QD=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),nl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Ih(e){return QD.has(e.toLowerCase())}function eM(e){return nl.lastIndex=0,nl.test(e)}function Th(e){return nl.lastIndex=0,e.replace(nl,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function jd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,yi)}else a=yi;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||rn,slugify:a,tagfilter:Li(r)}}var tM=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,rM=/^<[A-Z]/,gf=["script","pre","style","textarea"],ys=new Set(gf),nM=/<(?:pre|script|style|textarea)\b/i,jh=/<(?:pre|script|style|textarea)\b/iy,Bu=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Rh=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,c1=new Uint8Array(128);(()=>{for(var e=[Je,xt,gt,_t,dr,vt,Wt,rt,Tt,jl,fe,tl,si,mi],t=0;t<e.length;t++)c1[e[t]]=1})();var Nh=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function iM(e){return ys.has(e)}function aM(e){return nM.test(e)}function f1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===It&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===It&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===se||e.charCodeAt(s)===le);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===qt&&i++,i>=a||e.charCodeAt(i)!==Oe)return!1;for(;i<a&&e.charCodeAt(i)===Oe;)i++;for(i<a&&e.charCodeAt(i)===qt&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===It)i++;else return!1}return n>0}var sM=/[\u0000-\u001F\u007F]/g,oM={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},lM=/&#(x[0-9a-f]+|[0-9]+);?/gi;function uM(e){return e.indexOf("&#")===-1?e:e.replace(lM,(t,r)=>{var i=r.charCodeAt(0)===a1||r.charCodeAt(0)===s1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function cM(e,t,r){if(r&&t.charCodeAt(0)===gi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===PD||i===_D)&&(a===OD||a===AD))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(oM[n]===1){var s=uM(_n(t));if(rn(s)===null)return!0;var o=s.replace(sM,"");return o!==s&&rn(o)===null}return!1}function yf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Fh(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 u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function $r(e,t){if(e.charCodeAt(t)!==rt)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===yt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Xe&&s<=ut||s>=xe&&s<=Ee))return null;for(;r<i&&(e.charCodeAt(r)>=Xe&&e.charCodeAt(r)<=ut||e.charCodeAt(r)>=xe&&e.charCodeAt(r)<=Ee||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=je||e.charCodeAt(r)===Oe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=xe&&l<=Ee||o.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le||e.charCodeAt(r)===fe);)r++;let f=e.slice(c,r);if(r===c&&r<i){var m=e.charCodeAt(r);if(m!==Re&&m!==yt)return null}let d=r,p={},k=!1;for(var v=null;r<i;){let j=e.charCodeAt(r);if(j===Re){let T=v?Fh(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:p,end:r+1,tag:o}}if(j===se||j===le||j===fe){r++;continue}if(j===yt&&r+1<i&&e.charCodeAt(r+1)===Re){k=r>d&&e.charCodeAt(r-1)===se;let T=v?Fh(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:p,end:r+2,tag:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Xe&&b<=ut||b>=xe&&b<=Ee||b===gt||b===qt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Xe&&w<=ut||w>=xe&&w<=Ee||w>=Te&&w<=je||w===gt||w===mr||w===qt||w===Oe)r++;else break}for(var C=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,S;if(e.charCodeAt(r)===dr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var A=e.charCodeAt(r);if(A===hi||A===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==A;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var x=e.charCodeAt(r);if(x!==se&&x!==le&&x!==fe&&x!==Re&&x!==yt)return null}S=r}else if(A===gi){var E=1,_=r;for(r++;r<i&&E>0;){var w=e.charCodeAt(r);w===gi?E++:w===Td&&E--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Re||O===fe||O===hi||O===pi||O===dr||O===rt||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=h;cM(C,y,u)?(v===null&&(v=[]),v.push(g,S)):p[C]=y}return null}function rr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=$r(e,t);n?(n.q&&(r+=e.slice(i,t)+yf(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function fM(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(`
84
- `,i),l=o<0?a:o,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===se)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=o<0?a:o+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===_t){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var k=!0;if(m===Je){for(var v=p;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var C=e.charCodeAt(b);if(C===se)w++,b++;else if(C===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===m){for(var h=0;b<a&&e.charCodeAt(b)===m;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===se||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,s=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Re;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===se)S++,y++;else if(e.charCodeAt(y)===le)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===cn)){var A=d1(e,y,t);if(A){i=A,n=!1;continue}}var _=e.charCodeAt(u);if(_===br&&c<4)n=!1;else if(c<4&&(_===Oe||_===xt||_===gt)){for(var x=u,E=0;x<l;){var O=e.charCodeAt(x);if(O===_)E++;else if(O!==se&&O!==le)break;x++}n=!(E>=3&&x>=l)}else n=!0;i=o<0?a:o+1}return s}function d1(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 s=e.charCodeAt(n);if(s===jr){n++;break}if(s===vt)return null;s===Tt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==jr)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=Lo(o);if(!l||n>=i||e.charCodeAt(n)!==qt)return null;n++;let u=!1;for(;n<i;){let j=e.charCodeAt(n);if(j===se||j===le)n++;else if(j===fe&&!u)u=!0,n++;else break}if(a){let j=e.indexOf(`
85
- `,n),T=j<0?i:j,F=e.slice(n,T).trim();return r[l]={target:F,title:void 0},j<0?i:j+1}var c;if(n<i&&e.charCodeAt(n)===rt){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Re&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Tt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Re)return null;c=e.slice(f,n),n++;for(var m=e.indexOf(`
103
+ `}function Bi(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(Bi):[]}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(Bi)}]:[e]}function A1(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()}>`,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&&A1(e[t].children)}}function Nq(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 s=a[n];if(s.type===ne.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.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:o,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 Fq(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 Cy(e,t,r,i){var a;return t===void 0?a=Fq(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Ey(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 s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:Cy(t,a,e.attrs," />")}}var o=Cy(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:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:o+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var c="",f=0;f<l.length;f++){var m=l[f];if(m.type!==ne.text)return{kind:"sandwich",open:o,close:n};c+=m.text}return{kind:"literal",literal:o+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function Dq(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 u=i[l];typeof u=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+u:o.push(u)}return o}function Li(e){return e==null||e.tagfilter!==!1}function Mq(e,t,r,i){var a=t(e,r,i);return a===null?null:qq(a)}function Lq(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 gf(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 qq(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===hi||i===df||i===rt||i===Re||i===vt||i===Tt||i===jr||i===fn||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===df&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Te&&n<=je||n>=xe&&n<=mf||n>=Xe&&n<=mi)&&(s>=Te&&s<=je||s>=xe&&s<=mf||s>=Xe&&s<=mi)){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 zq(...e){return e.filter(Boolean).join(" ")}var $q=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),ol=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Ay(e){return $q.has(e.toLowerCase())}function Uq(e){return ol.lastIndex=0,ol.test(e)}function Oy(e){return ol.lastIndex=0,e.replace(ol,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function Ld(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,yi)}else a=yi;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||nn,slugify:a,tagfilter:Li(r)}}var Bq=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Vq=/^<[A-Z]/,yf=["script","pre","style","textarea"],bs=new Set(yf),Hq=/<(?:pre|script|style|textarea)\b/i,_y=/<(?:pre|script|style|textarea)\b/iy,Pc=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Py=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,O1=new Uint8Array(128);(()=>{for(var e=[Je,xt,gt,_t,dr,vt,Wt,rt,Tt,Ll,fe,al,si,mi],t=0;t<e.length;t++)O1[e[t]]=1})();var Iy=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Kq(e){return bs.has(e)}function Wq(e){return Hq.test(e)}function _1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===It&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===It&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===se||e.charCodeAt(s)===le);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===qt&&i++,i>=a||e.charCodeAt(i)!==Oe)return!1;for(;i<a&&e.charCodeAt(i)===Oe;)i++;for(i<a&&e.charCodeAt(i)===qt&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===It)i++;else return!1}return n>0}var Gq=/[\u0000-\u001F\u007F]/g,Jq={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},Yq=/&#(x[0-9a-f]+|[0-9]+);?/gi;function Xq(e){return e.indexOf("&#")===-1?e:e.replace(Yq,(t,r)=>{var i=r.charCodeAt(0)===x1||r.charCodeAt(0)===S1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function Zq(e,t,r){if(r&&t.charCodeAt(0)===gi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===yq||i===gq)&&(a===hq||a===pq))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(Jq[n]===1){var s=Xq(Pn(t));if(nn(s)===null)return!0;var o=s.replace(Gq,"");return o!==s&&nn(o)===null}return!1}function vf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Ty(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 u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function $r(e,t){if(e.charCodeAt(t)!==rt)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===yt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Xe&&s<=ut||s>=xe&&s<=Ee))return null;for(;r<i&&(e.charCodeAt(r)>=Xe&&e.charCodeAt(r)<=ut||e.charCodeAt(r)>=xe&&e.charCodeAt(r)<=Ee||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=je||e.charCodeAt(r)===Oe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=xe&&l<=Ee||o.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le||e.charCodeAt(r)===fe);)r++;let f=e.slice(c,r);if(r===c&&r<i){var m=e.charCodeAt(r);if(m!==Re&&m!==yt)return null}let d=r,p={},k=!1;for(var v=null;r<i;){let R=e.charCodeAt(r);if(R===Re){let T=v?Ty(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:p,end:r+1,tag:o}}if(R===se||R===le||R===fe){r++;continue}if(R===yt&&r+1<i&&e.charCodeAt(r+1)===Re){k=r>d&&e.charCodeAt(r-1)===se;let T=v?Ty(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:p,end:r+2,tag:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Xe&&b<=ut||b>=xe&&b<=Ee||b===gt||b===qt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Xe&&w<=ut||w>=xe&&w<=Ee||w>=Te&&w<=je||w===gt||w===mr||w===qt||w===Oe)r++;else break}for(var C=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,S;if(e.charCodeAt(r)===dr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var A=e.charCodeAt(r);if(A===hi||A===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==A;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var x=e.charCodeAt(r);if(x!==se&&x!==le&&x!==fe&&x!==Re&&x!==yt)return null}S=r}else if(A===gi){var E=1,_=r;for(r++;r<i&&E>0;){var w=e.charCodeAt(r);w===gi?E++:w===Md&&E--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Re||O===fe||O===hi||O===pi||O===dr||O===rt||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=h;Zq(C,y,u)?(v===null&&(v=[]),v.push(g,S)):p[C]=y}return null}function rr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=$r(e,t);n?(n.q&&(r+=e.slice(i,t)+vf(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function Qq(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,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===se)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=o<0?a:o+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===_t){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var k=!0;if(m===Je){for(var v=p;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var C=e.charCodeAt(b);if(C===se)w++,b++;else if(C===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===m){for(var h=0;b<a&&e.charCodeAt(b)===m;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===se||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,s=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Re;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===se)S++,y++;else if(e.charCodeAt(y)===le)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===fn)){var A=P1(e,y,t);if(A){i=A,n=!1;continue}}var _=e.charCodeAt(u);if(_===br&&c<4)n=!1;else if(c<4&&(_===Oe||_===xt||_===gt)){for(var x=u,E=0;x<l;){var O=e.charCodeAt(x);if(O===_)E++;else if(O!==se&&O!==le)break;x++}n=!(E>=3&&x>=l)}else n=!0;i=o<0?a:o+1}return s}function P1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===fn,n=t+1;for(;n<i;){var s=e.charCodeAt(n);if(s===jr){n++;break}if(s===vt)return null;s===Tt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==jr)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=qo(o);if(!l||n>=i||e.charCodeAt(n)!==qt)return null;n++;let u=!1;for(;n<i;){let R=e.charCodeAt(n);if(R===se||R===le)n++;else if(R===fe&&!u)u=!0,n++;else break}if(a){let R=e.indexOf(`
105
+ `,n),T=R<0?i:R,D=e.slice(n,T).trim();return r[l]={target:D,title:void 0},R<0?i:R+1}var c;if(n<i&&e.charCodeAt(n)===rt){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Re&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Tt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Re)return null;c=e.slice(f,n),n++;for(var m=e.indexOf(`
86
106
  `,n),d=m<0?i:m,p=n;p<d&&(e.charCodeAt(p)===se||e.charCodeAt(p)===le);)p++;if(p<d){if(p===n)return null;var k=e.charCodeAt(p);if(k!==hi&&k!==pi&&k!==Er)return null}}else{for(var f=n,v=0;n<i;){var s=e.charCodeAt(n);if(s===Er)v++;else if(s===Pr){if(v===0)break;v--}else{if(s===se||s===le||s===fe)break;s===Tt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
87
- `,n),b=g<0?i:g,w,C=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var S=e.charCodeAt(y);if(S===hi||S===pi||S===Er){for(var A=S===Er?41:S,_=y+1,x=_;_<i;){var E=e.charCodeAt(_);if(E===A){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(x,_),C=!0,h=O<i?O+1:i);break}if(E===Tt&&_+1<i){_+=2;continue}if(E===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!C&&y===n)return null}}if(C)return r[l]||(r[l]={target:_n(Wi(c)),title:w===void 0?w:_n(Wi(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:_n(Wi(c)),title:w}),g<0?i:g+1)}var Xt=new Uint8Array(MD);for(Xt[br]|=wr,Xt[Re]|=wr,Xt[Oe]|=wr|hn,Xt[Mn]|=wr,Xt[xt]|=wr|hn,Xt[gt]|=wr|hn,Xt[Je]|=wr|hn,Xt[_t]|=wr|hn,Xt[rt]|=wr|hn,Xt[vt]|=hn,Xt[Wt]|=hn,Xt[It]|=wr,Ls=Te;Ls<=je;Ls++)Xt[Ls]|=wr;var Ls;function Dh(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Tt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===jr)return!0}return!1}function Lo(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===se){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=xe&&n<=Ee){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 Rd(e){return e<Rl?Xt[e]:e===SD?ii:0}function Wi(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var vf=null,bf=-1,qo=-1;function Ye(e,t){if(t>=bf&&t<=qo&&e===vf)return qo;var r=e.indexOf(`
88
- `,t),i=r<0?e.length:r;return vf=e,bf=t,qo=i,i}function De(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function ts(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Mh(e,t){let r=De(e,t);for(;r<e.length;){let i=Ye(e,r);if(Ht(e,r,i))return r;r=De(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 Ge=0,Ke=0;function Ct(e,t,r){for(Ge=0,Ke=0;t+Ke<r;){let i=e.charCodeAt(t+Ke);if(i===le)Ge+=4-Ge%4;else if(i===se)Ge++;else break;Ke++}}function Ht(e,t,r){return ts(e,t,r)>=r}function dM(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 mM(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==br)return null;let s=Ln(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=ts(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===se;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===br;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===se)for(;o>n&&e.charCodeAt(o-1)===se;)o--;else o=l;let u=e.slice(n,o),c=Gi(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:De(e,a)}}function pM(e,t,r){var i=e.charCodeAt(t);if(i!==dr&&i!==Oe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;return a>=r}function Pn(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge>3)return null;let i=t+Ke,a=e.charCodeAt(i);if(a!==Oe&&a!==xt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==se&&s!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:De(e,r)}}var Lh=0,qh=0,zh="";function hM(e,t,r){let i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;let a=Ge,n=t+Ke,s=e.charCodeAt(n);if(s!==Je&&s!==_t)return null;let o=Ln(e,n,i,s);if(o<3)return null;n+=o;let l=ts(e,n,i),u=i;if(s===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===se||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",m="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),m=c.slice(d+1).trim()),f=Wi(f);var p;if(m){Nh.lastIndex=0;for(var k;(k=Nh.exec(m))!=null;)p||(p={}),p[k[1]]=k[2]===void 0?k[3]:k[2]}let v=De(e,i),g=e.length,b=e.length;var w;s===Lh&&o===qh?w=zh:(w=String.fromCharCode(s).repeat(o),Lh=s,qh=o,zh=w);for(var C=v;C<e.length;){var h=e.indexOf(w,C);if(h===-1)break;for(var y=h,S=0;y>0&&S<4&&e.charCodeAt(y-1)===se;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var A=h+o;A<e.length&&e.charCodeAt(A)===s;)A++;var _=Ye(e,A);if(Ht(e,A,_)){g=y,b=De(e,_);break}}C=h+1}var x;if(a===0)x=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{x="";for(var E=v;E<g;){var O=Ye(e,E);Ct(e,E,O);var j=Math.min(Ke,a);x+=`${e.slice(E+j,O)}
89
- `,E=De(e,O)}x.length>0&&x.charCodeAt(x.length-1)===fe&&(x=x.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:x,infoString:m||void 0,attrs:p},end:b}}function $h(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="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function gM(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge<4)return null;let i="",a=t;for(;a<e.length;){let m=Ye(e,a);if(Ct(e,a,m),Ht(e,a,m)){for(var n=`${$h(e,a,m)}
90
- `,s=De(e,m);s<e.length;){var o=Ye(e,s);if(Ht(e,s,o)){n+=`${$h(e,s,o)}
107
+ `,n),b=g<0?i:g,w,C=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var S=e.charCodeAt(y);if(S===hi||S===pi||S===Er){for(var A=S===Er?41:S,_=y+1,x=_;_<i;){var E=e.charCodeAt(_);if(E===A){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(x,_),C=!0,h=O<i?O+1:i);break}if(E===Tt&&_+1<i){_+=2;continue}if(E===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!C&&y===n)return null}}if(C)return r[l]||(r[l]={target:Pn(Wi(c)),title:w===void 0?w:Pn(Wi(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Pn(Wi(c)),title:w}),g<0?i:g+1)}var Xt=new Uint8Array(Eq);for(Xt[br]|=xr,Xt[Re]|=xr,Xt[Oe]|=xr|yn,Xt[Mn]|=xr,Xt[xt]|=xr|yn,Xt[gt]|=xr|yn,Xt[Je]|=xr|yn,Xt[_t]|=xr|yn,Xt[rt]|=xr|yn,Xt[vt]|=yn,Xt[Wt]|=yn,Xt[It]|=xr,Oo=Te;Oo<=je;Oo++)Xt[Oo]|=xr;var Oo;function jy(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Tt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===jr)return!0}return!1}function qo(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===se){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=xe&&n<=Ee){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 qd(e){return e<ql?Xt[e]:e===fq?ii:0}function Wi(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var bf=null,kf=-1,zo=-1;function Ye(e,t){if(t>=kf&&t<=zo&&e===bf)return zo;var r=e.indexOf(`
108
+ `,t),i=r<0?e.length:r;return bf=e,kf=t,zo=i,i}function De(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function rs(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Ry(e,t){let r=De(e,t);for(;r<e.length;){let i=Ye(e,r);if(Ht(e,r,i))return r;r=De(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 Ge=0,Ke=0;function Ct(e,t,r){for(Ge=0,Ke=0;t+Ke<r;){let i=e.charCodeAt(t+Ke);if(i===le)Ge+=4-Ge%4;else if(i===se)Ge++;else break;Ke++}}function Ht(e,t,r){return rs(e,t,r)>=r}function ez(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 tz(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==br)return null;let s=Ln(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=rs(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===se;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===br;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===se)for(;o>n&&e.charCodeAt(o-1)===se;)o--;else o=l;let u=e.slice(n,o),c=Gi(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:De(e,a)}}function rz(e,t,r){var i=e.charCodeAt(t);if(i!==dr&&i!==Oe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;return a>=r}function In(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge>3)return null;let i=t+Ke,a=e.charCodeAt(i);if(a!==Oe&&a!==xt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==se&&s!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:De(e,r)}}var Ny=0,Fy=0,Dy="";function nz(e,t,r){let i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;let a=Ge,n=t+Ke,s=e.charCodeAt(n);if(s!==Je&&s!==_t)return null;let o=Ln(e,n,i,s);if(o<3)return null;n+=o;let l=rs(e,n,i),u=i;if(s===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===se||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",m="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),m=c.slice(d+1).trim()),f=Wi(f);var p;if(m){Iy.lastIndex=0;for(var k;(k=Iy.exec(m))!=null;)p||(p={}),p[k[1]]=k[2]===void 0?k[3]:k[2]}let v=De(e,i),g=e.length,b=e.length;var w;s===Ny&&o===Fy?w=Dy:(w=String.fromCharCode(s).repeat(o),Ny=s,Fy=o,Dy=w);for(var C=v;C<e.length;){var h=e.indexOf(w,C);if(h===-1)break;for(var y=h,S=0;y>0&&S<4&&e.charCodeAt(y-1)===se;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var A=h+o;A<e.length&&e.charCodeAt(A)===s;)A++;var _=Ye(e,A);if(Ht(e,A,_)){g=y,b=De(e,_);break}}C=h+1}var x;if(a===0)x=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{x="";for(var E=v;E<g;){var O=Ye(e,E);Ct(e,E,O);var R=Math.min(Ke,a);x+=`${e.slice(E+R,O)}
109
+ `,E=De(e,O)}x.length>0&&x.charCodeAt(x.length-1)===fe&&(x=x.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:x,infoString:m||void 0,attrs:p},end:b}}function My(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="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function iz(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge<4)return null;let i="",a=t;for(;a<e.length;){let m=Ye(e,a);if(Ct(e,a,m),Ht(e,a,m)){for(var n=`${My(e,a,m)}
110
+ `,s=De(e,m);s<e.length;){var o=Ye(e,s);if(Ht(e,s,o)){n+=`${My(e,s,o)}
91
111
  `,s=De(e,o);continue}Ct(e,s,o),Ge>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Ge<4)break;let d=0,p=0;var l=0;for(let k=a;k<m&&p<4;k++){if(e.charCodeAt(k)===le){var u=4-p%4;p+u>4&&(l=p+u-4),p+=u}else p++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,m),i+=`${c}
92
- `,a=De(e,m)}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 yM(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==Re)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let L=Ye(e,o);Ct(e,o,L);let J=o+Ke;if(e.charCodeAt(J)===Re){let Y=J+1;var m=Ge+1,d=!1;if(Y<L){var p=e.charCodeAt(Y);p===se?(Y++,m++,d=!0):p===le&&(d=!0)}for(var k="",v=!1,g=Y;g<L;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=m;if(d&&Y<L&&e.charCodeAt(Y)===le){for(var w=4-b%4,C=0;C<w-1;C++)k+=" ";b+=w,Y++}for(var h=Y;h<L;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,S=0;S<y;S++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,L);if(!(s||l)){let Q=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(Q){l=Q[1].toUpperCase(),o=De(e,L);continue}}s+=`${k}
93
- `;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=A.length>0,o=De(e,L)}else if(s&&!Ht(e,o,L)&&c){if(Ge<4){var _=o+Ke,x=_<L?e.charCodeAt(_):0;if(x===br||x===Re||x===Je||x===_t||x===rt||(x===Oe||x===xt||x===gt)&&Pn(e,o)||(x===Oe||x===xt||x===Mn)&&_+1<L&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(x>=Te&&x<=je){for(var E=_;E<L&&e.charCodeAt(E)>=Te&&e.charCodeAt(E)<=je;)E++;if(E<L&&(e.charCodeAt(E)===mr||e.charCodeAt(E)===Pr))break}}if(f)break;s+=`${e.slice(o,L)}
94
- `,u=!0,o=De(e,L)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:j}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Ht(e,o,e.length);let F=In(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=j,{node:{type:ne.blockQuote,children:F,alert:l||void 0},end:o}}function m1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function gn(e,t,r){if(Ct(e,t,r),Ge>3)return null;var i=t+Ke;if(i>=r)return null;var a=e.charCodeAt(i),n=Ge,s=i,o=i;if(a===Oe||a===xt||a===Mn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Te&&a<=je){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Te||l>je)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===mr||u===Pr){if(s=o+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var c=s,f=m1(e,t,s),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);){if(e.charCodeAt(d)===le){var k=4-p%4;p+=k}else p++;d++,m++}var v=d>=r,g=p-f;return v||g>4?(p=f+1,d=c+1,m=1):m===0&&(p=f+1,d=c,m=1),{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:v}}var Bi=0;function Uh(e,t,r,i){var a=0,n=t;for(Bi=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){Bi=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function Bh(e,t,r,i){var a=Ye(e,t),n=gn(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,m=!1;if(!n.isEmpty){for(var d=!1,p=n.contentStart;p<a;p++)if(e.charCodeAt(p)===le){d=!0;break}if(d){var k="",v=m1(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 C=4-v%4,h=0;h<C;h++)k+=" ";v+=C}else k+=e[w],v++;u=`${k}
112
+ `,a=De(e,m)}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 az(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==Re)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let L=Ye(e,o);Ct(e,o,L);let J=o+Ke;if(e.charCodeAt(J)===Re){let Y=J+1;var m=Ge+1,d=!1;if(Y<L){var p=e.charCodeAt(Y);p===se?(Y++,m++,d=!0):p===le&&(d=!0)}for(var k="",v=!1,g=Y;g<L;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=m;if(d&&Y<L&&e.charCodeAt(Y)===le){for(var w=4-b%4,C=0;C<w-1;C++)k+=" ";b+=w,Y++}for(var h=Y;h<L;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,S=0;S<y;S++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,L);if(!(s||l)){let X=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(X){l=X[1].toUpperCase(),o=De(e,L);continue}}s+=`${k}
113
+ `;var A=k.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=A.length>0,o=De(e,L)}else if(s&&!Ht(e,o,L)&&c){if(Ge<4){var _=o+Ke,x=_<L?e.charCodeAt(_):0;if(x===br||x===Re||x===Je||x===_t||x===rt||(x===Oe||x===xt||x===gt)&&In(e,o)||(x===Oe||x===xt||x===Mn)&&_+1<L&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(x>=Te&&x<=je){for(var E=_;E<L&&e.charCodeAt(E)>=Te&&e.charCodeAt(E)<=je;)E++;if(E<L&&(e.charCodeAt(E)===mr||e.charCodeAt(E)===Pr))break}}if(f)break;s+=`${e.slice(o,L)}
114
+ `,u=!0,o=De(e,L)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:R}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Ht(e,o,e.length);let D=Tn(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=R,{node:{type:ne.blockQuote,children:D,alert:l||void 0},end:o}}function I1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function vn(e,t,r){if(Ct(e,t,r),Ge>3)return null;var i=t+Ke;if(i>=r)return null;var a=e.charCodeAt(i),n=Ge,s=i,o=i;if(a===Oe||a===xt||a===Mn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Te&&a<=je){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Te||l>je)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===mr||u===Pr){if(s=o+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var c=s,f=I1(e,t,s),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);){if(e.charCodeAt(d)===le){var k=4-p%4;p+=k}else p++;d++,m++}var v=d>=r,g=p-f;return v||g>4?(p=f+1,d=c+1,m=1):m===0&&(p=f+1,d=c,m=1),{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:v}}var Vi=0;function Ly(e,t,r,i){var a=0,n=t;for(Vi=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){Vi=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function qy(e,t,r,i){var a=Ye(e,t),n=vn(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,m=!1;if(!n.isEmpty){for(var d=!1,p=n.contentStart;p<a;p++)if(e.charCodeAt(p)===le){d=!0;break}if(d){var k="",v=I1(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 C=4-v%4,h=0;h<C;h++)k+=" ";v+=C}else k+=e[w],v++;u=`${k}
95
115
  `}else u=`${e.slice(n.contentStart,a)}
96
- `}for(o=De(e,a);o<e.length;){var y=Ye(e,o);Ct(e,o,y);var S=e.charCodeAt(o+Ke);if(Ge<l&&(S===Oe||S===xt||S===gt)&&Ge<=3&&Pn(e,o))break;var A=gn(e,o,y);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=A.contentCol,c=A.isEmpty,f=!1,u=A.isEmpty?"":`${e.slice(A.contentStart,y)}
97
- `,o=De(e,y);continue}if(Ht(e,o,y)){var _=Uh(e,o,y,l);if(Bi>0||_<y){for(var x="",E=0;E<Bi;E++)x+=" ";u+=`${x+e.slice(_,y)}
116
+ `}for(o=De(e,a);o<e.length;){var y=Ye(e,o);Ct(e,o,y);var S=e.charCodeAt(o+Ke);if(Ge<l&&(S===Oe||S===xt||S===gt)&&Ge<=3&&In(e,o))break;var A=vn(e,o,y);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=A.contentCol,c=A.isEmpty,f=!1,u=A.isEmpty?"":`${e.slice(A.contentStart,y)}
117
+ `,o=De(e,y);continue}if(Ht(e,o,y)){var _=Ly(e,o,y,l);if(Vi>0||_<y){for(var x="",E=0;E<Vi;E++)x+=" ";u+=`${x+e.slice(_,y)}
98
118
  `}else u+=`
99
- `;o=De(e,y);for(var O=!1,j=0;j<u.length;j++){var T=u.charCodeAt(j);if(T!==fe&&T!==Dn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var F=Ye(e,o),L=gn(e,o,F);if(!L||L.ordered!==n.ordered||L.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Ye(e,o);Ct(e,o,J);var Y=e.charCodeAt(o+Ke);if((Y===Oe||Y===xt||Y===gt)&&Ge<=3&&Pn(e,o))break;var Q=gn(e,o,J);if(Q&&Q.ordered===n.ordered&&Q.marker===n.marker&&Q.markerCol<l){f=!0;continue}if(!Ht(e,o,J)&&Ge<l)break}continue}if(Ge>=l){var P=Uh(e,o,y,l);if(Bi>0){for(var D="",B=l,I=0;I<Bi;I++)D+=" ",B++;for(var R=P;R<y;R++)if(e.charCodeAt(R)===le){for(var M=4-B%4,U=0;U<M;U++)D+=" ";B+=M}else D+=e[R],B++;u+=`${D}
119
+ `;o=De(e,y);for(var O=!1,R=0;R<u.length;R++){var T=u.charCodeAt(R);if(T!==fe&&T!==Dn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var D=Ye(e,o),L=vn(e,o,D);if(!L||L.ordered!==n.ordered||L.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Ye(e,o);Ct(e,o,J);var Y=e.charCodeAt(o+Ke);if((Y===Oe||Y===xt||Y===gt)&&Ge<=3&&In(e,o))break;var X=vn(e,o,J);if(X&&X.ordered===n.ordered&&X.marker===n.marker&&X.markerCol<l){f=!0;continue}if(!Ht(e,o,J)&&Ge<l)break}continue}if(Ge>=l){var P=Ly(e,o,y,l);if(Vi>0){for(var F="",B=l,I=0;I<Vi;I++)F+=" ",B++;for(var N=P;N<y;N++)if(e.charCodeAt(N)===le){for(var M=4-B%4,U=0;U<M;U++)F+=" ";B+=M}else F+=e[N],B++;u+=`${F}
100
120
  `}else u+=`${e.slice(P,y)}
101
- `;o=De(e,y);continue}for(var $=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==Dn&&G!==se&&G!==le){$=!0;break}}if(!f&&$&&!c){var X=o+Ke,z=e.charCodeAt(X),q=z===br||z===Re||z===rt||z===Je||z===_t||(z===Oe||z===xt||z===gt||z===Mn)&&(Pn(e,o)!=null||gn(e,o,y)!=null)||z>=Te&&z<=je&&gn(e,o,y)!=null;if(!q){u+=`${e.slice(X,y)}
121
+ `;o=De(e,y);continue}for(var $=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==Dn&&G!==se&&G!==le){$=!0;break}}if(!f&&$&&!c){var Z=o+Ke,z=e.charCodeAt(Z),q=z===br||z===Re||z===rt||z===Je||z===_t||(z===Oe||z===xt||z===gt||z===Mn)&&(In(e,o)!=null||vn(e,o,y)!=null)||z>=Te&&z<=je&&vn(e,o,y)!=null;if(!q){u+=`${e.slice(Z,y)}
102
122
  `,o=De(e,y);continue}}break}if(s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),s.length===0)return null;var W=m;if(!W)for(var K=0;K<s.length;K++){if(s[K].hasBlankAfter&&K<s.length-1){W=!0;break}if(!s[K].isEmpty){for(var ie=s[K].raw,re=ie.length,ue=0,ge=!1,we=!1,ke=!1,Pe=!1,de=0,Ve=0,st=-1;ue<re;){var ve=ie.indexOf(`
103
- `,ue);if(ve<0&&(ve=re),Pe){Ct(ie,ue,ve);for(var Z=ie.slice(ue+Ke,ve),ee=0;ee<Z.length&&Z.charCodeAt(ee)===de;)ee++;ee>=Ve&&Z.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Ht(ie,ue,ve)){st>=0?ke=!0:ge&&(we=!0),ue=ve<re?ve+1:re;continue}if(Ct(ie,ue,ve),st>=0){if(Ge>=st){ue=ve<re?ve+1:re;continue}var te=gn(ie,ue,ve);if(te&&te.markerCol<st&&te.contentCol<=st){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}st=-1,ke&&(we=!0,ke=!1)}var pe=ie.slice(ue+Ke,ve),ce=pe.charCodeAt(0);if((ce===Je||ce===_t)&&Ge<=3){for(var ct=0;ct<pe.length&&pe.charCodeAt(ct)===ce;)ct++;if(ct>=3){if(we&&ge){W=!0;break}Pe=!0,de=ce,Ve=ct,ge=!0,ue=ve<re?ve+1:re;continue}}var Fe=Ge<=3?gn(ie,ue,ve):null;if(Fe&&ge){if(we){W=!0;break}st=Fe.contentCol,ke=!1,ue=ve<re?ve+1:re,ge=!0;continue}if(we){W=!0;break}ge=!0,ue=ve<re?ve+1:re}if(W)break}}for(var He=[],bt=0;bt<s.length;bt++){for(var Et=s[bt],ot=Et.raw,kt=ot.length;kt>0&&ot.charCodeAt(kt-1)===fe;)kt--;var pt=kt<ot.length?ot.slice(0,kt):ot,Bn=null;if(pt.length>=3&&pt.charCodeAt(0)===vt){var fn=pt[1];(fn===" "||fn==="x"||fn==="X")&&pt.charCodeAt(2)===jr&&(Bn={type:ne.gfmTask,completed:fn==="x"||fn==="X"},pt=pt.slice(3))}var St;if(Et.isEmpty&&pt.trim()==="")St=[];else if(W){var Vn=r.inList;r.inList=!0;var ws=r.i;r.i=ws||bt!==s.length-1,St=In(pt,r,i),r.i=ws,r.inList=Vn}else{var Xr=r.inList;r.inList=!0;var Hn=r.i;if(r.i=Hn||bt!==s.length-1,St=In(pt,r,i),r.i=Hn,r.inList=Xr,St.length===1&&St[0].type===ne.paragraph)St=St[0].children;else if(r.p){var dn=[];r.p.push({src:St,dest:dn,unwrap:!0}),St=dn}else{for(var Fr=[],Jt=0;Jt<St.length;Jt++)if(St[Jt].type===ne.paragraph)for(var Dr=St[Jt].children,Ci=0;Ci<Dr.length;Ci++)Fr.push(Dr[Ci]);else Fr.push(St[Jt]);St=Fr}}if(Bn){var Kn=[Bn,{type:ne.text,text:" "}];if(r.p)r.p.push({src:St,dest:Kn,unwrap:!1});else for(var kr=0;kr<St.length;kr++)Kn.push(St[kr]);He.push(Kn)}else He.push(St)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:He},end:o}}var il=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 zr(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<o.length;p++){let k=o.charCodeAt(p);k===Er?f++:k===Pr?f--:k===rl&&f===0&&(c.push(o.slice(m,p)),m=p+1)}m<o.length&&c.push(o.slice(m));let d=!1;c.forEach(p=>{let k=p.indexOf(":");if(k===-1)return;let v=p.slice(0,k).trim(),g=p.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,C)=>C.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[s]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(o,t,l);u!=null&&(i[s]=u)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===gi&&o.charCodeAt(o.length-1)===Td){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===gi)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 xn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=xe&&a<=Ee||a>=Xe&&a<=ut;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var u=e.indexOf(s,l);if(u===-1||u>o)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=xe&&m<=Ee&&(m+=Sr),d>=xe&&d<=Ee&&(d+=Sr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=xe&&a<=Ee&&(a+=Sr);for(let k=r;k<=e.length-i;k++){var p=e.charCodeAt(k);if(p>=xe&&p<=Ee&&(p+=Sr),p!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=xe&&b<=Ee&&(b+=Sr),w>=xe&&w<=Ee&&(w+=Sr),b!==w){v=!1;break}}if(v)return k}return-1}function vM(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=xe&&a<=Ee&&(a+=Sr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=xe&&n<=Ee&&(n+=Sr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(s+l),c=t.charCodeAt(l);if(u>=xe&&u<=Ee&&(u+=Sr),c>=xe&&c<=Ee&&(c+=Sr),u!==c){o=!1;break}}if(o)return s}return-1}var al=-1;function kf(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(al=-1;o<l&&s>0;){let f=xn(e,a,o),m=xn(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=$r(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!gs(d.tag)&&s++,o=d.end):o=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Re||c===se||c===le||c===fe)&&(s--,s===0)){al=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Re;)d++;return d+1}o=m+1}}return-1}function p1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Ct(e,t,a),Ge>3&&!r.inHTML)return null;var n=t+Ke;if(e.charCodeAt(n)!==rt)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=bM(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<gf.length;f++){var m=xn(e,`</${gf[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?De(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(p,n);k>=0&&(u=De(e,k+p.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=$r(e,n),C={},h;w&&!w.f&&(C=zr(w.attrs,g,i),h=w.g+w.b);var y=[],S=g.toLowerCase(),A=`</${S}`,_=xn(v,A,0),x="",E,O,j;if(w!=null&&w.f){j=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=rr(T))}else if(w&&!w.f){var F=w.end-n;if(_===-1){for(var L=v;L.length>0&&L.charCodeAt(L.length-1)===fe;)L=L.slice(0,-1);E=rr(L)}else{var J=F;v.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var Q=v.charCodeAt(Y-1);if(Q!==se&&Q!==le&&Q!==fe&&Q!==Dn)break;Y--}var P=v.slice(J,Y);P&&(O=rr(P));for(var D=v.slice(_);D.length>0&&D.charCodeAt(D.length-1)===fe;)D=D.slice(0,-1);j=rr(D),x=v.slice(F,_).trim()}}var B=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:C,b:h,children:y,e:O,h:j,j:E,text:x,c:!0,a:B},end:u}}if(l===6||l===7){var I=Mh(e,t),R=I<e.length?I:e.length,M=e.slice(n,R),U=I<e.length?De(e,I):e.length,$=$r(e,n);if($){var H=$.tag,G=H.toLowerCase(),X=$.f;if(X){var z=e.slice($.end,R);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,$.end),e:z?rr(z):void 0,text:z,c:!0,a:!0},end:U}}if($.n||gs(H))return{node:{type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:[],text:"",c:!1,a:!1},end:$.end<e.length&&e.charCodeAt($.end)===fe?$.end+1:$.end};var q=r.d||0,W=e.slice(n,R),K=-1,ie=-1,re=!1;if(q<10){for(var ue=`</${G}`,ge=$.end-n,we=1,ke=ge;ke<W.length&&we>0;){var Pe=xn(W,`<${G}`,ke),de=xn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ve=Pe+G.length+1;if(Ve<W.length){var st=W.charCodeAt(Ve);(st===se||st===le||st===fe||st===Re||st===yt)&&we++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Z=W.charCodeAt(ve);if((Z===Re||Z===se||Z===le||Z===fe)&&(we--,we===0)){K=de;for(var ee=ve;ee<W.length&&W.charCodeAt(ee)!==Re;)ee++;ie=ee+1;break}}else if(we--,we===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!$.f&&(l===6||$.u)){var te=kf(e,$.end,G);if(te!==-1){for(var pe=al,ce=$.end,ct=!1,Fe=!1,He=!1,bt=0,Et=!1,ot=!1,kt=ce;kt<pe;){var pt=e.charCodeAt(kt);if(pt===fe)ot&&(ct=!0),Et||bt++,ot=!0,kt++;else if(pt===se||pt===le)kt++;else{if(!Et&&(Et=!0,bt>=2&&pt===rt)){He=!0;break}if(ot=!1,pt===rt){var Bn=e.charCodeAt(kt+1)|32;if((Bn===mf||Bn===i1||Bn===Ki)&&(jh.lastIndex=kt,jh.test(e))){Fe=!0;break}}kt++}}if(ct&&!He&&!Fe){var fn=Ye(e,te);R=fn,U=De(e,fn),W=e.slice(n,R),M=e.slice(n,R),K=pe-n,ie=te-n,re=!0}}}}var St=$.b.indexOf(`
123
+ `,ue);if(ve<0&&(ve=re),Pe){Ct(ie,ue,ve);for(var Q=ie.slice(ue+Ke,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=Ve&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Ht(ie,ue,ve)){st>=0?ke=!0:ge&&(we=!0),ue=ve<re?ve+1:re;continue}if(Ct(ie,ue,ve),st>=0){if(Ge>=st){ue=ve<re?ve+1:re;continue}var te=vn(ie,ue,ve);if(te&&te.markerCol<st&&te.contentCol<=st){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}st=-1,ke&&(we=!0,ke=!1)}var pe=ie.slice(ue+Ke,ve),ce=pe.charCodeAt(0);if((ce===Je||ce===_t)&&Ge<=3){for(var ct=0;ct<pe.length&&pe.charCodeAt(ct)===ce;)ct++;if(ct>=3){if(we&&ge){W=!0;break}Pe=!0,de=ce,Ve=ct,ge=!0,ue=ve<re?ve+1:re;continue}}var Fe=Ge<=3?vn(ie,ue,ve):null;if(Fe&&ge){if(we){W=!0;break}st=Fe.contentCol,ke=!1,ue=ve<re?ve+1:re,ge=!0;continue}if(we){W=!0;break}ge=!0,ue=ve<re?ve+1:re}if(W)break}}for(var He=[],bt=0;bt<s.length;bt++){for(var Et=s[bt],ot=Et.raw,kt=ot.length;kt>0&&ot.charCodeAt(kt-1)===fe;)kt--;var pt=kt<ot.length?ot.slice(0,kt):ot,Bn=null;if(pt.length>=3&&pt.charCodeAt(0)===vt){var dn=pt[1];(dn===" "||dn==="x"||dn==="X")&&pt.charCodeAt(2)===jr&&(Bn={type:ne.gfmTask,completed:dn==="x"||dn==="X"},pt=pt.slice(3))}var St;if(Et.isEmpty&&pt.trim()==="")St=[];else if(W){var Vn=r.inList;r.inList=!0;var ws=r.i;r.i=ws||bt!==s.length-1,St=Tn(pt,r,i),r.i=ws,r.inList=Vn}else{var Xr=r.inList;r.inList=!0;var Hn=r.i;if(r.i=Hn||bt!==s.length-1,St=Tn(pt,r,i),r.i=Hn,r.inList=Xr,St.length===1&&St[0].type===ne.paragraph)St=St[0].children;else if(r.p){var mn=[];r.p.push({src:St,dest:mn,unwrap:!0}),St=mn}else{for(var Fr=[],Jt=0;Jt<St.length;Jt++)if(St[Jt].type===ne.paragraph)for(var Dr=St[Jt].children,Ci=0;Ci<Dr.length;Ci++)Fr.push(Dr[Ci]);else Fr.push(St[Jt]);St=Fr}}if(Bn){var Kn=[Bn,{type:ne.text,text:" "}];if(r.p)r.p.push({src:St,dest:Kn,unwrap:!1});else for(var kr=0;kr<St.length;kr++)Kn.push(St[kr]);He.push(Kn)}else He.push(St)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:He},end:o}}var ll=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 zr(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<o.length;p++){let k=o.charCodeAt(p);k===Er?f++:k===Pr?f--:k===sl&&f===0&&(c.push(o.slice(m,p)),m=p+1)}m<o.length&&c.push(o.slice(m));let d=!1;c.forEach(p=>{let k=p.indexOf(":");if(k===-1)return;let v=p.slice(0,k).trim(),g=p.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,C)=>C.toUpperCase());u[b]=g}}),!d&&Object.keys(u).length>0&&(i[s]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(o,t,l);u!=null&&(i[s]=u)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===gi&&o.charCodeAt(o.length-1)===Md){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===gi)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 xn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=xe&&a<=Ee||a>=Xe&&a<=ut;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var u=e.indexOf(s,l);if(u===-1||u>o)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=xe&&m<=Ee&&(m+=Sr),d>=xe&&d<=Ee&&(d+=Sr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=xe&&a<=Ee&&(a+=Sr);for(let k=r;k<=e.length-i;k++){var p=e.charCodeAt(k);if(p>=xe&&p<=Ee&&(p+=Sr),p!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=xe&&b<=Ee&&(b+=Sr),w>=xe&&w<=Ee&&(w+=Sr),b!==w){v=!1;break}}if(v)return k}return-1}function sz(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=xe&&a<=Ee&&(a+=Sr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=xe&&n<=Ee&&(n+=Sr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(s+l),c=t.charCodeAt(l);if(u>=xe&&u<=Ee&&(u+=Sr),c>=xe&&c<=Ee&&(c+=Sr),u!==c){o=!1;break}}if(o)return s}return-1}var ul=-1;function wf(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(ul=-1;o<l&&s>0;){let f=xn(e,a,o),m=xn(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=$r(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!vs(d.tag)&&s++,o=d.end):o=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Re||c===se||c===le||c===fe)&&(s--,s===0)){ul=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Re;)d++;return d+1}o=m+1}}return-1}function T1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Ct(e,t,a),Ge>3&&!r.inHTML)return null;var n=t+Ke;if(e.charCodeAt(n)!==rt)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=oz(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<yf.length;f++){var m=xn(e,`</${yf[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?De(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(p,n);k>=0&&(u=De(e,k+p.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=$r(e,n),C={},h;w&&!w.f&&(C=zr(w.attrs,g,i),h=w.g+w.b);var y=[],S=g.toLowerCase(),A=`</${S}`,_=xn(v,A,0),x="",E,O,R;if(w!=null&&w.f){R=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=rr(T))}else if(w&&!w.f){var D=w.end-n;if(_===-1){for(var L=v;L.length>0&&L.charCodeAt(L.length-1)===fe;)L=L.slice(0,-1);E=rr(L)}else{var J=D;v.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var X=v.charCodeAt(Y-1);if(X!==se&&X!==le&&X!==fe&&X!==Dn)break;Y--}var P=v.slice(J,Y);P&&(O=rr(P));for(var F=v.slice(_);F.length>0&&F.charCodeAt(F.length-1)===fe;)F=F.slice(0,-1);R=rr(F),x=v.slice(D,_).trim()}}var B=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:C,b:h,children:y,e:O,h:R,j:E,text:x,c:!0,a:B},end:u}}if(l===6||l===7){var I=Ry(e,t),N=I<e.length?I:e.length,M=e.slice(n,N),U=I<e.length?De(e,I):e.length,$=$r(e,n);if($){var H=$.tag,G=H.toLowerCase(),Z=$.f;if(Z){var z=e.slice($.end,N);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,$.end),e:z?rr(z):void 0,text:z,c:!0,a:!0},end:U}}if($.n||vs(H))return{node:{type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:[],text:"",c:!1,a:!1},end:$.end<e.length&&e.charCodeAt($.end)===fe?$.end+1:$.end};var q=r.d||0,W=e.slice(n,N),K=-1,ie=-1,re=!1;if(q<10){for(var ue=`</${G}`,ge=$.end-n,we=1,ke=ge;ke<W.length&&we>0;){var Pe=xn(W,`<${G}`,ke),de=xn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ve=Pe+G.length+1;if(Ve<W.length){var st=W.charCodeAt(Ve);(st===se||st===le||st===fe||st===Re||st===yt)&&we++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Q=W.charCodeAt(ve);if((Q===Re||Q===se||Q===le||Q===fe)&&(we--,we===0)){K=de;for(var ee=ve;ee<W.length&&W.charCodeAt(ee)!==Re;)ee++;ie=ee+1;break}}else if(we--,we===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!$.f&&(l===6||$.u)){var te=wf(e,$.end,G);if(te!==-1){for(var pe=ul,ce=$.end,ct=!1,Fe=!1,He=!1,bt=0,Et=!1,ot=!1,kt=ce;kt<pe;){var pt=e.charCodeAt(kt);if(pt===fe)ot&&(ct=!0),Et||bt++,ot=!0,kt++;else if(pt===se||pt===le)kt++;else{if(!Et&&(Et=!0,bt>=2&&pt===rt)){He=!0;break}if(ot=!1,pt===rt){var Bn=e.charCodeAt(kt+1)|32;if((Bn===pf||Bn===w1||Bn===Ki)&&(_y.lastIndex=kt,_y.test(e))){Fe=!0;break}}kt++}}if(ct&&!He&&!Fe){var dn=Ye(e,te);N=dn,U=De(e,dn),W=e.slice(n,N),M=e.slice(n,N),K=pe-n,ie=te-n,re=!0}}}}var St=$.b.indexOf(`
104
124
  `)!==-1||$.g.indexOf(`
105
- `)!==-1,Vn=!1;if(K!==-1){var ws=W.slice(ie).trim();Vn=ws.length===0}var Xr=!1,Hn=R,dn=U;if(K!==-1){var Fr=n+ie,Jt=Ye(e,Fr-1);if(Fr<Jt){for(var Dr=Fr;Dr<Jt&&(e.charCodeAt(Dr)===se||e.charCodeAt(Dr)===le);)Dr++;if(Dr<Jt&&e.charCodeAt(Dr)===rt){var Ci=$r(e,Dr);Ci&&!Ci.f&&(Xr=!0,Hn=Fr,dn=Fr,Vn=!0)}}if(!Xr){var Kn=De(e,Jt);if(Kn<R){for(var kr=Kn;kr<R&&(e.charCodeAt(kr)===se||e.charCodeAt(kr)===le);)kr++;if(kr<R&&e.charCodeAt(kr)===rt){var q1=$r(e,kr);q1&&(Xr=!0,Hn=Jt,dn=Kn,Vn=!0)}}}if(!Xr&&r.inHTML){Xr=!0,Hn=Jt,dn=De(e,Jt);var z1=e.slice(Fr,Jt).trim();Vn=z1.length===0}}var Ei=[],Qt="";if(K!==-1){Qt=W.slice($.end-n,K);var Ai=Qt.trim();if(Ai){var{inline:$1,inHTML:U1,d:B1}=r;r.inHTML=!0,r.d=q+1;var V1=G==="p";if(V1)r.inline=!0,Ei=Gi(Ai,!1,r,i);else{var $d=Qt.indexOf(`
125
+ `)!==-1,Vn=!1;if(K!==-1){var ws=W.slice(ie).trim();Vn=ws.length===0}var Xr=!1,Hn=N,mn=U;if(K!==-1){var Fr=n+ie,Jt=Ye(e,Fr-1);if(Fr<Jt){for(var Dr=Fr;Dr<Jt&&(e.charCodeAt(Dr)===se||e.charCodeAt(Dr)===le);)Dr++;if(Dr<Jt&&e.charCodeAt(Dr)===rt){var Ci=$r(e,Dr);Ci&&!Ci.f&&(Xr=!0,Hn=Fr,mn=Fr,Vn=!0)}}if(!Xr){var Kn=De(e,Jt);if(Kn<N){for(var kr=Kn;kr<N&&(e.charCodeAt(kr)===se||e.charCodeAt(kr)===le);)kr++;if(kr<N&&e.charCodeAt(kr)===rt){var U1=$r(e,kr);U1&&(Xr=!0,Hn=Jt,mn=Kn,Vn=!0)}}}if(!Xr&&r.inHTML){Xr=!0,Hn=Jt,mn=De(e,Jt);var B1=e.slice(Fr,Jt).trim();Vn=B1.length===0}}var Ei=[],Qt="";if(K!==-1){Qt=W.slice($.end-n,K);var Ai=Qt.trim();if(Ai){var{inline:V1,inHTML:H1,d:K1}=r;r.inHTML=!0,r.d=q+1;var W1=G==="p";if(W1)r.inline=!0,Ei=Gi(Ai,!1,r,i);else{var Bd=Qt.indexOf(`
106
126
 
107
- `)!==-1,Ud=Bu.test(Ai),ql=Rh.test(Ai),H1=$d||Ud||r.inHTML&&ql,K1=Qt.length>=2&&Qt.charCodeAt(0)===fe&&Qt.charCodeAt(Qt.length-1)===fe&&!$d;K1&&!Ud&&!ql?Ei=[{type:ne.text,text:Ai}]:H1||ql?(r.inline=!1,Ei=In(Qt,r,i)):(r.inline=!0,Ei=Gi(Ai,!1,r,i))}r.inline=$1,r.inHTML=U1,r.d=B1}}var Bd=!1;if(l===6&&K!==-1&&!r.inHTML&&!St){var W1=/<[a-zA-Z][^>]*>/.test(Qt),G1=Qt.indexOf(`
127
+ `)!==-1,Vd=Pc.test(Ai),zl=Py.test(Ai),G1=Bd||Vd||r.inHTML&&zl,J1=Qt.length>=2&&Qt.charCodeAt(0)===fe&&Qt.charCodeAt(Qt.length-1)===fe&&!Bd;J1&&!Vd&&!zl?Ei=[{type:ne.text,text:Ai}]:G1||zl?(r.inline=!1,Ei=Tn(Qt,r,i)):(r.inline=!0,Ei=Gi(Ai,!1,r,i))}r.inline=V1,r.inHTML=H1,r.d=K1}}var Hd=!1;if(l===6&&K!==-1&&!r.inHTML&&!St){var Y1=/<[a-zA-Z][^>]*>/.test(Qt),X1=Qt.indexOf(`
108
128
 
109
- `)!==-1||Bu.test(Qt);W1&&!G1&&(Bd=!0)}var J1=!re&&(r.inHTML||l===7||St||!Vn||Bd);if(J1){var pa,Mr,Vd=!1;if(K!==-1&&Xr){var Hd=!1;if(r.inHTML&&ie<W.length){for(var xs=ie;xs<W.length&&W.charCodeAt(xs)!==fe;)xs++;var zl=W.slice(ie,xs).trim();Hd=zl.length>1&&zl.charCodeAt(0)===rt&&zl.charCodeAt(1)!==yt}Mr=Hd?W.slice($.end-n):Qt,Vd=!0}else(l===7||r.inHTML)&&K!==-1?(Mr=W.slice($.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1))):Xr?pa=e.slice(n,Hn):St?pa=M:(Mr=W.slice($.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1)));var Kd=pa!==void 0,$l=rr(pa===void 0?Mr||"":pa),Wd={type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:Ei,e:Kd?void 0:$l,j:Kd?$l:void 0,text:$l,c:!0,a:!1};return Vd&&(Wd.x=!0),{node:Wd,end:dn}}var Gd=rr(Qt);return{node:{type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:Ei,e:re?void 0:Gd,text:Gd,c:!1,a:!1},end:dn}}var Ss=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Y1=Ss?Ss[2]:"div",Ul=Ss?Ss[1]==="/":!1,Bl,Jd,Yd,Cs="";if(Ul){var Vl=M.indexOf(">");Vl===-1?Bl=M:(Bl=M.slice(0,Vl+1),Cs=M.slice(Vl+1),Cs&&(Jd=rr(Cs)))}else Yd=rr(M);return{node:{type:ne.htmlBlock,tag:Y1,attrs:{},children:[],e:Jd,h:Bl,j:Yd,text:Ul?Cs:M,c:!0,a:Ul},end:U}}var Dt=$r(e,n);if(!Dt)return null;var mn=Dt.tag,Hl=mn.toLowerCase(),Xd=mn.charCodeAt(0),Kl=Xd>=xe&&Xd<=Ee;if(!(Kl||il.has(Hl)||ys.has(Hl)||Hl.includes("-")))return null;if(Dt.f)return{node:{type:ne.htmlSelfClosing,tag:mn,attrs:{},h:e.slice(n,Dt.end),a:!0},end:Dt.end};var Oi=kf(e,Dt.end,mn),ha=[];if(Oi!==-1){var X1=al,Es=e.slice(Dt.end,X1),As=Es.trim();if(As){var Z1=Es.indexOf(`
129
+ `)!==-1||Pc.test(Qt);Y1&&!X1&&(Hd=!0)}var Z1=!re&&(r.inHTML||l===7||St||!Vn||Hd);if(Z1){var pa,Mr,Kd=!1;if(K!==-1&&Xr){var Wd=!1;if(r.inHTML&&ie<W.length){for(var xs=ie;xs<W.length&&W.charCodeAt(xs)!==fe;)xs++;var $l=W.slice(ie,xs).trim();Wd=$l.length>1&&$l.charCodeAt(0)===rt&&$l.charCodeAt(1)!==yt}Mr=Wd?W.slice($.end-n):Qt,Kd=!0}else(l===7||r.inHTML)&&K!==-1?(Mr=W.slice($.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1))):Xr?pa=e.slice(n,Hn):St?pa=M:(Mr=W.slice($.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1)));var Gd=pa!==void 0,Ul=rr(pa===void 0?Mr||"":pa),Jd={type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:Ei,e:Gd?void 0:Ul,j:Gd?Ul:void 0,text:Ul,c:!0,a:!1};return Kd&&(Jd.x=!0),{node:Jd,end:mn}}var Yd=rr(Qt);return{node:{type:ne.htmlBlock,tag:H,attrs:zr($.attrs,H,i),b:$.g+$.b,children:Ei,e:re?void 0:Yd,text:Yd,c:!1,a:!1},end:mn}}var Ss=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Q1=Ss?Ss[2]:"div",Bl=Ss?Ss[1]==="/":!1,Vl,Xd,Zd,Cs="";if(Bl){var Hl=M.indexOf(">");Hl===-1?Vl=M:(Vl=M.slice(0,Hl+1),Cs=M.slice(Hl+1),Cs&&(Xd=rr(Cs)))}else Zd=rr(M);return{node:{type:ne.htmlBlock,tag:Q1,attrs:{},children:[],e:Xd,h:Vl,j:Zd,text:Bl?Cs:M,c:!0,a:Bl},end:U}}var Dt=$r(e,n);if(!Dt)return null;var pn=Dt.tag,Kl=pn.toLowerCase(),Qd=pn.charCodeAt(0),Wl=Qd>=xe&&Qd<=Ee;if(!(Wl||ll.has(Kl)||bs.has(Kl)||Kl.includes("-")))return null;if(Dt.f)return{node:{type:ne.htmlSelfClosing,tag:pn,attrs:{},h:e.slice(n,Dt.end),a:!0},end:Dt.end};var Oi=wf(e,Dt.end,pn),ha=[];if(Oi!==-1){var e0=ul,Es=e.slice(Dt.end,e0),As=Es.trim();if(As){var t0=Es.indexOf(`
110
130
 
111
- `)!==-1,Q1=Bu.test(As),e0=Rh.test(As),t0=r.inline,r0=r.inHTML,n0=r.d;r.inHTML=!0,r.d=(r.d||0)+1,Z1||Q1||e0?(r.inline=!1,ha=In(Es,r,i)):(r.inline=!0,ha=Gi(As,!1,r,i)),r.inline=t0,r.inHTML=r0,r.d=n0}var i0=Ye(e,Oi),a0=e.slice(Oi,i0).trim(),Zd=a0?Oi:De(e,Oi),Qd=Kl?e.slice(n,Oi):e.slice(n,Zd);return{node:{type:ne.htmlBlock,tag:mn,attrs:zr(Dt.attrs,mn,i),b:Dt.g+Dt.b,children:ha,j:rr(Qd),text:Kl?Es:Qd,c:!0,a:!1},end:Zd}}var ga=Mh(e,Dt.end),s0=ga<e.length?De(e,ga):ga,Wl=e.slice(Dt.end,ga);if(Wl.trim()){var{inline:o0,inHTML:l0,d:u0}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ha=In(Wl,r,i),r.inline=o0,r.inHTML=l0,r.d=u0}var c0=e.slice(Dt.end,ga);return{node:{type:ne.htmlBlock,tag:mn,attrs:zr(Dt.attrs,mn,i),b:Dt.g+Dt.b,children:ha,e:rr(c0),text:Wl,c:!0,a:!1},end:s0}}function bM(e,t){if(e.charCodeAt(t)!==rt)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===Oe&&e.charCodeAt(r+2)===Oe)return 2;if(e.charCodeAt(r)===da)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=xe&&a<=Ee)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===yt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=xe&&l<=Ee||l>=Xe&&l<=ut||l>=Te&&l<=je||l===Oe)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(ys.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Re||c===fe||o>=i?1:0}if(il.has(u.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===se||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Re?6:0}var m=o<i?e.charCodeAt(o):-1;return m===se||m===le||m===Re||m===fe||m===yt||m===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Re){var p=Ye(e,t),k=e.slice(d+1,p).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=$r(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function Vh(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===se||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===It&&i++,a>i&&e.charCodeAt(a-1)===It&&(a-2<i||e.charCodeAt(a-2)!==Tt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Tt&&u+1<a){e.charCodeAt(u+1)===It?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===It){var p=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(p.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?Gi(g,!1,t,r):[]})}function Hh(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=De(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!f1(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===It&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===It)break;var d=u.charCodeAt(f)===qt;for(d&&f++;f<m&&u.charCodeAt(f)===Oe;)f++;var p=f<m&&u.charCodeAt(f)===qt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===It&&f++}let k=Vh(l,r,i);if(c.length!==k.length)return null;let v=[],g=De(e,o);for(;g<e.length;){let S=Ye(e,g),A=e.slice(g,S);if(Ht(e,g,S))break;if(Ct(e,g,S),Ge<4){var b=e.charCodeAt(g+Ke);if(b===Re||b===br||(b===Oe||b===xt||b===gt)&&Pn(e,g))break;if(b===Je||b===_t){for(var w=g+Ke,C=0;w<S&&e.charCodeAt(w)===b;)C++,w++;if(C>=3)break}}v.push(Vh(A,r,i)),g=De(e,S)}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 kM(e,t,r){var i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;var a=t+Ke;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===cn){var n=wM(e,a,r);return n||null}r.refs||(r.refs={});var s=d1(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function wM(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)!==jr;){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)!==qt)return null;for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;var o=e.indexOf(`
131
+ `)!==-1,r0=Pc.test(As),n0=Py.test(As),i0=r.inline,a0=r.inHTML,s0=r.d;r.inHTML=!0,r.d=(r.d||0)+1,t0||r0||n0?(r.inline=!1,ha=Tn(Es,r,i)):(r.inline=!0,ha=Gi(As,!1,r,i)),r.inline=i0,r.inHTML=a0,r.d=s0}var o0=Ye(e,Oi),l0=e.slice(Oi,o0).trim(),em=l0?Oi:De(e,Oi),tm=Wl?e.slice(n,Oi):e.slice(n,em);return{node:{type:ne.htmlBlock,tag:pn,attrs:zr(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:ha,j:rr(tm),text:Wl?Es:tm,c:!0,a:!1},end:em}}var ga=Ry(e,Dt.end),u0=ga<e.length?De(e,ga):ga,Gl=e.slice(Dt.end,ga);if(Gl.trim()){var{inline:c0,inHTML:f0,d:d0}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ha=Tn(Gl,r,i),r.inline=c0,r.inHTML=f0,r.d=d0}var m0=e.slice(Dt.end,ga);return{node:{type:ne.htmlBlock,tag:pn,attrs:zr(Dt.attrs,pn,i),b:Dt.g+Dt.b,children:ha,e:rr(m0),text:Gl,c:!0,a:!1},end:u0}}function oz(e,t){if(e.charCodeAt(t)!==rt)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===Oe&&e.charCodeAt(r+2)===Oe)return 2;if(e.charCodeAt(r)===ma)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=xe&&a<=Ee)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===yt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=xe&&l<=Ee||l>=Xe&&l<=ut||l>=Te&&l<=je||l===Oe)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(bs.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Re||c===fe||o>=i?1:0}if(ll.has(u.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===se||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Re?6:0}var m=o<i?e.charCodeAt(o):-1;return m===se||m===le||m===Re||m===fe||m===yt||m===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Re){var p=Ye(e,t),k=e.slice(d+1,p).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=$r(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function zy(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===se||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===It&&i++,a>i&&e.charCodeAt(a-1)===It&&(a-2<i||e.charCodeAt(a-2)!==Tt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Tt&&u+1<a){e.charCodeAt(u+1)===It?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===It){var p=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(p.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?Gi(g,!1,t,r):[]})}function $y(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=De(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!_1(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===It&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===It)break;var d=u.charCodeAt(f)===qt;for(d&&f++;f<m&&u.charCodeAt(f)===Oe;)f++;var p=f<m&&u.charCodeAt(f)===qt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===It&&f++}let k=zy(l,r,i);if(c.length!==k.length)return null;let v=[],g=De(e,o);for(;g<e.length;){let S=Ye(e,g),A=e.slice(g,S);if(Ht(e,g,S))break;if(Ct(e,g,S),Ge<4){var b=e.charCodeAt(g+Ke);if(b===Re||b===br||(b===Oe||b===xt||b===gt)&&In(e,g))break;if(b===Je||b===_t){for(var w=g+Ke,C=0;w<S&&e.charCodeAt(w)===b;)C++,w++;if(C>=3)break}}v.push(zy(A,r,i)),g=De(e,S)}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 lz(e,t,r){var i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;var a=t+Ke;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===fn){var n=uz(e,a,r);return n||null}r.refs||(r.refs={});var s=P1(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function uz(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==fn)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==jr;){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)!==qt)return null;for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;var o=e.indexOf(`
112
132
  `,a);o<0&&(o=i);for(var l=e.slice(a,o).trim(),u=o<i?o+1:i;u<i;){var c=Ye(e,u);if(Ct(e,u,c),Ge>=2&&!Ht(e,u,c))l+=`
113
133
  ${e.slice(u,c)}`,u=De(e,c);else if(Ht(e,u,c)){var f=De(e,c);if(f<i){var m=Ye(e,f);if(Ct(e,f,m),Ge>=2){l+=`
114
- `,u=De(e,c);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function xM(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let j=o>=0?o:Ye(e,a);if(o=-1,Ht(e,a,j))break;if(Ct(e,a,j),Ge<4&&s>0&&!r.l){let F=e.charCodeAt(a+Ke);if(F===dr||F===Oe){let L=a+Ke;for(;L<j&&e.charCodeAt(L)===F;)L++;for(;L<j&&(e.charCodeAt(L)===se||e.charCodeAt(L)===le);)L++;if(L>=j){n=F===dr?1:2,a=De(e,j);break}}}s=j;let T=De(e,j);if(T<e.length){if(e.charCodeAt(T)===pf){var l=Ye(e,T);a=De(e,l),s=l;continue}let F=Ye(e,T);if(o=F,Ct(e,T,F),Ge<4){let L=e.charCodeAt(T+Ke);if(L===Re){a=T;break}if(L===br){for(var u=T+Ke,c=0;u<F&&e.charCodeAt(u)===br&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=F||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(L===Je||L===_t){for(var f=T+Ke,m=0;f<F&&e.charCodeAt(f)===L;)m++,f++;if(m>=3){a=T;break}}if(L===rt){var d=T+Ke+1,p=d<F?e.charCodeAt(d):0,k=p===Wt||p===da;if(!k&&p===yt){for(var v=d+1,g=v;g<F&&(e.charCodeAt(g)>=xe&&e.charCodeAt(g)<=Ee||e.charCodeAt(g)>=Xe&&e.charCodeAt(g)<=ut||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=je||e.charCodeAt(g)===Oe);)g++;g>v&&(k=il.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<F&&(e.charCodeAt(b)>=xe&&e.charCodeAt(b)<=Ee||e.charCodeAt(b)>=Xe&&e.charCodeAt(b)<=ut||e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=je||e.charCodeAt(b)===Oe);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=il.has(w)||ys.has(w)}}if(k&&p1(e,T,r,i)){a=T;break}}if(L===Oe||L===xt||L===Mn){let J=T+Ke+1;if(J<F&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var C=ts(e,J,F);if(C<F&&!Pn(e,T)){a=T;break}}}if(L>=Te&&L<=je){let J=T+Ke;for(;J<F&&e.charCodeAt(J)>=Te&&e.charCodeAt(J)<=je;)J++;if(J<F&&(e.charCodeAt(J)===mr||e.charCodeAt(J)===Pr)&&J-(T+Ke)===1&&e.charCodeAt(T+Ke)===49){var h=J+1;if(h<F&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=ts(e,h,F);if(y<F){a=T;break}}}}if(L===It){let J=De(e,F);if(J<e.length){let Y=Ye(e,J);if(f1(e,J,Y)){a=T;break}}}if((L===Oe||L===xt||L===gt)&&Pn(e,T)){if(L!==Oe){a=T;break}let J=T+Ke;for(;J<F&&e.charCodeAt(J)===Oe;)J++;for(;J<F&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<F){a=T;break}}}}a=De(e,j)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Dn||e.charCodeAt(S-1)===se||e.charCodeAt(S-1)===le);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===se||e.charCodeAt(A)===le);)A++;if(A>=S)return null;for(var _=!1,x=A;x<S;x++)if(e.charCodeAt(x)===pf){_=!0;break}var E=_?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!E)return null;let O=Gi(E,!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 Gi(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Vr(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 SM(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(`
115
- `)!==-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:ne.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 CM(e,t,r){if(e.charCodeAt(t)!==rt)return t;if(t+1<r&&e.charCodeAt(t+1)===yt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Re;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===Oe&&e.charCodeAt(t+3)===Oe){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>=xe&&u<=Ee||u>=Xe&&u<=ut||u>=Te&&u<=je||u===Oe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Re){i++;break}if(u===yt&&i+1<r&&e.charCodeAt(i+1)===Re){i+=2,s=!0;break}if(u===hi||u===pi){var o=u;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(s||gs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===rt)if(i+1<r&&e.charCodeAt(i+1)===yt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Re;)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)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function EM(e,t,r,i,a){if(e.charCodeAt(t)!==_t||t+1>=r||e.charCodeAt(t+1)!==_t)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===_t&&e.charCodeAt(n+1)===_t){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function AM(e,t,r,i,a){if(e.charCodeAt(t)!==dr||t+1>=r||e.charCodeAt(t+1)!==dr)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===dr&&e.charCodeAt(n+1)===dr&&n>t+2){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function Kh(e,t,r){return e<Rl?!!(Rd(e)&$i):LD.test(t[r])}function Wh(e,t,r){return e<Rl?!!(Rd(e)&ii):qD.test(t[r])}function OM(e,t,r){var i=e.charCodeAt(t);if(i!==xt&&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=Wh(n,e,t-1),l=Wh(s,e,t+a),u=t>0?Kh(n,e,t-1):!1,c=t+a<r?Kh(s,e,t+a):!1,f=!l&&(!c||o||u),m=!o&&(!u||l||c),d,p;return i===xt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function _M(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 u={node:e[l],prev:o,next:null};o?o.next=u:s=u,n[l]=u,o=u}for(var c=Array(t.length),f=0;f<t.length;f++)c[f]=n[t[f].idx];for(var m=[],d=0;d<12;d++)m[d]=-1;for(var p=0;p<t.length;){var k=t[p];if(!(k.active&&k.canClose)){p++;continue}for(var v=k.ch===xt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=m[g]===void 0?-1:m[g],w=-1,C=p-1;C>b;C--){var h=t[C];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=C;break}}if(w<0){m[g]=p-1,!k.canOpen&&(k.active=!1),p++;continue}var y=t[w],S=y.len>=2&&k.len>=2,A=S?2:1;y.len-=A,k.len-=A;var _=c[w],x=c[p],E=_.node,O=x.node;E.text=E.text.slice(0,E.text.length-A),O.text=O.text.slice(A);for(var j=[],T=_.next;T&&T!==x;)j.push(T.node),T=T.next;var F={type:ne.textFormatted,tag:S?"strong":"em",children:j},L={node:F,prev:_,next:x};_.next=L,x.prev=L;for(var J=w+1;J<p;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,E.text==="")){var Y=_.prev;L.prev=Y,Y?Y.next=L:s=L}if(k.len===0){if(k.active=!1,O.text===""){var Q=x.next;L.next=Q,Q&&(Q.prev=L)}}else continue;p++}for(var P=0,D=s;D;){var B=D.node;if(B.type===ne.text){var I=B;if(I.text===""){D=D.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,D=D.next;continue}}e[P++]=B,D=D.next}e.length=P}}function qs(e,t,r,i){return t(e,r,i)===null?null:e}var Gh=0,wf=0,Jh=0,xf=0,Yh=0,Sf=0,Vu=0,lr=0;function PM(){return Vu===2147483647&&(wf=0,xf=0,Sf=0,zo=0,Vu=0),++Vu}var Hu=null,zo=0,zs=[],Ku=256;function Xh(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Wt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||xf===lr&&s>=Jh)return null;var o=zo===lr?Hu:null,l=o===null?0:o[s];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",s+1);if(c<0||c>=r)return Jh=s,xf=lr,null;u=s+1;var f=0;zs[f++]=s;for(var m=r-s>=Ku;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Tt&&u+1<r){u+=2;continue}if(d===Je){var p=Nd(e,u,r);if(p>u){u=p;continue}}if(d===rt){var k=h1(e,u,r);if(k){u=k.end;continue}var v=CM(e,u,r);if(v>u){u=v;continue}}if(d===vt)zs[f++]=u;else if(d===jr){var g=zs[--f];o===null&&m&&u-s>=Ku&&(o=Hu=new Int32Array(r),zo=lr),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&m&&u-s>=Ku&&(o=Hu=new Int32Array(r),zo=lr),o!==null)for(;f>0;)o[zs[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),C=u<r?e.charCodeAt(u):0,h=!1;if(C===Er){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var S="",A=u;if(u<r&&e.charCodeAt(u)===rt){for(u++,A=u;A<r&&e.charCodeAt(A)!==Re;){if(e.charCodeAt(A)===Tt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===fe){y=!1;break}A++}y&&(A>=r||e.charCodeAt(A)!==Re)&&(y=!1),y&&(S=e.slice(u,A),A++)}else if(y){var _=wf===lr?Gh:-1;if(_>=0&&u>=_)y=!1;else{for(var x=0,E=!1;A<r;){var O=e.charCodeAt(A);if(O===Tt&&A+1<r){A+=2;continue}if(O===Er)x++;else if(O===Pr){if(E=!0,x===0)break;x--}else if(O===se||O===fe)break;A++}A>=r&&!E&&(_<0||u<_)&&(Gh=u,wf=lr),S=e.slice(u,A)}}if(y){for(u=A;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var j;if(u<r){var T=e.charCodeAt(u);if(T===hi||T===pi||T===Er){var F=T===Er?41:T;u++;for(var L=u;u<r&&e.charCodeAt(u)!==F;)e.charCodeAt(u)===Tt&&u+1<r&&u++,u++;u>=r?y=!1:(j=e.slice(L,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Pr)&&(y=!1)}}if(y){if(u++,S=_n(Wi(S)),j!==void 0&&(j=_n(Wi(j))),n){var J=Vr(w,0,w.length,i,a),Y=sl(J);return{node:{type:ne.image,target:qs(S,(a==null?void 0:a.sanitizer)||rn,"img","src"),alt:Y,title:j},end:u}}var Q=i.inAnchor;i.inAnchor=!0;var $=Q?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=Q,!i.inAnchor&&Cf($)?null:{node:{type:ne.link,target:qs(S,(a==null?void 0:a.sanitizer)||rn,"a","href"),title:j,children:$},end:u}}u=b+1,h=!0}var P="",D=u;if(!h&&C===vt){var B=u+1;D=B;for(var I=!1;D<r&&e.charCodeAt(D)!==jr;){if(e.charCodeAt(D)===Tt&&D+1<r){D+=2;continue}if(e.charCodeAt(D)===vt){I=!0;break}D++}if(I||D>=r)return null;var R=e.slice(B,D);if(R.trim())P=Lo(R);else{if(Dh(w))return null;P=Lo(w)}D+=1}else{if(Dh(w))return null;P=Lo(w)}var M=(H=i.refs)==null?void 0:H[P];if(!M)return null;if(n)return{node:{type:ne.image,target:qs(M.target,(a==null?void 0:a.sanitizer)||rn,"img","src"),alt:sl(Vr(w,0,w.length,i,a)),title:M.title},end:D};var U=i.inAnchor;i.inAnchor=!0;var $=U?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=U,!i.inAnchor&&Cf($)?null:{node:{type:ne.link,target:qs(M.target,(a==null?void 0:a.sanitizer)||rn,"a","href"),title:M.title,children:$},end:D}}function h1(e,t,r){if(e.charCodeAt(t)!==rt)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Re)break;if(a===se||a===fe||a===Dn||a===rt)return null;i++}if(i>=r||e.charCodeAt(i)!==Re)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: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 IM(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==cn||Sf===lr&&t>=Yh)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return Yh=t,Sf=lr,null;if(e.charCodeAt(a)!==jr)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${yi(n)}`,text:n},end:a+1}:null}function TM(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===tl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===Ki&&e.charCodeAt(t+3)===mf&&(e.charCodeAt(t+4)===i1&&e.charCodeAt(t+5)===qt&&e.charCodeAt(t+6)===yt&&e.charCodeAt(t+7)===yt?a="https://":e.charCodeAt(t+4)===qt&&e.charCodeAt(t+5)===yt&&e.charCodeAt(t+6)===yt&&(a="http://")):s===mi||s===70?t+6<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===mf&&e.charCodeAt(t+3)===qt&&e.charCodeAt(t+4)===yt&&e.charCodeAt(t+5)===yt&&(a="ftp://"):(s===si||s===87)&&t+4<=r&&e.charCodeAt(t+1)===si&&e.charCodeAt(t+2)===si&&e.charCodeAt(t+3)===mr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===se||y===fe||y===le||y===Dn||y===rt||y===Re)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Er?l++:f===Pr&&u++}let m=o;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===mr||y===ED||y===qt||y===Wt||y===da||y===Pr||y===xt||y===gt||y===_t){if(y===Pr){if(l>=u)break;u--}m--}else if(y===rl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=xe&&e.charCodeAt(d)<=Ee||e.charCodeAt(d)>=Xe&&e.charCodeAt(d)<=ut||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=je);)d--;d>=t&&e.charCodeAt(d)===jl?m=d:m--}else break}if(m<=t+a.length)return null;var p=t+(n?4:a.length),k=e.indexOf("/",p);if((k<0||k>m)&&(k=m),n&&e.indexOf(".",p)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=p;b--)if(e.charCodeAt(b)===mr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:p,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var C=e.slice(t,m),h=n?`http://${C}`:C;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:C}]},end:m}}function jM(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je||s===mr||s===Wt||s===br||s===36||s===ff||s===jl||s===pi||s===xt||s===Mn||s===yt||s===dr||s===da||s===cn||s===gt||s===Je||s===gi||s===It||s===Td||s===_t||s===Oe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==n1)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je)a++;else if((s===Oe||s===gt)&&a>o)a++;else if(s===mr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===Oe||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=xe&&f<=Ee||f>=Xe&&f<=ut||f>=Te&&f<=je)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var m=e.charCodeAt(a-1);if(!(m>=xe&&m<=Ee||m>=Xe&&m<=ut||m>=Te&&m<=je)||a<=l+1)return null;for(var d=-1,p=l-1;p>=o;p--)if(e.charCodeAt(p)===mr){d=p;break}for(var k=d>=0?d+1:o,p=k;p<a;p++)if(e.charCodeAt(p)===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 Cf(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Cf(e[t].children))return!0;return!1}function sl(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+=sl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Ef(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=dM(r(sl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&Ef(s,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)Ef(o[l],t,r)}}function Xn(e){return{type:ne.text,text:e}}function RM(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===br){i++;var a=i<r&&(e.charCodeAt(i)===a1||e.charCodeAt(i)===s1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Te&&o<=je||a&&(o>=xe&&o<=df||o>=Xe&&o<=mi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===rl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=xe&&c<=Ee||c>=Xe&&c<=ut||c>=Te&&c<=je){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===rl?i+1:-1}function NM(e,t,r,i,a){if(e.charCodeAt(t)!==rt)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)===Oe&&n+2<r&&e.charCodeAt(n+2)===Oe){var o=n+3;if(o<r&&e.charCodeAt(o)===Re)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Oe&&e.charCodeAt(o+1)===Re)return{node:{type:ne.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===da){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(s===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>=xe&&c<=Ee){var m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+1}:null}}if(s===yt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=xe&&p<=Ee||p>=Xe&&p<=ut))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=xe&&k<=Ee||k>=Xe&&k<=ut||k>=Te&&k<=je||k===Oe)d++;else break}for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Re){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(!(s>=xe&&s<=Ee||s>=Xe&&s<=ut))return null;var g=$r(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),C=g.n;if(C||gs(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:zr(g.attrs,b,a),m:g.q?yf(g):e.slice(t,g.end),a:!1},end:g.end};var h=ys.has(w),y=kf(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:zr(g.attrs,b,a),m:g.q?yf(g):e.slice(t,g.end),a:!1},end:g.end};var S=vM(e,`</${w}`,y),A=e.slice(g.end,S);if(h){var _=rr(A);return{node:{type:ne.htmlBlock,tag:b,attrs:zr(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 x=[],E=A.trim();if(E){var{inAnchor:O,inline:j,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var F=E.indexOf(`
134
+ `,u=De(e,c);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function cz(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let R=o>=0?o:Ye(e,a);if(o=-1,Ht(e,a,R))break;if(Ct(e,a,R),Ge<4&&s>0&&!r.l){let D=e.charCodeAt(a+Ke);if(D===dr||D===Oe){let L=a+Ke;for(;L<R&&e.charCodeAt(L)===D;)L++;for(;L<R&&(e.charCodeAt(L)===se||e.charCodeAt(L)===le);)L++;if(L>=R){n=D===dr?1:2,a=De(e,R);break}}}s=R;let T=De(e,R);if(T<e.length){if(e.charCodeAt(T)===hf){var l=Ye(e,T);a=De(e,l),s=l;continue}let D=Ye(e,T);if(o=D,Ct(e,T,D),Ge<4){let L=e.charCodeAt(T+Ke);if(L===Re){a=T;break}if(L===br){for(var u=T+Ke,c=0;u<D&&e.charCodeAt(u)===br&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=D||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(L===Je||L===_t){for(var f=T+Ke,m=0;f<D&&e.charCodeAt(f)===L;)m++,f++;if(m>=3){a=T;break}}if(L===rt){var d=T+Ke+1,p=d<D?e.charCodeAt(d):0,k=p===Wt||p===ma;if(!k&&p===yt){for(var v=d+1,g=v;g<D&&(e.charCodeAt(g)>=xe&&e.charCodeAt(g)<=Ee||e.charCodeAt(g)>=Xe&&e.charCodeAt(g)<=ut||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=je||e.charCodeAt(g)===Oe);)g++;g>v&&(k=ll.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<D&&(e.charCodeAt(b)>=xe&&e.charCodeAt(b)<=Ee||e.charCodeAt(b)>=Xe&&e.charCodeAt(b)<=ut||e.charCodeAt(b)>=Te&&e.charCodeAt(b)<=je||e.charCodeAt(b)===Oe);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=ll.has(w)||bs.has(w)}}if(k&&T1(e,T,r,i)){a=T;break}}if(L===Oe||L===xt||L===Mn){let J=T+Ke+1;if(J<D&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var C=rs(e,J,D);if(C<D&&!In(e,T)){a=T;break}}}if(L>=Te&&L<=je){let J=T+Ke;for(;J<D&&e.charCodeAt(J)>=Te&&e.charCodeAt(J)<=je;)J++;if(J<D&&(e.charCodeAt(J)===mr||e.charCodeAt(J)===Pr)&&J-(T+Ke)===1&&e.charCodeAt(T+Ke)===49){var h=J+1;if(h<D&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=rs(e,h,D);if(y<D){a=T;break}}}}if(L===It){let J=De(e,D);if(J<e.length){let Y=Ye(e,J);if(_1(e,J,Y)){a=T;break}}}if((L===Oe||L===xt||L===gt)&&In(e,T)){if(L!==Oe){a=T;break}let J=T+Ke;for(;J<D&&e.charCodeAt(J)===Oe;)J++;for(;J<D&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<D){a=T;break}}}}a=De(e,R)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Dn||e.charCodeAt(S-1)===se||e.charCodeAt(S-1)===le);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===se||e.charCodeAt(A)===le);)A++;if(A>=S)return null;for(var _=!1,x=A;x<S;x++)if(e.charCodeAt(x)===hf){_=!0;break}var E=_?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!E)return null;let O=Gi(E,!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 Gi(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Vr(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 fz(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:ne.codeInline,text:o},end:n+s}}a=n+s}return null}function zd(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 dz(e,t,r){if(e.charCodeAt(t)!==rt)return t;if(t+1<r&&e.charCodeAt(t+1)===yt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Re;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===Oe&&e.charCodeAt(t+3)===Oe){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>=xe&&u<=Ee||u>=Xe&&u<=ut||u>=Te&&u<=je||u===Oe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Re){i++;break}if(u===yt&&i+1<r&&e.charCodeAt(i+1)===Re){i+=2,s=!0;break}if(u===hi||u===pi){var o=u;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(s||vs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===rt)if(i+1<r&&e.charCodeAt(i+1)===yt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Re;)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)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function mz(e,t,r,i,a){if(e.charCodeAt(t)!==_t||t+1>=r||e.charCodeAt(t+1)!==_t)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=zd(e,n,r);if(o>n){n=o;continue}}if(s===_t&&e.charCodeAt(n+1)===_t){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function pz(e,t,r,i,a){if(e.charCodeAt(t)!==dr||t+1>=r||e.charCodeAt(t+1)!==dr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=zd(e,n,r);if(o>n){n=o;continue}}if(s===dr&&e.charCodeAt(n+1)===dr&&n>t+2){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function Uy(e,t,r){return e<ql?!!(qd(e)&Ui):Aq.test(t[r])}function By(e,t,r){return e<ql?!!(qd(e)&ii):Oq.test(t[r])}function hz(e,t,r){var i=e.charCodeAt(t);if(i!==xt&&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=By(n,e,t-1),l=By(s,e,t+a),u=t>0?Uy(n,e,t-1):!1,c=t+a<r?Uy(s,e,t+a):!1,f=!l&&(!c||o||u),m=!o&&(!u||l||c),d,p;return i===xt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function gz(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 u={node:e[l],prev:o,next:null};o?o.next=u:s=u,n[l]=u,o=u}for(var c=Array(t.length),f=0;f<t.length;f++)c[f]=n[t[f].idx];for(var m=[],d=0;d<12;d++)m[d]=-1;for(var p=0;p<t.length;){var k=t[p];if(!(k.active&&k.canClose)){p++;continue}for(var v=k.ch===xt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=m[g]===void 0?-1:m[g],w=-1,C=p-1;C>b;C--){var h=t[C];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=C;break}}if(w<0){m[g]=p-1,!k.canOpen&&(k.active=!1),p++;continue}var y=t[w],S=y.len>=2&&k.len>=2,A=S?2:1;y.len-=A,k.len-=A;var _=c[w],x=c[p],E=_.node,O=x.node;E.text=E.text.slice(0,E.text.length-A),O.text=O.text.slice(A);for(var R=[],T=_.next;T&&T!==x;)R.push(T.node),T=T.next;var D={type:ne.textFormatted,tag:S?"strong":"em",children:R},L={node:D,prev:_,next:x};_.next=L,x.prev=L;for(var J=w+1;J<p;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,E.text==="")){var Y=_.prev;L.prev=Y,Y?Y.next=L:s=L}if(k.len===0){if(k.active=!1,O.text===""){var X=x.next;L.next=X,X&&(X.prev=L)}}else continue;p++}for(var P=0,F=s;F;){var B=F.node;if(B.type===ne.text){var I=B;if(I.text===""){F=F.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,F=F.next;continue}}e[P++]=B,F=F.next}e.length=P}}function _o(e,t,r,i){return t(e,r,i)===null?null:e}var Vy=0,xf=0,Hy=0,Sf=0,Ky=0,Cf=0,Ic=0,lr=0;function yz(){return Ic===2147483647&&(xf=0,Sf=0,Cf=0,$o=0,Ic=0),++Ic}var Tc=null,$o=0,Po=[],jc=256;function Wy(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Wt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Sf===lr&&s>=Hy)return null;var o=$o===lr?Tc:null,l=o===null?0:o[s];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",s+1);if(c<0||c>=r)return Hy=s,Sf=lr,null;u=s+1;var f=0;Po[f++]=s;for(var m=r-s>=jc;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Tt&&u+1<r){u+=2;continue}if(d===Je){var p=zd(e,u,r);if(p>u){u=p;continue}}if(d===rt){var k=j1(e,u,r);if(k){u=k.end;continue}var v=dz(e,u,r);if(v>u){u=v;continue}}if(d===vt)Po[f++]=u;else if(d===jr){var g=Po[--f];o===null&&m&&u-s>=jc&&(o=Tc=new Int32Array(r),$o=lr),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&m&&u-s>=jc&&(o=Tc=new Int32Array(r),$o=lr),o!==null)for(;f>0;)o[Po[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),C=u<r?e.charCodeAt(u):0,h=!1;if(C===Er){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var S="",A=u;if(u<r&&e.charCodeAt(u)===rt){for(u++,A=u;A<r&&e.charCodeAt(A)!==Re;){if(e.charCodeAt(A)===Tt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===fe){y=!1;break}A++}y&&(A>=r||e.charCodeAt(A)!==Re)&&(y=!1),y&&(S=e.slice(u,A),A++)}else if(y){var _=xf===lr?Vy:-1;if(_>=0&&u>=_)y=!1;else{for(var x=0,E=!1;A<r;){var O=e.charCodeAt(A);if(O===Tt&&A+1<r){A+=2;continue}if(O===Er)x++;else if(O===Pr){if(E=!0,x===0)break;x--}else if(O===se||O===fe)break;A++}A>=r&&!E&&(_<0||u<_)&&(Vy=u,xf=lr),S=e.slice(u,A)}}if(y){for(u=A;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var R;if(u<r){var T=e.charCodeAt(u);if(T===hi||T===pi||T===Er){var D=T===Er?41:T;u++;for(var L=u;u<r&&e.charCodeAt(u)!==D;)e.charCodeAt(u)===Tt&&u+1<r&&u++,u++;u>=r?y=!1:(R=e.slice(L,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Pr)&&(y=!1)}}if(y){if(u++,S=Pn(Wi(S)),R!==void 0&&(R=Pn(Wi(R))),n){var J=Vr(w,0,w.length,i,a),Y=cl(J);return{node:{type:ne.image,target:_o(S,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:Y,title:R},end:u}}var X=i.inAnchor;i.inAnchor=!0;var $=X?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=X,!i.inAnchor&&Ef($)?null:{node:{type:ne.link,target:_o(S,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:R,children:$},end:u}}u=b+1,h=!0}var P="",F=u;if(!h&&C===vt){var B=u+1;F=B;for(var I=!1;F<r&&e.charCodeAt(F)!==jr;){if(e.charCodeAt(F)===Tt&&F+1<r){F+=2;continue}if(e.charCodeAt(F)===vt){I=!0;break}F++}if(I||F>=r)return null;var N=e.slice(B,F);if(N.trim())P=qo(N);else{if(jy(w))return null;P=qo(w)}F+=1}else{if(jy(w))return null;P=qo(w)}var M=(H=i.refs)==null?void 0:H[P];if(!M)return null;if(n)return{node:{type:ne.image,target:_o(M.target,(a==null?void 0:a.sanitizer)||nn,"img","src"),alt:cl(Vr(w,0,w.length,i,a)),title:M.title},end:F};var U=i.inAnchor;i.inAnchor=!0;var $=U?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=U,!i.inAnchor&&Ef($)?null:{node:{type:ne.link,target:_o(M.target,(a==null?void 0:a.sanitizer)||nn,"a","href"),title:M.title,children:$},end:F}}function j1(e,t,r){if(e.charCodeAt(t)!==rt)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Re)break;if(a===se||a===fe||a===Dn||a===rt)return null;i++}if(i>=r||e.charCodeAt(i)!==Re)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: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 vz(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==fn||Cf===lr&&t>=Ky)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return Ky=t,Cf=lr,null;if(e.charCodeAt(a)!==jr)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${yi(n)}`,text:n},end:a+1}:null}function bz(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===al||s===72?t+8<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===Ki&&e.charCodeAt(t+3)===pf&&(e.charCodeAt(t+4)===w1&&e.charCodeAt(t+5)===qt&&e.charCodeAt(t+6)===yt&&e.charCodeAt(t+7)===yt?a="https://":e.charCodeAt(t+4)===qt&&e.charCodeAt(t+5)===yt&&e.charCodeAt(t+6)===yt&&(a="http://")):s===mi||s===70?t+6<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===pf&&e.charCodeAt(t+3)===qt&&e.charCodeAt(t+4)===yt&&e.charCodeAt(t+5)===yt&&(a="ftp://"):(s===si||s===87)&&t+4<=r&&e.charCodeAt(t+1)===si&&e.charCodeAt(t+2)===si&&e.charCodeAt(t+3)===mr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===se||y===fe||y===le||y===Dn||y===rt||y===Re)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Er?l++:f===Pr&&u++}let m=o;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===mr||y===mq||y===qt||y===Wt||y===ma||y===Pr||y===xt||y===gt||y===_t){if(y===Pr){if(l>=u)break;u--}m--}else if(y===sl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=xe&&e.charCodeAt(d)<=Ee||e.charCodeAt(d)>=Xe&&e.charCodeAt(d)<=ut||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=je);)d--;d>=t&&e.charCodeAt(d)===Ll?m=d:m--}else break}if(m<=t+a.length)return null;var p=t+(n?4:a.length),k=e.indexOf("/",p);if((k<0||k>m)&&(k=m),n&&e.indexOf(".",p)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=p;b--)if(e.charCodeAt(b)===mr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:p,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var C=e.slice(t,m),h=n?`http://${C}`:C;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:C}]},end:m}}function kz(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je||s===mr||s===Wt||s===br||s===36||s===df||s===Ll||s===pi||s===xt||s===Mn||s===yt||s===dr||s===ma||s===fn||s===gt||s===Je||s===gi||s===It||s===Md||s===_t||s===Oe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==k1)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je)a++;else if((s===Oe||s===gt)&&a>o)a++;else if(s===mr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===Oe||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=xe&&f<=Ee||f>=Xe&&f<=ut||f>=Te&&f<=je)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var m=e.charCodeAt(a-1);if(!(m>=xe&&m<=Ee||m>=Xe&&m<=ut||m>=Te&&m<=je)||a<=l+1)return null;for(var d=-1,p=l-1;p>=o;p--)if(e.charCodeAt(p)===mr){d=p;break}for(var k=d>=0?d+1:o,p=k;p<a;p++)if(e.charCodeAt(p)===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 Ef(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Ef(e[t].children))return!0;return!1}function cl(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+=cl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Af(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=ez(r(cl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&Af(s,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)Af(o[l],t,r)}}function ei(e){return{type:ne.text,text:e}}function wz(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===br){i++;var a=i<r&&(e.charCodeAt(i)===x1||e.charCodeAt(i)===S1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Te&&o<=je||a&&(o>=xe&&o<=mf||o>=Xe&&o<=mi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===sl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=xe&&c<=Ee||c>=Xe&&c<=ut||c>=Te&&c<=je){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===sl?i+1:-1}function xz(e,t,r,i,a){if(e.charCodeAt(t)!==rt)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)===Oe&&n+2<r&&e.charCodeAt(n+2)===Oe){var o=n+3;if(o<r&&e.charCodeAt(o)===Re)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Oe&&e.charCodeAt(o+1)===Re)return{node:{type:ne.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===ma){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(s===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>=xe&&c<=Ee){var m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+1}:null}}if(s===yt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=xe&&p<=Ee||p>=Xe&&p<=ut))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=xe&&k<=Ee||k>=Xe&&k<=ut||k>=Te&&k<=je||k===Oe)d++;else break}for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Re){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(!(s>=xe&&s<=Ee||s>=Xe&&s<=ut))return null;var g=$r(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),C=g.n;if(C||vs(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:zr(g.attrs,b,a),m:g.q?vf(g):e.slice(t,g.end),a:!1},end:g.end};var h=bs.has(w),y=wf(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:zr(g.attrs,b,a),m:g.q?vf(g):e.slice(t,g.end),a:!1},end:g.end};var S=sz(e,`</${w}`,y),A=e.slice(g.end,S);if(h){var _=rr(A);return{node:{type:ne.htmlBlock,tag:b,attrs:zr(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 x=[],E=A.trim();if(E){var{inAnchor:O,inline:R,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var D=E.indexOf(`
116
136
 
117
- `)!==-1||/^#{1,6}\s/.test(E);F?(i.inline=!1,x=In(E,i,a)):x=Vr(E,0,E.length,i,a),i.inAnchor=O,i.inline=j,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:zr(g.attrs,b,a),b:g.b,children:x,text:rr(A),c:!1,a:!1},end:y}}var FM=200,Na=0;function Vr(e,t,r,i,a){if(Na++,Na>FM)return Na--,[{type:ne.text,text:e.slice(t,r)}];var n=lr;lr=PM();let s=i;if(a.optimizeForStreaming){let ee=function(He,bt){for(var Et=1,ot=bt+1;ot<He.length;ot++){var kt=He.charCodeAt(ot);if(kt===vt)Et++;else if(kt===jr&&(Et--,Et===0))return ot}return-1},te=e.slice(t,r),pe=te;for(var o=0,l=0,u=0,c=0,f=0,m=-1,d=-1,p=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===xt?g+1<te.length&&te.charCodeAt(g+1)===xt?(o++,m=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,p=g,g++):(c++,k=g):b===_t&&g+1<te.length&&te.charCodeAt(g+1)===_t&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&p>=0&&w.push([p,2]),c%2===1&&k>=0&&w.push([k,1]),o%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((He,bt)=>bt[0]-He[0]);for(var C=0;C<w.length;C++){var h=w[C][0],y=w[C][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,ct=-1;for(let He=0;He<te.length;He++)te.charCodeAt(He)===Je&&(ce++,ct=He);if(ce%2===1&&ct!==-1){let He=!1,bt=-1,Et=0;for(;Et<te.length;)te.charCodeAt(Et)===Je&&(He?(He=!1,bt=-1):(bt=Et,He=!0)),Et++;He&&bt!==-1&&(te=te.slice(0,bt))}for(var S=!0;S;){S=!1;for(var A=-1,_=-1,x=-1,E=!1,O=0;O<te.length;O++){var j=te.charCodeAt(O);if(j===vt&&(O===0||te.charCodeAt(O-1)!==Tt)){var T=O>0&&te.charCodeAt(O-1)===Wt,F=T?O-1:O,L=ee(te,O);if(L===-1)A=F,E=T,_=O+1,x=te.length;else{var J=L+1;if(J>=te.length)A=F,E=T,_=O+1,x=L;else if(te.charCodeAt(J)===Er){var Y=te.indexOf(")",J+1);Y===-1?(A=F,E=T,_=O+1,x=L,O=te.length):O=Y}else if(te.charCodeAt(J)===vt){var Q=te.indexOf("]",J+1);Q===-1?(A=F,E=T,_=O+1,x=L,O=te.length):O=Q}else O=L}}}if(A>=0){var P=E?"":te.slice(_,x);te=te.slice(0,A)+P,S=!0}}let Fe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Fe&&Fe.index!==void 0){var D=Fe[0].length-Fe[2].length,B=D>=2&&Fe[0].charCodeAt(D-2)===yt;if(!B){for(var I=!1,R=0,M=0;M<Fe.index;M++)te.charCodeAt(M)===Je&&R++;if(I=R%2===1,!I){let He=Fe[1];xn(te,`</${He}`,0)===-1&&(te=te.slice(0,Fe.index)+Fe[2])}}}te!==pe&&(e=e.slice(0,t)+te,r=t+te.length)}let U=[];var $=[];let H=t;var G="",X=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(X>=r&&(X=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=SM(e,t,r),!te){var z=Ln(e,t,r,Je);t+=z-1}}else if(ee===xt||ee===gt){var q=OM(e,t,r);if(q){if(q.canOpen||q.canClose){(G||t>H)&&(U.push(Xn(G+e.slice(H,t))),G="");var W=e.slice(t,t+q.len),K=Xn(W);$.push({idx:U.length,ch:ee,len:q.len,canOpen:q.canOpen,canClose:q.canClose,active:!0}),U.push(K),t+=q.len,H=t;continue}t+=q.len-1}}else if(ee===_t)te=EM(e,t,r,s,a);else if(ee===dr)te=AM(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===cn&&(te=IM(e,t,r)),te||(te=Xh(e,t,r,s,a));else if(ee===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)te=Xh(e,t,r,s,a);else if(ee===rt)te=h1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=NM(e,t,r,s,a));else if(ee===jl){var ie=RM(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=_n(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===tl||ee===si||ee===mi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==rt)){var ge=t+1<r?e.charCodeAt(t+1):0;(ee===tl&&ge===Ki||ee===mi&&ge===Ki||ee===si&&ge===si)&&(te=TM(e,t,r,a))}if(!te&&X>=0&&X-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=xe&&ee<=Ee||ee>=Xe&&ee<=ut||ee>=Te&&ee<=je)&&(te=jM(e,t,r,a),!te&&t>=X&&(X=e.indexOf("@",t+1),X>=r&&(X=-1))),ee===fe&&s.k){var we=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Tt)we=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(we=!0,ke=Pe)}if(we){for((G||t-ke>H)&&(U.push(Xn(G+e.slice(H,t-ke))),G=""),U.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ve=t>H&&e.charCodeAt(t-1)===se,st=t+1<r&&e.charCodeAt(t+1)===se;if(Ve||st){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(G+=`${e.slice(H,ve)}
118
- `,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(te)(G||t>H)&&(U.push(Xn(G+e.slice(H,t))),G=""),U.push(te.node),t=te.end,H=t;else{if(ee===Tt&&t+1<r){let pe=e.charCodeAt(t+1);if(Rd(pe)&$i){(G||t>H)&&(U.push(Xn(G+e.slice(H,t))),G=""),U.push(Xn(e[t+1])),t+=2,H=t;continue}}if(t++,X<0||X-t>64)for(;t<r&&!(X>=0&&X-t<=64);){var Z=e.charCodeAt(t);if(Z<Rl&&!c1[Z])t++;else break}}}return(G||r>H)&&(U.push(Xn(G+e.slice(H,r))),G=""),$.length>0&&_M(U,$),lr=n,Na--,U}var DM=500;function In(e,t,r){var i=t.o||0;if(i>DM)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)===It){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==It&&l!==qt&&l!==Oe){s=!0;break}}for(var u=!1,c=!1,f=0,m=n,d=n-1;d>0;){for(var p=d;p>0&&e.charCodeAt(p-1)!==fe;)p--;if(e.charCodeAt(p)!==It)break;m=p;for(var k=!0,v=!1,g=p;g<d;g++){var b=e.charCodeAt(g);if(b===Oe)v=!0;else if(b!==se&&b!==le&&b!==qt&&b!==It){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=p-1}s?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,m).trimEnd()}for(var w=-1,C=-1,h=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===rt){for(var A=S+1<e.length?e.charCodeAt(S+1):0,_=A>=xe&&A<=Ee||A>=Xe&&A<=ut,x=A===yt&&S+2<e.length&&(e.charCodeAt(S+2)>=xe&&e.charCodeAt(S+2)<=Ee||e.charCodeAt(S+2)>=Xe&&e.charCodeAt(S+2)<=ut),E=A===Wt||A===da,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var j=S+1>=O;if(_||x||E||j){var T=S+1;if((x||_)&&(T=S+2),_||x)for(;T<e.length;){var F=e.charCodeAt(T);if(F>=xe&&F<=Ee||F>=Xe&&F<=ut||F>=Te&&F<=je)T++;else break}for(var L=_||x?T:S+2;L<e.length&&e.charCodeAt(L)!==Re;)L++;if(L>=e.length)w=S,y=!0;else if((_||x)&&e.charCodeAt(L-1)!==yt){for(var J=!1,Y=L+1;Y<e.length;Y++)if(e.charCodeAt(Y)===rt){J=!0;break}J||(w=S,C=T,h=L+1)}}break}if(w>=0){for(var Q=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&Q++;if(Q%2===0)if(y)e=e.slice(0,w);else{var D=e.slice(w+1,C);xn(e,`</${D}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var B=e.length;B>0&&e.charCodeAt(B-1)===fe;)B--;if(B>0){for(var I=B;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var R=I,M=0;R<B&&e.charCodeAt(R)===se&&M<3;)R++,M++;if(I>0&&R<B&&pM(e,R,B)){for(var U=I-1,$=U;$>0&&e.charCodeAt($-1)!==fe;)$--;Ht(e,$,U)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
119
- `),X=G===-1?0:G+1,z=H,q=X,W=0;q<z&&e.charCodeAt(q)===se&&W<3;)q++,W++;if(q<z){var K=e.charCodeAt(q),ie=!1;if(K===xt||K===Oe||K===Mn){var re=q+1;if(re>=z||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(K>=Te&&K<=je){for(var ge=q;ge<z&&e.charCodeAt(ge)>=Te&&e.charCodeAt(ge)<=je;)ge++;if(ge<z&&(e.charCodeAt(ge)===mr||e.charCodeAt(ge)===Pr)){var we=ge+1;if(we>=z||e.charCodeAt(we)===se||e.charCodeAt(we)===le){for(var ke=we;ke<z&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,X).trimEnd())}}}if(t.inline)return Vr(e,0,e.length,t,r);let Pe=[],de=0,Ve=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=TD(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let ct=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:ct})}de=ce.endPos}}for(;de<Ve;){for(var st=e.indexOf(`
137
+ `)!==-1||/^#{1,6}\s/.test(E);D?(i.inline=!1,x=Tn(E,i,a)):x=Vr(E,0,E.length,i,a),i.inAnchor=O,i.inline=R,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:zr(g.attrs,b,a),b:g.b,children:x,text:rr(A),c:!1,a:!1},end:y}}var Sz=200,Fa=0;function Vr(e,t,r,i,a){if(Fa++,Fa>Sz)return Fa--,[{type:ne.text,text:e.slice(t,r)}];var n=lr;lr=yz();let s=i;if(a.optimizeForStreaming){let ee=function(He,bt){for(var Et=1,ot=bt+1;ot<He.length;ot++){var kt=He.charCodeAt(ot);if(kt===vt)Et++;else if(kt===jr&&(Et--,Et===0))return ot}return-1},te=e.slice(t,r),pe=te;for(var o=0,l=0,u=0,c=0,f=0,m=-1,d=-1,p=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===xt?g+1<te.length&&te.charCodeAt(g+1)===xt?(o++,m=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,p=g,g++):(c++,k=g):b===_t&&g+1<te.length&&te.charCodeAt(g+1)===_t&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&p>=0&&w.push([p,2]),c%2===1&&k>=0&&w.push([k,1]),o%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((He,bt)=>bt[0]-He[0]);for(var C=0;C<w.length;C++){var h=w[C][0],y=w[C][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,ct=-1;for(let He=0;He<te.length;He++)te.charCodeAt(He)===Je&&(ce++,ct=He);if(ce%2===1&&ct!==-1){let He=!1,bt=-1,Et=0;for(;Et<te.length;)te.charCodeAt(Et)===Je&&(He?(He=!1,bt=-1):(bt=Et,He=!0)),Et++;He&&bt!==-1&&(te=te.slice(0,bt))}for(var S=!0;S;){S=!1;for(var A=-1,_=-1,x=-1,E=!1,O=0;O<te.length;O++){var R=te.charCodeAt(O);if(R===vt&&(O===0||te.charCodeAt(O-1)!==Tt)){var T=O>0&&te.charCodeAt(O-1)===Wt,D=T?O-1:O,L=ee(te,O);if(L===-1)A=D,E=T,_=O+1,x=te.length;else{var J=L+1;if(J>=te.length)A=D,E=T,_=O+1,x=L;else if(te.charCodeAt(J)===Er){var Y=te.indexOf(")",J+1);Y===-1?(A=D,E=T,_=O+1,x=L,O=te.length):O=Y}else if(te.charCodeAt(J)===vt){var X=te.indexOf("]",J+1);X===-1?(A=D,E=T,_=O+1,x=L,O=te.length):O=X}else O=L}}}if(A>=0){var P=E?"":te.slice(_,x);te=te.slice(0,A)+P,S=!0}}let Fe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Fe&&Fe.index!==void 0){var F=Fe[0].length-Fe[2].length,B=F>=2&&Fe[0].charCodeAt(F-2)===yt;if(!B){for(var I=!1,N=0,M=0;M<Fe.index;M++)te.charCodeAt(M)===Je&&N++;if(I=N%2===1,!I){let He=Fe[1];xn(te,`</${He}`,0)===-1&&(te=te.slice(0,Fe.index)+Fe[2])}}}te!==pe&&(e=e.slice(0,t)+te,r=t+te.length)}let U=[];var $=[];let H=t;var G="",Z=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(Z>=r&&(Z=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=fz(e,t,r),!te){var z=Ln(e,t,r,Je);t+=z-1}}else if(ee===xt||ee===gt){var q=hz(e,t,r);if(q){if(q.canOpen||q.canClose){(G||t>H)&&(U.push(ei(G+e.slice(H,t))),G="");var W=e.slice(t,t+q.len),K=ei(W);$.push({idx:U.length,ch:ee,len:q.len,canOpen:q.canOpen,canClose:q.canClose,active:!0}),U.push(K),t+=q.len,H=t;continue}t+=q.len-1}}else if(ee===_t)te=mz(e,t,r,s,a);else if(ee===dr)te=pz(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===fn&&(te=vz(e,t,r)),te||(te=Wy(e,t,r,s,a));else if(ee===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)te=Wy(e,t,r,s,a);else if(ee===rt)te=j1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=xz(e,t,r,s,a));else if(ee===Ll){var ie=wz(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Pn(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===al||ee===si||ee===mi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==rt)){var ge=t+1<r?e.charCodeAt(t+1):0;(ee===al&&ge===Ki||ee===mi&&ge===Ki||ee===si&&ge===si)&&(te=bz(e,t,r,a))}if(!te&&Z>=0&&Z-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=xe&&ee<=Ee||ee>=Xe&&ee<=ut||ee>=Te&&ee<=je)&&(te=kz(e,t,r,a),!te&&t>=Z&&(Z=e.indexOf("@",t+1),Z>=r&&(Z=-1))),ee===fe&&s.k){var we=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Tt)we=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(we=!0,ke=Pe)}if(we){for((G||t-ke>H)&&(U.push(ei(G+e.slice(H,t-ke))),G=""),U.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ve=t>H&&e.charCodeAt(t-1)===se,st=t+1<r&&e.charCodeAt(t+1)===se;if(Ve||st){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(G+=`${e.slice(H,ve)}
138
+ `,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(te)(G||t>H)&&(U.push(ei(G+e.slice(H,t))),G=""),U.push(te.node),t=te.end,H=t;else{if(ee===Tt&&t+1<r){let pe=e.charCodeAt(t+1);if(qd(pe)&Ui){(G||t>H)&&(U.push(ei(G+e.slice(H,t))),G=""),U.push(ei(e[t+1])),t+=2,H=t;continue}}if(t++,Z<0||Z-t>64)for(;t<r&&!(Z>=0&&Z-t<=64);){var Q=e.charCodeAt(t);if(Q<ql&&!O1[Q])t++;else break}}}return(G||r>H)&&(U.push(ei(G+e.slice(H,r))),G=""),$.length>0&&gz(U,$),lr=n,Fa--,U}var Cz=500;function Tn(e,t,r){var i=t.o||0;if(i>Cz)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)===It){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==It&&l!==qt&&l!==Oe){s=!0;break}}for(var u=!1,c=!1,f=0,m=n,d=n-1;d>0;){for(var p=d;p>0&&e.charCodeAt(p-1)!==fe;)p--;if(e.charCodeAt(p)!==It)break;m=p;for(var k=!0,v=!1,g=p;g<d;g++){var b=e.charCodeAt(g);if(b===Oe)v=!0;else if(b!==se&&b!==le&&b!==qt&&b!==It){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=p-1}s?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,m).trimEnd()}for(var w=-1,C=-1,h=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===rt){for(var A=S+1<e.length?e.charCodeAt(S+1):0,_=A>=xe&&A<=Ee||A>=Xe&&A<=ut,x=A===yt&&S+2<e.length&&(e.charCodeAt(S+2)>=xe&&e.charCodeAt(S+2)<=Ee||e.charCodeAt(S+2)>=Xe&&e.charCodeAt(S+2)<=ut),E=A===Wt||A===ma,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var R=S+1>=O;if(_||x||E||R){var T=S+1;if((x||_)&&(T=S+2),_||x)for(;T<e.length;){var D=e.charCodeAt(T);if(D>=xe&&D<=Ee||D>=Xe&&D<=ut||D>=Te&&D<=je)T++;else break}for(var L=_||x?T:S+2;L<e.length&&e.charCodeAt(L)!==Re;)L++;if(L>=e.length)w=S,y=!0;else if((_||x)&&e.charCodeAt(L-1)!==yt){for(var J=!1,Y=L+1;Y<e.length;Y++)if(e.charCodeAt(Y)===rt){J=!0;break}J||(w=S,C=T,h=L+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 F=e.slice(w+1,C);xn(e,`</${F}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var B=e.length;B>0&&e.charCodeAt(B-1)===fe;)B--;if(B>0){for(var I=B;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var N=I,M=0;N<B&&e.charCodeAt(N)===se&&M<3;)N++,M++;if(I>0&&N<B&&rz(e,N,B)){for(var U=I-1,$=U;$>0&&e.charCodeAt($-1)!==fe;)$--;Ht(e,$,U)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
139
+ `),Z=G===-1?0:G+1,z=H,q=Z,W=0;q<z&&e.charCodeAt(q)===se&&W<3;)q++,W++;if(q<z){var K=e.charCodeAt(q),ie=!1;if(K===xt||K===Oe||K===Mn){var re=q+1;if(re>=z||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(K>=Te&&K<=je){for(var ge=q;ge<z&&e.charCodeAt(ge)>=Te&&e.charCodeAt(ge)<=je;)ge++;if(ge<z&&(e.charCodeAt(ge)===mr||e.charCodeAt(ge)===Pr)){var we=ge+1;if(we>=z||e.charCodeAt(we)===se||e.charCodeAt(we)===le){for(var ke=we;ke<z&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,Z).trimEnd())}}}if(t.inline)return Vr(e,0,e.length,t,r);let Pe=[],de=0,Ve=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=bq(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let ct=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:ct})}de=ce.endPos}}for(;de<Ve;){for(var st=e.indexOf(`
120
140
  `,de),ve=st<0?Ve:st;de<Ve&&Ht(e,de,ve);)de=ve<Ve?ve+1:ve,de<Ve&&(st=e.indexOf(`
121
- `,de),ve=st<0?Ve:st);if(de>=Ve)break;var Z=e.charCodeAt(de)===pf;Ct(e,de,ve);let ce=null;if(vf=e,bf=de,qo=ve,!Z&&Ge>=4&&!t.inHTML)ce=gM(e,de);else if(!Z){let ct=de+Ke,Fe=e.charCodeAt(ct);Fe===br?ce=mM(e,de,t,r):Fe===Re?ce=yM(e,de,t,r):Fe===Je||Fe===_t?ce=hM(e,de):Fe===Oe||Fe===xt||Fe===gt?(ce=Pn(e,de),!ce&&(ce=Bh(e,de,t,r))):Fe===Mn||Fe>=Te&&Fe<=je?ce=Bh(e,de,t,r):Fe===rt?ce=p1(e,de,t,r):Fe===It?ce=Hh(e,de,t,r):Fe===vt&&(ce=kM(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===It){ee=!0;break}ee&&(ce=Hh(e,de,t,r))}if(ce||(ce=xM(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var pe=e.indexOf(`
122
- `,de);de=pe<0?Ve:pe+1}}return t.o=i,Pe}function MM(e,t,r,i){var a=$r(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(`
141
+ `,de),ve=st<0?Ve:st);if(de>=Ve)break;var Q=e.charCodeAt(de)===hf;Ct(e,de,ve);let ce=null;if(bf=e,kf=de,zo=ve,!Q&&Ge>=4&&!t.inHTML)ce=iz(e,de);else if(!Q){let ct=de+Ke,Fe=e.charCodeAt(ct);Fe===br?ce=tz(e,de,t,r):Fe===Re?ce=az(e,de,t,r):Fe===Je||Fe===_t?ce=nz(e,de):Fe===Oe||Fe===xt||Fe===gt?(ce=In(e,de),!ce&&(ce=qy(e,de,t,r))):Fe===Mn||Fe>=Te&&Fe<=je?ce=qy(e,de,t,r):Fe===rt?ce=T1(e,de,t,r):Fe===It?ce=$y(e,de,t,r):Fe===vt&&(ce=lz(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===It){ee=!0;break}ee&&(ce=$y(e,de,t,r))}if(ce||(ce=cz(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var pe=e.indexOf(`
142
+ `,de);de=pe<0?Ve:pe+1}}return t.o=i,Pe}function Ez(e,t,r,i){var a=$r(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(`
123
143
  `)||a.b.includes(`
124
- `),endPos:a.end}:null}function Fd(e,t,r){Na=0,e=zD(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=fM(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=In(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 u=s[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=Vr(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=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var m=a,d=0;d<m.length;d++)for(var p=m[d],k=0;k<p.src.length;k++){var v=p.src[k];if(p.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)p.dest.push(g[b]);else p.dest.push(v)}t.t=void 0,t.p=void 0,Ef(n,t,r.slugify)}return l1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Af;try{Ti=tn.createElement("div"),Af=Ti!=null&&typeof Ti=="object"&&"$$typeof"in Ti&&typeof Ti.$$typeof=="symbol"?Ti.$$typeof:Symbol.for("react.transitional.element")}catch{Af=Symbol.for("react.transitional.element")}var Ti;function Of(e,t,r){return{$$typeof:Af,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function sr(e,t){var r={key:e};if(t){var i=o1(t);for(var a in i)r[a]=i[a]}return r}var Zh=typeof tn.createContext>"u"?void 0:tn.createContext(void 0);function Qh(e,t,r,i,a,n,s,o,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),yi)}`,e.children.unshift(BD(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 o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?_n(e.lang):"";var u=e.attrs?o1(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(Li(o)&&Ih(g.tag)){var c=Ph(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...GD(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,C=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(C&&g.c){let h=g.tag.toLowerCase(),y=iM(h),S=g.children,A=S!=null&&S.length>0;if(y){let F=w?b:g.e||"",L=Li(o)?Th(F):F;if(/<[a-z][^>]{0,100}>/i.test(C)){var f=sr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:L},l(e.tag,f)}return l(e.tag,sr(r.key,e.attrs),L)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(A&&!_.test(C)&&Li(o)&&eM(C))return l(e.tag,sr(r.key,e.attrs),t(S,r));if(aM(C)){let F=Li(o)?Th(C):C;var m=sr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},l(e.tag,m)}let x=jd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),E=$D(C);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(E))return g.children&&g.children.length>0?l(e.tag,sr(r.key,e.attrs),t(g.children,r)):l(e.tag,sr(r.key,e.attrs));let O=Fd(E,{inline:!1,refs:s,inHTML:!1},x);u1(O);let j=g.tag.toLowerCase(),T=w;if(T&&A)return l(e.tag,sr(r.key,e.attrs),t(S,r));if(T)return t(O.flatMap(Ui),r);var d=KD(O,j);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(Ui),k=d.afterClose.flatMap(Ui);return Of(tn.Fragment,{children:[l(e.tag,sr(r.key,e.attrs),t(p,r)),t(k,r)]},r.key)}return l(e.tag,sr(r.key,e.attrs),t(O.flatMap(Ui),r))}return gs(e.tag)?l(e.tag,sr(r.key,e.attrs)):l(e.tag,sr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(Li(o)&&Ih(g.tag)){var v=Ph(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,sr(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=JD(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(C,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(C,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 LM=(e,t,r,i,a,n,s)=>{var o=u=>u.map(c=>"text"in c?c.text:""),l=(u,c={})=>{var f=Array.isArray(u)?u:[u],m=(c.renderDepth||0)+1;if(m>2500)return o(f);c.renderDepth=m;for(var d=c.key,p=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=Qh.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=Qh(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var C=p.at(-1);p[p.length-1]=(typeof C=="string"?C:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)p.push(g[h]);else p.push(g);k=w}return c.key=d,c.renderDepth=m-1,p};return l},qM=(e,t)=>{let r=hf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:hf(t,`${e}.component`,e):e};function zM(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||yi,a=r.sanitizer||rn,n=r.createElement,s=l1(r.overrides),o=w=>_f(w,{...r,wrapper:null});function l(w){for(var C in w){var h=w[C];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===rt&&(tM.test(h)||rM.test(h)||MM(h,0))){var y=o(h.trim());w[C]=C==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,C,...h){var y=C||{},S=w;if(s){var A=hf(r.overrides,`${w}.props`,{});S=qM(w,r.overrides),y={...y,...A,className:ZD(y.className,A.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),Of(S,y,_)}return n(S,y,...h)}function c(w,C,...h){return C&&l(C),u(w,C,...h)}let f=jd(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=LM(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),k=YD(m);if(k.length>0&&p.push(u("footer",{key:"footer"},k.map(function(w){let C=w.identifier.charCodeAt(0)===cn?w.identifier.slice(1):w.identifier,h=Fd(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(C,yi),key:w.identifier},`${C}: `,d(h,{inline:!0,refs:m}))}))),r.wrapper===null)return p;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(p.length>1||r.forceWrapper)g=p;else return p.length===1?p[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,Of(v,b,"outer")}function _f(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||FD.test(n)),o=jd(r,s),l=s?n:HD(n),u=Fd(l,{inline:s,refs:a},o);return zM(u,{...r,forceInline:s})}let a={};return i(e)}function $M(e){let t=tn.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 vs=({children:e,options:t,...r})=>{if(!(typeof tn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return _f(e??"",o)}let i=Zh?tn.useContext(Zh):void 0,a=$M(r),n=tn.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 tn.useMemo(()=>_f(s,n),[s,n])};const g1=Symbol("remove-this-key"),eg=Symbol("reset");function UM(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function BM(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 y1(e){return!!(e!=null&&e[Sn])}function tg(e){return Object.keys(e).filter(t=>y1(e[t]))}function VM(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=V.useState(!1),{globalFormOptions:C,fields:h}=i,{SchemaField:y}=h,S=fa(Tr(p,C,t.path)),A=V.useCallback((O,j,T,F)=>{let L=O;O===void 0&&g&&(L=""),o(L,j,T,F)},[o,g]),_=V.useCallback(O=>{p!==O&&w(!0),k(p,O)},[p,k]),x=V.useCallback(O=>{const{target:{value:j}}=O;_(j)},[_]),E=V.useCallback(()=>{v(p)},[p,v]);return N.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:x,onRemoveProperty:E,onChange:A,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const HM=V.memo(VM);function KM(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!1,disabled:l,readonly:u,hideError:c,onBlur:f,onFocus:m,onChange:d,registry:p,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=p,{OptionalDataControlsField:C}=v,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=V.useMemo(()=>me(r,w),[r,w]),A=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,x=V.useRef({previousKey:"",currentKey:void 0}),[E,O]=V.useState(()=>tg(A)),j=V.useMemo(()=>{const $=new Set(tg(A));return Object.keys(A).filter(H=>!$.has(H))},[A]),T=S.title??y.title??k??s,F=S.description??y.description,L=hs(p,y,o,r),J=ca(i);let Y=[];const Q=V.useCallback(($,H)=>{const{duplicateKeySuffixSeparator:G="-"}=me(r,w);let X=0,z=$;for(;qe(H,z);)X+=1,z=`${$}${G}${X}`;return z},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const $={...i},H=Q("newKey",$);if(y.patternProperties)lt($,H,null);else{let G,X,z;if(Ue(y.additionalProperties)){G=y.additionalProperties.type,X=y.additionalProperties.const,z=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,X=W.const,z=g.getDefaultFormState(W,z)),!G&&(Le in W||Ae in W)&&(G="object")}const q=X??z??BM(b,G);lt($,H,q)}x.current.previousKey===H&&(x.current.currentKey=H,x.current.previousKey=Q(H,$)),O(G=>[...G,H]),d($,_.path)},[i,d,b,g,_,Q,y]),D=V.useCallback(($,H)=>{if($!==H){const G=h.current,X=Q(H,G),z={...G},q={[$]:X},W=Object.keys(z).map(ie=>({[Object.hasOwn(q,ie)?q[ie]:ie]:z[ie]})),K=Object.assign({},...W);h.current=K,$!==x.current.currentKey&&(x.current.previousKey=$),x.current.currentKey=X,O(ie=>ie.map(re=>re===$?X:re)),d(K,_.path)}},[d,_,Q]),B=V.useCallback($=>{O(H=>H.filter(G=>G!==$)),d(g1,[..._.path,$])},[d,_]),I=V.useCallback($=>x.current.currentKey===$?x.current.previousKey:$,[]);if(!L||J)try{const $=new Set(j),H=E.filter(G=>Object.hasOwn(A,G)&&!$.has(G));Y=yF([...j,...H],S.order)}catch($){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:b(_e.InvalidObjectField,[s||"root",$.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const R=ye("ObjectFieldTemplate",p,S),M=L?N.jsx(C,{...e,fieldPathId:_,schema:y}):void 0,U={title:S.label===!1?"":T,description:S.label===!1?void 0:F,properties:Y.map($=>{var q;const H=y1((q=y.properties)==null?void 0:q[$]),G=H?r.additionalProperties:r[$],X=me(G).widget==="hidden";return{content:N.jsx(HM,{propertyName:$,required:UM(y,$),schema:ae(y,[$e,$],{}),uiSchema:G,errorSchema:ae(a,[$]),fieldPathId:_,formData:ae(i,[$]),handleKeyRename:D,handleRemoveProperty:B,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I($)),name:$,readonly:u,disabled:l,required:o,hidden:X}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:M,className:L?"rjsf-optional-object-field":void 0};return N.jsx(R,{...U,onAddProperty:P})}function WM(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ye("OptionalDataControlsTemplate",u,d),k=ca(i);let v,g,b,w;if(a||n)v=qu(l,"Msg"),g=k?void 0:m(_e.OptionalObjectEmptyMsg);else{const C=k?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=m(C),k?(v=qu(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=qu(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=vr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&N.jsx(p,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const GM={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function JM(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=vr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=GM[o];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 YM(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:p,globalFormOptions:k,globalUiOptions:v,fields:g}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:C}=g,h=r[nt],y=V.useCallback((ke,Pe,de,Ve)=>o(ke,Pe,de,Ve||h),[h,o]);if(t[Zf])return N.jsx(C,{...e});const S=vF(t,i,m),A=me(S,v),_=ye("FieldTemplate",m,A),x=ye("DescriptionFieldTemplate",m,A),E=ye("FieldHelpTemplate",m,A),O=ye("FieldErrorTemplate",m,A),j=p.retrieveSchema(t,a),T=JM(j,A,m),L=!!j.deprecated?A.deprecatedHandling??"label":void 0,J=!!(A.disabled??e.disabled)||L==="disable",Y=!!(A.readonly??(e.readonly||e.schema.readOnly||j.readOnly)),Q=A.hideError,P=Q===void 0?e.hideError:!!Q,D=!!(A.autofocus??e.autofocus);if(Object.keys(j).length===0)return null;let B=p.getDisplayLabel(j,S,v);const I=A.field&&A.fieldReplacesAnyOrOneOf===!0;let R,M,U={fieldPathId:r};if((Le in j||Ae in j)&&!I&&!p.isSelect(j)){j[Le]?(R=b,M=j[Le].map(de=>p.retrieveSchema(Ue(de)?de:{},a))):j[Ae]&&(R=w,M=j[Ae].map(de=>p.retrieveSchema(Ue(de)?de:{},a)));const ke=hs(m,j,f,S),Pe=ca(a);B=B&&(!ke||Pe),U={childFieldPathId:r,fieldPathId:Tr("XxxOf",k,r)}}const{__errors:$,...H}=n||{},G=Ja(S,["ui:classNames","classNames","ui:style"]);Cn in G&&(G[Cn]=Ja(G[Cn],["classNames","style"]));const X=N.jsx(T,{...e,onChange:y,...U,schema:j,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:D,errorSchema:H,rawErrors:$}),z=r[nt];let q;d?q=s:q=Sn in j?s:A.title||e.schema.title||j.title||e.title||s,L==="label"&&(q=m.translateString(_e.DeprecatedLabel,[q]));const W=A.description||e.schema.description||j.description||"",{help:K}=A,ie=A.widget==="hidden"||L==="hide",re=["rjsf-field",`rjsf-field-${vr(j)}`];!P&&$&&$.length>0&&re.push("rjsf-field-error"),A.classNames&&re.push(A.classNames);const ue=N.jsx(E,{help:K,fieldPathId:r,schema:j,uiSchema:S,hasErrors:!P&&$&&$.length>0,registry:m}),ge=P||R&&!p.isSelect(j)?void 0:N.jsx(O,{errors:$,errorSchema:n,fieldPathId:r,schema:j,uiSchema:S,registry:m}),we={description:N.jsx(x,{id:$n(z),description:W,schema:j,uiSchema:S,registry:m}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ge,rawErrors:P?void 0:$,fieldPathId:r,id:z,label:q,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:Y,hideError:P,displayLabel:B,classNames:re.join(" ").trim(),style:A.style,formData:a,schema:j,uiSchema:S,registry:m};return N.jsx(_,{...we,children:N.jsxs(N.Fragment,{children:[X,R&&N.jsx(R,{name:s,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:j,uiSchema:S})]})})}const XM=V.memo(YM,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?uf(e,t):ze(e,t)});function ZM(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:m,registry:d,rawErrors:p,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:C,globalUiOptions:h}=d,y=C.isSelect(t)?di(t,i):void 0;let S=y?"select":"text";b&&dF(t,b,w)&&(S=b);const{widget:A=S,placeholder:_="",title:x,...E}=me(i),O=C.getDisplayLabel(t,i,h),j=x??v??g??r,T=Kr(t,A,w),F=V.useCallback((L,J,Y)=>c(L,a.path,J,Y),[c,a]);return N.jsx(T,{options:{...E,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:j,hideLabel:!O,hideError:k,value:n,onChange:F,onBlur:f,onFocus:m,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function QM(){return{AnyOfField:xh,ArrayField:BF,BooleanField:VF,CyclicSchemaField:HF,FallbackField:JF,LayoutGridField:Id,LayoutHeaderField:gD,LayoutMultiSchemaField:yD,NumberField:wD,ObjectField:KM,OneOfField:xh,OptionalDataControlsField:WM,SchemaField:XM,StringField:ZM,NullField:vD}}function e2(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=me(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ye("DescriptionFieldTemplate",i,s);return N.jsx(l,{id:$n(t),description:r,schema:a,uiSchema:n,registry:i})}function t2(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&N.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&N.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&N.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function r2(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=me(l),c=ye("ArrayFieldItemButtonsTemplate",o,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},p={display:"flex",justifyContent:"flex-end",marginTop:a?`${m}px`:0};return N.jsxs("div",{className:r,style:d,children:[N.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&N.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:N.jsx("div",{className:"btn-group",style:p,children:N.jsx(c,{...i,style:f})})})]})}function n2(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,onAddClick:l,readonly:u,registry:c,required:f,schema:m,title:d}=e,p=me(n),k=ye("ArrayFieldDescriptionTemplate",c,p),v=ye("ArrayFieldTitleTemplate",c,p),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(v,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),N.jsx(k,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:o,N.jsx("div",{className:"row array-item-list",children:s}),t&&N.jsx(b,{id:ir(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function i2(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=me(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ye("TitleFieldTemplate",s,l);return N.jsx(c,{id:_l(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function a2(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:Ed(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 s2(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...C}=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={...C,...iF(d,g,m)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const A=V.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),x=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),E=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return N.jsxs(N.Fragment,{children:[N.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?Ed(t):void 0,onChange:f||A,onBlur:_,onFocus:x,"aria-describedby":Rr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&N.jsx(h,{registry:k,onClick:E}),N.jsx(a2,{id:t,schema:d})]})}function o2(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return N.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:N.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const qn=V.memo(o2);function l2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.CopyButton),...e,icon:"copy"})}const u2=V.memo(l2);function c2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const f2=V.memo(c2);function d2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const m2=V.memo(d2);function p2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const h2=V.memo(p2);function g2({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return N.jsx(qn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const y2=V.memo(g2);function v2({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(qn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function b2({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Kk(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function k2(){return{SubmitButton:b2,AddButton:v2,CopyButton:u2,MoveDownButton:f2,MoveUpButton:m2,RemoveButton:h2,ClearButton:y2}}function w2(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[nt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[nt]),children:n(_e.ExpandButton)})," "]})]})}const v1=Sd();function b1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":v1.markdown,children:e}):e}b1.TEST_IDS=v1;function x2(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(b1,{description:r,registry:i,uiSchema:a})}):null}function S2({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(_e.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 C2(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ye("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function E2(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=Cd(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 k1=Sd();function w1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":k1.markdown,children:e}):e}w1.TEST_IDS=k1;function A2(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:Ad(t),className:"help-block",children:N.jsx(w1,{help:r,registry:a,uiSchema:i})}):null}const O2="*";function x1(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:O2})]}):null}function _2(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ye("WrapIfAdditionalTemplate",c,m);if(o)return N.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!p&&N.jsx(x1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function P2(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function I2(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 T2(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:l,readonly:u,registry:c,required:f,schema:m,title:d,uiSchema:p}=e,k=me(p),v=ye("TitleFieldTemplate",c,k),g=ye("DescriptionFieldTemplate",c,k);if((m.oneOf||m.anyOf)&&!m.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:C}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(v,{id:_l(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?o:void 0}),r&&N.jsx(g,{id:$n(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:o,l.map(h=>h.content),Cb(m,p,a)&&N.jsx(C,{id:ir(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:p,registry:c})]})}function j2(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(qn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(qn,{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 R2="*";function N2(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:R2}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function F2(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)),N.jsxs("div",{className:"unsupported-field",children:[N.jsx("p",{children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&N.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function D2(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:l,rawDescription:u,readonly:c,required:f,schema:m,hideError:d,rawErrors:p,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:C}=b.ButtonTemplates,h=w(_e.KeyLabel,[s]),y=Sn in m,S=!!u,A=["form-group",r];!d&&p&&p.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:k});const x=S?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(x1,{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:o,defaultValue:s},s)]})}),N.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${x}px`:void 0},children:N.jsx(C,{id:ir(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function M2(){return{ArrayFieldDescriptionTemplate:e2,ArrayFieldItemTemplate:r2,ArrayFieldItemButtonsTemplate:t2,ArrayFieldTemplate:n2,ArrayFieldTitleTemplate:i2,ButtonTemplates:k2(),BaseInputTemplate:s2,CyclicSchemaExpandTemplate:w2,DescriptionFieldTemplate:x2,ErrorListTemplate:S2,FallbackFieldTemplate:C2,FieldTemplate:_2,FieldErrorTemplate:E2,FieldHelpTemplate:A2,GridTemplate:P2,MultiSchemaFieldTemplate:I2,ObjectFieldTemplate:T2,OptionalDataControlsTemplate:j2,TitleFieldTemplate:N2,UnsupportedFieldTemplate:F2,WrapIfAdditionalTemplate:D2}}function L2({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function q2(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:u}=e,{translateString:c}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=CF(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>N.jsx("li",{className:"list-inline-item",children:N.jsx(SF,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,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:p,children:c(_e.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(_e.ClearLabel)})})]})}function z2({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>o(e,_r(b==null?void 0:b.value,f,p,d)),[o,e,f,d,p]),g=V.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=t||h||n?"disabled":"",S=_=>{_.target.checked?s(Vk(w,k,f)):s(Uk(w,k,f))},A=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:Pl(e,w),name:u||e,checked:C,value:ms(b.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),N.jsx("span",{children:b.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:A},String(b.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:A})},String(b.value))})})}function $2({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const k=ye("DescriptionFieldTemplate",d,r),v=$a(e),g=V.useCallback(S=>m(S.target.checked),[m]),b=V.useCallback(S=>c(i,S.target.checked),[c,i]),w=V.useCallback(S=>f(i,S.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&N.jsx(k,{id:$n(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":Rr(i)}),pF(N.jsx("span",{children:o}),l)]})]})}function U2(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function B2(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:PF(r),onChange:s=>t(hF(s))})}function V2(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function H2(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function K2({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)?N.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):N.jsxs(N.Fragment,{children:[" ",N.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function W2({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ye("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,m=()=>i(l);return N.jsxs("li",{children:[N.jsx(vs,{children:n(_e.FilesInfo,[u,f,String(c)])}),r&&N.jsx(K2,{fileInfo:o,registry:t}),N.jsx(s,{onClick:m,registry:t})]},l)})})}function G2(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=_F(s,n,a),m=ye("BaseInputTemplate",l,o),d=p=>{p.target.files&&c(p.target.files)};return N.jsxs("div",{children:[N.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),N.jsx(W2,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function J2({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function Y2(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function X2({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,k=ps(e),v=V.useCallback(({target:b})=>s(u,_r(b==null?void 0:b.value,f,k,p)),[s,f,p,u,k]),g=V.useCallback(({target:b})=>o(u,_r(b==null?void 0:b.value,f,k,p)),[o,f,p,u,k]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,t),h=Array.isArray(m)&&m.includes(b.value),y=i||h||a?"disabled":"",S=()=>l(b.value),A=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:Pl(u,w),checked:C,name:c||u,required:r,value:ms(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(u)}),N.jsx("span",{children:b.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:A},String(b.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:A})},String(b.value))})})}function Z2(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 Q2({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,onBlur:l,schema:u,options:c,htmlName:f}){const{stars:m=5,shape:d="star"}=c,p=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(m,1),5),k=u.minimum||0,v=V.useCallback(C=>{!i&&!a&&s(C)},[s,i,a]),g=V.useCallback(C=>{if(o){const h=Number(C.target.dataset.value);o(e,h)}},[o,e]),b=V.useCallback(C=>{if(l){const h=Number(C.target.dataset.value);l(e,h)}},[l,e]),w=C=>d==="heart"?C?"♥":"♡":C?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((C,h)=>{const y=k+h,S=y<=t;return N.jsx("span",{onClick:()=>v(y),onKeyDown:A=>(A.key==="Enter"||A.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:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Wu(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function eL({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:f,placeholder:m,htmlName:d,registry:p,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=o?[]:"",C=ps(r),h=V.useCallback(x=>{const E=Wu(x,o);return f(t,_r(E,v,C,b))},[f,t,o,v,b,C]),y=V.useCallback(x=>{const E=Wu(x,o);return c(t,_r(E,v,C,b))},[c,t,o,v,b,C]),S=V.useCallback(x=>{const E=Wu(x,o);return u(_r(E,v,C,b))},[u,o,v,b,C]),A=GN(i,v,o,C,w),_=!o&&e.default===void 0;return gF(t,e,v,o),N.jsxs(N.Fragment,{children:[N.jsx(bF,{id:t,multiple:o,options:r,registry:p,uiSchema:k,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:S,"aria-describedby":Rr(t),children:[_&&N.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:x,label:E},O)=>{const j=g&&g.includes(x);return N.jsx("option",{value:ms(x,O,C),disabled:j,children:E},String(x))})]})]})}function tL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=V.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=V.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),p=V.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:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:p,onChange:m,"aria-describedby":Rr(e)})}function rL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function nL(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function iL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function aL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function sL(){return{AltDateWidget:q2,AltDateTimeWidget:L2,CheckboxWidget:$2,CheckboxesWidget:z2,ColorWidget:U2,DateWidget:V2,DateTimeWidget:B2,EmailWidget:H2,FileWidget:G2,HiddenWidget:J2,PasswordWidget:Y2,RadioWidget:X2,RangeWidget:Z2,RatingWidget:Q2,SelectWidget:eL,TextWidget:rL,TextareaWidget:tL,TimeWidget:nL,UpDownWidget:iL,URLWidget:aL}}function oL(){return{fields:QM(),templates:M2(),widgets:sL(),rootSchema:{},formContext:{},translateString:WN,globalFormOptions:{idPrefix:kb,idSeparator:wb,useFallbackUiForUnsupportedType:!1}}}function ji(e,t){return{...Lk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let lL=class ni extends V.Component{constructor(r){super(r);$t(this,"formElement");$t(this,"pendingChanges",[]);$t(this,"isProcessingUserChange",!1);$t(this,"getUsedFormData",(r,i)=>MN(r,i));$t(this,"getFieldNames",(r,i)=>LN(r,i));$t(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});$t(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Tr("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[nt])});$t(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});$t(this,"reset",()=>{const{formData:r,initialFormData:i=eg,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(ji({...this.state,...o})))});$t(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:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),o==="onBlur"){const{schema:p,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(p,k,v,f,u,g,b);m={formData:f,...w,customErrors:g}}const d=Object.keys(m).filter(p=>!p.startsWith("schemaValidation")).some(p=>{const k=ae(this.state,p),v=ae(m,p);return!ze(k,v)});this.setState(m,()=>{l&&d&&l(ji({...this.state,...m}),r)})}});$t(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});$t(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||{},u=a?_d(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(ji({...this.state,formData:o},"submitted"),r)})}});$t(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});$t(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?ni.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},()=>{s?s(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,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&&!ze(this.state.formData,s)&&n(ji(this.state)),this.formElement=V.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}=Ra(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=Ra({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!ze(this.props,r)){const a=lh(this.props.formData,r.formData),n=lh(this.props.formData,this.state.formData),s=!ze(r.schema,this.props.schema),o=a.length>0||!ze(r.formData,this.props.formData),l=n.length>0||!ze(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),c=!ze(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!ze(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!ze(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(ji(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var Q;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,m=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,p=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=p&&!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=VN(f,c,g,b));const C=w.getRootSchema();let h=i;i===eg?h=void 0:i===void 0&&d&&(h=u.formData);let y,S,A=!1;const _=[];do{y=w.getDefaultFormState(C,h,!1,u.initialDefaultsGenerated);const P=l?fr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(C,y)),l&&!_.includes(P)&&!ze(S,u.retrievedSchema)){const D=w.sanitizeDataForNewSchema(S,u.retrievedSchema,y);if(A=!ze(D,y),A){y=D,h=D;const B=fr({formData:D});A=!_.includes(B),_.push(B)}_.push(P)}else A=!1}while(A);const x=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let E,O,{schemaValidationErrors:j,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(C,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);E=P.errors,O=P.errorSchema,j=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=x();if(E=P.errors,O=P.errorSchema,s.length>0&&!v){const B=s.reduce((I,R)=>(I[R]=void 0,I),{});T=Fn(P.errorSchema,B,"preventDuplicates"),O=T}const D=ni.mergeErrors({errorSchema:O,errors:E},r.extraErrors,u.customErrors);E=D.errors,O=D.errorSchema}const F=ni.getRegistry(r,C,w),L=ze(u.registry,F)?u.registry:F,J=u.fieldPathId&&((Q=u.fieldPathId)==null?void 0:Q[nt])===L.globalFormOptions.idPrefix?u.fieldPathId:Tr("",L.globalFormOptions);return{schemaUtils:w,schema:C,uiSchema:m,fieldPathId:J,formData:y,edit:p,errors:E,errorSchema:O,schemaValidationErrors:j,schemaValidationErrorSchema:T,retrievedSchema:S,initialDefaultsGenerated:!0,registry:L}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return kF(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,c,o,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=me(s),l=ye("ErrorListTemplate",r,o);return i!=null&&i.length?N.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=Ra(r,i);n=o.errorSchema,s=o.errors}if(a){const o=Ra({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,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Fn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...ni.mergeErrors({errorSchema:m,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:p}}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:u,liveValidate:c,onChange:f,disabled:m,readonly:d}=this.props,{formData:p,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:C,retrievedSchema:h}=this.state,y=b;const S=g.path[0]||"",A=!i||i.length===0||i.length===1&&i[0]===S;let _=A?r:el(p);const x=be(_)&&Object.keys(_).length>0&&Object.values(_).every(L=>L===void 0),E=p==null,O=x&&E?void 0:_;if(be(_)||Array.isArray(_)){let L=!1;if(r===g1)RF(_,i);else if(!A){let Q=r;if(r===void 0)if(typeof i[i.length-1]=="number")Q=null;else{const{field:D}=k.findFieldInSchema(v,i,p),B=D;!(B&&(Ae in B||Le in B))&&B!==void 0&&(L=!0)}L?lt(_,i,void 0):lt(_,i,Q)}const J=h&&!A&&!be(r)&&!Array.isArray(r)&&!m&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,L&&_&&lt(_,i,void 0)}const j=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},F=_;if(o===!0&&(l===!0||l==="onChange")&&(F=this.omitExtraData(_),T={...T,formData:F}),n){const L=A?b:ae(b,i);if(!wt(L))A?y=n:(y=el(b),lt(y,i,n));else if(C||(C=new Hk),A){const J=ae(n,Nt);J&&C.setErrors(J)}else lt(C.ErrorSchema,i,n)}else C&&ae(C.ErrorSchema,[...i,Nt])&&C.clearErrors(i);if(j&&this.pendingChanges.length===1){const L=this.liveValidate(v,k,y,F,s,C,h);T={...T,formData:F,...L,customErrors:C}}else if(!u&&n){const L=ni.mergeErrors({errorSchema:y,errors:w},s,C);T={...T,formData:F,...L,customErrors:C}}this.setState(T,()=>{f&&f(ji({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return ze(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=wb,idPrefix:s=kb,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 m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=oL();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:s[Yc],globalFormOptions:ni.getGlobalFormOptions(r),uiSchemaDefinitions:s[t_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=Yk(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:u,autoComplete:c,enctype:f,acceptCharset:m,noHtml5Validate:d=!1,disabled:p,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:C,errorSchema:h,fieldPathId:y,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,x=g?n:void 0,E=g||n||"form";let{[Go]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const j={[Cn]:{[Go]:O}};return N.jsxs(E,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:x,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),N.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:C,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:p,readonly:k}),r||N.jsx(_,{uiSchema:j,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function uL(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(`/${Le}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Ae}/`):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(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 cL(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=o.replace(/\//g,"."),k=`${p} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=p?`${p}.${b}`:b;let C=me(ae(t,w.replace(/^\./,""))).title;if(C===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);C=me(ae(t,h)).title}if(C===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);C=ae(t,[...h,b,"title"])}if(C)d=d.replace(`'${b}'`,`'${C}'`),v=C;else{const h=ae(f,[$e,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=p.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const _ of y)S.push($e,_);S.push($e,b,"title");const A=ae(i,S);A&&(d=d.replace(`'${b}'`,`'${A}'`),v=A)}}}),k=d;else{const b=me(ae(t,p.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&&(p=p?`${p}.${u.missingProperty}`:u.missingProperty),{name:l,property:p,message:d,params:u,stack:k,schemaPath:c,title:v}});return uL(a,r)}function fL(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=cL(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=wF(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Nk(e,i,r,i,!0),m=a(f,Xc(f),s,c),d=Xk(m);return Ra({errors:u,errorSchema:c},d)}var $s={exports:{}},Gu={},Zr={},Zn={},Ju={},Yu={},Xu={},rg;function ol(){return rg||(rg=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,C)=>`${w}${C}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,C)=>(C instanceof r&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let C=0;for(;C<b.length;)o(w,b[C]),w.push(g[++C]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let C=0;for(;C<b.length;)w.push(n),o(w,b[C]),w.push(n,d(g[++C]));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=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:s`${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 m(g){return new i(d(g))}e.stringify=m;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=p;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})(Xu)),Xu}var Zu={},ng;function ig(){return ng||(ng=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ol();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 s=(0,t._)`\n`;class o extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s: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 m=this.toName(u),{prefix:d}=m,p=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(p);if(b)return b}else k=this._values[d]=new Map;k.set(p,m);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,m.setValue(c,{property:d,itemIndex:g}),m}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,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},c,f)}_reduceValues(u,c,f={},m){let d=t.nil;for(const p in u){const k=u[p];if(!k)continue;const v=f[p]=f[p]||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=m==null?void 0:m(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=o})(Zu)),Zu}var ag;function Ne(){return ag||(ag=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=ol(),r=ig();var i=ol();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=ig();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(R,M){return this}}class s extends n{constructor(R,M,U){super(),this.varKind=R,this.name=M,this.rhs=U}render({es5:R,_n:M}){const U=R?r.varKinds.var:this.varKind,$=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${$};`+M}optimizeNames(R,M){if(R[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,R,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(R,M,U){super(),this.lhs=R,this.rhs=M,this.sideEffects=U}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,M){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,R,M),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return j(R,this.rhs)}}class l extends o{constructor(R,M,U,$){super(R,U,$),this.op=M}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class u extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class c extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends n{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m extends n{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,M){return this.code=T(this.code,R,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((M,U)=>M+U.render(R),"")}optimizeNodes(){const{nodes:R}=this;let M=R.length;for(;M--;){const U=R[M].optimizeNodes();Array.isArray(U)?R.splice(M,1,...U):U?R[M]=U:R.splice(M,1)}return R.length>0?this:void 0}optimizeNames(R,M){const{nodes:U}=this;let $=U.length;for(;$--;){const H=U[$];H.optimizeNames(R,M)||(F(R,H.names),U.splice($,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((R,M)=>O(R,M.names),{})}}class p extends d{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class k extends d{}class v extends p{}v.kind="else";class g extends p{constructor(R,M){super(M),this.condition=R}render(R){let M=`if(${this.condition})`+super.render(R);return this.else&&(M+="else "+this.else.render(R)),M}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let M=this.else;if(M){const U=M.optimizeNodes();M=this.else=Array.isArray(U)?new v(U):U}if(M)return R===!1?M instanceof g?M:M.nodes:this.nodes.length?this:new g(L(R),M instanceof g?[M]:M.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,M){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(R,M),!!(super.optimizeNames(R,M)||this.else))return this.condition=T(this.condition,R,M),this}get names(){const R=super.names;return j(R,this.condition),this.else&&O(R,this.else.names),R}}g.kind="if";class b extends p{}b.kind="for";class w extends b{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iteration=T(this.iteration,R,M),this}get names(){return O(super.names,this.iteration.names)}}class C extends b{constructor(R,M,U,$){super(),this.varKind=R,this.name=M,this.from=U,this.to=$}render(R){const M=R.es5?r.varKinds.var:this.varKind,{name:U,from:$,to:H}=this;return`for(${M} ${U}=${$}; ${U}<${H}; ${U}++)`+super.render(R)}get names(){const R=j(super.names,this.from);return j(R,this.to)}}class h extends b{constructor(R,M,U,$){super(),this.loop=R,this.varKind=M,this.name=U,this.iterable=$}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iterable=T(this.iterable,R,M),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(R,M,U){super(),this.name=R,this.args=M,this.async=U}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}y.kind="func";class S extends d{render(R){return"return "+super.render(R)}}S.kind="return";class A extends p{render(R){let M="try"+super.render(R);return this.catch&&(M+=this.catch.render(R)),this.finally&&(M+=this.finally.render(R)),M}optimizeNodes(){var R,M;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(R,M){var U,$;return super.optimizeNames(R,M),(U=this.catch)===null||U===void 0||U.optimizeNames(R,M),($=this.finally)===null||$===void 0||$.optimizeNames(R,M),this}get names(){const R=super.names;return this.catch&&O(R,this.catch.names),this.finally&&O(R,this.finally.names),R}}class _ extends p{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}_.kind="catch";class x extends p{render(R){return"finally"+super.render(R)}}x.kind="finally";class E{constructor(R,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
125
- `:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,M){const U=this._extScope.value(R,M);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(R,M){return this._extScope.getValue(R,M)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,M,U,$){const H=this._scope.toName(M);return U!==void 0&&$&&(this._constants[H.str]=U),this._leafNode(new s(R,H,U)),H}const(R,M,U){return this._def(r.varKinds.const,R,M,U)}let(R,M,U){return this._def(r.varKinds.let,R,M,U)}var(R,M,U){return this._def(r.varKinds.var,R,M,U)}assign(R,M,U){return this._leafNode(new o(R,M,U))}add(R,M){return this._leafNode(new l(R,e.operators.ADD,M))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){const M=["{"];for(const[U,$]of R)M.length>1&&M.push(","),M.push(U),(U!==$||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,$));return M.push("}"),new t._Code(M)}if(R,M,U){if(this._blockNode(new g(R)),M&&U)this.code(M).else().code(U).endIf();else if(M)this.code(M).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new g(R))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(R,M){return this._blockNode(R),M&&this.code(M).endFor(),this}for(R,M){return this._for(new w(R),M)}forRange(R,M,U,$,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(R);return this._for(new C(H,G,M,U),()=>$(G))}forOf(R,M,U,$=r.varKinds.const){const H=this._scope.toName(R);if(this.opts.es5){const G=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${G}.length`,X=>{this.var(H,(0,t._)`${G}[${X}]`),U(H)})}return this._for(new h("of",$,H,M),()=>U(H))}forIn(R,M,U,$=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${M})`,U);const H=this._scope.toName(R);return this._for(new h("in",$,H,M),()=>U(H))}endFor(){return this._endBlockNode(b)}label(R){return this._leafNode(new u(R))}break(R){return this._leafNode(new c(R))}return(R){const M=new S;if(this._blockNode(M),this.code(R),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,M,U){if(!M&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const $=new A;if(this._blockNode($),this.code(R),M){const H=this.name("e");this._currNode=$.catch=new _(H),M(H)}return U&&(this._currNode=$.finally=new x,this.code(U)),this._endBlockNode(_,x)}throw(R){return this._leafNode(new f(R))}block(R,M){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(M),this}endBlock(R){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-M;if(U<0||R!==void 0&&U!==R)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${R} expected`);return this._nodes.length=M,this}func(R,M=t.nil,U,$){return this._blockNode(new y(R,M,U)),$&&this.code($).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,M){const U=this._currNode;if(U instanceof R||M&&U instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${R.kind}/${M.kind}`:R.kind}"`)}_elseNode(R){const M=this._currNode;if(!(M instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const M=this._nodes;M[M.length-1]=R}}e.CodeGen=E;function O(I,R){for(const M in R)I[M]=(I[M]||0)+(R[M]||0);return I}function j(I,R){return R instanceof t._CodeOrName?O(I,R.names):I}function T(I,R,M){if(I instanceof t.Name)return U(I);if(!$(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=U(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function U(H){const G=M[H.str];return G===void 0||R[H.str]!==1?H:(delete R[H.str],G)}function $(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&R[G.str]===1&&M[G.str]!==void 0)}}function F(I,R){for(const M in R)I[M]=(I[M]||0)-(R[M]||0)}function L(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${B(I)}`}e.not=L;const J=D(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const Q=D(e.operators.OR);function P(...I){return I.reduce(Q)}e.or=P;function D(I){return(R,M)=>R===t.nil?M:M===t.nil?R:(0,t._)`${B(R)} ${I} ${B(M)}`}function B(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Yu)),Yu}var Ie={},sg;function We(){if(sg)return Ie;sg=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkStrictMode=Ie.getErrorPath=Ie.Type=Ie.useFunc=Ie.setEvaluated=Ie.evaluatedPropsToName=Ie.mergeEvaluated=Ie.eachItem=Ie.unescapeJsonPointer=Ie.escapeJsonPointer=Ie.escapeFragment=Ie.unescapeFragment=Ie.schemaRefOrVal=Ie.schemaHasRulesButRef=Ie.schemaHasRules=Ie.checkUnknownRules=Ie.alwaysValidSchema=Ie.toHash=void 0;const e=Ne(),t=ol();function r(h){const y={};for(const S of h)y[S]=!0;return y}Ie.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))}Ie.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:S,self:A}=h;if(!S.strictSchema||typeof y=="boolean")return;const _=A.RULES.keywords;for(const x in y)_[x]||C(h,`unknown keyword: "${x}"`)}Ie.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(y[S])return!0;return!1}Ie.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(S!=="$ref"&&y.all[S])return!0;return!1}Ie.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},S,A,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${h}${y}${(0,e.getProperty)(A)}`}Ie.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Ie.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Ie.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ie.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ie.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const S of h)y(S);else y(h)}Ie.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:S,resultToName:A}){return(_,x,E,O)=>{const j=E===void 0?x:E instanceof e.Name?(x instanceof e.Name?h(_,x,E):y(_,x,E),E):x instanceof e.Name?(y(_,E,x),x):S(x,E);return O===e.Name&&!(j instanceof e.Name)?A(_,j):j}}Ie.mergeEvaluated={props:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(S,!0),()=>h.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>{y===!0?h.assign(S,!0):(h.assign(S,(0,e._)`${S} || {}`),k(h,S,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>h.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>h.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function p(h,y){if(y===!0)return h.var("props",!0);const S=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,S,y),S}Ie.evaluatedPropsToName=p;function k(h,y,S){Object.keys(S).forEach(A=>h.assign((0,e._)`${y}${(0,e.getProperty)(A)}`,!0))}Ie.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))})}Ie.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Ie.Type=b={}));function w(h,y,S){if(h instanceof e.Name){const A=y===b.Num;return S?A?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:A?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(h).toString():"/"+c(h)}Ie.getErrorPath=w;function C(h,y,S=h.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);h.self.logger.warn(y)}}return Ie.checkStrictMode=C,Ie}var Us={},og;function Un(){if(og)return Us;og=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=Ne(),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 Us.default=t,Us}var lg;function Nl(){return lg||(lg=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=Ne(),r=We(),i=Un();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:C}=v,{gen:h,compositeRule:y,allErrors:S}=C,A=f(v,g,b);w??(y||S)?l(h,A):u(C,(0,t._)`[${A}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:C,compositeRule:h,allErrors:y}=w,S=f(v,g,b);l(C,S),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(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=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:C,it:h}){if(C===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",C,i.default.errors,S=>{v.const(y,(0,t._)`${i.default.vErrors}[${S}]`),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=o;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:C}=v;C.$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._)`{}`:m(v,g,b)}function m(v,g,b={}){const{gen:w,it:C}=v,h=[d(C,b),p(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 p({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${v}`;return b&&(C=(0,t.str)`${C}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,C]}function k(v,{params:g,message:b},w){const{keyword:C,data:h,schemaValue:y,it:S}=v,{opts:A,propertyName:_,topSchemaRef:x,schemaPath:E}=S;w.push([c.keyword,C],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),A.messages&&w.push([c.message,typeof b=="function"?b(v):b]),A.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${x}${E}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Ju)),Ju}var ug;function dL(){if(ug)return Zn;ug=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.boolOrEmptySchema=Zn.topBoolOrEmptySchema=void 0;const e=Nl(),t=Ne(),r=Un(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:u,validateName:c}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Zn.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}Zn.boolOrEmptySchema=n;function s(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return Zn}var Rt={},Qn={},cg;function S1(){if(cg)return Qn;cg=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getRules=Qn.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)}Qn.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 Qn.getRules=i,Qn}var Qr={},fg;function C1(){if(fg)return Qr;fg=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.shouldUseRule=Qr.shouldUseGroup=Qr.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}Qr.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}Qr.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 Qr.shouldUseRule=r,Qr}var dg;function ll(){if(dg)return Rt;dg=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;const e=S1(),t=C1(),r=Nl(),i=Ne(),a=We();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Rt.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}Rt.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(","))}Rt.getJSONTypes=o;function l(b,w){const{gen:C,data:h,opts:y}=b,S=c(w,y.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(A){const _=p(w,h,y.strictNumbers,n.Wrong);C.if(_,()=>{S.length?f(b,w,S):v(b)})}return A}Rt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(C=>u.has(C)||w==="array"&&C==="array"):[]}function f(b,w,C){const{gen:h,data:y,opts:S}=b,A=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&h.if((0,i._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(A,(0,i._)`typeof ${y}`).if(p(w,y,S.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const E of C)(u.has(E)||E==="array"&&S.coerceTypes==="array")&&x(E);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(b,_)});function x(E){switch(E){case"string":h.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${A} == "boolean" || ${y} === null
126
- || (${A} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${A} === "boolean" || ${y} === null
127
- || (${A} === "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._)`${A} === "string" || ${A} === "number"
128
- || ${A} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:b,parentData:w,parentDataProperty:C},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${C}]`,h))}function d(b,w,C,h=n.Correct){const y=h===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=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?S:(0,i.not)(S);function A(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,C?(0,i._)`isFinite(${w})`:i.nil)}}Rt.checkDataType=d;function p(b,w,C,h){if(b.length===1)return d(b[0],w,C,h);let y;const S=(0,a.toHash)(b);if(S.array&&S.object){const A=(0,i._)`typeof ${w} != "object"`;y=S.null?A:(0,i._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const A in S)y=(0,i.and)(y,d(A,w,C,h));return y}Rt.checkDataTypes=p;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)}Rt.reportTypeError=v;function g(b){const{gen:w,data:C,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:C,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return Rt}var Ea={},mg;function mL(){if(mg)return Ea;mg=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.assignDefaults=void 0;const e=Ne(),t=We();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,u)=>i(a,u,l.default))}Ea.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:u,opts:c}=a;if(s===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 m=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Ea}var xr={},it={},pg;function Nr(){if(pg)return it;pg=1,Object.defineProperty(it,"__esModule",{value:!0}),it.validateUnion=it.validateArray=it.usePattern=it.callValidateCode=it.schemaProperties=it.allSchemaProperties=it.noPropertyInData=it.propertyInData=it.isOwnProperty=it.hasPropFunc=it.reportMissingProp=it.checkMissingProp=it.checkReportMissingProp=void 0;const e=Ne(),t=We(),r=Un(),i=We();function a(b,w){const{gen:C,data:h,it:y}=b;C.if(c(C,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}it.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:C}},h,y){return(0,e.or)(...h.map(S=>(0,e.and)(c(b,w,S,C.ownProperties),(0,e._)`${y} = ${S}`)))}it.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}it.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}it.hasPropFunc=o;function l(b,w,C){return(0,e._)`${o(b)}.call(${w}, ${C})`}it.isOwnProperty=l;function u(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,C)}`:y}it.propertyInData=u;function c(b,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,C))):y}it.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}it.allSchemaProperties=f;function m(b,w){return f(w).filter(C=>!(0,t.alwaysValidSchema)(b,w[C]))}it.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:C,topSchemaRef:h,schemaPath:y,errorPath:S},it:A},_,x,E){const O=E?(0,e._)`${b}, ${w}, ${h}${y}`:w,j=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&j.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${C.object(...j)}`;return x!==e.nil?(0,e._)`${_}.call(${x}, ${T})`:(0,e._)`${_}(${T})`}it.callValidateCode=d;const p=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},C){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(C,h);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(b,y)}(${C}, ${h})`})}it.usePattern=k;function v(b){const{gen:w,data:C,keyword:h,it:y}=b,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return A(()=>w.assign(_,!1)),_}return w.var(S,!0),A(()=>w.break()),S;function A(_){const x=w.const("len",(0,e._)`${C}.length`);w.forRange("i",0,x,E=>{b.subschema({keyword:h,dataProp:E,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}it.validateArray=v;function g(b){const{gen:w,schema:C,keyword:h,it:y}=b;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(x=>(0,t.alwaysValidSchema)(y,x))&&!y.opts.unevaluated)return;const A=w.let("valid",!1),_=w.name("_valid");w.block(()=>C.forEach((x,E)=>{const O=b.subschema({keyword:h,schemaProp:E,compositeRule:!0},_);w.assign(A,(0,e._)`${A} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(A))})),b.result(A,()=>b.reset(),()=>b.error(!0))}return it.validateUnion=g,it}var hg;function pL(){if(hg)return xr;hg=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.validateKeywordUsage=xr.validSchemaType=xr.funcKeywordCode=xr.macroKeywordCode=void 0;const e=Ne(),t=Un(),r=Nr(),i=Nl();function a(m,d){const{gen:p,keyword:k,schema:v,parentSchema:g,it:b}=m,w=d.macro.call(b.self,v,g,b),C=u(p,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=p.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:C,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}xr.macroKeywordCode=a;function n(m,d){var p;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:C}=m;l(C,d);const h=!w&&d.compile?d.compile.call(C.self,g,b,C):d.validate,y=u(k,v,h),S=k.let("valid");m.block$data(S,A),m.ok((p=d.valid)!==null&&p!==void 0?p:S);function A(){if(d.errors===!1)E(),d.modifying&&s(m),O(()=>m.error());else{const j=d.async?_():x();d.modifying&&s(m),O(()=>o(m,j))}}function _(){const j=k.let("ruleErrs",null);return k.try(()=>E((0,e._)`await `),T=>k.assign(S,!1).if((0,e._)`${T} instanceof ${C.ValidationError}`,()=>k.assign(j,(0,e._)`${T}.errors`),()=>k.throw(T))),j}function x(){const j=(0,e._)`${y}.errors`;return k.assign(j,null),E(e.nil),j}function E(j=d.async?(0,e._)`await `:e.nil){const T=C.opts.passContext?t.default.this:t.default.self,F=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${j}${(0,r.callValidateCode)(m,y,T,F)}`,d.modifying)}function O(j){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:S),j)}}xr.funcKeywordCode=n;function s(m){const{gen:d,data:p,it:k}=m;d.if(k.parentData,()=>d.assign(p,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(m,d){const{gen:p}=m;p.if((0,e._)`Array.isArray(${d})`,()=>{p.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)(m)},()=>m.error())}function l({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,d,p){if(p===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof p=="function"?{ref:p}:{ref:p,code:(0,e.stringify)(p)})}function c(m,d,p=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||p&&typeof m>"u")}xr.validSchemaType=c;function f({schema:m,opts:d,self:p,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(m,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[g])){const C=`keyword "${g}" value is invalid at path "${k}": `+p.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(C);else throw new Error(C)}}return xr.validateKeywordUsage=f,xr}var en={},gg;function hL(){if(gg)return en;gg=1,Object.defineProperty(en,"__esModule",{value:!0}),en.extendSubschemaMode=en.extendSubschemaData=en.getSubschema=void 0;const e=Ne(),t=We();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,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 m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(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')}en.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:p,dataPathArr:k,opts:v}=s,g=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const p=u instanceof e.Name?u:m.let("data",u,!0);d(p),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(p){n.data=p,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,p]}}en.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,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=s,n.jtdMetadata=o}return en.extendSubschemaMode=a,en}var Ut={},Qu,yg;function E1(){return yg||(yg=1,Qu=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}),Qu}var ec={exports:{}},vg;function gL(){if(vg)return ec.exports;vg=1;var e=ec.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,u,c,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,m);for(var d in s){var p=s[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var k=0;k<p.length;k++)t(i,a,n,p[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var v in p)t(i,a,n,p[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return ec.exports}var bg;function Fl(){if(bg)return Ut;bg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;const e=We(),t=E1(),r=gL(),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?!s(k):v?o(k)<=v:!1}Ut.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(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+=o(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)}Ut.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ut._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ut.normalizeId=f;function m(k,v,g){return g=f(g),k.resolve(v,g)}Ut.resolveUrl=m;const d=/^[a-z_][-a-z0-9._]*$/i;function p(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),C={"":w},h=l(b,w,!1),y={},S=new Set;return r(k,{allKeys:!0},(x,E,O,j)=>{if(j===void 0)return;const T=h+E;let F=C[j];typeof x[g]=="string"&&(F=L.call(this,x[g])),J.call(this,x.$anchor),J.call(this,x.$dynamicAnchor),C[E]=F;function L(Y){const Q=this.opts.uriResolver.resolve;if(Y=f(F?Q(F,Y):Y),S.has(Y))throw _(Y);S.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(x,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(A(x,y[Y],Y),y[Y]=x):this.refs[Y]=T),Y}function J(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);L.call(this,`#${Y}`)}}}),y;function A(x,E,O){if(E!==void 0&&!t(x,E))throw _(O)}function _(x){return new Error(`reference "${x}" resolves to more than one schema`)}}return Ut.getSchemaRefs=p,Ut}var kg;function Dl(){if(kg)return Zr;kg=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;const e=dL(),t=ll(),r=C1(),i=ll(),a=mL(),n=pL(),s=hL(),o=Ne(),l=Un(),u=Fl(),c=We(),f=Nl();function m(z){if(h(z)&&(S(z),C(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}Zr.validateFunctionCode=m;function d({gen:z,validateName:q,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?z.func(q,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,o._)`"use strict"; ${b(W,ie)}`),k(z,ie),z.code(re)}):z.func(q,(0,o._)`${l.default.data}, ${p(ie)}`,K.$async,()=>z.code(b(W,ie)).code(re))}function p(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 k(z,q){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}`),q.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),q.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v(z){const{schema:q,opts:W,gen:K}=z;d(z,()=>{W.$comment&&q.$comment&&j(z),x(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g(z),A(z),T(z)})}function g(z){const{gen:q,validateName:W}=z;z.evaluated=q.const("evaluated",(0,o._)`${W}.evaluated`),q.if((0,o._)`${z.evaluated}.dynamicProps`,()=>q.assign((0,o._)`${z.evaluated}.props`,(0,o._)`undefined`)),q.if((0,o._)`${z.evaluated}.dynamicItems`,()=>q.assign((0,o._)`${z.evaluated}.items`,(0,o._)`undefined`))}function b(z,q){const W=typeof z=="object"&&z[q.schemaId];return W&&(q.code.source||q.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w(z,q){if(h(z)&&(S(z),C(z))){y(z,q);return}(0,e.boolOrEmptySchema)(z,q)}function C({schema:z,self:q}){if(typeof z=="boolean")return!z;for(const W in z)if(q.RULES.all[W])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,q){const{schema:W,gen:K,opts:ie}=z;ie.$comment&&W.$comment&&j(z),E(z),O(z);const re=K.const("_errs",l.default.errors);A(z,re),K.var(q,(0,o._)`${re} === ${l.default.errors}`)}function S(z){(0,c.checkUnknownRules)(z),_(z)}function A(z,q){if(z.opts.jtd)return L(z,[],!1,q);const W=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,W);L(z,W,!K,q)}function _(z){const{schema:q,errSchemaPath:W,opts:K,self:ie}=z;q.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(q,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function x(z){const{schema:q,opts:W}=z;q.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function E(z){const q=z.schema[z.opts.schemaId];q&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,q))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function j({gen:z,schemaEnv:q,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)z.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${K}/$comment`,ge=z.scopeValue("root",{ref:q.root});z.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ge}.schema)`)}}function T(z){const{gen:q,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=z;W.$async?q.if((0,o._)`${l.default.errors} === 0`,()=>q.return(l.default.data),()=>q.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):(q.assign((0,o._)`${K}.errors`,l.default.vErrors),re.unevaluated&&F(z),q.return((0,o._)`${l.default.errors} === 0`))}function F({gen:z,evaluated:q,props:W,items:K}){W instanceof o.Name&&z.assign((0,o._)`${q}.props`,W),K instanceof o.Name&&z.assign((0,o._)`${q}.items`,K)}function L(z,q,W,K){const{gen:ie,schema:re,data:ue,allErrors:ge,opts:we,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(we.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>$(z,"$ref",Pe.all.$ref.definition));return}we.jtd||Y(z,q),ie.block(()=>{for(const Ve of Pe.rules)de(Ve);de(Pe.post)});function de(Ve){(0,r.shouldUseGroup)(re,Ve)&&(Ve.type?(ie.if((0,i.checkDataType)(Ve.type,ue,we.strictNumbers)),J(z,Ve),q.length===1&&q[0]===Ve.type&&W&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):J(z,Ve),ge||ie.if((0,o._)`${l.default.errors} === ${K||0}`))}}function J(z,q){const{gen:W,schema:K,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,q.type),W.block(()=>{for(const re of q.rules)(0,r.shouldUseRule)(K,re)&&$(z,re.keyword,re.definition,q.type)})}function Y(z,q){z.schemaEnv.meta||!z.opts.strictTypes||(Q(z,q),z.opts.allowUnionTypes||P(z,q),D(z,z.dataTypes))}function Q(z,q){if(q.length){if(!z.dataTypes.length){z.dataTypes=q;return}q.forEach(W=>{I(z.dataTypes,W)||M(z,`type "${W}" not allowed by context "${z.dataTypes.join(",")}"`)}),R(z,q)}}function P(z,q){q.length>1&&!(q.length===2&&q.includes("null"))&&M(z,"use allowUnionTypes to allow union type keyword")}function D(z,q){const W=z.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>B(q,ue))&&M(z,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function B(z,q){return z.includes(q)||q==="number"&&z.includes("integer")}function I(z,q){return z.includes(q)||q==="integer"&&z.includes("number")}function R(z,q){const W=[];for(const K of z.dataTypes)I(q,K)?W.push(K):q.includes("integer")&&K==="number"&&W.push("integer");z.dataTypes=W}function M(z,q){const W=z.schemaEnv.baseId+z.errSchemaPath;q+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)(z,q,z.opts.strictTypes)}class U{constructor(q,W,K){if((0,n.validateKeywordUsage)(q,W,K),this.gen=q.gen,this.allErrors=q.allErrors,this.keyword=K,this.data=q.data,this.schema=q.schema[K],this.$data=W.$data&&q.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(q,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=q.schema,this.params={},this.it=q,this.def=W,this.$data)this.schemaCode=q.gen.const("vSchema",X(this.$data,q));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=q.gen.const("_errs",l.default.errors))}result(q,W,K){this.failResult((0,o.not)(q),W,K)}failResult(q,W,K){this.gen.if(q),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(q,W){this.failResult((0,o.not)(q),void 0,W)}fail(q){if(q===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(q),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(q){if(!this.$data)return this.fail(q);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),q)})`)}error(q,W,K){if(W){this.setParams(W),this._error(q,K),this.setParams({});return}this._error(q,K)}_error(q,W){(q?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(q){this.allErrors||this.gen.if(q)}setParams(q,W){W?Object.assign(this.params,q):this.params=q}block$data(q,W,K=o.nil){this.gen.block(()=>{this.check$data(q,K),W()})}check$data(q=o.nil,W=o.nil){if(!this.$data)return;const{gen:K,schemaCode:ie,schemaType:re,def:ue}=this;K.if((0,o.or)((0,o._)`${ie} === undefined`,W)),q!==o.nil&&K.assign(q,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),q!==o.nil&&K.assign(q,!1)),K.else()}invalid$data(){const{gen:q,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,o.or)(ue(),ge());function ue(){if(K.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const we=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(we,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ge(){if(ie.validateSchema){const we=q.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${we}(${W})`}return o.nil}}subschema(q,W){const K=(0,s.getSubschema)(this.it,q);(0,s.extendSubschemaData)(K,this.it,q),(0,s.extendSubschemaMode)(K,q);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated(q,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&q.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,q.props,K.props,W)),K.items!==!0&&q.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,q.items,K.items,W)))}mergeValidEvaluated(q,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated(q,o.Name)),!0}}Zr.KeywordCxt=U;function $(z,q,W,K){const ie=new U(z,W,q);"code"in W?W.code(ie,K):ie.$data&&W.validate?(0,n.funcKeywordCode)(ie,W):"macro"in W?(0,n.macroKeywordCode)(ie,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(ie,W)}const H=/^\/(?:[^~]|~0|~1)*$/,G=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X(z,{dataLevel:q,dataNames:W,dataPathArr:K}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!H.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=G.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=q)throw new Error(we("property/index",Pe));return K[q-Pe]}if(Pe>q)throw new Error(we("data",Pe));if(re=W[q-Pe],!ie)return re}let ue=re;const ge=ie.split("/");for(const ke of ge)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function we(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${q}`}}return Zr.getData=X,Zr}var Bs={},wg;function Dd(){if(wg)return Bs;wg=1,Object.defineProperty(Bs,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bs.default=e,Bs}var Vs={},xg;function Ml(){if(xg)return Vs;xg=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=Fl();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 Vs.default=t,Vs}var er={},Sg;function Md(){if(Sg)return er;Sg=1,Object.defineProperty(er,"__esModule",{value:!0}),er.resolveSchema=er.getCompilingSchema=er.resolveRef=er.compileSchema=er.SchemaEnv=void 0;const e=Ne(),t=Dd(),r=Un(),i=Fl(),a=We(),n=Dl();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={}}}er.SchemaEnv=s;function o(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:C}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:C,ownProperties:h});let S;v.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=y.scopeName("validate");v.validateName=A;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:A,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let x;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const E=y.toString();x=`${y.scopeRefs(r.default.scope)}return ${E}`,this.opts.code.process&&(x=this.opts.code.process(x,v));const j=new Function(`${r.default.self}`,`${r.default.scope}`,x)(this,this.scope.get());if(this.scope.value(A,{ref:j}),j.errors=null,j.schema=v.schema,j.schemaEnv=v,v.$async&&(j.$async=!0),this.opts.code.source===!0&&(j.source={validateName:A,validateCode:E,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:F}=_;j.evaluated={props:T instanceof e.Name?void 0:T,items:F instanceof e.Name?void 0:F,dynamicProps:T instanceof e.Name,dynamicItems:F instanceof e.Name},j.source&&(j.source.evaluated=(0,e.stringify)(j.evaluated))}return v.validate=j,v}catch(E){throw delete v.validate,delete v.validateName,x&&this.logger.error("Error compiling schema, function code:",x),E}finally{this._compilations.delete(v)}}er.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const C=v.refs[b];if(C)return C;let h=m.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;y&&(h=new s({schema:y,schemaId:S,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}er.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}er.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function m(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 C=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===C)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const S=d.call(this,v,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:A}=this.opts,_=S[A];return _&&(C=(0,i.resolveUrl)(this.opts.uriResolver,C,_)),new s({schema:S,schemaId:A,root:v,baseId:C})}return k.call(this,b,y)}}er.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var C;if(((C=v.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const A=b[(0,a.unescapeFragment)(S)];if(A===void 0)return;b=A;const _=typeof b=="object"&&b[this.opts.schemaId];!p.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,S)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return er}const yL="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",vL="Meta-schema for $data reference (JSON AnySchema extension proposal)",bL="object",kL=["$data"],wL={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},xL=!1,SL={$id:yL,description:vL,type:bL,required:kL,properties:wL,additionalProperties:xL};var Hs={},Aa={exports:{}},tc,Cg;function A1(){if(Cg)return tc;Cg=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="",S=0,A=0;for(A=0;A<h.length;A++)if(S=h[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A];break}for(A+=1;A<h.length;A++){if(S=h[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,S){if(h.length){const A=n(h);if(A!=="")y.push(A);else return S.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const S={error:!1,address:"",zone:""},A=[],_=[];let x=!1,E=!1,O=l;for(let j=0;j<h.length;j++){const T=h[j];if(!(T==="["||T==="]"))if(T===":"){if(x===!0&&(E=!0),!O(_,A,S))break;if(++y>7){S.error=!0;break}j>0&&h[j-1]===":"&&(x=!0),A.push(":");continue}else if(T==="%"){if(!O(_,A,S))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?S.zone=_.join(""):E?A.push(_.join("")):A.push(n(_))),S.address=A.join(""),S}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 S=y.address,A=y.address;return y.zone&&(S+="%"+y.zone,A+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(h,y){let S=0;for(let A=0;A<h.length;A++)h[A]===y&&S++;return S}function m(h){let y=h;const S=[];let A=-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((A=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,A)),y=y.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const S=y?k:p;return S.lastIndex=0,h.replace(S,A=>d[A])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let S="";for(let A=0;A<h.length;A++){if(h[A]==="%"&&A+2<h.length){const _=h.slice(A+1,A+3);if(r(_)){const x=_.toUpperCase(),E=String.fromCharCode(parseInt(x,16));y&&i(E)?S+=E:S+="%"+x,A+=2;continue}}S+=h[A]}return S}function b(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){const _=A.toUpperCase(),x=String.fromCharCode(parseInt(_,16));x!=="."&&i(x)?y+=x:y+="%"+_,S+=2;continue}}a(h[S])?y+=h[S]:y+=escape(h[S])}return y}function w(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){y+="%"+A.toUpperCase(),S+=2;continue}}y+=escape(h[S])}return y}function C(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let S=unescape(h.host);if(!t(S)){const A=c(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=v(S,!1)}y.push(S)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return tc={nonSimpleDomain:s,recomposeAuthority:C,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},tc}var rc,Eg;function CL(){if(Eg)return rc;Eg=1;const{isUUID:e}=A1(),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 s(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 o(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,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,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 S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.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 S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;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 m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:p,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return rc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},rc}var Ag;function EL(){if(Ag)return Aa.exports;Ag=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=A1(),{SCHEMES:u,getSchemeHandler:c}=CL();function f(A,_){return typeof A=="string"?A=C(A,_):typeof A=="object"&&(A=w(k(A,_),_)),A}function m(A,_,x){const E=x?Object.assign({scheme:"null"},x):{scheme:"null"},O=d(w(A,E),w(_,E),E,!0);return E.skipEscape=!0,k(O,E)}function d(A,_,x,E){const O={};return E||(A=w(k(A,x),x),_=w(k(_,x),x)),x=x||{},!x.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):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?O.path="/"+_.path:A.path?O.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=A.path,_.query!==void 0?O.query=_.query:O.query=A.query),O.userinfo=A.userinfo,O.host=A.host,O.port=A.port),O.scheme=A.scheme),O.fragment=_.fragment,O}function p(A,_,x){const E=y(A,x),O=y(_,x);return E!==void 0&&O!==void 0&&E.toLowerCase()===O.toLowerCase()}function k(A,_){const x={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:""},E=Object.assign({},_),O=[],j=c(E.scheme||x.scheme);j&&j.serialize&&j.serialize(x,E),x.path!==void 0&&(E.skipEscape?x.path=i(x.path):(x.path=n(x.path),x.scheme!==void 0&&(x.path=x.path.split("%3A").join(":")))),E.reference!=="suffix"&&x.scheme&&O.push(x.scheme,":");const T=r(x);if(T!==void 0&&(E.reference!=="suffix"&&O.push("//"),O.push(T),x.path&&x.path[0]!=="/"&&O.push("/")),x.path!==void 0){let F=x.path;!E.absolutePath&&(!j||!j.absolutePath)&&(F=t(F)),T===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),O.push(F)}return x.query!==void 0&&O.push("?",x.query),x.fragment!==void 0&&O.push("#",x.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(A,_){if(_[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function b(A,_){const x=Object.assign({},_),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,j=!1;x.reference==="suffix"&&(x.scheme?A=x.scheme+":"+A:A="//"+A);const T=A.match(v);if(T){E.scheme=T[1],E.userinfo=T[3],E.host=T[4],E.port=parseInt(T[5],10),E.path=T[6]||"",E.query=T[7],E.fragment=T[8],isNaN(E.port)&&(E.port=T[5]);const F=g(E,T);if(F!==void 0&&(E.error=E.error||F,O=!0),E.host)if(o(E.host)===!1){const Y=e(E.host);E.host=Y.host.toLowerCase(),j=Y.isIPV6}else j=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",x.reference&&x.reference!=="suffix"&&x.reference!==E.reference&&(E.error=E.error||"URI is not a "+x.reference+" reference.");const L=c(x.scheme||E.scheme);if(!x.unicodeSupport&&(!L||!L.unicodeSupport)&&E.host&&(x.domainHost||L&&L.domainHost)&&j===!1&&l(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII: "+J}if((!L||L&&!L.skipNormalize)&&(A.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=s(unescape(E.host),j))),E.path&&(E.path=a(E.path)),E.fragment))try{E.fragment=encodeURI(decodeURIComponent(E.fragment))}catch{E.error=E.error||"URI malformed"}L&&L.parse&&L.parse(E,x)}else E.error=E.error||"URI can not be parsed.";return{parsed:E,malformedAuthorityOrPort:O}}function w(A,_){return b(A,_).parsed}function C(A,_){return h(A,_).normalized}function h(A,_){const{parsed:x,malformedAuthorityOrPort:E}=b(A,_);return{normalized:E?A:k(x,_),malformedAuthorityOrPort:E}}function y(A,_){if(typeof A=="string"){const{normalized:x,malformedAuthorityOrPort:E}=h(A,_);return E?void 0:x}if(typeof A=="object")return k(A,_)}const S={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:k,parse:w};return Aa.exports=S,Aa.exports.default=S,Aa.exports.fastUri=S,Aa.exports}var Og;function AL(){if(Og)return Hs;Og=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=EL();return e.code='require("ajv/dist/runtime/uri").default',Hs.default=e,Hs}var _g;function OL(){return _g||(_g=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=Dl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne();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=Dd(),a=Ml(),n=S1(),s=Md(),o=Ne(),l=Fl(),u=ll(),c=We(),f=SL,m=AL(),d=(P,D)=>new RegExp(P,D);d.code="new RegExp";const p=["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 D,B,I,R,M,U,$,H,G,X,z,q,W,K,ie,re,ue,ge,we,ke,Pe,de,Ve,st,ve;const Z=P.strict,ee=(D=P.code)===null||D===void 0?void 0:D.optimize,te=ee===!0||ee===void 0?1:ee||0,pe=(I=(B=P.code)===null||B===void 0?void 0:B.regExp)!==null&&I!==void 0?I:d,ce=(R=P.uriResolver)!==null&&R!==void 0?R:m.default;return{strictSchema:(U=(M=P.strictSchema)!==null&&M!==void 0?M:Z)!==null&&U!==void 0?U:!0,strictNumbers:(H=($=P.strictNumbers)!==null&&$!==void 0?$:Z)!==null&&H!==void 0?H:!0,strictTypes:(X=(G=P.strictTypes)!==null&&G!==void 0?G:Z)!==null&&X!==void 0?X:"log",strictTuples:(q=(z=P.strictTuples)!==null&&z!==void 0?z:Z)!==null&&q!==void 0?q:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Z)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:te,regExp:pe}:{optimize:te,regExp:pe},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:(ge=P.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(we=P.inlineRefs)!==null&&we!==void 0?we:!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:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(st=P.unicodeRegExp)!==null&&st!==void 0?st:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class C{constructor(D={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...w(D)};const{es5:B,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:B,lines:I}),this.logger=O(D.logger);const R=D.validateFormats;D.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,D,"NOT SUPPORTED"),h.call(this,g,D,"DEPRECATED","warn"),this._metaOpts=x.call(this),D.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&_.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),S.call(this),D.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:B,schemaId:I}=this.opts;let R=f;I==="id"&&(R={...f},R.id=R.$id,delete R.$id),B&&D&&this.addMetaSchema(R,R[I],!1)}defaultMeta(){const{meta:D,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[B]||D:void 0}validate(D,B){let I;if(typeof D=="string"){if(I=this.getSchema(D),!I)throw new Error(`no schema with key or ref "${D}"`)}else I=this.compile(D);const R=I(B);return"$async"in I||(this.errors=I.errors),R}compile(D,B){const I=this._addSchema(D,B);return I.validate||this._compileSchemaEnv(I)}compileAsync(D,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return R.call(this,D,B);async function R(X,z){await M.call(this,X.$schema);const q=this._addSchema(X,z);return q.validate||U.call(this,q)}async function M(X){X&&!this.getSchema(X)&&await R.call(this,{$ref:X},!0)}async function U(X){try{return this._compileSchemaEnv(X)}catch(z){if(!(z instanceof a.default))throw z;return $.call(this,z),await H.call(this,z.missingSchema),U.call(this,X)}}function $({missingSchema:X,missingRef:z}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${z} cannot be resolved`)}async function H(X){const z=await G.call(this,X);this.refs[X]||await M.call(this,z.$schema),this.refs[X]||this.addSchema(z,X,B)}async function G(X){const z=this._loading[X];if(z)return z;try{return await(this._loading[X]=I(X))}finally{delete this._loading[X]}}}addSchema(D,B,I,R=this.opts.validateSchema){if(Array.isArray(D)){for(const U of D)this.addSchema(U,void 0,I,R);return this}let M;if(typeof D=="object"){const{schemaId:U}=this.opts;if(M=D[U],M!==void 0&&typeof M!="string")throw new Error(`schema ${U} must be string`)}return B=(0,l.normalizeId)(B||M),this._checkUnique(B),this.schemas[B]=this._addSchema(D,I,B,R,!0),this}addMetaSchema(D,B,I=this.opts.validateSchema){return this.addSchema(D,B,!0,I),this}validateSchema(D,B){if(typeof D=="boolean")return!0;let I;if(I=D.$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 R=this.validate(I,D);if(!R&&B){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return R}getSchema(D){let B;for(;typeof(B=y.call(this,D))=="string";)D=B;if(B===void 0){const{schemaId:I}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:I});if(B=s.resolveSchema.call(this,R,D),!B)return;this.refs[D]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=y.call(this,D);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const B=D;this._cache.delete(B);let I=D[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(D){for(const B of D)this.addKeyword(B);return this}addKeyword(D,B){let I;if(typeof D=="string")I=D,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=I);else if(typeof D=="object"&&B===void 0){if(B=D,I=B.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,B),!B)return(0,c.eachItem)(I,M=>F.call(this,M)),this;J.call(this,B);const R={...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)};return(0,c.eachItem)(I,R.type.length===0?M=>F.call(this,M,R):M=>R.type.forEach(U=>F.call(this,M,R,U))),this}getKeyword(D){const B=this.RULES.all[D];return typeof B=="object"?B.definition:!!B}removeKeyword(D){const{RULES:B}=this;delete B.keywords[D],delete B.all[D];for(const I of B.rules){const R=I.rules.findIndex(M=>M.keyword===D);R>=0&&I.rules.splice(R,1)}return this}addFormat(D,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[D]=B,this}errorsText(D=this.errors,{separator:B=", ",dataVar:I="data"}={}){return!D||D.length===0?"No errors":D.map(R=>`${I}${R.instancePath} ${R.message}`).reduce((R,M)=>R+B+M)}$dataMetaSchema(D,B){const I=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const R of B){const M=R.split("/").slice(1);let U=D;for(const $ of M)U=U[$];for(const $ in I){const H=I[$];if(typeof H!="object")continue;const{$data:G}=H.definition,X=U[$];G&&X&&(U[$]=Q(X))}}return D}_removeAllSchemas(D,B){for(const I in D){const R=D[I];(!B||B.test(I))&&(typeof R=="string"?delete D[I]:R&&!R.meta&&(this._cache.delete(R.schema),delete D[I]))}}_addSchema(D,B,I,R=this.opts.validateSchema,M=this.opts.addUsedSchema){let U;const{schemaId:$}=this.opts;if(typeof D=="object")U=D[$];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(D);if(H!==void 0)return H;I=(0,l.normalizeId)(U||I);const G=l.getSchemaRefs.call(this,D,I);return H=new s.SchemaEnv({schema:D,schemaId:$,meta:B,baseId:I,localRefs:G}),this._cache.set(H.schema,H),M&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),R&&this.validateSchema(D,!0),H}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const B=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=B}}}C.ValidationError=i.default,C.MissingRefError=a.default,e.default=C;function h(P,D,B,I="error"){for(const R in P){const M=R;M in D&&this.logger[I](`${B}: option ${R}. ${P[M]}`)}}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 D in P)this.addSchema(P[D],D)}function A(){for(const P in this.opts.formats){const D=this.opts.formats[P];D&&this.addFormat(P,D)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in P){const B=P[D];B.keyword||(B.keyword=D),this.addKeyword(B)}}function x(){const P={...this.opts};for(const D of p)delete P[D];return P}const E={log(){},warn(){},error(){}};function O(P){if(P===!1)return E;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 j=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,D){const{RULES:B}=this;if((0,c.eachItem)(P,I=>{if(B.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!j.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function F(P,D,B){var I;const R=D==null?void 0:D.post;if(B&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let U=R?M.post:M.rules.find(({type:H})=>H===B);if(U||(U={type:B,rules:[]},M.rules.push(U)),M.keywords[P]=!0,!D)return;const $={keyword:P,definition:{...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)}};D.before?L.call(this,U,$,D.before):U.rules.push($),M.all[P]=$,(I=D.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function L(P,D,B){const I=P.rules.findIndex(R=>R.keyword===B);I>=0?P.rules.splice(I,0,D):(P.rules.push(D),this.logger.warn(`rule ${B} is not defined`))}function J(P){let{metaSchema:D}=P;D!==void 0&&(P.$data&&this.opts.$data&&(D=Q(D)),P.validateSchema=this.compile(D,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Q(P){return{anyOf:[P,Y]}}})(Gu)),Gu}var Ks={},Ws={},Gs={},Pg;function _L(){if(Pg)return Gs;Pg=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Gs.default=e,Gs}var yn={},Ig;function PL(){if(Ig)return yn;Ig=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.callRef=yn.getValidate=void 0;const e=Ml(),t=Nr(),r=Ne(),i=Un(),a=Md(),n=We(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:m}=u,{baseId:d,schemaEnv:p,validateName:k,opts:v,self:g}=m,{root:b}=p;if((f==="#"||f==="#/")&&d===b.baseId)return C();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(m.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function C(){if(p===b)return l(u,k,p,p.$async);const S=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${S}.validate`,b,b.$async)}function h(S){const A=o(u,S);l(u,A,S,S.$async)}function y(S){const A=c.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=c.name("valid"),x=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},_);u.mergeEvaluated(x),u.ok(_)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}yn.getValidate=o;function l(u,c,f,m){const{gen:d,it:p}=u,{allErrors:k,schemaEnv:v,opts:g}=p,b=g.passContext?i.default.this:r.nil;m?w():C();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${p.ValidationError})`,()=>d.throw(A)),h(A),k||d.assign(S,!1)}),u.ok(S)}function C(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(S){const A=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${A} : ${i.default.vErrors}.concat(${A})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var A;if(!p.opts.unevaluated)return;const _=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const x=d.var("props",(0,r._)`${S}.evaluated.props`);p.props=n.mergeEvaluated.props(d,x,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const x=d.var("items",(0,r._)`${S}.evaluated.items`);p.items=n.mergeEvaluated.items(d,x,p.items,r.Name)}}}return yn.callRef=l,yn.default=s,yn}var Tg;function IL(){if(Tg)return Ws;Tg=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=_L(),t=PL(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ws.default=r,Ws}var Js={},Ys={},jg;function TL(){if(jg)return Ys;jg=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=Ne(),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 Ys.default=a,Ys}var Xs={},Rg;function jL(){if(Rg)return Xs;Rg=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Ne(),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,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._)`(${s} === 0 || (${u} = ${n}/${s}, ${c}))`)}};return Xs.default=r,Xs}var Zs={},Qs={},Ng;function RL(){if(Ng)return Qs;Ng=1,Object.defineProperty(Qs,"__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 Qs.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Qs}var Fg;function NL(){if(Fg)return Zs;Fg=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Ne(),t=We(),r=RL(),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:u}=n,c=s==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Zs.default=a,Zs}var eo={},Dg;function FL(){if(Dg)return eo;Dg=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=Nr(),t=We(),r=Ne(),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:u,schemaCode:c,it:f}=n,m=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,p=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${p}(${c}, ${m}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return eo.default=a,eo}var to={},Mg;function DL(){if(Mg)return to;Mg=1,Object.defineProperty(to,"__esModule",{value:!0});const e=Ne(),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 to.default=r,to}var ro={},Lg;function ML(){if(Lg)return ro;Lg=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),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:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?p():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const C of o)if((b==null?void 0:b[C])===void 0&&!w.has(C)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${C}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function p(){if(d||c)n.block$data(t.nil,v);else for(const b of o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||c){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 v(){s.forOf("prop",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,m.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return ro.default=a,ro}var no={},qg;function LL(){if(qg)return no;qg=1,Object.defineProperty(no,"__esModule",{value:!0});const e=Ne(),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 no.default=r,no}var io={},ao={},zg;function Ld(){if(zg)return ao;zg=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=E1();return e.code='require("ajv/dist/runtime/equal").default',ao.default=e,ao}var $g;function qL(){if($g)return io;$g=1,Object.defineProperty(io,"__esModule",{value:!0});const e=ll(),t=Ne(),r=We(),i=Ld(),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:u,schema:c,parentSchema:f,schemaCode:m,it:d}=s;if(!u&&!c)return;const p=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(p,v,(0,t._)`${m} === false`),s.ok(p);function v(){const C=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:C,j:h}),o.assign(p,!0),o.if((0,t._)`${C} > 1`,()=>(g()?b:w)(C,h))}function g(){return k.length>0&&!k.some(C=>C==="object"||C==="array")}function b(C,h){const y=o.name("item"),S=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${C}--;`,()=>{o.let(y,(0,t._)`${l}[${C}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${A}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${A}[${y}]`),s.error(),o.assign(p,!1).break()}).code((0,t._)`${A}[${y}] = ${C}`)})}function w(C,h){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${C}--;`,()=>o.for((0,t._)`${h} = ${C}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${C}], ${l}[${h}])`,()=>{s.error(),o.assign(p,!1).break(S)})))}}};return io.default=n,io}var so={},Ug;function zL(){if(Ug)return so;Ug=1,Object.defineProperty(so,"__esModule",{value:!0});const e=Ne(),t=We(),r=Ld(),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:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):n.fail((0,e._)`${c} !== ${o}`)}};return so.default=a,so}var oo={},Bg;function $L(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t=We(),r=Ld(),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:u,schemaCode:c,it:f}=n;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=f.opts.loopEnum;let d;const p=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(m||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,C)=>g(b,C)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${p()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const C=u[w];return typeof C=="object"&&C!==null?(0,e._)`${p()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${C}`}}};return oo.default=a,oo}var Vg;function UL(){if(Vg)return Js;Vg=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=TL(),t=jL(),r=NL(),i=FL(),a=DL(),n=ML(),s=LL(),o=qL(),l=zL(),u=$L(),c=[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,u.default];return Js.default=c,Js}var lo={},Ri={},Hg;function O1(){if(Hg)return Ri;Hg=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.validateAdditionalItems=void 0;const e=Ne(),t=We(),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:u,keyword:c,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){o.forRange("i",s.length,m,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},p),f.allErrors||o.if((0,e.not)(p),()=>o.break())})}}return Ri.validateAdditionalItems=a,Ri.default=i,Ri}var uo={},Ni={},Kg;function _1(){if(Kg)return Ni;Kg=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.validateTuple=void 0;const e=Ne(),t=We(),r=Nr(),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:u,data:c,keyword:f,it:m}=n;k(u),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,o.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);o.forEach((v,g)=>{(0,t.alwaysValidSchema)(m,v)||(l.if((0,e._)`${p} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=m,w=o.length,C=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!C){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return Ni.validateTuple=a,Ni.default=i,Ni}var Wg;function BL(){if(Wg)return uo;Wg=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=_1(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return uo.default=t,uo}var co={},Gg;function VL(){if(Gg)return co;Gg=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nr(),i=O1(),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:u}=s,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,i.validateAdditionalItems)(s,c):s.ok((0,r.validateArray)(s)))}};return co.default=n,co}var fo={},Jg;function HL(){if(Jg)return fo;Jg=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Ne(),t=We(),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:u}=a;let c,f;const{minContains:m,maxContains:d}=o;u.opts.next?(c=m===void 0?1:m,f=d):c=1;const p=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,s)){let w=(0,e._)`${p} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${p} <= ${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"),C=n.let("count",0);g(w,()=>n.if(w,()=>b(C)))}function g(w,C){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),C()})}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 fo.default=i,fo}var nc={},Yg;function KL(){return Yg||(Yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne(),r=We(),i=Nr();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},
129
- missingProperty: ${f},
130
- depsCount: ${u},
131
- deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);s(l,u),o(l,c)}};function n({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const m=Array.isArray(l[f])?u:c;m[f]=l[f]}return[u,c]}function s(l,u=l.schema){const{gen:c,data:f,it:m}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const p in u){const k=u[p];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,p,m.opts.ownProperties);l.setParams({property:p,depsCount:k.length,deps:k.join(", ")}),m.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=s;function o(l,u=l.schema){const{gen:c,data:f,keyword:m,it:d}=l,p=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:m,schemaProp:k},p);l.mergeValidEvaluated(v,p)},()=>c.var(p,!0)),l.ok(p))}e.validateSchemaDeps=o,e.default=a})(nc)),nc}var mo={},Xg;function WL(){if(Xg)return mo;Xg=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=n.name("valid");n.forIn("key",o,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 mo.default=i,mo}var po={},Zg;function P1(){if(Zg)return po;Zg=1,Object.defineProperty(po,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Un(),i=We(),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:u,data:c,errsCount:f,it:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=m;if(m.props=!0,p.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(m,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?C(y):o.if(b(y),()=>C(y))})}function b(y){let S;if(k.length>8){const A=(0,i.schemaRefOrVal)(m,u.properties,"properties");S=(0,e.isOwnProperty)(o,A,y)}else k.length?S=(0,t.or)(...k.map(A=>(0,t._)`${y} === ${A}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function C(y){if(p.removeAdditional==="all"||p.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)(m,l)){const S=o.name("valid");p.removeAdditional==="failing"?(h(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(h(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function h(y,S,A){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};A===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return po.default=n,po}var ho={},Qg;function GL(){if(Qg)return ho;Qg=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=Dl(),t=Nr(),r=We(),i=P1(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,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)(o);for(const v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)p(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function p(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return ho.default=a,ho}var go={},ey;function JL(){if(ey)return go;ey=1,Object.defineProperty(go,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),i=We(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(o),d=m.filter(C=>(0,r.alwaysValidSchema)(c,o[C]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const C of m)p&&b(C),c.allErrors?w(C):(s.var(k,!0),w(C),s.if(k))}function b(C){for(const h in p)new RegExp(C).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${C} (use allowMatchingProperties)`)}function w(C){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,C)}.test(${h})`,()=>{const y=d.includes(C);y||n.subschema({keyword:"patternProperties",schemaProp:C,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return go.default=a,go}var yo={},ty;function YL(){if(ty)return yo;ty=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=We(),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 yo.default=t,yo}var vo={},ry;function XL(){if(ry)return vo;ry=1,Object.defineProperty(vo,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nr().validateUnion,error:{message:"must match a schema in anyOf"}};return vo.default=t,vo}var bo={},ny;function ZL(){if(ny)return bo;ny=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=s,c=n.let("valid",!1),f=n.let("passing",null),m=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((p,k)=>{let v;(0,t.alwaysValidSchema)(l,p)?n.var(m,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return bo.default=i,bo}var ko={},iy;function QL(){if(iy)return ko;iy=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=We(),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 u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return ko.default=t,ko}var wo={},ay;function eq(){if(ay)return wo;ay=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ne(),t=We(),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 u=a(l,"then"),c=a(l,"else");if(!u&&!c)return;const f=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,p("then",k),p("else",k))}else u?s.if(m,p("then")):s.if((0,e.not)(m),p("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function p(k,v){return()=>{const g=n.subschema({keyword:k},m);s.assign(f,m),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return wo.default=i,wo}var xo={},sy;function tq(){if(sy)return xo;sy=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=We(),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 xo.default=t,xo}var oy;function rq(){if(oy)return lo;oy=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=O1(),t=BL(),r=_1(),i=VL(),a=HL(),n=KL(),s=WL(),o=P1(),l=GL(),u=JL(),c=YL(),f=XL(),m=ZL(),d=QL(),p=eq(),k=tq();function v(g=!1){const b=[c.default,f.default,m.default,d.default,p.default,k.default,s.default,o.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 lo.default=v,lo}var So={},Co={},ly;function nq(){if(ly)return Co;ly=1,Object.defineProperty(Co,"__esModule",{value:!0});const e=Ne(),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:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;o?k():v();function k(){const g=n.scopeValue("formats",{ref:p.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),w=n.let("fType"),C=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(C,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(C,b)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${C}`}function y(){const S=d.$async?(0,e._)`(${b}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,e._)`${C}(${s})`,A=(0,e._)`(typeof ${C} == "function" ? ${S} : ${C}.test(${s}))`;return(0,e._)`${C} && ${C} !== true && ${w} === ${a} && !${A}`}}function v(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,C]=y(g);b===a&&i.pass(S());function h(){if(f.strictSchema===!1){p.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(A){const _=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,x=n.scopeValue("formats",{key:l,ref:A,code:_});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${x}.validate`]:["string",A,x]}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 ${C}(${s})`}return typeof w=="function"?(0,e._)`${C}(${s})`:(0,e._)`${C}.test(${s})`}}}};return Co.default=r,Co}var uy;function iq(){if(uy)return So;uy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=[nq().default];return So.default=t,So}var ei={},cy;function aq(){return cy||(cy=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.contentVocabulary=ei.metadataVocabulary=void 0,ei.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ei.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ei}var fy;function sq(){if(fy)return Ks;fy=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=IL(),t=UL(),r=rq(),i=iq(),a=aq(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Ks.default=n,Ks}var Eo={},Oa={},dy;function oq(){if(dy)return Oa;dy=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Oa.DiscrError=e={})),Oa}var my;function lq(){if(my)return Eo;my=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e=Ne(),t=oq(),r=Md(),i=Ml(),a=We(),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:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=o,{oneOf:d}=f;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=c.propertyName;if(typeof p!="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)(p)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:p})),o.ok(k);function g(){const C=w();l.if(!1);for(const h in C)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(C[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:p}),l.endIf()}function b(C){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:C},h);return o.mergeEvaluated(y,e.Name),h}function w(){var C;const h={},y=A(f);let S=!0;for(let E=0;E<d.length;E++){let O=d[E];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,m.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(m.opts.uriResolver,m.baseId,T)}const j=(C=O==null?void 0:O.properties)===null||C===void 0?void 0:C[p];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);S=S&&(y||A(O)),_(j,E)}if(!S)throw new Error(`discriminator: "${p}" must be required`);return h;function A({required:E}){return Array.isArray(E)&&E.includes(p)}function _(E,O){if(E.const)x(E.const,O);else if(E.enum)for(const j of E.enum)x(j,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function x(E,O){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[E]=O}}}};return Eo.default=s,Eo}const uq="http://json-schema.org/draft-07/schema#",cq="http://json-schema.org/draft-07/schema#",fq="Core schema meta-schema",dq={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:[]}},mq=["object","boolean"],pq={$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:"#"}},hq={$schema:uq,$id:cq,title:fq,definitions:dq,type:mq,properties:pq,default:!0};var py;function I1(){return py||(py=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=OL(),i=sq(),a=lq(),n=hq,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(p,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 u=Dl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ne();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=Dd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Ml();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})($s,$s.exports)),$s.exports}var gq=I1();const yq=Wr(gq);var Ao={exports:{}},ic={},hy;function vq(){return hy||(hy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,x){return{validate:_,compare:x}}e.fullFormats={date:t(n,s),time:t(l,u),"date-time":t(f,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:A,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:C},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$/,s),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,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){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 x=i.exec(_);if(!x)return!1;const E=+x[1],O=+x[2],j=+x[3];return O>=1&&O<=12&&j>=1&&j<=(O===2&&r(E)?29:a[O])}function s(_,x){if(_&&x)return _>x?1:_<x?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,x){const E=o.exec(_);if(!E)return!1;const O=+E[1],j=+E[2],T=+E[3],F=E[5];return(O<=23&&j<=59&&T<=59||O===23&&j===59&&T===60)&&(!x||F!=="")}function u(_,x){if(!(_&&x))return;const E=o.exec(_),O=o.exec(x);if(E&&O)return _=E[1]+E[2]+E[3]+(E[4]||""),x=O[1]+O[2]+O[3]+(O[4]||""),_>x?1:_<x?-1:0}const c=/t|\s/i;function f(_){const x=_.split(c);return x.length===2&&n(x[0])&&l(x[1],!0)}function m(_,x){if(!(_&&x))return;const[E,O]=_.split(c),[j,T]=x.split(c),F=s(E,j);if(F!==void 0)return F||u(O,T)}const d=/\/|:/,p=/^(?:[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(_)&&p.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 C(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function A(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(ic)),ic}var ac={},gy;function bq(){return gy||(gy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=I1(),r=Ne(),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:u,schemaCode:c,keyword:f,it:m}=o,{opts:d,self:p}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,p.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:p.formats,code:d.code.formats}),C=l.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${C} != "object"`,r._`${C} instanceof RegExp`,r._`typeof ${C}.compare != "function"`,b(C)))}function g(){const w=k.schema,C=p.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:C,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(ac)),ac}var yy;function kq(){return yy||(yy=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=vq(),i=bq(),a=Ne(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};o.get=(u,c="full")=>{const m=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function l(u,c,f,m){var d,p;(d=(p=u.opts.code).formats)!==null&&d!==void 0||(p.formats=a._`require("ajv-formats/dist/formats").${m}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(Ao,Ao.exports)),Ao.exports}var wq=kq();const vy=Wr(wq),xq={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Sq=/^(#?([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*\)))$/,Cq=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Eq(e,t,r={},i,a=yq,n){let s=new a({...xq,...r});return i?vy(s,i):i!==!1&&vy(s),s.addFormat("data-url",Cq),s.addFormat("color",Sq),s.addKeyword(Qf),Array.isArray(e)&&s.addMetaSchema(e),Ue(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class Aq{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=Eq(i,a,n,s,o,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,s;try{t[nt]&&(s=this.ajv.getSchema(t[nt])),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 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(s.errors),((a=s.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(", "))})),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 fL(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[nt])!==null&&r!==void 0?r:Sb;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):ze(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=Pd(t),s=(a=n[nt])!==null&&a!==void 0?a:fF(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 $o(e={},t){return new Aq(e,t)}$o();var sc,by;function Oq(){return by||(by=1,sc=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}}),sc}var oc,ky;function _q(){return ky||(ky=1,oc=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}}),oc}var lc,wy;function Pq(){return wy||(wy=1,lc=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}}),lc}var uc,xy;function Iq(){return xy||(xy=1,uc=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}}),uc}var cc,Sy;function Tq(){return Sy||(Sy=1,cc=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}}),cc}var fc,Cy;function jq(){return Cy||(Cy=1,fc=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}}),fc}var dc,Ey;function Rq(){return Ey||(Ey=1,dc=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}}),dc}var mc,Ay;function Nq(){return Ay||(Ay=1,mc=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}}),mc}var pc,Oy;function Fq(){return Oy||(Oy=1,pc=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}}),pc}var hc,_y;function Dq(){return _y||(_y=1,hc=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}}),hc}var gc,Py;function Mq(){return Py||(Py=1,gc=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}}),gc}var yc,Iy;function Lq(){return Iy||(Iy=1,yc=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}}),yc}var vc,Ty;function qq(){return Ty||(Ty=1,vc=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}}),vc}var bc,jy;function zq(){return jy||(jy=1,bc=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}}),bc}var kc,Ry;function $q(){return Ry||(Ry=1,kc=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}}),kc}var wc,Ny;function Uq(){return Ny||(Ny=1,wc=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}}),wc}var xc,Fy;function Bq(){return Fy||(Fy=1,xc=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}}),xc}var Sc,Dy;function Vq(){return Dy||(Dy=1,Sc=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}}),Sc}var Cc,My;function Hq(){return My||(My=1,Cc=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}}),Cc}var Ec,Ly;function Kq(){return Ly||(Ly=1,Ec=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}}),Ec}var Ac,qy;function Wq(){return qy||(qy=1,Ac=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}}),Ac}var Oc,zy;function Gq(){return zy||(zy=1,Oc=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}}),Oc}var _c,$y;function Jq(){return $y||($y=1,_c=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}}),_c}var Pc,Uy;function Yq(){return Uy||(Uy=1,Pc={en:Oq(),ar:_q(),ca:Pq(),cs:Iq(),de:Tq(),es:jq(),fi:Rq(),fr:Nq(),hu:Fq(),id:Dq(),it:Mq(),ja:Lq(),ko:qq(),nb:zq(),nl:$q(),pl:Uq(),"pt-BR":Bq(),ru:Vq(),sk:Hq(),sv:Kq(),th:Wq(),zh:Gq(),"zh-TW":Jq()}),Pc}var Xq=Yq();const _a=Wr(Xq),Oo={flex:1,paddingLeft:6,paddingRight:6};function Zq(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.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:ir(s,"moveUp"),className:"rjsf-array-item-move-up",style:Oo,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",style:Oo,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",style:Oo,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",style:Oo,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function Qq(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=me(n),o=ye("ArrayFieldItemButtonsTemplate",a,s);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(o,{...r})})]})})}function ez(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,registry:l,required:u,schema:c,title:f,uiSchema:m}=e,d=me(m),p=ye("ArrayFieldTitleTemplate",l,d),k=ye("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=l.templates.ButtonTemplates,g=!o&&!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(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),N.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,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:ir(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:l})})]})]})]})})})}const bs={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},tz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),rz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),nz=()=>N.jsxs("svg",{...bs,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"})]}),T1=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M3.5 8h9"})}),iz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ma({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return N.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function az(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.CopyButton),...e,icon:N.jsx(nz,{})})}function sz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.MoveUpButton),...e,icon:N.jsx(tz,{})})}function oz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.MoveDownButton),...e,icon:N.jsx(rz,{})})}function lz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.RemoveButton),...e,variant:"danger",icon:N.jsx(T1,{})})}function uz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.ClearButton),...e,icon:N.jsx(T1,{})})}function cz({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(ma,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:N.jsx(iz,{})})}function fz({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Kk(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const dz={SubmitButton:fz,AddButton:cz,CopyButton:az,MoveDownButton:oz,MoveUpButton:sz,RemoveButton:lz,ClearButton:uz};function mz({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Ir,{children:t}):t})}):null}function pz({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:Cd(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(Ir,{children:r}):r})},`${r}-${i}`))})}function hz({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Ad(e),children:t}):null}function gz(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),k=ye("WrapIfAdditionalTemplate",d,p);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(Kc,{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(Ir,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&N.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:N.jsx(Ir,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Kc,{children:f.markdown.after})})]})}function yz(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,readonly:l,registry:u,required:c,schema:f,title:m,uiSchema:d}=e,p=me(d),k=ye("TitleFieldTemplate",u,p),v=ye("DescriptionFieldTemplate",u,p),{AddButton:g}=u.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!l&&!r;return N.jsxs(N.Fragment,{children:[m&&N.jsx(k,{id:_l(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&N.jsx(v,{id:$n(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,N.jsxs("div",{className:"container-fluid p-0",children:[o.map(C=>N.jsx("div",{className:`row mb-2${C.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:C.content})},C.name)),Cb(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:ir(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function vz({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Ir,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function bz(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:l,required:u,schema:c,hideError:f,rawErrors:m,children:d,uiSchema:p,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=Sn in c,C=[r];!f&&m&&m.length>0&&C.push("has-error has-danger");const h=C.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(_e.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:s})]})}),N.jsx("div",{className:"col",children:d}),N.jsx("div",{className:"col-auto py-4",children:N.jsx(b,{disabled:a||l,onClick:o,uiSchema:p,registry:k})})]})})}const kz=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Zq,ArrayFieldItemTemplate:Qq,ArrayFieldTemplate:ez,ButtonTemplates:dz,DescriptionFieldTemplate:mz,FieldErrorTemplate:pz,FieldHelpTemplate:hz,FieldTemplate:gz,ObjectFieldTemplate:yz,TitleFieldTemplate:vz,WrapIfAdditionalTemplate:bz},Symbol.toStringTag,{value:"Module"}));function wz({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ye("DescriptionFieldTemplate",d,r),k=$a(e),v=V.useCallback(y=>m(y.target.checked),[m]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),b=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(p,{id:$n(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||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":Rr(i)}),!l&&!!o&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Ir,{components:{p:"span"},children:o})})]})]})}function xz({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]),g=V.useCallback(({target:b})=>u(e,_r(b==null?void 0:b.value,f,p,d)),[u,e,f,d,p]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=Pl(e,w),S=A=>{A.target.checked?o(Vk(w,k,f)):o(Uk(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:C,value:ms(b.value,w,p),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Ir,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function Sz({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=ps(e),k=V.useCallback(({target:g})=>s(u,_r(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]),v=V.useCallback(({target:g})=>o(u,_r(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=ua(g.value,t),C=Array.isArray(f)&&f.includes(g.value),h=Pl(u,b);return N.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ms(g.value,b,p),required:r,disabled:i||C||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":Rr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Ir,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const Cz=5;function Ez({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c}){const f=V.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=V.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=V.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return N.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||Cz,onChange:f,onBlur:m,onFocus:d,"aria-describedby":Rr(e)})}const Az=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:wz,CheckboxesWidget:xz,RadioWidget:Sz,TextareaWidget:Ez},Symbol.toStringTag,{value:"Module"})),By={templates:kz,widgets:Az},Oz=e=>e==="{}"?`{
132
-
133
- }`:e,_z=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:u}=e,c=V.useRef(null),[f,m]=V.useState(Oz(JSON.stringify(o||{},null,2))),d=V.useCallback(b=>{m(b.target.value)},[t]),p=V.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=V.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=V.useCallback(b=>{i(a.$id,b.target.value)},[i,a]),g=f||JSON.stringify(o,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(`
134
- `).length,value:g,className:wn(["form-control","textarea"]),onChange:d,onKeyDown:p,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(Ir,{children:s})})]})},Pz=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(Ir,{children:a})})]})};function Vy(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 Iz(e){if(Array.isArray(e))return e}function Tz(e,t,r){return(t=Lz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jz(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,u=!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(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Rz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hy(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 Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(i){Tz(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Nz(e,t){if(e==null)return{};var r,i,a=Fz(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 Fz(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 Dz(e,t){return Iz(e)||jz(e,t)||qz(e,t)||Rz()}function Mz(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 Lz(e){var t=Mz(e,"string");return typeof t=="symbol"?t:t+""}function qz(e,t){if(e){if(typeof e=="string")return Vy(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)?Vy(e,t):void 0}}function zz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wy(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 Gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(r),!0).forEach(function(i){zz(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $z(){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 Fa(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 ul(e){return{}.toString.call(e).includes("Object")}function Uz(e){return!Object.keys(e).length}function rs(e){return typeof e=="function"}function Bz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vz(e,t){return ul(t)||Tn("changeType"),Object.keys(t).some(function(r){return!Bz(e,r)})&&Tn("changeField"),t}function Hz(e){rs(e)||Tn("selectorType")}function Kz(e){rs(e)||ul(e)||Tn("handlerType"),ul(e)&&Object.values(e).some(function(t){return!rs(t)})&&Tn("handlersType")}function Wz(e){e||Tn("initialIsRequired"),ul(e)||Tn("initialType"),Uz(e)&&Tn("initialContent")}function Gz(e,t){throw new Error(e[t]||e.default)}var Jz={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"},Tn=Fa(Gz)(Jz),_o={changes:Vz,selector:Hz,handler:Kz,initial:Wz};function Yz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_o.initial(e),_o.handler(t);var r={current:e},i=Fa(Qz)(r,t),a=Fa(Zz)(r),n=Fa(_o.changes)(e),s=Fa(Xz)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return _o.selector(u),u(r.current)}function l(u){$z(i,a,n,s)(u)}return[o,l]}function Xz(e,t){return rs(t)?t(e.current):t}function Zz(e,t){return e.current=Gy(Gy({},e.current),t),t}function Qz(e,t,r){return rs(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 e$={create:Yz},t$={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function r$(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 n$(e){return{}.toString.call(e).includes("Object")}function i$(e){return e||Jy("configIsRequired"),n$(e)||Jy("configType"),e.urls?(a$(),{paths:{vs:e.urls.monacoBase}}):e}function a$(){console.warn(j1.deprecation)}function s$(e,t){throw new Error(e[t]||e.default)}var j1={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!
136
- You are using deprecated way of configuration.
137
-
138
- Instead of using
139
- monaco.config({ urls: { monacoBase: '...' } })
140
- use
141
- monaco.config({ paths: { vs: '...' } })
142
-
143
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
144
- `},Jy=r$(s$)(j1),o$={config:i$},l$=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 R1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],R1(e[r],t[r]))}),Ky(Ky({},e),t)}var u$={type:"cancelation",msg:"operation is manually canceled"};function Ic(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(u$):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var c$=["monaco"],f$=e$.create({config:t$,isInitialized:!1,resolve:null,reject:null,monaco:null}),N1=Dz(f$,2),ks=N1[0],Ll=N1[1];function d$(e){var t=o$.config(e),r=t.monaco,i=Nz(t,c$);Ll(function(a){return{config:R1(a.config,i),monaco:r}})}function m$(){var e=ks(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(Ll({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ic(Tc);if(window.monaco&&window.monaco.editor)return F1(window.monaco),e.resolve(window.monaco),Ic(Tc);l$(p$,g$)(y$)}return Ic(Tc)}function p$(e){return document.body.appendChild(e)}function h$(e){var t=document.createElement("script");return e&&(t.src=e),t}function g$(e){var t=ks(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=h$("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function y$(){var e=ks(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;F1(i),e.resolve(i)},function(r){e.reject(r)})}function F1(e){ks().monaco||Ll({monaco:e})}function v$(){return ks(function(e){var t=e.monaco;return t})}var Tc=new Promise(function(e,t){return Ll({resolve:e,reject:t})}),cl={config:d$,init:m$,__getMonacoInstance:v$},b$={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},jc=b$,k$={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},w$=k$;function x$({children:e}){return V.createElement("div",{style:w$.container},e)}var S$=x$,C$=S$;function E$({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return V.createElement("section",{style:{...jc.wrapper,width:e,height:t},...s},!r&&V.createElement(C$,null,i),V.createElement("div",{ref:a,style:{...jc.fullWidth,...!r&&jc.hide},className:n}))}var A$=E$,D1=V.memo(A$);function O$(e){V.useEffect(e,[])}var qd=O$;function _$(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var nr=_$;function Ba(){}function Vi(e,t,r,i){return P$(e,i)||I$(e,t,r,i)}function P$(e,t){return e.editor.getModel(M1(e,t))}function I$(e,t,r,i){return e.editor.createModel(t,r,i?M1(e,i):void 0)}function M1(e,t){return e.Uri.parse(t)}function T$({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:k={},beforeMount:v=Ba,onMount:g=Ba}){let[b,w]=V.useState(!1),[C,h]=V.useState(!0),y=V.useRef(null),S=V.useRef(null),A=V.useRef(null),_=V.useRef(g),x=V.useRef(v),E=V.useRef(!1);qd(()=>{let F=cl.init();return F.then(L=>(S.current=L)&&h(!1)).catch(L=>(L==null?void 0:L.type)!=="cancelation"&&console.error("Monaco initialization: error:",L)),()=>y.current?T():F.cancel()}),nr(()=>{if(y.current&&S.current){let F=y.current.getOriginalEditor(),L=Vi(S.current,e||"",i||r||"text",n||"");L!==F.getModel()&&F.setModel(L)}},[n],b),nr(()=>{if(y.current&&S.current){let F=y.current.getModifiedEditor(),L=Vi(S.current,t||"",a||r||"text",s||"");L!==F.getModel()&&F.setModel(L)}},[s],b),nr(()=>{let F=y.current.getModifiedEditor();F.getOption(S.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),nr(()=>{var F,L;(L=(F=y.current)==null?void 0:F.getModel())==null||L.original.setValue(e||"")},[e],b),nr(()=>{let{original:F,modified:L}=y.current.getModel();S.current.editor.setModelLanguage(F,i||r||"text"),S.current.editor.setModelLanguage(L,a||r||"text")},[r,i,a],b),nr(()=>{var F;(F=S.current)==null||F.editor.setTheme(u)},[u],b),nr(()=>{var F;(F=y.current)==null||F.updateOptions(f)},[f],b);let O=V.useCallback(()=>{var J;if(!S.current)return;x.current(S.current);let F=Vi(S.current,e||"",i||r||"text",n||""),L=Vi(S.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:F,modified:L})},[r,t,a,e,i,n,s]),j=V.useCallback(()=>{var F;!E.current&&A.current&&(y.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),O(),(F=S.current)==null||F.editor.setTheme(u),w(!0),E.current=!0)},[f,u,O]);V.useEffect(()=>{b&&_.current(y.current,S.current)},[b]),V.useEffect(()=>{!C&&!b&&j()},[C,b,j]);function T(){var L,J,Y,Q;let F=(L=y.current)==null?void 0:L.getModel();o||((J=F==null?void 0:F.original)==null||J.dispose()),l||((Y=F==null?void 0:F.modified)==null||Y.dispose()),(Q=y.current)==null||Q.dispose()}return V.createElement(D1,{width:d,height:m,isEditorReady:b,loading:c,_ref:A,className:p,wrapperProps:k})}var j$=T$;V.memo(j$);function R$(){let[e,t]=V.useState(cl.__getMonacoInstance());return qd(()=>{let r;return e||(r=cl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var N$=R$;function F$(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var D$=F$,Po=new Map;function M$({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:m=!1,width:d="100%",height:p="100%",className:k,wrapperProps:v={},beforeMount:g=Ba,onMount:b=Ba,onChange:w,onValidate:C=Ba}){let[h,y]=V.useState(!1),[S,A]=V.useState(!0),_=V.useRef(null),x=V.useRef(null),E=V.useRef(null),O=V.useRef(b),j=V.useRef(g),T=V.useRef(),F=V.useRef(i),L=D$(n),J=V.useRef(!1),Y=V.useRef(!1);qd(()=>{let D=cl.init();return D.then(B=>(_.current=B)&&A(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>x.current?P():D.cancel()}),nr(()=>{var B,I,R,M;let D=Vi(_.current,e||i||"",t||a||"",n||r||"");D!==((B=x.current)==null?void 0:B.getModel())&&(f&&Po.set(L,(I=x.current)==null?void 0:I.saveViewState()),(R=x.current)==null||R.setModel(D),f&&((M=x.current)==null||M.restoreViewState(Po.get(n))))},[n],h),nr(()=>{var D;(D=x.current)==null||D.updateOptions(u)},[u],h),nr(()=>{!x.current||i===void 0||(x.current.getOption(_.current.editor.EditorOption.readOnly)?x.current.setValue(i):i!==x.current.getValue()&&(Y.current=!0,x.current.executeEdits("",[{range:x.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),x.current.pushUndoStop(),Y.current=!1))},[i],h),nr(()=>{var B,I;let D=(B=x.current)==null?void 0:B.getModel();D&&a&&((I=_.current)==null||I.editor.setModelLanguage(D,a))},[a],h),nr(()=>{var D;o!==void 0&&((D=x.current)==null||D.revealLine(o))},[o],h),nr(()=>{var D;(D=_.current)==null||D.editor.setTheme(s)},[s],h);let Q=V.useCallback(()=>{var D;if(!(!E.current||!_.current)&&!J.current){j.current(_.current);let B=n||r,I=Vi(_.current,i||e||"",t||a||"",B||"");x.current=(D=_.current)==null?void 0:D.editor.create(E.current,{model:I,automaticLayout:!0,...u},c),f&&x.current.restoreViewState(Po.get(B)),_.current.editor.setTheme(s),o!==void 0&&x.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);V.useEffect(()=>{h&&O.current(x.current,_.current)},[h]),V.useEffect(()=>{!S&&!h&&Q()},[S,h,Q]),F.current=i,V.useEffect(()=>{var D,B;h&&w&&((D=T.current)==null||D.dispose(),T.current=(B=x.current)==null?void 0:B.onDidChangeModelContent(I=>{Y.current||w(x.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let D=_.current.editor.onDidChangeMarkers(B=>{var R;let I=(R=x.current.getModel())==null?void 0:R.uri;if(I&&B.find(M=>M.path===I.path)){let M=_.current.editor.getModelMarkers({resource:I});C==null||C(M)}});return()=>{D==null||D.dispose()}}return()=>{}},[h,C]);function P(){var D,B;(D=T.current)==null||D.dispose(),m?f&&Po.set(n,x.current.saveViewState()):(B=x.current.getModel())==null||B.dispose(),x.current.dispose()}return V.createElement(D1,{width:d,height:p,isEditorReady:h,loading:l,_ref:E,className:k,wrapperProps:v})}var L$=M$,q$=V.memo(L$),z$=q$;const $$="vs-dark",U$=!0,B$=[{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"}],V$={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},H$={base:$$,inherit:U$,rules:B$,colors:V$},K$=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,k=N$();V.useEffect(()=>{k&&k.editor.defineTheme("dracula",H$)});const v=V.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=V.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(z$,{id:t.$id,className:wn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...p},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Ir,{children:i})})]})},W$=Object.freeze(Object.defineProperty({__proto__:null,button:Pz,json:_z,sourceCode:K$},Symbol.toStringTag,{value:"Module"})),G$=lL,J$=(e,t)=>e&&e in _a?$o({},_a[e]):t&&t in _a?$o({},_a[t]):$o({},_a.en),Y$=(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}),L1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;tv(l);const m=V.useMemo(()=>J$(a,n),[a,n]),[d,p]=V.useState(c.formData);return N.jsx(G$,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:k=>Y$(k,c.schema),className:wn(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...W$,...u==null?void 0:u.fields,...i},templates:{...By.templates,...u==null?void 0:u.templates,...t},widgets:{...By.widgets,...u==null?void 0:u.widgets,...r},...c,formData:d,onChange:k=>{c.onChange&&c.onChange(k);const{schema:v,formData:g}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&g[b]===!1&&delete g[b]}p(g)}})},Yy={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},zd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=W0,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:m=!1,readonly:d=!1,options:p,...k})=>{const[v,g]=V.useState({processId:i,steps:[],variables:{...p&&p.variables}}),[b]=S0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale,async:f}),w=V.useMemo(()=>{const U=Zy();return console.log(`Building Factorial Code form with id ${U}`),U},[r,v]),C=V.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[h,y]=V.useState(!1),[S,A]=V.useState(C),[_,x]=V.useState({}),[E,O]=V.useState(null),j=V.useCallback(U=>{x({}),y(!0),A(U.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},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(({results:$,resolvedFiles:H})=>{if(A(C),$.nextProcessId){const G=v.steps;G.push({processId:v.processId,data:{...U.formData,...H},result:$}),g({processId:$.nextProcessId,steps:G,variables:{...v.variables,...$.variables}}),n($.nextProcessId,$);return}s?s(w,$,U.formData):(console.log(`Form ${w} has been successfully submitted.`),Io("fcode-forms-on-submit-success",{formId:w,formSubmittedData:U.formData,processExecutionResult:$})),(!s||o)&&O({kind:"success",message:$.message||G0}),!s&&$.redirect&&K0($.redirect)}).catch($=>{$!=null&&$.formErrors?x(Z0($==null?void 0:$.formErrors)):l?l(w,$,U.formData):(console.log(`There has been an error submitting the form ${w}`,$),Io("fcode-forms-on-submit-error",{formId:w,error:$}),O({kind:"error",message:J0($)}))}).finally(()=>y(!1))},[w,C,s,o,l,b,v]),{loading:T,formSpecs:F,error:L}=C0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale}),J={...Yy,...p};tv(J),V.useEffect(()=>{L&&(l?l(w,L,{}):(console.log(`There has been an error submitting the form ${w}`,L),Io("fcode-forms-on-submit-error",{formId:w,error:L})))},[L]);const Y=wn(["fcode-form-wrapper",J.className]);if(T)return N.jsx("div",{className:wn([Y,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(mm,{active:!0,content:J.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(lv,{})})})});if(L||!F)return N.jsx("div",{className:Y,"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:X0(L)})})});F.schema.embedFormOptions={...Yy,...F.schema.embedFormOptions,...p,variables:{...F.schema.embedFormOptions&&F.schema.embedFormOptions.variables,...v.variables,...p&&p.variables}};const Q=yb(F),P=Object.keys(Q.schema.properties||{}),D=Object.fromEntries(Object.entries(S).filter(([U,$])=>P.includes(U)));if(E)return N.jsx("div",{className:wn(["fcode-form-wrapper",Q.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:wn(["fcode-form-markdown",E.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${E.kind}-message`,children:N.jsx(Kc,{components:u,children:E.message})})})});const{loadingOverlayDisabled:B,loadingOverlayContent:I,locale:R,fallbackLocale:M}=Q.embedFormOptions;return N.jsx("div",{className:wn(["fcode-form-wrapper",Q.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(mm,{active:h,content:I,disabled:B,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(L1,{id:w,schema:Q.schema,uiSchema:Q.uiSchema,embedFormOptions:Q.embedFormOptions,locale:R,fallbackLocale:M,formData:D,onSubmit:j,noHtml5Validate:!0,disabled:m,readonly:d,showErrorList:!1,extraErrors:_,...k})})})})};zd.displayName="FcodeForm";exports.FcodeForm=zd;exports.FcodeJsonSchemaForm=L1;exports.buildId=Zy;exports.default=zd;exports.processFormSpecs=yb;
144
+ `),endPos:a.end}:null}function $d(e,t,r){Fa=0,e=_q(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=Qq(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=Tn(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 u=s[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=Vr(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=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var m=a,d=0;d<m.length;d++)for(var p=m[d],k=0;k<p.src.length;k++){var v=p.src[k];if(p.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)p.dest.push(g[b]);else p.dest.push(v)}t.t=void 0,t.p=void 0,Af(n,t,r.slugify)}return E1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Of;try{Ri=rn.createElement("div"),Of=Ri!=null&&typeof Ri=="object"&&"$$typeof"in Ri&&typeof Ri.$$typeof=="symbol"?Ri.$$typeof:Symbol.for("react.transitional.element")}catch{Of=Symbol.for("react.transitional.element")}var Ri;function _f(e,t,r){return{$$typeof:Of,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function sr(e,t){var r={key:e};if(t){var i=C1(t);for(var a in i)r[a]=i[a]}return r}var Gy=typeof rn.createContext>"u"?void 0:rn.createContext(void 0);function Jy(e,t,r,i,a,n,s,o,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),yi)}`,e.children.unshift(Tq(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 o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?Pn(e.lang):"";var u=e.attrs?C1(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(Li(o)&&Ay(g.tag)){var c=Ey(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...Dq(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,C=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(C&&g.c){let h=g.tag.toLowerCase(),y=Kq(h),S=g.children,A=S!=null&&S.length>0;if(y){let D=w?b:g.e||"",L=Li(o)?Oy(D):D;if(/<[a-z][^>]{0,100}>/i.test(C)){var f=sr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:L},l(e.tag,f)}return l(e.tag,sr(r.key,e.attrs),L)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(A&&!_.test(C)&&Li(o)&&Uq(C))return l(e.tag,sr(r.key,e.attrs),t(S,r));if(Wq(C)){let D=Li(o)?Oy(C):C;var m=sr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:D},l(e.tag,m)}let x=Ld({slugify:o.slugify,sanitizer:a,tagfilter:!0}),E=Pq(C);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(E))return g.children&&g.children.length>0?l(e.tag,sr(r.key,e.attrs),t(g.children,r)):l(e.tag,sr(r.key,e.attrs));let O=$d(E,{inline:!1,refs:s,inHTML:!1},x);A1(O);let R=g.tag.toLowerCase(),T=w;if(T&&A)return l(e.tag,sr(r.key,e.attrs),t(S,r));if(T)return t(O.flatMap(Bi),r);var d=Nq(O,R);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(Bi),k=d.afterClose.flatMap(Bi);return _f(rn.Fragment,{children:[l(e.tag,sr(r.key,e.attrs),t(p,r)),t(k,r)]},r.key)}return l(e.tag,sr(r.key,e.attrs),t(O.flatMap(Bi),r))}return vs(e.tag)?l(e.tag,sr(r.key,e.attrs)):l(e.tag,sr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(Li(o)&&Ay(g.tag)){var v=Ey(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,sr(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=Mq(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(C,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(C,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 Az=(e,t,r,i,a,n,s)=>{var o=u=>u.map(c=>"text"in c?c.text:""),l=(u,c={})=>{var f=Array.isArray(u)?u:[u],m=(c.renderDepth||0)+1;if(m>2500)return o(f);c.renderDepth=m;for(var d=c.key,p=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=Jy.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=Jy(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var C=p.at(-1);p[p.length-1]=(typeof C=="string"?C:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)p.push(g[h]);else p.push(g);k=w}return c.key=d,c.renderDepth=m-1,p};return l},Oz=(e,t)=>{let r=gf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:gf(t,`${e}.component`,e):e};function _z(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||yi,a=r.sanitizer||nn,n=r.createElement,s=E1(r.overrides),o=w=>Pf(w,{...r,wrapper:null});function l(w){for(var C in w){var h=w[C];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===rt&&(Bq.test(h)||Vq.test(h)||Ez(h,0))){var y=o(h.trim());w[C]=C==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,C,...h){var y=C||{},S=w;if(s){var A=gf(r.overrides,`${w}.props`,{});S=Oz(w,r.overrides),y={...y,...A,className:zq(y.className,A.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),_f(S,y,_)}return n(S,y,...h)}function c(w,C,...h){return C&&l(C),u(w,C,...h)}let f=Ld(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=Az(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),k=Lq(m);if(k.length>0&&p.push(u("footer",{key:"footer"},k.map(function(w){let C=w.identifier.charCodeAt(0)===fn?w.identifier.slice(1):w.identifier,h=$d(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(C,yi),key:w.identifier},`${C}: `,d(h,{inline:!0,refs:m}))}))),r.wrapper===null)return p;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(p.length>1||r.forceWrapper)g=p;else return p.length===1?p[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,_f(v,b,"outer")}function Pf(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||Sq.test(n)),o=Ld(r,s),l=s?n:Rq(n),u=$d(l,{inline:s,refs:a},o);return _z(u,{...r,forceInline:s})}let a={};return i(e)}function Pz(e){let t=rn.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 ks=({children:e,options:t,...r})=>{if(!(typeof rn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Pf(e??"",o)}let i=Gy?rn.useContext(Gy):void 0,a=Pz(r),n=rn.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 rn.useMemo(()=>Pf(s,n),[s,n])};const R1=Symbol("remove-this-key"),Yy=Symbol("reset");function Iz(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function Tz(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 N1(e){return!!(e!=null&&e[Sn])}function Xy(e){return Object.keys(e).filter(t=>N1(e[t]))}function jz(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=V.useState(!1),{globalFormOptions:C,fields:h}=i,{SchemaField:y}=h,S=fa(Tr(p,C,t.path)),A=V.useCallback((O,R,T,D)=>{let L=O;O===void 0&&g&&(L=""),o(L,R,T,D)},[o,g]),_=V.useCallback(O=>{p!==O&&w(!0),k(p,O)},[p,k]),x=V.useCallback(O=>{const{target:{value:R}}=O;_(R)},[_]),E=V.useCallback(()=>{v(p)},[p,v]);return j.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:x,onRemoveProperty:E,onChange:A,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const Rz=V.memo(jz);function Nz(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!1,disabled:l,readonly:u,hideError:c,onBlur:f,onFocus:m,onChange:d,registry:p,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=p,{OptionalDataControlsField:C}=v,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=V.useMemo(()=>me(r,w),[r,w]),A=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,x=V.useRef({previousKey:"",currentKey:void 0}),[E,O]=V.useState(()=>Xy(A)),R=V.useMemo(()=>{const $=new Set(Xy(A));return Object.keys(A).filter(H=>!$.has(H))},[A]),T=S.title??y.title??k??s,D=S.description??y.description,L=hs(p,y,o,r),J=ca(i);let Y=[];const X=V.useCallback(($,H)=>{const{duplicateKeySuffixSeparator:G="-"}=me(r,w);let Z=0,z=$;for(;qe(H,z);)Z+=1,z=`${$}${G}${Z}`;return z},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const $={...i},H=X("newKey",$);if(y.patternProperties)lt($,H,null);else{let G,Z,z;if(Ue(y.additionalProperties)){G=y.additionalProperties.type,Z=y.additionalProperties.const,z=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,Z=W.const,z=g.getDefaultFormState(W,z)),!G&&(Le in W||Ae in W)&&(G="object")}const q=Z??z??Tz(b,G);lt($,H,q)}x.current.previousKey===H&&(x.current.currentKey=H,x.current.previousKey=X(H,$)),O(G=>[...G,H]),d($,_.path)},[i,d,b,g,_,X,y]),F=V.useCallback(($,H)=>{if($!==H){const G=h.current,Z=X(H,G),z={...G},q={[$]:Z},W=Object.keys(z).map(ie=>({[Object.hasOwn(q,ie)?q[ie]:ie]:z[ie]})),K=Object.assign({},...W);h.current=K,$!==x.current.currentKey&&(x.current.previousKey=$),x.current.currentKey=Z,O(ie=>ie.map(re=>re===$?Z:re)),d(K,_.path)}},[d,_,X]),B=V.useCallback($=>{O(H=>H.filter(G=>G!==$)),d(R1,[..._.path,$])},[d,_]),I=V.useCallback($=>x.current.currentKey===$?x.current.previousKey:$,[]);if(!L||J)try{const $=new Set(R),H=E.filter(G=>Object.hasOwn(A,G)&&!$.has(G));Y=kF([...R,...H],S.order)}catch($){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(ks,{options:{disableParsingRawHTML:!0},children:b(_e.InvalidObjectField,[s||"root",$.message])})}),j.jsx("pre",{children:JSON.stringify(y)})]})}const N=ye("ObjectFieldTemplate",p,S),M=L?j.jsx(C,{...e,fieldPathId:_,schema:y}):void 0,U={title:S.label===!1?"":T,description:S.label===!1?void 0:D,properties:Y.map($=>{var q;const H=N1((q=y.properties)==null?void 0:q[$]),G=H?r.additionalProperties:r[$],Z=me(G).widget==="hidden";return{content:j.jsx(Rz,{propertyName:$,required:Iz(y,$),schema:ae(y,[$e,$],{}),uiSchema:G,errorSchema:ae(a,[$]),fieldPathId:_,formData:ae(i,[$]),handleKeyRename:F,handleRemoveProperty:B,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I($)),name:$,readonly:u,disabled:l,required:o,hidden:Z}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:M,className:L?"rjsf-optional-object-field":void 0};return j.jsx(N,{...U,onAddProperty:P})}function Fz(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ye("OptionalDataControlsTemplate",u,d),k=ca(i);let v,g,b,w;if(a||n)v=zu(l,"Msg"),g=k?void 0:m(_e.OptionalObjectEmptyMsg);else{const C=k?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=m(C),k?(v=zu(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=zu(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=vr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&j.jsx(p,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const Dz={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Mz(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=vr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=Dz[o];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 Lz(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:p,globalFormOptions:k,globalUiOptions:v,fields:g}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:C}=g,h=r[nt],y=V.useCallback((ke,Pe,de,Ve)=>o(ke,Pe,de,Ve||h),[h,o]);if(t[Qf])return j.jsx(C,{...e});const S=wF(t,i,m),A=me(S,v),_=ye("FieldTemplate",m,A),x=ye("DescriptionFieldTemplate",m,A),E=ye("FieldHelpTemplate",m,A),O=ye("FieldErrorTemplate",m,A),R=p.retrieveSchema(t,a),T=Mz(R,A,m),L=!!R.deprecated?A.deprecatedHandling??"label":void 0,J=!!(A.disabled??e.disabled)||L==="disable",Y=!!(A.readonly??(e.readonly||e.schema.readOnly||R.readOnly)),X=A.hideError,P=X===void 0?e.hideError:!!X,F=!!(A.autofocus??e.autofocus);if(Object.keys(R).length===0)return null;let B=p.getDisplayLabel(R,S,v);const I=A.field&&A.fieldReplacesAnyOrOneOf===!0;let N,M,U={fieldPathId:r};if((Le in R||Ae in R)&&!I&&!p.isSelect(R)){R[Le]?(N=b,M=R[Le].map(de=>p.retrieveSchema(Ue(de)?de:{},a))):R[Ae]&&(N=w,M=R[Ae].map(de=>p.retrieveSchema(Ue(de)?de:{},a)));const ke=hs(m,R,f,S),Pe=ca(a);B=B&&(!ke||Pe),U={childFieldPathId:r,fieldPathId:Tr("XxxOf",k,r)}}const{__errors:$,...H}=n||{},G=Ja(S,["ui:classNames","classNames","ui:style"]);Cn in G&&(G[Cn]=Ja(G[Cn],["classNames","style"]));const Z=j.jsx(T,{...e,onChange:y,...U,schema:R,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:F,errorSchema:H,rawErrors:$}),z=r[nt];let q;d?q=s:q=Sn in R?s:A.title||e.schema.title||R.title||e.title||s,L==="label"&&(q=m.translateString(_e.DeprecatedLabel,[q]));const W=A.description||e.schema.description||R.description||"",{help:K}=A,ie=A.widget==="hidden"||L==="hide",re=["rjsf-field",`rjsf-field-${vr(R)}`];!P&&$&&$.length>0&&re.push("rjsf-field-error"),A.classNames&&re.push(A.classNames);const ue=j.jsx(E,{help:K,fieldPathId:r,schema:R,uiSchema:S,hasErrors:!P&&$&&$.length>0,registry:m}),ge=P||N&&!p.isSelect(R)?void 0:j.jsx(O,{errors:$,errorSchema:n,fieldPathId:r,schema:R,uiSchema:S,registry:m}),we={description:j.jsx(x,{id:$n(z),description:W,schema:R,uiSchema:S,registry:m}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ge,rawErrors:P?void 0:$,fieldPathId:r,id:z,label:q,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:Y,hideError:P,displayLabel:B,classNames:re.join(" ").trim(),style:A.style,formData:a,schema:R,uiSchema:S,registry:m};return j.jsx(_,{...we,children:j.jsxs(j.Fragment,{children:[Z,N&&j.jsx(N,{name:s,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:R,uiSchema:S})]})})}const qz=V.memo(Lz,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?cf(e,t):ze(e,t)});function zz(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:m,registry:d,rawErrors:p,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:C,globalUiOptions:h}=d,y=C.isSelect(t)?di(t,i):void 0;let S=y?"select":"text";b&&hF(t,b,w)&&(S=b);const{widget:A=S,placeholder:_="",title:x,...E}=me(i),O=C.getDisplayLabel(t,i,h),R=x??v??g??r,T=Kr(t,A,w),D=V.useCallback((L,J,Y)=>c(L,a.path,J,Y),[c,a]);return j.jsx(T,{options:{...E,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:R,hideLabel:!O,hideError:k,value:n,onChange:D,onBlur:f,onFocus:m,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function $z(){return{AnyOfField:vy,ArrayField:TL,BooleanField:jL,CyclicSchemaField:RL,FallbackField:ML,LayoutGridField:Dd,LayoutHeaderField:iq,LayoutMultiSchemaField:aq,NumberField:uq,ObjectField:Nz,OneOfField:vy,OptionalDataControlsField:Fz,SchemaField:qz,StringField:zz,NullField:sq}}function Uz(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=me(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ye("DescriptionFieldTemplate",i,s);return j.jsx(l,{id:$n(t),description:r,schema:a,uiSchema:n,registry:i})}function Bz(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=m.templates.ButtonTemplates;return j.jsxs(j.Fragment,{children:[(a||i)&&j.jsx(v,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&j.jsx(k,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&j.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function Vz(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=me(l),c=ye("ArrayFieldItemButtonsTemplate",o,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},p={display:"flex",justifyContent:"flex-end",marginTop:a?`${m}px`:0};return j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:p,children:j.jsx(c,{...i,style:f})})})]})}function Hz(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,onAddClick:l,readonly:u,registry:c,required:f,schema:m,title:d}=e,p=me(n),k=ye("ArrayFieldDescriptionTemplate",c,p),v=ye("ArrayFieldTitleTemplate",c,p),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return j.jsxs("fieldset",{className:r,id:a.$id,children:[j.jsx(v,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),j.jsx(k,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:ir(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function Kz(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=me(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ye("TitleFieldTemplate",s,l);return j.jsx(c,{id:Pl(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function Wz(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?j.jsx("datalist",{id:Od(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function Gz(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...C}=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={...C,...oF(d,g,m)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const A=V.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),x=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),E=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?Od(t):void 0,onChange:f||A,onBlur:_,onFocus:x,"aria-describedby":Rr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(h,{registry:k,onClick:E}),j.jsx(Wz,{id:t,schema:d})]})}function Jz(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const qn=V.memo(Jz);function Yz(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.CopyButton),...e,icon:"copy"})}const Xz=V.memo(Yz);function Zz(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const Qz=V.memo(Zz);function e$(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const t$=V.memo(e$);function r$(e){const{registry:{translateString:t}}=e;return j.jsx(qn,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const n$=V.memo(r$);function i$({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return j.jsx(qn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const a$=V.memo(i$);function s$({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return j.jsx("div",{className:"row",children:j.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:j.jsx(qn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function o$({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Cd(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function l$(){return{SubmitButton:o$,AddButton:s$,CopyButton:Xz,MoveDownButton:Qz,MoveUpButton:t$,RemoveButton:n$,ClearButton:a$}}function u$(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[nt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[nt]),children:n(_e.ExpandButton)})," "]})]})}const F1=Ed();function D1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?j.jsx(ks,{options:{disableParsingRawHTML:!0},"data-testid":F1.markdown,children:e}):e}D1.TEST_IDS=F1;function c$(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(D1,{description:r,registry:i,uiSchema:a})}):null}function f$({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(_e.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((i,a)=>j.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function d$(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ye("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function m$(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=Ad(r);return j.jsx("div",{children:j.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>j.jsx("li",{className:"text-danger",children:a},n))})})}const M1=Ed();function L1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?j.jsx(ks,{options:{disableParsingRawHTML:!0},"data-testid":M1.markdown,children:e}):e}L1.TEST_IDS=M1;function p$(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?j.jsx("div",{id:_d(t),className:"help-block",children:j.jsx(L1,{help:r,registry:a,uiSchema:i})}):null}const h$="*";function q1(e){const{label:t,required:r,id:i}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&j.jsx("span",{className:"required",children:h$})]}):null}function g$(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ye("WrapIfAdditionalTemplate",c,m);if(o)return j.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return j.jsxs(d,{...e,children:[u&&!p&&j.jsx(q1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function y$(e){const{children:t,column:r,className:i,...a}=e;return j.jsx("div",{className:i,...a,children:t})}function v$(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function b$(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:l,readonly:u,registry:c,required:f,schema:m,title:d,uiSchema:p}=e,k=me(p),v=ye("TitleFieldTemplate",c,k),g=ye("DescriptionFieldTemplate",c,k);if((m.oneOf||m.anyOf)&&!m.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:C}}=c.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:Pl(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?o:void 0}),r&&j.jsx(g,{id:$n(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:o,l.map(h=>h.content),Ob(m,p,a)&&j.jsx(C,{id:ir(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:p,registry:c})]})}function k$(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?j.jsx(qn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?j.jsx(qn,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):j.jsx("em",{id:t,children:i})}const w$="*";function x$(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return j.jsxs("legend",{id:t,children:[r,i&&j.jsx("span",{className:"required",children:w$}),a&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function S$(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)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(ks,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function C$(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:l,rawDescription:u,readonly:c,required:f,schema:m,hideError:d,rawErrors:p,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:C}=b.ButtonTemplates,h=w(_e.KeyLabel,[s]),y=Sn in m,S=!!u,A=["form-group",r];!d&&p&&p.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!y)return j.jsx("div",{className:_,style:i,children:k});const x=S?46:26;return j.jsx("div",{className:_,style:i,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(q1,{label:h,required:f,id:`${t}-key`}),n&&u&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${x}px`:void 0},children:j.jsx(C,{id:ir(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function E$(){return{ArrayFieldDescriptionTemplate:Uz,ArrayFieldItemTemplate:Vz,ArrayFieldItemButtonsTemplate:Bz,ArrayFieldTemplate:Hz,ArrayFieldTitleTemplate:Kz,ButtonTemplates:l$(),BaseInputTemplate:Gz,CyclicSchemaExpandTemplate:u$,DescriptionFieldTemplate:c$,ErrorListTemplate:f$,FallbackFieldTemplate:d$,FieldTemplate:g$,FieldErrorTemplate:m$,FieldHelpTemplate:p$,GridTemplate:y$,MultiSchemaFieldTemplate:v$,ObjectFieldTemplate:b$,OptionalDataControlsTemplate:k$,TitleFieldTemplate:x$,UnsupportedFieldTemplate:S$,WrapIfAdditionalTemplate:C$}}function A$({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function O$(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:u}=e,{translateString:c}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=OF(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(AF,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:p,children:c(_e.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(_e.ClearLabel)})})]})}function _$({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>o(e,_r(b==null?void 0:b.value,f,p,d)),[o,e,f,d,p]),g=V.useCallback(({target:b})=>l(e,_r(b==null?void 0:b.value,f,p,d)),[l,e,f,d,p]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,k),h=Array.isArray(m)&&m.includes(b.value),y=t||h||n?"disabled":"",S=_=>{_.target.checked?s(Wk(w,k,f)):s(Hk(w,k,f))},A=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:Il(e,w),name:u||e,checked:C,value:ms(b.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(e)}),j.jsx("span",{children:b.label})]});return c?j.jsx("label",{className:`checkbox-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`checkbox ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function P$({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const k=ye("DescriptionFieldTemplate",d,r),v=$a(e),g=V.useCallback(S=>m(S.target.checked),[m]),b=V.useCallback(S=>c(i,S.target.checked),[c,i]),w=V.useCallback(S=>f(i,S.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&j.jsx(k,{id:$n(i),description:y,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":Rr(i)}),yF(j.jsx("span",{children:o}),l)]})]})}function I$(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return j.jsx(n,{type:"color",...e,disabled:t||r})}function T$(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return j.jsx(n,{type:"datetime-local",...e,value:jF(r),onChange:s=>t(vF(s))})}function j$(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s||void 0),[t]);return j.jsx(a,{type:"date",...e,onChange:n})}function R$(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return j.jsx(i,{type:"email",...e})}function N$({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)?j.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function F$({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ye("ButtonTemplates",t,a);return j.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,m=()=>i(l);return j.jsxs("li",{children:[j.jsx(ks,{children:n(_e.FilesInfo,[u,f,String(c)])}),r&&j.jsx(N$,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},l)})})}function D$(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=TF(s,n,a),m=ye("BaseInputTemplate",l,o),d=p=>{p.target.files&&c(p.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(F$,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function M$({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function L$(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return j.jsx(i,{type:"password",...e})}function q$({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,k=ps(e),v=V.useCallback(({target:b})=>s(u,_r(b==null?void 0:b.value,f,k,p)),[s,f,p,u,k]),g=V.useCallback(({target:b})=>o(u,_r(b==null?void 0:b.value,f,k,p)),[o,f,p,u,k]);return j.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const C=ua(b.value,t),h=Array.isArray(m)&&m.includes(b.value),y=i||h||a?"disabled":"",S=()=>l(b.value),A=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:Il(u,w),checked:C,name:c||u,required:r,value:ms(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:g,"aria-describedby":Rr(u)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${y}`,children:A},String(b.value)):j.jsx("div",{className:`radio ${y}`,children:j.jsx("label",{children:A})},String(b.value))})})}function z$(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function $$({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,onBlur:l,schema:u,options:c,htmlName:f}){const{stars:m=5,shape:d="star"}=c,p=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(m,1),5),k=u.minimum||0,v=V.useCallback(C=>{!i&&!a&&s(C)},[s,i,a]),g=V.useCallback(C=>{if(o){const h=Number(C.target.dataset.value);o(e,h)}},[o,e]),b=V.useCallback(C=>{if(l){const h=Number(C.target.dataset.value);l(e,h)}},[l,e]),w=C=>d==="heart"?C?"♥":"♡":C?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((C,h)=>{const y=k+h,S=y<=t;return j.jsx("span",{onClick:()=>v(y),onKeyDown:A=>(A.key==="Enter"||A.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:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},h)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Rc(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function U$({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:f,placeholder:m,htmlName:d,registry:p,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=o?[]:"",C=ps(r),h=V.useCallback(x=>{const E=Rc(x,o);return f(t,_r(E,v,C,b))},[f,t,o,v,b,C]),y=V.useCallback(x=>{const E=Rc(x,o);return c(t,_r(E,v,C,b))},[c,t,o,v,b,C]),S=V.useCallback(x=>{const E=Rc(x,o);return u(_r(E,v,C,b))},[u,o,v,b,C]),A=XN(i,v,o,C,w),_=!o&&e.default===void 0;return bF(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(xF,{id:t,multiple:o,options:r,registry:p,uiSchema:k,value:i}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:S,"aria-describedby":Rr(t),children:[_&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:x,label:E},O)=>{const R=g&&g.includes(x);return j.jsx("option",{value:ms(x,O,C),disabled:R,children:E},String(x))})]})]})}function B$({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=V.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=V.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),p=V.useCallback(({target:k})=>c(e,k==null?void 0:k.value),[e,c]);return j.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:p,onChange:m,"aria-describedby":Rr(e)})}function V$(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return j.jsx(i,{...e})}function H$(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(a,{type:"time",...e,onChange:n})}function K$(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return j.jsx(i,{type:"number",...e})}function W$(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return j.jsx(i,{type:"url",...e})}function G$(){return{AltDateWidget:O$,AltDateTimeWidget:A$,CheckboxWidget:P$,CheckboxesWidget:_$,ColorWidget:I$,DateWidget:j$,DateTimeWidget:T$,EmailWidget:R$,FileWidget:D$,HiddenWidget:M$,PasswordWidget:L$,RadioWidget:q$,RangeWidget:z$,RatingWidget:$$,SelectWidget:U$,TextWidget:V$,TextareaWidget:B$,TimeWidget:H$,UpDownWidget:K$,URLWidget:W$}}function J$(){return{fields:$z(),templates:E$(),widgets:G$(),rootSchema:{},formContext:{},translateString:YN,globalFormOptions:{idPrefix:Sb,idSeparator:Cb,useFallbackUiForUnsupportedType:!1}}}function Ni(e,t){return{...$k(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let Y$=class ni extends V.Component{constructor(r){super(r);$t(this,"formElement");$t(this,"pendingChanges",[]);$t(this,"isProcessingUserChange",!1);$t(this,"getUsedFormData",(r,i)=>zN(r,i));$t(this,"getFieldNames",(r,i)=>$N(r,i));$t(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});$t(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Tr("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[nt])});$t(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});$t(this,"reset",()=>{const{formData:r,initialFormData:i=Yy,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(Ni({...this.state,...o})))});$t(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:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),o==="onBlur"){const{schema:p,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(p,k,v,f,u,g,b);m={formData:f,...w,customErrors:g}}const d=Object.keys(m).filter(p=>!p.startsWith("schemaValidation")).some(p=>{const k=ae(this.state,p),v=ae(m,p);return!ze(k,v)});this.setState(m,()=>{l&&d&&l(Ni({...this.state,...m}),r)})}});$t(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});$t(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||{},u=a?Id(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(Ni({...this.state,formData:o},"submitted"),r)})}});$t(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});$t(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?ni.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},()=>{s?s(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,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&&!ze(this.state.formData,s)&&n(Ni(this.state)),this.formElement=V.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}=Ra(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=Ra({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!ze(this.props,r)){const a=ch(this.props.formData,r.formData),n=ch(this.props.formData,this.state.formData),s=!ze(r.schema,this.props.schema),o=a.length>0||!ze(r.formData,this.props.formData),l=n.length>0||!ze(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),c=!ze(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!ze(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!ze(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(Ni(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var X;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,m=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,p=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=p&&!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=WN(f,c,g,b));const C=w.getRootSchema();let h=i;i===Yy?h=void 0:i===void 0&&d&&(h=u.formData);let y,S,A=!1;const _=[];do{y=w.getDefaultFormState(C,h,!1,u.initialDefaultsGenerated);const P=l?fr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(C,y)),l&&!_.includes(P)&&!ze(S,u.retrievedSchema)){const F=w.sanitizeDataForNewSchema(S,u.retrievedSchema,y);if(A=!ze(F,y),A){y=F,h=F;const B=fr({formData:F});A=!_.includes(B),_.push(B)}_.push(P)}else A=!1}while(A);const x=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let E,O,{schemaValidationErrors:R,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(C,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);E=P.errors,O=P.errorSchema,R=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=x();if(E=P.errors,O=P.errorSchema,s.length>0&&!v){const B=s.reduce((I,N)=>(I[N]=void 0,I),{});T=Fn(P.errorSchema,B,"preventDuplicates"),O=T}const F=ni.mergeErrors({errorSchema:O,errors:E},r.extraErrors,u.customErrors);E=F.errors,O=F.errorSchema}const D=ni.getRegistry(r,C,w),L=ze(u.registry,D)?u.registry:D,J=u.fieldPathId&&((X=u.fieldPathId)==null?void 0:X[nt])===L.globalFormOptions.idPrefix?u.fieldPathId:Tr("",L.globalFormOptions);return{schemaUtils:w,schema:C,uiSchema:m,fieldPathId:J,formData:y,edit:p,errors:E,errorSchema:O,schemaValidationErrors:R,schemaValidationErrorSchema:T,retrievedSchema:S,initialDefaultsGenerated:!0,registry:L}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return SF(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,c,o,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=me(s),l=ye("ErrorListTemplate",r,o);return i!=null&&i.length?j.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=Ra(r,i);n=o.errorSchema,s=o.errors}if(a){const o=Ra({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,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Fn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...ni.mergeErrors({errorSchema:m,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:p}}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:u,liveValidate:c,onChange:f,disabled:m,readonly:d}=this.props,{formData:p,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:C,retrievedSchema:h}=this.state,y=b;const S=g.path[0]||"",A=!i||i.length===0||i.length===1&&i[0]===S;let _=A?r:el(p);const x=be(_)&&Object.keys(_).length>0&&Object.values(_).every(L=>L===void 0),E=p==null,O=x&&E?void 0:_;if(be(_)||Array.isArray(_)){let L=!1;if(r===R1)wL(_,i);else if(!A){let X=r;if(r===void 0)if(typeof i[i.length-1]=="number")X=null;else{const{field:F}=k.findFieldInSchema(v,i,p),B=F;!(B&&(Ae in B||Le in B))&&B!==void 0&&(L=!0)}L?lt(_,i,void 0):lt(_,i,X)}const J=h&&!A&&!be(r)&&!Array.isArray(r)&&!m&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,L&&_&&lt(_,i,void 0)}const R=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},D=_;if(o===!0&&(l===!0||l==="onChange")&&(D=this.omitExtraData(_),T={...T,formData:D}),n){const L=A?b:ae(b,i);if(!wt(L))A?y=n:(y=el(b),lt(y,i,n));else if(C||(C=new Gk),A){const J=ae(n,Nt);J&&C.setErrors(J)}else lt(C.ErrorSchema,i,n)}else C&&ae(C.ErrorSchema,[...i,Nt])&&C.clearErrors(i);if(R&&this.pendingChanges.length===1){const L=this.liveValidate(v,k,y,D,s,C,h);T={...T,formData:D,...L,customErrors:C}}else if(!u&&n){const L=ni.mergeErrors({errorSchema:y,errors:w},s,C);T={...T,formData:D,...L,customErrors:C}}this.setState(T,()=>{f&&f(Ni({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return ze(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Cb,idPrefix:s=Sb,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 m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=J$();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:s[Xc],globalFormOptions:ni.getGlobalFormOptions(r),uiSchemaDefinitions:s[i_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=Zk(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:u,autoComplete:c,enctype:f,acceptCharset:m,noHtml5Validate:d=!1,disabled:p,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:C,errorSchema:h,fieldPathId:y,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,x=g?n:void 0,E=g||n||"form";let{[Go]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const R={[Cn]:{[Go]:O}};return j.jsxs(E,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:x,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(A,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:C,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:p,readonly:k}),r||j.jsx(_,{uiSchema:R,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};const X$=Y$,Z$=(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}),z1=({id:e,...t})=>{const[r,i]=V.useState(t.formData);return j.jsx(X$,{id:e,idPrefix:`root_${e}`,transformErrors:a=>Z$(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)}})},Q$=["tabs","sidebar"],Zy=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),e4=e=>{const t=e??{};return{layout:Q$.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},t4=(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(s=>typeof s!="string"||!r.includes(s)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${s}"; dropped.`),!1):i.has(s)?(console.warn(`"ui:steps" step ${t+1} repeats field "${s}"; keeping its first occurrence.`),!1):(i.add(s),!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}},r4=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return Zy('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((o,l)=>t4(o,l,i,a)).filter(o=>!!o);if(n.length<2)return Zy("fewer than two usable steps"),null;const s=i.filter(o=>!a.has(o));return s.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${s.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...s)),{config:e4(r.config),steps:n}},n4=({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return j.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[j.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>j.jsx("li",{className:"fcode-steps-nav-item",children:j.jsxs("button",{type:"button",className:tn("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[j.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.index+1}),j.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),j.jsxs("div",{className:"fcode-steps-main",children:[n&&j.jsxs("div",{className:"fcode-steps-header",children:[j.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&j.jsx("p",{className:"fcode-steps-description",children:n.description})]}),j.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},i4=({label:e,onClick:t,disabled:r})=>j.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e}),a4={StepsNavigation:n4,BackButton:i4},fl=(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]},o4=(e,t)=>{const r=e,i=Object.entries(fl(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:fl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},l4=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),u4=({parsed:e,components:t,...r})=>{var J,Y;const{steps:i,config:a}=e,n=r.schema,s=r.uiSchema,[o,l]=V.useState(0),[u,c]=V.useState(0),[f,m]=V.useState({...r.formData??{}}),d=V.useRef({}),p=V.useMemo(()=>i.map(X=>[...X.fields,...s4(n,X.fields)]),[i,n]),k=V.useMemo(()=>i.map((X,P)=>({schema:o4(n,X.fields),uiSchema:l4(s,p[P])})),[i,n,s,p]),v=r.extraErrors,g=V.useMemo(()=>p.map(X=>X.some(P=>!!v&&P in v)),[p,v]);V.useEffect(()=>{const X=g.findIndex(Boolean);X>=0&&l(X)},[v]),V.useEffect(()=>{d.current=fl(f,p[o])},[o]);const b=(X,P,F)=>({...Object.fromEntries(Object.entries(X).filter(([B])=>!p[F].includes(B))),...P}),w=X=>{m(P=>b(P,d.current,o)),l(X)},C=r.readonly===!0||r.disabled===!0||(s==null?void 0:s["ui:readonly"])===!0,h=X=>X!==o&&(C||X<=u),y=X=>{h(X)&&w(X)},S=o===i.length-1,A=(X,P)=>{const F=b(f,X.formData??{},o);if(m(F),S){r.onSubmit&&r.onSubmit({...X,formData:F},P);return}l(o+1),c(B=>Math.max(B,o+1))},_=X=>{d.current=X.formData??{},r.onChange&&r.onChange(X)},x=i.map((X,P)=>({index:P,title:X.title,description:X.description,status:P<o?"completed":P===o?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:E,BackButton:O}=t,R=(Y=(J=r.templates)==null?void 0:J.ButtonTemplates)==null?void 0:Y.SubmitButton,T=Cd(s??{}),D={"ui:submitButtonOptions":S?T:{...T,submitText:a.nextLabel,norender:!1}},L={translateString:X=>X};return j.jsx(E,{layout:a.layout,items:x,currentIndex:o,onNavigate:y,children:j.jsx(z1,{...r,schema:k[o].schema,uiSchema:k[o].uiSchema,formData:fl(f,p[o]),onChange:_,onSubmit:A,children:j.jsxs("div",{className:"fcode-steps-actions",children:[o>0&&j.jsx(O,{label:a.backLabel,onClick:()=>w(o-1)}),R&&j.jsx(R,{uiSchema:D,registry:L})]})},o)})},c4=(e,t)=>e&&e in _a?Lo({},_a[e]):t&&t in _a?Lo({},_a[t]):Lo({},_a.en),$1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;iv(l);const m=V.useMemo(()=>c4(a,n),[a,n]),d=V.useMemo(()=>r4(c.uiSchema,c.schema),[c.uiSchema,c.schema]),p={id:e,validator:s||m,className:tn(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...kL,...u==null?void 0:u.fields,...i},templates:{...sy.templates,...u==null?void 0:u.templates,...t},widgets:{...sy.widgets,...u==null?void 0:u.widgets,...r},...c};return d?j.jsx(u4,{parsed:d,components:(u==null?void 0:u.multistep)??a4,...p}):j.jsx(z1,{...p})},Qy={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=Y0,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:m=!1,readonly:d=!1,options:p,...k})=>{const[v,g]=V.useState({processId:i,steps:[],variables:{...p&&p.variables}}),[b]=A0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale,async:f}),w=V.useMemo(()=>{const U=tv();return console.log(`Building Factorial Code form with id ${U}`),U},[r,v]),C=V.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[h,y]=V.useState(!1),[S,A]=V.useState(C),[_,x]=V.useState({}),[E,O]=V.useState(null),R=V.useCallback(U=>{x({}),y(!0),A(U.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},...p&&p.locale&&{locale:p.locale}},...U.formData}).then(({results:$,resolvedFiles:H})=>{if(A(C),$.nextProcessId){const G=v.steps;G.push({processId:v.processId,data:{...U.formData,...H},result:$}),g({processId:$.nextProcessId,steps:G,variables:{...v.variables,...$.variables}}),n($.nextProcessId,$);return}s?s(w,$,U.formData):(console.log(`Form ${w} has been successfully submitted.`),Io("fcode-forms-on-submit-success",{formId:w,formSubmittedData:U.formData,processExecutionResult:$})),(!s||o)&&O({kind:"success",message:$.message||X0}),!s&&$.redirect&&J0($.redirect)}).catch($=>{$!=null&&$.formErrors?x(tw($==null?void 0:$.formErrors)):l?l(w,$,U.formData):(console.log(`There has been an error submitting the form ${w}`,$),Io("fcode-forms-on-submit-error",{formId:w,error:$}),O({kind:"error",message:Z0($)}))}).finally(()=>y(!1))},[w,C,s,o,l,b,v]),{loading:T,formSpecs:D,error:L}=O0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:p==null?void 0:p.locale}),J={...Qy,...p};iv(J),V.useEffect(()=>{L&&(l?l(w,L,{}):(console.log(`There has been an error submitting the form ${w}`,L),Io("fcode-forms-on-submit-error",{formId:w,error:L})))},[L]);const Y=tn(["fcode-form-wrapper",J.className]);if(T)return j.jsx("div",{className:tn([Y,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(hm,{active:!0,content:J.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(fv,{})})})});if(L||!D)return j.jsx("div",{className:Y,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:ew(L)})})});D.schema.embedFormOptions={...Qy,...D.schema.embedFormOptions,...p,variables:{...D.schema.embedFormOptions&&D.schema.embedFormOptions.variables,...v.variables,...p&&p.variables}};const X=kb(D),P=Object.keys(X.schema.properties||{}),F=Object.fromEntries(Object.entries(S).filter(([U,$])=>P.includes(U)));if(E)return j.jsx("div",{className:tn(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("div",{className:tn(["fcode-form-markdown",E.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${E.kind}-message`,children:j.jsx(Wc,{components:u,children:E.message})})})});const{loadingOverlayDisabled:B,loadingOverlayContent:I,locale:N,fallbackLocale:M}=X.embedFormOptions;return j.jsx("div",{className:tn(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(hm,{active:h,content:I,disabled:B,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx($1,{id:w,schema:X.schema,uiSchema:X.uiSchema,embedFormOptions:X.embedFormOptions,locale:N,fallbackLocale:M,formData:F,onSubmit:R,noHtml5Validate:!0,disabled:m,readonly:d,showErrorList:!1,extraErrors:_,...k},w)})})})};Ud.displayName="FcodeForm";exports.FcodeForm=Ud;exports.FcodeJsonSchemaForm=$1;exports.buildId=tv;exports.default=Ud;exports.processFormSpecs=kb;
145
145
  //# sourceMappingURL=fcode-form.cjs.js.map