@ccjr1120/memory-one 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -53
- package/dist/server.js +107 -2
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/{highlighted-body-KPVGNVTW-BpWplPka.js → highlighted-body-KPVGNVTW-CkO7YzEE.js} +1 -1
- package/public/assets/index-CaRRawNp.js +190 -0
- package/public/assets/index-MS5JA52f.css +1 -0
- package/public/index.html +2 -2
- package/public/assets/index-CkQQQDOY.js +0 -190
- package/public/assets/index-DUFjREc6.css +0 -1
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
var FE=e=>{throw TypeError(e)};var qE=(e,t,n)=>t.has(e)||FE("Cannot "+n);var sn=(e,t,n)=>(qE(e,t,"read from private field"),n?n.call(e):t.get(e)),VE=(e,t,n)=>t.has(e)?FE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Om=(e,t,n,i)=>(qE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);function Zw(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function N0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lm={exports:{}},go={};var YE;function Jw(){if(YE)return go;YE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,l){var u=null;if(l!==void 0&&(u=""+l),s.key!==void 0&&(u=""+s.key),"key"in s){l={};for(var c in s)c!=="key"&&(l[c]=s[c])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:l}}return go.Fragment=t,go.jsx=n,go.jsxs=n,go}var $E;function eN(){return $E||($E=1,Lm.exports=Jw()),Lm.exports}var x=eN(),Dm={exports:{}},je={};var GE;function tN(){if(GE)return je;GE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),E=Symbol.iterator;function y(U){return U===null||typeof U!="object"?null:(U=E&&U[E]||U["@@iterator"],typeof U=="function"?U:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function k(U,K,I){this.props=U,this.context=K,this.refs=A,this.updater=I||v}k.prototype.isReactComponent={},k.prototype.setState=function(U,K){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,K,"setState")},k.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function N(){}N.prototype=k.prototype;function w(U,K,I){this.props=U,this.context=K,this.refs=A,this.updater=I||v}var D=w.prototype=new N;D.constructor=w,S(D,k.prototype),D.isPureReactComponent=!0;var z=Array.isArray;function L(){}var P={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(U,K,I){var ge=I.ref;return{$$typeof:e,type:U,key:K,ref:ge!==void 0?ge:null,props:I}}function j(U,K){return G(U.type,K,U.props)}function Y(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function W(U){var K={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(I){return K[I]})}var se=/\/+/g;function le(U,K){return typeof U=="object"&&U!==null&&U.key!=null?W(""+U.key):K.toString(36)}function ne(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(L,L):(U.status="pending",U.then(function(K){U.status==="pending"&&(U.status="fulfilled",U.value=K)},function(K){U.status==="pending"&&(U.status="rejected",U.reason=K)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function V(U,K,I,ge,ye){var he=typeof U;(he==="undefined"||he==="boolean")&&(U=null);var we=!1;if(U===null)we=!0;else switch(he){case"bigint":case"string":case"number":we=!0;break;case"object":switch(U.$$typeof){case e:case t:we=!0;break;case m:return we=U._init,V(we(U._payload),K,I,ge,ye)}}if(we)return ye=ye(U),we=ge===""?"."+le(U,0):ge,z(ye)?(I="",we!=null&&(I=we.replace(se,"$&/")+"/"),V(ye,K,I,"",function(Me){return Me})):ye!=null&&(Y(ye)&&(ye=j(ye,I+(ye.key==null||U&&U.key===ye.key?"":(""+ye.key).replace(se,"$&/")+"/")+we)),K.push(ye)),1;we=0;var Te=ge===""?".":ge+":";if(z(U))for(var ve=0;ve<U.length;ve++)ge=U[ve],he=Te+le(ge,ve),we+=V(ge,K,I,he,ye);else if(ve=y(U),typeof ve=="function")for(U=ve.call(U),ve=0;!(ge=U.next()).done;)ge=ge.value,he=Te+le(ge,ve++),we+=V(ge,K,I,he,ye);else if(he==="object"){if(typeof U.then=="function")return V(ne(U),K,I,ge,ye);throw K=String(U),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return we}function X(U,K,I){if(U==null)return U;var ge=[],ye=0;return V(U,ge,"","",function(he){return K.call(I,he,ye++)}),ge}function re(U){if(U._status===-1){var K=U._result;K=K(),K.then(function(I){(U._status===0||U._status===-1)&&(U._status=1,U._result=I)},function(I){(U._status===0||U._status===-1)&&(U._status=2,U._result=I)}),U._status===-1&&(U._status=0,U._result=K)}if(U._status===1)return U._result.default;throw U._result}var Ee=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},R={map:X,forEach:function(U,K,I){X(U,function(){K.apply(this,arguments)},I)},count:function(U){var K=0;return X(U,function(){K++}),K},toArray:function(U){return X(U,function(K){return K})||[]},only:function(U){if(!Y(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};return je.Activity=p,je.Children=R,je.Component=k,je.Fragment=n,je.Profiler=s,je.PureComponent=w,je.StrictMode=i,je.Suspense=d,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,je.__COMPILER_RUNTIME={__proto__:null,c:function(U){return P.H.useMemoCache(U)}},je.cache=function(U){return function(){return U.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function(U,K,I){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var ge=S({},U.props),ye=U.key;if(K!=null)for(he in K.key!==void 0&&(ye=""+K.key),K)!H.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(ge[he]=K[he]);var he=arguments.length-2;if(he===1)ge.children=I;else if(1<he){for(var we=Array(he),Te=0;Te<he;Te++)we[Te]=arguments[Te+2];ge.children=we}return G(U.type,ye,ge)},je.createContext=function(U){return U={$$typeof:u,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:l,_context:U},U},je.createElement=function(U,K,I){var ge,ye={},he=null;if(K!=null)for(ge in K.key!==void 0&&(he=""+K.key),K)H.call(K,ge)&&ge!=="key"&&ge!=="__self"&&ge!=="__source"&&(ye[ge]=K[ge]);var we=arguments.length-2;if(we===1)ye.children=I;else if(1<we){for(var Te=Array(we),ve=0;ve<we;ve++)Te[ve]=arguments[ve+2];ye.children=Te}if(U&&U.defaultProps)for(ge in we=U.defaultProps,we)ye[ge]===void 0&&(ye[ge]=we[ge]);return G(U,he,ye)},je.createRef=function(){return{current:null}},je.forwardRef=function(U){return{$$typeof:c,render:U}},je.isValidElement=Y,je.lazy=function(U){return{$$typeof:m,_payload:{_status:-1,_result:U},_init:re}},je.memo=function(U,K){return{$$typeof:h,type:U,compare:K===void 0?null:K}},je.startTransition=function(U){var K=P.T,I={};P.T=I;try{var ge=U(),ye=P.S;ye!==null&&ye(I,ge),typeof ge=="object"&&ge!==null&&typeof ge.then=="function"&&ge.then(L,Ee)}catch(he){Ee(he)}finally{K!==null&&I.types!==null&&(K.types=I.types),P.T=K}},je.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},je.use=function(U){return P.H.use(U)},je.useActionState=function(U,K,I){return P.H.useActionState(U,K,I)},je.useCallback=function(U,K){return P.H.useCallback(U,K)},je.useContext=function(U){return P.H.useContext(U)},je.useDebugValue=function(){},je.useDeferredValue=function(U,K){return P.H.useDeferredValue(U,K)},je.useEffect=function(U,K){return P.H.useEffect(U,K)},je.useEffectEvent=function(U){return P.H.useEffectEvent(U)},je.useId=function(){return P.H.useId()},je.useImperativeHandle=function(U,K,I){return P.H.useImperativeHandle(U,K,I)},je.useInsertionEffect=function(U,K){return P.H.useInsertionEffect(U,K)},je.useLayoutEffect=function(U,K){return P.H.useLayoutEffect(U,K)},je.useMemo=function(U,K){return P.H.useMemo(U,K)},je.useOptimistic=function(U,K){return P.H.useOptimistic(U,K)},je.useReducer=function(U,K,I){return P.H.useReducer(U,K,I)},je.useRef=function(U){return P.H.useRef(U)},je.useState=function(U){return P.H.useState(U)},je.useSyncExternalStore=function(U,K,I){return P.H.useSyncExternalStore(U,K,I)},je.useTransition=function(){return P.H.useTransition()},je.version="19.2.8",je}var KE;function nu(){return KE||(KE=1,Dm.exports=tN()),Dm.exports}var C=nu();const ml=N0(C),ru=Zw({__proto__:null,default:ml},[C]);var Im={exports:{}},bo={},Mm={exports:{}},Pm={};var XE;function nN(){return XE||(XE=1,(function(e){function t(V,X){var re=V.length;V.push(X);e:for(;0<re;){var Ee=re-1>>>1,R=V[Ee];if(0<s(R,X))V[Ee]=X,V[re]=R,re=Ee;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var X=V[0],re=V.pop();if(re!==X){V[0]=re;e:for(var Ee=0,R=V.length,U=R>>>1;Ee<U;){var K=2*(Ee+1)-1,I=V[K],ge=K+1,ye=V[ge];if(0>s(I,re))ge<R&&0>s(ye,I)?(V[Ee]=ye,V[ge]=re,Ee=ge):(V[Ee]=I,V[K]=re,Ee=K);else if(ge<R&&0>s(ye,re))V[Ee]=ye,V[ge]=re,Ee=ge;else break e}}return X}function s(V,X){var re=V.sortIndex-X.sortIndex;return re!==0?re:V.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var d=[],h=[],m=1,p=null,E=3,y=!1,v=!1,S=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function D(V){for(var X=n(h);X!==null;){if(X.callback===null)i(h);else if(X.startTime<=V)i(h),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(h)}}function z(V){if(S=!1,D(V),!v)if(n(d)!==null)v=!0,L||(L=!0,W());else{var X=n(h);X!==null&&ne(z,X.startTime-V)}}var L=!1,P=-1,H=5,G=-1;function j(){return A?!0:!(e.unstable_now()-G<H)}function Y(){if(A=!1,L){var V=e.unstable_now();G=V;var X=!0;try{e:{v=!1,S&&(S=!1,N(P),P=-1),y=!0;var re=E;try{t:{for(D(V),p=n(d);p!==null&&!(p.expirationTime>V&&j());){var Ee=p.callback;if(typeof Ee=="function"){p.callback=null,E=p.priorityLevel;var R=Ee(p.expirationTime<=V);if(V=e.unstable_now(),typeof R=="function"){p.callback=R,D(V),X=!0;break t}p===n(d)&&i(d),D(V)}else i(d);p=n(d)}if(p!==null)X=!0;else{var U=n(h);U!==null&&ne(z,U.startTime-V),X=!1}}break e}finally{p=null,E=re,y=!1}X=void 0}}finally{X?W():L=!1}}}var W;if(typeof w=="function")W=function(){w(Y)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,le=se.port2;se.port1.onmessage=Y,W=function(){le.postMessage(null)}}else W=function(){k(Y,0)};function ne(V,X){P=k(function(){V(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(V){switch(E){case 1:case 2:case 3:var X=3;break;default:X=E}var re=E;E=X;try{return V()}finally{E=re}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(V,X){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var re=E;E=V;try{return X()}finally{E=re}},e.unstable_scheduleCallback=function(V,X,re){var Ee=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Ee+re:Ee):re=Ee,V){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=re+R,V={id:m++,callback:X,priorityLevel:V,startTime:re,expirationTime:R,sortIndex:-1},re>Ee?(V.sortIndex=re,t(h,V),n(d)===null&&V===n(h)&&(S?(N(P),P=-1):S=!0,ne(z,re-Ee))):(V.sortIndex=R,t(d,V),v||y||(v=!0,L||(L=!0,W()))),V},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(V){var X=E;return function(){var re=E;E=X;try{return V.apply(this,arguments)}finally{E=re}}}})(Pm)),Pm}var QE;function rN(){return QE||(QE=1,Mm.exports=nN()),Mm.exports}var Bm={exports:{}},ln={};var WE;function iN(){if(WE)return ln;WE=1;var e=nu();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(d,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:d,containerInfo:h,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ln.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(d,h,null,m)},ln.flushSync=function(d){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,d)return d()}finally{u.T=h,i.p=m,i.d.f()}},ln.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},ln.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},ln.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:E,fetchPriority:y}):m==="script"&&i.d.X(d,{crossOrigin:p,integrity:E,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ln.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},ln.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=c(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ln.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=c(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},ln.requestFormReset=function(d){i.d.r(d)},ln.unstable_batchedUpdates=function(d,h){return d(h)},ln.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.8",ln}var ZE;function iv(){if(ZE)return Bm.exports;ZE=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Bm.exports=iN(),Bm.exports}var JE;function aN(){if(JE)return bo;JE=1;var e=rN(),t=nu(),n=iv();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function c(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(l(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=l(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,f=a;;){var g=o.return;if(g===null)break;var b=g.alternate;if(b===null){if(f=g.return,f!==null){o=f;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===o)return d(g),r;if(b===f)return d(g),a;b=b.sibling}throw Error(i(188))}if(o.return!==f.return)o=g,f=b;else{for(var _=!1,O=g.child;O;){if(O===o){_=!0,o=g,f=b;break}if(O===f){_=!0,f=g,o=b;break}O=O.sibling}if(!_){for(O=b.child;O;){if(O===o){_=!0,o=b,f=g;break}if(O===f){_=!0,f=b,o=g;break}O=O.sibling}if(!_)throw Error(i(189))}}if(o.alternate!==f)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function m(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=m(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,E=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),w=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function W(r){return r===null||typeof r!="object"?null:(r=Y&&r[Y]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function le(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===se?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case k:return"Profiler";case A:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case G:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case v:return"Portal";case w:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case D:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case P:return a=r.displayName||null,a!==null?a:le(r.type)||"Memo";case H:a=r._payload,r=r._init;try{return le(r(a))}catch{}}return null}var ne=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Ee=[],R=-1;function U(r){return{current:r}}function K(r){0>R||(r.current=Ee[R],Ee[R]=null,R--)}function I(r,a){R++,Ee[R]=r.current,r.current=a}var ge=U(null),ye=U(null),he=U(null),we=U(null);function Te(r,a){switch(I(he,a),I(ye,r),I(ge,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?fE(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=fE(a),r=dE(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}K(ge),I(ge,r)}function ve(){K(ge),K(ye),K(he)}function Me(r){r.memoizedState!==null&&I(we,r);var a=ge.current,o=dE(a,r.type);a!==o&&(I(ye,r),I(ge,o))}function Le(r){ye.current===r&&(K(ge),K(ye)),we.current===r&&(K(we),fo._currentValue=re)}var Be,Ve;function tt(r){if(Be===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Be=a&&a[1]||"",Ve=-1<o.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Be+r+Ve}var gt=!1;function Tt(r,a){if(!r||gt)return"";gt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var te=ie}Reflect.construct(r,[],fe)}else{try{fe.call()}catch(ie){te=ie}r.call(fe.prototype)}}else{try{throw Error()}catch(ie){te=ie}(fe=r())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&te&&typeof ie.stack=="string")return[ie.stack,te.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=f.DetermineComponentFrameRoot(),_=b[0],O=b[1];if(_&&O){var q=_.split(`
|
|
4
|
-
`),ee=O.split(`
|
|
5
|
-
`);for(g=f=0;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(f===q.length||g===ee.length)for(f=q.length-1,g=ee.length-1;1<=f&&0<=g&&q[f]!==ee[g];)g--;for(;1<=f&&0<=g;f--,g--)if(q[f]!==ee[g]){if(f!==1||g!==1)do if(f--,g--,0>g||q[f]!==ee[g]){var oe=`
|
|
6
|
-
`+q[f].replace(" at new "," at ");return r.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",r.displayName)),oe}while(1<=f&&0<=g);break}}}finally{gt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?tt(o):""}function Yt(r,a){switch(r.tag){case 26:case 27:case 5:return tt(r.type);case 16:return tt("Lazy");case 13:return r.child!==a&&a!==null?tt("Suspense Fallback"):tt("Suspense");case 19:return tt("SuspenseList");case 0:case 15:return Tt(r.type,!1);case 11:return Tt(r.type.render,!1);case 1:return Tt(r.type,!0);case 31:return tt("Activity");default:return""}}function pe(r){try{var a="",o=null;do a+=Yt(r,o),o=r,r=r.return;while(r);return a}catch(f){return`
|
|
7
|
-
Error generating stack: `+f.message+`
|
|
8
|
-
`+f.stack}}var Ye=Object.prototype.hasOwnProperty,_e=e.unstable_scheduleCallback,Ie=e.unstable_cancelCallback,vt=e.unstable_shouldYield,rt=e.unstable_requestPaint,it=e.unstable_now,Ln=e.unstable_getCurrentPriorityLevel,ue=e.unstable_ImmediatePriority,xe=e.unstable_UserBlockingPriority,De=e.unstable_NormalPriority,$e=e.unstable_LowPriority,ot=e.unstable_IdlePriority,Dn=e.log,Mr=e.unstable_setDisableYieldValue,fn=null,Ft=null;function En(r){if(typeof Dn=="function"&&Mr(r),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(fn,r)}catch{}}var bt=Math.clz32?Math.clz32:jA,pi=Math.log,ar=Math.LN2;function jA(r){return r>>>=0,r===0?32:31-(pi(r)/ar|0)|0}var yu=256,Eu=262144,xu=4194304;function ua(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Tu(r,a,o){var f=r.pendingLanes;if(f===0)return 0;var g=0,b=r.suspendedLanes,_=r.pingedLanes;r=r.warmLanes;var O=f&134217727;return O!==0?(f=O&~b,f!==0?g=ua(f):(_&=O,_!==0?g=ua(_):o||(o=O&~r,o!==0&&(g=ua(o))))):(O=f&~b,O!==0?g=ua(O):_!==0?g=ua(_):o||(o=f&~r,o!==0&&(g=ua(o)))),g===0?0:a!==0&&a!==g&&(a&b)===0&&(b=g&-g,o=a&-a,b>=o||b===32&&(o&4194048)!==0)?a:g}function _l(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function HA(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $g(){var r=xu;return xu<<=1,(xu&62914560)===0&&(xu=4194304),r}function Ed(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Cl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function UA(r,a,o,f,g,b){var _=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var O=r.entanglements,q=r.expirationTimes,ee=r.hiddenUpdates;for(o=_&~o;0<o;){var oe=31-bt(o),fe=1<<oe;O[oe]=0,q[oe]=-1;var te=ee[oe];if(te!==null)for(ee[oe]=null,oe=0;oe<te.length;oe++){var ie=te[oe];ie!==null&&(ie.lane&=-536870913)}o&=~fe}f!==0&&Gg(r,f,0),b!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=b&~(_&~a))}function Gg(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-bt(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|o&261930}function Kg(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var f=31-bt(o),g=1<<f;g&a|r[f]&a&&(r[f]|=a),o&=~g}}function Xg(r,a){var o=a&-a;return o=(o&42)!==0?1:xd(o),(o&(r.suspendedLanes|a))!==0?0:o}function xd(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Td(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Qg(){var r=X.p;return r!==0?r:(r=window.event,r===void 0?32:ME(r.type))}function Wg(r,a){var o=X.p;try{return X.p=r,a()}finally{X.p=o}}var gi=Math.random().toString(36).slice(2),Jt="__reactFiber$"+gi,xn="__reactProps$"+gi,ls="__reactContainer$"+gi,vd="__reactEvents$"+gi,zA="__reactListeners$"+gi,FA="__reactHandles$"+gi,Zg="__reactResources$"+gi,Al="__reactMarker$"+gi;function Sd(r){delete r[Jt],delete r[xn],delete r[vd],delete r[zA],delete r[FA]}function os(r){var a=r[Jt];if(a)return a;for(var o=r.parentNode;o;){if(a=o[ls]||o[Jt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=EE(r);r!==null;){if(o=r[Jt])return o;r=EE(r)}return a}r=o,o=r.parentNode}return null}function us(r){if(r=r[Jt]||r[ls]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function kl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function cs(r){var a=r[Zg];return a||(a=r[Zg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function $t(r){r[Al]=!0}var Jg=new Set,e1={};function ca(r,a){fs(r,a),fs(r+"Capture",a)}function fs(r,a){for(e1[r]=a,r=0;r<a.length;r++)Jg.add(a[r])}var qA=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),t1={},n1={};function VA(r){return Ye.call(n1,r)?!0:Ye.call(t1,r)?!1:qA.test(r)?n1[r]=!0:(t1[r]=!0,!1)}function vu(r,a,o){if(VA(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function Su(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function Pr(r,a,o,f){if(f===null)r.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+f)}}function Yn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function r1(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function YA(r,a,o){var f=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var g=f.get,b=f.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(_){o=""+_,b.call(this,_)}}),Object.defineProperty(r,a,{enumerable:f.enumerable}),{getValue:function(){return o},setValue:function(_){o=""+_},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function _d(r){if(!r._valueTracker){var a=r1(r)?"checked":"value";r._valueTracker=YA(r,a,""+r[a])}}function i1(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),f="";return r&&(f=r1(r)?r.checked?"true":"false":r.value),r=f,r!==o?(a.setValue(r),!0):!1}function _u(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var $A=/[\n"\\]/g;function $n(r){return r.replace($A,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Cd(r,a,o,f,g,b,_,O){r.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?r.type=_:r.removeAttribute("type"),a!=null?_==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Yn(a)):r.value!==""+Yn(a)&&(r.value=""+Yn(a)):_!=="submit"&&_!=="reset"||r.removeAttribute("value"),a!=null?Ad(r,_,Yn(a)):o!=null?Ad(r,_,Yn(o)):f!=null&&r.removeAttribute("value"),g==null&&b!=null&&(r.defaultChecked=!!b),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.name=""+Yn(O):r.removeAttribute("name")}function a1(r,a,o,f,g,b,_,O){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.type=b),a!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){_d(r);return}o=o!=null?""+Yn(o):"",a=a!=null?""+Yn(a):o,O||a===r.value||(r.value=a),r.defaultValue=a}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=O?r.checked:!!f,r.defaultChecked=!!f,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(r.name=_),_d(r)}function Ad(r,a,o){a==="number"&&_u(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function ds(r,a,o,f){if(r=r.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=a.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&f&&(r[o].defaultSelected=!0)}else{for(o=""+Yn(o),a=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,f&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function s1(r,a,o){if(a!=null&&(a=""+Yn(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Yn(o):""}function l1(r,a,o,f){if(a==null){if(f!=null){if(o!=null)throw Error(i(92));if(ne(f)){if(1<f.length)throw Error(i(93));f=f[0]}o=f}o==null&&(o=""),a=o}o=Yn(a),r.defaultValue=o,f=r.textContent,f===o&&f!==""&&f!==null&&(r.value=f),_d(r)}function hs(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var GA=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function o1(r,a,o){var f=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?f?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":f?r.setProperty(a,o):typeof o!="number"||o===0||GA.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function u1(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var f in o)!o.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var g in a)f=a[g],a.hasOwnProperty(g)&&o[g]!==f&&o1(r,g,f)}else for(var b in a)a.hasOwnProperty(b)&&o1(r,b,a[b])}function kd(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var KA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),XA=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Cu(r){return XA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Br(){}var wd=null;function Nd(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ms=null,ps=null;function c1(r){var a=us(r);if(a&&(r=a.stateNode)){var o=r[xn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Cd(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+$n(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var f=o[a];if(f!==r&&f.form===r.form){var g=f[xn]||null;if(!g)throw Error(i(90));Cd(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)f=o[a],f.form===r.form&&i1(f)}break e;case"textarea":s1(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&ds(r,!!o.multiple,a,!1)}}}var Rd=!1;function f1(r,a,o){if(Rd)return r(a,o);Rd=!0;try{var f=r(a);return f}finally{if(Rd=!1,(ms!==null||ps!==null)&&(dc(),ms&&(a=ms,r=ps,ps=ms=null,c1(a),r)))for(a=0;a<r.length;a++)c1(r[a])}}function wl(r,a){var o=r.stateNode;if(o===null)return null;var f=o[xn]||null;if(f===null)return null;o=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Od=!1;if(jr)try{var Nl={};Object.defineProperty(Nl,"passive",{get:function(){Od=!0}}),window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,Nl)}catch{Od=!1}var bi=null,Ld=null,Au=null;function d1(){if(Au)return Au;var r,a=Ld,o=a.length,f,g="value"in bi?bi.value:bi.textContent,b=g.length;for(r=0;r<o&&a[r]===g[r];r++);var _=o-r;for(f=1;f<=_&&a[o-f]===g[b-f];f++);return Au=g.slice(r,1<f?1-f:void 0)}function ku(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function wu(){return!0}function h1(){return!1}function Tn(r){function a(o,f,g,b,_){this._reactName=o,this._targetInst=g,this.type=f,this.nativeEvent=b,this.target=_,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(o=r[O],this[O]=o?o(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?wu:h1,this.isPropagationStopped=h1,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),a}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=Tn(fa),Rl=p({},fa,{view:0,detail:0}),QA=Tn(Rl),Dd,Id,Ol,Ru=p({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pd,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ol&&(Ol&&r.type==="mousemove"?(Dd=r.screenX-Ol.screenX,Id=r.screenY-Ol.screenY):Id=Dd=0,Ol=r),Dd)},movementY:function(r){return"movementY"in r?r.movementY:Id}}),m1=Tn(Ru),WA=p({},Ru,{dataTransfer:0}),ZA=Tn(WA),JA=p({},Rl,{relatedTarget:0}),Md=Tn(JA),ek=p({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),tk=Tn(ek),nk=p({},fa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),rk=Tn(nk),ik=p({},fa,{data:0}),p1=Tn(ik),ak={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},lk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ok(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=lk[r])?!!a[r]:!1}function Pd(){return ok}var uk=p({},Rl,{key:function(r){if(r.key){var a=ak[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=ku(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?sk[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pd,charCode:function(r){return r.type==="keypress"?ku(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ku(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ck=Tn(uk),fk=p({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g1=Tn(fk),dk=p({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pd}),hk=Tn(dk),mk=p({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),pk=Tn(mk),gk=p({},Ru,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),bk=Tn(gk),yk=p({},fa,{newState:0,oldState:0}),Ek=Tn(yk),xk=[9,13,27,32],Bd=jr&&"CompositionEvent"in window,Ll=null;jr&&"documentMode"in document&&(Ll=document.documentMode);var Tk=jr&&"TextEvent"in window&&!Ll,b1=jr&&(!Bd||Ll&&8<Ll&&11>=Ll),y1=" ",E1=!1;function x1(r,a){switch(r){case"keyup":return xk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var gs=!1;function vk(r,a){switch(r){case"compositionend":return T1(a);case"keypress":return a.which!==32?null:(E1=!0,y1);case"textInput":return r=a.data,r===y1&&E1?null:r;default:return null}}function Sk(r,a){if(gs)return r==="compositionend"||!Bd&&x1(r,a)?(r=d1(),Au=Ld=bi=null,gs=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return b1&&a.locale!=="ko"?null:a.data;default:return null}}var _k={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function v1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!_k[r.type]:a==="textarea"}function S1(r,a,o,f){ms?ps?ps.push(f):ps=[f]:ms=f,a=Ec(a,"onChange"),0<a.length&&(o=new Nu("onChange","change",null,o,f),r.push({event:o,listeners:a}))}var Dl=null,Il=null;function Ck(r){aE(r,0)}function Ou(r){var a=kl(r);if(i1(a))return r}function _1(r,a){if(r==="change")return a}var C1=!1;if(jr){var jd;if(jr){var Hd="oninput"in document;if(!Hd){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),Hd=typeof A1.oninput=="function"}jd=Hd}else jd=!1;C1=jd&&(!document.documentMode||9<document.documentMode)}function k1(){Dl&&(Dl.detachEvent("onpropertychange",w1),Il=Dl=null)}function w1(r){if(r.propertyName==="value"&&Ou(Il)){var a=[];S1(a,Il,r,Nd(r)),f1(Ck,a)}}function Ak(r,a,o){r==="focusin"?(k1(),Dl=a,Il=o,Dl.attachEvent("onpropertychange",w1)):r==="focusout"&&k1()}function kk(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Ou(Il)}function wk(r,a){if(r==="click")return Ou(a)}function Nk(r,a){if(r==="input"||r==="change")return Ou(a)}function Rk(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var In=typeof Object.is=="function"?Object.is:Rk;function Ml(r,a){if(In(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),f=Object.keys(a);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var g=o[f];if(!Ye.call(a,g)||!In(r[g],a[g]))return!1}return!0}function N1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function R1(r,a){var o=N1(r);r=0;for(var f;o;){if(o.nodeType===3){if(f=r+o.textContent.length,r<=a&&f>=a)return{node:o,offset:a-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=N1(o)}}function O1(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?O1(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function L1(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=_u(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=_u(r.document)}return a}function Ud(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var Ok=jr&&"documentMode"in document&&11>=document.documentMode,bs=null,zd=null,Pl=null,Fd=!1;function D1(r,a,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Fd||bs==null||bs!==_u(f)||(f=bs,"selectionStart"in f&&Ud(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Pl&&Ml(Pl,f)||(Pl=f,f=Ec(zd,"onSelect"),0<f.length&&(a=new Nu("onSelect","select",null,a,o),r.push({event:a,listeners:f}),a.target=bs)))}function da(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var ys={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},qd={},I1={};jr&&(I1=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function ha(r){if(qd[r])return qd[r];if(!ys[r])return r;var a=ys[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in I1)return qd[r]=a[o];return r}var M1=ha("animationend"),P1=ha("animationiteration"),B1=ha("animationstart"),Lk=ha("transitionrun"),Dk=ha("transitionstart"),Ik=ha("transitioncancel"),j1=ha("transitionend"),H1=new Map,Vd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vd.push("scrollEnd");function sr(r,a){H1.set(r,a),ca(a,[r])}var Lu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Gn=[],Es=0,Yd=0;function Du(){for(var r=Es,a=Yd=Es=0;a<r;){var o=Gn[a];Gn[a++]=null;var f=Gn[a];Gn[a++]=null;var g=Gn[a];Gn[a++]=null;var b=Gn[a];if(Gn[a++]=null,f!==null&&g!==null){var _=f.pending;_===null?g.next=g:(g.next=_.next,_.next=g),f.pending=g}b!==0&&U1(o,g,b)}}function Iu(r,a,o,f){Gn[Es++]=r,Gn[Es++]=a,Gn[Es++]=o,Gn[Es++]=f,Yd|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function $d(r,a,o,f){return Iu(r,a,o,f),Mu(r)}function ma(r,a){return Iu(r,null,null,a),Mu(r)}function U1(r,a,o){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o);for(var g=!1,b=r.return;b!==null;)b.childLanes|=o,f=b.alternate,f!==null&&(f.childLanes|=o),b.tag===22&&(r=b.stateNode,r===null||r._visibility&1||(g=!0)),r=b,b=b.return;return r.tag===3?(b=r.stateNode,g&&a!==null&&(g=31-bt(o),r=b.hiddenUpdates,f=r[g],f===null?r[g]=[a]:f.push(a),a.lane=o|536870912),b):null}function Mu(r){if(50<io)throw io=0,tm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var xs={};function Mk(r,a,o,f){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mn(r,a,o,f){return new Mk(r,a,o,f)}function Gd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Hr(r,a){var o=r.alternate;return o===null?(o=Mn(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function z1(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Pu(r,a,o,f,g,b){var _=0;if(f=r,typeof r=="function")Gd(r)&&(_=1);else if(typeof r=="string")_=Uw(r,o,ge.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case G:return r=Mn(31,o,a,g),r.elementType=G,r.lanes=b,r;case S:return pa(o.children,g,b,a);case A:_=8,g|=24;break;case k:return r=Mn(12,o,a,g|2),r.elementType=k,r.lanes=b,r;case z:return r=Mn(13,o,a,g),r.elementType=z,r.lanes=b,r;case L:return r=Mn(19,o,a,g),r.elementType=L,r.lanes=b,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case w:_=10;break e;case N:_=9;break e;case D:_=11;break e;case P:_=14;break e;case H:_=16,f=null;break e}_=29,o=Error(i(130,r===null?"null":typeof r,"")),f=null}return a=Mn(_,o,a,g),a.elementType=r,a.type=f,a.lanes=b,a}function pa(r,a,o,f){return r=Mn(7,r,f,a),r.lanes=o,r}function Kd(r,a,o){return r=Mn(6,r,null,a),r.lanes=o,r}function F1(r){var a=Mn(18,null,null,0);return a.stateNode=r,a}function Xd(r,a,o){return a=Mn(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var q1=new WeakMap;function Kn(r,a){if(typeof r=="object"&&r!==null){var o=q1.get(r);return o!==void 0?o:(a={value:r,source:a,stack:pe(a)},q1.set(r,a),a)}return{value:r,source:a,stack:pe(a)}}var Ts=[],vs=0,Bu=null,Bl=0,Xn=[],Qn=0,yi=null,br=1,yr="";function Ur(r,a){Ts[vs++]=Bl,Ts[vs++]=Bu,Bu=r,Bl=a}function V1(r,a,o){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=yi,yi=r;var f=br;r=yr;var g=32-bt(f)-1;f&=~(1<<g),o+=1;var b=32-bt(a)+g;if(30<b){var _=g-g%5;b=(f&(1<<_)-1).toString(32),f>>=_,g-=_,br=1<<32-bt(a)+g|o<<g|f,yr=b+r}else br=1<<b|o<<g|f,yr=r}function Qd(r){r.return!==null&&(Ur(r,1),V1(r,1,0))}function Wd(r){for(;r===Bu;)Bu=Ts[--vs],Ts[vs]=null,Bl=Ts[--vs],Ts[vs]=null;for(;r===yi;)yi=Xn[--Qn],Xn[Qn]=null,yr=Xn[--Qn],Xn[Qn]=null,br=Xn[--Qn],Xn[Qn]=null}function Y1(r,a){Xn[Qn++]=br,Xn[Qn++]=yr,Xn[Qn++]=yi,br=a.id,yr=a.overflow,yi=r}var en=null,St=null,Ze=!1,Ei=null,Wn=!1,Zd=Error(i(519));function xi(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(Kn(a,r)),Zd}function $1(r){var a=r.stateNode,o=r.type,f=r.memoizedProps;switch(a[Jt]=r,a[xn]=f,o){case"dialog":Ke("cancel",a),Ke("close",a);break;case"iframe":case"object":case"embed":Ke("load",a);break;case"video":case"audio":for(o=0;o<so.length;o++)Ke(so[o],a);break;case"source":Ke("error",a);break;case"img":case"image":case"link":Ke("error",a),Ke("load",a);break;case"details":Ke("toggle",a);break;case"input":Ke("invalid",a),a1(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":Ke("invalid",a);break;case"textarea":Ke("invalid",a),l1(a,f.value,f.defaultValue,f.children)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||f.suppressHydrationWarning===!0||uE(a.textContent,o)?(f.popover!=null&&(Ke("beforetoggle",a),Ke("toggle",a)),f.onScroll!=null&&Ke("scroll",a),f.onScrollEnd!=null&&Ke("scrollend",a),f.onClick!=null&&(a.onclick=Br),a=!0):a=!1,a||xi(r,!0)}function G1(r){for(en=r.return;en;)switch(en.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:en=en.return}}function Ss(r){if(r!==en)return!1;if(!Ze)return G1(r),Ze=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||gm(r.type,r.memoizedProps)),o=!o),o&&St&&xi(r),G1(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));St=yE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));St=yE(r)}else a===27?(a=St,Ii(r.type)?(r=Tm,Tm=null,St=r):St=a):St=en?Jn(r.stateNode.nextSibling):null;return!0}function ga(){St=en=null,Ze=!1}function Jd(){var r=Ei;return r!==null&&(Cn===null?Cn=r:Cn.push.apply(Cn,r),Ei=null),r}function jl(r){Ei===null?Ei=[r]:Ei.push(r)}var eh=U(null),ba=null,zr=null;function Ti(r,a,o){I(eh,a._currentValue),a._currentValue=o}function Fr(r){r._currentValue=eh.current,K(eh)}function th(r,a,o){for(;r!==null;){var f=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),r===o)break;r=r.return}}function nh(r,a,o,f){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var b=g.dependencies;if(b!==null){var _=g.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=g;for(var q=0;q<a.length;q++)if(O.context===a[q]){b.lanes|=o,O=b.alternate,O!==null&&(O.lanes|=o),th(b.return,o,r),f||(_=null);break e}b=O.next}}else if(g.tag===18){if(_=g.return,_===null)throw Error(i(341));_.lanes|=o,b=_.alternate,b!==null&&(b.lanes|=o),th(_,o,r),_=null}else _=g.child;if(_!==null)_.return=g;else for(_=g;_!==null;){if(_===r){_=null;break}if(g=_.sibling,g!==null){g.return=_.return,_=g;break}_=_.return}g=_}}function _s(r,a,o,f){r=null;for(var g=a,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var _=g.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var O=g.type;In(g.pendingProps.value,_.value)||(r!==null?r.push(O):r=[O])}}else if(g===we.current){if(_=g.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(fo):r=[fo])}g=g.return}r!==null&&nh(a,r,o,f),a.flags|=262144}function ju(r){for(r=r.firstContext;r!==null;){if(!In(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ya(r){ba=r,zr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function tn(r){return K1(ba,r)}function Hu(r,a){return ba===null&&ya(r),K1(r,a)}function K1(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},zr===null){if(r===null)throw Error(i(308));zr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else zr=zr.next=a;return o}var Pk=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},Bk=e.unstable_scheduleCallback,jk=e.unstable_NormalPriority,Pt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rh(){return{controller:new Pk,data:new Map,refCount:0}}function Hl(r){r.refCount--,r.refCount===0&&Bk(jk,function(){r.controller.abort()})}var Ul=null,ih=0,Cs=0,As=null;function Hk(r,a){if(Ul===null){var o=Ul=[];ih=0,Cs=lm(),As={status:"pending",value:void 0,then:function(f){o.push(f)}}}return ih++,a.then(X1,X1),a}function X1(){if(--ih===0&&Ul!==null){As!==null&&(As.status="fulfilled");var r=Ul;Ul=null,Cs=0,As=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Uk(r,a){var o=[],f={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){f.status="fulfilled",f.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(f.status="rejected",f.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),f}var Q1=V.S;V.S=function(r,a){Dy=it(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Hk(r,a),Q1!==null&&Q1(r,a)};var Ea=U(null);function ah(){var r=Ea.current;return r!==null?r:yt.pooledCache}function Uu(r,a){a===null?I(Ea,Ea.current):I(Ea,a.pool)}function W1(){var r=ah();return r===null?null:{parent:Pt._currentValue,pool:r}}var ks=Error(i(460)),sh=Error(i(474)),zu=Error(i(542)),Fu={then:function(){}};function Z1(r){return r=r.status,r==="fulfilled"||r==="rejected"}function J1(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(Br,Br),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,tb(r),r;default:if(typeof a.status=="string")a.then(Br,Br);else{if(r=yt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(f){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=f}},function(f){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,tb(r),r}throw Ta=a,ks}}function xa(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ta=o,ks):o}}var Ta=null;function eb(){if(Ta===null)throw Error(i(459));var r=Ta;return Ta=null,r}function tb(r){if(r===ks||r===zu)throw Error(i(483))}var ws=null,zl=0;function qu(r){var a=zl;return zl+=1,ws===null&&(ws=[]),J1(ws,r,a)}function Fl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Vu(r,a){throw a.$$typeof===E?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function nb(r){function a(Q,$){if(r){var J=Q.deletions;J===null?(Q.deletions=[$],Q.flags|=16):J.push($)}}function o(Q,$){if(!r)return null;for(;$!==null;)a(Q,$),$=$.sibling;return null}function f(Q){for(var $=new Map;Q!==null;)Q.key!==null?$.set(Q.key,Q):$.set(Q.index,Q),Q=Q.sibling;return $}function g(Q,$){return Q=Hr(Q,$),Q.index=0,Q.sibling=null,Q}function b(Q,$,J){return Q.index=J,r?(J=Q.alternate,J!==null?(J=J.index,J<$?(Q.flags|=67108866,$):J):(Q.flags|=67108866,$)):(Q.flags|=1048576,$)}function _(Q){return r&&Q.alternate===null&&(Q.flags|=67108866),Q}function O(Q,$,J,ce){return $===null||$.tag!==6?($=Kd(J,Q.mode,ce),$.return=Q,$):($=g($,J),$.return=Q,$)}function q(Q,$,J,ce){var Ne=J.type;return Ne===S?oe(Q,$,J.props.children,ce,J.key):$!==null&&($.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&xa(Ne)===$.type)?($=g($,J.props),Fl($,J),$.return=Q,$):($=Pu(J.type,J.key,J.props,null,Q.mode,ce),Fl($,J),$.return=Q,$)}function ee(Q,$,J,ce){return $===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation?($=Xd(J,Q.mode,ce),$.return=Q,$):($=g($,J.children||[]),$.return=Q,$)}function oe(Q,$,J,ce,Ne){return $===null||$.tag!==7?($=pa(J,Q.mode,ce,Ne),$.return=Q,$):($=g($,J),$.return=Q,$)}function fe(Q,$,J){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Kd(""+$,Q.mode,J),$.return=Q,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case y:return J=Pu($.type,$.key,$.props,null,Q.mode,J),Fl(J,$),J.return=Q,J;case v:return $=Xd($,Q.mode,J),$.return=Q,$;case H:return $=xa($),fe(Q,$,J)}if(ne($)||W($))return $=pa($,Q.mode,J,null),$.return=Q,$;if(typeof $.then=="function")return fe(Q,qu($),J);if($.$$typeof===w)return fe(Q,Hu(Q,$),J);Vu(Q,$)}return null}function te(Q,$,J,ce){var Ne=$!==null?$.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Ne!==null?null:O(Q,$,""+J,ce);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case y:return J.key===Ne?q(Q,$,J,ce):null;case v:return J.key===Ne?ee(Q,$,J,ce):null;case H:return J=xa(J),te(Q,$,J,ce)}if(ne(J)||W(J))return Ne!==null?null:oe(Q,$,J,ce,null);if(typeof J.then=="function")return te(Q,$,qu(J),ce);if(J.$$typeof===w)return te(Q,$,Hu(Q,J),ce);Vu(Q,J)}return null}function ie(Q,$,J,ce,Ne){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Q=Q.get(J)||null,O($,Q,""+ce,Ne);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case y:return Q=Q.get(ce.key===null?J:ce.key)||null,q($,Q,ce,Ne);case v:return Q=Q.get(ce.key===null?J:ce.key)||null,ee($,Q,ce,Ne);case H:return ce=xa(ce),ie(Q,$,J,ce,Ne)}if(ne(ce)||W(ce))return Q=Q.get(J)||null,oe($,Q,ce,Ne,null);if(typeof ce.then=="function")return ie(Q,$,J,qu(ce),Ne);if(ce.$$typeof===w)return ie(Q,$,J,Hu($,ce),Ne);Vu($,ce)}return null}function Ae(Q,$,J,ce){for(var Ne=null,at=null,ke=$,Ue=$=0,We=null;ke!==null&&Ue<J.length;Ue++){ke.index>Ue?(We=ke,ke=null):We=ke.sibling;var st=te(Q,ke,J[Ue],ce);if(st===null){ke===null&&(ke=We);break}r&&ke&&st.alternate===null&&a(Q,ke),$=b(st,$,Ue),at===null?Ne=st:at.sibling=st,at=st,ke=We}if(Ue===J.length)return o(Q,ke),Ze&&Ur(Q,Ue),Ne;if(ke===null){for(;Ue<J.length;Ue++)ke=fe(Q,J[Ue],ce),ke!==null&&($=b(ke,$,Ue),at===null?Ne=ke:at.sibling=ke,at=ke);return Ze&&Ur(Q,Ue),Ne}for(ke=f(ke);Ue<J.length;Ue++)We=ie(ke,Q,Ue,J[Ue],ce),We!==null&&(r&&We.alternate!==null&&ke.delete(We.key===null?Ue:We.key),$=b(We,$,Ue),at===null?Ne=We:at.sibling=We,at=We);return r&&ke.forEach(function(Hi){return a(Q,Hi)}),Ze&&Ur(Q,Ue),Ne}function Oe(Q,$,J,ce){if(J==null)throw Error(i(151));for(var Ne=null,at=null,ke=$,Ue=$=0,We=null,st=J.next();ke!==null&&!st.done;Ue++,st=J.next()){ke.index>Ue?(We=ke,ke=null):We=ke.sibling;var Hi=te(Q,ke,st.value,ce);if(Hi===null){ke===null&&(ke=We);break}r&&ke&&Hi.alternate===null&&a(Q,ke),$=b(Hi,$,Ue),at===null?Ne=Hi:at.sibling=Hi,at=Hi,ke=We}if(st.done)return o(Q,ke),Ze&&Ur(Q,Ue),Ne;if(ke===null){for(;!st.done;Ue++,st=J.next())st=fe(Q,st.value,ce),st!==null&&($=b(st,$,Ue),at===null?Ne=st:at.sibling=st,at=st);return Ze&&Ur(Q,Ue),Ne}for(ke=f(ke);!st.done;Ue++,st=J.next())st=ie(ke,Q,Ue,st.value,ce),st!==null&&(r&&st.alternate!==null&&ke.delete(st.key===null?Ue:st.key),$=b(st,$,Ue),at===null?Ne=st:at.sibling=st,at=st);return r&&ke.forEach(function(Ww){return a(Q,Ww)}),Ze&&Ur(Q,Ue),Ne}function mt(Q,$,J,ce){if(typeof J=="object"&&J!==null&&J.type===S&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case y:e:{for(var Ne=J.key;$!==null;){if($.key===Ne){if(Ne=J.type,Ne===S){if($.tag===7){o(Q,$.sibling),ce=g($,J.props.children),ce.return=Q,Q=ce;break e}}else if($.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&xa(Ne)===$.type){o(Q,$.sibling),ce=g($,J.props),Fl(ce,J),ce.return=Q,Q=ce;break e}o(Q,$);break}else a(Q,$);$=$.sibling}J.type===S?(ce=pa(J.props.children,Q.mode,ce,J.key),ce.return=Q,Q=ce):(ce=Pu(J.type,J.key,J.props,null,Q.mode,ce),Fl(ce,J),ce.return=Q,Q=ce)}return _(Q);case v:e:{for(Ne=J.key;$!==null;){if($.key===Ne)if($.tag===4&&$.stateNode.containerInfo===J.containerInfo&&$.stateNode.implementation===J.implementation){o(Q,$.sibling),ce=g($,J.children||[]),ce.return=Q,Q=ce;break e}else{o(Q,$);break}else a(Q,$);$=$.sibling}ce=Xd(J,Q.mode,ce),ce.return=Q,Q=ce}return _(Q);case H:return J=xa(J),mt(Q,$,J,ce)}if(ne(J))return Ae(Q,$,J,ce);if(W(J)){if(Ne=W(J),typeof Ne!="function")throw Error(i(150));return J=Ne.call(J),Oe(Q,$,J,ce)}if(typeof J.then=="function")return mt(Q,$,qu(J),ce);if(J.$$typeof===w)return mt(Q,$,Hu(Q,J),ce);Vu(Q,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,$!==null&&$.tag===6?(o(Q,$.sibling),ce=g($,J),ce.return=Q,Q=ce):(o(Q,$),ce=Kd(J,Q.mode,ce),ce.return=Q,Q=ce),_(Q)):o(Q,$)}return function(Q,$,J,ce){try{zl=0;var Ne=mt(Q,$,J,ce);return ws=null,Ne}catch(ke){if(ke===ks||ke===zu)throw ke;var at=Mn(29,ke,null,Q.mode);return at.lanes=ce,at.return=Q,at}}}var va=nb(!0),rb=nb(!1),vi=!1;function lh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Si(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function _i(r,a,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(lt&2)!==0){var g=f.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a,a=Mu(r),U1(r,null,o),a}return Iu(r,f,a,o),Mu(r)}function ql(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Kg(r,o)}}function uh(r,a){var o=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var g=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var _={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?g=b=_:b=b.next=_,o=o.next}while(o!==null);b===null?g=b=a:b=b.next=a}else g=b=a;o={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:f.shared,callbacks:f.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var ch=!1;function Vl(){if(ch){var r=As;if(r!==null)throw r}}function Yl(r,a,o,f){ch=!1;var g=r.updateQueue;vi=!1;var b=g.firstBaseUpdate,_=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var q=O,ee=q.next;q.next=null,_===null?b=ee:_.next=ee,_=q;var oe=r.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==_&&(O===null?oe.firstBaseUpdate=ee:O.next=ee,oe.lastBaseUpdate=q))}if(b!==null){var fe=g.baseState;_=0,oe=ee=q=null,O=b;do{var te=O.lane&-536870913,ie=te!==O.lane;if(ie?(Qe&te)===te:(f&te)===te){te!==0&&te===Cs&&(ch=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Ae=r,Oe=O;te=a;var mt=o;switch(Oe.tag){case 1:if(Ae=Oe.payload,typeof Ae=="function"){fe=Ae.call(mt,fe,te);break e}fe=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Oe.payload,te=typeof Ae=="function"?Ae.call(mt,fe,te):Ae,te==null)break e;fe=p({},fe,te);break e;case 2:vi=!0}}te=O.callback,te!==null&&(r.flags|=64,ie&&(r.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[te]:ie.push(te))}else ie={lane:te,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(ee=oe=ie,q=fe):oe=oe.next=ie,_|=te;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ie=O,O=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);oe===null&&(q=fe),g.baseState=q,g.firstBaseUpdate=ee,g.lastBaseUpdate=oe,b===null&&(g.shared.lanes=0),Ni|=_,r.lanes=_,r.memoizedState=fe}}function ib(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function ab(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)ib(o[r],a)}var Ns=U(null),Yu=U(0);function sb(r,a){r=Wr,I(Yu,r),I(Ns,a),Wr=r|a.baseLanes}function fh(){I(Yu,Wr),I(Ns,Ns.current)}function dh(){Wr=Yu.current,K(Ns),K(Yu)}var Pn=U(null),Zn=null;function Ci(r){var a=r.alternate;I(Ot,Ot.current&1),I(Pn,r),Zn===null&&(a===null||Ns.current!==null||a.memoizedState!==null)&&(Zn=r)}function hh(r){I(Ot,Ot.current),I(Pn,r),Zn===null&&(Zn=r)}function lb(r){r.tag===22?(I(Ot,Ot.current),I(Pn,r),Zn===null&&(Zn=r)):Ai()}function Ai(){I(Ot,Ot.current),I(Pn,Pn.current)}function Bn(r){K(Pn),Zn===r&&(Zn=null),K(Ot)}var Ot=U(0);function $u(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Em(o)||xm(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var qr=0,He=null,dt=null,Bt=null,Gu=!1,Rs=!1,Sa=!1,Ku=0,$l=0,Os=null,zk=0;function Nt(){throw Error(i(321))}function mh(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!In(r[o],a[o]))return!1;return!0}function ph(r,a,o,f,g,b){return qr=b,He=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=r===null||r.memoizedState===null?Vb:Rh,Sa=!1,b=o(f,g),Sa=!1,Rs&&(b=ub(a,o,f,g)),ob(r),b}function ob(r){V.H=Xl;var a=dt!==null&&dt.next!==null;if(qr=0,Bt=dt=He=null,Gu=!1,$l=0,Os=null,a)throw Error(i(300));r===null||jt||(r=r.dependencies,r!==null&&ju(r)&&(jt=!0))}function ub(r,a,o,f){He=r;var g=0;do{if(Rs&&(Os=null),$l=0,Rs=!1,25<=g)throw Error(i(301));if(g+=1,Bt=dt=null,r.updateQueue!=null){var b=r.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}V.H=Yb,b=a(o,f)}while(Rs);return b}function Fk(){var r=V.H,a=r.useState()[0];return a=typeof a.then=="function"?Gl(a):a,r=r.useState()[0],(dt!==null?dt.memoizedState:null)!==r&&(He.flags|=1024),a}function gh(){var r=Ku!==0;return Ku=0,r}function bh(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function yh(r){if(Gu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Gu=!1}qr=0,Bt=dt=He=null,Rs=!1,$l=Ku=0,Os=null}function dn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?He.memoizedState=Bt=r:Bt=Bt.next=r,Bt}function Lt(){if(dt===null){var r=He.alternate;r=r!==null?r.memoizedState:null}else r=dt.next;var a=Bt===null?He.memoizedState:Bt.next;if(a!==null)Bt=a,dt=r;else{if(r===null)throw He.alternate===null?Error(i(467)):Error(i(310));dt=r,r={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Bt===null?He.memoizedState=Bt=r:Bt=Bt.next=r}return Bt}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gl(r){var a=$l;return $l+=1,Os===null&&(Os=[]),r=J1(Os,r,a),a=He,(Bt===null?a.memoizedState:Bt.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?Vb:Rh),r}function Qu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Gl(r);if(r.$$typeof===w)return tn(r)}throw Error(i(438,String(r)))}function Eh(r){var a=null,o=He.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var f=He.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Xu(),He.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),f=0;f<r;f++)o[f]=j;return a.index++,o}function Vr(r,a){return typeof a=="function"?a(r):a}function Wu(r){var a=Lt();return xh(a,dt,r)}function xh(r,a,o){var f=r.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=o;var g=r.baseQueue,b=f.pending;if(b!==null){if(g!==null){var _=g.next;g.next=b.next,b.next=_}a.baseQueue=g=b,f.pending=null}if(b=r.baseState,g===null)r.memoizedState=b;else{a=g.next;var O=_=null,q=null,ee=a,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(Qe&fe)===fe:(qr&fe)===fe){var te=ee.revertLane;if(te===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===Cs&&(oe=!0);else if((qr&te)===te){ee=ee.next,te===Cs&&(oe=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(O=q=fe,_=b):q=q.next=fe,He.lanes|=te,Ni|=te;fe=ee.action,Sa&&o(b,fe),b=ee.hasEagerState?ee.eagerState:o(b,fe)}else te={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(O=q=te,_=b):q=q.next=te,He.lanes|=fe,Ni|=fe;ee=ee.next}while(ee!==null&&ee!==a);if(q===null?_=b:q.next=O,!In(b,r.memoizedState)&&(jt=!0,oe&&(o=As,o!==null)))throw o;r.memoizedState=b,r.baseState=_,r.baseQueue=q,f.lastRenderedState=b}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function Th(r){var a=Lt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var f=o.dispatch,g=o.pending,b=a.memoizedState;if(g!==null){o.pending=null;var _=g=g.next;do b=r(b,_.action),_=_.next;while(_!==g);In(b,a.memoizedState)||(jt=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),o.lastRenderedState=b}return[b,f]}function cb(r,a,o){var f=He,g=Lt(),b=Ze;if(b){if(o===void 0)throw Error(i(407));o=o()}else o=a();var _=!In((dt||g).memoizedState,o);if(_&&(g.memoizedState=o,jt=!0),g=g.queue,_h(hb.bind(null,f,g,r),[r]),g.getSnapshot!==a||_||Bt!==null&&Bt.memoizedState.tag&1){if(f.flags|=2048,Ls(9,{destroy:void 0},db.bind(null,f,g,o,a),null),yt===null)throw Error(i(349));b||(qr&127)!==0||fb(f,a,o)}return o}function fb(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=He.updateQueue,a===null?(a=Xu(),He.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function db(r,a,o,f){a.value=o,a.getSnapshot=f,mb(a)&&pb(r)}function hb(r,a,o){return o(function(){mb(a)&&pb(r)})}function mb(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!In(r,o)}catch{return!0}}function pb(r){var a=ma(r,2);a!==null&&An(a,r,2)}function vh(r){var a=dn();if(typeof r=="function"){var o=r;if(r=o(),Sa){En(!0);try{o()}finally{En(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:r},a}function gb(r,a,o,f){return r.baseState=o,xh(r,dt,typeof f=="function"?f:Vr)}function qk(r,a,o,f,g){if(ec(r))throw Error(i(485));if(r=a.action,r!==null){var b={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){b.listeners.push(_)}};V.T!==null?o(!0):b.isTransition=!1,f(b),o=a.pending,o===null?(b.next=a.pending=b,bb(a,b)):(b.next=o.next,a.pending=o.next=b)}}function bb(r,a){var o=a.action,f=a.payload,g=r.state;if(a.isTransition){var b=V.T,_={};V.T=_;try{var O=o(g,f),q=V.S;q!==null&&q(_,O),yb(r,a,O)}catch(ee){Sh(r,a,ee)}finally{b!==null&&_.types!==null&&(b.types=_.types),V.T=b}}else try{b=o(g,f),yb(r,a,b)}catch(ee){Sh(r,a,ee)}}function yb(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){Eb(r,a,f)},function(f){return Sh(r,a,f)}):Eb(r,a,o)}function Eb(r,a,o){a.status="fulfilled",a.value=o,xb(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,bb(r,o)))}function Sh(r,a,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=o,xb(a),a=a.next;while(a!==f)}r.action=null}function xb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Tb(r,a){return a}function vb(r,a){if(Ze){var o=yt.formState;if(o!==null){e:{var f=He;if(Ze){if(St){t:{for(var g=St,b=Wn;g.nodeType!==8;){if(!b){g=null;break t}if(g=Jn(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){St=Jn(g.nextSibling),f=g.data==="F!";break e}}xi(f)}f=!1}f&&(a=o[0])}}return o=dn(),o.memoizedState=o.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tb,lastRenderedState:a},o.queue=f,o=zb.bind(null,He,f),f.dispatch=o,f=vh(!1),b=Nh.bind(null,He,!1,f.queue),f=dn(),g={state:a,dispatch:null,action:r,pending:null},f.queue=g,o=qk.bind(null,He,g,b,o),g.dispatch=o,f.memoizedState=r,[a,o,!1]}function Sb(r){var a=Lt();return _b(a,dt,r)}function _b(r,a,o){if(a=xh(r,a,Tb)[0],r=Wu(Vr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Gl(a)}catch(_){throw _===ks?zu:_}else f=a;a=Lt();var g=a.queue,b=g.dispatch;return o!==a.memoizedState&&(He.flags|=2048,Ls(9,{destroy:void 0},Vk.bind(null,g,o),null)),[f,b,r]}function Vk(r,a){r.action=a}function Cb(r){var a=Lt(),o=dt;if(o!==null)return _b(a,o,r);Lt(),a=a.memoizedState,o=Lt();var f=o.queue.dispatch;return o.memoizedState=r,[a,f,!1]}function Ls(r,a,o,f){return r={tag:r,create:o,deps:f,inst:a,next:null},a=He.updateQueue,a===null&&(a=Xu(),He.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(f=o.next,o.next=r,r.next=f,a.lastEffect=r),r}function Ab(){return Lt().memoizedState}function Zu(r,a,o,f){var g=dn();He.flags|=r,g.memoizedState=Ls(1|a,{destroy:void 0},o,f===void 0?null:f)}function Ju(r,a,o,f){var g=Lt();f=f===void 0?null:f;var b=g.memoizedState.inst;dt!==null&&f!==null&&mh(f,dt.memoizedState.deps)?g.memoizedState=Ls(a,b,o,f):(He.flags|=r,g.memoizedState=Ls(1|a,b,o,f))}function kb(r,a){Zu(8390656,8,r,a)}function _h(r,a){Ju(2048,8,r,a)}function Yk(r){He.flags|=4;var a=He.updateQueue;if(a===null)a=Xu(),He.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function wb(r){var a=Lt().memoizedState;return Yk({ref:a,nextImpl:r}),function(){if((lt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Nb(r,a){return Ju(4,2,r,a)}function Rb(r,a){return Ju(4,4,r,a)}function Ob(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Lb(r,a,o){o=o!=null?o.concat([r]):null,Ju(4,4,Ob.bind(null,a,r),o)}function Ch(){}function Db(r,a){var o=Lt();a=a===void 0?null:a;var f=o.memoizedState;return a!==null&&mh(a,f[1])?f[0]:(o.memoizedState=[r,a],r)}function Ib(r,a){var o=Lt();a=a===void 0?null:a;var f=o.memoizedState;if(a!==null&&mh(a,f[1]))return f[0];if(f=r(),Sa){En(!0);try{r()}finally{En(!1)}}return o.memoizedState=[f,a],f}function Ah(r,a,o){return o===void 0||(qr&1073741824)!==0&&(Qe&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=My(),He.lanes|=r,Ni|=r,o)}function Mb(r,a,o,f){return In(o,a)?o:Ns.current!==null?(r=Ah(r,o,f),In(r,a)||(jt=!0),r):(qr&42)===0||(qr&1073741824)!==0&&(Qe&261930)===0?(jt=!0,r.memoizedState=o):(r=My(),He.lanes|=r,Ni|=r,a)}function Pb(r,a,o,f,g){var b=X.p;X.p=b!==0&&8>b?b:8;var _=V.T,O={};V.T=O,Nh(r,!1,a,o);try{var q=g(),ee=V.S;if(ee!==null&&ee(O,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var oe=Uk(q,f);Kl(r,a,oe,Un(r))}else Kl(r,a,f,Un(r))}catch(fe){Kl(r,a,{then:function(){},status:"rejected",reason:fe},Un())}finally{X.p=b,_!==null&&O.types!==null&&(_.types=O.types),V.T=_}}function $k(){}function kh(r,a,o,f){if(r.tag!==5)throw Error(i(476));var g=Bb(r).queue;Pb(r,g,a,re,o===null?$k:function(){return jb(r),o(f)})}function Bb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:re},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function jb(r){var a=Bb(r);a.next===null&&(a=r.alternate.memoizedState),Kl(r,a.next.queue,{},Un())}function wh(){return tn(fo)}function Hb(){return Lt().memoizedState}function Ub(){return Lt().memoizedState}function Gk(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=Un();r=Si(o);var f=_i(a,r,o);f!==null&&(An(f,a,o),ql(f,a,o)),a={cache:rh()},r.payload=a;return}a=a.return}}function Kk(r,a,o){var f=Un();o={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ec(r)?Fb(a,o):(o=$d(r,a,o,f),o!==null&&(An(o,r,f),qb(o,a,f)))}function zb(r,a,o){var f=Un();Kl(r,a,o,f)}function Kl(r,a,o,f){var g={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ec(r))Fb(a,g);else{var b=r.alternate;if(r.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var _=a.lastRenderedState,O=b(_,o);if(g.hasEagerState=!0,g.eagerState=O,In(O,_))return Iu(r,a,g,0),yt===null&&Du(),!1}catch{}if(o=$d(r,a,g,f),o!==null)return An(o,r,f),qb(o,a,f),!0}return!1}function Nh(r,a,o,f){if(f={lane:2,revertLane:lm(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},ec(r)){if(a)throw Error(i(479))}else a=$d(r,o,f,2),a!==null&&An(a,r,2)}function ec(r){var a=r.alternate;return r===He||a!==null&&a===He}function Fb(r,a){Rs=Gu=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function qb(r,a,o){if((o&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Kg(r,o)}}var Xl={readContext:tn,use:Qu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};Xl.useEffectEvent=Nt;var Vb={readContext:tn,use:Qu,useCallback:function(r,a){return dn().memoizedState=[r,a===void 0?null:a],r},useContext:tn,useEffect:kb,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Zu(4194308,4,Ob.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Zu(4194308,4,r,a)},useInsertionEffect:function(r,a){Zu(4,2,r,a)},useMemo:function(r,a){var o=dn();a=a===void 0?null:a;var f=r();if(Sa){En(!0);try{r()}finally{En(!1)}}return o.memoizedState=[f,a],f},useReducer:function(r,a,o){var f=dn();if(o!==void 0){var g=o(a);if(Sa){En(!0);try{o(a)}finally{En(!1)}}}else g=a;return f.memoizedState=f.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},f.queue=r,r=r.dispatch=Kk.bind(null,He,r),[f.memoizedState,r]},useRef:function(r){var a=dn();return r={current:r},a.memoizedState=r},useState:function(r){r=vh(r);var a=r.queue,o=zb.bind(null,He,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Ch,useDeferredValue:function(r,a){var o=dn();return Ah(o,r,a)},useTransition:function(){var r=vh(!1);return r=Pb.bind(null,He,r.queue,!0,!1),dn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var f=He,g=dn();if(Ze){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),yt===null)throw Error(i(349));(Qe&127)!==0||fb(f,a,o)}g.memoizedState=o;var b={value:o,getSnapshot:a};return g.queue=b,kb(hb.bind(null,f,b,r),[r]),f.flags|=2048,Ls(9,{destroy:void 0},db.bind(null,f,b,o,a),null),o},useId:function(){var r=dn(),a=yt.identifierPrefix;if(Ze){var o=yr,f=br;o=(f&~(1<<32-bt(f)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Ku++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=zk++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:wh,useFormState:vb,useActionState:vb,useOptimistic:function(r){var a=dn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Nh.bind(null,He,!0,o),o.dispatch=a,[r,a]},useMemoCache:Eh,useCacheRefresh:function(){return dn().memoizedState=Gk.bind(null,He)},useEffectEvent:function(r){var a=dn(),o={impl:r};return a.memoizedState=o,function(){if((lt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},Rh={readContext:tn,use:Qu,useCallback:Db,useContext:tn,useEffect:_h,useImperativeHandle:Lb,useInsertionEffect:Nb,useLayoutEffect:Rb,useMemo:Ib,useReducer:Wu,useRef:Ab,useState:function(){return Wu(Vr)},useDebugValue:Ch,useDeferredValue:function(r,a){var o=Lt();return Mb(o,dt.memoizedState,r,a)},useTransition:function(){var r=Wu(Vr)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Gl(r),a]},useSyncExternalStore:cb,useId:Hb,useHostTransitionStatus:wh,useFormState:Sb,useActionState:Sb,useOptimistic:function(r,a){var o=Lt();return gb(o,dt,r,a)},useMemoCache:Eh,useCacheRefresh:Ub};Rh.useEffectEvent=wb;var Yb={readContext:tn,use:Qu,useCallback:Db,useContext:tn,useEffect:_h,useImperativeHandle:Lb,useInsertionEffect:Nb,useLayoutEffect:Rb,useMemo:Ib,useReducer:Th,useRef:Ab,useState:function(){return Th(Vr)},useDebugValue:Ch,useDeferredValue:function(r,a){var o=Lt();return dt===null?Ah(o,r,a):Mb(o,dt.memoizedState,r,a)},useTransition:function(){var r=Th(Vr)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Gl(r),a]},useSyncExternalStore:cb,useId:Hb,useHostTransitionStatus:wh,useFormState:Cb,useActionState:Cb,useOptimistic:function(r,a){var o=Lt();return dt!==null?gb(o,dt,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Eh,useCacheRefresh:Ub};Yb.useEffectEvent=wb;function Oh(r,a,o,f){a=r.memoizedState,o=o(f,a),o=o==null?a:p({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var Lh={enqueueSetState:function(r,a,o){r=r._reactInternals;var f=Un(),g=Si(f);g.payload=a,o!=null&&(g.callback=o),a=_i(r,g,f),a!==null&&(An(a,r,f),ql(a,r,f))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var f=Un(),g=Si(f);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=_i(r,g,f),a!==null&&(An(a,r,f),ql(a,r,f))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=Un(),f=Si(o);f.tag=2,a!=null&&(f.callback=a),a=_i(r,f,o),a!==null&&(An(a,r,o),ql(a,r,o))}};function $b(r,a,o,f,g,b,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,b,_):a.prototype&&a.prototype.isPureReactComponent?!Ml(o,f)||!Ml(g,b):!0}function Gb(r,a,o,f){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==r&&Lh.enqueueReplaceState(a,a.state,null)}function _a(r,a){var o=a;if("ref"in a){o={};for(var f in a)f!=="ref"&&(o[f]=a[f])}if(r=r.defaultProps){o===a&&(o=p({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}function Kb(r){Lu(r)}function Xb(r){console.error(r)}function Qb(r){Lu(r)}function tc(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function Wb(r,a,o){try{var f=r.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Dh(r,a,o){return o=Si(o),o.tag=3,o.payload={element:null},o.callback=function(){tc(r,a)},o}function Zb(r){return r=Si(r),r.tag=3,r}function Jb(r,a,o,f){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var b=f.value;r.payload=function(){return g(b)},r.callback=function(){Wb(a,o,f)}}var _=o.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Wb(a,o,f),typeof g!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var O=f.stack;this.componentDidCatch(f.value,{componentStack:O!==null?O:""})})}function Xk(r,a,o,f,g){if(o.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=o.alternate,a!==null&&_s(a,o,g,!0),o=Pn.current,o!==null){switch(o.tag){case 31:case 13:return Zn===null?hc():o.alternate===null&&Rt===0&&(Rt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,f===Fu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([f]):a.add(f),im(r,f,g)),!1;case 22:return o.flags|=65536,f===Fu?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([f]):o.add(f)),im(r,f,g)),!1}throw Error(i(435,o.tag))}return im(r,f,g),hc(),!1}if(Ze)return a=Pn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==Zd&&(r=Error(i(422),{cause:f}),jl(Kn(r,o)))):(f!==Zd&&(a=Error(i(423),{cause:f}),jl(Kn(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=Kn(f,o),g=Dh(r.stateNode,f,g),uh(r,g),Rt!==4&&(Rt=2)),!1;var b=Error(i(520),{cause:f});if(b=Kn(b,o),ro===null?ro=[b]:ro.push(b),Rt!==4&&(Rt=2),a===null)return!0;f=Kn(f,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=Dh(o.stateNode,f,r),uh(o,r),!1;case 1:if(a=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ri===null||!Ri.has(b))))return o.flags|=65536,g&=-g,o.lanes|=g,g=Zb(g),Jb(g,r,o,f),uh(o,g),!1}o=o.return}while(o!==null);return!1}var Ih=Error(i(461)),jt=!1;function nn(r,a,o,f){a.child=r===null?rb(a,null,o,f):va(a,r.child,o,f)}function ey(r,a,o,f,g){o=o.render;var b=a.ref;if("ref"in f){var _={};for(var O in f)O!=="ref"&&(_[O]=f[O])}else _=f;return ya(a),f=ph(r,a,o,_,b,g),O=gh(),r!==null&&!jt?(bh(r,a,g),Yr(r,a,g)):(Ze&&O&&Qd(a),a.flags|=1,nn(r,a,f,g),a.child)}function ty(r,a,o,f,g){if(r===null){var b=o.type;return typeof b=="function"&&!Gd(b)&&b.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=b,ny(r,a,b,f,g)):(r=Pu(o.type,null,f,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(b=r.child,!Fh(r,g)){var _=b.memoizedProps;if(o=o.compare,o=o!==null?o:Ml,o(_,f)&&r.ref===a.ref)return Yr(r,a,g)}return a.flags|=1,r=Hr(b,f),r.ref=a.ref,r.return=a,a.child=r}function ny(r,a,o,f,g){if(r!==null){var b=r.memoizedProps;if(Ml(b,f)&&r.ref===a.ref)if(jt=!1,a.pendingProps=f=b,Fh(r,g))(r.flags&131072)!==0&&(jt=!0);else return a.lanes=r.lanes,Yr(r,a,g)}return Mh(r,a,o,f,g)}function ry(r,a,o,f){var g=f.children,b=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|o:o,r!==null){for(f=a.child=r.child,g=0;f!==null;)g=g|f.lanes|f.childLanes,f=f.sibling;f=g&~b}else f=0,a.child=null;return iy(r,a,b,o,f)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Uu(a,b!==null?b.cachePool:null),b!==null?sb(a,b):fh(),lb(a);else return f=a.lanes=536870912,iy(r,a,b!==null?b.baseLanes|o:o,o,f)}else b!==null?(Uu(a,b.cachePool),sb(a,b),Ai(),a.memoizedState=null):(r!==null&&Uu(a,null),fh(),Ai());return nn(r,a,g,o),a.child}function Ql(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function iy(r,a,o,f,g){var b=ah();return b=b===null?null:{parent:Pt._currentValue,pool:b},a.memoizedState={baseLanes:o,cachePool:b},r!==null&&Uu(a,null),fh(),lb(a),r!==null&&_s(r,a,f,!0),a.childLanes=g,null}function nc(r,a){return a=ic({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function ay(r,a,o){return va(a,r.child,null,o),r=nc(a,a.pendingProps),r.flags|=2,Bn(a),a.memoizedState=null,r}function Qk(r,a,o){var f=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Ze){if(f.mode==="hidden")return r=nc(a,f),a.lanes=536870912,Ql(null,r);if(hh(a),(r=St)?(r=bE(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},o=F1(r),o.return=a,a.child=o,en=a,St=null)):r=null,r===null)throw xi(a);return a.lanes=536870912,null}return nc(a,f)}var b=r.memoizedState;if(b!==null){var _=b.dehydrated;if(hh(a),g)if(a.flags&256)a.flags&=-257,a=ay(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(jt||_s(r,a,o,!1),g=(o&r.childLanes)!==0,jt||g){if(f=yt,f!==null&&(_=Xg(f,o),_!==0&&_!==b.retryLane))throw b.retryLane=_,ma(r,_),An(f,r,_),Ih;hc(),a=ay(r,a,o)}else r=b.treeContext,St=Jn(_.nextSibling),en=a,Ze=!0,Ei=null,Wn=!1,r!==null&&Y1(a,r),a=nc(a,f),a.flags|=4096;return a}return r=Hr(r.child,{mode:f.mode,children:f.children}),r.ref=a.ref,a.child=r,r.return=a,r}function rc(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function Mh(r,a,o,f,g){return ya(a),o=ph(r,a,o,f,void 0,g),f=gh(),r!==null&&!jt?(bh(r,a,g),Yr(r,a,g)):(Ze&&f&&Qd(a),a.flags|=1,nn(r,a,o,g),a.child)}function sy(r,a,o,f,g,b){return ya(a),a.updateQueue=null,o=ub(a,f,o,g),ob(r),f=gh(),r!==null&&!jt?(bh(r,a,b),Yr(r,a,b)):(Ze&&f&&Qd(a),a.flags|=1,nn(r,a,o,b),a.child)}function ly(r,a,o,f,g){if(ya(a),a.stateNode===null){var b=xs,_=o.contextType;typeof _=="object"&&_!==null&&(b=tn(_)),b=new o(f,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Lh,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=f,b.state=a.memoizedState,b.refs={},lh(a),_=o.contextType,b.context=typeof _=="object"&&_!==null?tn(_):xs,b.state=a.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Oh(a,o,_,f),b.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(_=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),_!==b.state&&Lh.enqueueReplaceState(b,b.state,null),Yl(a,f,b,g),Vl(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){b=a.stateNode;var O=a.memoizedProps,q=_a(o,O);b.props=q;var ee=b.context,oe=o.contextType;_=xs,typeof oe=="object"&&oe!==null&&(_=tn(oe));var fe=o.getDerivedStateFromProps;oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,oe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||ee!==_)&&Gb(a,b,f,_),vi=!1;var te=a.memoizedState;b.state=te,Yl(a,f,b,g),Vl(),ee=a.memoizedState,O||te!==ee||vi?(typeof fe=="function"&&(Oh(a,o,fe,f),ee=a.memoizedState),(q=vi||$b(a,o,q,f,te,ee,_))?(oe||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=ee),b.props=f,b.state=ee,b.context=_,f=q):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{b=a.stateNode,oh(r,a),_=a.memoizedProps,oe=_a(o,_),b.props=oe,fe=a.pendingProps,te=b.context,ee=o.contextType,q=xs,typeof ee=="object"&&ee!==null&&(q=tn(ee)),O=o.getDerivedStateFromProps,(ee=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_!==fe||te!==q)&&Gb(a,b,f,q),vi=!1,te=a.memoizedState,b.state=te,Yl(a,f,b,g),Vl();var ie=a.memoizedState;_!==fe||te!==ie||vi||r!==null&&r.dependencies!==null&&ju(r.dependencies)?(typeof O=="function"&&(Oh(a,o,O,f),ie=a.memoizedState),(oe=vi||$b(a,o,oe,f,te,ie,q)||r!==null&&r.dependencies!==null&&ju(r.dependencies))?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,ie,q),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,ie,q)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&te===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&te===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=ie),b.props=f,b.state=ie,b.context=q,f=oe):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&te===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&te===r.memoizedState||(a.flags|=1024),f=!1)}return b=f,rc(r,a),f=(a.flags&128)!==0,b||f?(b=a.stateNode,o=f&&typeof o.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,r!==null&&f?(a.child=va(a,r.child,null,g),a.child=va(a,null,o,g)):nn(r,a,o,g),a.memoizedState=b.state,r=a.child):r=Yr(r,a,g),r}function oy(r,a,o,f){return ga(),a.flags|=256,nn(r,a,o,f),a.child}var Ph={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bh(r){return{baseLanes:r,cachePool:W1()}}function jh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Hn),r}function uy(r,a,o){var f=a.pendingProps,g=!1,b=(a.flags&128)!==0,_;if((_=b)||(_=r!==null&&r.memoizedState===null?!1:(Ot.current&2)!==0),_&&(g=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,r===null){if(Ze){if(g?Ci(a):Ai(),(r=St)?(r=bE(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:br,overflow:yr}:null,retryLane:536870912,hydrationErrors:null},o=F1(r),o.return=a,a.child=o,en=a,St=null)):r=null,r===null)throw xi(a);return xm(r)?a.lanes=32:a.lanes=536870912,null}var O=f.children;return f=f.fallback,g?(Ai(),g=a.mode,O=ic({mode:"hidden",children:O},g),f=pa(f,g,o,null),O.return=a,f.return=a,O.sibling=f,a.child=O,f=a.child,f.memoizedState=Bh(o),f.childLanes=jh(r,_,o),a.memoizedState=Ph,Ql(null,f)):(Ci(a),Hh(a,O))}var q=r.memoizedState;if(q!==null&&(O=q.dehydrated,O!==null)){if(b)a.flags&256?(Ci(a),a.flags&=-257,a=Uh(r,a,o)):a.memoizedState!==null?(Ai(),a.child=r.child,a.flags|=128,a=null):(Ai(),O=f.fallback,g=a.mode,f=ic({mode:"visible",children:f.children},g),O=pa(O,g,o,null),O.flags|=2,f.return=a,O.return=a,f.sibling=O,a.child=f,va(a,r.child,null,o),f=a.child,f.memoizedState=Bh(o),f.childLanes=jh(r,_,o),a.memoizedState=Ph,a=Ql(null,f));else if(Ci(a),xm(O)){if(_=O.nextSibling&&O.nextSibling.dataset,_)var ee=_.dgst;_=ee,f=Error(i(419)),f.stack="",f.digest=_,jl({value:f,source:null,stack:null}),a=Uh(r,a,o)}else if(jt||_s(r,a,o,!1),_=(o&r.childLanes)!==0,jt||_){if(_=yt,_!==null&&(f=Xg(_,o),f!==0&&f!==q.retryLane))throw q.retryLane=f,ma(r,f),An(_,r,f),Ih;Em(O)||hc(),a=Uh(r,a,o)}else Em(O)?(a.flags|=192,a.child=r.child,a=null):(r=q.treeContext,St=Jn(O.nextSibling),en=a,Ze=!0,Ei=null,Wn=!1,r!==null&&Y1(a,r),a=Hh(a,f.children),a.flags|=4096);return a}return g?(Ai(),O=f.fallback,g=a.mode,q=r.child,ee=q.sibling,f=Hr(q,{mode:"hidden",children:f.children}),f.subtreeFlags=q.subtreeFlags&65011712,ee!==null?O=Hr(ee,O):(O=pa(O,g,o,null),O.flags|=2),O.return=a,f.return=a,f.sibling=O,a.child=f,Ql(null,f),f=a.child,O=r.child.memoizedState,O===null?O=Bh(o):(g=O.cachePool,g!==null?(q=Pt._currentValue,g=g.parent!==q?{parent:q,pool:q}:g):g=W1(),O={baseLanes:O.baseLanes|o,cachePool:g}),f.memoizedState=O,f.childLanes=jh(r,_,o),a.memoizedState=Ph,Ql(r.child,f)):(Ci(a),o=r.child,r=o.sibling,o=Hr(o,{mode:"visible",children:f.children}),o.return=a,o.sibling=null,r!==null&&(_=a.deletions,_===null?(a.deletions=[r],a.flags|=16):_.push(r)),a.child=o,a.memoizedState=null,o)}function Hh(r,a){return a=ic({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ic(r,a){return r=Mn(22,r,null,a),r.lanes=0,r}function Uh(r,a,o){return va(a,r.child,null,o),r=Hh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function cy(r,a,o){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),th(r.return,a,o)}function zh(r,a,o,f,g,b){var _=r.memoizedState;_===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:g,treeForkCount:b}:(_.isBackwards=a,_.rendering=null,_.renderingStartTime=0,_.last=f,_.tail=o,_.tailMode=g,_.treeForkCount=b)}function fy(r,a,o){var f=a.pendingProps,g=f.revealOrder,b=f.tail;f=f.children;var _=Ot.current,O=(_&2)!==0;if(O?(_=_&1|2,a.flags|=128):_&=1,I(Ot,_),nn(r,a,f,o),f=Ze?Bl:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&cy(r,o,a);else if(r.tag===19)cy(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(o=a.child,g=null;o!==null;)r=o.alternate,r!==null&&$u(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),zh(a,!1,g,o,b,f);break;case"backwards":case"unstable_legacy-backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&$u(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}zh(a,!0,o,null,b,f);break;case"together":zh(a,!1,null,null,void 0,f);break;default:a.memoizedState=null}return a.child}function Yr(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),Ni|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(_s(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=Hr(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=Hr(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function Fh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&ju(r)))}function Wk(r,a,o){switch(a.tag){case 3:Te(a,a.stateNode.containerInfo),Ti(a,Pt,r.memoizedState.cache),ga();break;case 27:case 5:Me(a);break;case 4:Te(a,a.stateNode.containerInfo);break;case 10:Ti(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,hh(a),null;break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(Ci(a),a.flags|=128,null):(o&a.child.childLanes)!==0?uy(r,a,o):(Ci(a),r=Yr(r,a,o),r!==null?r.sibling:null);Ci(a);break;case 19:var g=(r.flags&128)!==0;if(f=(o&a.childLanes)!==0,f||(_s(r,a,o,!1),f=(o&a.childLanes)!==0),g){if(f)return fy(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),I(Ot,Ot.current),f)break;return null;case 22:return a.lanes=0,ry(r,a,o,a.pendingProps);case 24:Ti(a,Pt,r.memoizedState.cache)}return Yr(r,a,o)}function dy(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)jt=!0;else{if(!Fh(r,o)&&(a.flags&128)===0)return jt=!1,Wk(r,a,o);jt=(r.flags&131072)!==0}else jt=!1,Ze&&(a.flags&1048576)!==0&&V1(a,Bl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var f=a.pendingProps;if(r=xa(a.elementType),a.type=r,typeof r=="function")Gd(r)?(f=_a(r,f),a.tag=1,a=ly(null,a,r,f,o)):(a.tag=0,a=Mh(null,a,r,f,o));else{if(r!=null){var g=r.$$typeof;if(g===D){a.tag=11,a=ey(null,a,r,f,o);break e}else if(g===P){a.tag=14,a=ty(null,a,r,f,o);break e}}throw a=le(r)||r,Error(i(306,a,""))}}return a;case 0:return Mh(r,a,a.type,a.pendingProps,o);case 1:return f=a.type,g=_a(f,a.pendingProps),ly(r,a,f,g,o);case 3:e:{if(Te(a,a.stateNode.containerInfo),r===null)throw Error(i(387));f=a.pendingProps;var b=a.memoizedState;g=b.element,oh(r,a),Yl(a,f,null,o);var _=a.memoizedState;if(f=_.cache,Ti(a,Pt,f),f!==b.cache&&nh(a,[Pt],o,!0),Vl(),f=_.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=oy(r,a,f,o);break e}else if(f!==g){g=Kn(Error(i(424)),a),jl(g),a=oy(r,a,f,o);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,St=Jn(r.firstChild),en=a,Ze=!0,Ei=null,Wn=!0,o=rb(a,null,f,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ga(),f===g){a=Yr(r,a,o);break e}nn(r,a,f,o)}a=a.child}return a;case 26:return rc(r,a),r===null?(o=SE(a.type,null,a.pendingProps,null))?a.memoizedState=o:Ze||(o=a.type,r=a.pendingProps,f=xc(he.current).createElement(o),f[Jt]=a,f[xn]=r,rn(f,o,r),$t(f),a.stateNode=f):a.memoizedState=SE(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Me(a),r===null&&Ze&&(f=a.stateNode=xE(a.type,a.pendingProps,he.current),en=a,Wn=!0,g=St,Ii(a.type)?(Tm=g,St=Jn(f.firstChild)):St=g),nn(r,a,a.pendingProps.children,o),rc(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Ze&&((g=f=St)&&(f=kw(f,a.type,a.pendingProps,Wn),f!==null?(a.stateNode=f,en=a,St=Jn(f.firstChild),Wn=!1,g=!0):g=!1),g||xi(a)),Me(a),g=a.type,b=a.pendingProps,_=r!==null?r.memoizedProps:null,f=b.children,gm(g,b)?f=null:_!==null&&gm(g,_)&&(a.flags|=32),a.memoizedState!==null&&(g=ph(r,a,Fk,null,null,o),fo._currentValue=g),rc(r,a),nn(r,a,f,o),a.child;case 6:return r===null&&Ze&&((r=o=St)&&(o=ww(o,a.pendingProps,Wn),o!==null?(a.stateNode=o,en=a,St=null,r=!0):r=!1),r||xi(a)),null;case 13:return uy(r,a,o);case 4:return Te(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=va(a,null,f,o):nn(r,a,f,o),a.child;case 11:return ey(r,a,a.type,a.pendingProps,o);case 7:return nn(r,a,a.pendingProps,o),a.child;case 8:return nn(r,a,a.pendingProps.children,o),a.child;case 12:return nn(r,a,a.pendingProps.children,o),a.child;case 10:return f=a.pendingProps,Ti(a,a.type,f.value),nn(r,a,f.children,o),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,ya(a),g=tn(g),f=f(g),a.flags|=1,nn(r,a,f,o),a.child;case 14:return ty(r,a,a.type,a.pendingProps,o);case 15:return ny(r,a,a.type,a.pendingProps,o);case 19:return fy(r,a,o);case 31:return Qk(r,a,o);case 22:return ry(r,a,o,a.pendingProps);case 24:return ya(a),f=tn(Pt),r===null?(g=ah(),g===null&&(g=yt,b=rh(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=o),g=b),a.memoizedState={parent:f,cache:g},lh(a),Ti(a,Pt,g)):((r.lanes&o)!==0&&(oh(r,a),Yl(a,null,null,o),Vl()),g=r.memoizedState,b=a.memoizedState,g.parent!==f?(g={parent:f,cache:f},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Ti(a,Pt,f)):(f=b.cache,Ti(a,Pt,f),f!==g.cache&&nh(a,[Pt],o,!0))),nn(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function $r(r){r.flags|=4}function qh(r,a,o,f,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(Hy())r.flags|=8192;else throw Ta=Fu,sh}else r.flags&=-16777217}function hy(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!wE(a))if(Hy())r.flags|=8192;else throw Ta=Fu,sh}function ac(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?$g():536870912,r.lanes|=a,Ps|=a)}function Wl(r,a){if(!Ze)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function _t(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,f=0;if(a)for(var g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags&65011712,f|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)o|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=f,r.childLanes=o,a}function Zk(r,a,o){var f=a.pendingProps;switch(Wd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(a),null;case 1:return _t(a),null;case 3:return o=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),Fr(Pt),ve(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Ss(a)?$r(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Jd())),_t(a),null;case 26:var g=a.type,b=a.memoizedState;return r===null?($r(a),b!==null?(_t(a),hy(a,b)):(_t(a),qh(a,g,null,f,o))):b?b!==r.memoizedState?($r(a),_t(a),hy(a,b)):(_t(a),a.flags&=-16777217):(r=r.memoizedProps,r!==f&&$r(a),_t(a),qh(a,g,r,f,o)),null;case 27:if(Le(a),o=he.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return _t(a),null}r=ge.current,Ss(a)?$1(a):(r=xE(g,f,o),a.stateNode=r,$r(a))}return _t(a),null;case 5:if(Le(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return _t(a),null}if(b=ge.current,Ss(a))$1(a);else{var _=xc(he.current);switch(b){case 1:b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=_.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=_.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=_.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof f.is=="string"?_.createElement("select",{is:f.is}):_.createElement("select"),f.multiple?b.multiple=!0:f.size&&(b.size=f.size);break;default:b=typeof f.is=="string"?_.createElement(g,{is:f.is}):_.createElement(g)}}b[Jt]=a,b[xn]=f;e:for(_=a.child;_!==null;){if(_.tag===5||_.tag===6)b.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===a)break e;for(;_.sibling===null;){if(_.return===null||_.return===a)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}a.stateNode=b;e:switch(rn(b,g,f),g){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&$r(a)}}return _t(a),qh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&$r(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Ss(a)){if(r=a.stateNode,o=a.memoizedProps,f=null,g=en,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[Jt]=a,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||uE(r.nodeValue,o)),r||xi(a,!0)}else r=xc(r).createTextNode(f),r[Jt]=a,a.stateNode=r}return _t(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(f=Ss(a),o!==null){if(r===null){if(!f)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[Jt]=a}else ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),r=!1}else o=Jd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(Bn(a),a):(Bn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return _t(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Ss(a),f!==null&&f.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[Jt]=a}else ga(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),g=!1}else g=Jd(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Bn(a),a):(Bn(a),null)}return Bn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=f!==null,r=r!==null&&r.memoizedState!==null,o&&(f=a.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048)),o!==r&&o&&(a.child.flags|=8192),ac(a,a.updateQueue),_t(a),null);case 4:return ve(),r===null&&fm(a.stateNode.containerInfo),_t(a),null;case 10:return Fr(a.type),_t(a),null;case 19:if(K(Ot),f=a.memoizedState,f===null)return _t(a),null;if(g=(a.flags&128)!==0,b=f.rendering,b===null)if(g)Wl(f,!1);else{if(Rt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=$u(r),b!==null){for(a.flags|=128,Wl(f,!1),r=b.updateQueue,a.updateQueue=r,ac(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)z1(o,r),o=o.sibling;return I(Ot,Ot.current&1|2),Ze&&Ur(a,f.treeForkCount),a.child}r=r.sibling}f.tail!==null&&it()>cc&&(a.flags|=128,g=!0,Wl(f,!1),a.lanes=4194304)}else{if(!g)if(r=$u(b),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,ac(a,r),Wl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!Ze)return _t(a),null}else 2*it()-f.renderingStartTime>cc&&o!==536870912&&(a.flags|=128,g=!0,Wl(f,!1),a.lanes=4194304);f.isBackwards?(b.sibling=a.child,a.child=b):(r=f.last,r!==null?r.sibling=b:a.child=b,f.last=b)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=it(),r.sibling=null,o=Ot.current,I(Ot,g?o&1|2:o&1),Ze&&Ur(a,f.treeForkCount),r):(_t(a),null);case 22:case 23:return Bn(a),dh(),f=a.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(o&536870912)!==0&&(a.flags&128)===0&&(_t(a),a.subtreeFlags&6&&(a.flags|=8192)):_t(a),o=a.updateQueue,o!==null&&ac(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==o&&(a.flags|=2048),r!==null&&K(Ea),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Fr(Pt),_t(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Jk(r,a){switch(Wd(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Fr(Pt),ve(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Le(a),null;case 31:if(a.memoizedState!==null){if(Bn(a),a.alternate===null)throw Error(i(340));ga()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Bn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ga()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return K(Ot),null;case 4:return ve(),null;case 10:return Fr(a.type),null;case 22:case 23:return Bn(a),dh(),r!==null&&K(Ea),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Fr(Pt),null;case 25:return null;default:return null}}function my(r,a){switch(Wd(a),a.tag){case 3:Fr(Pt),ve();break;case 26:case 27:case 5:Le(a);break;case 4:ve();break;case 31:a.memoizedState!==null&&Bn(a);break;case 13:Bn(a);break;case 19:K(Ot);break;case 10:Fr(a.type);break;case 22:case 23:Bn(a),dh(),r!==null&&K(Ea);break;case 24:Fr(Pt)}}function Zl(r,a){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var g=f.next;o=g;do{if((o.tag&r)===r){f=void 0;var b=o.create,_=o.inst;f=b(),_.destroy=f}o=o.next}while(o!==g)}}catch(O){ft(a,a.return,O)}}function ki(r,a,o){try{var f=a.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&r)===r){var _=f.inst,O=_.destroy;if(O!==void 0){_.destroy=void 0,g=a;var q=o,ee=O;try{ee()}catch(oe){ft(g,q,oe)}}}f=f.next}while(f!==b)}}catch(oe){ft(a,a.return,oe)}}function py(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{ab(a,o)}catch(f){ft(r,r.return,f)}}}function gy(r,a,o){o.props=_a(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){ft(r,a,f)}}function Jl(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof o=="function"?r.refCleanup=o(f):o.current=f}}catch(g){ft(r,a,g)}}function Er(r,a){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(g){ft(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){ft(r,a,g)}else o.current=null}function by(r){var a=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&f.focus();break e;case"img":o.src?f.src=o.src:o.srcSet&&(f.srcset=o.srcSet)}}catch(g){ft(r,r.return,g)}}function Vh(r,a,o){try{var f=r.stateNode;Tw(f,r.type,o,a),f[xn]=a}catch(g){ft(r,r.return,g)}}function yy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ii(r.type)||r.tag===4}function Yh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||yy(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Ii(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function $h(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Br));else if(f!==4&&(f===27&&Ii(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for($h(r,a,o),r=r.sibling;r!==null;)$h(r,a,o),r=r.sibling}function sc(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(f!==4&&(f===27&&Ii(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(sc(r,a,o),r=r.sibling;r!==null;)sc(r,a,o),r=r.sibling}function Ey(r){var a=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);rn(a,f,o),a[Jt]=r,a[xn]=o}catch(b){ft(r,r.return,b)}}var Gr=!1,Ht=!1,Gh=!1,xy=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function ew(r,a){if(r=r.containerInfo,mm=kc,r=L1(r),Ud(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var g=f.anchorOffset,b=f.focusNode;f=f.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var _=0,O=-1,q=-1,ee=0,oe=0,fe=r,te=null;t:for(;;){for(var ie;fe!==o||g!==0&&fe.nodeType!==3||(O=_+g),fe!==b||f!==0&&fe.nodeType!==3||(q=_+f),fe.nodeType===3&&(_+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)te=fe,fe=ie;for(;;){if(fe===r)break t;if(te===o&&++ee===g&&(O=_),te===b&&++oe===f&&(q=_),(ie=fe.nextSibling)!==null)break;fe=te,te=fe.parentNode}fe=ie}o=O===-1||q===-1?null:{start:O,end:q}}else o=null}o=o||{start:0,end:0}}else o=null;for(pm={focusedElem:r,selectionRange:o},kc=!1,Gt=a;Gt!==null;)if(a=Gt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Gt=r;else for(;Gt!==null;){switch(a=Gt,b=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)g=r[o],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&b!==null){r=void 0,o=a,g=b.memoizedProps,b=b.memoizedState,f=o.stateNode;try{var Ae=_a(o.type,g);r=f.getSnapshotBeforeUpdate(Ae,b),f.__reactInternalSnapshotBeforeUpdate=r}catch(Oe){ft(o,o.return,Oe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)ym(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":ym(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Gt=r;break}Gt=a.return}}function Ty(r,a,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:Xr(r,o),f&4&&Zl(5,o);break;case 1:if(Xr(r,o),f&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(_){ft(o,o.return,_)}else{var g=_a(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ft(o,o.return,_)}}f&64&&py(o),f&512&&Jl(o,o.return);break;case 3:if(Xr(r,o),f&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{ab(r,a)}catch(_){ft(o,o.return,_)}}break;case 27:a===null&&f&4&&Ey(o);case 26:case 5:Xr(r,o),a===null&&f&4&&by(o),f&512&&Jl(o,o.return);break;case 12:Xr(r,o);break;case 31:Xr(r,o),f&4&&_y(r,o);break;case 13:Xr(r,o),f&4&&Cy(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=uw.bind(null,o),Nw(r,o))));break;case 22:if(f=o.memoizedState!==null||Gr,!f){a=a!==null&&a.memoizedState!==null||Ht,g=Gr;var b=Ht;Gr=f,(Ht=a)&&!b?Qr(r,o,(o.subtreeFlags&8772)!==0):Xr(r,o),Gr=g,Ht=b}break;case 30:break;default:Xr(r,o)}}function vy(r){var a=r.alternate;a!==null&&(r.alternate=null,vy(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Sd(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var At=null,vn=!1;function Kr(r,a,o){for(o=o.child;o!==null;)Sy(r,a,o),o=o.sibling}function Sy(r,a,o){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(fn,o)}catch{}switch(o.tag){case 26:Ht||Er(o,a),Kr(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ht||Er(o,a);var f=At,g=vn;Ii(o.type)&&(At=o.stateNode,vn=!1),Kr(r,a,o),oo(o.stateNode),At=f,vn=g;break;case 5:Ht||Er(o,a);case 6:if(f=At,g=vn,At=null,Kr(r,a,o),At=f,vn=g,At!==null)if(vn)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(o.stateNode)}catch(b){ft(o,a,b)}else try{At.removeChild(o.stateNode)}catch(b){ft(o,a,b)}break;case 18:At!==null&&(vn?(r=At,pE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Vs(r)):pE(At,o.stateNode));break;case 4:f=At,g=vn,At=o.stateNode.containerInfo,vn=!0,Kr(r,a,o),At=f,vn=g;break;case 0:case 11:case 14:case 15:ki(2,o,a),Ht||ki(4,o,a),Kr(r,a,o);break;case 1:Ht||(Er(o,a),f=o.stateNode,typeof f.componentWillUnmount=="function"&&gy(o,a,f)),Kr(r,a,o);break;case 21:Kr(r,a,o);break;case 22:Ht=(f=Ht)||o.memoizedState!==null,Kr(r,a,o),Ht=f;break;default:Kr(r,a,o)}}function _y(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Vs(r)}catch(o){ft(a,a.return,o)}}}function Cy(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Vs(r)}catch(o){ft(a,a.return,o)}}function tw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new xy),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new xy),a;default:throw Error(i(435,r.tag))}}function lc(r,a){var o=tw(r);a.forEach(function(f){if(!o.has(f)){o.add(f);var g=cw.bind(null,r,f);f.then(g,g)}})}function Sn(r,a){var o=a.deletions;if(o!==null)for(var f=0;f<o.length;f++){var g=o[f],b=r,_=a,O=_;e:for(;O!==null;){switch(O.tag){case 27:if(Ii(O.type)){At=O.stateNode,vn=!1;break e}break;case 5:At=O.stateNode,vn=!1;break e;case 3:case 4:At=O.stateNode.containerInfo,vn=!0;break e}O=O.return}if(At===null)throw Error(i(160));Sy(b,_,g),At=null,vn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Ay(a,r),a=a.sibling}var lr=null;function Ay(r,a){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Sn(a,r),_n(r),f&4&&(ki(3,r,r.return),Zl(3,r),ki(5,r,r.return));break;case 1:Sn(a,r),_n(r),f&512&&(Ht||o===null||Er(o,o.return)),f&64&&Gr&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?f:o.concat(f))));break;case 26:var g=lr;if(Sn(a,r),_n(r),f&512&&(Ht||o===null||Er(o,o.return)),f&4){var b=o!==null?o.memoizedState:null;if(f=r.memoizedState,o===null)if(f===null)if(r.stateNode===null){e:{f=r.type,o=r.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Al]||b[Jt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),rn(b,f,o),b[Jt]=r,$t(b),f=b;break e;case"link":var _=AE("link","href",g).get(f+(o.href||""));if(_){for(var O=0;O<_.length;O++)if(b=_[O],b.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&b.getAttribute("rel")===(o.rel==null?null:o.rel)&&b.getAttribute("title")===(o.title==null?null:o.title)&&b.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){_.splice(O,1);break t}}b=g.createElement(f),rn(b,f,o),g.head.appendChild(b);break;case"meta":if(_=AE("meta","content",g).get(f+(o.content||""))){for(O=0;O<_.length;O++)if(b=_[O],b.getAttribute("content")===(o.content==null?null:""+o.content)&&b.getAttribute("name")===(o.name==null?null:o.name)&&b.getAttribute("property")===(o.property==null?null:o.property)&&b.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&b.getAttribute("charset")===(o.charSet==null?null:o.charSet)){_.splice(O,1);break t}}b=g.createElement(f),rn(b,f,o),g.head.appendChild(b);break;default:throw Error(i(468,f))}b[Jt]=r,$t(b),f=b}r.stateNode=f}else kE(g,r.type,r.stateNode);else r.stateNode=CE(g,f,r.memoizedProps);else b!==f?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,f===null?kE(g,r.type,r.stateNode):CE(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&Vh(r,r.memoizedProps,o.memoizedProps)}break;case 27:Sn(a,r),_n(r),f&512&&(Ht||o===null||Er(o,o.return)),o!==null&&f&4&&Vh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(Sn(a,r),_n(r),f&512&&(Ht||o===null||Er(o,o.return)),r.flags&32){g=r.stateNode;try{hs(g,"")}catch(Ae){ft(r,r.return,Ae)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,Vh(r,g,o!==null?o.memoizedProps:g)),f&1024&&(Gh=!0);break;case 6:if(Sn(a,r),_n(r),f&4){if(r.stateNode===null)throw Error(i(162));f=r.memoizedProps,o=r.stateNode;try{o.nodeValue=f}catch(Ae){ft(r,r.return,Ae)}}break;case 3:if(Sc=null,g=lr,lr=Tc(a.containerInfo),Sn(a,r),lr=g,_n(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{Vs(a.containerInfo)}catch(Ae){ft(r,r.return,Ae)}Gh&&(Gh=!1,ky(r));break;case 4:f=lr,lr=Tc(r.stateNode.containerInfo),Sn(a,r),_n(r),lr=f;break;case 12:Sn(a,r),_n(r);break;case 31:Sn(a,r),_n(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 13:Sn(a,r),_n(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(uc=it()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 22:g=r.memoizedState!==null;var q=o!==null&&o.memoizedState!==null,ee=Gr,oe=Ht;if(Gr=ee||g,Ht=oe||q,Sn(a,r),Ht=oe,Gr=ee,_n(r),f&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||q||Gr||Ht||Ca(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){q=o=a;try{if(b=q.stateNode,g)_=b.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{O=q.stateNode;var fe=q.memoizedProps.style,te=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;O.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(Ae){ft(q,q.return,Ae)}}}else if(a.tag===6){if(o===null){q=a;try{q.stateNode.nodeValue=g?"":q.memoizedProps}catch(Ae){ft(q,q.return,Ae)}}}else if(a.tag===18){if(o===null){q=a;try{var ie=q.stateNode;g?gE(ie,!0):gE(q.stateNode,!1)}catch(Ae){ft(q,q.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=r.updateQueue,f!==null&&(o=f.retryQueue,o!==null&&(f.retryQueue=null,lc(r,o))));break;case 19:Sn(a,r),_n(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,lc(r,f)));break;case 30:break;case 21:break;default:Sn(a,r),_n(r)}}function _n(r){var a=r.flags;if(a&2){try{for(var o,f=r.return;f!==null;){if(yy(f)){o=f;break}f=f.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,b=Yh(r);sc(r,b,g);break;case 5:var _=o.stateNode;o.flags&32&&(hs(_,""),o.flags&=-33);var O=Yh(r);sc(r,O,_);break;case 3:case 4:var q=o.stateNode.containerInfo,ee=Yh(r);$h(r,ee,q);break;default:throw Error(i(161))}}catch(oe){ft(r,r.return,oe)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function ky(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;ky(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Xr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Ty(r,a.alternate,a),a=a.sibling}function Ca(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:ki(4,a,a.return),Ca(a);break;case 1:Er(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&gy(a,a.return,o),Ca(a);break;case 27:oo(a.stateNode);case 26:case 5:Er(a,a.return),Ca(a);break;case 22:a.memoizedState===null&&Ca(a);break;case 30:Ca(a);break;default:Ca(a)}r=r.sibling}}function Qr(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,g=r,b=a,_=b.flags;switch(b.tag){case 0:case 11:case 15:Qr(g,b,o),Zl(4,b);break;case 1:if(Qr(g,b,o),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){ft(f,f.return,ee)}if(f=b,g=f.updateQueue,g!==null){var O=f.stateNode;try{var q=g.shared.hiddenCallbacks;if(q!==null)for(g.shared.hiddenCallbacks=null,g=0;g<q.length;g++)ib(q[g],O)}catch(ee){ft(f,f.return,ee)}}o&&_&64&&py(b),Jl(b,b.return);break;case 27:Ey(b);case 26:case 5:Qr(g,b,o),o&&f===null&&_&4&&by(b),Jl(b,b.return);break;case 12:Qr(g,b,o);break;case 31:Qr(g,b,o),o&&_&4&&_y(g,b);break;case 13:Qr(g,b,o),o&&_&4&&Cy(g,b);break;case 22:b.memoizedState===null&&Qr(g,b,o),Jl(b,b.return);break;case 30:break;default:Qr(g,b,o)}a=a.sibling}}function Kh(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Hl(o))}function Xh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Hl(r))}function or(r,a,o,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wy(r,a,o,f),a=a.sibling}function wy(r,a,o,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:or(r,a,o,f),g&2048&&Zl(9,a);break;case 1:or(r,a,o,f);break;case 3:or(r,a,o,f),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Hl(r)));break;case 12:if(g&2048){or(r,a,o,f),r=a.stateNode;try{var b=a.memoizedProps,_=b.id,O=b.onPostCommit;typeof O=="function"&&O(_,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(q){ft(a,a.return,q)}}else or(r,a,o,f);break;case 31:or(r,a,o,f);break;case 13:or(r,a,o,f);break;case 23:break;case 22:b=a.stateNode,_=a.alternate,a.memoizedState!==null?b._visibility&2?or(r,a,o,f):eo(r,a):b._visibility&2?or(r,a,o,f):(b._visibility|=2,Ds(r,a,o,f,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Kh(_,a);break;case 24:or(r,a,o,f),g&2048&&Xh(a.alternate,a);break;default:or(r,a,o,f)}}function Ds(r,a,o,f,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=r,_=a,O=o,q=f,ee=_.flags;switch(_.tag){case 0:case 11:case 15:Ds(b,_,O,q,g),Zl(8,_);break;case 23:break;case 22:var oe=_.stateNode;_.memoizedState!==null?oe._visibility&2?Ds(b,_,O,q,g):eo(b,_):(oe._visibility|=2,Ds(b,_,O,q,g)),g&&ee&2048&&Kh(_.alternate,_);break;case 24:Ds(b,_,O,q,g),g&&ee&2048&&Xh(_.alternate,_);break;default:Ds(b,_,O,q,g)}a=a.sibling}}function eo(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,f=a,g=f.flags;switch(f.tag){case 22:eo(o,f),g&2048&&Kh(f.alternate,f);break;case 24:eo(o,f),g&2048&&Xh(f.alternate,f);break;default:eo(o,f)}a=a.sibling}}var to=8192;function Is(r,a,o){if(r.subtreeFlags&to)for(r=r.child;r!==null;)Ny(r,a,o),r=r.sibling}function Ny(r,a,o){switch(r.tag){case 26:Is(r,a,o),r.flags&to&&r.memoizedState!==null&&zw(o,lr,r.memoizedState,r.memoizedProps);break;case 5:Is(r,a,o);break;case 3:case 4:var f=lr;lr=Tc(r.stateNode.containerInfo),Is(r,a,o),lr=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=to,to=16777216,Is(r,a,o),to=f):Is(r,a,o));break;default:Is(r,a,o)}}function Ry(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function no(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Gt=f,Ly(f,r)}Ry(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Oy(r),r=r.sibling}function Oy(r){switch(r.tag){case 0:case 11:case 15:no(r),r.flags&2048&&ki(9,r,r.return);break;case 3:no(r);break;case 12:no(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,oc(r)):no(r);break;default:no(r)}}function oc(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];Gt=f,Ly(f,r)}Ry(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ki(8,a,a.return),oc(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,oc(a));break;default:oc(a)}r=r.sibling}}function Ly(r,a){for(;Gt!==null;){var o=Gt;switch(o.tag){case 0:case 11:case 15:ki(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var f=o.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Hl(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,Gt=f;else e:for(o=r;Gt!==null;){f=Gt;var g=f.sibling,b=f.return;if(vy(f),f===o){Gt=null;break e}if(g!==null){g.return=b,Gt=g;break e}Gt=b}}}var nw={getCacheForType:function(r){var a=tn(Pt),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return tn(Pt).controller.signal}},rw=typeof WeakMap=="function"?WeakMap:Map,lt=0,yt=null,Ge=null,Qe=0,ct=0,jn=null,wi=!1,Ms=!1,Qh=!1,Wr=0,Rt=0,Ni=0,Aa=0,Wh=0,Hn=0,Ps=0,ro=null,Cn=null,Zh=!1,uc=0,Dy=0,cc=1/0,fc=null,Ri=null,qt=0,Oi=null,Bs=null,Zr=0,Jh=0,em=null,Iy=null,io=0,tm=null;function Un(){return(lt&2)!==0&&Qe!==0?Qe&-Qe:V.T!==null?lm():Qg()}function My(){if(Hn===0)if((Qe&536870912)===0||Ze){var r=Eu;Eu<<=1,(Eu&3932160)===0&&(Eu=262144),Hn=r}else Hn=536870912;return r=Pn.current,r!==null&&(r.flags|=32),Hn}function An(r,a,o){(r===yt&&(ct===2||ct===9)||r.cancelPendingCommit!==null)&&(js(r,0),Li(r,Qe,Hn,!1)),Cl(r,o),((lt&2)===0||r!==yt)&&(r===yt&&((lt&2)===0&&(Aa|=o),Rt===4&&Li(r,Qe,Hn,!1)),xr(r))}function Py(r,a,o){if((lt&6)!==0)throw Error(i(327));var f=!o&&(a&127)===0&&(a&r.expiredLanes)===0||_l(r,a),g=f?sw(r,a):rm(r,a,!0),b=f;do{if(g===0){Ms&&!f&&Li(r,a,0,!1);break}else{if(o=r.current.alternate,b&&!iw(o)){g=rm(r,a,!1),b=!1;continue}if(g===2){if(b=a,r.errorRecoveryDisabledLanes&b)var _=0;else _=r.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var O=r;g=ro;var q=O.current.memoizedState.isDehydrated;if(q&&(js(O,_).flags|=256),_=rm(O,_,!1),_!==2){if(Qh&&!q){O.errorRecoveryDisabledLanes|=b,Aa|=b,g=4;break e}b=Cn,Cn=g,b!==null&&(Cn===null?Cn=b:Cn.push.apply(Cn,b))}g=_}if(b=!1,g!==2)continue}}if(g===1){js(r,0),Li(r,a,0,!0);break}e:{switch(f=r,b=g,b){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Li(f,a,Hn,!wi);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=uc+300-it(),10<g)){if(Li(f,a,Hn,!wi),Tu(f,0,!0)!==0)break e;Zr=a,f.timeoutHandle=hE(By.bind(null,f,o,Cn,fc,Zh,a,Hn,Aa,Ps,wi,b,"Throttled",-0,0),g);break e}By(f,o,Cn,fc,Zh,a,Hn,Aa,Ps,wi,b,null,-0,0)}}break}while(!0);xr(r)}function By(r,a,o,f,g,b,_,O,q,ee,oe,fe,te,ie){if(r.timeoutHandle=-1,fe=a.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Br},Ny(a,b,fe);var Ae=(b&62914560)===b?uc-it():(b&4194048)===b?Dy-it():0;if(Ae=Fw(fe,Ae),Ae!==null){Zr=b,r.cancelPendingCommit=Ae(Yy.bind(null,r,a,b,o,f,g,_,O,q,oe,fe,null,te,ie)),Li(r,b,_,!ee);return}}Yy(r,a,b,o,f,g,_,O,q)}function iw(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var f=0;f<o.length;f++){var g=o[f],b=g.getSnapshot;g=g.value;try{if(!In(b(),g))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Li(r,a,o,f){a&=~Wh,a&=~Aa,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var g=a;0<g;){var b=31-bt(g),_=1<<b;f[b]=-1,g&=~_}o!==0&&Gg(r,o,a)}function dc(){return(lt&6)===0?(ao(0),!1):!0}function nm(){if(Ge!==null){if(ct===0)var r=Ge.return;else r=Ge,zr=ba=null,yh(r),ws=null,zl=0,r=Ge;for(;r!==null;)my(r.alternate,r),r=r.return;Ge=null}}function js(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,_w(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Zr=0,nm(),yt=r,Ge=o=Hr(r.current,null),Qe=a,ct=0,jn=null,wi=!1,Ms=_l(r,a),Qh=!1,Ps=Hn=Wh=Aa=Ni=Rt=0,Cn=ro=null,Zh=!1,(a&8)!==0&&(a|=a&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=a;0<f;){var g=31-bt(f),b=1<<g;a|=r[g],f&=~b}return Wr=a,Du(),o}function jy(r,a){He=null,V.H=Xl,a===ks||a===zu?(a=eb(),ct=3):a===sh?(a=eb(),ct=4):ct=a===Ih?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,jn=a,Ge===null&&(Rt=1,tc(r,Kn(a,r.current)))}function Hy(){var r=Pn.current;return r===null?!0:(Qe&4194048)===Qe?Zn===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?r===Zn:!1}function Uy(){var r=V.H;return V.H=Xl,r===null?Xl:r}function zy(){var r=V.A;return V.A=nw,r}function hc(){Rt=4,wi||(Qe&4194048)!==Qe&&Pn.current!==null||(Ms=!0),(Ni&134217727)===0&&(Aa&134217727)===0||yt===null||Li(yt,Qe,Hn,!1)}function rm(r,a,o){var f=lt;lt|=2;var g=Uy(),b=zy();(yt!==r||Qe!==a)&&(fc=null,js(r,a)),a=!1;var _=Rt;e:do try{if(ct!==0&&Ge!==null){var O=Ge,q=jn;switch(ct){case 8:nm(),_=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(a=!0);var ee=ct;if(ct=0,jn=null,Hs(r,O,q,ee),o&&Ms){_=0;break e}break;default:ee=ct,ct=0,jn=null,Hs(r,O,q,ee)}}aw(),_=Rt;break}catch(oe){jy(r,oe)}while(!0);return a&&r.shellSuspendCounter++,zr=ba=null,lt=f,V.H=g,V.A=b,Ge===null&&(yt=null,Qe=0,Du()),_}function aw(){for(;Ge!==null;)Fy(Ge)}function sw(r,a){var o=lt;lt|=2;var f=Uy(),g=zy();yt!==r||Qe!==a?(fc=null,cc=it()+500,js(r,a)):Ms=_l(r,a);e:do try{if(ct!==0&&Ge!==null){a=Ge;var b=jn;t:switch(ct){case 1:ct=0,jn=null,Hs(r,a,b,1);break;case 2:case 9:if(Z1(b)){ct=0,jn=null,qy(a);break}a=function(){ct!==2&&ct!==9||yt!==r||(ct=7),xr(r)},b.then(a,a);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:Z1(b)?(ct=0,jn=null,qy(a)):(ct=0,jn=null,Hs(r,a,b,7));break;case 5:var _=null;switch(Ge.tag){case 26:_=Ge.memoizedState;case 5:case 27:var O=Ge;if(_?wE(_):O.stateNode.complete){ct=0,jn=null;var q=O.sibling;if(q!==null)Ge=q;else{var ee=O.return;ee!==null?(Ge=ee,mc(ee)):Ge=null}break t}}ct=0,jn=null,Hs(r,a,b,5);break;case 6:ct=0,jn=null,Hs(r,a,b,6);break;case 8:nm(),Rt=6;break e;default:throw Error(i(462))}}lw();break}catch(oe){jy(r,oe)}while(!0);return zr=ba=null,V.H=f,V.A=g,lt=o,Ge!==null?0:(yt=null,Qe=0,Du(),Rt)}function lw(){for(;Ge!==null&&!vt();)Fy(Ge)}function Fy(r){var a=dy(r.alternate,r,Wr);r.memoizedProps=r.pendingProps,a===null?mc(r):Ge=a}function qy(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=sy(o,a,a.pendingProps,a.type,void 0,Qe);break;case 11:a=sy(o,a,a.pendingProps,a.type.render,a.ref,Qe);break;case 5:yh(a);default:my(o,a),a=Ge=z1(a,Wr),a=dy(o,a,Wr)}r.memoizedProps=r.pendingProps,a===null?mc(r):Ge=a}function Hs(r,a,o,f){zr=ba=null,yh(a),ws=null,zl=0;var g=a.return;try{if(Xk(r,g,a,o,Qe)){Rt=1,tc(r,Kn(o,r.current)),Ge=null;return}}catch(b){if(g!==null)throw Ge=g,b;Rt=1,tc(r,Kn(o,r.current)),Ge=null;return}a.flags&32768?(Ze||f===1?r=!0:Ms||(Qe&536870912)!==0?r=!1:(wi=r=!0,(f===2||f===9||f===3||f===6)&&(f=Pn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Vy(a,r)):mc(a)}function mc(r){var a=r;do{if((a.flags&32768)!==0){Vy(a,wi);return}r=a.return;var o=Zk(a.alternate,a,Wr);if(o!==null){Ge=o;return}if(a=a.sibling,a!==null){Ge=a;return}Ge=a=r}while(a!==null);Rt===0&&(Rt=5)}function Vy(r,a){do{var o=Jk(r.alternate,r);if(o!==null){o.flags&=32767,Ge=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){Ge=r;return}Ge=r=o}while(r!==null);Rt=6,Ge=null}function Yy(r,a,o,f,g,b,_,O,q){r.cancelPendingCommit=null;do pc();while(qt!==0);if((lt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(b=a.lanes|a.childLanes,b|=Yd,UA(r,o,b,_,O,q),r===yt&&(Ge=yt=null,Qe=0),Bs=a,Oi=r,Zr=o,Jh=b,em=g,Iy=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,fw(De,function(){return Qy(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=V.T,V.T=null,g=X.p,X.p=2,_=lt,lt|=4;try{ew(r,a,o)}finally{lt=_,X.p=g,V.T=f}}qt=1,$y(),Gy(),Ky()}}function $y(){if(qt===1){qt=0;var r=Oi,a=Bs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=V.T,V.T=null;var f=X.p;X.p=2;var g=lt;lt|=4;try{Ay(a,r);var b=pm,_=L1(r.containerInfo),O=b.focusedElem,q=b.selectionRange;if(_!==O&&O&&O.ownerDocument&&O1(O.ownerDocument.documentElement,O)){if(q!==null&&Ud(O)){var ee=q.start,oe=q.end;if(oe===void 0&&(oe=ee),"selectionStart"in O)O.selectionStart=ee,O.selectionEnd=Math.min(oe,O.value.length);else{var fe=O.ownerDocument||document,te=fe&&fe.defaultView||window;if(te.getSelection){var ie=te.getSelection(),Ae=O.textContent.length,Oe=Math.min(q.start,Ae),mt=q.end===void 0?Oe:Math.min(q.end,Ae);!ie.extend&&Oe>mt&&(_=mt,mt=Oe,Oe=_);var Q=R1(O,Oe),$=R1(O,mt);if(Q&&$&&(ie.rangeCount!==1||ie.anchorNode!==Q.node||ie.anchorOffset!==Q.offset||ie.focusNode!==$.node||ie.focusOffset!==$.offset)){var J=fe.createRange();J.setStart(Q.node,Q.offset),ie.removeAllRanges(),Oe>mt?(ie.addRange(J),ie.extend($.node,$.offset)):(J.setEnd($.node,$.offset),ie.addRange(J))}}}}for(fe=[],ie=O;ie=ie.parentNode;)ie.nodeType===1&&fe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<fe.length;O++){var ce=fe[O];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}kc=!!mm,pm=mm=null}finally{lt=g,X.p=f,V.T=o}}r.current=a,qt=2}}function Gy(){if(qt===2){qt=0;var r=Oi,a=Bs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=V.T,V.T=null;var f=X.p;X.p=2;var g=lt;lt|=4;try{Ty(r,a.alternate,a)}finally{lt=g,X.p=f,V.T=o}}qt=3}}function Ky(){if(qt===4||qt===3){qt=0,rt();var r=Oi,a=Bs,o=Zr,f=Iy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qt=5:(qt=0,Bs=Oi=null,Xy(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Ri=null),Td(o),a=a.stateNode,Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(fn,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=V.T,g=X.p,X.p=2,V.T=null;try{for(var b=r.onRecoverableError,_=0;_<f.length;_++){var O=f[_];b(O.value,{componentStack:O.stack})}}finally{V.T=a,X.p=g}}(Zr&3)!==0&&pc(),xr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===tm?io++:(io=0,tm=r):io=0,ao(0)}}function Xy(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Hl(a)))}function pc(){return $y(),Gy(),Ky(),Qy()}function Qy(){if(qt!==5)return!1;var r=Oi,a=Jh;Jh=0;var o=Td(Zr),f=V.T,g=X.p;try{X.p=32>o?32:o,V.T=null,o=em,em=null;var b=Oi,_=Zr;if(qt=0,Bs=Oi=null,Zr=0,(lt&6)!==0)throw Error(i(331));var O=lt;if(lt|=4,Oy(b.current),wy(b,b.current,_,o),lt=O,ao(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(fn,b)}catch{}return!0}finally{X.p=g,V.T=f,Xy(r,a)}}function Wy(r,a,o){a=Kn(o,a),a=Dh(r.stateNode,a,2),r=_i(r,a,2),r!==null&&(Cl(r,2),xr(r))}function ft(r,a,o){if(r.tag===3)Wy(r,r,o);else for(;a!==null;){if(a.tag===3){Wy(a,r,o);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ri===null||!Ri.has(f))){r=Kn(o,r),o=Zb(2),f=_i(a,o,2),f!==null&&(Jb(o,f,a,r),Cl(f,2),xr(f));break}}a=a.return}}function im(r,a,o){var f=r.pingCache;if(f===null){f=r.pingCache=new rw;var g=new Set;f.set(a,g)}else g=f.get(a),g===void 0&&(g=new Set,f.set(a,g));g.has(o)||(Qh=!0,g.add(o),r=ow.bind(null,r,a,o),a.then(r,r))}function ow(r,a,o){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,yt===r&&(Qe&o)===o&&(Rt===4||Rt===3&&(Qe&62914560)===Qe&&300>it()-uc?(lt&2)===0&&js(r,0):Wh|=o,Ps===Qe&&(Ps=0)),xr(r)}function Zy(r,a){a===0&&(a=$g()),r=ma(r,a),r!==null&&(Cl(r,a),xr(r))}function uw(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),Zy(r,o)}function cw(r,a){var o=0;switch(r.tag){case 31:case 13:var f=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(a),Zy(r,o)}function fw(r,a){return _e(r,a)}var gc=null,Us=null,am=!1,bc=!1,sm=!1,Di=0;function xr(r){r!==Us&&r.next===null&&(Us===null?gc=Us=r:Us=Us.next=r),bc=!0,am||(am=!0,hw())}function ao(r,a){if(!sm&&bc){sm=!0;do for(var o=!1,f=gc;f!==null;){if(r!==0){var g=f.pendingLanes;if(g===0)var b=0;else{var _=f.suspendedLanes,O=f.pingedLanes;b=(1<<31-bt(42|r)+1)-1,b&=g&~(_&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,nE(f,b))}else b=Qe,b=Tu(f,f===yt?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||_l(f,b)||(o=!0,nE(f,b));f=f.next}while(o);sm=!1}}function dw(){Jy()}function Jy(){bc=am=!1;var r=0;Di!==0&&Sw()&&(r=Di);for(var a=it(),o=null,f=gc;f!==null;){var g=f.next,b=eE(f,a);b===0?(f.next=null,o===null?gc=g:o.next=g,g===null&&(Us=o)):(o=f,(r!==0||(b&3)!==0)&&(bc=!0)),f=g}qt!==0&&qt!==5||ao(r),Di!==0&&(Di=0)}function eE(r,a){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var _=31-bt(b),O=1<<_,q=g[_];q===-1?((O&o)===0||(O&f)!==0)&&(g[_]=HA(O,a)):q<=a&&(r.expiredLanes|=O),b&=~O}if(a=yt,o=Qe,o=Tu(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,o===0||r===a&&(ct===2||ct===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&Ie(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||_l(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(f!==null&&Ie(f),Td(o)){case 2:case 8:o=xe;break;case 32:o=De;break;case 268435456:o=ot;break;default:o=De}return f=tE.bind(null,r),o=_e(o,f),r.callbackPriority=a,r.callbackNode=o,a}return f!==null&&f!==null&&Ie(f),r.callbackPriority=2,r.callbackNode=null,2}function tE(r,a){if(qt!==0&&qt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(pc()&&r.callbackNode!==o)return null;var f=Qe;return f=Tu(r,r===yt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(Py(r,f,a),eE(r,it()),r.callbackNode!=null&&r.callbackNode===o?tE.bind(null,r):null)}function nE(r,a){if(pc())return null;Py(r,a,!0)}function hw(){Cw(function(){(lt&6)!==0?_e(ue,dw):Jy()})}function lm(){if(Di===0){var r=Cs;r===0&&(r=yu,yu<<=1,(yu&261888)===0&&(yu=256)),Di=r}return Di}function rE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Cu(""+r)}function iE(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function mw(r,a,o,f,g){if(a==="submit"&&o&&o.stateNode===g){var b=rE((g[xn]||null).action),_=f.submitter;_&&(a=(a=_[xn]||null)?rE(a.formAction):_.getAttribute("formAction"),a!==null&&(b=a,_=null));var O=new Nu("action","action",null,f,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Di!==0){var q=_?iE(g,_):new FormData(g);kh(o,{pending:!0,data:q,method:g.method,action:b},null,q)}}else typeof b=="function"&&(O.preventDefault(),q=_?iE(g,_):new FormData(g),kh(o,{pending:!0,data:q,method:g.method,action:b},b,q))},currentTarget:g}]})}}for(var om=0;om<Vd.length;om++){var um=Vd[om],pw=um.toLowerCase(),gw=um[0].toUpperCase()+um.slice(1);sr(pw,"on"+gw)}sr(M1,"onAnimationEnd"),sr(P1,"onAnimationIteration"),sr(B1,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(Lk,"onTransitionRun"),sr(Dk,"onTransitionStart"),sr(Ik,"onTransitionCancel"),sr(j1,"onTransitionEnd"),fs("onMouseEnter",["mouseout","mouseover"]),fs("onMouseLeave",["mouseout","mouseover"]),fs("onPointerEnter",["pointerout","pointerover"]),fs("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var so="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(so));function aE(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var f=r[o],g=f.event;f=f.listeners;e:{var b=void 0;if(a)for(var _=f.length-1;0<=_;_--){var O=f[_],q=O.instance,ee=O.currentTarget;if(O=O.listener,q!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=ee;try{b(g)}catch(oe){Lu(oe)}g.currentTarget=null,b=q}else for(_=0;_<f.length;_++){if(O=f[_],q=O.instance,ee=O.currentTarget,O=O.listener,q!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=ee;try{b(g)}catch(oe){Lu(oe)}g.currentTarget=null,b=q}}}}function Ke(r,a){var o=a[vd];o===void 0&&(o=a[vd]=new Set);var f=r+"__bubble";o.has(f)||(sE(a,r,2,!1),o.add(f))}function cm(r,a,o){var f=0;a&&(f|=4),sE(o,r,f,a)}var yc="_reactListening"+Math.random().toString(36).slice(2);function fm(r){if(!r[yc]){r[yc]=!0,Jg.forEach(function(o){o!=="selectionchange"&&(bw.has(o)||cm(o,!1,r),cm(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[yc]||(a[yc]=!0,cm("selectionchange",!1,a))}}function sE(r,a,o,f){switch(ME(a)){case 2:var g=Yw;break;case 8:g=$w;break;default:g=Am}o=g.bind(null,a,o,r),g=void 0,!Od||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),f?g!==void 0?r.addEventListener(a,o,{capture:!0,passive:g}):r.addEventListener(a,o,!0):g!==void 0?r.addEventListener(a,o,{passive:g}):r.addEventListener(a,o,!1)}function dm(r,a,o,f,g){var b=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var O=f.stateNode.containerInfo;if(O===g)break;if(_===4)for(_=f.return;_!==null;){var q=_.tag;if((q===3||q===4)&&_.stateNode.containerInfo===g)return;_=_.return}for(;O!==null;){if(_=os(O),_===null)return;if(q=_.tag,q===5||q===6||q===26||q===27){f=b=_;continue e}O=O.parentNode}}f=f.return}f1(function(){var ee=b,oe=Nd(o),fe=[];e:{var te=H1.get(r);if(te!==void 0){var ie=Nu,Ae=r;switch(r){case"keypress":if(ku(o)===0)break e;case"keydown":case"keyup":ie=ck;break;case"focusin":Ae="focus",ie=Md;break;case"focusout":Ae="blur",ie=Md;break;case"beforeblur":case"afterblur":ie=Md;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=m1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=ZA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=hk;break;case M1:case P1:case B1:ie=tk;break;case j1:ie=pk;break;case"scroll":case"scrollend":ie=QA;break;case"wheel":ie=bk;break;case"copy":case"cut":case"paste":ie=rk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=g1;break;case"toggle":case"beforetoggle":ie=Ek}var Oe=(a&4)!==0,mt=!Oe&&(r==="scroll"||r==="scrollend"),Q=Oe?te!==null?te+"Capture":null:te;Oe=[];for(var $=ee,J;$!==null;){var ce=$;if(J=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||J===null||Q===null||(ce=wl($,Q),ce!=null&&Oe.push(lo($,ce,J))),mt)break;$=$.return}0<Oe.length&&(te=new ie(te,Ae,null,o,oe),fe.push({event:te,listeners:Oe}))}}if((a&7)===0){e:{if(te=r==="mouseover"||r==="pointerover",ie=r==="mouseout"||r==="pointerout",te&&o!==wd&&(Ae=o.relatedTarget||o.fromElement)&&(os(Ae)||Ae[ls]))break e;if((ie||te)&&(te=oe.window===oe?oe:(te=oe.ownerDocument)?te.defaultView||te.parentWindow:window,ie?(Ae=o.relatedTarget||o.toElement,ie=ee,Ae=Ae?os(Ae):null,Ae!==null&&(mt=l(Ae),Oe=Ae.tag,Ae!==mt||Oe!==5&&Oe!==27&&Oe!==6)&&(Ae=null)):(ie=null,Ae=ee),ie!==Ae)){if(Oe=m1,ce="onMouseLeave",Q="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(Oe=g1,ce="onPointerLeave",Q="onPointerEnter",$="pointer"),mt=ie==null?te:kl(ie),J=Ae==null?te:kl(Ae),te=new Oe(ce,$+"leave",ie,o,oe),te.target=mt,te.relatedTarget=J,ce=null,os(oe)===ee&&(Oe=new Oe(Q,$+"enter",Ae,o,oe),Oe.target=J,Oe.relatedTarget=mt,ce=Oe),mt=ce,ie&&Ae)t:{for(Oe=yw,Q=ie,$=Ae,J=0,ce=Q;ce;ce=Oe(ce))J++;ce=0;for(var Ne=$;Ne;Ne=Oe(Ne))ce++;for(;0<J-ce;)Q=Oe(Q),J--;for(;0<ce-J;)$=Oe($),ce--;for(;J--;){if(Q===$||$!==null&&Q===$.alternate){Oe=Q;break t}Q=Oe(Q),$=Oe($)}Oe=null}else Oe=null;ie!==null&&lE(fe,te,ie,Oe,!1),Ae!==null&&mt!==null&&lE(fe,mt,Ae,Oe,!0)}}e:{if(te=ee?kl(ee):window,ie=te.nodeName&&te.nodeName.toLowerCase(),ie==="select"||ie==="input"&&te.type==="file")var at=_1;else if(v1(te))if(C1)at=Nk;else{at=kk;var ke=Ak}else ie=te.nodeName,!ie||ie.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&kd(ee.elementType)&&(at=_1):at=wk;if(at&&(at=at(r,ee))){S1(fe,at,o,oe);break e}ke&&ke(r,te,ee),r==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Ad(te,"number",te.value)}switch(ke=ee?kl(ee):window,r){case"focusin":(v1(ke)||ke.contentEditable==="true")&&(bs=ke,zd=ee,Pl=null);break;case"focusout":Pl=zd=bs=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,D1(fe,o,oe);break;case"selectionchange":if(Ok)break;case"keydown":case"keyup":D1(fe,o,oe)}var Ue;if(Bd)e:{switch(r){case"compositionstart":var We="onCompositionStart";break e;case"compositionend":We="onCompositionEnd";break e;case"compositionupdate":We="onCompositionUpdate";break e}We=void 0}else gs?x1(r,o)&&(We="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(We="onCompositionStart");We&&(b1&&o.locale!=="ko"&&(gs||We!=="onCompositionStart"?We==="onCompositionEnd"&&gs&&(Ue=d1()):(bi=oe,Ld="value"in bi?bi.value:bi.textContent,gs=!0)),ke=Ec(ee,We),0<ke.length&&(We=new p1(We,r,null,o,oe),fe.push({event:We,listeners:ke}),Ue?We.data=Ue:(Ue=T1(o),Ue!==null&&(We.data=Ue)))),(Ue=Tk?vk(r,o):Sk(r,o))&&(We=Ec(ee,"onBeforeInput"),0<We.length&&(ke=new p1("onBeforeInput","beforeinput",null,o,oe),fe.push({event:ke,listeners:We}),ke.data=Ue)),mw(fe,r,ee,o,oe)}aE(fe,a)})}function lo(r,a,o){return{instance:r,listener:a,currentTarget:o}}function Ec(r,a){for(var o=a+"Capture",f=[];r!==null;){var g=r,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=wl(r,o),g!=null&&f.unshift(lo(r,g,b)),g=wl(r,a),g!=null&&f.push(lo(r,g,b))),r.tag===3)return f;r=r.return}return[]}function yw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function lE(r,a,o,f,g){for(var b=a._reactName,_=[];o!==null&&o!==f;){var O=o,q=O.alternate,ee=O.stateNode;if(O=O.tag,q!==null&&q===f)break;O!==5&&O!==26&&O!==27||ee===null||(q=ee,g?(ee=wl(o,b),ee!=null&&_.unshift(lo(o,ee,q))):g||(ee=wl(o,b),ee!=null&&_.push(lo(o,ee,q)))),o=o.return}_.length!==0&&r.push({event:a,listeners:_})}var Ew=/\r\n?/g,xw=/\u0000|\uFFFD/g;function oE(r){return(typeof r=="string"?r:""+r).replace(Ew,`
|
|
9
|
-
`).replace(xw,"")}function uE(r,a){return a=oE(a),oE(r)===a}function ht(r,a,o,f,g,b){switch(o){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||hs(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&hs(r,""+f);break;case"className":Su(r,"class",f);break;case"tabIndex":Su(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Su(r,o,f);break;case"style":u1(r,f,b);break;case"data":if(a!=="object"){Su(r,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Cu(""+f),r.setAttribute(o,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(o==="formAction"?(a!=="input"&&ht(r,a,"name",g.name,g,null),ht(r,a,"formEncType",g.formEncType,g,null),ht(r,a,"formMethod",g.formMethod,g,null),ht(r,a,"formTarget",g.formTarget,g,null)):(ht(r,a,"encType",g.encType,g,null),ht(r,a,"method",g.method,g,null),ht(r,a,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=Cu(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=Br);break;case"onScroll":f!=null&&Ke("scroll",r);break;case"onScrollEnd":f!=null&&Ke("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":r.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){r.removeAttribute("xlink:href");break}o=Cu(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""+f):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":f===!0?r.setAttribute(o,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,f):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(o,f):r.removeAttribute(o);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(o):r.setAttribute(o,f);break;case"popover":Ke("beforetoggle",r),Ke("toggle",r),vu(r,"popover",f);break;case"xlinkActuate":Pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Pr(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Pr(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Pr(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Pr(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":vu(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=KA.get(o)||o,vu(r,o,f))}}function hm(r,a,o,f,g,b){switch(o){case"style":u1(r,f,b);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(o=f.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof f=="string"?hs(r,f):(typeof f=="number"||typeof f=="bigint")&&hs(r,""+f);break;case"onScroll":f!=null&&Ke("scroll",r);break;case"onScrollEnd":f!=null&&Ke("scrollend",r);break;case"onClick":f!=null&&(r.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!e1.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),b=r[xn]||null,b=b!=null?b[o]:null,typeof b=="function"&&r.removeEventListener(a,b,g),typeof f=="function")){typeof b!="function"&&b!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,f,g);break e}o in r?r[o]=f:f===!0?r.setAttribute(o,""):vu(r,o,f)}}}function rn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",r),Ke("load",r);var f=!1,g=!1,b;for(b in o)if(o.hasOwnProperty(b)){var _=o[b];if(_!=null)switch(b){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,b,_,o,null)}}g&&ht(r,a,"srcSet",o.srcSet,o,null),f&&ht(r,a,"src",o.src,o,null);return;case"input":Ke("invalid",r);var O=b=_=g=null,q=null,ee=null;for(f in o)if(o.hasOwnProperty(f)){var oe=o[f];if(oe!=null)switch(f){case"name":g=oe;break;case"type":_=oe;break;case"checked":q=oe;break;case"defaultChecked":ee=oe;break;case"value":b=oe;break;case"defaultValue":O=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:ht(r,a,f,oe,o,null)}}a1(r,b,O,q,ee,_,g,!1);return;case"select":Ke("invalid",r),f=_=b=null;for(g in o)if(o.hasOwnProperty(g)&&(O=o[g],O!=null))switch(g){case"value":b=O;break;case"defaultValue":_=O;break;case"multiple":f=O;default:ht(r,a,g,O,o,null)}a=b,o=_,r.multiple=!!f,a!=null?ds(r,!!f,a,!1):o!=null&&ds(r,!!f,o,!0);return;case"textarea":Ke("invalid",r),b=g=f=null;for(_ in o)if(o.hasOwnProperty(_)&&(O=o[_],O!=null))switch(_){case"value":f=O;break;case"defaultValue":g=O;break;case"children":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:ht(r,a,_,O,o,null)}l1(r,f,g,b);return;case"option":for(q in o)o.hasOwnProperty(q)&&(f=o[q],f!=null)&&(q==="selected"?r.selected=f&&typeof f!="function"&&typeof f!="symbol":ht(r,a,q,f,o,null));return;case"dialog":Ke("beforetoggle",r),Ke("toggle",r),Ke("cancel",r),Ke("close",r);break;case"iframe":case"object":Ke("load",r);break;case"video":case"audio":for(f=0;f<so.length;f++)Ke(so[f],r);break;case"image":Ke("error",r),Ke("load",r);break;case"details":Ke("toggle",r);break;case"embed":case"source":case"link":Ke("error",r),Ke("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in o)if(o.hasOwnProperty(ee)&&(f=o[ee],f!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,ee,f,o,null)}return;default:if(kd(a)){for(oe in o)o.hasOwnProperty(oe)&&(f=o[oe],f!==void 0&&hm(r,a,oe,f,o,void 0));return}}for(O in o)o.hasOwnProperty(O)&&(f=o[O],f!=null&&ht(r,a,O,f,o,null))}function Tw(r,a,o,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,_=null,O=null,q=null,ee=null,oe=null;for(ie in o){var fe=o[ie];if(o.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":q=fe;default:f.hasOwnProperty(ie)||ht(r,a,ie,null,f,fe)}}for(var te in f){var ie=f[te];if(fe=o[te],f.hasOwnProperty(te)&&(ie!=null||fe!=null))switch(te){case"type":b=ie;break;case"name":g=ie;break;case"checked":ee=ie;break;case"defaultChecked":oe=ie;break;case"value":_=ie;break;case"defaultValue":O=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,a));break;default:ie!==fe&&ht(r,a,te,ie,f,fe)}}Cd(r,_,O,q,ee,oe,b,g);return;case"select":ie=_=O=te=null;for(b in o)if(q=o[b],o.hasOwnProperty(b)&&q!=null)switch(b){case"value":break;case"multiple":ie=q;default:f.hasOwnProperty(b)||ht(r,a,b,null,f,q)}for(g in f)if(b=f[g],q=o[g],f.hasOwnProperty(g)&&(b!=null||q!=null))switch(g){case"value":te=b;break;case"defaultValue":O=b;break;case"multiple":_=b;default:b!==q&&ht(r,a,g,b,f,q)}a=O,o=_,f=ie,te!=null?ds(r,!!o,te,!1):!!f!=!!o&&(a!=null?ds(r,!!o,a,!0):ds(r,!!o,o?[]:"",!1));return;case"textarea":ie=te=null;for(O in o)if(g=o[O],o.hasOwnProperty(O)&&g!=null&&!f.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ht(r,a,O,null,f,g)}for(_ in f)if(g=f[_],b=o[_],f.hasOwnProperty(_)&&(g!=null||b!=null))switch(_){case"value":te=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==b&&ht(r,a,_,g,f,b)}s1(r,te,ie);return;case"option":for(var Ae in o)te=o[Ae],o.hasOwnProperty(Ae)&&te!=null&&!f.hasOwnProperty(Ae)&&(Ae==="selected"?r.selected=!1:ht(r,a,Ae,null,f,te));for(q in f)te=f[q],ie=o[q],f.hasOwnProperty(q)&&te!==ie&&(te!=null||ie!=null)&&(q==="selected"?r.selected=te&&typeof te!="function"&&typeof te!="symbol":ht(r,a,q,te,f,ie));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Oe in o)te=o[Oe],o.hasOwnProperty(Oe)&&te!=null&&!f.hasOwnProperty(Oe)&&ht(r,a,Oe,null,f,te);for(ee in f)if(te=f[ee],ie=o[ee],f.hasOwnProperty(ee)&&te!==ie&&(te!=null||ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:ht(r,a,ee,te,f,ie)}return;default:if(kd(a)){for(var mt in o)te=o[mt],o.hasOwnProperty(mt)&&te!==void 0&&!f.hasOwnProperty(mt)&&hm(r,a,mt,void 0,f,te);for(oe in f)te=f[oe],ie=o[oe],!f.hasOwnProperty(oe)||te===ie||te===void 0&&ie===void 0||hm(r,a,oe,te,f,ie);return}}for(var Q in o)te=o[Q],o.hasOwnProperty(Q)&&te!=null&&!f.hasOwnProperty(Q)&&ht(r,a,Q,null,f,te);for(fe in f)te=f[fe],ie=o[fe],!f.hasOwnProperty(fe)||te===ie||te==null&&ie==null||ht(r,a,fe,te,f,ie)}function cE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vw(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,o=performance.getEntriesByType("resource"),f=0;f<o.length;f++){var g=o[f],b=g.transferSize,_=g.initiatorType,O=g.duration;if(b&&O&&cE(_)){for(_=0,O=g.responseEnd,f+=1;f<o.length;f++){var q=o[f],ee=q.startTime;if(ee>O)break;var oe=q.transferSize,fe=q.initiatorType;oe&&cE(fe)&&(q=q.responseEnd,_+=oe*(q<O?1:(O-ee)/(q-ee)))}if(--f,a+=8*(b+_)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var mm=null,pm=null;function xc(r){return r.nodeType===9?r:r.ownerDocument}function fE(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dE(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function gm(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var bm=null;function Sw(){var r=window.event;return r&&r.type==="popstate"?r===bm?!1:(bm=r,!0):(bm=null,!1)}var hE=typeof setTimeout=="function"?setTimeout:void 0,_w=typeof clearTimeout=="function"?clearTimeout:void 0,mE=typeof Promise=="function"?Promise:void 0,Cw=typeof queueMicrotask=="function"?queueMicrotask:typeof mE<"u"?function(r){return mE.resolve(null).then(r).catch(Aw)}:hE;function Aw(r){setTimeout(function(){throw r})}function Ii(r){return r==="head"}function pE(r,a){var o=a,f=0;do{var g=o.nextSibling;if(r.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"||o==="/&"){if(f===0){r.removeChild(g),Vs(a);return}f--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")f++;else if(o==="html")oo(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,oo(o);for(var b=o.firstChild;b;){var _=b.nextSibling,O=b.nodeName;b[Al]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=_}}else o==="body"&&oo(r.ownerDocument.body);o=g}while(o);Vs(a)}function gE(r,a){var o=r;r=0;do{var f=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),f&&f.nodeType===8)if(o=f.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=f}while(o)}function ym(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":ym(o),Sd(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function kw(r,a,o,f){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[Al])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(b=r.getAttribute("rel"),b==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(b!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(b=r.getAttribute("src"),(b!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===b)return r}else return r;if(r=Jn(r.nextSibling),r===null)break}return null}function ww(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Jn(r.nextSibling),r===null))return null;return r}function bE(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Jn(r.nextSibling),r===null))return null;return r}function Em(r){return r.data==="$?"||r.data==="$~"}function xm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Nw(r,a){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||o.readyState!=="loading")a();else{var f=function(){a(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Jn(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Tm=null;function yE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(a===0)return Jn(r.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}r=r.nextSibling}return null}function EE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return r;a--}else o!=="/$"&&o!=="/&"||a++}r=r.previousSibling}return null}function xE(r,a,o){switch(a=xc(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function oo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Sd(r)}var er=new Map,TE=new Set;function Tc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Jr=X.d;X.d={f:Rw,r:Ow,D:Lw,C:Dw,L:Iw,m:Mw,X:Bw,S:Pw,M:jw};function Rw(){var r=Jr.f(),a=dc();return r||a}function Ow(r){var a=us(r);a!==null&&a.tag===5&&a.type==="form"?jb(a):Jr.r(r)}var zs=typeof document>"u"?null:document;function vE(r,a,o){var f=zs;if(f&&typeof a=="string"&&a){var g=$n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),TE.has(g)||(TE.add(g),r={rel:r,crossOrigin:o,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),rn(a,"link",r),$t(a),f.head.appendChild(a)))}}function Lw(r){Jr.D(r),vE("dns-prefetch",r,null)}function Dw(r,a){Jr.C(r,a),vE("preconnect",r,a)}function Iw(r,a,o){Jr.L(r,a,o);var f=zs;if(f&&r&&a){var g='link[rel="preload"][as="'+$n(a)+'"]';a==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+$n(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+$n(o.imageSizes)+'"]')):g+='[href="'+$n(r)+'"]';var b=g;switch(a){case"style":b=Fs(r);break;case"script":b=qs(r)}er.has(b)||(r=p({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),er.set(b,r),f.querySelector(g)!==null||a==="style"&&f.querySelector(uo(b))||a==="script"&&f.querySelector(co(b))||(a=f.createElement("link"),rn(a,"link",r),$t(a),f.head.appendChild(a)))}}function Mw(r,a){Jr.m(r,a);var o=zs;if(o&&r){var f=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+$n(f)+'"][href="'+$n(r)+'"]',b=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=qs(r)}if(!er.has(b)&&(r=p({rel:"modulepreload",href:r},a),er.set(b,r),o.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(co(b)))return}f=o.createElement("link"),rn(f,"link",r),$t(f),o.head.appendChild(f)}}}function Pw(r,a,o){Jr.S(r,a,o);var f=zs;if(f&&r){var g=cs(f).hoistableStyles,b=Fs(r);a=a||"default";var _=g.get(b);if(!_){var O={loading:0,preload:null};if(_=f.querySelector(uo(b)))O.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},o),(o=er.get(b))&&vm(r,o);var q=_=f.createElement("link");$t(q),rn(q,"link",r),q._p=new Promise(function(ee,oe){q.onload=ee,q.onerror=oe}),q.addEventListener("load",function(){O.loading|=1}),q.addEventListener("error",function(){O.loading|=2}),O.loading|=4,vc(_,a,f)}_={type:"stylesheet",instance:_,count:1,state:O},g.set(b,_)}}}function Bw(r,a){Jr.X(r,a);var o=zs;if(o&&r){var f=cs(o).hoistableScripts,g=qs(r),b=f.get(g);b||(b=o.querySelector(co(g)),b||(r=p({src:r,async:!0},a),(a=er.get(g))&&Sm(r,a),b=o.createElement("script"),$t(b),rn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function jw(r,a){Jr.M(r,a);var o=zs;if(o&&r){var f=cs(o).hoistableScripts,g=qs(r),b=f.get(g);b||(b=o.querySelector(co(g)),b||(r=p({src:r,async:!0,type:"module"},a),(a=er.get(g))&&Sm(r,a),b=o.createElement("script"),$t(b),rn(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function SE(r,a,o,f){var g=(g=he.current)?Tc(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Fs(o.href),o=cs(g).hoistableStyles,f=o.get(a),f||(f={type:"style",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Fs(o.href);var b=cs(g).hoistableStyles,_=b.get(r);if(_||(g=g.ownerDocument||g,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(r,_),(b=g.querySelector(uo(r)))&&!b._p&&(_.instance=b,_.state.loading=5),er.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},er.set(r,o),b||Hw(g,r,o,_.state))),a&&f===null)throw Error(i(528,""));return _}if(a&&f!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=qs(o),o=cs(g).hoistableScripts,f=o.get(a),f||(f={type:"script",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Fs(r){return'href="'+$n(r)+'"'}function uo(r){return'link[rel="stylesheet"]['+r+"]"}function _E(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function Hw(r,a,o,f){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=r.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),rn(a,"link",o),$t(a),r.head.appendChild(a))}function qs(r){return'[src="'+$n(r)+'"]'}function co(r){return"script[async]"+r}function CE(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var f=r.querySelector('style[data-href~="'+$n(o.href)+'"]');if(f)return a.instance=f,$t(f),f;var g=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),$t(f),rn(f,"style",g),vc(f,o.precedence,r),a.instance=f;case"stylesheet":g=Fs(o.href);var b=r.querySelector(uo(g));if(b)return a.state.loading|=4,a.instance=b,$t(b),b;f=_E(o),(g=er.get(g))&&vm(f,g),b=(r.ownerDocument||r).createElement("link"),$t(b);var _=b;return _._p=new Promise(function(O,q){_.onload=O,_.onerror=q}),rn(b,"link",f),a.state.loading|=4,vc(b,o.precedence,r),a.instance=b;case"script":return b=qs(o.src),(g=r.querySelector(co(b)))?(a.instance=g,$t(g),g):(f=o,(g=er.get(b))&&(f=p({},o),Sm(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),$t(g),rn(g,"link",f),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,vc(f,o.precedence,r));return a.instance}function vc(r,a,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,b=g,_=0;_<f.length;_++){var O=f[_];if(O.dataset.precedence===a)b=O;else if(b!==g)break}b?b.parentNode.insertBefore(r,b.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function vm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Sm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Sc=null;function AE(r,a,o){if(Sc===null){var f=new Map,g=Sc=new Map;g.set(o,f)}else g=Sc,f=g.get(o),f||(f=new Map,g.set(o,f));if(f.has(r))return f;for(f.set(r,null),o=o.getElementsByTagName(r),g=0;g<o.length;g++){var b=o[g];if(!(b[Al]||b[Jt]||r==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var _=b.getAttribute(a)||"";_=r+_;var O=f.get(_);O?O.push(b):f.set(_,[b])}}return f}function kE(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Uw(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function wE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function zw(r,a,o,f){if(o.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Fs(f.href),b=a.querySelector(uo(g));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=_c.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=b,$t(b);return}b=a.ownerDocument||a,f=_E(f),(g=er.get(g))&&vm(f,g),b=b.createElement("link"),$t(b);var _=b;_._p=new Promise(function(O,q){_.onload=O,_.onerror=q}),rn(b,"link",f),o.instance=b}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=_c.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var _m=0;function Fw(r,a){return r.stylesheets&&r.count===0&&Ac(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var f=setTimeout(function(){if(r.stylesheets&&Ac(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+a);0<r.imgBytes&&_m===0&&(_m=62500*vw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ac(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>_m?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(f),clearTimeout(g)}}:null}function _c(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ac(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Cc=null;function Ac(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Cc=new Map,a.forEach(qw,r),Cc=null,_c.call(r))}function qw(r,a){if(!(a.state.loading&4)){var o=Cc.get(r);if(o)var f=o.get(null);else{o=new Map,Cc.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var _=g[b];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(o.set(_.dataset.precedence,_),f=_)}f&&o.set(null,f)}g=a.instance,_=g.getAttribute("data-precedence"),b=o.get(_)||f,b===f&&o.set(null,g),o.set(_,g),this.count++,f=_c.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),b?b.parentNode.insertBefore(g,b.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var fo={$$typeof:w,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function Vw(r,a,o,f,g,b,_,O,q){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ed(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ed(0),this.hiddenUpdates=Ed(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function NE(r,a,o,f,g,b,_,O,q,ee,oe,fe){return r=new Vw(r,a,o,_,q,ee,oe,fe,O),a=1,b===!0&&(a|=24),b=Mn(3,null,null,a),r.current=b,b.stateNode=r,a=rh(),a.refCount++,r.pooledCache=a,a.refCount++,b.memoizedState={element:f,isDehydrated:o,cache:a},lh(b),r}function RE(r){return r?(r=xs,r):xs}function OE(r,a,o,f,g,b){g=RE(g),f.context===null?f.context=g:f.pendingContext=g,f=Si(a),f.payload={element:o},b=b===void 0?null:b,b!==null&&(f.callback=b),o=_i(r,f,a),o!==null&&(An(o,r,a),ql(o,r,a))}function LE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function Cm(r,a){LE(r,a),(r=r.alternate)&&LE(r,a)}function DE(r){if(r.tag===13||r.tag===31){var a=ma(r,67108864);a!==null&&An(a,r,67108864),Cm(r,67108864)}}function IE(r){if(r.tag===13||r.tag===31){var a=Un();a=xd(a);var o=ma(r,a);o!==null&&An(o,r,a),Cm(r,a)}}var kc=!0;function Yw(r,a,o,f){var g=V.T;V.T=null;var b=X.p;try{X.p=2,Am(r,a,o,f)}finally{X.p=b,V.T=g}}function $w(r,a,o,f){var g=V.T;V.T=null;var b=X.p;try{X.p=8,Am(r,a,o,f)}finally{X.p=b,V.T=g}}function Am(r,a,o,f){if(kc){var g=km(f);if(g===null)dm(r,a,f,wc,o),PE(r,f);else if(Kw(g,r,a,o,f))f.stopPropagation();else if(PE(r,f),a&4&&-1<Gw.indexOf(r)){for(;g!==null;){var b=us(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var _=ua(b.pendingLanes);if(_!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;_;){var q=1<<31-bt(_);O.entanglements[1]|=q,_&=~q}xr(b),(lt&6)===0&&(cc=it()+500,ao(0))}}break;case 31:case 13:O=ma(b,2),O!==null&&An(O,b,2),dc(),Cm(b,2)}if(b=km(f),b===null&&dm(r,a,f,wc,o),b===g)break;g=b}g!==null&&f.stopPropagation()}else dm(r,a,f,null,o)}}function km(r){return r=Nd(r),wm(r)}var wc=null;function wm(r){if(wc=null,r=os(r),r!==null){var a=l(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=u(a),r!==null)return r;r=null}else if(o===31){if(r=c(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return wc=r,null}function ME(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ln()){case ue:return 2;case xe:return 8;case De:case $e:return 32;case ot:return 268435456;default:return 32}default:return 32}}var Nm=!1,Mi=null,Pi=null,Bi=null,ho=new Map,mo=new Map,ji=[],Gw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function PE(r,a){switch(r){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":Pi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":ho.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":mo.delete(a.pointerId)}}function po(r,a,o,f,g,b){return r===null||r.nativeEvent!==b?(r={blockedOn:a,domEventName:o,eventSystemFlags:f,nativeEvent:b,targetContainers:[g]},a!==null&&(a=us(a),a!==null&&DE(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Kw(r,a,o,f,g){switch(a){case"focusin":return Mi=po(Mi,r,a,o,f,g),!0;case"dragenter":return Pi=po(Pi,r,a,o,f,g),!0;case"mouseover":return Bi=po(Bi,r,a,o,f,g),!0;case"pointerover":var b=g.pointerId;return ho.set(b,po(ho.get(b)||null,r,a,o,f,g)),!0;case"gotpointercapture":return b=g.pointerId,mo.set(b,po(mo.get(b)||null,r,a,o,f,g)),!0}return!1}function BE(r){var a=os(r.target);if(a!==null){var o=l(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){r.blockedOn=a,Wg(r.priority,function(){IE(o)});return}}else if(a===31){if(a=c(o),a!==null){r.blockedOn=a,Wg(r.priority,function(){IE(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Nc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=km(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);wd=f,o.target.dispatchEvent(f),wd=null}else return a=us(o),a!==null&&DE(a),r.blockedOn=o,!1;a.shift()}return!0}function jE(r,a,o){Nc(r)&&o.delete(a)}function Xw(){Nm=!1,Mi!==null&&Nc(Mi)&&(Mi=null),Pi!==null&&Nc(Pi)&&(Pi=null),Bi!==null&&Nc(Bi)&&(Bi=null),ho.forEach(jE),mo.forEach(jE)}function Rc(r,a){r.blockedOn===a&&(r.blockedOn=null,Nm||(Nm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Xw)))}var Oc=null;function HE(r){Oc!==r&&(Oc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Oc===r&&(Oc=null);for(var a=0;a<r.length;a+=3){var o=r[a],f=r[a+1],g=r[a+2];if(typeof f!="function"){if(wm(f||o)===null)continue;break}var b=us(o);b!==null&&(r.splice(a,3),a-=3,kh(b,{pending:!0,data:g,method:o.method,action:f},f,g))}}))}function Vs(r){function a(q){return Rc(q,r)}Mi!==null&&Rc(Mi,r),Pi!==null&&Rc(Pi,r),Bi!==null&&Rc(Bi,r),ho.forEach(a),mo.forEach(a);for(var o=0;o<ji.length;o++){var f=ji[o];f.blockedOn===r&&(f.blockedOn=null)}for(;0<ji.length&&(o=ji[0],o.blockedOn===null);)BE(o),o.blockedOn===null&&ji.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(f=0;f<o.length;f+=3){var g=o[f],b=o[f+1],_=g[xn]||null;if(typeof b=="function")_||HE(o);else if(_){var O=null;if(b&&b.hasAttribute("formAction")){if(g=b,_=b[xn]||null)O=_.formAction;else if(wm(g)!==null)continue}else O=_.action;typeof O=="function"?o[f+1]=O:(o.splice(f,3),f-=3),HE(o)}}}function UE(){function r(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(_){return g=_})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),f||setTimeout(o,20)}function o(){if(!f&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){f=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Rm(r){this._internalRoot=r}Lc.prototype.render=Rm.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,f=Un();OE(o,f,r,a,null,null)},Lc.prototype.unmount=Rm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;OE(r.current,2,null,r,null,null),dc(),a[ls]=null}};function Lc(r){this._internalRoot=r}Lc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Qg();r={blockedOn:null,target:r,priority:a};for(var o=0;o<ji.length&&a!==0&&a<ji[o].priority;o++);ji.splice(o,0,r),o===0&&BE(r)}};var zE=t.version;if(zE!=="19.2.8")throw Error(i(527,zE,"19.2.8"));X.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var Qw={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dc.isDisabled&&Dc.supportsFiber)try{fn=Dc.inject(Qw),Ft=Dc}catch{}}return bo.createRoot=function(r,a){if(!s(r))throw Error(i(299));var o=!1,f="",g=Kb,b=Xb,_=Qb;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError)),a=NE(r,1,!1,null,null,o,f,null,g,b,_,UE),r[ls]=a.current,fm(r),new Rm(a)},bo.hydrateRoot=function(r,a,o){if(!s(r))throw Error(i(299));var f=!1,g="",b=Kb,_=Xb,O=Qb,q=null;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.formState!==void 0&&(q=o.formState)),a=NE(r,1,!0,a,o??null,f,g,q,b,_,O,UE),a.context=RE(null),o=a.current,f=Un(),f=xd(f),g=Si(f),g.callback=null,_i(o,g,f),o=f,a.current.lanes=o,Cl(a,o),xr(a),r[ls]=a.current,fm(r),new Lc(a)},bo.version="19.2.8",bo}var ex;function sN(){if(ex)return Im.exports;ex=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Im.exports=aN(),Im.exports}var lN=sN();const oN=!1;var av=C.useLayoutEffect;function uN(e,t,n){C.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!="function")return()=>t();const i=new IntersectionObserver(s=>{t(s.pop())},{rootMargin:"100px"});return i.observe(e.current),()=>{i.disconnect(),t()}},[t,n,e])}function cN(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current,[]),t}function Vo(e){return e[e.length-1]}function ol(e,t){return typeof e=="function"?e(t):e}const sv=Object.prototype.hasOwnProperty,fN=Object.prototype.propertyIsEnumerable;function lv(e){for(const t in e)if(sv.call(e,t))return!0;return!1}const dN=()=>Object.create(null),ka=(e,t)=>Ba(e,t,dN);function Ba(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,l=rx(e)&&rx(s);if(!l&&!(xf(e)&&xf(s)))return s;const u=l?e:tx(e);if(!u)return s;const c=l?s:tx(s);if(!c)return s;const d=u.length,h=c.length,m=l?new Array(h):n();let p=0;for(let E=0;E<h;E++){const y=l?E:c[E],v=e[y],S=s[y];if(v===S){m[y]=v,(l?E<d:sv.call(e,y))&&p++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[y]=S;continue}const A=Ba(v,S,n,i+1);m[y]=A,A===v&&p++}return d===h&&p===d?e:m}function tx(e){const t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;const n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(const i of n){if(!fN.call(e,i))return!1;t.push(i)}return t}function xf(e){if(!nx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!nx(n)||!n.hasOwnProperty("isPrototypeOf"))}function nx(e){return Object.prototype.toString.call(e)==="[object Object]"}function rx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!Qi(e[i],t[i],n))return!1;return!0}if(xf(e)&&xf(t)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const u in t)if((!i||t[u]!==void 0)&&!Qi(e[u],t[u],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let l=0;for(const u in t)if((!i||t[u]!==void 0)&&(l++,l>s||!Qi(e[u],t[u],n)))return!1;return s===l}return!1}const hN=/[\x00-\x1f\x7f"<>`{}]/g;function mN(e){return e.replace(hN,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function ix(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,n=>{try{return decodeURI(n)}catch{return n}})}return mN(t)}const pN=["http:","https:","mailto:","tel:"];function Tf(e,t){if(!e)return!1;try{const n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function yo(e){if(!e)return{path:e,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith("//"))return{path:e,handledProtocolRelativeURL:!1};const t=/%25|%5C/gi;let n=0,i="",s;for(;(s=t.exec(e))!==null;)i+=ix(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+ix(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function gN(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function bN(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function R0(){throw new Error("Invariant failed")}function vf(e){const t=new Map;let n,i;const s=l=>{l.next&&(l.prev?(l.prev.next=l.next,l.next.prev=l.prev,l.next=void 0,i&&(i.next=l,l.prev=i)):(l.next.prev=void 0,n=l.next,l.next=void 0,i&&(l.prev=i,i.next=l)),i=l)};return{get(l){const u=t.get(l);if(u)return s(u),u.value},set(l,u){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===i&&(i=void 0)}const c=t.get(l);if(c)c.value=u,s(c);else{const d={key:l,value:u,prev:i};i&&(i.next=d),i=d,n||(n=d),t.set(l,d)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ki=4,ov=5;function uv(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,l=e.substring(t,s);if(!l||!l.includes("$"))return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(l==="$"){const d=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(l.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=l.indexOf("{");let c;if(u!==-1&&u+1<l.length&&(c=l.indexOf("}",u))!==-1){const d=l.charCodeAt(u+1);if(d===45){if(u+2<l.length&&l.charCodeAt(u+2)===36){const h=u+3,m=c;if(h<m)return n[0]=3,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=s,n}}else if(d===36){const h=u+1,m=u+2;return m===c?(n[0]=2,n[1]=t+u,n[2]=t+h,n[3]=t+m,n[4]=t+c+1,n[5]=e.length,n):(n[0]=1,n[1]=t+u,n[2]=t+m,n[3]=t+c,n[4]=t+c+1,n[5]=s,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function qf(e,t,n,i,s,l,u,c){c?.(n);let d=i;{const h=n.fullPath??n.from,m=n.options,p=h.length,E=m?.caseSensitive??e,y=m?.params?.parse??m?.parseParams;for(;d<p;){const S=uv(h,d,t);let A;const k=d,N=S[5];d=N+1,l++;const w=S[0];switch(w){case 0:{const D=h.substring(S[2],S[3]);let z=D,L;E?L=s.static??=new Map:(z=D.toLowerCase(),L=s.staticInsensitive??=new Map);const P=L.get(z);if(P)A=P;else{const H=nl(h);H.parent=s,H.depth=l,A=H,L.set(z,H)}break}case 1:case 3:case 2:{let D=h.substring(k,S[1]),z=h.substring(S[4],N);const L=E&&!!(D||z);E||(D=D.toLowerCase(),z=z.toLowerCase());const P=w===1?s.dynamic:w===3?s.optional:s.wildcard,H=w!==2&&!y&&P?.find(G=>!G.parse&&G.caseSensitive===L&&G.prefix===D&&G.suffix===z);if(H)A=H;else{const G=yN(w,h,L,D,z);A=G,G.parent=s,G.depth=l;let j;w===1?j=s.dynamic??=[]:w===3?j=s.optional??=[]:j=s.wildcard??=[],j.push(G),j.length===2&&u?.push(j)}break}}s=A}if(y&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=nl(h);S.kind=ov,S.parent=s,l++,S.depth=l,s.pathless??=[],s.pathless.push(S),s=S}const v=(n.path||!n.children)&&!n.isRoot;if(v&&h.endsWith("/")){const S=nl(h);S.kind=Ki,S.parent=s,l++,S.depth=l,s.index=S,s=S}s.parse=y??null,s.priority=m?.params?.priority??0,v&&!s.route&&(s.route=n,s.fullPath=h)}if(n.children)for(const h of n.children)qf(e,t,h,d,s,l,u,c)}function cv(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function nl(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function yN(e,t,n,i,s){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:i,suffix:s}}function EN(e,t){const n=nl("/"),i=new Uint16Array(6),s=[];for(const l of e)qf(!1,i,l,1,n,0,s);for(const l of s)l.sort(cv);t.masksTree=n,t.flatCache=vf(1e3)}function xN(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const i=O0(e,t.masksTree);return t.flatCache.set(e,i),i}function TN(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let u=s.singleCache.get(l);return u||(u=nl("/"),qf(t,new Uint16Array(6),{from:e},1,u,0),s.singleCache.set(l,u)),O0(i,u,n)}function vN(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||="/";let l;try{l=O0(e,t.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=dv(l.route)),t.matchCache.set(i,l),l}function SN(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function _N(e,t=!1,n){const i=nl(e.fullPath),s=new Uint16Array(6),l=[],u={},c={};let d=0;qf(t,s,e,1,i,0,l,h=>{if(n?.(h,d),h.id in u&&R0(),u[h.id]=h,d!==0&&h.path){const m=SN(h.fullPath);(!c[m]||h.fullPath.endsWith("/"))&&(c[m]=h)}d++});for(const h of l)h.sort(cv);return{processedTree:{segmentTree:i,singleCache:vf(1e3),matchCache:vf(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function O0(e,t,n=!1){const i=e.split("/"),s=AN(e,i,t,n);if(!s)return null;const[l]=fv(e,i,s);return{route:s.node.route,rawParams:l}}function fv(e,t,n){const i=CN(n.node);let s=null;const l=Object.create(null);let u=n.extract?.part??0,c=n.extract?.node??0,d=n.extract?.path??0,h=n.extract?.segment??0;for(;c<i.length;u++,c++,d++,h++){const m=i[c];if(m.kind===Ki)break;if(m.kind===ov){h--,u--,d--;continue}const p=t[u],E=d;if(p&&(d+=p.length),m.kind===1){s??=n.node.fullPath.split("/");const y=s[h],v=m.prefix.length;if(y.charCodeAt(v)===123){const S=m.suffix.length,A=y.substring(v+2,y.length-S-1),k=p.substring(v,p.length-S);l[A]=decodeURIComponent(k)}else{const S=y.substring(1);l[S]=decodeURIComponent(p)}}else if(m.kind===3){if(n.skipped&1<<c){u--,d=E-1;continue}s??=n.node.fullPath.split("/");const y=s[h],v=m.prefix.length,S=m.suffix.length,A=y.substring(v+3,y.length-S-1),k=m.suffix||m.prefix?p.substring(v,p.length-S):p;k&&(l[A]=decodeURIComponent(k))}else if(m.kind===2){const y=m,v=e.substring(E+y.prefix.length,e.length-y.suffix.length),S=decodeURIComponent(v);l["*"]=S,l._splat=S;break}}return n.rawParams&&Object.assign(l,n.rawParams),[l,{part:u,node:c,path:d,segment:h}]}function dv(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function CN(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function AN(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!Vo(t),l=s&&e!=="/",u=t.length-(s?1:0),c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let d=null,h=null;for(;c.length;){const m=c.pop(),{node:p,index:E,skipped:y,statics:v,dynamics:S,optionals:A}=m;let{extract:k,rawParams:N}=m;if(p.kind===2&&p.route&&!Mc(h,m))continue;if(p.parse){if(!ax(e,t,m))continue;N=m.rawParams,k=m.extract}i&&p.route&&p.kind!==Ki&&Mc(d,m)&&(d=m);const w=E===u;if(w&&(p.route&&(!l||p.kind===Ki||p.kind===2)&&Mc(h,m)&&(h=m),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const D=w?void 0:t[E];let z;if(w&&p.index){const L={node:p.index,index:E,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N};let P=!0;if(p.index.parse&&(ax(e,t,L)||(P=!1)),P){if(!S&&!A&&!y&&kN(v,u))return L;Mc(h,L)&&(h=L)}}if(p.wildcard)for(let L=p.wildcard.length-1;L>=0;L--){const P=p.wildcard[L],{prefix:H,suffix:G}=P;if(!(H&&(w||!(P.caseSensitive?D:z??=D.toLowerCase()).startsWith(H)))){if(G){if(w)continue;const j=t.slice(E).join("/"),Y=j.slice(-G.length);if((P.caseSensitive?Y:Y.toLowerCase())!==G||j.length-G.length<H.length)continue}c.push({node:P,index:u,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(p.optional){const L=y|1<<p.depth+1;for(let P=p.optional.length-1;P>=0;P--){const H=p.optional[P];c.push({node:H,index:E,skipped:L,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w)for(let P=p.optional.length-1;P>=0;P--){const H=p.optional[P],{prefix:G,suffix:j}=H;if(G||j){const Y=H.caseSensitive?D:z??=D.toLowerCase();if(G&&!Y.startsWith(G)||j&&Y.indexOf(j,Y.length-j.length)<G.length)continue}c.push({node:H,index:E+1,skipped:y,statics:v,dynamics:S,optionals:A+Ic(u,E),extract:k,rawParams:N})}}if(!w&&p.dynamic&&D)for(let L=p.dynamic.length-1;L>=0;L--){const P=p.dynamic[L],{prefix:H,suffix:G}=P;if(H||G){const j=P.caseSensitive?D:z??=D.toLowerCase();if(H&&!j.startsWith(H)||G&&j.indexOf(G,j.length-G.length)<H.length)continue}c.push({node:P,index:E+1,skipped:y,statics:v,dynamics:S+Ic(u,E),optionals:A,extract:k,rawParams:N})}if(!w&&p.staticInsensitive){const L=p.staticInsensitive.get(z??=D.toLowerCase());L&&c.push({node:L,index:E+1,skipped:y,statics:v+Ic(u,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w&&p.static){const L=p.static.get(D);L&&c.push({node:L,index:E+1,skipped:y,statics:v+Ic(u,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(p.pathless)for(let L=p.pathless.length-1;L>=0;L--){const P=p.pathless[L];c.push({node:P,index:E,skipped:y,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(h)return h;if(i&&d){let m=d.index;for(let E=0;E<d.index;E++)m+=t[E].length;const p=m===e.length?"/":e.slice(m);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(p),d}return null}function Ic(e,t){return 2**(e-t-1)}function kN(e,t){return e===2**(t-1)-1}function ax(e,t,n){let i,s;try{[i,s]=fv(e,t,n)}catch{return null}if(n.rawParams=i,n.extract=s,!n.node.parse)return!0;try{if(n.node.parse(i)===!1)return null}catch{}return!0}function Mc(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ki)>(e.node.kind===Ki)||t.node.kind===Ki==(e.node.kind===Ki)&&t.node.depth>e.node.depth))):!0}function sf(e){return lf(e.filter(t=>t!==void 0).join("/"))}function lf(e){return e.replace(/\/{2,}/g,"/")}function hv(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function ri(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function mv(e){return ri(hv(e))}function Sf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function wN(e,t,n){return Sf(e,n)===Sf(t,n)}function NN({base:e,to:t,trailingSlash:n="never",cache:i}){if(t.includes("//")&&(t=lf(t)),t.startsWith("/"))return t.length===1||n==="preserve"?t:n==="always"?t.endsWith("/")?t:`${t}/`:t.endsWith("/")?t.slice(0,-1):t;const s=t===".";let l;if(i){l=s?e:e+"\0"+t;const h=i.get(l);if(h)return h}let u;if(s)u=e.split("/");else{for(e.includes("//")&&(e=lf(e)),u=e.split("/");u.length>1&&Vo(u)==="";)u.pop();const h=t.split("/");for(let m=0,p=h.length;m<p;m++){const E=h[m];E===""?m?m===p-1&&u.push(E):u=[E]:E===".."?u.length>1?u.pop():u=[""]:E==="."||u.push(E)}}u.length>1&&(Vo(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));const c=u.join("/"),d=(s?lf(c):c)||"/";return l&&i&&i.set(l,d),d}function RN(e){const t=new Map(e.map(s=>[encodeURIComponent(s),s])),n=Array.from(t.keys()).map(s=>s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),i=new RegExp(n,"g");return s=>s.replace(i,l=>t.get(l)??l)}function jm(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(i)?i:i.split("/").map(s=>lx(s,n)).join("/"):lx(i,n)}function sx({path:e,params:t,decoder:n,...i}){let s=!1;const l=Object.create(null);if(!e||e==="/")return{interpolatedPath:"/",usedParams:l,isMissingParams:s};if(!e.includes("$"))return{interpolatedPath:e,usedParams:l,isMissingParams:s};const u=e.length;let c=0,d,h="";for(;c<u;){const m=c;d=uv(e,m,d);const p=d[5];if(c=p+1,m===p)continue;const E=d[0];if(E===0){h+="/"+e.substring(m,p);continue}if(E===2){const y=t._splat;l._splat=y,l["*"]=y;const v=e.substring(m,d[1]),S=e.substring(d[4],p);if(!y){s=!0,(v||S)&&(h+="/"+v+S);continue}const A=jm("_splat",t,n);h+="/"+v+A+S;continue}if(E===1){const y=e.substring(d[2],d[3]);!s&&!(y in t)&&(s=!0),l[y]=t[y];const v=e.substring(m,d[1]),S=e.substring(d[4],p),A=jm(y,t,n)??"undefined";h+="/"+v+A+S;continue}if(E===3){const y=e.substring(d[2],d[3]),v=t[y];if(v==null)continue;l[y]=v;const S=e.substring(m,d[1]),A=e.substring(d[4],p),k=jm(y,t,n)??"";h+="/"+S+k+A;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:s}}function lx(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function ul(e){return e?.isNotFound===!0}function ON(){try{return sessionStorage}catch{return}}const LN="tsr-scroll-restoration-v1_3",pv=ON();function DN(){try{return JSON.parse(pv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function IN(){try{pv?.setItem(LN,JSON.stringify(Ws))}catch{}}const Ws=DN(),ox="data-scroll-restoration-id",MN=e=>e.state.__TSR_key||e.href;function PN(e){const t=e.getAttribute(ox);if(t)return`[${ox}="${t}"]`;let n="",i=e,s;for(;s=i.parentNode;){let l=1,u=i;for(;u=u.previousElementSibling;)l++;const c=`${i.localName}:nth-child(${l})`;n=n?`${c} > ${n}`:c,i=s}return n}let Pc=!1;const of="window";function Np(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function ux(e){const t=new Set;for(const n of e){if(n===of)continue;const i=Np(n);i&&t.add(i)}return t}function BN(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||MN,l=new Set,u=c=>{const d=Ws[c]||={};for(const h of l)h===document?d[of]={scrollX,scrollY}:h.isConnected&&(d[PN(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};n&&!i.restoration&&(i.restoration=!0,Pc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Pc||l.add(c.target)},!0),e.subscribe("onBeforeLoad",c=>{c.fromLocation&&u(s(c.fromLocation)),l.clear()}),addEventListener("pagehide",()=>{u(s(e.stores.resolvedLocation.get()??e.stores.location.get())),IN()})),!i.reset&&(i.reset=!0,e.subscribe("onRendered",c=>{const d=e.options.scrollRestorationBehavior,h=e.options.scrollToTopSelectors,m=i.next,p=i.hash;let E;if(l.clear(),i.next=!0,i.hash=!1,typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return;const y=s(c.toLocation),v=c.fromLocation&&s(c.fromLocation);if(i.restoring&&v&&v!==y){const S=Ws[v];if(S){let A=Ws[y];for(const k in S){if(k===of){if(m)continue}else{const N=Np(k);if(!N||m&&h&&(E??=ux(h),E.has(N)))continue}A||(A=Ws[y]={}),A[k]??=S[k]}}}Pc=!0;try{const S=c.toLocation.hash,A=c.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(m){!S&&h&&(E??=ux(h));const N=S&&A&&p,w=i.restoring?Ws[y]:void 0;if(w)for(const D in w){const{scrollX:z,scrollY:L}=w[D];if(D===of){if(N)continue;scrollTo({top:L,left:z,behavior:d}),k=!0}else{const P=Np(D);P&&(P.scrollLeft=z,P.scrollTop=L,E?.delete(P))}}if(!S){const D={top:0,left:0,behavior:d};if(k||scrollTo(D),E)for(const z of E)z.scrollTo(D)}}!k&&S&&A&&document.getElementById(S)?.scrollIntoView(A)}finally{Pc=!1}}))}function jN(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function Hm(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function HN(e){const t=new URLSearchParams(e),n=Object.create(null);for(const[i,s]of t.entries()){const l=n[i];l==null?n[i]=Hm(s):Array.isArray(l)?l.push(Hm(s)):n[i]=[l,Hm(s)]}return n}const UN=/^(?:\s|["[{\d-]|fa|nu|tr)/,zN=qN(JSON.parse),FN=VN(JSON.stringify,JSON.parse);function qN(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=HN(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function VN(e,t){const n=t===JSON.parse;function i(s){if(s&&typeof s=="object")try{return e(s)}catch{}else if(t&&typeof s=="string"){if(n&&!UN.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=jN(s,i);return l?`?${l}`:""}}const rl="__root__";function YN(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function gv(e){return e instanceof Response&&!!e.options}function $N(e){return{input:({url:t})=>{for(const n of e)t=Rp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=bv(e[n],t);return t}}}function GN(e){const t=mv(e.basepath),n=`/${t}`,i=e.caseSensitive?n:n.toLowerCase(),s=`${i}/`;return{input:({url:l})=>{const u=e.caseSensitive?l.pathname:l.pathname.toLowerCase();return u===i?l.pathname="/":u.startsWith(s)&&(l.pathname=l.pathname.slice(n.length)),l},output:({url:l})=>(l.pathname=sf(["/",t,l.pathname]),l)}}function Rp(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function bv(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function KN(e,t){const{createMutableStore:n,createReadonlyStore:i,batch:s}=t,l=new Map,u=n("idle"),c=n(e),d=n(void 0),h=n([]),m=i(()=>h.get().map(S=>l.get(S).get())),p=i(()=>({status:u.get(),isLoading:u.get()==="pending",matches:m.get(),location:c.get(),resolvedLocation:d.get()}));function E(S){let A=l.get(S);return A||(A=n(void 0),l.set(S,A)),A}const y={status:u,location:c,resolvedLocation:d,ids:h,matches:m,byRoute:l,__store:p,getMatchStore:E,setMatches:v};function v(S){const A=h.get(),k=S.map(N=>N.routeId);s(()=>{bN(A,k)||h.set(k);for(const N of A)k.includes(N)||l.get(N).set(()=>{});for(const N of S){const w=E(N.routeId);w.get()!==N&&w.set(N)}})}return y}var Wi="__TSR_index",cx="popstate",fx="beforeunload";function XN(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(c=>c({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},l=async({task:u,navigateOpts:c,...d})=>{if(c?.ignoreBlocker??!1){u();return}const h=e.getBlockers?.()??[],m=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&h.length&&m)for(const p of h){const E=_f(d.path,d.state);if(await p.blockerFn({currentLocation:t,nextLocation:E,action:d.type})){e.onBlocked?.();return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,c,d)=>{const h=t.state[Wi];c=dx(h+1,c),l({task:()=>{e.pushState(u,c),i({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:u,state:c})},replace:(u,c,d)=>{const h=t.state[Wi];c=dx(h,c),l({task:()=>{e.replaceState(u,c),i({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:u,state:c})},go:(u,c)=>{l({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:c,type:"GO"})},back:u=>{l({task:()=>{e.back(u?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{l({task:()=>{e.forward(u?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Wi]!==0,createHref:u=>e.createHref(u),block:u=>{if(!e.setBlockers)return()=>{};const c=e.getBlockers?.()??[];return e.setBlockers([...c,u]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(h=>h!==u))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:i}}function dx(e,t){t||(t={});const n=L0();return{...t,key:n,__TSR_key:n,[Wi]:e}}function QN(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,u=P=>s=P,c=(P=>P),d=(()=>_f(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const P=L0();t.history.replaceState({[Wi]:0,key:P,__TSR_key:P},"")}let h=d(),m,p=!1,E=!1,y=!1,v=!1;const S=()=>h;let A;const k=()=>{A&&(L._ignoreSubscribers=!0,(A[2]?t.history.pushState:t.history.replaceState)(A[1],"",A[0]),L._ignoreSubscribers=!1,A=void 0,m=void 0)},N=(P,H,G)=>{const j=c(H),Y=!!A;Y||(m=h),h=_f(H,G),A=[j,G,A?.[2]||P],Y||queueMicrotask(()=>k())},w=P=>{h=d(),L.notify({type:P})},D=async()=>{if(E){E=!1;return}const P=d(),H=P.state[Wi]-h.state[Wi],G=H===1,j=H===-1,Y=!G&&!j||p;p=!1;const W=Y?"GO":j?"BACK":"FORWARD",se=Y?{type:"GO",index:H}:{type:j?"BACK":"FORWARD"};if(y)y=!1;else{const le=l();if(typeof document<"u"&&le.length){for(const ne of le)if(await ne.blockerFn({currentLocation:h,nextLocation:P,action:W})){E=!0,t.history.go(1),L.notify(se);return}}}h=d(),L.notify(se)},z=P=>{if(v){v=!1;return}let H=!1;const G=l();if(typeof document<"u"&&G.length)for(const j of G){const Y=j.enableBeforeUnload??!0;if(Y===!0){H=!0;break}if(typeof Y=="function"&&Y()===!0){H=!0;break}}if(H)return P.preventDefault(),P.returnValue=""},L=XN({getLocation:S,getLength:()=>t.history.length,pushState:(P,H)=>N(!0,P,H),replaceState:(P,H)=>N(!1,P,H),back:P=>(P&&(y=!0),v=!0,t.history.back()),forward:P=>{P&&(y=!0),v=!0,t.history.forward()},go:P=>{p=!0,t.history.go(P)},createHref:P=>c(P),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(fx,z,{capture:!0}),t.removeEventListener(cx,D)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(fx,z,{capture:!0}),t.addEventListener(cx,D),t.history.pushState=function(...P){const H=n.apply(t.history,P);return L._ignoreSubscribers||w("PUSH"),H},t.history.replaceState=function(...P){const H=i.apply(t.history,P);return L._ignoreSubscribers||w("REPLACE"),H},L}function WN(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function _f(e,t){const n=WN(e),i=n.indexOf("#"),s=n.indexOf("?"),l=L0();return{href:n,pathname:n.substring(0,i>0?s>0?Math.min(i,s):i:s>0?s:n.length),hash:i>-1?n.substring(i):"",search:s>-1?n.slice(s,i===-1?void 0:i):"",state:t||{[Wi]:0,key:l,__TSR_key:l}}}function L0(){return(Math.random()+1).toString(36).substring(7)}function hx(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Vf(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function mx({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:i,...s}){return s}function ZN(e,t,n,i){for(const s of t){if(i&&e._tx!==i)return;n.some(l=>l.routeId===s.routeId)||e.routesById[s.routeId].options.onLeave?.(s)}for(const s of n){if(i&&e._tx!==i)return;e.routesById[s.routeId].options[t.some(l=>l.routeId===s.routeId)?"onStay":"onEnter"]?.(s)}}var JN=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async n=>(n(),!1),this.update=n=>{const i=this.options,s=this.basepath??i?.basepath??"/",l=this.basepath===void 0,u=i?.rewrite;if(this.options={...i,...n},this.isServer=this.options.isServer??oN??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=RN(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=QN()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=vf(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=KN(this.latestLocation,h),BN(this)}const c=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==c||u!==d){this.basepath=c;const h=[],m=mv(c);m&&m!=="/"&&h.push(GN({basepath:c})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:$N(h),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const n=_N(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&EN(this.options.routeMasks,n.processedTree),n},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{for(const i of this.subscribers)if(i.eventType===n.type)try{i.fn(n)}catch(s){console.error(s)}},this.parseLocation=(n,i)=>{const s=({pathname:d,search:h,hash:m,href:p,state:E})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(d)){const k=this.options.parseSearch(h),N=this.options.stringifySearch(k);return{href:d+N+m,publicHref:d+N+m,pathname:yo(d).path,external:!1,searchStr:N,search:ka(i?.search,k),hash:yo(m.slice(1)).path,state:Ba(i?.state,E)}}const y=new URL(p,this.origin),v=Rp(this.rewrite,y),S=this.options.parseSearch(v.search),A=this.options.stringifySearch(S);return v.search=A,{href:v.href.replace(v.origin,""),publicHref:p,pathname:yo(v.pathname).path,external:!!this.rewrite&&v.origin!==this.origin,searchStr:A,search:ka(i?.search,S),hash:yo(v.hash.slice(1)).path,state:Ba(i?.state,E)}},l=s(n),{__tempLocation:u,__tempKey:c}=l.state;if(u&&(!c||c===this.tempLocationKey)){const d=s(u);return d.state.key=l.state.key,d.state.__TSR_key=l.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>NN({base:n,to:i,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>{const i=Object.create(null),s=vN(ri(n),this.processedTree,!0);return s&&Object.assign(i,s.rawParams),[s?.branch||[this.routesById.__root__],i,s?.route]},this.buildLocation=n=>{const i=(l={})=>{if(l.href){const G=_f(l.href,{});l={...l,to:Rp(this.rewrite,new URL(G.pathname,this.origin)).pathname,search:this.options.parseSearch(G.search),hash:G.hash.slice(1)}}const u=l._fromLocation||this._pendingLocation||this.latestLocation,c=this.matchRoutesLightweight(u);l.from;const d=l.unsafeRelative==="path"?u.pathname:l.from??c[1],h=c[2],m=c[3],p=this.resolvePathWithBase(d,l.to?`${l.to}`:".");let E=px(l.params,m);const y=this.routesByPath[ri(p)];let v;if(y)v=this.getRouteBranch(y);else if(p.includes("$"))v=[];else{const[G,j,Y]=this.getMatchedRoutes(p);v=G,this.options.notFoundRoute&&(!Y||Y.path!=="/"&&j["**"])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&lv(E))for(const G of v){const j=G.options.params?.stringify??G.options.stringifyParams;if(j){E===m&&(E=Object.assign(Object.create(null),E));try{Object.assign(E,j(E))}catch{}}}const S=n.leaveParams?p:yo(sx({path:p,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=h;if(n._includeValidateSearch&&this.options.search?.strict){const G={};v.forEach(j=>{if(j.options.validateSearch)try{Object.assign(G,uf(j.options.validateSearch,{...G,...A}))}catch{}}),A=G}A=t6(A,l,v,n._includeValidateSearch),A=ka(h,A);const k=this.options.stringifySearch(A),N=l.hash===!0?u.hash:l.hash?ol(l.hash,u.hash):void 0,w=N?`#${N}`:"";let D=l.state===!0?u.state:l.state?ol(l.state,u.state):{};l.state&&(D=Ba(u.state,D));const z=`${S}${k}${w}`;let L,P,H=!1;if(this.rewrite){const G=new URL(z,this.origin),j=bv(this.rewrite,G);L=G.href.replace(G.origin,""),j.origin!==this.origin?(P=j.href,H=!0):P=j.pathname+j.search+j.hash}else L=gN(z),P=L;return{publicHref:P,href:L,pathname:S,search:A,searchStr:k,state:D,hash:N??"",external:H,unmaskOnReload:l.unmaskOnReload}},s=i(n);if(n.mask)s.maskedLocation=i({from:n.from,...n.mask});else if(this.options.routeMasks){const l=xN(s.pathname,this.processedTree);if(l){const u=Object.assign(Object.create(null),l.rawParams),{from:c,params:d,...h}=l.route,m=px(d,u);s.maskedLocation=i({from:n.from,...h,params:m})}}return s},this.commitLocation=async({viewTransition:n,ignoreBlocker:i,...s})=>{let l;const u=ri(this.latestLocation.href)===ri(s.href)&&Qi(mx(s.state),mx(this.latestLocation.state)),c=this._commitPromise;let d;const h=new Promise(m=>{d=m});if(h.resolve=()=>{d(),c?.resolve()},this._commitPromise=h,u)this.load();else{let{maskedLocation:m,hashScrollIntoView:p,...E}=s;m&&(E={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...E,search:E.searchStr,state:{...E.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(E.unmaskOnReload??this.options.unmaskOnReload??!1)&&(E.state.__tempKey=this.tempLocationKey)),E.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,l=s.replace?"REPLACE":"PUSH",this.history[l==="REPLACE"?"replace":"push"](E.publicHref,E.state,{ignoreBlocker:i}),this.history.subscribers.size||this.load({action:{type:l}})}return this._scroll.next=s.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:l,ignoreBlocker:u,...c}={})=>{const d=this.buildLocation({...c,_includeValidateSearch:!0});this._pendingLocation=d;const h=this.commitLocation({...d,viewTransition:l,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:u});return queueMicrotask(()=>{this._pendingLocation===d&&(this._pendingLocation=void 0)}),h},this.navigate=async({to:n,reloadDocument:i,href:s,publicHref:l,...u})=>{let c=!1;if(s)try{new URL(`${s}`),c=!0}catch{}if(c&&!i&&(i=!0),i){if(n!==void 0||!s){const h=this.buildLocation({to:n,...u});s=s??h.publicHref,l=l??h.publicHref}const d=!c&&l?l:s;if(Tf(d,this.protocolAllowlist))return;if(!u.ignoreBlocker){const h=this.history.getBlockers?.()??[];for(const m of h)if(m?.blockerFn&&await m.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}u.replace?window.location.replace(d):window.location.href=d;return}return this.buildAndCommitLocation({...u,href:s,to:n,_isNavigate:!0})},this.load=async n=>{this.updateLatestLocation(),n?.action&&(this._scroll.hash=n.action.type==="PUSH"||n.action.type==="REPLACE"),await c6(this,n)},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,i&&typeof document.startViewTransition=="function"){let s;if(typeof i=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){const l=this.latestLocation,u=this.stores.resolvedLocation.get(),c=typeof i.types=="function"?i.types(Vf(l,u)):i.types;if(c===!1)return n();s={update:n,types:c}}else s=n;return document.startViewTransition(s).updateCallbackDone}return n()},this.invalidate=n=>{const i=this._committed,s=n?.filter,l=this._preloads,u=new Set([...i,...this._cache.values(),...[...l?.values()??[]].flat(),...this._tx?.[3]??[]].filter(h=>!s||s(h)).map(h=>h.id)),c=[];for(const[h,m]of l??[])m.some(p=>u.has(p.id))&&(l.delete(h),c.push(h));const d=h=>{if(u.has(h.id)){const m=this.routesById[h.routeId],p={...h,invalid:!0,...(n?.forcePending||h.status==="error"||h.status==="notFound")&&hx(m)?{status:"pending",error:void 0}:void 0};return h._flight=void 0,p}return h};this._committed=i.map(d);for(const[h,m]of this._cache)u.has(h)&&(m.invalid=!0,n?.forcePending&&(m.status="pending"));for(const h of u)this._flights?.delete(h);for(const h of c)h.abort();return this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{const i=n.headers.get("Location");if(n.options.href){if(i)try{const s=new URL(i);if(this.origin&&s.origin===this.origin){const l=s.pathname+s.search+s.hash;n.options.href=l,n.headers.set("Location",l)}}catch{}}else{const s=this.buildLocation(n.options).publicHref||"/";n.options.href=s,n.headers.set("Location",s)}if(n.options.href&&Tf(n.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=this._cache,s=this._preloads,l=n?.filter,u=[],c=[];for(const[h,m]of i)(!l||l(m))&&(c.push(h),u.push(m));const d=[];for(const[h,m]of s??[])(!l||m.some(l))&&(d.push(h),u.push(...m));for(const h of c)i.delete(h);for(const h of d)s.delete(h);for(const h of u){const m=h._flight;h._flight=void 0,m&&!--m[2]&&(this._flights?.get(h.id)===m&&this._flights.delete(h.id),d.push(m[1]))}for(const h of d)h.abort()},this.loadRouteChunk=il,this.preloadRoute=n=>f6(this,n),this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},l=this.buildLocation(s),u=this.stores.status.get()==="pending";if(i?.pending&&!u)return!1;const c=i?.pending??!u?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=TN(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!Qi(d.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Qi(c.search,l.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??FN,parseSearch:e.parseSearch??zN,protocolAllowlist:e.protocolAllowlist??pN}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=dv(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){const[n,i,s]=this.getMatchedRoutes(e.pathname);let l=n,u=!1;(s?s.path!=="/"&&i["**"]:ri(e.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:u=!0);const c=u?n6(this.options.notFoundMode,l):void 0,d=new Array(l.length),h=this._committed,m=(E,y)=>{const v=h[y];return v?.routeId===E.id?v:E===this.options.notFoundRoute?h.find(S=>S.routeId===E.id):void 0};let p;for(let E=0;E<l.length;E++){const y=l[E],v=d[E-1];let S,A,k;{const se=v?.search??e.search,le=v?._strictSearch??void 0;try{const ne=uf(y.options.validateSearch,{...se})??void 0;S={...se,...ne},A={...le,...ne}}catch(ne){let V=ne;if(ne instanceof Cf||(V=new Cf(ne.message,{cause:ne})),t?.throwOnError)throw V;S=se,A={},k=V}}let N="",w="";try{N=y.options.loaderDeps?.({search:S})??"",w=N&&JSON.stringify(N)||""}catch(se){if(t?.throwOnError)throw se;k??=se}const{interpolatedPath:D,usedParams:z}=sx({path:y.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),L=y.id+D+w,P=m(y,E),H=this._cache.get(L)??(P?.id===L?P:void 0);p=H?._strictParams??Object.assign(z,p);let G;if(!H)try{gx(y,p)}catch(se){if(ul(se)||gv(se)?G=se:G=new e6(se.message,{cause:se}),t?.throwOnError)throw G}const j=P?"stay":"enter";let Y;if(H)Y={...H,cause:j,search:ka(P?P.search:H.search,S),_strictSearch:A,searchError:k};else{const se=hx(y)?"pending":"success";Y={id:L,ssr:y.options.ssr,index:E,routeId:y.id,params:P?.params??p,_strictParams:p,pathname:D,updatedAt:Date.now(),search:P?ka(P.search,S):S,_strictSearch:A,searchError:k,status:se,isFetching:!1,error:void 0,paramsError:G,context:{},abortController:t?._controller??new AbortController,cause:j,loaderDeps:P?Ba(P.loaderDeps,N):N,invalid:!1,preload:!1,staticData:y.options.staticData||{},fullPath:y.fullPath}}const W=c===y.id;Y._notFound&&!W&&(Y.error=void 0),Y._notFound=W,d[E]=Y}for(let E=0;E<d.length;E++){const y=d[E];y.params=y.cause==="stay"?ka(y.params,p):p,t?._controller&&(y.context={})}return d}matchRoutesLightweight(e){const t=Vo(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,i=n?.id,s=this.lightweightCache.get(e);if(s&&s[0]===i)return s[1];const[l,u]=this.getMatchedRoutes(e.pathname),c=Vo(l),d={...e.search};for(const E of l)try{Object.assign(d,uf(E.options.validateSearch,d))}catch{}const h=n&&n.routeId===c.id&&n.pathname===e.pathname;let m;if(h)m=n.params;else{const E=Object.assign(Object.create(null),u);for(const y of l)try{gx(y,E)}catch{}m=E}const p=[l,c.fullPath,d,m];return this.lightweightCache.set(e,[i,p]),p}},Cf=class extends Error{},e6=class extends Error{};function uf(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Cf("Async validation not supported");if(n.issues)throw new Cf(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function t6(e,t,n,i){const s=[];for(const u of n){const c=u.options;if("search"in c)c.search?.middlewares&&s.push(...c.search.middlewares);else if(c.preSearchFilters||c.postSearchFilters){const h=({search:m,next:p})=>{const E=p(c.preSearchFilters?c.preSearchFilters.reduce((y,v)=>v(y),m):m);return c.postSearchFilters?c.postSearchFilters.reduce((y,v)=>v(y),E):E};s.push(h)}const d=c.validateSearch;if(i&&d){const h=({search:m,next:p,meta:E})=>{const y=p(m);try{const v=uf(d,y);if(E&&v)for(const S in v)S in y||(E.defaulted||=new Map).set(S,v[S]);return{...y,...v}}catch{}return y};s.push(h)}}const l=(u,c,d)=>{if(u>=s.length){if(!t.search)return{};if(t.search===!0)return c;const m=ol(t.search,c);return d&&(d.explicit=m),m}const h=(m,p)=>{if(p){const E=d||{};return{search:l(u+1,m,E),meta:E}}return l(u+1,m,d)};return s[u]({search:c,next:h,meta:d})};return l(0,e)}function n6(e,t){if(e!=="root"){let n;for(let i=t.length-1;i>=0;i--){const s=t[i];if(s.options.notFoundComponent)return s.id;n||=s.children&&s.id}if(n)return n}return rl}function px(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;const n=Object.assign(Object.create(null),t);return Object.assign(n,ol(e,n))}function gx(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Op(e,t){return e.options[t]?.preload?.()}function r6(e,t){const n=Op(e,"component");let i=Op(e,"pendingComponent");return t&&(i?i=i.then(t):t()),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function il(e,t,n){const i=()=>t===!1?void 0:t?Op(e,t):r6(e,n),s=e._lazy;if(s)return s===!0?i():s.then(i);if(!e.lazyFn)return i();const l=e.lazyFn().then(u=>{{const{id:c,...d}=u.options;Object.assign(e.options,d),e._lazy=!0}},u=>{throw e._lazy=void 0,u});return e._lazy=l,l.then(i)}function D0(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}const wr=0,si=1,Yf=2,qn=3,Ji=[4];function Yo(e){return typeof e[0]=="number"}function Wa(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,i)=>{const s=()=>i(t);t.addEventListener("abort",s,{once:!0}),Promise.resolve(e).then(n,i).finally(()=>t.removeEventListener("abort",s))})}function Za(e,t){return e.routesById[t.routeId]}function $o(e,t,n){return gv(e)?[qn,e]:ul(e)?(e.routeId||=n,[Yf,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[si,e]):[wr,e]}function I0(e,t){let n=$o(t,!0,e.id);if(n[0]!==si)return n;try{e.options.onError?.(n[1])}catch(i){n=$o(i,!0,e.id)}return n}function Do(e,t,n,i,s){return s[0].signal.aborted?Ji:B0(e,t,n,I0(n,i),s)}async function i6(e,t,n,i,s,l){const[u,c]=t,d=n[0].signal,h=!!n[3];for(let m=n[6]??0;m<i;m++){const p=c[m],E=Za(e,p);p.abortController=n[0];const y=c[m-1]?.context??e.options.context??{},v={params:p.params,location:u,navigate:N=>e.navigate({...N,_fromLocation:u}),buildLocation:e.buildLocation,cause:h?"preload":p.cause,abortController:n[0],preload:h,matches:c,routeId:E.id};try{const N=p._ctx||=E.options.context?E.options.context({...v,deps:p.loaderDeps,context:y})||{}:void 0;p.context={...y,...N}}catch(N){return ai(e,p),[m,Do(e,t,E,N,n)]}if(d.aborted)return[m,Ji];const S=p.paramsError??p.searchError;if(S!==void 0)return ai(e,p),[m,Do(e,t,E,S,n)];const A=E.options.beforeLoad;if(!A)continue;const k=p.status;m>=l&&(p.status="pending",n[7]?.());try{Go(e,p,"beforeLoad",n[0]);const N=await Wa(A({...v,search:p.search,context:p.context,...e.options.additionalContext}),d);if(d.aborted)return[m,Ji];const w=B0(e,t,E,$o(N,!1,E.id),n);if(w[0]!==wr)return ai(e,p),[m,w];p.context={...p.context,...N}}catch(N){return ai(e,p),[m,Do(e,t,E,N,n)]}finally{p.status=k,Go(e,p,!1,n[0])}}s()}function M0(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){const i=e._tx;if(i&&!i[0].signal.aborted&&!i[3].includes(t)&&i[3].some(s=>s.id===t.id)&&i[3].some(s=>s.isFetching==="beforeLoad"))return;e._flights.delete(t.id)}return n[1]}}function ai(e,t){const n=t._flight;t._flight=void 0,M0(e,t,n)?.abort()}function Nn(e,t,n,i){const s=[];for(const l of t)if(!n?.includes(l)){const u=l._flight;if(l._flight=void 0,i&&u?.[2]===1&&e._flights?.get(l.id)===u&&n?.some(c=>c.id===l.id))u[2]=0;else{const c=M0(e,l,u);c&&s.push(c)}}for(const l of s)l.abort()}function P0(e){for(const t of e){const n=t._flight;n&&n[2]++}}function Go(e,t,n,i){if(t.isFetching=n,i&&e._tx?.[0]!==i)return;const s=e.stores.byRoute.get(t.routeId),l=s?.get();l?.id===t.id&&s.set({...l,isFetching:n})}function yv(e,t,n,i,s,l,u){const c=t[0];return{params:n.params,location:c,navigate:d=>e.navigate({...d,_fromLocation:c}),cause:u?"preload":n.cause,abortController:s,preload:u,deps:n.loaderDeps,parentMatchPromise:l,context:n.context,route:i,...e.options.additionalContext}}async function bx(e,t,n,i,s,l,u){const c=u[0],d=c.signal;if(d.aborted)return Ji;if(!s)return[wr,void 0];let h=n._flight;Go(e,n,"loader",c);try{if(!h){const m=new AbortController;h=[Promise.resolve().then(()=>s(yv(e,t,n,i,m,l,!!u[3]))).then(p=>$o(p,!1,i.id),p=>$o(p,!0,i.id)).then(p=>(p[0]!==wr&&e._flights?.get(n.id)===h&&(e._flights.delete(n.id),h[2]||m.abort()),p[0]===si&&h[2]?I0(i,p[1]):p)),m,1],(e._flights??=new Map).set(n.id,h)}return n._flight=h,n.abortController=h[1],B0(e,t,i,await Wa(h[0],d),u)}catch(m){if(m!==d||!d.aborted)throw m;return ai(e,n),Ji}finally{Go(e,n,!1,c)}}function yx(e,t,n){t[0]!==qn&&(e.status="success",e.error=void 0,t[0]===wr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function a6(e,t,n){const i=e._cache.get(t.id);if(i!==n||e._committed.some(l=>l.id===t.id&&l._flight===t._flight))return;const s={...t,_notFound:void 0,context:{}};s._flight&&s._flight[2]++,e._cache.set(t.id,s),i&&ai(e,i)}function Ex(e,t){return t[0]===si||t[0]===Yf?{...e,status:t[0]===si?"error":"notFound",error:t[1],_flight:void 0}:e}function s6(e,t,n,i,s,l,u){const c=t[1][n],d=Za(e,c),h=!!l[3],m=e._cache.get(c.id);let p,E=!1,y;try{if(c.status==="success"&&(p=d.options.shouldReload,typeof p=="function"&&(p=p(yv(e,t,c,d,l[0],s,h))),l[0].signal.aborted&&(y=Ji)),!y)if(c.status!=="success")E=!0;else{const W=h||c.preload?d.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.options.defaultStaleTime??0;E=!!(c.invalid||p||p===void 0&&Date.now()-c.updatedAt>=W&&(l[5]||c.cause==="enter"||l[2].some(se=>se.routeId===c.routeId&&se.id!==c.id)))}}catch(W){c.invalid=!0,ai(e,c),y=Do(e,t,d,W,l)}const v=d.options.loader,S=typeof v=="function",A=S?v:v?.handler,k=!h||d.options.preload!==!1;let N=k&&v?e._flights?.get(c.id):void 0;N===c._flight||y?N=void 0:N&&!E&&!h&&p===void 0?E=!0:E||(N=void 0);const w=!!(v&&E&&c.status==="success"&&!h&&!l[4]&&((S?void 0:v.staleReloadMode)??e.options.defaultStaleReloadMode)!=="blocking"),D=E&&k,z=D&&!w&&(c.status!=="success"||!!v),L=n>=u?l[7]:void 0,P=d.lazyFn&&d._lazy!==!0?L:void 0;if(D&&!v&&(c.invalid=!1,c.updatedAt=Date.now()),N&&N[2]++,z){const W=c._flight;c._flight=N,M0(e,c,W)?.abort(),n>=u&&(c.status="pending"),L?.()}D||(c.isFetching=!1);const H=(y?Promise.resolve(y):z?bx(e,t,c,d,A,s,l):Promise.resolve([wr,c.loaderData])).then(W=>(z&&(yx(c,W,h),W[0]===wr&&(v&&!l[0].signal.aborted&&a6(e,c,m),n>=u&&(c.status="pending"))),W)),G=Wa(Promise.resolve().then(()=>il(d,void 0,P)),l[0].signal).then(()=>{},W=>t[1].some((se,le)=>le<=n&&(se.status==="error"||se.status==="notFound"||se._notFound))?void 0:[n,Do(e,t,d,W,l)]).then(W=>H.then(se=>(z&&!W&&se[0]===wr&&c.status==="pending"&&!l[0].signal.aborted&&(c.status="success",L?.()),W)));if(i.push([n,H,G]),!w)return H.then(W=>Ex(c,W));const j={...c,status:"pending",preload:!1,_flight:N};c.invalid=!1,c.isFetching="loader";const Y=bx(e,t,j,d,A,s,l).then(W=>(c.isFetching=!1,yx(j,W,!1),W));return(t[2]??=[]).push([n,Y,G,j]),Y.then(W=>Ex(j,W))}async function Lp(e,t,n,i,s=0){const l=n?.[1][1];let u=l?.routeId?t.findIndex(c=>c.routeId===l.routeId):n?.[0]??t.length-1;u<0&&(u=0);for(let c=u;c>=0;c--){const d=Za(e,t[c]);try{const h=il(d,!1);h&&await Wa(h,i)}catch(h){if(h===i&&i.aborted)throw h}if(d.options.notFoundComponent)return c}return l?.routeId?u:s}function za(e,t){t[2]&&(Nn(e,t[2].map(n=>n[3])),t[2]=void 0)}async function xx(e,t,n,i){let s;try{await Promise.all(e.map(l=>l[1].then(async u=>{const c=l[0];if(!(i&&c>=await i)){if(u[0]>=qn)throw[c,u];!s&&u[0]!==wr&&(s=[c,u],await Promise.all((n??[]).map(d=>{if(!(d[0]<=c))return d[1].then(h=>{if(h[0]===qn)throw[d[0],h]})})))}})))}catch(l){return l}return t??s}function B0(e,t,n,i,s,l){for(;i[0]===qn;){const u=i[1],c=u.options;if(c.reloadDocument?s[3]:s[1]>=20)return i;try{return c.href&&c.reloadDocument?(e.resolveRedirect(u),i):[qn,u,e.buildLocation({...c,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(d){i=l?[si,d]:I0(n,d),l=!0}}return i}async function Ev(e,t,n,i,s,l){const u=t[1];let c=await s,d=!1;const h=u.findIndex(y=>y._notFound),m=y=>y[1][0]===Yf?Lp(e,u,y,i.signal):y[0];let p=h<0?u.length:h;if((c?.[1][0]??0)>=qn)p=0;else if(c){p=c[2]??=await m(c);for(const y of n){if(y[0]>=p)break;const v=await y[1];if(v[0]!==wr&&v[0]<qn&&!("loaderData"in u[y[0]])){c=[y[0],v],p=c[2]=await m(c);break}}}for(const y of n){if(y[0]>=p)break;const v=await y[2];if(v){c=v;break}}if((c?.[1][0]??0)>=qn){const y=c[1];if(y[0]!==qn||y[1].options.reloadDocument||y[2])return za(e,t),y;d=!0,c=[0,[si,new Error("Too many redirects")]]}const E=c?c[2]??await m(c):h;if(E>=0){const y=c?.[1],v=y?.[0],S=u[E],A=y?.[1],k=()=>{y&&(S._notFound=void 0,v===si?S.status="error":(A.routeId=S.routeId,S.routeId===e.routeTree.id?(S.status="success",S._notFound=!0):S.status="notFound"),S.error=A,S.isFetching=!1)};k(),y||l?.();const N=Za(e,S);try{await Wa(y?Promise.resolve().then(()=>il(N,v===si?"errorComponent":"notFoundComponent")):Promise.all([il(N),il(N,"notFoundComponent")]),i.signal)}catch(w){if(w===i.signal&&i.signal.aborted)return za(e,t),Ji}y?d&&(i.abort(),await Promise.all([...n.map(w=>w[1]),...n.map(w=>w[2]),...(t[2]??[]).map(w=>w[1])]),za(e,t),Nn(e,u),k()):S.status="success"}return t}async function xv(e,t,n,i=0,s=t[1].length){const l=t[1];for(let u=i;u<s;u++){const c=l[u],d=Za(e,c).options;if(d.head||d.scripts)try{const h={ssr:e.options.ssr,matches:l,match:c,params:c.params,loaderData:c.loaderData},[m,p]=await Wa(Promise.all([d.head?.(h),d.scripts?.(h)]),n);c.meta=m?.meta,c.links=m?.links,c.headScripts=m?.scripts,c.styles=m?.styles,c.scripts=p}catch(h){if(h===n&&n.aborted)break;console.error(h)}if(c.status!=="success"||c._notFound)break}return t}async function Tv(e,t,n,i){const s=[t,n],l=i[0].signal;let u;try{const c=e.stores.matches.get();let d=n.findIndex(k=>k._notFound);if(e.options.notFoundMode!=="root"&&d>=0){const k=await Lp(e,n,void 0,l,d);n[d]._notFound=void 0,n[k]._notFound=!0,d=k}let h=d<0?n.length:d+1,m=0;for(;m<h&&m!==d;){const k=n[m],N=i[2][m],w=c[m];if(N?.id!==k.id||N.status!=="success"||N._notFound||k.preload||w?.id!==k.id||w.status!=="success"||w._notFound)break;m++}const p=[],E=i[6]??0;let y=E?Promise.resolve(n[E-1]):void 0;const v=()=>{for(let k=E;k<h&&!l.aborted;k++)y=s6(e,s,k,p,y,i,m)},S=await i6(e,s,i,h,v,m);if(S){if(i[4]=!0,h=S[0],S[1][0]===Yf){const k=await Lp(e,n,S,l);S[2]=k,h=Math.min(h,k+1)}else S[1][0]>=qn&&(h=0);v()}if(!l.aborted&&!i[3]){const k=[];for(const[N,w]of e._flights??[])w[2]||(e._flights.delete(N),k.push(w[1]));for(const N of k)N.abort()}const A=Ev(e,s,p,i[0],xx(p,S,s[2]),i[7]);s[2]?.length&&(s[3]=xx(s[2],void 0,void 0,A.then(k=>Yo(k)?0:D0(n).length,()=>0))),u=await A}catch(c){if(za(e,s),c===l&&l.aborted)return Ji;throw c}return Yo(u)?u:xv(e,u,l,i[6]===n.length?i[6]:0)}function Dp(e,t){if(e._tx!==t)return;const n=t[3],i=e.stores.matches.get();let s=e._pending;for(let l=0;l<n.length;l++){const u=n[l],c=u.status==="success"&&!u._notFound,d=i[l]?.id===u.id&&i[l]?.status==="pending";if(c&&!d)continue;const h=Za(e,u),m=c||u.invalid?0:h.options.pendingMs??e.options.defaultPendingMs,p=h.options.pendingComponent??e.options.defaultPendingComponent;if(!p||typeof m!="number"||m===1/0){s&&(s[0]=t,s[2]=0,s[4]=!0);return}const E=h.options.pendingMinMs??e.options.defaultPendingMinMs??0;let y=!1;if(s?.[1]===u.id?(y=s[0]!==t,s[0]=t):(clearTimeout(s?.[3]),e._pending=s=void 0),s||(e._pending=s=[t,u.id,d?Date.now()+E:t[4]+m,void 0,d||void 0,p]),s[4]&&!y&&s[5]===p)return;if(s[5]=p,!s[4]){clearTimeout(s[3]);const A=s[2]-Date.now();if(A>0){s[3]=setTimeout(()=>Dp(e,t),A);return}s[2]=0}const v=n.map(A=>({...A,_flight:void 0}));v[l].status="pending";const S=s[4]=e.startTransition(()=>e.stores.setMatches(v),v).then(A=>(A&&e._pending===s&&s[4]===S&&!s[2]&&(s[2]=Date.now()+E),A));return}}function Eo(e,t){const n=e._pending;(e._tx===t||!e._tx?.[3].some(i=>i.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Tx(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const i=n[2]-Date.now();if(!n[4]||i<=0||!D0(t[3]).some(l=>l.id===n[1]))return;let s;try{await Wa(new Promise(l=>{s=setTimeout(l,i)}),t[0].signal)}catch{}clearTimeout(s)}function vv(e,t){e._committed=t,e.stores.setMatches(t)}function l6(e,t,n,i){const s=e._committed,l=e._cache;for(const d of n)d.preload=!1,i&&(d._assetEnd=void 0);const u=D0(n).length,c=new Map;{const d=Date.now();for(const h of[...s,...l.values()]){if(h.status!=="success"||n.some((p,E)=>p.id===h.id&&(E<u||p.status==="success")))continue;const m=Za(e,h);!m.options.loader||d-h.updatedAt>=(h.preload?m.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:m.options.gcTime??e.options.defaultGcTime??3e5)||c.set(h.id,l.get(h.id)===h?h:{...h,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c,vv(e,n),Nn(e,[...l.values(),...s],[...n,...c.values()]),ZN(e,s,n,t)}async function Bc(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}function Sv(e,t,n){const i=n[1].options,s=n[2];if(!s)return e.navigate({...i,replace:!0,ignoreBlocker:!0});if(i.reloadDocument)return e.navigate({href:s.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});s._redirects=t[1]+1,e._pendingLocation=s;const l=e.commitLocation({...s,viewTransition:i.viewTransition,replace:!0,resetScroll:i.resetScroll,hashScrollIntoView:i.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===s&&(e._pendingLocation=void 0)}),l}async function o6(e,t,n,i,s){const l=n.map(d=>({...d}));P0(l);for(const d of i)ai(e,l[d[0]]),l[d[0]]=d[3];const u=[t[2],l];let c;try{c=await Ev(e,u,i,t[0],s)}catch(d){throw Nn(e,l),d}if(Yo(c)){Nn(e,l),c[0]===qn&&e._tx===t&&e._committed===n&&await Sv(e,t,c);return}if(await xv(e,c,t[0].signal),e._tx!==t||e._committed!==n){Nn(e,l);return}for(const d of l){const h=e._cache.get(d.id);h?._flight&&h._flight===d._flight&&(e._cache.delete(d.id),ai(e,h))}vv(e,l),Nn(e,n,l)}async function u6(e,t,n,i,s,l){const u=await Tv(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,n,l,i]);if(Yo(u)){const p=u[0]===qn&&e._tx===t;if((!p||u[1].options.reloadDocument)&&Eo(e,t),Nn(e,t[3]),t[3]=[],!p)return;if(e._tx!==t){Eo(e,t);return}await Sv(e,t,u);return}const c=u[1];if(e._tx===t&&await Tx(e,t),e._tx!==t){Eo(e,t),Nn(e,c),za(e,u);return}const d=t[2],h=Vf(d,e.stores.resolvedLocation.get()),m=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Tx(e,t),e._tx!==t){Eo(e,t),Nn(e,c),za(e,u);return}const p=()=>{Eo(e,t),l6(e,t,c,l),e._tx===t&&(e.emit({type:"onLoad",...h}),e._tx===t&&e.emit({type:"onBeforeRouteMount",...h}))},E=await e.startTransition(p,c);if(e._tx!==t){za(e,u);return}m?.length&&o6(e,t,c,m,u[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(d),e.stores.status.set("idle"),e._tx===t&&e.emit({type:"onResolved",...h}),E&&e._tx===t&&e.emit({type:"onRendered",...h})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function c6(e,t){const n=e._tx,i=e.stores.resolvedLocation.get(),s=i??e.stores.location.get(),l=e.latestLocation,u=e._pendingLocation,c=u?.href===l.href?u._redirects??0:0,d=e._handoff,h=d?.[0](),m=new AbortController,p=e._preflight;if(e._preflight=m,h||d?.[1](),p?.abort(),!m.signal.aborted){const D=Vf(l,i);e.emit({type:"onBeforeNavigate",...D}),m.signal.aborted||e.emit({type:"onBeforeLoad",...D})}if(m.signal.aborted){await Bc(e,n);return}const E=s.href===l.href;let y=m;const v=e.matchRoutes(l,{_controller:m});P0(v);const S=h?d[1](v):void 0;if(S?y=h:h?.abort(),m.signal.aborted){Nn(e,v),await Bc(e,n);return}e._preflight=void 0;let A;const k=()=>u6(e,w,E,()=>Dp(e,w),t?.sync,S),N=t?.sync?new Promise(D=>A=D):Promise.resolve().then(k).then(),w=[y,c,l,v,Date.now(),N];if(e._tx=w,n){for(const D of e.stores.matches.get()){if(e._tx!==w)break;D.isFetching&&Go(e,D,!1)}n[0].abort(),Nn(e,n[3],w[3],!0)}if(e._tx!==w){Nn(e,w[3]),w[3]=[],A?.(),await Bc(e,w);return}e.batch(()=>{e.stores.status.set("pending"),e.stores.location.set(l)}),(S||!e._committed.length&&v[0]?.status!=="success"&&!v.some(D=>D._notFound))&&Dp(e,w),A?.(k()),await N,await Bc(e,w)}async function f6(e,t){let n=e.buildLocation(t);for(let i=0;;i++){const s=e._committed,l=new AbortController;let u,c,d;try{try{u=e.matchRoutes(n,{_controller:l}),P0(u),c=(e._preloads??=new Map).set(l,u),d=await Tv(e,n,u,[l,i,s,!0])}finally{c&&(c=c.delete(l),Nn(e,u)),l.abort()}if(!Yo(d))return d[1];if(!c||d.length<3)return;n=d[2]}catch(h){ul(h)||console.error(h);return}}}const d6="Error preloading route! ☝️";var _v=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=t=>{this.originalIndex=t.originalIndex;const n=this.options,i=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),i?this._path=rl:this.parentRoute||R0();let s=i?rl:n?.path;s&&s!=="/"&&(s=hv(s));const l=n?.id||s;let u=i?rl:sf([this.parentRoute.id==="__root__"?"":this.parentRoute.id,l]);s==="__root__"&&(s="/"),u!=="__root__"&&(u=sf(["/",u]));const c=u==="__root__"?"/":sf([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=c,this._to=ri(c)},this.addChildren=t=>this._addFileChildren(t),this._addFileChildren=t=>(Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this),this._addFileTypes=()=>this,this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.redirect=t=>YN({from:this.fullPath,...t}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},h6=class extends _v{constructor(e){super(e)}},j0=class extends C.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){const n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){const e=this.state.error;return e?C.createElement(this.props.errorComponent??m6,{error:e,reset:this.reset}):this.props.children}};function m6({error:e}){const[t,n]=C.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),t?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function p6({children:e,fallback:t=null}){return x.jsx(ml.Fragment,{children:Cv()?e:t})}function Cv(){return ml.useSyncExternalStore(g6,()=>!0,()=>!1)}function g6(){return()=>{}}var Av=C.createContext(null);function hr(e){return C.useContext(Av)}var $f=C.createContext(void 0),b6=C.createContext(void 0),wt=(e=>(e[e.None=0]="None",e[e.Mutable=1]="Mutable",e[e.Watching=2]="Watching",e[e.RecursedCheck=4]="RecursedCheck",e[e.Recursed=8]="Recursed",e[e.Dirty=16]="Dirty",e[e.Pending=32]="Pending",e))(wt||{});function y6({update:e,notify:t,unwatched:n}){return{link:i,unlink:s,propagate:l,checkDirty:u,shallowPropagate:c};function i(h,m,p){const E=m.depsTail;if(E!==void 0&&E.dep===h)return;const y=E!==void 0?E.nextDep:m.deps;if(y!==void 0&&y.dep===h){y.version=p,m.depsTail=y;return}const v=h.subsTail;if(v!==void 0&&v.version===p&&v.sub===m)return;const S=m.depsTail=h.subsTail={version:p,dep:h,sub:m,prevDep:E,nextDep:y,prevSub:v,nextSub:void 0};y!==void 0&&(y.prevDep=S),E!==void 0?E.nextDep=S:m.deps=S,v!==void 0?v.nextSub=S:h.subs=S}function s(h,m=h.sub){const p=h.dep,E=h.prevDep,y=h.nextDep,v=h.nextSub,S=h.prevSub;return y!==void 0?y.prevDep=E:m.depsTail=E,E!==void 0?E.nextDep=y:m.deps=y,v!==void 0?v.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=v:(p.subs=v)===void 0&&n(p),y}function l(h){let m=h.nextSub,p;e:do{const E=h.sub;let y=E.flags;if(y&60?y&12?y&4?!(y&48)&&d(h,E)?(E.flags=y|40,y&=1):y=0:E.flags=y&-9|32:y=0:E.flags=y|32,y&2&&t(E),y&1){const v=E.subs;if(v!==void 0){const S=(h=v).nextSub;S!==void 0&&(p={value:m,prev:p},m=S);continue}}if((h=m)!==void 0){m=h.nextSub;continue}for(;p!==void 0;)if(h=p.value,p=p.prev,h!==void 0){m=h.nextSub;continue e}break}while(!0)}function u(h,m){let p,E=0,y=!1;e:do{const v=h.dep,S=v.flags;if(m.flags&16)y=!0;else if((S&17)===17){if(e(v)){const A=v.subs;A.nextSub!==void 0&&c(A),y=!0}}else if((S&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(p={value:h,prev:p}),h=v.deps,m=v,++E;continue}if(!y){const A=h.nextDep;if(A!==void 0){h=A;continue}}for(;E--;){const A=m.subs,k=A.nextSub!==void 0;if(k?(h=p.value,p=p.prev):h=A,y){if(e(m)){k&&c(A),m=h.sub;continue}y=!1}else m.flags&=-33;m=h.sub;const N=h.nextDep;if(N!==void 0){h=N;continue e}}return y}while(!0)}function c(h){do{const m=h.sub,p=m.flags;(p&48)===32&&(m.flags=p|16,(p&6)===2&&t(m))}while((h=h.nextSub)!==void 0)}function d(h,m){let p=m.depsTail;for(;p!==void 0;){if(p===h)return!0;p=p.prevDep}return!1}}function E6(e,t,n){const i=typeof e=="object",s=i?e:void 0;return{next:(i?e.next:e)?.bind(s),error:(i?e.error:t)?.bind(s),complete:(i?e.complete:n)?.bind(s)}}const Ip=[];let cf=0;const{link:vx,unlink:x6,propagate:T6,checkDirty:kv,shallowPropagate:Sx}=y6({update(e){return e._update()},notify(e){Ip[Mp++]=e,e.flags&=~wt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=wt.Mutable|wt.Dirty,Af(e))}});let jc=0,Mp=0,_r,Pp=0;function v6(e){try{++Pp,e()}finally{--Pp||wv()}}function Af(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=x6(n,e)}function wv(){if(!(Pp>0)){for(;jc<Mp;){const e=Ip[jc];Ip[jc++]=void 0,e.notify()}jc=0,Mp=0}}function _x(e,t){const n=typeof e=="function",i=e,s={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?wt.None:wt.Mutable,get(){return _r!==void 0&&vx(s,_r,cf),s._snapshot},subscribe(l){const u=E6(l),c={current:!1},d=S6(()=>{s.get(),c.current?u.next?.(s._snapshot):c.current=!0});return{unsubscribe:()=>{d.stop()}}},_update(l){const u=_r,c=t?.compare??Object.is;if(n)_r=s,++cf,s.depsTail=void 0;else if(l===void 0)return!1;n&&(s.flags=wt.Mutable|wt.RecursedCheck);try{const d=s._snapshot,h=typeof l=="function"?l(d):l===void 0&&n?i(d):l;return d===void 0||!c(d,h)?(s._snapshot=h,!0):!1}finally{_r=u,n&&(s.flags&=~wt.RecursedCheck),Af(s)}}};return n?(s.flags=wt.Mutable|wt.Dirty,s.get=function(){const l=s.flags;if(l&wt.Dirty||l&wt.Pending&&kv(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&Sx(u)}}else l&wt.Pending&&(s.flags=l&~wt.Pending);return _r!==void 0&&vx(s,_r,cf),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(T6(u),Sx(u),wv())}},s}function S6(e){const t=()=>{const i=_r;_r=n,++cf,n.depsTail=void 0,n.flags=wt.Watching|wt.RecursedCheck;try{return e()}finally{_r=i,n.flags&=~wt.RecursedCheck,Af(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const i=this.flags;i&wt.Dirty||i&wt.Pending&&kv(this.deps,this)?t():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,Af(this)}};return t(),n}var Um={exports:{}},zm={},Fm={exports:{}},qm={};var Cx;function _6(){if(Cx)return qm;Cx=1;var e=nu();function t(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function c(p,E){var y=E(),v=i({inst:{value:y,getSnapshot:E}}),S=v[0].inst,A=v[1];return l(function(){S.value=y,S.getSnapshot=E,d(S)&&A({inst:S})},[p,y,E]),s(function(){return d(S)&&A({inst:S}),p(function(){d(S)&&A({inst:S})})},[p]),u(y),y}function d(p){var E=p.getSnapshot;p=p.value;try{var y=E();return!n(p,y)}catch{return!0}}function h(p,E){return E()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return qm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,qm}var Ax;function C6(){return Ax||(Ax=1,Fm.exports=_6()),Fm.exports}var kx;function A6(){if(kx)return zm;kx=1;var e=nu(),t=C6();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,l=e.useRef,u=e.useEffect,c=e.useMemo,d=e.useDebugValue;return zm.useSyncExternalStoreWithSelector=function(h,m,p,E,y){var v=l(null);if(v.current===null){var S={hasValue:!1,value:null};v.current=S}else S=v.current;v=c(function(){function k(L){if(!N){if(N=!0,w=L,L=E(L),y!==void 0&&S.hasValue){var P=S.value;if(y(P,L))return D=P}return D=L}if(P=D,i(w,L))return P;var H=E(L);return y!==void 0&&y(P,H)?(w=L,P):(w=L,D=H)}var N=!1,w,D,z=p===void 0?null:p;return[function(){return k(m())},z===null?void 0:function(){return k(z())}]},[m,p,E,y]);var A=s(h,v[0],v[1]);return u(function(){S.hasValue=!0,S.value=A},[A]),d(A),A},zm}var wx;function k6(){return wx||(wx=1,Um.exports=A6()),Um.exports}var w6=k6();function N6(e,t){return e===t}function ui(e,t,n=N6){const i=C.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(u);return c},[e]),s=C.useCallback(()=>e?.get(),[e]);return w6.useSyncExternalStoreWithSelector(i,s,s,t,n)}var Nx={};function Nv(e,t){const n=C.useRef();return i=>{const s=e?.select?e.select(i):i;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=Ba(n.current,s):s}}function Ja(e){const t=hr(),n=C.useContext(e.from?b6:$f),i=e.from??n,s=t.stores.getMatchStore(i),l=Nv(e,t),u=ui(s,c=>c?l(c):Nx);if(u!==Nx)return u;(e.shouldThrow??!0)&&R0()}function Rv(e){return Ja({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ov(e){const{select:t,...n}=e;return Ja({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Lv(e){return Ja({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Dv(e){return Ja({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function H0(e){const t=hr();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Iv(e){return Ja({...e,select:t=>e.select?e.select(t.context):t.context})}function Vm(e){const t=C.useRef(e);return Qi(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function R6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function O6(e,t,n){if(e?.external)return Tf(e.href,n)?void 0:e.href;if(!j6(t)&&!(typeof t!="string"||t.indexOf(":")===-1))try{return new URL(t),Tf(t,n)?void 0:t}catch{}}function L6(e,t,n,i,s,l){if(l)return!1;if(n?.exact){if(!wN(e.pathname,t.pathname,i))return!1}else{const u=Sf(e.pathname,i),c=Sf(t.pathname,i);if(!(u.startsWith(c)&&(u.length===c.length||u[c.length]==="/")))return!1}return(n?.includeSearch??!0)&&!Qi(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:n?.includeHash?s&&e.hash===t.hash:!0}function D6(e,t){const n=hr(),i=cN(t),{activeProps:s,inactiveProps:l,activeOptions:u,to:c,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:p,replace:E,startTransition:y,resetScroll:v,viewTransition:S,children:A,target:k,disabled:N,style:w,className:D,onClick:z,onBlur:L,onFocus:P,onMouseEnter:H,onMouseLeave:G,onTouchStart:j,ignoreBlocker:Y,params:W,search:se,hash:le,state:ne,mask:V,reloadDocument:X,unsafeRelative:re,from:Ee,_fromLocation:R,...U}=e,K=Cv(),I=Vm(e.search),ge=Vm(e.params),ye=Vm(u),he=C.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,I,ge,e.state,e.mask,e.unsafeRelative]),we=C.useCallback(rt=>{const it=n.buildLocation({_fromLocation:rt,...he}),Ln=B6(it.maskedLocation?it.maskedLocation.publicHref:it.publicHref,it.maskedLocation?it.maskedLocation.external:it.external,n.history,N),ue=O6(Ln,c,n.protocolAllowlist);return[Ln?.href,ue,L6(rt,it,ye,n.basepath,K,ue!==void 0)]},[ye,N,K,he,n,c]),[Te,ve,Me]=ui(n.stores.location,we,R6),Le=Me?ol(s,{})??I6:Ym,Be=Me?Ym:ol(l,{})??Ym,Ve=[D,Le.className,Be.className].filter(Boolean).join(" "),tt=(w||Le.style||Be.style)&&{...w,...Le.style,...Be.style},gt=C.useRef(!1),Tt=e.reloadDocument||ve||N?!1:d??n.options.defaultPreload,Yt=h??n.options.defaultPreloadDelay??0,pe=C.useCallback(()=>{n.preloadRoute(he).catch(rt=>{console.warn(rt),console.warn(d6)})},[n,he]),Ye=C.useCallback(rt=>{if(!rt){$m(i);return}if(!(rt.isIntersecting??Tt==="intent")){rt.isIntersecting===!1&&$m(i);return}if(!Yt){pe();return}Io.has(i)||Io.set(i,setTimeout(()=>{Io.delete(i),pe()},Yt))},[pe,i,Tt,Yt]);uN(i,Ye,Tt!=="viewport"),C.useEffect(()=>{gt.current||Tt==="render"&&(pe(),gt.current=!0)},[pe,Tt]);const _e=rt=>{const it=rt.currentTarget.getAttribute("target"),Ln=k!==void 0?k:it;!N&&!(rt.metaKey||rt.altKey||rt.ctrlKey||rt.shiftKey)&&!rt.defaultPrevented&&(!Ln||Ln==="_self")&&rt.button===0&&(rt.preventDefault(),n.navigate({...he,replace:E,resetScroll:v,hashScrollIntoView:p,startTransition:y,viewTransition:S,ignoreBlocker:Y}))};if(ve)return{...U,ref:i,href:ve,...A&&{children:A},...k&&{target:k},...N&&{disabled:N},...w&&{style:w},...D&&{className:D},...z&&{onClick:z},...L&&{onBlur:L},...P&&{onFocus:P},...H&&{onMouseEnter:H},...G&&{onMouseLeave:G},...j&&{onTouchStart:j}};const Ie=()=>{Tt==="intent"&&pe()},vt=()=>{Tt==="intent"&&$m(i)};return{...U,...Le,...Be,href:Te,ref:i,onClick:Ys([z,_e]),onBlur:Ys([L,vt]),onFocus:Ys([P,Ye]),onMouseEnter:Ys([H,Ye]),onMouseLeave:Ys([G,vt]),onTouchStart:Ys([j,Ie]),disabled:!!N,target:k,...tt&&{style:tt},...Ve&&{className:Ve},...N&&M6,...Me&&P6}}var Ym={},I6={className:"active"},M6={role:"link","aria-disabled":!0},P6={"data-status":"active","aria-current":"page"},Io=new WeakMap,$m=e=>{clearTimeout(Io.get(e)),Io.delete(e)},Ys=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function B6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function j6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Mv=C.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=D6(i,t),u=typeof i.children=="function"?i.children({isActive:l["data-status"]==="active"}):i.children;if(!n){const{disabled:c,...d}=l;return C.createElement("a",d,u)}return C.createElement(n,l,u)}),H6=class extends _v{constructor(e){super(e),this.useMatch=t=>Ja({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Iv({...t,from:this.id}),this.useSearch=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Ov({...t,from:this.id}),this.useLoaderData=t=>Rv({...t,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=ml.forwardRef((t,n)=>x.jsx(Mv,{ref:n,from:this.fullPath,...t}))}};function Ui(e){return new H6(e)}var U6=class extends h6{constructor(e){super(e),this.useMatch=t=>Ja({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Iv({...t,from:this.id}),this.useSearch=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Lv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Ov({...t,from:this.id}),this.useLoaderData=t=>Rv({...t,from:this.id}),this.useNavigate=()=>H0({from:this.fullPath}),this.Link=ml.forwardRef((t,n)=>x.jsx(Mv,{ref:n,from:this.fullPath,...t}))}};function z6(e){return new U6(e)}function F6(e){const t=hr(),n=`not-found-${ui(t.stores.location,i=>i.pathname)}-${ui(t.stores.status,i=>i)}`;return x.jsx(j0,{getResetKey:()=>n,onCatch:(i,s)=>{if(ul(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(ul(i))return e.fallback?.(i);throw i},children:e.children})}function q6(){return x.jsx("p",{children:"Not Found"})}function Zs(e){return x.jsx(x.Fragment,{children:e.children})}function Pv(e,t,n){return t.options.notFoundComponent?x.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...n}):x.jsx(q6,{})}function Gf(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?x.jsx(n,{}):null}var V6=(e,t)=>e[0]===t[0]&&e[1]===t[1],Bv=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,jv=C.memo(function({routeId:t}){const n=hr();return x.jsx(Y6,{router:n,match:ui(n.stores.getMatchStore(t),i=>i)})});function Y6({router:e,match:t}){const n=e.routesById[t.routeId],i=Gf(e,n),s=n.options.errorComponent??e.options.defaultErrorComponent,l=n.options.onCatch??e.options.defaultOnCatch,u=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,c=t.ssr===!1||t.ssr==="data-only",d=Bv(e,n,t.ssr)&&(n.options.wrapInSuspense??i??(n.options.errorComponent?.preload||c))?C.Suspense:Zs,h=s?j0:Zs,m=u?F6:Zs;return x.jsxs(n.isRoot?n.options.shellComponent??Zs:Zs,{children:[x.jsx($f.Provider,{value:t.routeId,children:x.jsx(d,{fallback:i,children:x.jsx(h,{getResetKey:()=>t,errorComponent:s,onCatch:(p,E)=>{if(ul(p))throw p.routeId??=t.routeId,p;l?.(p,E)},children:x.jsx(m,{fallback:p=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return C.createElement(u,p)},children:c?x.jsx(p6,{fallback:i,children:x.jsx(Rx,{match:t})}):x.jsx(Rx,{match:t})})})})}),null]})}var Rx=C.memo(function({match:t}){const n=hr(),i=t.routeId,s=n.routesById[i],l=C.useMemo(()=>{const c=(s.options.remountDeps??n.options.defaultRemountDeps)?.({routeId:i,loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return c?JSON.stringify(c):void 0},[i,t.loaderDeps,t._strictParams,t._strictSearch,s.options.remountDeps,n.options.defaultRemountDeps]),u=C.useMemo(()=>{const c=s.options.component??n.options.defaultComponent;return c?x.jsx(c,{},l):x.jsx(Hv,{})},[l,s.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!Bv(n,s,t.ssr))return u;if(n._tx)throw n._tx[5];return Gf(n,s)}if(t.status==="notFound")return Pv(n,s,t.error);if(t.status==="error")throw t.error;return u}),Hv=C.memo(function(){const t=hr(),n=C.useContext($f);let i,s,l;{const c=t.stores.getMatchStore(n);[i,s]=ui(c,d=>[!!d._notFound,d.error],V6),l=ui(t.stores.ids,d=>d[d.indexOf(n)+1])}if(i)return Pv(t,t.routesById[n],s);if(!l)return null;const u=x.jsx(jv,{routeId:l});return n===rl?x.jsx(C.Suspense,{fallback:Gf(t),children:u}):u});function Uv(e,t){const n=e[1];e.length=0,n?.(t)}function $6({t:e}){const t=hr(),n=t._rendered??=[];return t.startTransition=(i,s)=>new Promise(l=>{Uv(n,!1),n.push(s,l),e(t),C.startTransition(i)}),av(()=>{const i=t.history.subscribe(t.load);t.updateLatestLocation();const s=t.latestLocation,l=t.buildLocation({to:s.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(ri(s.publicHref)!==ri(l.publicHref))return t.commitLocation({...l,replace:!0,ignoreBlocker:!0}),i;const u=t.stores.resolvedLocation.get();return u?.href===s.href&&u.state.__TSR_key===s.state.__TSR_key?n.push(t.stores.matches.get(),c=>{c&&t.emit({type:"onRendered",...Vf(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),i},[t,t.history]),null}function G6(){const e=hr(),t=e.routesById[rl],n=Gf(e,t),i=e.ssr?Zs:C.Suspense,s=x.jsxs(x.Fragment,{children:[x.jsx($6,{t:C.useState()[1]}),x.jsx(i,{fallback:n,children:x.jsx(K6,{})})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:s}):s}function K6(){const e=hr(),t=e._rendered,n=ui(e.stores.matches,u=>t[0]??u),i=n[0],s=i?.routeId;av(()=>{t[0]===n&&Uv(t,!0)},[t,n]);const l=s?x.jsx(jv,{routeId:s}):null;return x.jsx($f.Provider,{value:s,children:e.options.disableGlobalCatchBoundary?l:x.jsx(j0,{getResetKey:()=>i,onCatch:void 0,children:l})})}var X6=e=>({createMutableStore:_x,createReadonlyStore:_x,batch:v6}),Q6=e=>new W6(e),W6=class extends JN{constructor(e){super(e,X6)}};function Z6({router:e,children:t,...n}){lv(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=x.jsx(Av.Provider,{value:e,children:t});return e.options.Wrap?x.jsx(e.options.Wrap,{children:i}):i}function J6({router:e,...t}){return x.jsx(Z6,{router:e,...t,children:x.jsx(G6,{})})}function eR(e){const t=hr({warn:e?.router===void 0}),n=e?.router||t;return ui(n.stores.__store,Nv(e,n))}const tR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zv=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var nR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const rR=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:u,...c},d)=>C.createElement("svg",{ref:d,...nR,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:zv("lucide",s),...c},[...u.map(([h,m])=>C.createElement(h,m)),...Array.isArray(l)?l:[l]]));const ut=(e,t)=>{const n=C.forwardRef(({className:i,...s},l)=>C.createElement(rR,{ref:l,iconNode:t,className:zv(`lucide-${tR(e)}`,i),...s}));return n.displayName=`${e}`,n};const Ox=ut("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);const iR=ut("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const Fv=ut("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);const aR=ut("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);const sR=ut("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);const Ia=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Bp=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const lR=ut("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const oR=ut("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const uR=ut("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const cR=ut("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);const Hc=ut("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const U0=ut("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);const Gm=ut("FileCog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3.2 12.9-.9-.4",key:"1i3dj5"}],["path",{d:"m3.2 15.1-.9.4",key:"1fvgj0"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.9 11.2-.4-.9",key:"otmhb9"}],["path",{d:"m4.9 16.8-.4.9",key:"1b8z07"}],["path",{d:"m7.5 10.3-.4.9",key:"11k65u"}],["path",{d:"m7.5 17.7-.4-.9",key:"431x55"}],["path",{d:"m9.7 12.5-.9.4",key:"87sjan"}],["path",{d:"m9.7 15.5-.9-.4",key:"khqm91"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);const Lx=ut("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const fR=ut("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const Uc=ut("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);const qv=ut("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);const Dx=ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const dR=ut("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);const Vv=ut("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const hR=ut("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);const mR=ut("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const pR=ut("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const ff=ut("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);const gR=ut("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);const Ix=ut("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const Yv=ut("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);const $v=ut("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const Ko=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ra=iv(),bR=Object.defineProperty,yR=(e,t)=>bR(e,"name",{value:t,configurable:!0});function jp(e,[t,n]){return Math.min(n,Math.max(t,e))}yR(jp,"clamp");var ER=Object.defineProperty,pl=(e,t)=>ER(e,"name",{value:t,configurable:!0}),Gv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dt(e,t,{checkForDefaultPrevented:n=!0}={}){return pl(function(s){if(e?.(s),n===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}pl(Dt,"composeEventHandlers");function xR(e){if(!Gv)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}pl(xR,"getOwnerWindow");function Hp(e){if(!Gv)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}pl(Hp,"getOwnerDocument");function Kv(e,t=!1){const{activeElement:n}=Hp(e);if(!n?.nodeName)return null;if(Xv(n)&&n.contentDocument)return Kv(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const s=Hp(n).getElementById(i);if(s)return s}}return n}pl(Kv,"getActiveElement");function Xv(e){return e.tagName==="IFRAME"}pl(Xv,"isFrame");var TR=Object.defineProperty,ir=(e,t)=>TR(e,"name",{value:t,configurable:!0});function vR(e,t){const n=C.createContext(t);n.displayName=e+"Context";const i=ir(l=>{const{children:u,...c}=l,d=C.useMemo(()=>c,Object.values(c));return x.jsx(n.Provider,{value:d,children:u})},"Provider");i.displayName=e+"Provider";function s(l,u={}){const{optional:c=!1}=u,d=C.useContext(n);if(d)return d;if(t!==void 0)return t;if(!c)throw new Error(`\`${l}\` must be used within \`${e}\``)}return ir(s,"useContext"),[i,s]}ir(vR,"createContext");function iu(e,t=[]){let n=[];function i(l,u){const c=C.createContext(u);c.displayName=l+"Context";const d=n.length;n=[...n,u];const h=ir(p=>{const{scope:E,children:y,...v}=p,S=E?.[e]?.[d]||c,A=C.useMemo(()=>v,Object.values(v));return x.jsx(S.Provider,{value:A,children:y})},"Provider");h.displayName=l+"Provider";function m(p,E,y={}){const{optional:v=!1}=y,S=E?.[e]?.[d]||c,A=C.useContext(S);if(A)return A;if(u!==void 0)return u;if(!v)throw new Error(`\`${p}\` must be used within \`${l}\``)}return ir(m,"useContext"),[h,m]}ir(i,"createContext");const s=ir(()=>{const l=n.map(u=>C.createContext(u));return ir(function(c){const d=c?.[e]||l;return C.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])},"useScope")},"createScope");return s.scopeName=e,[i,Qv(s,...t)]}ir(iu,"createContextScope");function Qv(...e){const t=e[0];if(e.length===1)return t;const n=ir(()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return ir(function(l){const u=i.reduce((c,{useScope:d,scopeName:h})=>{const p=d(l)[`__scope${h}`];return{...c,...p}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}ir(Qv,"composeContextScopes");var SR=Object.defineProperty,z0=(e,t)=>SR(e,"name",{value:t,configurable:!0});function Up(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}z0(Up,"setRef");function Wv(...e){return t=>{let n=!1;const i=e.map(s=>{const l=Up(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():Up(e[s],null)}}}}z0(Wv,"composeRefs");function Mt(...e){return C.useCallback(Wv(...e),e)}z0(Mt,"useComposedRefs");var _R=Object.defineProperty,mr=(e,t)=>_R(e,"name",{value:t,configurable:!0});function Va(e){const t=C.forwardRef((n,i)=>{let{children:s,...l}=n,u=null,c=!1;const d=[];zp(s)&&typeof zc=="function"&&(s=zc(s._payload)),C.Children.forEach(s,E=>{if(tS(E)){c=!0;const y=E;let v="child"in y.props?y.props.child:y.props.children;zp(v)&&typeof zc=="function"&&(v=zc(v._payload)),u=AR(y,v),d.push(u?.props?.children)}else d.push(E)}),u?u=C.cloneElement(u,void 0,d):!c&&C.Children.count(s)===1&&C.isValidElement(s)&&(u=s);const h=u?eS(u):void 0,m=Mt(i,h);if(!u){if(s||s===0)throw new Error(c?NR(e):wR(e));return s}const p=Jv(l,u.props??{});return u.type!==C.Fragment&&(p.ref=i?m:h),C.cloneElement(u,p)});return t.displayName=`${e}.Slot`,t}mr(Va,"createSlot");var Zv=Symbol.for("radix.slottable");function CR(e){const t=mr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Zv,t}mr(CR,"createSlottable");var AR=mr((e,t)=>{if("child"in e.props){const n=e.props.child;return C.isValidElement(n)?C.cloneElement(n,void 0,e.props.children(n.props.children)):null}return C.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Jv(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...c)=>{const d=l(...c);return s(...c),d}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}mr(Jv,"mergeProps");function eS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}mr(eS,"getElementRef");function tS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zv}mr(tS,"isSlottable");var kR=Symbol.for("react.lazy");function zp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kR&&"_payload"in e&&nS(e._payload)}mr(zp,"isLazyComponent");function nS(e){return typeof e=="object"&&e!==null&&"then"in e}mr(nS,"isPromiseLike");var wR=mr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),NR=mr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),zc=ru[" use ".trim().toString()],RR=Object.defineProperty,Qt=(e,t)=>RR(e,"name",{value:t,configurable:!0});function rS(e){const t=e+"CollectionProvider",[n,i]=iu(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=Qt(S=>{const{scope:A,children:k}=S,N=C.useRef(null),w=C.useRef(new Map).current;return x.jsx(s,{scope:A,itemMap:w,collectionRef:N,children:k})},"CollectionProvider");u.displayName=t;const c=e+"CollectionSlot",d=Va(c),h=C.forwardRef((S,A)=>{const{scope:k,children:N}=S,w=l(c,k),D=Mt(A,w.collectionRef);return x.jsx(d,{ref:D,children:N})});h.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",E=Va(m),y=C.forwardRef((S,A)=>{const{scope:k,children:N,...w}=S,D=C.useRef(null),z=Mt(A,D),L=l(m,k);return C.useEffect(()=>(L.itemMap.set(D,{ref:D,...w}),()=>{L.itemMap.delete(D)})),x.jsx(E,{[p]:"",ref:z,children:N})});y.displayName=m;function v(S){const A=l(e+"CollectionConsumer",S);return C.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const w=Array.from(N.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((L,P)=>w.indexOf(L.ref.current)-w.indexOf(P.ref.current))},[A.collectionRef,A.itemMap])}return Qt(v,"useCollection"),[{Provider:u,Slot:h,ItemSlot:y},v,i]}Qt(rS,"createCollection");var Mx=new WeakMap,Ut,Fn,Km=(Fn=class extends Map{constructor(n){super(n);VE(this,Ut);Om(this,Ut,[...super.keys()]),Mx.set(this,!0)}set(n,i){return Mx.get(this)&&(this.has(n)?sn(this,Ut)[sn(this,Ut).indexOf(n)]=n:sn(this,Ut).push(n)),super.set(n,i),this}insert(n,i,s){const l=this.has(i),u=sn(this,Ut).length,c=F0(n);let d=c>=0?c:u+c;const h=d<0||d>=u?-1:d;if(h===this.size||l&&h===this.size-1||h===-1)return this.set(i,s),this;const m=this.size+(l?0:1);c<0&&d++;const p=[...sn(this,Ut)];let E,y=!1;for(let v=d;v<m;v++)if(d===v){let S=p[v];p[v]===i&&(S=p[v+1]),l&&this.delete(i),E=this.get(S),this.set(i,s)}else{!y&&p[v-1]===i&&(y=!0);const S=p[y?v:v-1],A=E;E=this.get(S),this.delete(S),this.set(S,A)}return this}with(n,i,s){const l=new Fn(this);return l.insert(n,i,s),l}before(n){const i=sn(this,Ut).indexOf(n)-1;if(!(i<0))return this.entryAt(i)}setBefore(n,i,s){const l=sn(this,Ut).indexOf(n);return l===-1?this:this.insert(l,i,s)}after(n){let i=sn(this,Ut).indexOf(n);if(i=i===-1||i===this.size-1?-1:i+1,i!==-1)return this.entryAt(i)}setAfter(n,i,s){const l=sn(this,Ut).indexOf(n);return l===-1?this:this.insert(l+1,i,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Om(this,Ut,[]),super.clear()}delete(n){const i=super.delete(n);return i&&sn(this,Ut).splice(sn(this,Ut).indexOf(n),1),i}deleteAt(n){const i=this.keyAt(n);return i!==void 0?this.delete(i):!1}at(n){const i=df(sn(this,Ut),n);if(i!==void 0)return this.get(i)}entryAt(n){const i=df(sn(this,Ut),n);if(i!==void 0)return[i,this.get(i)]}indexOf(n){return sn(this,Ut).indexOf(n)}keyAt(n){return df(sn(this,Ut),n)}from(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(n,i){const s=this.indexOf(n);if(s===-1)return;let l=s+i;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return l;s++}}findIndex(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return s;s++}return-1}filter(n,i){const s=[];let l=0;for(const u of this)Reflect.apply(n,i,[u,l,this])&&s.push(u),l++;return new Fn(s)}map(n,i){const s=[];let l=0;for(const u of this)s.push([u[0],Reflect.apply(n,i,[u,l,this])]),l++;return new Fn(s)}reduce(...n){const[i,s]=n;let l=0,u=s??this.at(0);for(const c of this)l===0&&n.length===1?u=c:u=Reflect.apply(i,this,[u,c,l,this]),l++;return u}reduceRight(...n){const[i,s]=n;let l=s??this.at(-1);for(let u=this.size-1;u>=0;u--){const c=this.at(u);u===this.size-1&&n.length===1?l=c:l=Reflect.apply(i,this,[l,c,u,this])}return l}toSorted(n){const i=[...this.entries()].sort(n);return new Fn(i)}toReversed(){const n=new Fn;for(let i=this.size-1;i>=0;i--){const s=this.keyAt(i),l=this.get(s);n.set(s,l)}return n}toSpliced(...n){const i=[...this.entries()];return i.splice(...n),new Fn(i)}slice(n,i){const s=new Fn;let l=this.size-1;if(n===void 0)return s;n<0&&(n=n+this.size),i!==void 0&&i>0&&(l=i-1);for(let u=n;u<=l;u++){const c=this.keyAt(u),d=this.get(c);s.set(c,d)}return s}every(n,i){let s=0;for(const l of this){if(!Reflect.apply(n,i,[l,s,this]))return!1;s++}return!0}some(n,i){let s=0;for(const l of this){if(Reflect.apply(n,i,[l,s,this]))return!0;s++}return!1}},Ut=new WeakMap,Qt(Fn,"OrderedDict"),Fn);function df(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=iS(e,t);return n===-1?void 0:e[n]}Qt(df,"at");function iS(e,t){const n=e.length,i=F0(t),s=i>=0?i:n+i;return s<0||s>=n?-1:s}Qt(iS,"toSafeIndex");function F0(e){return e!==e||e===0?0:Math.trunc(e)}Qt(F0,"toSafeInteger");function OR(e){const t=e+"CollectionProvider",[n,i]=iu(t),[s,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Km,setItemMap:Qt(()=>{},"setItemMap")}),u=Qt(({state:w,...D})=>w?x.jsx(d,{...D,state:w}):x.jsx(c,{...D}),"CollectionProvider");u.displayName=t;const c=Qt(w=>{const D=A();return x.jsx(d,{...w,state:D})},"CollectionInit");c.displayName=t+"Init";const d=Qt(w=>{const{scope:D,children:z,state:L}=w,P=C.useRef(null),[H,G]=C.useState(null),j=Mt(P,G),[Y,W]=L;return C.useEffect(()=>{if(!H)return;const se=lS(()=>{});return se.observe(H,{childList:!0,subtree:!0}),()=>{se.disconnect()}},[H]),x.jsx(s,{scope:D,itemMap:Y,setItemMap:W,collectionRef:j,collectionRefObject:P,collectionElement:H,children:z})},"CollectionProviderImpl");d.displayName=t+"Impl";const h=e+"CollectionSlot",m=Va(h),p=C.forwardRef((w,D)=>{const{scope:z,children:L}=w,P=l(h,z),H=Mt(D,P.collectionRef);return x.jsx(m,{ref:H,children:L})});p.displayName=h;const E=e+"CollectionItemSlot",y="data-radix-collection-item",v=Va(E),S=C.forwardRef((w,D)=>{const{scope:z,children:L,...P}=w,H=C.useRef(null),[G,j]=C.useState(null),Y=Mt(D,H,j),W=l(E,z),{setItemMap:se}=W,le=C.useRef(P);aS(le.current,P)||(le.current=P);const ne=le.current;return C.useEffect(()=>{const V=ne;return se(X=>G?X.has(G)?X.set(G,{...V,element:G}).toSorted(Fp):(X.set(G,{...V,element:G}),X.toSorted(Fp)):X),()=>{se(X=>!G||!X.has(G)?X:(X.delete(G),new Km(X)))}},[G,ne,se]),x.jsx(v,{[y]:"",ref:Y,children:L})});S.displayName=E;function A(){return C.useState(new Km)}Qt(A,"useInitCollection");function k(w){const{itemMap:D}=l(e+"CollectionConsumer",w);return D}return Qt(k,"useCollection"),[{Provider:u,Slot:p,ItemSlot:S},{createCollectionScope:i,useCollection:k,useInitCollection:A}]}Qt(OR,"createCollection");function aS(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const s of n)if(!Object.prototype.hasOwnProperty.call(t,s)||e[s]!==t[s])return!1;return!0}Qt(aS,"shallowEqual");function sS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Qt(sS,"isElementPreceding");function Fp(e,t){return!e[1].element||!t[1].element?0:sS(e[1].element,t[1].element)?-1:1}Qt(Fp,"sortByDocumentPosition");function lS(e){return new MutationObserver(n=>{for(const i of n)if(i.type==="childList"){e();return}})}Qt(lS,"getChildListObserver");var LR=Object.defineProperty,DR=(e,t)=>LR(e,"name",{value:t,configurable:!0}),IR=C.createContext(void 0);function oS(e){const t=C.useContext(IR);return e||t||"ltr"}DR(oS,"useDirection");var MR=Object.defineProperty,PR=(e,t)=>MR(e,"name",{value:t,configurable:!0}),BR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yn=BR.reduce((e,t)=>{const n=Va(`Primitive.${t}`),i=C.forwardRef((s,l)=>{const{asChild:u,...c}=s,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function uS(e,t){e&&ra.flushSync(()=>e.dispatchEvent(t))}PR(uS,"dispatchDiscreteCustomEvent");var jR=Object.defineProperty,HR=(e,t)=>jR(e,"name",{value:t,configurable:!0});function Nr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}HR(Nr,"useCallbackRef");var UR=Object.defineProperty,Xt=(e,t)=>UR(e,"name",{value:t,configurable:!0}),qp="dismissableLayer.update",zR="dismissableLayer.pointerDownOutside",FR="dismissableLayer.focusOutside",Px,cS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),qR=C.forwardRef(Xt(function(t,n){const{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...m}=t,p=C.useContext(cS),[E,y]=C.useState(null),v=E?.ownerDocument??globalThis?.document,[,S]=C.useState({}),A=Mt(n,y),k=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=N?k.indexOf(N):-1,D=E?k.indexOf(E):-1,z=p.layersWithOutsidePointerEventsDisabled.size>0,L=D>=w,P=C.useRef(!1),H=fS(W=>{u?.(W),d?.(W),W.defaultPrevented||h?.()},{ownerDocument:v,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(W=>{if(!(W instanceof Node))return!1;const se=[...p.branches].some(le=>le.contains(W));return L&&!se},[p.branches,L])}),G=dS(W=>{if(s&&P.current)return;const se=W.target;[...p.branches].some(ne=>ne.contains(se))||(c?.(W),d?.(W),W.defaultPrevented||h?.())},v),j=E?D===k.length-1:!1,Y=Nr(W=>{W.key==="Escape"&&(l?.(W),!W.defaultPrevented&&h&&(W.preventDefault(),h()))});return C.useEffect(()=>{if(j)return v.addEventListener("keydown",Y,{capture:!0}),()=>v.removeEventListener("keydown",Y,{capture:!0})},[v,j,Y]),C.useEffect(()=>{if(E)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Px=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(E)),p.layers.add(E),Vp(),()=>{i&&(p.layersWithOutsidePointerEventsDisabled.delete(E),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Px))}},[E,v,i,p]),C.useEffect(()=>()=>{E&&(p.layers.delete(E),p.layersWithOutsidePointerEventsDisabled.delete(E),Vp())},[E,p]),C.useEffect(()=>{const W=Xt(()=>S({}),"handleUpdate");return document.addEventListener(qp,W),()=>document.removeEventListener(qp,W)},[]),x.jsx(yn.div,{...m,ref:A,style:{pointerEvents:z?L?"auto":"none":void 0,...t.style},onFocusCapture:Dt(t.onFocusCapture,G.onFocusCapture),onBlurCapture:Dt(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Dt(t.onPointerDownCapture,H.onPointerDownCapture)})},"DismissableLayer"));function VR(){const e=C.useContext(cS),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Xt(VR,"useDismissableLayerSurface");var YR=Xt(()=>!0,"IS_TRUE");function fS(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=YR}=t,c=Nr(e),d=C.useRef(!1),h=C.useRef(!1),m=C.useRef(new Map),p=C.useRef(()=>{});return C.useEffect(()=>{function E(){h.current=!1,s.current=!1,m.current.clear()}Xt(E,"resetOutsideInteraction");function y(){return Array.from(m.current.values()).some(Boolean)}Xt(y,"isOutsideInteractionIntercepted");function v(w){if(!h.current)return;const D=w.target;D instanceof Node&&[...l].some(L=>L.contains(D))||m.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Xt(v,"handleInteractionCapture");function S(w){h.current&&m.current.set(w.type,!1)}Xt(S,"handleInteractionBubble");const A=Xt(w=>{if(w.target&&!d.current){let D=function(){n.removeEventListener("click",p.current);const L=y();E(),L||q0(zR,c,z,{discrete:!0})};if(Xt(D,"handleAndDispatchPointerDownOutsideEvent"),!u(w.target)){n.removeEventListener("click",p.current),E(),d.current=!1;return}const z={originalEvent:w};h.current=!0,s.current=i&&w.button===0,m.current.clear(),!i||w.button!==0?D():(n.removeEventListener("click",p.current),p.current=D,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),E();d.current=!1},"handlePointerDown"),k=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const w of k)n.addEventListener(w,v,!0),n.addEventListener(w,S);const N=window.setTimeout(()=>{n.addEventListener("pointerdown",A)},0);return()=>{window.clearTimeout(N),n.removeEventListener("pointerdown",A),n.removeEventListener("click",p.current);for(const w of k)n.removeEventListener(w,v,!0),n.removeEventListener(w,S)}},[n,c,i,s,l,u]),{onPointerDownCapture:Xt(()=>d.current=!0,"onPointerDownCapture")}}Xt(fS,"usePointerDownOutside");function dS(e,t=globalThis?.document){const n=Nr(e),i=C.useRef(!1);return C.useEffect(()=>{const s=Xt(l=>{l.target&&!i.current&&q0(FR,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:Xt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Xt(()=>i.current=!1,"onBlurCapture")}}Xt(dS,"useFocusOutside");function Vp(){const e=new CustomEvent(qp);document.dispatchEvent(e)}Xt(Vp,"dispatchUpdate");function q0(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?uS(s,l):s.dispatchEvent(l)}Xt(q0,"handleAndDispatchCustomEvent");var $R=Object.defineProperty,V0=(e,t)=>$R(e,"name",{value:t,configurable:!0}),Fc=0,$s=null;function GR(e){return Y0(),e.children}V0(GR,"FocusGuards");function Y0(){C.useEffect(()=>{$s||($s={start:Yp(),end:Yp()});const{start:e,end:t}=$s;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Fc++,()=>{Fc===1&&($s?.start.remove(),$s?.end.remove(),$s=null),Fc=Math.max(0,Fc-1)}},[])}V0(Y0,"useFocusGuards");function Yp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}V0(Yp,"createFocusGuard");var KR=Object.defineProperty,pn=(e,t)=>KR(e,"name",{value:t,configurable:!0}),Xm="focusScope.autoFocusOnMount",Qm="focusScope.autoFocusOnUnmount",Bx={bubbles:!1,cancelable:!0},XR=C.forwardRef(pn(function(t,n){const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[d,h]=C.useState(null),m=Nr(l),p=Nr(u),E=C.useRef(null),y=Mt(n,h),v=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(s){let A=function(D){if(v.paused||!d)return;const z=D.target;d.contains(z)?E.current=z:ni(E.current,{select:!0})},k=function(D){if(v.paused||!d)return;const z=D.relatedTarget;z!==null&&(d.contains(z)||ni(E.current,{select:!0}))},N=function(D){if(document.activeElement===document.body)for(const L of D)L.removedNodes.length>0&&ni(d)};pn(A,"handleFocusIn"),pn(k,"handleFocusOut"),pn(N,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",k);const w=new MutationObserver(N);return d&&w.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",k),w.disconnect()}}},[s,d,v.paused]),C.useEffect(()=>{if(d){jx.add(v);const A=document.activeElement;if(!d.contains(A)){const N=new CustomEvent(Xm,Bx);d.addEventListener(Xm,m),d.dispatchEvent(N),N.defaultPrevented||(hS(yS($0(d)),{select:!0}),document.activeElement===A&&ni(d))}return()=>{d.removeEventListener(Xm,m),setTimeout(()=>{const N=new CustomEvent(Qm,Bx);d.addEventListener(Qm,p),d.dispatchEvent(N),N.defaultPrevented||ni(A??document.body,{select:!0}),d.removeEventListener(Qm,p),jx.remove(v)},0)}}},[d,m,p,v]);const S=C.useCallback(A=>{if(!i&&!s||v.paused)return;const k=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(k&&N){const w=A.currentTarget,[D,z]=mS(w);D&&z?!A.shiftKey&&N===z?(A.preventDefault(),i&&ni(D,{select:!0})):A.shiftKey&&N===D&&(A.preventDefault(),i&&ni(z,{select:!0})):N===w&&A.preventDefault()}},[i,s,v.paused]);return x.jsx(yn.div,{tabIndex:-1,...c,ref:y,onKeyDown:S})},"FocusScope"));function hS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ni(i,{select:t}),document.activeElement!==n)return}pn(hS,"focusFirst");function mS(e){const t=$0(e),n=$p(t,e),i=$p(t.reverse(),e);return[n,i]}pn(mS,"getTabbableEdges");function $0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:pn(i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}pn($0,"getTabbableCandidates");function $p(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of e)if(!(n?!i.checkVisibility({checkVisibilityCSS:!0}):pS(i,{upTo:t})))return i}pn($p,"findVisible");function pS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}pn(pS,"isHidden");function gS(e){return e instanceof HTMLInputElement&&"select"in e}pn(gS,"isSelectableInput");function ni(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gS(e)&&t&&e.select()}}pn(ni,"focus");var jx=bS();function bS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Gp(e,t),e.unshift(t)},remove(t){e=Gp(e,t),e[0]?.resume()}}}pn(bS,"createFocusScopesStack");function Gp(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}pn(Gp,"arrayRemove");function yS(e){return e.filter(t=>t.tagName!=="A")}pn(yS,"removeLinks");var Zt=globalThis?.document?C.useLayoutEffect:()=>{},QR=Object.defineProperty,WR=(e,t)=>QR(e,"name",{value:t,configurable:!0}),ZR=ru[" useId ".trim().toString()]||(()=>{}),JR=0;function G0(e){const[t,n]=C.useState(ZR());return Zt(()=>{e||n(i=>i??String(JR++))},[e]),e||(t?`radix-${t}`:"")}WR(G0,"useId");const e4=["top","right","bottom","left"],ea=Math.min,li=Math.max,kf=Math.round,qc=Math.floor,oi=e=>({x:e,y:e}),t4={left:"right",right:"left",bottom:"top",top:"bottom"};function ES(e,t,n){return li(e,ea(t,n))}function ci(e,t){return typeof e=="function"?e(t):e}function ta(e){return e.split("-")[0]}function gl(e){return e.split("-")[1]}function K0(e){return e==="x"?"y":"x"}function X0(e){return e==="y"?"height":"width"}function kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Q0(e){return K0(kr(e))}function n4(e,t,n){n===void 0&&(n=!1);const i=gl(e),s=Q0(e),l=X0(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=wf(u)),[u,wf(u)]}function r4(e){const t=wf(e);return[Kp(e),t,Kp(t)]}function Kp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Hx=["left","right"],Ux=["right","left"],i4=["top","bottom"],a4=["bottom","top"];function s4(e,t,n){switch(e){case"top":case"bottom":return n?t?Ux:Hx:t?Hx:Ux;case"left":case"right":return t?i4:a4;default:return[]}}function l4(e,t,n,i){const s=gl(e);let l=s4(ta(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(Kp)))),l}function wf(e){const t=ta(e);return t4[t]+e.slice(t.length)}function o4(e){var t,n,i,s;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(i=e.bottom)!=null?i:0,left:(s=e.left)!=null?s:0}}function xS(e){return typeof e!="number"?o4(e):{top:e,right:e,bottom:e,left:e}}function Nf(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function zx(e,t,n){let{reference:i,floating:s}=e;const l=kr(t),u=Q0(t),c=X0(u),d=ta(t),h=l==="y",m=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,E=i[c]/2-s[c]/2;let y;switch(d){case"top":y={x:m,y:i.y-s.height};break;case"bottom":y={x:m,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-s.width,y:p};break;default:y={x:i.x,y:i.y}}const v=gl(t);return v&&(y[u]+=E*(v==="end"?1:-1)*(n&&h?-1:1)),y}async function u4(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:E=!1,padding:y=0}=ci(t,e),v=xS(y),A=c[E?p==="floating"?"reference":"floating":p],k=Nf(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(A)))==null||n?A:A.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),N=p==="floating"?{x:i,y:s,width:u.floating.width,height:u.floating.height}:u.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),D=await(l.isElement==null?void 0:l.isElement(w))&&await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1},z=Nf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(k.top-z.top+v.top)/D.y,bottom:(z.bottom-k.bottom+v.bottom)/D.y,left:(k.left-z.left+v.left)/D.x,right:(z.right-k.right+v.right)/D.x}}const c4=50,f4=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,c=u.detectOverflow?u:{...u,detectOverflow:u4},d=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:p}=zx(h,i,d),E=i,y=0;const v={};for(let S=0;S<l.length;S++){const A=l[S];if(!A)continue;const{name:k,fn:N}=A,{x:w,y:D,data:z,reset:L}=await N({x:m,y:p,initialPlacement:i,placement:E,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:e,floating:t}});m=w??m,p=D??p,v[k]={...v[k],...z},L&&y<c4&&(y++,typeof L=="object"&&(L.placement&&(E=L.placement),L.rects&&(h=L.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):L.rects),{x:m,y:p}=zx(h,E,d)),S=-1)}return{x:m,y:p,placement:E,strategy:s,middlewareData:v}},d4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:u,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=ci(e,t)||{};if(h==null)return{};const p=xS(m),E={x:n,y:i},y=Q0(s),v=X0(y),S=await u.getDimensions(h),A=y==="y",k=A?"top":"left",N=A?"bottom":"right",w=A?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[y]-E[y]-l.floating[v],z=E[y]-l.reference[y],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let P=L?L[w]:0;(!P||!await(u.isElement==null?void 0:u.isElement(L)))&&(P=c.floating[w]||l.floating[v]);const H=D/2-z/2,G=P/2-S[v]/2-1,j=ea(p[k],G),Y=ea(p[N],G),W=P-S[v]-Y,se=P/2-S[v]/2+H,le=ES(j,se,W),ne=!d.arrow&&gl(s)!=null&&se!==le&&l.reference[v]/2-(se<j?j:Y)-S[v]/2<0,V=ne?se<j?se-j:se-W:0;return{[y]:E[y]+V,data:{[y]:le,centerOffset:se-le-V,...ne&&{alignmentOffset:V}},reset:ne}}}),h4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:E,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...A}=ci(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const k=ta(s),N=kr(c),w=ta(c)===c,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),z=E||(w||!S?[wf(c)]:r4(c)),L=v!=="none";!E&&L&&z.push(...l4(c,S,v,D));const P=[c,...z],H=await d.detectOverflow(t,A),G=[];let j=((i=l.flip)==null?void 0:i.overflows)||[];if(m&&G.push(H[k]),p){const le=n4(s,u,D);G.push(H[le[0]],H[le[1]])}if(j=[...j,{placement:s,overflows:G}],!G.every(le=>le<=0)){var Y,W;const le=(((Y=l.flip)==null?void 0:Y.index)||0)+1,ne=P[le];if(ne&&(!(p==="alignment"?N!==kr(ne):!1)||j.every(re=>kr(re.placement)===N?re.overflows[0]>0:!0)))return{data:{index:le,overflows:j},reset:{placement:ne}};let V=(W=j.filter(X=>X.overflows[0]<=0).sort((X,re)=>X.overflows[1]-re.overflows[1])[0])==null?void 0:W.placement;if(!V)switch(y){case"bestFit":{var se;const X=(se=j.filter(re=>{if(L){const Ee=kr(re.placement);return Ee===N||Ee==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(Ee=>Ee>0).reduce((Ee,R)=>Ee+R,0)]).sort((re,Ee)=>re[1]-Ee[1])[0])==null?void 0:se[0];X&&(V=X);break}case"initialPlacement":V=c;break}if(s!==V)return{reset:{placement:V}}}return{}}}};function Fx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qx(e){return e4.some(t=>e[t]>=0)}const m4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:s="referenceHidden",...l}=ci(e,t);switch(s){case"referenceHidden":{const u=await i.detectOverflow(t,{...l,elementContext:"reference"}),c=Fx(u,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qx(c)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),c=Fx(u,n.floating);return{data:{escapedOffsets:c,escaped:qx(c)}}}default:return{}}}}},TS=new Set(["left","top"]);async function p4(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ta(n),c=gl(n),d=kr(n)==="y",h=TS.has(u)?-1:1,m=l&&d?-1:1,p=ci(t,e);let{mainAxis:E,crossAxis:y,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof v=="number"&&(y=c==="end"?v*-1:v),d?{x:y*m,y:E*h}:{x:E*h,y:y*m}}const g4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:u,middlewareData:c}=t,d=await p4(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:s+d.x,y:l+d.y,data:{...d,placement:u}}}}},b4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:l}=t,{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:N=>{let{x:w,y:D}=N;return{x:w,y:D}}},...h}=ci(e,t),m={x:n,y:i},p=await l.detectOverflow(t,h),E=kr(s),y=K0(E);let v=m[y],S=m[E];const A=(N,w)=>ES(w+p[N==="y"?"top":"left"],w,w-p[N==="y"?"bottom":"right"]);u&&(v=A(y,v)),c&&(S=A(E,S));const k=d.fn({...t,[y]:v,[E]:S});return{...k,data:{x:k.x-n,y:k.y-i,enabled:{[y]:u,[E]:c}}}}}},y4=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,i;const{x:s,y:l,placement:u,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:m=!0,crossAxis:p=!0}=ci(e,t),E={x:s,y:l},y=kr(u),v=K0(y);let S=E[v],A=E[y];const k=ci(h,t),N=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(n=k.mainAxis)!=null?n:0,crossAxis:(i=k.crossAxis)!=null?i:0};if(m){const z=v==="y"?"height":"width",L=c.reference[v]-c.floating[z]+N.mainAxis,P=c.reference[v]+c.reference[z]-N.mainAxis;S<L?S=L:S>P&&(S=P)}if(p){var w,D;const z=v==="y"?"width":"height",L=TS.has(ta(u)),P=c.reference[y]-c.floating[z]+(L&&((w=d.offset)==null?void 0:w[y])||0)+(L?0:N.crossAxis),H=c.reference[y]+c.reference[z]+(L?0:((D=d.offset)==null?void 0:D[y])||0)-(L?N.crossAxis:0);A<P?A=P:A>H&&(A=H)}return{[v]:S,[y]:A}}}},E4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:l}=t,{apply:u=()=>{},...c}=ci(e,t),d=await s.detectOverflow(t,c),h=ta(n),m=gl(n),p=kr(n)==="y",{width:E,height:y}=i.floating;let v,S;h==="top"||h==="bottom"?(v=h,S=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,v=m==="end"?"top":"bottom");const A=y-d.top-d.bottom,k=E-d.left-d.right,N=ea(y-d[v],A),w=ea(E-d[S],k),D=t.middlewareData.shift,z=!D;let L=N,P=w;D!=null&&D.enabled.x&&(P=k),D!=null&&D.enabled.y&&(L=A),z&&!m&&(p?P=E-2*li(d.left,d.right):L=y-2*li(d.top,d.bottom)),await u({...t,availableWidth:P,availableHeight:L});const H=await s.getDimensions(l.floating);return E!==H.width||y!==H.height?{reset:{rects:!0}}:{}}}};function Kf(){return typeof window<"u"}function bl(e){return vS(e)?(e.nodeName||"").toLowerCase():"#document"}function Rn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hi(e){var t;return(t=(vS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vS(e){return Kf()?e instanceof Node||e instanceof Rn(e).Node:!1}function Rr(e){return Kf()?e instanceof Element||e instanceof Rn(e).Element:!1}function ia(e){return Kf()?e instanceof HTMLElement||e instanceof Rn(e).HTMLElement:!1}function Vx(e){return!Kf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Rn(e).ShadowRoot}function Xf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Or(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function x4(e){return/^(table|td|th)$/.test(bl(e))}function Qf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const T4=/transform|translate|scale|rotate|perspective|filter/,v4=/paint|layout|strict|content/,wa=e=>!!e&&e!=="none";let Wm;function W0(e){const t=Rr(e)?Or(e):e;return wa(t.transform)||wa(t.translate)||wa(t.scale)||wa(t.rotate)||wa(t.perspective)||!Z0()&&(wa(t.backdropFilter)||wa(t.filter))||T4.test(t.willChange||"")||v4.test(t.contain||"")}function S4(e){let t=Ya(e);for(;ia(t)&&!Xo(t);){if(W0(t))return t;if(Qf(t))return null;t=Ya(t)}return null}function Z0(){return Wm==null&&(Wm=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wm}function Xo(e){return/^(html|body|#document)$/.test(bl(e))}function Or(e){return Rn(e).getComputedStyle(e)}function Wf(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ya(e){if(bl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vx(e)&&e.host||hi(e);return Vx(t)?t.host:t}function SS(e){const t=Ya(e);return Xo(t)?(e.ownerDocument||e).body:ia(t)&&Xf(t)?t:SS(t)}function Qo(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=SS(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),u=Rn(s);if(l){const c=Xp(u);return t.concat(u,u.visualViewport||[],Xf(s)?s:[],c&&n?Qo(c):[])}else return t.concat(s,Qo(s,[],n))}function Xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _S(e){const t=Or(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=ia(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:i,c=kf(n)!==l||kf(i)!==u;return c&&(n=l,i=u),{width:n,height:i,$:c}}function J0(e){return Rr(e)?e:e.contextElement}function al(e){const t=J0(e);if(!ia(t))return oi(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=_S(t);let u=(l?kf(n.width):n.width)/i,c=(l?kf(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const _4=oi(0);function CS(e){const t=Rn(e);return!Z0()||!t.visualViewport?_4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Rn(e)}function $a(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=J0(e);let u=oi(1);t&&(i?Rr(i)&&(u=al(i)):u=al(e));const c=C4(l,n,i)?CS(l):oi(0);let d=(s.left+c.x)/u.x,h=(s.top+c.y)/u.y,m=s.width/u.x,p=s.height/u.y;if(l&&i){const E=Rn(l),y=Rr(i)?Rn(i):i;let v=E,S=Xp(v);for(;S&&y!==v;){const A=al(S),k=S.getBoundingClientRect(),N=Or(S),w=k.left+(S.clientLeft+parseFloat(N.paddingLeft))*A.x,D=k.top+(S.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,p*=A.y,d+=w,h+=D,v=Rn(S),S=Xp(v)}}return Nf({width:m,height:p,x:d,y:h})}function Zf(e,t){const n=Wf(e).scrollLeft;return t?t.left+n:$a(hi(e)).left+n}function AS(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Zf(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function A4(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",u=hi(i),c=t?Qf(t.floating):!1;if(i===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=oi(1);const m=oi(0),p=ia(i);if((p||!l)&&((bl(i)!=="body"||Xf(u))&&(d=Wf(i)),p)){const y=$a(i);h=al(i),m.x=y.x+i.clientLeft,m.y=y.y+i.clientTop}const E=u&&!p&&!l?AS(u,d):oi(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+E.x,y:n.y*h.y-d.scrollTop*h.y+m.y+E.y}}function k4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function w4(e){const t=Wf(e),n=e.ownerDocument.body,i=li(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=li(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+Zf(e);const u=-t.scrollTop;return Or(n).direction==="rtl"&&(l+=li(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:u}}const N4=25;function R4(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",s=Rn(e),l=hi(e),u=s.visualViewport;let c=l.clientWidth,d=l.clientHeight,h=0,m=0;if(u){const E=!Z0()||t==="fixed";i?E||(h=-u.offsetLeft,m=-u.offsetTop):(c=u.width,d=u.height,E&&(h=u.offsetLeft,m=u.offsetTop))}if(Zf(l)<=0){const E=l.ownerDocument,y=E.body,v=getComputedStyle(y),S=E.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,A=Math.abs(l.clientWidth-y.clientWidth-S),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?A/2:A;k<=N4&&(c-=k)}return{width:c,height:d,x:h,y:m}}function O4(e,t){const n=$a(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=al(e),u=e.clientWidth*l.x,c=e.clientHeight*l.y,d=s*l.x,h=i*l.y;return{width:u,height:c,x:d,y:h}}function Yx(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=R4(e,n,t);else if(t==="document")i=w4(hi(e));else if(Rr(t))i=O4(t,n);else{const s=CS(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Nf(i)}function L4(e,t){const n=t.get(e);if(n)return n;let i=Qo(e,[],!1).filter(c=>Rr(c)&&bl(c)!=="body"),s=null;const l=Or(e).position==="fixed";let u=l?Ya(e):e;for(;Rr(u)&&!Xo(u);){const c=Or(u),d=W0(u),h=s?s.position:l?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?i=i.filter(p=>p!==u):s=c,u=Ya(u)}return t.set(e,i),i}function D4(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const u=[...n==="clippingAncestors"?Qf(t)?[]:L4(t,this._c):[].concat(n),i],c=Yx(t,u[0],s);let d=c.top,h=c.right,m=c.bottom,p=c.left;for(let E=1;E<u.length;E++){const y=Yx(t,u[E],s);d=li(y.top,d),h=ea(y.right,h),m=ea(y.bottom,m),p=li(y.left,p)}return{width:h-p,height:m-d,x:p,y:d}}function I4(e){const{width:t,height:n}=_S(e);return{width:t,height:n}}function M4(e,t,n){const i=ia(t),s=hi(t),l=n==="fixed",u=$a(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=oi(0);if((i||!l)&&((bl(t)!=="body"||Xf(s))&&(c=Wf(t)),i)){const E=$a(t,!0,l,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}!i&&s&&(d.x=Zf(s));const h=s&&!i&&!l?AS(s,c):oi(0),m=u.left+c.scrollLeft-d.x-h.x,p=u.top+c.scrollTop-d.y-h.y;return{x:m,y:p,width:u.width,height:u.height}}function Zm(e){return Or(e).position==="static"}function $x(e,t){if(!ia(e)||Or(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hi(e)===n&&(n=n.ownerDocument.body),n}function kS(e,t){const n=Rn(e);if(Qf(e))return n;if(!ia(e)){let s=Ya(e);for(;s&&!Xo(s);){if(Rr(s)&&!Zm(s))return s;s=Ya(s)}return n}let i=$x(e,t);for(;i&&x4(i)&&Zm(i);)i=$x(i,t);return i&&Xo(i)&&Zm(i)&&!W0(i)?n:i||S4(e)||n}const P4=async function(e){const t=this.getOffsetParent||kS,n=this.getDimensions,i=await n(e.floating);return{reference:M4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function B4(e){return Or(e).direction==="rtl"}const j4={convertOffsetParentRelativeRectToViewportRelativeRect:A4,getDocumentElement:hi,getClippingRect:D4,getOffsetParent:kS,getElementRects:P4,getClientRects:k4,getDimensions:I4,getScale:al,isElement:Rr,isRTL:B4};function wS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H4(e,t,n){let i=null,s;const l=hi(e);function u(){var m;clearTimeout(s),(m=i)==null||m.disconnect(),i=null}function c(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),u();const E=e.getBoundingClientRect(),{left:y,top:v,width:S,height:A}=E;if(m||t(),!S||!A)return;const k=qc(v),N=qc(l.clientWidth-(y+S)),w=qc(l.clientHeight-(v+A)),D=qc(y),L={rootMargin:-k+"px "+-N+"px "+-w+"px "+-D+"px",threshold:li(0,ea(1,p))||1};let P=!0;function H(G){const j=G[0].intersectionRatio;if(!wS(E,e.getBoundingClientRect()))return c();if(j!==p){if(!P)return c();j?c(!1,j):s=setTimeout(()=>{c(!1,1e-7)},1e3)}P=!1}try{i=new IntersectionObserver(H,{...L,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,L)}i.observe(e)}const d=Rn(e),h=()=>c(n);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),u()}}function U4(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=J0(e),m=s||l?[...h?Qo(h):[],...t?Qo(t):[]]:[];m.forEach(k=>{s&&k.addEventListener("scroll",n),l&&k.addEventListener("resize",n)});const p=h&&c?H4(h,n,l):null;let E=-1,y=null;u&&(y=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),h&&!d&&y.observe(h),t&&y.observe(t));let v,S=d?$a(e):null;d&&A();function A(){const k=$a(e);S&&!wS(S,k)&&n(),S=k,v=requestAnimationFrame(A)}return n(),()=>{var k;m.forEach(N=>{s&&N.removeEventListener("scroll",n),l&&N.removeEventListener("resize",n)}),p?.(),(k=y)==null||k.disconnect(),y=null,d&&cancelAnimationFrame(v)}}const z4=g4,F4=b4,q4=h4,V4=E4,Y4=m4,Gx=d4,$4=y4,G4=(e,t,n)=>{const i=new Map,s=n??{},l={...j4,...s.platform,_c:i};return f4(e,t,{...s,platform:l})};var K4=typeof document<"u",X4=function(){},hf=K4?C.useLayoutEffect:X4;function Rf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Rf(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Rf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function NS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kx(e,t){const n=NS(e);return Math.round(t*n)/n}function Jm(e){const t=C.useRef(e);return hf(()=>{t.current=e}),t}function Q4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[m,p]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,y]=C.useState(i);Rf(E,i)||y(i);const[v,S]=C.useState(null),[A,k]=C.useState(null),N=C.useCallback(re=>{re!==L.current&&(L.current=re,S(re))},[]),w=C.useCallback(re=>{re!==P.current&&(P.current=re,k(re))},[]),D=l||v,z=u||A,L=C.useRef(null),P=C.useRef(null),H=C.useRef(m),G=d!=null,j=Jm(d),Y=Jm(s),W=Jm(h),se=C.useCallback(()=>{if(!L.current||!P.current)return;const re={placement:t,strategy:n,middleware:E};Y.current&&(re.platform=Y.current),G4(L.current,P.current,re).then(Ee=>{const R={...Ee,isPositioned:W.current!==!1};le.current&&!Rf(H.current,R)&&(H.current=R,ra.flushSync(()=>{p(R)}))})},[E,t,n,Y,W]);hf(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,p(re=>({...re,isPositioned:!1})))},[h]);const le=C.useRef(!1);hf(()=>(le.current=!0,()=>{le.current=!1}),[]),hf(()=>{if(D&&(L.current=D),z&&(P.current=z),D&&z){if(j.current)return j.current(D,z,se);se()}},[D,z,se,j,G]);const ne=C.useMemo(()=>({reference:L,floating:P,setReference:N,setFloating:w}),[N,w]),V=C.useMemo(()=>({reference:D,floating:z}),[D,z]),X=C.useMemo(()=>{const re={position:n,left:0,top:0};if(!V.floating)return re;const Ee=Kx(V.floating,m.x),R=Kx(V.floating,m.y);return c?{...re,transform:"translate("+Ee+"px, "+R+"px)",...NS(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:R}},[n,c,V.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:se,refs:ne,elements:V,floatingStyles:X}),[m,se,ne,V,X])}const W4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Gx({element:i.current,padding:s}).fn(n):{}:i?Gx({element:i,padding:s}).fn(n):{}}}},Z4=(e,t)=>{const n=z4(e);return{name:n.name,fn:n.fn,options:[e,t]}},J4=(e,t)=>{const n=F4(e);return{name:n.name,fn:n.fn,options:[e,t]}},eO=(e,t)=>({fn:$4(e).fn,options:[e,t]}),tO=(e,t)=>{const n=q4(e);return{name:n.name,fn:n.fn,options:[e,t]}},nO=(e,t)=>{const n=V4(e);return{name:n.name,fn:n.fn,options:[e,t]}},rO=(e,t)=>{const n=Y4(e);return{name:n.name,fn:n.fn,options:[e,t]}},iO=(e,t)=>{const n=W4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var aO=Object.defineProperty,sO=(e,t)=>aO(e,"name",{value:t,configurable:!0});function RS(e){const[t,n]=C.useState(void 0);return Zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let u,c;if("borderBoxSize"in l){const d=l.borderBoxSize,h=Array.isArray(d)?d[0]:d;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}sO(RS,"useSize");var lO=Object.defineProperty,Zi=(e,t)=>lO(e,"name",{value:t,configurable:!0}),OS="Popper",[LS,DS]=iu(OS),[oO,IS]=LS(OS),uO=Zi(e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null),[l,u]=C.useState(void 0);return x.jsx(oO,{scope:t,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:u,children:n})},"Popper"),cO="PopperAnchor",fO=C.forwardRef(Zi(function(t,n){const{__scopePopper:i,virtualRef:s,...l}=t,u=IS(cO,i),c=C.useRef(null),d=u.onAnchorChange,h=C.useCallback(S=>{c.current=S,S&&d(S)},[d]),m=Mt(n,h),p=C.useRef(null);C.useEffect(()=>{if(!s)return;const S=p.current;p.current=s.current,S!==p.current&&d(p.current)});const E=u.placementState&&Jf(u.placementState),y=E?.[0],v=E?.[1];return s?null:x.jsx(yn.div,{"data-radix-popper-side":y,"data-radix-popper-align":v,...l,ref:m})},"PopperAnchor")),MS="PopperContent",[dO,$q]=LS(MS),hO=C.forwardRef(Zi(function(t,n){const{__scopePopper:i,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:E="partial",hideWhenDetached:y=!1,updatePositionStrategy:v="optimized",onPlaced:S,...A}=t,k=IS(MS,i),[N,w]=C.useState(null),D=Mt(n,w),[z,L]=C.useState(null),P=RS(z),H=P?.width??0,G=P?.height??0,j=s+(u!=="center"?"-"+u:""),Y=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(m)?m:[m],se=W.length>0,le={padding:Y,boundary:W.filter(PS),altBoundary:se},{refs:ne,floatingStyles:V,placement:X,isPositioned:re,middlewareData:Ee}=Q4({strategy:"fixed",placement:j,whileElementsMounted:Zi((...ve)=>U4(...ve,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[Z4({mainAxis:l+G,alignmentAxis:c}),h&&J4({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?eO():void 0,...le}),h&&tO({...le}),nO({...le,apply:Zi(({elements:ve,rects:Me,availableWidth:Le,availableHeight:Be})=>{const{width:Ve,height:tt}=Me.reference,gt=ve.floating.style;gt.setProperty("--radix-popper-available-width",`${Le}px`),gt.setProperty("--radix-popper-available-height",`${Be}px`),gt.setProperty("--radix-popper-anchor-width",`${Ve}px`),gt.setProperty("--radix-popper-anchor-height",`${tt}px`)},"apply")}),z&&iO({element:z,padding:d}),mO({arrowWidth:H,arrowHeight:G}),y&&rO({strategy:"referenceHidden",...le,boundary:se?le.boundary:void 0})]}),R=k.setPlacementState;Zt(()=>(R(X),()=>{R(void 0)}),[X,R]);const[U,K]=Jf(X),I=Nr(S);Zt(()=>{re&&I?.()},[re,I]);const ge=Ee.arrow?.x,ye=Ee.arrow?.y,he=Ee.arrow?.centerOffset!==0,[we,Te]=C.useState();return Zt(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),x.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:re?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[Ee.transformOrigin?.x,Ee.transformOrigin?.y].join(" "),...Ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:x.jsx(dO,{scope:i,placedSide:U,placedAlign:K,onArrowChange:L,arrowX:ge,arrowY:ye,shouldHideArrow:he,children:x.jsx(yn.div,{"data-side":U,"data-align":K,...A,ref:D,style:{...A.style,animation:re?A.style?.animation:"none"}})})})},"PopperContent"));function PS(e){return e!==null}Zi(PS,"isNotNull");var mO=Zi(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,u=s.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[h,m]=Jf(n),p={start:"0%",center:"50%",end:"100%"}[m],E=(s.arrow?.x??0)+c/2,y=(s.arrow?.y??0)+d/2;let v="",S="";return h==="bottom"?(v=u?p:`${E}px`,S=`${-d}px`):h==="top"?(v=u?p:`${E}px`,S=`${i.floating.height+d}px`):h==="right"?(v=`${-d}px`,S=u?p:`${y}px`):h==="left"&&(v=`${i.floating.width+d}px`,S=u?p:`${y}px`),{data:{x:v,y:S}}}}),"transformOrigin");function Jf(e){const[t,n="center"]=e.split("-");return[t,n]}Zi(Jf,"getSideAndAlignFromPlacement");var pO=uO,gO=fO,bO=hO,yO=Object.defineProperty,EO=(e,t)=>yO(e,"name",{value:t,configurable:!0}),xO=C.forwardRef(EO(function(t,n){const{container:i,...s}=t,[l,u]=C.useState(!1);Zt(()=>u(!0),[]);const c=i||l&&globalThis?.document?.body;return c?ra.createPortal(x.jsx(yn.div,{...s,ref:n}),c):null},"Portal")),TO=Object.defineProperty,fi=(e,t)=>TO(e,"name",{value:t,configurable:!0});function BS(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}fi(BS,"useStateMachine");var vO=fi(e=>{const{present:t,children:n}=e,i=jS(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),l=HS(i.ref,US(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:l}):null},"Presence");function jS(e){const[t,n]=C.useState(),i=C.useRef(null),s=C.useRef(e),l=C.useRef("none"),u=C.useRef(void 0),c=e?"mounted":"unmounted",[d,h]=BS(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{d==="mounted"?(l.current=u.current??Js(i.current),u.current=void 0):l.current="none"},[d]),Zt(()=>{const m=i.current,p=s.current;if(p!==e){const y=l.current,v=Js(m);e?(u.current=v,h("MOUNT")):v==="none"||m?.display==="none"?h("UNMOUNT"):h(p&&y!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Zt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,E=fi(v=>{const A=Js(i.current).includes(CSS.escape(v.animationName));if(v.target===t&&A&&(h("ANIMATION_END"),!s.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},"handleAnimationEnd"),y=fi(v=>{v.target===t&&(l.current=Js(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(m=>{if(m){const p=getComputedStyle(m);i.current=p,u.current=Js(p)}else i.current=null;n(m)},[])}}fi(jS,"usePresence");function Qp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}fi(Qp,"setRef");function HS(...e){const t=C.useRef(e);return t.current=e,C.useCallback(n=>{const i=t.current;let s=!1;const l=i.map(u=>{const c=Qp(u,n);return!s&&typeof c=="function"&&(s=!0),c});if(s)return()=>{for(let u=0;u<l.length;u++){const c=l[u];typeof c=="function"?c():Qp(i[u],null)}}},[])}fi(HS,"useStableComposedRefs");function Js(e){return e?.animationName||"none"}fi(Js,"getAnimationName");function US(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fi(US,"getElementRef");var SO=Object.defineProperty,_O=(e,t)=>SO(e,"name",{value:t,configurable:!0}),Xx=ru[" useEffectEvent ".trim().toString()],Qx=ru[" useInsertionEffect ".trim().toString()];function zS(e){if(typeof Xx=="function")return Xx(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Qx=="function"?Qx(()=>{t.current=e}):Zt(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}_O(zS,"useEffectEvent");var CO=Object.defineProperty,au=(e,t)=>CO(e,"name",{value:t,configurable:!0}),AO=ru[" useInsertionEffect ".trim().toString()]||Zt;function Wp({prop:e,defaultProp:t,onChange:n=au(()=>{},"onChange"),caller:i}){const[s,l,u]=FS({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:s,h=C.useCallback(m=>{if(c){const p=qS(m)?m(e):m;p!==e&&u.current?.(p)}else l(m)},[c,e,l,u]);return[d,h]}au(Wp,"useControllableState");function FS({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return AO(()=>{l.current=t},[t]),C.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,i,l]}au(FS,"useUncontrolledState");function qS(e){return typeof e=="function"}au(qS,"isFunction");var Wx=Symbol("RADIX:SYNC_STATE");function kO(e,t,n,i){const{prop:s,defaultProp:l,onChange:u,caller:c}=t,d=s!==void 0,h=zS(u),m=[{...n,state:l}];i&&m.push(i);const[p,E]=C.useReducer((A,k)=>{if(k.type===Wx)return{...A,state:k.state};const N=e(A,k);return d&&!Object.is(N.state,A.state)&&h(N.state),N},...m),y=p.state,v=C.useRef(y);C.useEffect(()=>{v.current!==y&&(v.current=y,d||h(y))},[y,v,d]);const S=C.useMemo(()=>s!==void 0?{...p,state:s}:p,[p,s]);return C.useEffect(()=>{d&&!Object.is(s,p.state)&&E({type:Wx,state:s})},[s,p.state,d]),[S,E]}au(kO,"useControllableStateReducer");var wO=Object.defineProperty,NO=(e,t)=>wO(e,"name",{value:t,configurable:!0});function VS(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}NO(VS,"usePrevious");var RO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),OO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gs=new WeakMap,Vc=new WeakMap,Yc={},ep=0,YS=function(e){return e&&(e.host||YS(e.parentNode))},LO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=YS(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},DO=function(e,t,n,i){var s=LO(t,Array.isArray(e)?e:[e]);Yc[n]||(Yc[n]=new WeakMap);var l=Yc[n],u=[],c=new Set,d=new Set(s),h=function(p){!p||c.has(p)||(c.add(p),h(p.parentNode))};s.forEach(h);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(E){if(c.has(E))m(E);else try{var y=E.getAttribute(i),v=y!==null&&y!=="false",S=(Gs.get(E)||0)+1,A=(l.get(E)||0)+1;Gs.set(E,S),l.set(E,A),u.push(E),S===1&&v&&Vc.set(E,!0),A===1&&E.setAttribute(n,"true"),v||E.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",E,k)}})};return m(t),c.clear(),ep++,function(){u.forEach(function(p){var E=Gs.get(p)-1,y=l.get(p)-1;Gs.set(p,E),l.set(p,y),E||(Vc.has(p)||p.removeAttribute(i),Vc.delete(p)),y||p.removeAttribute(n)}),ep--,ep||(Gs=new WeakMap,Gs=new WeakMap,Vc=new WeakMap,Yc={})}},IO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=OO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),DO(i,s,n,"aria-hidden")):function(){return null}},Ar=function(){return Ar=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Ar.apply(this,arguments)};function $S(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function MO(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var mf="right-scroll-bar-position",pf="width-before-scroll-bar",PO="with-scroll-bars-hidden",BO="--removed-body-scroll-bar-size";function tp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jO(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var HO=typeof window<"u"?C.useLayoutEffect:C.useEffect,Zx=new WeakMap;function UO(e,t){var n=jO(null,function(i){return e.forEach(function(s){return tp(s,i)})});return HO(function(){var i=Zx.get(n);if(i){var s=new Set(i),l=new Set(e),u=n.current;s.forEach(function(c){l.has(c)||tp(c,null)}),l.forEach(function(c){s.has(c)||tp(c,u)})}Zx.set(n,e)},[e]),n}function zO(e){return e}function FO(e,t){t===void 0&&(t=zO);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,i);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){i=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(l),u=n}var d=function(){var m=u;u=[],m.forEach(l)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(m){u.push(m),h()},filter:function(m){return u=u.filter(m),n}}}};return s}function qO(e){e===void 0&&(e={});var t=FO(null);return t.options=Ar({async:!0,ssr:!1},e),t}var GS=function(e){var t=e.sideCar,n=$S(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,Ar({},n))};GS.isSideCarExport=!0;function VO(e,t){return e.useMedium(t),GS}var KS=qO(),np=function(){},ed=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:np,onWheelCapture:np,onTouchMoveCapture:np}),s=i[0],l=i[1],u=e.forwardProps,c=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,p=e.shards,E=e.sideCar,y=e.noRelative,v=e.noIsolation,S=e.inert,A=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,w=e.gapMode,D=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=E,L=UO([n,t]),P=Ar(Ar({},D),s);return C.createElement(C.Fragment,null,m&&C.createElement(z,{sideCar:KS,removeScrollBar:h,shards:p,noRelative:y,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:w}),u?C.cloneElement(C.Children.only(c),Ar(Ar({},P),{ref:L})):C.createElement(N,Ar({},P,{className:d,ref:L}),c))});ed.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ed.classNames={fullWidth:pf,zeroRight:mf};var YO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $O(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YO();return t&&e.setAttribute("nonce",t),e}function GO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function KO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$O())&&(GO(t,n),KO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QO=function(){var e=XO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},XS=function(){var e=QO(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},WO={left:0,top:0,right:0,gap:0},rp=function(e){return parseInt(e||"",10)||0},ZO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[rp(n),rp(i),rp(s)]},JO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return WO;var t=ZO(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},e5=XS(),sl="data-scroll-locked",t5=function(e,t,n,i){var s=e.left,l=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
10
|
-
.`.concat(PO,` {
|
|
11
|
-
overflow: hidden `).concat(i,`;
|
|
12
|
-
padding-right: `).concat(c,"px ").concat(i,`;
|
|
13
|
-
}
|
|
14
|
-
body[`).concat(sl,`] {
|
|
15
|
-
overflow: hidden `).concat(i,`;
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
18
|
-
padding-left: `.concat(s,`px;
|
|
19
|
-
padding-top: `).concat(l,`px;
|
|
20
|
-
padding-right: `).concat(u,`px;
|
|
21
|
-
margin-left:0;
|
|
22
|
-
margin-top:0;
|
|
23
|
-
margin-right: `).concat(c,"px ").concat(i,`;
|
|
24
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(mf,` {
|
|
28
|
-
right: `).concat(c,"px ").concat(i,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(pf,` {
|
|
32
|
-
margin-right: `).concat(c,"px ").concat(i,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.`).concat(mf," .").concat(mf,` {
|
|
36
|
-
right: 0 `).concat(i,`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.`).concat(pf," .").concat(pf,` {
|
|
40
|
-
margin-right: 0 `).concat(i,`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
body[`).concat(sl,`] {
|
|
44
|
-
`).concat(BO,": ").concat(c,`px;
|
|
45
|
-
}
|
|
46
|
-
`)},Jx=function(){var e=parseInt(document.body.getAttribute(sl)||"0",10);return isFinite(e)?e:0},n5=function(){C.useEffect(function(){return document.body.setAttribute(sl,(Jx()+1).toString()),function(){var e=Jx()-1;e<=0?document.body.removeAttribute(sl):document.body.setAttribute(sl,e.toString())}},[])},r5=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;n5();var l=C.useMemo(function(){return JO(s)},[s]);return C.createElement(e5,{styles:t5(l,!t,s,n?"":"!important")})},Zp=!1;if(typeof window<"u")try{var $c=Object.defineProperty({},"passive",{get:function(){return Zp=!0,!0}});window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch{Zp=!1}var Ks=Zp?{passive:!1}:!1,i5=function(e){return e.tagName==="TEXTAREA"},QS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!i5(e)&&n[t]==="visible")},a5=function(e){return QS(e,"overflowY")},s5=function(e){return QS(e,"overflowX")},eT=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=WS(e,i);if(s){var l=ZS(e,i),u=l[1],c=l[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},l5=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},o5=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},WS=function(e,t){return e==="v"?a5(t):s5(t)},ZS=function(e,t){return e==="v"?l5(t):o5(t)},u5=function(e,t){return e==="h"&&t==="rtl"?-1:1},c5=function(e,t,n,i,s){var l=u5(e,window.getComputedStyle(t).direction),u=l*i,c=n.target,d=t.contains(c),h=!1,m=u>0,p=0,E=0;do{if(!c)break;var y=ZS(e,c),v=y[0],S=y[1],A=y[2],k=S-A-l*v;(v||k)&&WS(e,c)&&(p+=k,E+=v);var N=c.parentNode;c=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(E)<1)&&(h=!0),h},Gc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tT=function(e){return[e.deltaX,e.deltaY]},nT=function(e){return e&&"current"in e?e.current:e},f5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},d5=function(e){return`
|
|
47
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
-
`)},h5=0,Xs=[];function m5(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(h5++)[0],l=C.useState(XS)[0],u=C.useRef(e);C.useEffect(function(){u.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=MO([e.lockRef.current],(e.shards||[]).map(nT),!0).filter(Boolean);return S.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(S,A){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var k=Gc(S),N=n.current,w="deltaX"in S?S.deltaX:N[0]-k[0],D="deltaY"in S?S.deltaY:N[1]-k[1],z,L=S.target,P=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in S&&P==="h"&&L.type==="range")return!1;var H=window.getSelection(),G=H&&H.anchorNode,j=G?G===L||G.contains(L):!1;if(j)return!1;var Y=eT(P,L);if(!Y)return!0;if(Y?z=P:(z=P==="v"?"h":"v",Y=eT(P,L)),!Y)return!1;if(!i.current&&"changedTouches"in S&&(w||D)&&(i.current=z),!z)return!0;var W=i.current||z;return c5(W,A,S,W==="h"?w:D)},[]),d=C.useCallback(function(S){var A=S;if(!(!Xs.length||Xs[Xs.length-1]!==l)){var k="deltaY"in A?tT(A):Gc(A),N=t.current.filter(function(z){return z.name===A.type&&(z.target===A.target||A.target===z.shadowParent)&&f5(z.delta,k)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var w=(u.current.shards||[]).map(nT).filter(Boolean).filter(function(z){return z.contains(A.target)}),D=w.length>0?c(A,w[0]):!u.current.noIsolation;D&&A.cancelable&&A.preventDefault()}}},[]),h=C.useCallback(function(S,A,k,N){var w={name:S,delta:A,target:k,should:N,shadowParent:p5(k)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(D){return D!==w})},1)},[]),m=C.useCallback(function(S){n.current=Gc(S),i.current=void 0},[]),p=C.useCallback(function(S){h(S.type,tT(S),S.target,c(S,e.lockRef.current))},[]),E=C.useCallback(function(S){h(S.type,Gc(S),S.target,c(S,e.lockRef.current))},[]);C.useEffect(function(){return Xs.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:E}),document.addEventListener("wheel",d,Ks),document.addEventListener("touchmove",d,Ks),document.addEventListener("touchstart",m,Ks),function(){Xs=Xs.filter(function(S){return S!==l}),document.removeEventListener("wheel",d,Ks),document.removeEventListener("touchmove",d,Ks),document.removeEventListener("touchstart",m,Ks)}},[]);var y=e.removeScrollBar,v=e.inert;return C.createElement(C.Fragment,null,v?C.createElement(l,{styles:d5(s)}):null,y?C.createElement(r5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const g5=VO(KS,m5);var JS=C.forwardRef(function(e,t){return C.createElement(ed,Ar({},e,{ref:t,sideCar:g5}))});JS.classNames=ed.classNames;var b5=Object.defineProperty,nt=(e,t)=>b5(e,"name",{value:t,configurable:!0}),y5=[" ","Enter","ArrowUp","ArrowDown"],E5=[" ","Enter"],cl="Select",[td,nd,x5]=rS(cl),[es,Gq]=iu(cl,[x5,DS]),eg=DS(),[T5,aa]=es(cl),[v5,S5]=es(cl);function e_(e){const{__scopeSelect:t,children:n,open:i,defaultOpen:s,onOpenChange:l,value:u,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:E,required:y,form:v,internal_do_not_use_render:S}=e,A=eg(t),[k,N]=C.useState(null),[w,D]=C.useState(null),[z,L]=C.useState(!1),P=oS(h),[H,G]=Wp({prop:i,defaultProp:s??!1,onChange:l,caller:cl}),[j,Y]=Wp({prop:u,defaultProp:c,onChange:d,caller:cl}),W=C.useRef(null),se=C.useRef(j);C.useEffect(()=>{const K=v?k?.ownerDocument.getElementById(v):k?.form;if(K instanceof HTMLFormElement){const I=nt(()=>Y(se.current),"reset");return K.addEventListener("reset",I),()=>K.removeEventListener("reset",I)}},[v,k,Y]);const le=k?!!v||!!k.closest("form"):!0,[ne,V]=C.useState(new Set),X=G0(),re=Array.from(ne).map(K=>K.props.value).join(";"),Ee=C.useCallback(K=>{V(I=>new Set(I).add(K))},[]),R=C.useCallback(K=>{V(I=>{const ge=new Set(I);return ge.delete(K),ge})},[]),U={required:y,trigger:k,onTriggerChange:N,valueNode:w,onValueNodeChange:D,valueNodeHasChildren:z,onValueNodeHasChildrenChange:L,contentId:X,value:j,onValueChange:Y,open:H,onOpenChange:G,dir:P,triggerPointerDownPosRef:W,disabled:E,name:m,autoComplete:p,form:v,nativeOptions:ne,nativeSelectKey:re,isFormControl:le};return x.jsx(pO,{...A,children:x.jsx(T5,{scope:t,...U,children:x.jsx(td.Provider,{scope:t,children:x.jsx(v5,{scope:t,onNativeOptionAdd:Ee,onNativeOptionRemove:R,children:i_(S)?S(U):n})})})})}nt(e_,"SelectProvider");var _5=nt(e=>{const{__scopeSelect:t,children:n,...i}=e;return x.jsx(e_,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:s})=>x.jsxs(x.Fragment,{children:[n,s?x.jsx(Q5,{__scopeSelect:t}):null]})})},"Select"),C5="SelectTrigger",A5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,disabled:s=!1,...l}=t,u=eg(i),c=aa(C5,i),d=c.disabled||s,h=Mt(n,c.onTriggerChange),m=nd(i),p=C.useRef("touch"),[E,y,v]=ng(A=>{const k=m().filter(D=>!D.disabled),N=k.find(D=>D.value===c.value),w=rg(k,A,N);w!==void 0&&c.onValueChange(w.value)}),S=nt(A=>{d||(c.onOpenChange(!0),v()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return x.jsx(gO,{asChild:!0,...u,children:x.jsx(yn.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":su(c.value)?"":void 0,...l,ref:h,onClick:Dt(l.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&S(A)}),onPointerDown:Dt(l.onPointerDown,A=>{p.current=A.pointerType;const k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(S(A),A.preventDefault())}),onKeyDown:Dt(l.onKeyDown,A=>{const k=E.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&y(A.key),!(k&&A.key===" ")&&y5.includes(A.key)&&(S(),A.preventDefault())})})})},"SelectTrigger")),k5="SelectValue",w5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,children:u,placeholder:c="",...d}=t,h=aa(k5,i),{onValueNodeHasChildrenChange:m}=h,p=u!==void 0,E=Mt(n,h.onValueNodeChange);Zt(()=>{m(p)},[m,p]);const y=su(h.value);return x.jsx(yn.span,{...d,asChild:y?!1:d.asChild,ref:E,style:{pointerEvents:"none"},children:x.jsx(C.Fragment,{children:y?c:u},y?"placeholder":"value")})},"SelectValue")),N5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,...l}=t;return x.jsx(yn.span,{"aria-hidden":!0,...l,ref:n,children:s||"▼"})},"SelectIcon")),R5="SelectPortal",[O5,L5]=es(R5,{forceMount:void 0}),D5=nt(e=>{const{__scopeSelect:t,forceMount:n,...i}=e;return x.jsx(O5,{scope:e.__scopeSelect,forceMount:n,children:x.jsx(xO,{asChild:!0,...i})})},"SelectPortal"),Ga="SelectContent",I5=C.forwardRef(nt(function(t,n){const i=L5(Ga,t.__scopeSelect),{forceMount:s=i.forceMount,...l}=t,u=aa(Ga,t.__scopeSelect),[c,d]=C.useState();return Zt(()=>{d(new DocumentFragment)},[]),x.jsx(vO,{present:s||u.open,children:({present:h})=>h?x.jsx(B5,{...l,ref:n}):x.jsx(M5,{...l,fragment:c})})},"SelectContent")),M5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,children:s,fragment:l}=t;return l?ra.createPortal(x.jsx(t_,{scope:i,children:x.jsx(td.Slot,{scope:i,children:x.jsx("div",{ref:n,children:s})})}),l):null},"SelectContentFragment")),ur=10,[t_,ts]=es(Ga),P5=Va("SelectContent.RemoveScroll"),B5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i}=t,{position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:y,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k,...N}=t,w=aa(Ga,i),[D,z]=C.useState(null),[L,P]=C.useState(null),H=Mt(n,z),[G,j]=C.useState(null),[Y,W]=C.useState(null),se=nd(i),[le,ne]=C.useState(!1),V=C.useRef(!1);C.useEffect(()=>{if(D)return IO(D)},[D]),Y0();const X=C.useCallback(Te=>{const[ve,...Me]=se().map(Ve=>Ve.ref.current),[Le]=Me.slice(-1),Be=document.activeElement;for(const Ve of Te)if(Ve===Be||(Ve?.scrollIntoView({block:"nearest"}),Ve===ve&&L&&(L.scrollTop=0),Ve===Le&&L&&(L.scrollTop=L.scrollHeight),Ve?.focus(),document.activeElement!==Be))return},[se,L]),re=C.useCallback(()=>X([G,D]),[X,G,D]);C.useEffect(()=>{le&&re()},[le,re]);const{onOpenChange:Ee,triggerPointerDownPosRef:R}=w;C.useEffect(()=>{if(D){let Te={x:0,y:0};const ve=nt(Le=>{Te={x:Math.abs(Math.round(Le.pageX)-(R.current?.x??0)),y:Math.abs(Math.round(Le.pageY)-(R.current?.y??0))}},"handlePointerMove"),Me=nt(Le=>{Te.x<=10&&Te.y<=10?Le.preventDefault():Le.composedPath().includes(D)||Ee(!1),document.removeEventListener("pointermove",ve),R.current=null},"handlePointerUp");return R.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Me,{capture:!0})}}},[D,Ee,R]),C.useEffect(()=>{const Te=nt(()=>Ee(!1),"close");return window.addEventListener("blur",Te),window.addEventListener("resize",Te),()=>{window.removeEventListener("blur",Te),window.removeEventListener("resize",Te)}},[Ee]);const[U,K]=ng(Te=>{const ve=se().filter(Be=>!Be.disabled),Me=ve.find(Be=>Be.ref.current===document.activeElement),Le=rg(ve,Te,Me);Le&&setTimeout(()=>Le.ref.current?.focus())}),I=C.useCallback((Te,ve,Me)=>{const Le=!V.current&&!Me;(w.value!==void 0&&w.value===ve||Le)&&(j(Te),Le&&(V.current=!0))},[w.value]),ge=C.useCallback(()=>D?.focus(),[D]),ye=C.useCallback((Te,ve,Me)=>{const Le=!V.current&&!Me;(w.value!==void 0&&w.value===ve||Le)&&W(Te)},[w.value]),he=s==="popper"?rT:j5,we=he===rT?{side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:y,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k}:{};return x.jsx(t_,{scope:i,content:D,viewport:L,onViewportChange:P,itemRefCallback:I,selectedItem:G,onItemLeave:ge,itemTextRefCallback:ye,focusSelectedItem:re,selectedItemText:Y,position:s,isPositioned:le,searchRef:U,children:x.jsx(JS,{as:P5,allowPinchZoom:!0,children:x.jsx(XR,{asChild:!0,trapped:w.open,onMountAutoFocus:Te=>{Te.preventDefault()},onUnmountAutoFocus:Dt(l,Te=>{w.trigger?.focus({preventScroll:!0}),Te.preventDefault()}),children:x.jsx(qR,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:Te=>Te.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:x.jsx(he,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Te=>Te.preventDefault(),...N,...we,onPlaced:()=>ne(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Dt(N.onKeyDown,Te=>{const ve=Te.ctrlKey||Te.altKey||Te.metaKey;if(Te.key==="Tab"&&Te.preventDefault(),!ve&&Te.key.length===1&&K(Te.key),["ArrowUp","ArrowDown","Home","End"].includes(Te.key)){let Le=se().filter(Be=>!Be.disabled).map(Be=>Be.ref.current);if(["ArrowUp","End"].includes(Te.key)&&(Le=Le.slice().reverse()),["ArrowUp","ArrowDown"].includes(Te.key)){const Be=Te.target,Ve=Le.indexOf(Be);Le=Le.slice(Ve+1)}setTimeout(()=>X(Le)),Te.preventDefault()}})})})})})})},"SelectContentImpl")),j5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onPlaced:s,...l}=t,u=aa(Ga,i),c=ts(Ga,i),[d,h]=C.useState(null),[m,p]=C.useState(null),E=Mt(n,p),y=nd(i),v=C.useRef(!1),S=C.useRef(!0),{viewport:A,selectedItem:k,selectedItemText:N,focusSelectedItem:w}=c,D=C.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&m&&A&&k&&N){const H=u.trigger.getBoundingClientRect(),G=m.getBoundingClientRect(),j=u.valueNode.getBoundingClientRect(),Y=N.getBoundingClientRect();if(u.dir!=="rtl"){const Be=Y.left-G.left,Ve=j.left-Be,tt=H.left-Ve,gt=H.width+tt,Tt=Math.max(gt,G.width),Yt=window.innerWidth-ur,pe=jp(Ve,[ur,Math.max(ur,Yt-Tt)]);d.style.minWidth=gt+"px",d.style.left=pe+"px"}else{const Be=G.right-Y.right,Ve=window.innerWidth-j.right-Be,tt=window.innerWidth-H.right-Ve,gt=H.width+tt,Tt=Math.max(gt,G.width),Yt=window.innerWidth-ur,pe=jp(Ve,[ur,Math.max(ur,Yt-Tt)]);d.style.minWidth=gt+"px",d.style.right=pe+"px"}const W=y(),se=window.innerHeight-ur*2,le=A.scrollHeight,ne=window.getComputedStyle(m),V=parseInt(ne.borderTopWidth,10),X=parseInt(ne.paddingTop,10),re=parseInt(ne.borderBottomWidth,10),Ee=parseInt(ne.paddingBottom,10),R=V+X+le+Ee+re,U=Math.min(k.offsetHeight*5,R),K=window.getComputedStyle(A),I=parseInt(K.paddingTop,10),ge=parseInt(K.paddingBottom,10),ye=H.top+H.height/2-ur,he=se-ye,we=k.offsetHeight/2,Te=k.offsetTop+we,ve=V+X+Te,Me=R-ve;if(ve<=ye){const Be=W.length>0&&k===W[W.length-1].ref.current;d.style.bottom="0px";const Ve=m.clientHeight-A.offsetTop-A.offsetHeight,tt=Math.max(he,we+(Be?ge:0)+Ve+re),gt=ve+tt;d.style.height=gt+"px"}else{const Be=W.length>0&&k===W[0].ref.current;d.style.top="0px";const tt=Math.max(ye,V+A.offsetTop+(Be?I:0)+we)+Me;d.style.height=tt+"px",A.scrollTop=ve-ye+A.offsetTop}d.style.margin=`${ur}px 0`,d.style.minHeight=U+"px",d.style.maxHeight=se+"px",s?.(),requestAnimationFrame(()=>v.current=!0)}},[y,u.trigger,u.valueNode,d,m,A,k,N,u.dir,s]);Zt(()=>D(),[D]);const[z,L]=C.useState();Zt(()=>{m&&L(window.getComputedStyle(m).zIndex)},[m]);const P=C.useCallback(H=>{H&&S.current===!0&&(D(),w?.(),S.current=!1)},[D,w]);return x.jsx(H5,{scope:i,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:x.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:x.jsx(yn.div,{...l,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),rT=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,align:s="start",collisionPadding:l=ur,...u}=t,c=eg(i);return x.jsx(bO,{...c,...u,ref:n,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[H5,tg]=es(Ga,{}),iT="SelectViewport",U5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,nonce:s,...l}=t,u=ts(iT,i),c=tg(iT,i),d=Mt(n,u.onViewportChange),h=C.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),x.jsx(td.Slot,{scope:i,children:x.jsx(yn.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:Dt(l.onScroll,m=>{const p=m.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:y}=c;if(y?.current&&E){const v=Math.abs(h.current-p.scrollTop);if(v>0){const S=window.innerHeight-ur*2,A=parseFloat(E.style.minHeight),k=parseFloat(E.style.height),N=Math.max(A,k);if(N<S){const w=N+v,D=Math.min(S,w),z=w-D;E.style.height=D+"px",E.style.bottom==="0px"&&(p.scrollTop=z>0?z:0,E.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),z5="SelectGroup",[Kq,Xq]=es(z5),Jp="SelectItem",[F5,n_]=es(Jp),q5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,value:s,disabled:l=!1,textValue:u,...c}=t,d=aa(Jp,i),h=ts(Jp,i),m=d.value===s,[p,E]=C.useState(u??""),[y,v]=C.useState(!1),S=Nr(D=>h.itemRefCallback?.(D,s,l)),A=Mt(n,S),k=G0(),N=C.useRef("touch"),w=nt(()=>{l||(d.onValueChange(s),d.onOpenChange(!1))},"handleSelect");return x.jsx(F5,{scope:i,value:s,disabled:l,textId:k,isSelected:m,onItemTextChange:C.useCallback(D=>{E(z=>z||(D?.textContent??"").trim())},[]),children:x.jsx(td.ItemSlot,{scope:i,value:s,disabled:l,textValue:p,children:x.jsx(yn.div,{role:"option","aria-labelledby":k,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:A,onFocus:Dt(c.onFocus,()=>v(!0)),onBlur:Dt(c.onBlur,()=>v(!1)),onClick:Dt(c.onClick,()=>{N.current!=="mouse"&&w()}),onPointerUp:Dt(c.onPointerUp,()=>{N.current==="mouse"&&w()}),onPointerDown:Dt(c.onPointerDown,D=>{N.current=D.pointerType}),onPointerMove:Dt(c.onPointerMove,D=>{N.current=D.pointerType,l?h.onItemLeave?.():N.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dt(c.onPointerLeave,D=>{D.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Dt(c.onKeyDown,D=>{l||D.target!==D.currentTarget||h.searchRef?.current!==""&&D.key===" "||(E5.includes(D.key)&&w(),D.key===" "&&D.preventDefault())})})})})},"SelectItem")),Kc="SelectItemText",V5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,className:s,style:l,...u}=t,c=aa(Kc,i),d=ts(Kc,i),h=n_(Kc,i),m=S5(Kc,i),[p,E]=C.useState(null),y=Nr(w=>d.itemTextRefCallback?.(w,h.value,h.disabled)),v=Mt(n,E,h.onItemTextChange,y),S=p?.textContent,A=C.useMemo(()=>x.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=m;return Zt(()=>(k(A),()=>N(A)),[k,N,A]),x.jsxs(x.Fragment,{children:[x.jsx(yn.span,{id:h.textId,...u,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!su(c.value)?ra.createPortal(u.children,c.valueNode):null]})},"SelectItemText")),Y5="SelectItemIndicator",$5=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,...s}=t;return n_(Y5,i).isSelected?x.jsx(yn.span,{"aria-hidden":!0,...s,ref:n}):null},"SelectItemIndicator")),aT="SelectScrollUpButton",G5=C.forwardRef(nt(function(t,n){const i=ts(aT,t.__scopeSelect),s=tg(aT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Zt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollTop>0;u(m)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?x.jsx(r_,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),sT="SelectScrollDownButton",K5=C.forwardRef(nt(function(t,n){const i=ts(sT,t.__scopeSelect),s=tg(sT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Zt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<m;u(p)};nt(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?x.jsx(r_,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),r_=C.forwardRef(nt(function(t,n){const{__scopeSelect:i,onAutoScroll:s,...l}=t,u=ts("SelectScrollButton",i),c=C.useRef(null),d=nd(i),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),Zt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),x.jsx(yn.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:Dt(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Dt(l.onPointerMove,()=>{u.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Dt(l.onPointerLeave,()=>{h()})})},"SelectScrollButtonImpl")),X5="SelectBubbleInput",Q5=C.forwardRef(nt(function({__scopeSelect:t,...n},i){const s=aa(X5,t),{value:l,onValueChange:u,required:c,disabled:d,name:h,autoComplete:m,form:p}=s,{nativeOptions:E,nativeSelectKey:y}=s,v=C.useRef(null),S=Mt(i,v),A=l??"",k=VS(A),N=Array.from(E).some(w=>(w.props.value??"")==="");return C.useEffect(()=>{const w=v.current;if(!w)return;const D=window.HTMLSelectElement.prototype,L=Object.getOwnPropertyDescriptor(D,"value").set;if(k!==A&&L){const P=new Event("change",{bubbles:!0});L.call(w,A),w.dispatchEvent(P)}},[k,A]),x.jsxs(yn.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:h,autoComplete:m,disabled:d,form:p,onChange:w=>u(w.target.value),...n,style:{...RO,...n.style},ref:S,defaultValue:A,children:[su(l)&&!N?x.jsx("option",{value:""}):null,Array.from(E)]},y)},"SelectBubbleInput"));function i_(e){return typeof e=="function"}nt(i_,"isFunction");function su(e){return e===""||e===void 0}nt(su,"shouldShowPlaceholder");function ng(e){const t=Nr(e),n=C.useRef(""),i=C.useRef(0),s=C.useCallback(u=>{const c=n.current+u;t(c),nt((function d(h){n.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))}),"updateSearch")(c)},[t]),l=C.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,s,l]}nt(ng,"useTypeaheadSearch");function rg(e,t,n){const s=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=a_(e,Math.max(l,0));s.length===1&&(u=u.filter(h=>h!==n));const d=u.find(h=>h.textValue.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}nt(rg,"findNextItem");function a_(e,t){return e.map((n,i)=>e[(t+i)%e.length])}nt(a_,"wrapArray");function e0({value:e,onValueChange:t,options:n,ariaLabel:i,className:s="",placeholder:l,disabled:u,required:c}){return x.jsxs(_5,{value:e,onValueChange:t,required:c,children:[x.jsxs(A5,{className:`ui-select-trigger ${s}`,"aria-label":i,disabled:u,children:[x.jsx(w5,{placeholder:l}),x.jsx(N5,{className:"ui-select-chevron",children:x.jsx(Bp,{size:14})})]}),x.jsx(D5,{children:x.jsxs(I5,{className:"ui-select-content",position:"popper",sideOffset:5,children:[x.jsx(G5,{className:"ui-select-scroll",children:x.jsx(lR,{size:14})}),x.jsx(U5,{className:"ui-select-viewport",children:n.map(d=>x.jsxs(q5,{className:"ui-select-item",value:d.value,children:[x.jsx(V5,{children:d.label}),x.jsx($5,{className:"ui-select-check",children:x.jsx(Ia,{size:14})})]},d.value))}),x.jsx(K5,{className:"ui-select-scroll",children:x.jsx(Bp,{size:14})})]})})]})}const W5="modulepreload",Z5=function(e){return"/"+e},lT={},s_=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");s=d(n.map(h=>{if(h=Z5(h),h in lT)return;lT[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const E=document.createElement("link");if(E.rel=m?"stylesheet":W5,m||(E.as="script"),E.crossOrigin="",E.href=h,c&&E.setAttribute("nonce",c),document.head.appendChild(E),m)return new Promise((y,v)=>{E.addEventListener("load",y),E.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return s.then(u=>{for(const c of u||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})},rd=(function(e){if(e==null)return nL;if(typeof e=="function")return id(e);if(typeof e=="object")return Array.isArray(e)?J5(e):eL(e);if(typeof e=="string")return tL(e);throw new Error("Expected function, string, or object as test")});function J5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=rd(e[n]);return id(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function eL(e){const t=e;return id(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function tL(e){return id(t);function t(n){return n&&n.type===e}}function id(e){return t;function t(n,i,s){return!!(rL(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function nL(){return!0}function rL(e){return e!==null&&typeof e=="object"&&"type"in e}const l_=[],No=!0,t0=!1,ja="skip";function ad(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=rd(s),u=i?-1:1;c(e,void 0,[])();function c(d,h,m){const p=d&&typeof d=="object"?d:{};if(typeof p.type=="string"){const y=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(y?"<"+y+">":""))+")"})}return E;function E(){let y=l_,v,S,A;if((!t||l(d,h,m[m.length-1]||void 0))&&(y=iL(n(d,m)),y[0]===t0))return y;if("children"in d&&d.children){const k=d;if(k.children&&y[0]!==ja)for(S=(i?k.children.length:-1)+u,A=m.concat(k);S>-1&&S<k.children.length;){const N=k.children[S];if(v=c(N,S,A)(),v[0]===t0)return v;S=typeof v[1]=="number"?v[1]:S+u}}return y}}}function iL(e){return Array.isArray(e)?e:typeof e=="number"?[No,e]:e==null?l_:[e]}function dr(e,t,n,i){let s,l,u;typeof t=="function"&&typeof n!="function"?(l=void 0,u=t,s=n):(l=t,u=n,s=i),ad(e,l,c,s);function c(d,h){const m=h[h.length-1],p=m?m.children.indexOf(d):void 0;return u(d,p,m)}}const fl={indicator:"indicator",textOnly:"text-only",remove:"remove"};function aL({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:i=!1,allowedProtocols:s=[],blockedImageClass:l="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:u="text-gray-500",linkBlockPolicy:c=fl.indicator,imageBlockPolicy:d=fl.indicator}){const h=t.length&&!t.every(p=>p==="*"),m=n.length&&!n.every(p=>p==="*");if(!e&&(h||m))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return p=>{const E=fL(e,t,n,i,s,l,u,c,d);o_(p),dr(p,E)}}function oT(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function sL(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const lL=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),oL=new Set(["javascript:","data:","file:","vbscript:"]);function uT(e,t,n,i=!1,s=!1,l=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!s)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return s&&i&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const m=e.substring(5);if(m&&m.length>0&&m!=="invalid")return e}}catch{return null}return null}const u=oT(e,n);if(!u||oL.has(u.protocol)||!(lL.has(u.protocol)||l.includes(u.protocol)||l.includes("*")))return null;if(u.protocol==="mailto:"||!u.protocol.match(/^https?:$/))return u.href;const d=sL(e);return u&&t.some(h=>{const m=oT(h,n);return!m||m.origin!==u.origin?!1:u.href.startsWith(m.href)})?d?u.pathname+u.search+u.hash:u.href:t.includes("*")?u.protocol!=="https:"&&u.protocol!=="http:"?null:d?u.pathname+u.search+u.hash:u.href:null}function o_(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)o_(t)}}const ip=Symbol("node-seen");function uL(e,t,n){return t===fl.remove?{type:"remove"}:t===fl.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function cL(e,t,n){if(t===fl.remove)return{type:"remove"};if(t===fl.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const fL=(e,t,n,i,s,l,u,c,d)=>{const h=(m,p,E)=>{if(m.type!=="element"||m[ip])return No;if(m.tagName==="a"){const y=uT(m.properties.href,t,e,!1,!1,s);if(y===null){if(m[ip]=!0,dr(m,h),E&&typeof p=="number"){const v=uL(m,c,u);if(v.type==="remove")return E.children.splice(p,1),[ja,p];E.children[p]=v.element}return ja}else return m.properties.href=y,m.properties.target="_blank",m.properties.rel="noopener noreferrer",No}if(m.tagName==="img"){const y=uT(m.properties.src,n,e,i,!0,s);if(y===null){if(m[ip]=!0,dr(m,h),E&&typeof p=="number"){const v=cL(m,d,l);if(v.type==="remove")return E.children.splice(p,1),[ja,p];E.children[p]=v.element}return ja}else return m.properties.src=y,No}return No};return h},u_=-1,sd=0,Mo=1,Of=2,ig=3,ag=4,sg=5,lg=6,c_=7,f_=8,{defineProperty:dL}=Object,d_=typeof self=="object"?self:globalThis,cT=(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 d_[e](t)},hL=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,u]=t[s];switch(l){case sd:case u_:return n(u,s);case Mo:{const c=n([],s);for(const d of u)c.push(i(d));return c}case Of:{const c=n({},s);for(const[d,h]of u){const m=i(d),p=i(h);m==="__proto__"?dL(c,m,{value:p,configurable:!0,enumerable:!0,writable:!0}):c[m]=p}return c}case ig:return n(new Date(u),s);case ag:{const{source:c,flags:d}=u;return n(new RegExp(c,d),s)}case sg:{const c=n(new Map,s);for(const[d,h]of u)c.set(i(d),i(h));return c}case lg:{const c=n(new Set,s);for(const d of u)c.add(i(d));return c}case c_:{const{name:c,message:d}=u;return n(typeof d_[c]=="function"?cT(c,d):new Error(d),s)}case f_:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}case"-0":return-0}return n(cT(l,u),s)};return i},fT=e=>hL(new Map,e)(0),Da="",{toString:mL}={},{keys:pL,is:gL}=Object,xo=e=>{const t=typeof e;if(t!=="object"||!e)return[sd,t];const n=mL.call(e).slice(8,-1);switch(n){case"Array":return[Mo,Da];case"Object":return[Of,Da];case"Date":return[ig,Da];case"RegExp":return[ag,Da];case"Map":return[sg,Da];case"Set":return[lg,Da];case"DataView":return[Mo,n]}return n.includes("Array")?[Mo,n]:e instanceof Error?[c_,e.name||"Error"]:[Of,n]},Xc=([e,t])=>e===sd&&(t==="function"||t==="symbol"),bL=(e,t,n,i)=>{const s=(u,c)=>{const d=i.push(u)-1;return n.set(c,d),d},l=u=>{if(n.has(u))return n.get(u);let[c,d]=xo(u);switch(c){case sd:{let m=u;switch(d){case"bigint":c=f_,m=u.toString();break;case"number":if(!u&&gL(u,-0))return i.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return s([u_],u)}return s([c,m],u)}case Mo:{if(d){let E=u;return d==="DataView"?E=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(u)),s([d,[...E]],u)}const m=[],p=s([c,m],u);for(const E of u)m.push(l(E));return p}case Of:{if(d)switch(d){case"BigInt":return s([d,u.toString()],u);case"Boolean":case"Number":case"String":return s([d,u.valueOf()],u)}if(t&&"toJSON"in u)return l(u.toJSON());const m=[],p=s([c,m],u);for(const E of pL(u))(e||!Xc(xo(u[E])))&&m.push([l(E),l(u[E])]);return p}case ig:return s([c,isNaN(u.getTime())?Da:u.toISOString()],u);case ag:{const{source:m,flags:p}=u;return s([c,{source:m,flags:p}],u)}case sg:{const m=[],p=s([c,m],u);for(const[E,y]of u)(e||!(Xc(xo(E))||Xc(xo(y))))&&m.push([l(E),l(y)]);return p}case lg:{const m=[],p=s([c,m],u);for(const E of u)(e||!Xc(xo(E)))&&m.push(l(E));return p}}const{message:h}=u;return s([c,{name:d,message:h}],u)};return l},dT=(e,{json:t,lossy:n}={})=>{const i=[];return bL(!(t||n),!!t,new Map,i)(e),i},Ka=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fT(dT(e,t)):structuredClone(e):(e,t)=>fT(dT(e,t));class lu{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}lu.prototype.normal={};lu.prototype.property={};lu.prototype.space=void 0;function h_(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new lu(n,i,t)}function Wo(e){return e.toLowerCase()}class On{constructor(t,n){this.attribute=n,this.property=t}}On.prototype.attribute="";On.prototype.booleanish=!1;On.prototype.boolean=!1;On.prototype.commaOrSpaceSeparated=!1;On.prototype.commaSeparated=!1;On.prototype.defined=!1;On.prototype.mustUseProperty=!1;On.prototype.number=!1;On.prototype.overloadedBoolean=!1;On.prototype.property="";On.prototype.spaceSeparated=!1;On.prototype.space=void 0;let yL=0;const Pe=ns(),zt=ns(),n0=ns(),be=ns(),Et=ns(),Fa=ns(),zn=ns();function ns(){return 2**++yL}const r0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:zt,commaOrSpaceSeparated:zn,commaSeparated:Fa,number:be,overloadedBoolean:n0,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),ap=Object.keys(r0);class og extends On{constructor(t,n,i,s){let l=-1;if(super(t,n),hT(this,"space",s),typeof i=="number")for(;++l<ap.length;){const u=ap[l];hT(this,ap[l],(i&r0[u])===r0[u])}}}og.prototype.defined=!0;function hT(e,t,n){n&&(e[t]=n)}function yl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new og(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Wo(i)]=i,n[Wo(l.attribute)]=i}return new lu(t,n,e.space)}const m_=yl({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:Et,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:be,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:Et,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:zt,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function p_(e,t){return t in e?e[t]:t}function g_(e,t){return p_(e,t.toLowerCase())}const EL=yl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fa,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:Et,autoFocus:Pe,autoPlay:Pe,blocking:Et,capture:null,charSet:null,checked:Pe,cite:null,className:Et,closedBy:null,colorSpace:null,cols:be,colSpan:be,command:null,commandFor:null,content:null,contentEditable:zt,controls:Pe,controlsList:Et,coords:be|Fa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:n0,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:Et,height:be,hidden:n0,high:be,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:Et,itemRef:Et,itemScope:Pe,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:be,pattern:null,ping:Et,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:Et,required:Pe,reversed:Pe,rows:be,rowSpan:be,sandbox:Et,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:be,step:null,style:null,tabIndex:be,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:zt,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,axis:null,background:null,bgColor:null,border:be,borderColor:null,bottomMargin:be,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:be,valueType:null,version:null,vAlign:null,vLink:null,vSpace:be,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:Fa,part:Et,prefix:null,property:null,results:be,security:null,unselectable:null},space:"html",transform:g_}),xL=yl({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:zn,accentHeight:be,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:be,amplitude:be,arabicForm:null,ascent:be,attributeName:null,attributeType:null,azimuth:be,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:be,by:null,calcMode:null,capHeight:be,className:Et,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:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:be,enableBackground:null,end:null,event:null,exponent:be,externalResourcesRequired:null,fill:null,fillOpacity:be,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:Fa,g2:Fa,glyphName:Fa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,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:be,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:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zn,rev:zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zn,requiredFeatures:zn,requiredFonts:zn,requiredFormats:zn,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:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:p_}),b_=yl({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()}}),y_=yl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:g_}),E_=yl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),TL={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"},vL=/[A-Z]/g,mT=/-[a-z]/g,SL=/^data[-\w.:]+$/i;function ld(e,t){const n=Wo(t);let i=t,s=On;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&SL.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(mT,CL);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!mT.test(l)){let u=l.replace(vL,_L);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=og}return new s(i,t)}function _L(e){return"-"+e.toLowerCase()}function CL(e){return e.charAt(1).toUpperCase()}const ou=h_([m_,EL,b_,y_,E_],"html"),sa=h_([m_,xL,b_,y_,E_],"svg");function pT(e){const t=[],n=String(e||"");let i=n.indexOf(","),s=0,l=!1;for(;!l;){i===-1&&(i=n.length,l=!0);const u=n.slice(s,i).trim();(u||!l)&&t.push(u),s=i+1,i=n.indexOf(",",s)}return t}function x_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gT=/[#.]/g;function AL(e,t){const n=e||"",i={};let s=0,l,u;for(;s<n.length;){gT.lastIndex=s;const c=gT.exec(n),d=n.slice(s,c?c.index:n.length);d&&(l?l==="#"?i.id=d:Array.isArray(i.className)?i.className.push(d):i.className=[d]:u=d,s+=d.length),c&&(l=c[0],s++)}return{type:"element",tagName:u||t||"div",properties:i,children:[]}}function bT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function T_(e){return e.join(" ").trim()}function v_(e,t,n){const i=n?RL(n):void 0;function s(l,u,...c){let d;if(l==null){d={type:"root",children:[]};const h=u;c.unshift(h)}else{d=AL(l,t);const h=d.tagName.toLowerCase(),m=i?i.get(h):void 0;if(d.tagName=m||h,kL(u))c.unshift(u);else for(const[p,E]of Object.entries(u))wL(e,d.properties,p,E)}for(const h of c)i0(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function kL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const s=t[i];if(s&&typeof s=="object"){if(!Array.isArray(s))return!0;const l=s;for(const u of l)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wL(e,t,n,i){const s=ld(e,n);let l;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;l=i}else typeof i=="boolean"?l=i:typeof i=="string"?s.spaceSeparated?l=bT(i):s.commaSeparated?l=pT(i):s.commaOrSpaceSeparated?l=bT(pT(i).join(" ")):l=yT(s,s.property,i):Array.isArray(i)?l=[...i]:l=s.property==="style"?NL(i):String(i);if(Array.isArray(l)){const u=[];for(const c of l)u.push(yT(s,s.property,c));l=u}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function i0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)i0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?i0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function yT(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Wo(n)===Wo(t)))return!0}return n}function NL(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function RL(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const OL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],LL=v_(ou,"div"),DL=v_(sa,"g",OL);function IL(e){const t=String(e),n=[];return{toOffset:s,toPoint:i};function i(l){if(typeof l=="number"&&l>-1&&l<=t.length){let u=0;for(;;){let c=n[u];if(c===void 0){const d=ET(t,n[u-1]);c=d===-1?t.length+1:d+1,n[u]=c}if(c>l)return{line:u+1,column:l-(u>0?n[u-1]:0)+1,offset:l};u++}}}function s(l){if(l&&typeof l.line=="number"&&typeof l.column=="number"&&!Number.isNaN(l.line)&&!Number.isNaN(l.column)){for(;n.length<l.line;){const c=n[n.length-1],d=ET(t,c),h=d===-1?t.length+1:d+1;if(c===h)break;n.push(h)}const u=(l.line>1?n[l.line-2]:0)+l.column-1;if(u<n[l.line-1])return u}}}function ET(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
|
|
50
|
-
`,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const Ha={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},S_={}.hasOwnProperty,ML=Object.prototype;function PL(e,t){const n=t||{};return ug({file:n.file||void 0,location:!1,schema:n.space==="svg"?sa:ou,verbose:n.verbose||!1},e)}function ug(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},gf(e,i,n),n}case"#document":case"#document-fragment":{const i=t,s="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:__(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),u=IL(l),c=u.toPoint(0),d=u.toPoint(l.length);n.position={start:c,end:d}}return n}case"#documentType":{const i=t;return n={type:"doctype"},gf(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},gf(e,i,n),n}default:return n=BL(e,t),n}}function __(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=ug(e,t[n]);i.push(s)}return i}function BL(e,t){const n=e.schema;e.schema=t.namespaceURI===Ha.svg?sa:ou;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],d=(c.prefix?c.prefix+":":"")+c.name;S_.call(ML,d)||(s[d]=c.value)}const u=(e.schema.space==="svg"?DL:LL)(t.tagName,s,__(e,t.childNodes));if(gf(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&tl(d.startTag),m=d&&d.endTag&&tl(d.endTag),p=ug(e,c.content);h&&m&&e.file&&(p.position={start:h.end,end:m.start}),u.content=p}return e.schema=n,u}function gf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=jL(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function jL(e,t,n){const i=tl(n);if(t.type==="element"){const s=t.children[t.children.length-1];if(i&&!n.endTag&&s&&s.position&&s.position.end&&(i.end=Object.assign({},s.position.end)),e.verbose){const l={};let u;if(n.attrs)for(u in n.attrs)S_.call(n.attrs,u)&&(l[ld(e.schema,u).property]=tl(n.attrs[u]));n.startTag;const c=tl(n.startTag),d=n.endTag?tl(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=l,t.data={position:h}}}return i}function tl(e){const t=xT({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=xT({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function xT(e){return e.line&&e.column?e:void 0}const TT={}.hasOwnProperty;function C_(e,t){const n=t||{};function i(s,...l){let u=i.invalid;const c=i.handlers;if(s&&TT.call(s,e)){const d=String(s[e]);u=TT.call(c,d)?c[d]:i.unknown}if(u)return u.call(this,s,...l)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const HL={},UL={}.hasOwnProperty,A_=C_("type",{handlers:{root:FL,element:GL,text:YL,comment:$L,doctype:VL}});function zL(e,t){const i=(t||HL).space;return A_(e,i==="svg"?sa:ou)}function FL(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=cg(e.children,n,t),El(e,n),n}function qL(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=cg(e.children,n,t),El(e,n),n}function VL(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return El(e,t),t}function YL(e){const t={nodeName:"#text",value:e.value,parentNode:null};return El(e,t),t}function $L(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return El(e,t),t}function GL(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=sa);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&UL.call(e.properties,l)){const d=KL(i,l,e.properties[l]);d&&s.push(d)}}const u=i.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ha[u],childNodes:[],parentNode:null};return c.childNodes=cg(e.children,c,i),El(e,c),e.tagName==="template"&&e.content&&(c.content=qL(e.content,i)),c}function KL(e,t,n){const i=ld(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?x_(n):T_(n));const s={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const l=s.name.indexOf(":");l<0?s.prefix="":(s.name=s.name.slice(l+1),s.prefix=i.attribute.slice(0,l)),s.namespace=Ha[i.space]}return s}function cg(e,t,n){let i=-1;const s=[];if(e)for(;++i<e.length;){const l=A_(e[i],n);l.parentNode=t,s.push(l)}return s}function El(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const XL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],QL=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),kt="�";var M;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(M||(M={}));const kn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function k_(e){return e>=55296&&e<=57343}function WL(e){return e>=56320&&e<=57343}function ZL(e,t){return(e-55296)*1024+9216+t}function w_(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function N_(e){return e>=64976&&e<=65007||QL.has(e)}var ae;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ae||(ae={}));const JL=65536;class eD{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=JL,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:i,col:s,offset:l}=this,u=s+n,c=l+n;return{code:t,startLine:i,endLine:i,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(WL(n))return this.pos++,this._addGap(),ZL(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(ae.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const i=this.html.charCodeAt(n);return i===M.CARRIAGE_RETURN?M.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;let t=this.html.charCodeAt(this.pos);return t===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):t===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,k_(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===M.LINE_FEED||t===M.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){w_(t)?this._err(ae.controlCharacterInInputStream):N_(t)&&this._err(ae.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Fe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Fe||(Fe={}));function R_(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const tD=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),nD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nD.get(e))!==null&&t!==void 0?t:e}var Wt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Wt||(Wt={}));const iD=32;var Xi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Xi||(Xi={}));function a0(e){return e>=Wt.ZERO&&e<=Wt.NINE}function aD(e){return e>=Wt.UPPER_A&&e<=Wt.UPPER_F||e>=Wt.LOWER_A&&e<=Wt.LOWER_F}function sD(e){return e>=Wt.UPPER_A&&e<=Wt.UPPER_Z||e>=Wt.LOWER_A&&e<=Wt.LOWER_Z||a0(e)}function lD(e){return e===Wt.EQUALS||sD(e)}var Kt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Kt||(Kt={}));var ii;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ii||(ii={}));class oD{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Kt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ii.Strict}startEntity(t){this.decodeMode=t,this.state=Kt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Kt.EntityStart:return t.charCodeAt(n)===Wt.NUM?(this.state=Kt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Kt.NamedEntity,this.stateNamedEntity(t,n));case Kt.NumericStart:return this.stateNumericStart(t,n);case Kt.NumericDecimal:return this.stateNumericDecimal(t,n);case Kt.NumericHex:return this.stateNumericHex(t,n);case Kt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|iD)===Wt.LOWER_X?(this.state=Kt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Kt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,s){if(n!==i){const l=i-n;this.result=this.result*Math.pow(s,l)+Number.parseInt(t.substr(n,l),s),this.consumed+=l}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s)||aD(s))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const s=t.charCodeAt(n);if(a0(s))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Wt.SEMI)this.consumed+=1;else if(this.decodeMode===ii.Strict)return 0;return this.emitCodePoint(rD(this.result),this.consumed),this.errors&&(t!==Wt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let s=i[this.treeIndex],l=(s&Xi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=uD(i,s,this.treeIndex+Math.max(1,l),u),this.treeIndex<0)return this.result===0||this.decodeMode===ii.Attribute&&(l===0||lD(u))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],l=(s&Xi.VALUE_LENGTH)>>14,l!==0){if(u===Wt.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==ii.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,s=(i[n]&Xi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Xi.VALUE_LENGTH:s[t+1],i),n===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case Kt.NamedEntity:return this.result!==0&&(this.decodeMode!==ii.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kt.NumericDecimal:return this.emitNumericEntity(0,2);case Kt.NumericHex:return this.emitNumericEntity(0,3);case Kt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kt.EntityStart:return 0}}}function uD(e,t,n,i){const s=(t&Xi.BRANCH_LENGTH)>>7,l=t&Xi.JUMP_TABLE;if(s===0)return l!==0&&i===l?n:-1;if(l){const d=i-l;return d<0||d>=s?-1:e[n+d]-1}let u=n,c=u+s-1;for(;u<=c;){const d=u+c>>>1,h=e[d];if(h<i)u=d+1;else if(h>i)c=d-1;else return e[d+s]}return-1}var de;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(de||(de={}));var qa;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(qa||(qa={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var Z;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Z||(Z={}));var T;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(T||(T={}));const cD=new Map([[Z.A,T.A],[Z.ADDRESS,T.ADDRESS],[Z.ANNOTATION_XML,T.ANNOTATION_XML],[Z.APPLET,T.APPLET],[Z.AREA,T.AREA],[Z.ARTICLE,T.ARTICLE],[Z.ASIDE,T.ASIDE],[Z.B,T.B],[Z.BASE,T.BASE],[Z.BASEFONT,T.BASEFONT],[Z.BGSOUND,T.BGSOUND],[Z.BIG,T.BIG],[Z.BLOCKQUOTE,T.BLOCKQUOTE],[Z.BODY,T.BODY],[Z.BR,T.BR],[Z.BUTTON,T.BUTTON],[Z.CAPTION,T.CAPTION],[Z.CENTER,T.CENTER],[Z.CODE,T.CODE],[Z.COL,T.COL],[Z.COLGROUP,T.COLGROUP],[Z.DD,T.DD],[Z.DESC,T.DESC],[Z.DETAILS,T.DETAILS],[Z.DIALOG,T.DIALOG],[Z.DIR,T.DIR],[Z.DIV,T.DIV],[Z.DL,T.DL],[Z.DT,T.DT],[Z.EM,T.EM],[Z.EMBED,T.EMBED],[Z.FIELDSET,T.FIELDSET],[Z.FIGCAPTION,T.FIGCAPTION],[Z.FIGURE,T.FIGURE],[Z.FONT,T.FONT],[Z.FOOTER,T.FOOTER],[Z.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[Z.FORM,T.FORM],[Z.FRAME,T.FRAME],[Z.FRAMESET,T.FRAMESET],[Z.H1,T.H1],[Z.H2,T.H2],[Z.H3,T.H3],[Z.H4,T.H4],[Z.H5,T.H5],[Z.H6,T.H6],[Z.HEAD,T.HEAD],[Z.HEADER,T.HEADER],[Z.HGROUP,T.HGROUP],[Z.HR,T.HR],[Z.HTML,T.HTML],[Z.I,T.I],[Z.IMG,T.IMG],[Z.IMAGE,T.IMAGE],[Z.INPUT,T.INPUT],[Z.IFRAME,T.IFRAME],[Z.KEYGEN,T.KEYGEN],[Z.LABEL,T.LABEL],[Z.LI,T.LI],[Z.LINK,T.LINK],[Z.LISTING,T.LISTING],[Z.MAIN,T.MAIN],[Z.MALIGNMARK,T.MALIGNMARK],[Z.MARQUEE,T.MARQUEE],[Z.MATH,T.MATH],[Z.MENU,T.MENU],[Z.META,T.META],[Z.MGLYPH,T.MGLYPH],[Z.MI,T.MI],[Z.MO,T.MO],[Z.MN,T.MN],[Z.MS,T.MS],[Z.MTEXT,T.MTEXT],[Z.NAV,T.NAV],[Z.NOBR,T.NOBR],[Z.NOFRAMES,T.NOFRAMES],[Z.NOEMBED,T.NOEMBED],[Z.NOSCRIPT,T.NOSCRIPT],[Z.OBJECT,T.OBJECT],[Z.OL,T.OL],[Z.OPTGROUP,T.OPTGROUP],[Z.OPTION,T.OPTION],[Z.P,T.P],[Z.PARAM,T.PARAM],[Z.PLAINTEXT,T.PLAINTEXT],[Z.PRE,T.PRE],[Z.RB,T.RB],[Z.RP,T.RP],[Z.RT,T.RT],[Z.RTC,T.RTC],[Z.RUBY,T.RUBY],[Z.S,T.S],[Z.SCRIPT,T.SCRIPT],[Z.SEARCH,T.SEARCH],[Z.SECTION,T.SECTION],[Z.SELECT,T.SELECT],[Z.SOURCE,T.SOURCE],[Z.SMALL,T.SMALL],[Z.SPAN,T.SPAN],[Z.STRIKE,T.STRIKE],[Z.STRONG,T.STRONG],[Z.STYLE,T.STYLE],[Z.SUB,T.SUB],[Z.SUMMARY,T.SUMMARY],[Z.SUP,T.SUP],[Z.TABLE,T.TABLE],[Z.TBODY,T.TBODY],[Z.TEMPLATE,T.TEMPLATE],[Z.TEXTAREA,T.TEXTAREA],[Z.TFOOT,T.TFOOT],[Z.TD,T.TD],[Z.TH,T.TH],[Z.THEAD,T.THEAD],[Z.TITLE,T.TITLE],[Z.TR,T.TR],[Z.TRACK,T.TRACK],[Z.TT,T.TT],[Z.U,T.U],[Z.UL,T.UL],[Z.SVG,T.SVG],[Z.VAR,T.VAR],[Z.WBR,T.WBR],[Z.XMP,T.XMP]]);function xl(e){var t;return(t=cD.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const me=T,fD={[de.HTML]:new Set([me.ADDRESS,me.APPLET,me.AREA,me.ARTICLE,me.ASIDE,me.BASE,me.BASEFONT,me.BGSOUND,me.BLOCKQUOTE,me.BODY,me.BR,me.BUTTON,me.CAPTION,me.CENTER,me.COL,me.COLGROUP,me.DD,me.DETAILS,me.DIR,me.DIV,me.DL,me.DT,me.EMBED,me.FIELDSET,me.FIGCAPTION,me.FIGURE,me.FOOTER,me.FORM,me.FRAME,me.FRAMESET,me.H1,me.H2,me.H3,me.H4,me.H5,me.H6,me.HEAD,me.HEADER,me.HGROUP,me.HR,me.HTML,me.IFRAME,me.IMG,me.INPUT,me.LI,me.LINK,me.LISTING,me.MAIN,me.MARQUEE,me.MENU,me.META,me.NAV,me.NOEMBED,me.NOFRAMES,me.NOSCRIPT,me.OBJECT,me.OL,me.P,me.PARAM,me.PLAINTEXT,me.PRE,me.SCRIPT,me.SECTION,me.SELECT,me.SOURCE,me.STYLE,me.SUMMARY,me.TABLE,me.TBODY,me.TD,me.TEMPLATE,me.TEXTAREA,me.TFOOT,me.TH,me.THEAD,me.TITLE,me.TR,me.TRACK,me.UL,me.WBR,me.XMP]),[de.MATHML]:new Set([me.MI,me.MO,me.MN,me.MS,me.MTEXT,me.ANNOTATION_XML]),[de.SVG]:new Set([me.TITLE,me.FOREIGN_OBJECT,me.DESC]),[de.XLINK]:new Set,[de.XML]:new Set,[de.XMLNS]:new Set},s0=new Set([me.H1,me.H2,me.H3,me.H4,me.H5,me.H6]);Z.STYLE,Z.SCRIPT,Z.XMP,Z.IFRAME,Z.NOEMBED,Z.NOFRAMES,Z.PLAINTEXT;var B;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(B||(B={}));const It={DATA:B.DATA,RCDATA:B.RCDATA,RAWTEXT:B.RAWTEXT,SCRIPT_DATA:B.SCRIPT_DATA,PLAINTEXT:B.PLAINTEXT,CDATA_SECTION:B.CDATA_SECTION};function dD(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function Ro(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function hD(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function Yi(e){return hD(e)||Ro(e)}function vT(e){return Yi(e)||dD(e)}function Qc(e){return e+32}function O_(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function ST(e){return O_(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function mD(e){return e===M.NULL?ae.nullCharacterReference:e>1114111?ae.characterReferenceOutsideUnicodeRange:k_(e)?ae.surrogateCharacterReference:N_(e)?ae.noncharacterCharacterReference:w_(e)||e===M.CARRIAGE_RETURN?ae.controlCharacterReference:null}class pD{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=B.DATA,this.returnState=B.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new oD(tD,(i,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ae.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ae.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const s=mD(i);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var i,s;(s=(i=this.handler).onParseError)===null||s===void 0||s.call(i,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Fe.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fe.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Fe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Fe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const i=this.currentToken;if(R_(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const s=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ae.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xl(t.tagName),t.type===Fe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ae.endTagWithAttributes),t.selfClosing&&this._err(ae.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Fe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Fe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Fe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Fe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=O_(t)?Fe.WHITESPACE_CHARACTER:t===M.NULL?Fe.NULL_CHARACTER:Fe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Fe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=B.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ii.Attribute:ii.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===B.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===B.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case B.DATA:{this._stateData(t);break}case B.RCDATA:{this._stateRcdata(t);break}case B.RAWTEXT:{this._stateRawtext(t);break}case B.SCRIPT_DATA:{this._stateScriptData(t);break}case B.PLAINTEXT:{this._statePlaintext(t);break}case B.TAG_OPEN:{this._stateTagOpen(t);break}case B.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case B.TAG_NAME:{this._stateTagName(t);break}case B.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case B.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case B.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case B.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case B.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case B.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case B.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case B.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case B.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case B.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case B.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case B.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case B.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case B.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case B.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case B.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case B.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case B.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case B.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case B.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case B.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case B.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case B.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case B.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case B.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case B.BOGUS_COMMENT:{this._stateBogusComment(t);break}case B.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case B.COMMENT_START:{this._stateCommentStart(t);break}case B.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case B.COMMENT:{this._stateComment(t);break}case B.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case B.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case B.COMMENT_END:{this._stateCommentEnd(t);break}case B.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case B.DOCTYPE:{this._stateDoctype(t);break}case B.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case B.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case B.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case B.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case B.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case B.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case B.CDATA_SECTION:{this._stateCdataSection(t);break}case B.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case B.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case B.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case B.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitCodePoint(t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=B.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Yi(t))this._createStartTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case M.EXCLAMATION_MARK:{this.state=B.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=B.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(ae.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t);break}case M.EOF:{this._err(ae.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ae.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=B.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Yi(t))this._createEndTagToken(),this.state=B.TAG_NAME,this._stateTagName(t);else switch(t){case M.GREATER_THAN_SIGN:{this._err(ae.missingEndTagName),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ae.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.tagName+=kt;break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ro(t)?Qc(t):t)}}_stateRcdataLessThanSign(t){t===M.SOLIDUS?this.state=B.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Yi(t)?(this.state=B.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=B.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=B.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=B.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===M.SOLIDUS?this.state=B.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Yi(t)?(this.state=B.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case M.SOLIDUS:{this.state=B.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=B.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=B.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Yi(t)?(this.state=B.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===M.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===M.HYPHEN_MINUS?(this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=B.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_ESCAPED,this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===M.SOLIDUS?this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Yi(t)?(this._emitChars("<"),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Yi(t)?(this.state=B.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(kn.SCRIPT,!1)&&ST(this.preprocessor.peek(kn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=B.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(kt);break}case M.EOF:{this._err(ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===M.SOLIDUS?(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(kn.SCRIPT,!1)&&ST(this.preprocessor.peek(kn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<kn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=B.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=B.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._err(ae.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=B.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(ae.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.currentAttr.name+=kt;break}default:this.currentAttr.name+=String.fromCodePoint(Ro(t)?Qc(t):t)}}_stateAfterAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=B.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=B.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=B.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=B.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=B.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingAttributeValue),this.state=B.DATA,this.emitCurrentTagToken();break}default:this.state=B.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case M.APOSTROPHE:{this.state=B.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),this.currentAttr.value+=kt;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(ae.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=B.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=B.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this._err(ae.missingWhitespaceBetweenAttributes),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case M.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=B.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(ae.eofInTag),this._emitEOFToken();break}default:this._err(ae.unexpectedSolidusInTag),this.state=B.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.data+=kt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(kn.DASH_DASH,!0)?(this._createCommentToken(kn.DASH_DASH.length+1),this.state=B.COMMENT_START):this._consumeSequenceIfMatch(kn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(kn.DOCTYPE.length+1),this.state=B.DOCTYPE):this._consumeSequenceIfMatch(kn.CDATA_START,!0)?this.inForeignNode?this.state=B.CDATA_SECTION:(this._err(ae.cdataInHtmlContent),this._createCommentToken(kn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=B.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ae.incorrectlyOpenedComment),this._createCommentToken(2),this.state=B.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptClosingOfEmptyComment),this.state=B.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptClosingOfEmptyComment),this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this._err(ae.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{n.data+="<",this.state=B.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.data+=kt;break}case M.EOF:{this._err(ae.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case M.EXCLAMATION_MARK:{n.data+="!",this.state=B.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=B.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===M.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=B.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===M.HYPHEN_MINUS?this.state=B.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=B.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==M.GREATER_THAN_SIGN&&t!==M.EOF&&this._err(ae.nestedComment),this.state=B.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=B.COMMENT_END;break}case M.EOF:{this._err(ae.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentComment(n);break}case M.EXCLAMATION_MARK:{this.state=B.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{n.data+="-";break}case M.EOF:{this._err(ae.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=B.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case M.HYPHEN_MINUS:{n.data+="--!",this.state=B.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(ae.incorrectlyClosedComment),this.state=B.DATA,this.emitCurrentComment(n);break}case M.EOF:{this._err(ae.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=B.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case M.EOF:{this._err(ae.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingWhitespaceBeforeDoctypeName),this.state=B.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ro(t))this._createDoctypeToken(String.fromCharCode(Qc(t))),this.state=B.DOCTYPE_NAME;else switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(ae.unexpectedNullCharacter),this._createDoctypeToken(kt),this.state=B.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=B.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.name+=kt;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ro(t)?Qc(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(kn.PUBLIC,!1)?this.state=B.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(kn.SYSTEM,!1)?this.state=B.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ae.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(ae.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(ae.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.publicId="",this.state=B.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.publicId+=kt;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.publicId+=kt;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.QUOTATION_MARK:{this._err(ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(ae.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=B.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(ae.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(ae.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{n.systemId="",this.state=B.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(ae.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.DATA,this.emitCurrentDoctype(n);break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.systemId+=kt;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=B.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(ae.unexpectedNullCharacter),n.systemId+=kt;break}case M.GREATER_THAN_SIGN:{this._err(ae.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.EOF:{this._err(ae.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ae.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=B.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=B.DATA;break}case M.NULL:{this._err(ae.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case M.RIGHT_SQUARE_BRACKET:{this.state=B.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(ae.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===M.RIGHT_SQUARE_BRACKET?this.state=B.CDATA_SECTION_END:(this._emitChars("]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case M.GREATER_THAN_SIGN:{this.state=B.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=B.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&vT(this.preprocessor.peek(1))?B.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){vT(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===M.SEMICOLON&&this._err(ae.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const L_=new Set([T.DD,T.DT,T.LI,T.OPTGROUP,T.OPTION,T.P,T.RB,T.RP,T.RT,T.RTC]),_T=new Set([...L_,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),Lf=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),gD=new Set([...Lf,T.OL,T.UL]),bD=new Set([...Lf,T.BUTTON]),CT=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),AT=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),yD=new Set([T.TR,T.TEMPLATE,T.HTML]),ED=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),xD=new Set([T.TABLE,T.TEMPLATE,T.HTML]),TD=new Set([T.TD,T.TH]);class vD{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=T.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===T.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===de.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==de.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(s0,de.HTML)}popUntilTableCellPopped(){this.popUntilPopped(TD,de.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(xD,de.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ED,de.HTML)}clearBackToTableRowContext(){this.clearBackTo(yD,de.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===T.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===T.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case de.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case de.SVG:{if(AT.has(s))return!1;break}case de.MATHML:{if(CT.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Lf)}hasInListItemScope(t){return this.hasInDynamicScope(t,gD)}hasInButtonScope(t){return this.hasInDynamicScope(t,bD)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case de.HTML:{if(s0.has(n))return!0;if(Lf.has(n))return!1;break}case de.SVG:{if(AT.has(n))return!1;break}case de.MATHML:{if(CT.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===de.HTML)switch(this.tagIDs[n]){case t:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===de.HTML)switch(this.tagIDs[t]){case T.TBODY:case T.THEAD:case T.TFOOT:return!0;case T.TABLE:case T.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===de.HTML)switch(this.tagIDs[n]){case t:return!0;case T.OPTION:case T.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&L_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&_T.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&_T.has(this.currentTagId);)this.pop()}}const sp=3;var Cr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Cr||(Cr={}));const kT={type:Cr.Marker};class SD{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],s=n.length,l=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===Cr.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===l&&this.treeAdapter.getNamespaceURI(h)===u){const m=this.treeAdapter.getAttrList(h);m.length===s&&i.push({idx:c,attrs:m})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<sp)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<sp)return;const s=new Map(n.map(u=>[u.name,u.value]));let l=0;for(let u=0;u<i.length;u++){const c=i[u];c.attrs.every(d=>s.get(d.name)===d.value)&&(l+=1,l>=sp&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(kT)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Cr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Cr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(kT);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===Cr.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===Cr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Cr.Element&&n.element===t)}}const $i={createDocument(){return{nodeName:"#document",mode:tr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const s=e.childNodes.find(l=>l.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=i;else{const l={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};$i.appendChild(e,l)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if($i.isTextNode(n)){n.value+=t;return}}$i.appendChild(e,$i.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&$i.isTextNode(i)?i.value+=t:$i.insertBefore(e,$i.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},D_="html",_D="about:legacy-compat",CD="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",I_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],AD=[...I_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],kD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),M_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wD=[...M_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function wT(e,t){return t.some(n=>e.startsWith(n))}function ND(e){return e.name===D_&&e.publicId===null&&(e.systemId===null||e.systemId===_D)}function RD(e){if(e.name!==D_)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===CD)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),kD.has(n))return tr.QUIRKS;let i=t===null?AD:I_;if(wT(n,i))return tr.QUIRKS;if(i=t===null?M_:wD,wT(n,i))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const NT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},OD="definitionurl",LD="definitionURL",DD=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ID=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:de.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:de.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:de.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:de.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:de.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:de.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:de.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:de.XML}],["xml:space",{prefix:"xml",name:"space",namespace:de.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:de.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:de.XMLNS}]]),MD=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),PD=new Set([T.B,T.BIG,T.BLOCKQUOTE,T.BODY,T.BR,T.CENTER,T.CODE,T.DD,T.DIV,T.DL,T.DT,T.EM,T.EMBED,T.H1,T.H2,T.H3,T.H4,T.H5,T.H6,T.HEAD,T.HR,T.I,T.IMG,T.LI,T.LISTING,T.MENU,T.META,T.NOBR,T.OL,T.P,T.PRE,T.RUBY,T.S,T.SMALL,T.SPAN,T.STRONG,T.STRIKE,T.SUB,T.SUP,T.TABLE,T.TT,T.U,T.UL,T.VAR]);function BD(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:i})=>i===qa.COLOR||i===qa.SIZE||i===qa.FACE)||PD.has(t)}function P_(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===OD){e.attrs[t].name=LD;break}}function B_(e){for(let t=0;t<e.attrs.length;t++){const n=DD.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function fg(e){for(let t=0;t<e.attrs.length;t++){const n=ID.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function jD(e){const t=MD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xl(e.tagName))}function HD(e,t){return t===de.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function UD(e,t,n){if(t===de.MATHML&&e===T.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===qa.ENCODING){const s=n[i].value.toLowerCase();return s===NT.TEXT_HTML||s===NT.APPLICATION_XML}}return t===de.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function zD(e,t,n,i){return(!i||i===de.HTML)&&UD(e,t,n)||(!i||i===de.MATHML)&&HD(e,t)}const FD="hidden",qD=8,VD=3;var F;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(F||(F={}));const YD={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},j_=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),RT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:$i,onParseError:null};class OT{constructor(t,n,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=F.INITIAL,this.originalInsertionMode=F.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...RT,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new pD(this.options,this),this.activeFormattingElements=new SD(this.treeAdapter),this.fragmentContextID=i?xl(this.treeAdapter.getTagName(i)):T.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new vD(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...RT,...n};t??(t=i.treeAdapter.createElement(Z.TEMPLATE,de.HTML,[]));const s=i.treeAdapter.createElement("documentmock",de.HTML,[]),l=new this(i,s,t);return l.fragmentContextID===T.TEMPLATE&&l.tmplInsertionModeStack.unshift(F.IN_TEMPLATE),l._initTokenizerForFragmentParsing(),l._insertFakeRootElement(),l._resetInsertionMode(),l._findFormInFragmentContext(),l}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,i){var s;if(!this.onParseError)return;const l=(s=t.location)!==null&&s!==void 0?s:YD,u={code:n,startLine:l.startLine,startCol:l.startCol,startOffset:l.startOffset,endLine:i?l.startLine:l.endLine,endCol:i?l.startCol:l.endCol,endOffset:i?l.startOffset:l.endOffset};this.onParseError(u)}onItemPush(t,n,i){var s,l;(l=(s=this.treeAdapter).onItemPush)===null||l===void 0||l.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),n){let l,u;this.openElements.stackTop===0&&this.fragmentContext?(l=this.fragmentContext,u=this.fragmentContextID):{current:l,currentTagId:u}=this.openElements,this._setContextModes(l,u)}}_setContextModes(t,n){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===de.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,de.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=F.TEXT}switchToPlaintextParsing(){this.insertionMode=F.TEXT,this.originalInsertionMode=F.IN_BODY,this.tokenizer.state=It.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Z.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==de.HTML))switch(this.fragmentContextID){case T.TITLE:case T.TEXTAREA:{this.tokenizer.state=It.RCDATA;break}case T.STYLE:case T.XMP:case T.IFRAME:case T.NOEMBED:case T.NOFRAMES:case T.NOSCRIPT:{this.tokenizer.state=It.RAWTEXT;break}case T.SCRIPT:{this.tokenizer.state=It.SCRIPT_DATA;break}case T.PLAINTEXT:{this.tokenizer.state=It.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,s),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,de.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,de.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Z.HTML,de.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,T.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),l=i?s.lastIndexOf(i):s.length,u=s[l-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,s=this.treeAdapter.getTagName(t),l=n.type===Fe.END_TAG&&s===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,l)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===T.SVG&&this.treeAdapter.getTagName(n)===Z.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===de.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,de.HTML)}_processToken(t){switch(t.type){case Fe.CHARACTER:{this.onCharacter(t);break}case Fe.NULL_CHARACTER:{this.onNullCharacter(t);break}case Fe.COMMENT:{this.onComment(t);break}case Fe.DOCTYPE:{this.onDoctype(t);break}case Fe.START_TAG:{this._processStartTag(t);break}case Fe.END_TAG:{this.onEndTag(t);break}case Fe.EOF:{this.onEof(t);break}case Fe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return zD(t,s,l,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Cr.Marker||this.openElements.contains(s.element)),i=n===-1?t-1:n-1;for(let s=i;s>=0;s--){const l=this.activeFormattingElements.entries[s];this._insertElement(l.token,this.treeAdapter.getNamespaceURI(l.element)),l.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=F.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(T.P),this.openElements.popUntilTagNamePopped(T.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case T.TR:{this.insertionMode=F.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=F.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=F.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=F.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=F.IN_TABLE;return}case T.BODY:{this.insertionMode=F.IN_BODY;return}case T.FRAMESET:{this.insertionMode=F.IN_FRAMESET;return}case T.SELECT:{this._resetInsertionModeForSelect(t);return}case T.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case T.HTML:{this.insertionMode=this.headElement?F.AFTER_HEAD:F.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=F.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=F.IN_HEAD;return}break}}this.insertionMode=F.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===T.TEMPLATE)break;if(i===T.TABLE){this.insertionMode=F.IN_SELECT_IN_TABLE;return}}this.insertionMode=F.IN_SELECT}_isElementCausesFosterParenting(t){return j_.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case T.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===de.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case T.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const i=this.treeAdapter.getNamespaceURI(t);return fD[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TM(this,t);return}switch(this.insertionMode){case F.INITIAL:{To(this,t);break}case F.BEFORE_HTML:{Po(this,t);break}case F.BEFORE_HEAD:{Bo(this,t);break}case F.IN_HEAD:{jo(this,t);break}case F.IN_HEAD_NO_SCRIPT:{Ho(this,t);break}case F.AFTER_HEAD:{Uo(this,t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:{U_(this,t);break}case F.TEXT:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_TABLE_TEXT:{$_(this,t);break}case F.IN_COLUMN_GROUP:{Df(this,t);break}case F.AFTER_BODY:{If(this,t);break}case F.AFTER_AFTER_BODY:{bf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xM(this,t);return}switch(this.insertionMode){case F.INITIAL:{To(this,t);break}case F.BEFORE_HTML:{Po(this,t);break}case F.BEFORE_HEAD:{Bo(this,t);break}case F.IN_HEAD:{jo(this,t);break}case F.IN_HEAD_NO_SCRIPT:{Ho(this,t);break}case F.AFTER_HEAD:{Uo(this,t);break}case F.TEXT:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_COLUMN_GROUP:{Df(this,t);break}case F.AFTER_BODY:{If(this,t);break}case F.AFTER_AFTER_BODY:{bf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){l0(this,t);return}switch(this.insertionMode){case F.INITIAL:case F.BEFORE_HTML:case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_TEMPLATE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{l0(this,t);break}case F.IN_TABLE_TEXT:{vo(this,t);break}case F.AFTER_BODY:{ZD(this,t);break}case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{JD(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case F.INITIAL:{eI(this,t);break}case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:{this._err(t,ae.misplacedDoctype);break}case F.IN_TABLE_TEXT:{vo(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ae.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?vM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{To(this,t);break}case F.BEFORE_HTML:{tI(this,t);break}case F.BEFORE_HEAD:{rI(this,t);break}case F.IN_HEAD:{pr(this,t);break}case F.IN_HEAD_NO_SCRIPT:{sI(this,t);break}case F.AFTER_HEAD:{oI(this,t);break}case F.IN_BODY:{un(this,t);break}case F.IN_TABLE:{dl(this,t);break}case F.IN_TABLE_TEXT:{vo(this,t);break}case F.IN_CAPTION:{iM(this,t);break}case F.IN_COLUMN_GROUP:{mg(this,t);break}case F.IN_TABLE_BODY:{cd(this,t);break}case F.IN_ROW:{fd(this,t);break}case F.IN_CELL:{lM(this,t);break}case F.IN_SELECT:{X_(this,t);break}case F.IN_SELECT_IN_TABLE:{uM(this,t);break}case F.IN_TEMPLATE:{fM(this,t);break}case F.AFTER_BODY:{hM(this,t);break}case F.IN_FRAMESET:{mM(this,t);break}case F.AFTER_FRAMESET:{gM(this,t);break}case F.AFTER_AFTER_BODY:{yM(this,t);break}case F.AFTER_AFTER_FRAMESET:{EM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?SM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{To(this,t);break}case F.BEFORE_HTML:{nI(this,t);break}case F.BEFORE_HEAD:{iI(this,t);break}case F.IN_HEAD:{aI(this,t);break}case F.IN_HEAD_NO_SCRIPT:{lI(this,t);break}case F.AFTER_HEAD:{uI(this,t);break}case F.IN_BODY:{ud(this,t);break}case F.TEXT:{KI(this,t);break}case F.IN_TABLE:{Zo(this,t);break}case F.IN_TABLE_TEXT:{vo(this,t);break}case F.IN_CAPTION:{aM(this,t);break}case F.IN_COLUMN_GROUP:{sM(this,t);break}case F.IN_TABLE_BODY:{o0(this,t);break}case F.IN_ROW:{K_(this,t);break}case F.IN_CELL:{oM(this,t);break}case F.IN_SELECT:{Q_(this,t);break}case F.IN_SELECT_IN_TABLE:{cM(this,t);break}case F.IN_TEMPLATE:{dM(this,t);break}case F.AFTER_BODY:{Z_(this,t);break}case F.IN_FRAMESET:{pM(this,t);break}case F.AFTER_FRAMESET:{bM(this,t);break}case F.AFTER_AFTER_BODY:{bf(this,t);break}}}onEof(t){switch(this.insertionMode){case F.INITIAL:{To(this,t);break}case F.BEFORE_HTML:{Po(this,t);break}case F.BEFORE_HEAD:{Bo(this,t);break}case F.IN_HEAD:{jo(this,t);break}case F.IN_HEAD_NO_SCRIPT:{Ho(this,t);break}case F.AFTER_HEAD:{Uo(this,t);break}case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{V_(this,t);break}case F.TEXT:{XI(this,t);break}case F.IN_TABLE_TEXT:{vo(this,t);break}case F.IN_TEMPLATE:{W_(this,t);break}case F.AFTER_BODY:case F.IN_FRAMESET:case F.AFTER_FRAMESET:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{hg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===M.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.TEXT:case F.IN_COLUMN_GROUP:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{this._insertCharacters(t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:case F.AFTER_BODY:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{H_(this,t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{lp(this,t);break}case F.IN_TABLE_TEXT:{Y_(this,t);break}}}}function $D(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):q_(e,t),n}function GD(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function KD(e,t,n){let i=t,s=e.openElements.getCommonAncestor(t);for(let l=0,u=s;u!==n;l++,u=s){s=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),d=c&&l>=VD;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=XD(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(u,i),i=u)}return i}function XD(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function QD(e,t,n){const i=e.treeAdapter.getTagName(t),s=xl(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===T.TEMPLATE&&l===de.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function WD(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,l=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,l),e.treeAdapter.appendChild(t,l),e.activeFormattingElements.insertElementAfterBookmark(l,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,l,s.tagID)}function dg(e,t){for(let n=0;n<qD;n++){const i=$D(e,t);if(!i)break;const s=GD(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const l=KD(e,s,i.element),u=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(l),u&&QD(e,u,l),WD(e,s,i)}}function l0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ZD(e,t){e._appendCommentNode(t,e.openElements.items[0])}function JD(e,t){e._appendCommentNode(t,e.document)}function hg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const l=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(l);u&&!u.endTag&&e._setEndLocation(l,t)}}}}function eI(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:RD(t);ND(t)||e._err(t,ae.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=F.BEFORE_HTML}function To(e,t){e._err(t,ae.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=F.BEFORE_HTML,e._processToken(t)}function tI(e,t){t.tagID===T.HTML?(e._insertElement(t,de.HTML),e.insertionMode=F.BEFORE_HEAD):Po(e,t)}function nI(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&Po(e,t)}function Po(e,t){e._insertFakeRootElement(),e.insertionMode=F.BEFORE_HEAD,e._processToken(t)}function rI(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.HEAD:{e._insertElement(t,de.HTML),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD;break}default:Bo(e,t)}}function iI(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?Bo(e,t):e._err(t,ae.endTagWithoutMatchingOpenElement)}function Bo(e,t){e._insertFakeElement(Z.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD,e._processToken(t)}function pr(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case T.TITLE:{e._switchToTextParsing(t,It.RCDATA);break}case T.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,It.RAWTEXT):(e._insertElement(t,de.HTML),e.insertionMode=F.IN_HEAD_NO_SCRIPT);break}case T.NOFRAMES:case T.STYLE:{e._switchToTextParsing(t,It.RAWTEXT);break}case T.SCRIPT:{e._switchToTextParsing(t,It.SCRIPT_DATA);break}case T.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(F.IN_TEMPLATE);break}case T.HEAD:{e._err(t,ae.misplacedStartTagForHeadElement);break}default:jo(e,t)}}function aI(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=F.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{jo(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:e._err(t,ae.endTagWithoutMatchingOpenElement)}}function rs(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,ae.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ae.endTagWithoutMatchingOpenElement)}function jo(e,t){e.openElements.pop(),e.insertionMode=F.AFTER_HEAD,e._processToken(t)}function sI(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{pr(e,t);break}case T.NOSCRIPT:{e._err(t,ae.nestedNoscriptInHead);break}default:Ho(e,t)}}function lI(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=F.IN_HEAD;break}case T.BR:{Ho(e,t);break}default:e._err(t,ae.endTagWithoutMatchingOpenElement)}}function Ho(e,t){const n=t.type===Fe.EOF?ae.openElementsLeftAfterEof:ae.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=F.IN_HEAD,e._processToken(t)}function oI(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.BODY:{e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=F.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,de.HTML),e.insertionMode=F.IN_FRAMESET;break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{e._err(t,ae.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),pr(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,ae.misplacedStartTagForHeadElement);break}default:Uo(e,t)}}function uI(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Uo(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:e._err(t,ae.endTagWithoutMatchingOpenElement)}}function Uo(e,t){e._insertFakeElement(Z.BODY,T.BODY),e.insertionMode=F.IN_BODY,od(e,t)}function od(e,t){switch(t.type){case Fe.CHARACTER:{U_(e,t);break}case Fe.WHITESPACE_CHARACTER:{H_(e,t);break}case Fe.COMMENT:{l0(e,t);break}case Fe.START_TAG:{un(e,t);break}case Fe.END_TAG:{ud(e,t);break}case Fe.EOF:{V_(e,t);break}}}function H_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function U_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function cI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function fI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function dI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_FRAMESET)}function hI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML)}function mI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&s0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,de.HTML)}function pI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function gI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML),n||(e.formElement=e.openElements.current))}function bI(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const s=e.openElements.tagIDs[i];if(n===T.LI&&s===T.LI||(n===T.DD||n===T.DT)&&(s===T.DD||s===T.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==T.ADDRESS&&s!==T.DIV&&s!==T.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML)}function yI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.tokenizer.state=It.PLAINTEXT}function EI(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.framesetOk=!1}function xI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Z.A);n&&(dg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function TI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function vI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(dg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,de.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function SI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _I(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=F.IN_TABLE}function z_(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,de.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function F_(e){const t=R_(e,qa.TYPE);return t!=null&&t.toLowerCase()===FD}function CI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,de.HTML),F_(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function AI(e,t){e._appendElement(t,de.HTML),t.ackSelfClosing=!0}function kI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,de.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function wI(e,t){t.tagName=Z.IMG,t.tagID=T.IMG,z_(e,t)}function NI(e,t){e._insertElement(t,de.HTML),e.skipNextNewLine=!0,e.tokenizer.state=It.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=F.TEXT}function RI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function OI(e,t){e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function LT(e,t){e._switchToTextParsing(t,It.RAWTEXT)}function LI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===F.IN_TABLE||e.insertionMode===F.IN_CAPTION||e.insertionMode===F.IN_TABLE_BODY||e.insertionMode===F.IN_ROW||e.insertionMode===F.IN_CELL?F.IN_SELECT_IN_TABLE:F.IN_SELECT}function DI(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML)}function II(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,de.HTML)}function MI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,de.HTML)}function PI(e,t){e._reconstructActiveFormattingElements(),P_(t),fg(t),t.selfClosing?e._appendElement(t,de.MATHML):e._insertElement(t,de.MATHML),t.ackSelfClosing=!0}function BI(e,t){e._reconstructActiveFormattingElements(),B_(t),fg(t),t.selfClosing?e._appendElement(t,de.SVG):e._insertElement(t,de.SVG),t.ackSelfClosing=!0}function DT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,de.HTML)}function un(e,t){switch(t.tagID){case T.I:case T.S:case T.B:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.SMALL:case T.STRIKE:case T.STRONG:{TI(e,t);break}case T.A:{xI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{mI(e,t);break}case T.P:case T.DL:case T.OL:case T.UL:case T.DIV:case T.DIR:case T.NAV:case T.MAIN:case T.MENU:case T.ASIDE:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.DETAILS:case T.ADDRESS:case T.ARTICLE:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{hI(e,t);break}case T.LI:case T.DD:case T.DT:{bI(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{z_(e,t);break}case T.HR:{kI(e,t);break}case T.RB:case T.RTC:{II(e,t);break}case T.RT:case T.RP:{MI(e,t);break}case T.PRE:case T.LISTING:{pI(e,t);break}case T.XMP:{RI(e,t);break}case T.SVG:{BI(e,t);break}case T.HTML:{cI(e,t);break}case T.BASE:case T.LINK:case T.META:case T.STYLE:case T.TITLE:case T.SCRIPT:case T.BGSOUND:case T.BASEFONT:case T.TEMPLATE:{pr(e,t);break}case T.BODY:{fI(e,t);break}case T.FORM:{gI(e,t);break}case T.NOBR:{vI(e,t);break}case T.MATH:{PI(e,t);break}case T.TABLE:{_I(e,t);break}case T.INPUT:{CI(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{AI(e,t);break}case T.IMAGE:{wI(e,t);break}case T.BUTTON:{EI(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{SI(e,t);break}case T.IFRAME:{OI(e,t);break}case T.SELECT:{LI(e,t);break}case T.OPTION:case T.OPTGROUP:{DI(e,t);break}case T.NOEMBED:case T.NOFRAMES:{LT(e,t);break}case T.FRAMESET:{dI(e,t);break}case T.TEXTAREA:{NI(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?LT(e,t):DT(e,t);break}case T.PLAINTEXT:{yI(e,t);break}case T.COL:case T.TH:case T.TD:case T.TR:case T.HEAD:case T.FRAME:case T.TBODY:case T.TFOOT:case T.THEAD:case T.CAPTION:case T.COLGROUP:break;default:DT(e,t)}}function jI(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=F.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function HI(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=F.AFTER_BODY,Z_(e,t))}function UI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function zI(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(T.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(T.FORM):n&&e.openElements.remove(n))}function FI(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(Z.P,T.P),e._closePElement()}function qI(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function VI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function YI(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function $I(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function GI(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Z.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function q_(e,t){const n=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const l=e.openElements.items[s],u=e.openElements.tagIDs[s];if(i===u&&(i!==T.UNKNOWN||e.treeAdapter.getTagName(l)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(l,u))break}}function ud(e,t){switch(t.tagID){case T.A:case T.B:case T.I:case T.S:case T.U:case T.EM:case T.TT:case T.BIG:case T.CODE:case T.FONT:case T.NOBR:case T.SMALL:case T.STRIKE:case T.STRONG:{dg(e,t);break}case T.P:{FI(e);break}case T.DL:case T.UL:case T.OL:case T.DIR:case T.DIV:case T.NAV:case T.PRE:case T.MAIN:case T.MENU:case T.ASIDE:case T.BUTTON:case T.CENTER:case T.FIGURE:case T.FOOTER:case T.HEADER:case T.HGROUP:case T.DIALOG:case T.ADDRESS:case T.ARTICLE:case T.DETAILS:case T.SEARCH:case T.SECTION:case T.SUMMARY:case T.LISTING:case T.FIELDSET:case T.BLOCKQUOTE:case T.FIGCAPTION:{UI(e,t);break}case T.LI:{qI(e);break}case T.DD:case T.DT:{VI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{YI(e);break}case T.BR:{GI(e);break}case T.BODY:{jI(e,t);break}case T.HTML:{HI(e,t);break}case T.FORM:{zI(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{$I(e,t);break}case T.TEMPLATE:{rs(e,t);break}default:q_(e,t)}}function V_(e,t){e.tmplInsertionModeStack.length>0?W_(e,t):hg(e,t)}function KI(e,t){var n;t.tagID===T.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function XI(e,t){e._err(t,ae.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function lp(e,t){if(e.openElements.currentTagId!==void 0&&j_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=F.IN_TABLE_TEXT,t.type){case Fe.CHARACTER:{$_(e,t);break}case Fe.WHITESPACE_CHARACTER:{Y_(e,t);break}}else uu(e,t)}function QI(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_CAPTION}function WI(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_COLUMN_GROUP}function ZI(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Z.COLGROUP,T.COLGROUP),e.insertionMode=F.IN_COLUMN_GROUP,mg(e,t)}function JI(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_TABLE_BODY}function eM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Z.TBODY,T.TBODY),e.insertionMode=F.IN_TABLE_BODY,cd(e,t)}function tM(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nM(e,t){F_(t)?e._appendElement(t,de.HTML):uu(e,t),t.ackSelfClosing=!0}function rM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,de.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function dl(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{eM(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{pr(e,t);break}case T.COL:{ZI(e,t);break}case T.FORM:{rM(e,t);break}case T.TABLE:{tM(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{JI(e,t);break}case T.INPUT:{nM(e,t);break}case T.CAPTION:{QI(e,t);break}case T.COLGROUP:{WI(e,t);break}default:uu(e,t)}}function Zo(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{rs(e,t);break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:uu(e,t)}}function uu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,od(e,t),e.fosterParentingEnabled=n}function Y_(e,t){e.pendingCharacterTokens.push(t)}function $_(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function vo(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)uu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const G_=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function iM(e,t){const n=t.tagID;G_.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,dl(e,t)):un(e,t)}function aM(e,t){const n=t.tagID;switch(n){case T.CAPTION:case T.TABLE:{e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,n===T.TABLE&&Zo(e,t));break}case T.BODY:case T.COL:case T.COLGROUP:case T.HTML:case T.TBODY:case T.TD:case T.TFOOT:case T.TH:case T.THEAD:case T.TR:break;default:ud(e,t)}}function mg(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.COL:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{pr(e,t);break}default:Df(e,t)}}function sM(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case T.TEMPLATE:{rs(e,t);break}case T.COL:break;default:Df(e,t)}}function Df(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE,e._processToken(t))}function cd(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Z.TR,T.TR),e.insertionMode=F.IN_ROW,fd(e,t);break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,dl(e,t));break}default:dl(e,t)}}function o0(e,t){const n=t.tagID;switch(t.tagID){case T.TBODY:case T.TFOOT:case T.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,Zo(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:case T.TR:break;default:Zo(e,t)}}function fd(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,de.HTML),e.insertionMode=F.IN_CELL,e.activeFormattingElements.insertMarker();break}case T.CAPTION:case T.COL:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,cd(e,t));break}default:dl(e,t)}}function K_(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,o0(e,t));break}case T.TBODY:case T.TFOOT:case T.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(T.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,o0(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:case T.TD:case T.TH:break;default:Zo(e,t)}}function lM(e,t){const n=t.tagID;G_.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),fd(e,t)):un(e,t)}function oM(e,t){const n=t.tagID;switch(n){case T.TD:case T.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),K_(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:ud(e,t)}}function X_(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,de.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,de.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case T.INPUT:case T.KEYGEN:case T.TEXTAREA:case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),t.tagID!==T.SELECT&&e._processStartTag(t));break}case T.SCRIPT:case T.TEMPLATE:{pr(e,t);break}}}function Q_(e,t){switch(t.tagID){case T.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===T.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===T.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop();break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop();break}case T.SELECT:{e.openElements.hasInSelectScope(T.SELECT)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode());break}case T.TEMPLATE:{rs(e,t);break}}}function uM(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e._processStartTag(t)):X_(e,t)}function cM(e,t){const n=t.tagID;n===T.CAPTION||n===T.TABLE||n===T.TBODY||n===T.TFOOT||n===T.THEAD||n===T.TR||n===T.TD||n===T.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(T.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Q_(e,t)}function fM(e,t){switch(t.tagID){case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:case T.NOFRAMES:case T.SCRIPT:case T.STYLE:case T.TEMPLATE:case T.TITLE:{pr(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=F.IN_TABLE,e.insertionMode=F.IN_TABLE,dl(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=F.IN_COLUMN_GROUP,e.insertionMode=F.IN_COLUMN_GROUP,mg(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=F.IN_TABLE_BODY,e.insertionMode=F.IN_TABLE_BODY,cd(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=F.IN_ROW,e.insertionMode=F.IN_ROW,fd(e,t);break}default:e.tmplInsertionModeStack[0]=F.IN_BODY,e.insertionMode=F.IN_BODY,un(e,t)}}function dM(e,t){t.tagID===T.TEMPLATE&&rs(e,t)}function W_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):hg(e,t)}function hM(e,t){t.tagID===T.HTML?un(e,t):If(e,t)}function Z_(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=F.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===T.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else If(e,t)}function If(e,t){e.insertionMode=F.IN_BODY,od(e,t)}function mM(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.FRAMESET:{e._insertElement(t,de.HTML);break}case T.FRAME:{e._appendElement(t,de.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{pr(e,t);break}}}function pM(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=F.AFTER_FRAMESET))}function gM(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.NOFRAMES:{pr(e,t);break}}}function bM(e,t){t.tagID===T.HTML&&(e.insertionMode=F.AFTER_AFTER_FRAMESET)}function yM(e,t){t.tagID===T.HTML?un(e,t):bf(e,t)}function bf(e,t){e.insertionMode=F.IN_BODY,od(e,t)}function EM(e,t){switch(t.tagID){case T.HTML:{un(e,t);break}case T.NOFRAMES:{pr(e,t);break}}}function xM(e,t){t.chars=kt,e._insertCharacters(t)}function TM(e,t){e._insertCharacters(t),e.framesetOk=!1}function J_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==de.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function vM(e,t){if(BD(t))J_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===de.MATHML?P_(t):i===de.SVG&&(jD(t),B_(t)),fg(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function SM(e,t){if(t.tagID===T.P||t.tagID===T.BR){J_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===de.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}Z.AREA,Z.BASE,Z.BASEFONT,Z.BGSOUND,Z.BR,Z.COL,Z.EMBED,Z.FRAME,Z.HR,Z.IMG,Z.INPUT,Z.KEYGEN,Z.LINK,Z.META,Z.PARAM,Z.SOURCE,Z.TRACK,Z.WBR;const dd=e3("end"),Lr=e3("start");function e3(e){return t;function t(n){const i=n&&n.position&&n.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 t3(e){const t=Lr(e),n=dd(e);if(t&&n)return{start:t,end:n}}const _M=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,CM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),IT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function n3(e,t){const n=MM(e),i=C_("type",{handlers:{root:AM,element:kM,text:wM,comment:i3,doctype:NM,raw:OM},unknown:LM}),s={parser:n?new OT(IT):OT.getFragmentParser(void 0,IT),handle(c){i(c,s)},stitches:!1,options:t||{}};i(e,s),Tl(s,Lr());const l=n?s.parser.document:s.parser.getFragment(),u=PL(l,{file:s.options.file});return s.stitches&&dr(u,"comment",function(c,d,h){const m=c;if(m.value.stitch&&h&&d!==void 0){const p=h.children;return p[d]=m.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function r3(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function AM(e,t){r3(e.children,t)}function kM(e,t){DM(e,t),r3(e.children,t),IM(e,t)}function wM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Fe.CHARACTER,chars:e.value,location:cu(e)};Tl(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function NM(e,t){const n={type:Fe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cu(e)};Tl(t,Lr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function RM(e,t){t.stitches=!0;const n=PM(e);if("children"in e&&"children"in n){const i=n3({type:"root",children:e.children},t.options);n.children=i.children}i3({type:"comment",value:{stitch:n}},t)}function i3(e,t){const n=e.value,i={type:Fe.COMMENT,data:n,location:cu(e)};Tl(t,Lr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function OM(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,a3(t,Lr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_M,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function LM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))RM(n,t);else{let i="";throw CM.has(n.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+i)}}function Tl(e,t){a3(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=It.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function a3(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function DM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===It.PLAINTEXT)return;Tl(t,Lr(e));const i=t.parser.openElements.current;let s="namespaceURI"in i?i.namespaceURI:Ha.html;s===Ha.html&&n==="svg"&&(s=Ha.svg);const l=zL({...e,children:[]},{space:s===Ha.svg?"svg":"html"}),u={type:Fe.START_TAG,tagName:n,tagID:xl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:cu(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function IM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&XL.includes(n)||t.parser.tokenizer.state===It.PLAINTEXT)return;Tl(t,dd(e));const i={type:Fe.END_TAG,tagName:n,tagID:xl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:cu(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===It.RCDATA||t.parser.tokenizer.state===It.RAWTEXT||t.parser.tokenizer.state===It.SCRIPT_DATA)&&(t.parser.tokenizer.state=It.DATA)}function MM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function cu(e){const t=Lr(e)||{line:void 0,column:void 0,offset:void 0},n=dd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function PM(e){return"children"in e?Ka({...e,children:[]}):Ka(e)}function u0(e){return function(t,n){return n3(t,{...e,file:n})}}const Na=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Ma={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Na,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Na],h2:[["className","sr-only"]],img:[...Na,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Na,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Na],table:[...Na],ul:[...Na,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gi={}.hasOwnProperty;function BM(e,t){let n={type:"root",children:[]};const i={schema:t?{...Ma,...t}:Ma,stack:[]},s=s3(i,e);return s&&(Array.isArray(s)?s.length===1?n=s[0]:n.children=s:n=s),n}function s3(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return jM(e,n);case"doctype":return HM(e,n);case"element":return UM(e,n);case"root":return zM(e,n);case"text":return FM(e,n)}}}function jM(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",i=n.indexOf("-->"),l={type:"comment",value:i<0?n:n.slice(0,i)};return fu(l,t),l}}function HM(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return fu(n,t),n}}function UM(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=l3(e,t.children),s=qM(e,t.properties);e.stack.pop();let l=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(l=!0,e.schema.ancestors&&Gi.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(l=!1;++d<c.length;)e.stack.includes(c[d])&&(l=!0)}if(!l)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;const u={type:"element",tagName:n,properties:s,children:i};return fu(u,t),u}function zM(e,t){const i={type:"root",children:l3(e,t.children)};return fu(i,t),i}function FM(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return fu(i,t),i}function l3(e,t){const n=[];if(Array.isArray(t)){const i=t;let s=-1;for(;++s<i.length;){const l=s3(e,i[s]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function qM(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,s=e.schema.required,l=i&&Gi.call(i,n)?i[n]:void 0,u=i&&Gi.call(i,"*")?i["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if(Gi.call(c,h)){const m=c[h];let p=MT(e,PT(l,h),h,m);p==null&&(p=MT(e,PT(u,h),h,m)),p!=null&&(d[h]=p)}if(s&&Gi.call(s,n)){const m=s[n];for(h in m)Gi.call(m,h)&&!Gi.call(d,h)&&(d[h]=m[h])}return d}function MT(e,t,n,i){return t?Array.isArray(i)?VM(e,t,n,i):o3(e,t,n,i):void 0}function VM(e,t,n,i){let s=-1;const l=[];for(;++s<i.length;){const u=o3(e,t,n,i[s]);(typeof u=="number"||typeof u=="string")&&l.push(u)}return l}function o3(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&YM(e,n,i)){if(typeof t=="object"&&t.length>1){let s=!1,l=0;for(;++l<t.length;){const u=t[l];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(i))){s=!0;break}}else if(u===i){s=!0;break}}if(!s)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function YM(e,t,n){const i=e.schema.protocols&&Gi.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const s=String(n),l=s.indexOf(":"),u=s.indexOf("?"),c=s.indexOf("#"),d=s.indexOf("/");if(l<0||d>-1&&l>d||u>-1&&l>u||c>-1&&l>c)return!0;let h=-1;for(;++h<i.length;){const m=i[h];if(l===m.length&&s.slice(0,m.length)===m)return!0}return!1}function fu(e,t){const n=t3(t);t.data&&(e.data=Ka(t.data)),n&&(e.position=n)}function PT(e,t){let n,i=-1;if(e)for(;++i<e.length;){const s=e[i],l=typeof s=="string"?s:s[0];if(l===t)return s;l==="data*"&&(n=s)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function u3(e){return function(t){return BM(t,e)}}function BT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}const mn=la(/[A-Za-z]/),on=la(/[\dA-Za-z]/),$M=la(/[#-'*+\--9=?A-Z^-~]/);function Mf(e){return e!==null&&(e<32||e===127)}const c0=la(/\d/),GM=la(/[\dA-Fa-f]/),KM=la(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function xt(e){return e!==null&&(e<0||e===32)}function Xe(e){return e===-2||e===-1||e===32}const hd=la(new RegExp("\\p{P}|\\p{S}","u")),Xa=la(/\s/);function la(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function XM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function QM(e,t,n){const s=rd((n||{}).ignore||[]),l=WM(t);let u=-1;for(;++u<l.length;)ad(e,"text",c);function c(h,m){let p=-1,E;for(;++p<m.length;){const y=m[p],v=E?E.children:void 0;if(s(y,v?v.indexOf(y):void 0,E))return;E=y}if(E)return d(h,m)}function d(h,m){const p=m[m.length-1],E=l[u][0],y=l[u][1];let v=0;const A=p.children.indexOf(h);let k=!1,N=[];E.lastIndex=0;let w=E.exec(h.value);for(;w;){const D=w.index,z={index:w.index,input:w.input,stack:[...m,h]};let L=y(...w,z);if(typeof L=="string"&&(L=L.length>0?{type:"text",value:L}:void 0),L===!1?E.lastIndex=D+1:(v!==D&&N.push({type:"text",value:h.value.slice(v,D)}),Array.isArray(L)?N.push(...L):L&&N.push(L),v=D+w[0].length,k=!0),!E.global)break;w=E.exec(h.value)}return k?(v<h.value.length&&N.push({type:"text",value:h.value.slice(v)}),p.children.splice(A,1,...N)):N=[h],A+N.length}}function WM(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([ZM(s[0]),JM(s[1])])}return t}function ZM(e){return typeof e=="string"?new RegExp(XM(e),"g"):e}function JM(e){return typeof e=="function"?e:function(){return e}}const op="phrasing",up=["autolink","link","image","label"];function e8(){return{transforms:[l8],enter:{literalAutolink:n8,literalAutolinkEmail:cp,literalAutolinkHttp:cp,literalAutolinkWww:cp},exit:{literalAutolink:s8,literalAutolinkEmail:a8,literalAutolinkHttp:r8,literalAutolinkWww:i8}}}function t8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:op,notInConstruct:up},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:op,notInConstruct:up},{character:":",before:"[ps]",after:"\\/",inConstruct:op,notInConstruct:up}]}}function n8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function cp(e){this.config.enter.autolinkProtocol.call(this,e)}function r8(e){this.config.exit.autolinkProtocol.call(this,e)}function i8(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 a8(e){this.config.exit.autolinkEmail.call(this,e)}function s8(e){this.exit(e)}function l8(e){QM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,o8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),u8]],{ignore:["link","linkReference"]})}function o8(e,t,n,i,s){let l="";if(!c3(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!c8(n)))return!1;const u=f8(n+i);if(!u[0])return!1;const c={type:"link",title:null,url:l+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function u8(e,t,n,i){return!c3(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function c8(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 f8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=BT(e,"(");let l=BT(e,")");for(;i!==-1&&s>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function c3(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xa(n)||hd(n))&&(!t||n!==47)}function fr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}f3.peek=x8;function d8(){this.buffer()}function h8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function m8(){this.buffer()}function p8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function g8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function b8(e){this.exit(e)}function y8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function E8(e){this.exit(e)}function x8(){return"["}function f3(e,t,n,i){const s=n.createTracker(i);let l=s.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),c(),u(),l+=s.move("]"),l}function T8(){return{enter:{gfmFootnoteCallString:d8,gfmFootnoteCall:h8,gfmFootnoteDefinitionLabelString:m8,gfmFootnoteDefinition:p8},exit:{gfmFootnoteCallString:g8,gfmFootnoteCall:b8,gfmFootnoteDefinitionLabelString:y8,gfmFootnoteDefinition:E8}}}function v8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:f3},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,l,u){const c=l.createTracker(u);let d=c.move("[^");const h=l.enter("footnoteDefinition"),m=l.enter("label");return d+=c.move(l.safe(l.associationId(i),{before:d,after:"]"})),m(),d+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
51
|
-
`:" ")+l.indentLines(l.containerFlow(i,c.current()),t?d3:S8))),h(),d}}function S8(e,t,n){return t===0?e:d3(e,t,n)}function d3(e,t,n){return(n?"":" ")+e}const _8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];h3.peek=N8;function C8(){return{canContainEols:["delete"],enter:{strikethrough:k8},exit:{strikethrough:w8}}}function A8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_8}],handlers:{delete:h3}}}function k8(e){this.enter({type:"delete",children:[]},e)}function w8(e){this.exit(e)}function h3(e,t,n,i){const s=n.createTracker(i),l=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),l(),u}function N8(){return"~"}function R8(e){return e.length}function O8(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||R8,l=[],u=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let k=-1;for(e[m].length>h&&(h=e[m].length);++k<e[m].length;){const N=L8(e[m][k]);if(n.alignDelimiters!==!1){const w=s(N);A[k]=w,(d[k]===void 0||w>d[k])&&(d[k]=w)}S.push(N)}u[m]=S,c[m]=A}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)l[p]=jT(i[p]);else{const S=jT(i);for(;++p<h;)l[p]=S}p=-1;const E=[],y=[];for(;++p<h;){const S=l[p];let A="",k="";S===99?(A=":",k=":"):S===108?A=":":S===114&&(k=":");let N=n.alignDelimiters===!1?1:Math.max(1,d[p]-A.length-k.length);const w=A+"-".repeat(N)+k;n.alignDelimiters!==!1&&(N=A.length+N+k.length,N>d[p]&&(d[p]=N),y[p]=N),E[p]=w}u.splice(1,0,E),c.splice(1,0,y),m=-1;const v=[];for(;++m<u.length;){const S=u[m],A=c[m];p=-1;const k=[];for(;++p<h;){const N=S[p]||"";let w="",D="";if(n.alignDelimiters!==!1){const z=d[p]-(A[p]||0),L=l[p];L===114?w=" ".repeat(z):L===99?z%2?(w=" ".repeat(z/2+.5),D=" ".repeat(z/2-.5)):(w=" ".repeat(z/2),D=w):D=" ".repeat(z)}n.delimiterStart!==!1&&!p&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||p)&&k.push(" "),n.alignDelimiters!==!1&&k.push(w),k.push(N),n.alignDelimiters!==!1&&k.push(D),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&k.push("|")}v.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return v.join(`
|
|
52
|
-
`)}function L8(e){return e==null?"":String(e)}function jT(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 D8(e,t,n,i){const s=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const u=n.indentLines(n.containerFlow(e,l.current()),I8);return s(),u}function I8(e,t,n){return">"+(n?"":" ")+e}function M8(e,t){return HT(e,t.inConstruct,!0)&&!HT(e,t.notInConstruct,!1)}function HT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function UT(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
|
|
53
|
-
`&&M8(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
54
|
-
`}function P8(e,t){const n=String(e);let i=n.indexOf(t),s=i,l=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++l>u&&(u=l):l=1,s=i+t.length,i=n.indexOf(t,s);return u}function B8(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 j8(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 H8(e,t,n,i){const s=j8(n),l=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(B8(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(l,U8);return p(),E}const c=n.createTracker(i),d=s.repeat(Math.max(P8(l,s)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const p=n.enter(`codeFencedLang${u}`);m+=c.move(n.safe(e.lang,{before:m,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,{before:m,after:`
|
|
55
|
-
`,encode:["`"],...c.current()})),p()}return m+=c.move(`
|
|
56
|
-
`),l&&(m+=c.move(l+`
|
|
57
|
-
`)),m+=c.move(d),h(),m}function U8(e,t,n){return(n?"":" ")+e}function pg(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 z8(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
58
|
-
`,...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),u(),h}function F8(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 Jo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function hl(e){if(e===null||xt(e)||Xa(e))return 1;if(hd(e))return 2}function Pf(e,t,n){const i=hl(e),s=hl(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}m3.peek=q8;function m3(e,t,n,i){const s=F8(n),l=n.enter("emphasis"),u=n.createTracker(i),c=u.move(s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Pf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=Jo(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Pf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+Jo(p));const y=u.move(s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+y}function q8(e,t,n){return n.options.emphasis||"*"}const V8={};function gg(e,t){const n=V8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return p3(e,i,s)}function p3(e,t,n){if(Y8(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zT(e.children,t,n)}return Array.isArray(e)?zT(e,t,n):""}function zT(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=p3(e[s],t,n);return i.join("")}function Y8(e){return!!(e&&typeof e=="object")}function $8(e,t){let n=!1;return dr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,t0}),!!((!e.depth||e.depth<3)&&gg(e)&&(t.options.setext||n))}function G8(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if($8(e,n)){const m=n.enter("headingSetext"),p=n.enter("phrasing"),E=n.containerPhrasing(e,{...l.current(),before:`
|
|
59
|
-
`,after:`
|
|
60
|
-
`});return p(),m(),E+`
|
|
61
|
-
`+(s===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
62
|
-
`))+1))}const u="#".repeat(s),c=n.enter("headingAtx"),d=n.enter("phrasing");l.move(u+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
63
|
-
`,...l.current()});return/^[\t ]/.test(h)&&(h=Jo(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),c(),h}g3.peek=K8;function g3(e){return e.value||""}function K8(){return"<"}b3.peek=X8;function b3(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const d=n.createTracker(i);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=d.move(" "+s),h+=d.move(n.safe(e.title,{before:h,after:s,...d.current()})),h+=d.move(s),c()),h+=d.move(")"),u(),h}function X8(){return"!"}y3.peek=Q8;function y3(e,t,n,i){const s=e.referenceType,l=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(i);let d=c.move("![");const h=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function Q8(){return"!"}E3.peek=W8;function E3(e,t,n){let i=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const u=n.unsafe[l],c=n.compilePattern(u);let d;if(u.atBreak)for(;d=c.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return s+i+s}function W8(){return"`"}function x3(e,t){const n=gg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}T3.peek=Z8;function T3(e,t,n,i){const s=pg(n),l=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let c,d;if(x3(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),c(),n.stack=m,p}c=n.enter("link"),d=n.enter("label");let h=u.move("[");return h+=u.move(n.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(d=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=n.enter(`title${l}`),h+=u.move(" "+s),h+=u.move(n.safe(e.title,{before:h,after:s,...u.current()})),h+=u.move(s),d()),h+=u.move(")"),c(),h}function Z8(e,t,n){return x3(e,n)?"<":"["}v3.peek=J8;function v3(e,t,n,i){const s=e.referenceType,l=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(i);let d=c.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=m,l(),s==="full"||!h||h!==p?d+=c.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function J8(){return"["}function bg(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 e9(e){const t=bg(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function t9(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 S3(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 n9(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let u=e.ordered?t9(n):bg(n);const c=e.ordered?u==="."?")":".":e9(n);let d=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),S3(n)===u&&m){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=c),n.bulletCurrent=u;const h=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=l,s(),h}function r9(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 i9(e,t,n,i){const s=r9(n);let l=n.bulletCurrent||bg(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let u=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const c=n.createTracker(i);c.move(l+" ".repeat(u-l.length)),c.shift(u);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(p,E,y){return E?(y?"":" ".repeat(u))+p:(y?l:l+" ".repeat(u-l.length))+p}}function a9(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),u=n.containerPhrasing(e,i);return l(),s(),u}const s9=rd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l9(e,t,n,i){return(e.children.some(function(u){return s9(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function o9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_3.peek=u9;function _3(e,t,n,i){const s=o9(n),l=n.enter("strong"),u=n.createTracker(i),c=u.move(s+s);let d=u.move(n.containerPhrasing(e,{after:s,before:c,...u.current()}));const h=d.charCodeAt(0),m=Pf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=Jo(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=Pf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+Jo(p));const y=u.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+y}function u9(e,t,n){return n.options.strong||"*"}function c9(e,t,n,i){return n.safe(e.value,i)}function f9(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 d9(e,t,n){const i=(S3(n)+(n.options.ruleSpaces?" ":"")).repeat(f9(n));return n.options.ruleSpaces?i.slice(0,-1):i}const C3={blockquote:D8,break:UT,code:H8,definition:z8,emphasis:m3,hardBreak:UT,heading:G8,html:g3,image:b3,imageReference:y3,inlineCode:E3,link:T3,linkReference:v3,list:n9,listItem:i9,paragraph:a9,root:l9,strong:_3,text:c9,thematicBreak:d9},FT=document.createElement("i");function yg(e){const t="&"+e+";";FT.innerHTML=t;const n=FT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function A3(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const h9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function m9(e){return e.replace(h9,p9)}function p9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return A3(n.slice(l?2:1),l?16:10)}return yg(n)||e}function g9(){return{enter:{table:b9,tableData:qT,tableHeader:qT,tableRow:E9},exit:{codeText:x9,table:y9,tableData:fp,tableHeader:fp,tableRow:fp}}}function b9(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function y9(e){this.exit(e),this.data.inTable=void 0}function E9(e){this.enter({type:"tableRow",children:[]},e)}function fp(e){this.exit(e)}function qT(e){this.enter({type:"tableCell",children:[]},e)}function x9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,T9));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function T9(e,t){return t==="|"?t:e}function v9(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
64
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:u,tableCell:d,tableRow:c}};function u(y,v,S,A){return h(m(y,S,A),y.align)}function c(y,v,S,A){const k=p(y,S,A),N=h([k]);return N.slice(0,N.indexOf(`
|
|
65
|
-
`))}function d(y,v,S,A){const k=S.enter("tableCell"),N=S.enter("phrasing"),w=S.containerPhrasing(y,{...A,before:l,after:l});return N(),k(),w}function h(y,v){return O8(y,{align:v,alignDelimiters:i,padding:n,stringLength:s})}function m(y,v,S){const A=y.children;let k=-1;const N=[],w=v.enter("table");for(;++k<A.length;)N[k]=p(A[k],v,S);return w(),N}function p(y,v,S){const A=y.children;let k=-1;const N=[],w=v.enter("tableRow");for(;++k<A.length;)N[k]=d(A[k],y,v,S);return w(),N}function E(y,v,S){let A=C3.inlineCode(y,v,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function S9(){return{exit:{taskListCheckValueChecked:VT,taskListCheckValueUnchecked:VT,paragraph:C9}}}function _9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:A9}}}function VT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function C9(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let l=-1,u;for(;++l<s.length;){const c=s[l];if(c.type==="paragraph"){u=c;break}}u===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function A9(e,t,n,i){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(i);l&&c.move(u);let d=C3.listItem(e,t,n,{...i,...c.current()});return l&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+u}}function k9(){return[e8(),T8(),C8(),g9(),S9()]}function w9(e){return{extensions:[t8(),v8(e),A8(),v9(e),_9()]}}function Vn(e,t,n,i){const s=e.length;let l=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<i.length;)u=i.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function nr(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const YT={}.hasOwnProperty;function k3(e){const t={};let n=-1;for(;++n<e.length;)N9(t,e[n]);return t}function N9(e,t){let n;for(n in t){const s=(YT.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){YT.call(s,u)||(s[u]=[]);const c=l[u];R9(s[u],Array.isArray(c)?c:c?[c]:[])}}}function R9(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Vn(e,0,0,i)}const O9={tokenize:B9,partial:!0},w3={tokenize:j9,partial:!0},N3={tokenize:H9,partial:!0},R3={tokenize:U9,partial:!0},L9={tokenize:z9,partial:!0},O3={name:"wwwAutolink",tokenize:M9,previous:D3},L3={name:"protocolAutolink",tokenize:P9,previous:I3},mi={name:"emailAutolink",tokenize:I9,previous:M3},Dr={};function D9(){return{text:Dr}}let Ra=48;for(;Ra<123;)Dr[Ra]=mi,Ra++,Ra===58?Ra=65:Ra===91&&(Ra=97);Dr[43]=mi;Dr[45]=mi;Dr[46]=mi;Dr[95]=mi;Dr[72]=[mi,L3];Dr[104]=[mi,L3];Dr[87]=[mi,O3];Dr[119]=[mi,O3];function I9(e,t,n){const i=this;let s,l;return u;function u(p){return!f0(p)||!M3.call(i,i.previous)||Eg(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return f0(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(L9,m,h)(p):p===45||p===95||on(p)?(l=!0,e.consume(p),d):m(p)}function h(p){return e.consume(p),s=!0,d}function m(p){return l&&s&&mn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function M9(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!D3.call(i,i.previous)||Eg(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(O9,e.attempt(w3,e.attempt(N3,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function P9(e,t,n){const i=this;let s="",l=!1;return u;function u(p){return(p===72||p===104)&&I3.call(i,i.previous)&&!Eg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(mn(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const E=s.toLowerCase();if(E==="http"||E==="https")return e.consume(p),d}return n(p)}function d(p){return p===47?(e.consume(p),l?h:(l=!0,d)):n(p)}function h(p){return p===null||Mf(p)||xt(p)||Xa(p)||hd(p)?n(p):e.attempt(w3,e.attempt(N3,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function B9(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),l):n(u)}function l(u){return u===null?n(u):t(u)}}function j9(e,t,n){let i,s,l;return u;function u(h){return h===46||h===95?e.check(R3,d,c)(h):h===null||xt(h)||Xa(h)||h!==45&&hd(h)?d(h):(l=!0,e.consume(h),u)}function c(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),u}function d(h){return s||i||!l?n(h):t(h)}}function H9(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<n?l(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(R3,t,l)(u):u===null||xt(u)||Xa(u)?t(u):(e.consume(u),s)}function l(u){return u===41&&i++,e.consume(u),s}}function U9(e,t,n){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),i):c===38?(e.consume(c),l):c===93?(e.consume(c),s):c===60||c===null||xt(c)||Xa(c)?t(c):n(c)}function s(c){return c===null||c===40||c===91||xt(c)||Xa(c)?t(c):i(c)}function l(c){return mn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),i):mn(c)?(e.consume(c),u):n(c)}}function z9(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return on(l)?n(l):t(l)}}function D3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xt(e)}function I3(e){return!mn(e)}function M3(e){return!(e===47||f0(e))}function f0(e){return e===43||e===45||e===46||e===95||on(e)}function Eg(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function vl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&on(e.charCodeAt(n+1))&&on(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(u=String.fromCharCode(l,c),s=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function md(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const d0={name:"attention",resolveAll:F9,tokenize:q9};function F9(e,t){let n=-1,i,s,l,u,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;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[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},E={...e[n][1].start};$T(p,-d),$T(E,d),u={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},l={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:d>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[i][1].end={...u.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=nr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=nr(h,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=nr(h,md(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=nr(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=nr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Vn(e,i-1,n-i+3,h),n=i+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function q9(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=hl(i);let l;return u;function u(d){return l=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===l)return e.consume(d),c;const h=e.exit("attentionSequence"),m=hl(d),p=!m||m===2&&s||n.includes(d),E=!s||s===2&&m||n.includes(i);return h._open=!!(l===42?p:p&&(s||!E)),h._close=!!(l===42?E:E&&(m||!p)),t(d)}}function $T(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const V9={name:"autolink",tokenize:Y9};function Y9(e,t,n){let i=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return mn(y)?(e.consume(y),u):y===64?n(y):h(y)}function u(y){return y===43||y===45||y===46||on(y)?(i=1,c(y)):h(y)}function c(y){return y===58?(e.consume(y),i=0,d):(y===43||y===45||y===46||on(y))&&i++<32?(e.consume(y),c):(i=0,h(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Mf(y)?n(y):(e.consume(y),d)}function h(y){return y===64?(e.consume(y),m):$M(y)?(e.consume(y),h):n(y)}function m(y){return on(y)?p(y):n(y)}function p(y){return y===46?(e.consume(y),i=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):E(y)}function E(y){if((y===45||on(y))&&i++<63){const v=y===45?E:p;return e.consume(y),v}return n(y)}}function Je(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return Xe(d)?(e.enter(n),c(d)):t(d)}function c(d){return Xe(d)&&l++<s?(e.consume(d),c):(e.exit(n),t(d))}}const du={partial:!0,tokenize:$9};function $9(e,t,n){return i;function i(l){return Xe(l)?Je(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Re(l)?t(l):n(l)}}const P3={continuation:{tokenize:K9},exit:X9,name:"blockQuote",tokenize:G9};function G9(e,t,n){const i=this;return s;function s(u){if(u===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return Xe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function K9(e,t,n){const i=this;return s;function s(u){return Xe(u)?Je(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(P3,t,n)(u)}}function X9(e){e.exit("blockQuote")}const B3={name:"characterEscape",tokenize:Q9};function Q9(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return KM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const j3={name:"characterReference",tokenize:W9};function W9(e,t,n){const i=this;let s=0,l,u;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,u=on,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=GM,m):(e.enter("characterReferenceValue"),l=7,u=c0,m(p))}function m(p){if(p===59&&s){const E=e.exit("characterReferenceValue");return u===on&&!yg(i.sliceSerialize(E))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<l?(e.consume(p),m):n(p)}}const GT={partial:!0,tokenize:J9},KT={concrete:!0,name:"codeFenced",tokenize:Z9};function Z9(e,t,n){const i=this,s={partial:!0,tokenize:z};let l=0,u=0,c;return d;function d(L){return h(L)}function h(L){const P=i.events[i.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,c=L,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(L)}function m(L){return L===c?(u++,e.consume(L),m):u<3?n(L):(e.exit("codeFencedFenceSequence"),Xe(L)?Je(e,p,"whitespace")(L):p(L))}function p(L){return L===null||Re(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check(GT,S,D)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(L))}function E(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(L)):Xe(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Je(e,y,"whitespace")(L)):L===96&&L===c?n(L):(e.consume(L),E)}function y(L){return L===null||Re(L)?p(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(L))}function v(L){return L===null||Re(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(L)):L===96&&L===c?n(L):(e.consume(L),v)}function S(L){return e.attempt(s,D,A)(L)}function A(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),k}function k(L){return l>0&&Xe(L)?Je(e,N,"linePrefix",l+1)(L):N(L)}function N(L){return L===null||Re(L)?e.check(GT,S,D)(L):(e.enter("codeFlowValue"),w(L))}function w(L){return L===null||Re(L)?(e.exit("codeFlowValue"),N(L)):(e.consume(L),w)}function D(L){return e.exit("codeFenced"),t(L)}function z(L,P,H){let G=0;return j;function j(ne){return L.enter("lineEnding"),L.consume(ne),L.exit("lineEnding"),Y}function Y(ne){return L.enter("codeFencedFence"),Xe(ne)?Je(L,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):W(ne)}function W(ne){return ne===c?(L.enter("codeFencedFenceSequence"),se(ne)):H(ne)}function se(ne){return ne===c?(G++,L.consume(ne),se):G>=u?(L.exit("codeFencedFenceSequence"),Xe(ne)?Je(L,le,"whitespace")(ne):le(ne)):H(ne)}function le(ne){return ne===null||Re(ne)?(L.exit("codeFencedFence"),P(ne)):H(ne)}}}function J9(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const dp={name:"codeIndented",tokenize:tP},eP={partial:!0,tokenize:nP};function tP(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),Je(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):Re(h)?e.attempt(eP,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Re(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function nP(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Je(e,l,"linePrefix",5)(u)}function l(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Re(u)?s(u):n(u)}}const rP={name:"codeText",previous:aP,resolve:iP,tokenize:sP};function iP(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function aP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sP(e,t,n){let i=0,s,l;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),i++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(l=e.enter("codeTextSequence"),s=0,m(p)):Re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Re(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class lP{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,n){const i=n??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,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&So(this.left,i),l.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),So(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),So(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);So(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);So(this.left,n.reverse())}}}function So(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function H3(e){const t={};let n=-1,i,s,l,u,c,d,h;const m=new lP(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(i=m.get(n),n&&i[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,oP(m,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,s=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},c=m.slice(s,n),c.unshift(i),m.splice(s,n-s+1,c))}}return Vn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function oP(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],h={};let m,p,E=-1,y=n,v=0,S=0;const A=[S];for(;y;){for(;e.get(++s)[1]!==y;);l.push(s),y._tokenizer||(m=i.sliceStream(y),y.next||m.push(null),p&&u.defineSkip(y.start),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=n;++E<c.length;)c[E][0]==="exit"&&c[E-1][0]==="enter"&&c[E][1].type===c[E-1][1].type&&c[E][1].start.line!==c[E][1].end.line&&(S=E+1,A.push(S),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(u.events=[],y?(y._tokenizer=void 0,y.previous=void 0):A.pop(),E=A.length;E--;){const k=c.slice(A[E],A[E+1]),N=l.pop();d.push([N,N+k.length-1]),e.splice(N,2,k)}for(d.reverse(),E=-1;++E<d.length;)h[v+d[E][0]]=v+d[E][1],v+=d[E][1]-d[E][0]-1;return h}const uP={resolve:fP,tokenize:dP},cP={partial:!0,tokenize:hP};function fP(e){return H3(e),e}function dP(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(c)}function s(c){return c===null?l(c):Re(c)?e.check(cP,u,l)(c):(e.consume(c),s)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function hP(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Je(e,l,"linePrefix")}function l(u){if(u===null||Re(u))return n(u);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function U3(e,t,n,i,s,l,u,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(k){return k===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(k),e.exit(l),E):k===null||k===32||k===41||Mf(k)?n(k):(e.enter(i),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(k))}function E(k){return k===62?(e.enter(l),e.consume(k),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===62?(e.exit("chunkString"),e.exit(c),E(k)):k===null||k===60||Re(k)?n(k):(e.consume(k),k===92?v:y)}function v(k){return k===60||k===62||k===92?(e.consume(k),y):y(k)}function S(k){return!m&&(k===null||k===41||xt(k))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(i),t(k)):m<h&&k===40?(e.consume(k),m++,S):k===41?(e.consume(k),m--,S):k===null||k===32||k===40||Mf(k)?n(k):(e.consume(k),k===92?A:S)}function A(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function z3(e,t,n,i,s,l){const u=this;let c=0,d;return h;function h(y){return e.enter(i),e.enter(s),e.consume(y),e.exit(s),e.enter(l),m}function m(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(y):y===93?(e.exit(l),e.enter(s),e.consume(y),e.exit(s),e.exit(i),t):Re(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Re(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!Xe(y)),y===92?E:p)}function E(y){return y===91||y===92||y===93?(e.consume(y),c++,p):p(y)}}function F3(e,t,n,i,s,l){let u;return c;function c(E){return E===34||E===39||E===40?(e.enter(i),e.enter(s),e.consume(E),e.exit(s),u=E===40?41:E,d):n(E)}function d(E){return E===u?(e.enter(s),e.consume(E),e.exit(s),e.exit(i),t):(e.enter(l),h(E))}function h(E){return E===u?(e.exit(l),d(u)):E===null?n(E):Re(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Je(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===u||E===null||Re(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?p:m)}function p(E){return E===u||E===92?(e.consume(E),m):m(E)}}function zo(e,t){let n;return i;function i(s){return Re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Xe(s)?Je(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const mP={name:"definition",tokenize:gP},pP={partial:!0,tokenize:bP};function gP(e,t,n){const i=this;let s;return l;function l(y){return e.enter("definition"),u(y)}function u(y){return z3.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return s=fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return xt(y)?zo(e,h)(y):h(y)}function h(y){return U3(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(pP,p,p)(y)}function p(y){return Xe(y)?Je(e,E,"whitespace")(y):E(y)}function E(y){return y===null||Re(y)?(e.exit("definition"),i.parser.defined.push(s),t(y)):n(y)}}function bP(e,t,n){return i;function i(c){return xt(c)?zo(e,s)(c):n(c)}function s(c){return F3(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Xe(c)?Je(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Re(c)?t(c):n(c)}}const yP={name:"hardBreakEscape",tokenize:EP};function EP(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Re(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const xP={name:"headingAtx",resolve:TP,tokenize:vP};function TP(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Vn(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function vP(e,t,n){let i=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(e.consume(m),u):m===null||xt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Re(m)?(e.exit("atxHeading"),t(m)):Xe(m)?Je(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||xt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const SP=["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"],XT=["pre","script","style","textarea"],_P={concrete:!0,name:"htmlFlow",resolveTo:kP,tokenize:wP},CP={partial:!0,tokenize:RP},AP={partial:!0,tokenize:NP};function kP(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 wP(e,t,n){const i=this;let s,l,u,c,d;return h;function h(I){return m(I)}function m(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),p}function p(I){return I===33?(e.consume(I),E):I===47?(e.consume(I),l=!0,S):I===63?(e.consume(I),s=3,i.interrupt?t:R):mn(I)?(e.consume(I),u=String.fromCharCode(I),A):n(I)}function E(I){return I===45?(e.consume(I),s=2,y):I===91?(e.consume(I),s=5,c=0,v):mn(I)?(e.consume(I),s=4,i.interrupt?t:R):n(I)}function y(I){return I===45?(e.consume(I),i.interrupt?t:R):n(I)}function v(I){const ge="CDATA[";return I===ge.charCodeAt(c++)?(e.consume(I),c===ge.length?i.interrupt?t:W:v):n(I)}function S(I){return mn(I)?(e.consume(I),u=String.fromCharCode(I),A):n(I)}function A(I){if(I===null||I===47||I===62||xt(I)){const ge=I===47,ye=u.toLowerCase();return!ge&&!l&&XT.includes(ye)?(s=1,i.interrupt?t(I):W(I)):SP.includes(u.toLowerCase())?(s=6,ge?(e.consume(I),k):i.interrupt?t(I):W(I)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(I):l?N(I):w(I))}return I===45||on(I)?(e.consume(I),u+=String.fromCharCode(I),A):n(I)}function k(I){return I===62?(e.consume(I),i.interrupt?t:W):n(I)}function N(I){return Xe(I)?(e.consume(I),N):j(I)}function w(I){return I===47?(e.consume(I),j):I===58||I===95||mn(I)?(e.consume(I),D):Xe(I)?(e.consume(I),w):j(I)}function D(I){return I===45||I===46||I===58||I===95||on(I)?(e.consume(I),D):z(I)}function z(I){return I===61?(e.consume(I),L):Xe(I)?(e.consume(I),z):w(I)}function L(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),d=I,P):Xe(I)?(e.consume(I),L):H(I)}function P(I){return I===d?(e.consume(I),d=null,G):I===null||Re(I)?n(I):(e.consume(I),P)}function H(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||xt(I)?z(I):(e.consume(I),H)}function G(I){return I===47||I===62||Xe(I)?w(I):n(I)}function j(I){return I===62?(e.consume(I),Y):n(I)}function Y(I){return I===null||Re(I)?W(I):Xe(I)?(e.consume(I),Y):n(I)}function W(I){return I===45&&s===2?(e.consume(I),V):I===60&&s===1?(e.consume(I),X):I===62&&s===4?(e.consume(I),U):I===63&&s===3?(e.consume(I),R):I===93&&s===5?(e.consume(I),Ee):Re(I)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(CP,K,se)(I)):I===null||Re(I)?(e.exit("htmlFlowData"),se(I)):(e.consume(I),W)}function se(I){return e.check(AP,le,K)(I)}function le(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),ne}function ne(I){return I===null||Re(I)?se(I):(e.enter("htmlFlowData"),W(I))}function V(I){return I===45?(e.consume(I),R):W(I)}function X(I){return I===47?(e.consume(I),u="",re):W(I)}function re(I){if(I===62){const ge=u.toLowerCase();return XT.includes(ge)?(e.consume(I),U):W(I)}return mn(I)&&u.length<8?(e.consume(I),u+=String.fromCharCode(I),re):W(I)}function Ee(I){return I===93?(e.consume(I),R):W(I)}function R(I){return I===62?(e.consume(I),U):I===45&&s===2?(e.consume(I),R):W(I)}function U(I){return I===null||Re(I)?(e.exit("htmlFlowData"),K(I)):(e.consume(I),U)}function K(I){return e.exit("htmlFlow"),t(I)}}function NP(e,t,n){const i=this;return s;function s(u){return Re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function RP(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(du,t,n)}}const OP={name:"htmlText",tokenize:LP};function LP(e,t,n){const i=this;let s,l,u;return c;function c(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),h):R===47?(e.consume(R),z):R===63?(e.consume(R),w):mn(R)?(e.consume(R),H):n(R)}function h(R){return R===45?(e.consume(R),m):R===91?(e.consume(R),l=0,v):mn(R)?(e.consume(R),N):n(R)}function m(R){return R===45?(e.consume(R),y):n(R)}function p(R){return R===null?n(R):R===45?(e.consume(R),E):Re(R)?(u=p,X(R)):(e.consume(R),p)}function E(R){return R===45?(e.consume(R),y):p(R)}function y(R){return R===62?V(R):R===45?E(R):p(R)}function v(R){const U="CDATA[";return R===U.charCodeAt(l++)?(e.consume(R),l===U.length?S:v):n(R)}function S(R){return R===null?n(R):R===93?(e.consume(R),A):Re(R)?(u=S,X(R)):(e.consume(R),S)}function A(R){return R===93?(e.consume(R),k):S(R)}function k(R){return R===62?V(R):R===93?(e.consume(R),k):S(R)}function N(R){return R===null||R===62?V(R):Re(R)?(u=N,X(R)):(e.consume(R),N)}function w(R){return R===null?n(R):R===63?(e.consume(R),D):Re(R)?(u=w,X(R)):(e.consume(R),w)}function D(R){return R===62?V(R):w(R)}function z(R){return mn(R)?(e.consume(R),L):n(R)}function L(R){return R===45||on(R)?(e.consume(R),L):P(R)}function P(R){return Re(R)?(u=P,X(R)):Xe(R)?(e.consume(R),P):V(R)}function H(R){return R===45||on(R)?(e.consume(R),H):R===47||R===62||xt(R)?G(R):n(R)}function G(R){return R===47?(e.consume(R),V):R===58||R===95||mn(R)?(e.consume(R),j):Re(R)?(u=G,X(R)):Xe(R)?(e.consume(R),G):V(R)}function j(R){return R===45||R===46||R===58||R===95||on(R)?(e.consume(R),j):Y(R)}function Y(R){return R===61?(e.consume(R),W):Re(R)?(u=Y,X(R)):Xe(R)?(e.consume(R),Y):G(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,se):Re(R)?(u=W,X(R)):Xe(R)?(e.consume(R),W):(e.consume(R),le)}function se(R){return R===s?(e.consume(R),s=void 0,ne):R===null?n(R):Re(R)?(u=se,X(R)):(e.consume(R),se)}function le(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||xt(R)?G(R):(e.consume(R),le)}function ne(R){return R===47||R===62||xt(R)?G(R):n(R)}function V(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function X(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),re}function re(R){return Xe(R)?Je(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):Ee(R)}function Ee(R){return e.enter("htmlTextData"),u(R)}}const xg={name:"labelEnd",resolveAll:PP,resolveTo:BP,tokenize:jP},DP={tokenize:HP},IP={tokenize:UP},MP={tokenize:zP};function PP(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&Vn(e,0,e.length,n),e}function BP(e,t){let n=e.length,i=0,s,l,u,c;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=nr(c,e.slice(l+1,l+i+3)),c=nr(c,[["enter",m,t]]),c=nr(c,md(t.parser.constructs.insideSpan.null,e.slice(l+i+4,u-3),t)),c=nr(c,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),c=nr(c,e.slice(u+1)),c=nr(c,[["exit",d,t]]),Vn(e,l,e.length,c),e}function jP(e,t,n){const i=this;let s=i.events.length,l,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return c;function c(E){return l?l._inactive?p(E):(u=i.parser.defined.includes(fr(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(DP,m,u?m:p)(E):E===91?e.attempt(IP,m,u?h:p)(E):u?m(E):p(E)}function h(E){return e.attempt(MP,m,p)(E)}function m(E){return t(E)}function p(E){return l._balanced=!0,n(E)}}function HP(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return xt(p)?zo(e,l)(p):l(p)}function l(p){return p===41?m(p):U3(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return xt(p)?zo(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?F3(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return xt(p)?zo(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function UP(e,t,n){const i=this;return s;function s(c){return z3.call(i,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes(fr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function zP(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const FP={name:"labelStartImage",resolveAll:xg.resolveAll,tokenize:qP};function qP(e,t,n){const i=this;return s;function s(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const VP={name:"labelStartLink",resolveAll:xg.resolveAll,tokenize:YP};function YP(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const hp={name:"lineEnding",tokenize:$P};function $P(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Je(e,t,"linePrefix")}}const yf={name:"thematicBreak",tokenize:GP};function GP(e,t,n){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),u(h)}function u(h){return s=h,c(h)}function c(h){return h===s?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||Re(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Xe(h)?Je(e,c,"whitespace")(h):c(h))}}const wn={continuation:{tokenize:WP},exit:JP,name:"list",tokenize:QP},KP={partial:!0,tokenize:e7},XP={partial:!0,tokenize:ZP};function QP(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return c;function c(y){const v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:c0(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(yf,n,h)(y):h(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return c0(y)&&++u<10?(e.consume(y),d):(!i.interrupt||u<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):n(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(du,i.interrupt?n:m,e.attempt(KP,E,p))}function m(y){return i.containerState.initialBlankLine=!0,l++,E(y)}function p(y){return Xe(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),E):n(y)}function E(y){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function WP(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(du,s,l);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Je(e,t,"listItemIndent",i.containerState.size+1)(c)}function l(c){return i.containerState.furtherBlankLines||!Xe(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(XP,t,u)(c))}function u(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,Je(e,e.attempt(wn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function ZP(e,t,n){const i=this;return Je(e,s,"listItemIndent",i.containerState.size+1);function s(l){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(l):n(l)}}function JP(e){e.exit(this.containerState.type)}function e7(e,t,n){const i=this;return Je(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const u=i.events[i.events.length-1];return!Xe(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const QT={name:"setextUnderline",resolveTo:t7,tokenize:n7};function t7(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",u,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function n7(e,t,n){const i=this;let s;return l;function l(h){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===s?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Xe(h)?Je(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Re(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const r7={tokenize:f7,partial:!0};function i7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:o7,continuation:{tokenize:u7},exit:c7}},text:{91:{name:"gfmFootnoteCall",tokenize:l7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a7,resolveTo:s7}}}}function a7(e,t,n){const i=this;let s=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const d=i.events[s][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!u||!u._balanced)return n(d);const h=fr(i.sliceSerialize({start:u.end,end:i.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function s7(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",u,t],["exit",u,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function l7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,u;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(l>999||p===93&&!u||p===null||p===91||xt(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return s.includes(fr(i.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return xt(p)||(u=!0),l++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function o7(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,u=0,c;return d;function d(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(v)}function m(v){if(u>999||v===93&&!c||v===null||v===91||xt(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=fr(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return xt(v)||(c=!0),u++,e.consume(v),v===92?p:m}function p(v){return v===91||v===92||v===93?(e.consume(v),u++,m):m(v)}function E(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),s.includes(l)||s.push(l),Je(e,y,"gfmFootnoteDefinitionWhitespace")):n(v)}function y(v){return t(v)}}function u7(e,t,n){return e.check(du,t,e.attempt(r7,t,n))}function c7(e){e.exit("gfmFootnoteDefinition")}function f7(e,t,n){const i=this;return Je(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(l):n(l)}}function d7(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(u,c){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let h=d;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[d][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[d][1].end)},p={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[d][1].start)},E=[["enter",m,c],["enter",u[h][1],c],["exit",u[h][1],c],["enter",p,c]],y=c.parser.constructs.insideSpan.null;y&&Vn(E,E.length,0,md(y,u.slice(h+1,d),c)),Vn(E,E.length,0,[["exit",p,c],["enter",u[d][1],c],["exit",u[d][1],c],["exit",m,c]]),Vn(u,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function l(u,c,d){const h=this.previous,m=this.events;let p=0;return E;function E(v){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(v):(u.enter("strikethroughSequenceTemporary"),y(v))}function y(v){const S=hl(h);if(v===126)return p>1?d(v):(u.consume(v),p++,y);if(p<2&&!n)return d(v);const A=u.exit("strikethroughSequenceTemporary"),k=hl(v);return A._open=!k||k===2&&!!S,A._close=!S||S===2&&!!k,c(v)}}}class h7{constructor(){this.map=[]}add(t,n,i){m7(this,t,n,i)}consume(t){if(this.map.sort(function(l,u){return l[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const l of s)t.push(l);s=i.pop()}this.map.length=0}}function m7(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function p7(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function g7(){return{flow:{null:{name:"table",tokenize:b7,resolveAll:y7}}}}function b7(e,t,n){const i=this;let s=0,l=0,u;return c;function c(j){let Y=i.events.length-1;for(;Y>-1;){const le=i.events[Y][1].type;if(le==="lineEnding"||le==="linePrefix")Y--;else break}const W=Y>-1?i.events[Y][1].type:null,se=W==="tableHead"||W==="tableRow"?L:d;return se===L&&i.parser.lazy[i.now().line]?n(j):se(j)}function d(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(u=!0,l+=1),m(j)}function m(j){return j===null?n(j):Re(j)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),y):n(j):Xe(j)?Je(e,m,"whitespace")(j):(l+=1,u&&(u=!1,s+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(j)))}function p(j){return j===null||j===124||xt(j)?(e.exit("data"),m(j)):(e.consume(j),j===92?E:p)}function E(j){return j===92||j===124?(e.consume(j),p):p(j)}function y(j){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(j):(e.enter("tableDelimiterRow"),u=!1,Xe(j)?Je(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):v(j))}function v(j){return j===45||j===58?A(j):j===124?(u=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),S):z(j)}function S(j){return Xe(j)?Je(e,A,"whitespace")(j):A(j)}function A(j){return j===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),k):j===45?(l+=1,k(j)):j===null||Re(j)?D(j):z(j)}function k(j){return j===45?(e.enter("tableDelimiterFiller"),N(j)):z(j)}function N(j){return j===45?(e.consume(j),N):j===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(j))}function w(j){return Xe(j)?Je(e,D,"whitespace")(j):D(j)}function D(j){return j===124?v(j):j===null||Re(j)?!u||s!==l?z(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(j)):z(j)}function z(j){return n(j)}function L(j){return e.enter("tableRow"),P(j)}function P(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),P):j===null||Re(j)?(e.exit("tableRow"),t(j)):Xe(j)?Je(e,P,"whitespace")(j):(e.enter("data"),H(j))}function H(j){return j===null||j===124||xt(j)?(e.exit("data"),P(j)):(e.consume(j),j===92?G:H)}function G(j){return j===92||j===124?(e.consume(j),H):H(j)}}function y7(e,t){let n=-1,i=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h,m,p;const E=new h7;for(;++n<e.length;){const y=e[n],v=y[1];y[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(WT(E,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",h,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!0,p=void 0,l=[0,0,0,0],u=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},E.add(n,0,[["enter",m,t]])),s=v.type==="tableDelimiterRow"?2:m?3:1):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(l[1]!==0&&(u[0]=u[1],p=Wc(E,t,l,s,void 0,p),l=[0,0,0,0]),u[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(u[0]=u[1],p=Wc(E,t,l,s,void 0,p)),l=u,u=[l[1],n,0,0])):v.type==="tableHead"?(c=!0,d=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(d=n,l[1]!==0?(u[0]=u[1],p=Wc(E,t,l,s,n,p)):u[1]!==0&&(p=Wc(E,t,u,s,n,p)),s=0):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&WT(E,t,d,h,m),E.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=p7(t.events,n))}return e}function Wc(e,t,n,i,s,l){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(l.end=Object.assign({},el(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=el(t.events,n[1]);if(l={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=el(t.events,n[2]),m=el(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const E=t.events[n[2]],y=t.events[n[3]];if(E[1].end=Object.assign({},y[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(l.end=Object.assign({},el(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function WT(e,t,n,i,s){const l=[],u=el(t.events,n);s&&(s.end=Object.assign({},u),l.push(["exit",s,t])),i.end=Object.assign({},u),l.push(["exit",i,t]),e.add(n+1,0,l)}function el(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const E7={name:"tasklistCheck",tokenize:T7};function x7(){return{text:{91:E7}}}function T7(e,t,n){const i=this;return s;function s(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),l)}function l(d){return xt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):n(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return Re(d)?t(d):Xe(d)?e.check({tokenize:v7},t,n)(d):n(d)}}function v7(e,t,n){return Je(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function S7(e){return k3([D9(),i7(),d7(e),g7(),x7()])}const _7={};function C7(e){const t=this,n=e||_7,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(S7(n)),l.push(k9()),u.push(w9(n))}var A7=Object.defineProperty,k7=Object.defineProperties,w7=Object.getOwnPropertyDescriptors,ZT=Object.getOwnPropertySymbols,N7=Object.prototype.hasOwnProperty,R7=Object.prototype.propertyIsEnumerable,JT=(e,t,n)=>t in e?A7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q3=(e,t)=>{for(var n in t||(t={}))N7.call(t,n)&&JT(e,n,t[n]);if(ZT)for(var n of ZT(t))R7.call(t,n)&&JT(e,n,t[n]);return e},V3=(e,t)=>k7(e,w7(t)),O7=e=>{let t=new Uint8Array(e.length+1),n=!1,i=!1,s=0;for(;s<e.length;){if(e[s]==="\\"&&s+1<e.length&&e[s+1]==="`"){let l=n||i?1:0;t[s+1]=l,t[s+2]=l,s+=2;continue}if(e.substring(s,s+3)==="```"){i=!i;let l=n||i?1:0,u=Math.min(s+3,e.length);for(let c=s+1;c<=u;c+=1)t[c]=l;s=u;continue}!i&&e[s]==="`"&&(n=!n),t[s+1]=n||i?1:0,s+=1}return t},e2=null,bn=(e,t)=>{let n=e2;return(n===null||n.text!==e)&&(n={text:e,lookup:O7(e)},e2=n),n.lookup[Math.min(t,e.length)]===1},L7=(e,t)=>{let n=e.substring(t,t+3)==="```",i=t>0&&e.substring(t-1,t+2)==="```",s=t>1&&e.substring(t-2,t+1)==="```";return n||i||s},D7=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!L7(e,n)&&(t+=1)}return t},na=(e,t)=>{let n=!1,i=!1,s=-1;for(let l=0;l<e.length;l+=1){if(e[l]==="\\"&&l+1<e.length&&e[l+1]==="`"){l+=1;continue}if(e.substring(l,l+3)==="```"){i=!i,l+=2;continue}if(!i&&e[l]==="`")if(n){if(s<t&&t<l)return!0;n=!1,s=-1}else n=!0,s=l}return!1},I7=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,M7=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(I7,(t,n,i,s)=>bn(e,s)?t:`${n}\\>${i}`),P7=/(\*\*)([^*]*\*?)$/,B7=/(__)([^_]*?)$/,j7=/(\*\*\*)([^*]*?)$/,H7=/(\*)([^*]*?)$/,U7=/(_)([^_]*?)$/,z7=/(`)([^`]*?)$/,F7=/(~~)([^~]*?)$/,is=/^[\s_~*`]*$/,Y3=/^[\s]*[-*+][\s]+$/,q7=/[\p{L}\p{N}_]/u,V7=/^```[^`\n]*```?$/,Y7=/^\*{4,}$/,$7=/(__)([^_]+)_$/,G7=/(~~)([^~]+)~$/,t2=/~~/g,di=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:q7.test(e)},K7=(e,t)=>{let n=1;for(let i=t-1;i>=0;i-=1)if(e[i]==="]")n+=1;else if(e[i]==="["&&(n-=1,n===0))return i;return-1},$3=(e,t)=>{let n=1;for(let i=t+1;i<e.length;i+=1)if(e[i]==="[")n+=1;else if(e[i]==="]"&&(n-=1,n===0))return i;return-1},X7=e=>e==="inlineLatex"||e==="blockLatex",Q7=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,W7=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",pd=(e,t)=>{let n="none";for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}if(e[i]==="\\"){let s=Q7(n,e[i+1]);if(s!==null){n=s,i+=1;continue}}if(e[i]==="$"&&!X7(n)){let s=e[i+1]==="$";n=W7(n,s),s&&(i+=1)}}return n!=="none"},Z7=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
66
|
-
`)return!1}return!1},G3=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?Z7(e,t):!1;if(e[n]===`
|
|
67
|
-
`)return!1}return!1},J7=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let i=n+1<e.length?e[n+1]:"";return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="/"}if(e[n]===`
|
|
68
|
-
`)return!1}return!1},Tg=(e,t,n)=>{let i=0;for(let d=t-1;d>=0;d-=1)if(e[d]===`
|
|
69
|
-
`){i=d+1;break}let s=e.length;for(let d=t;d<e.length;d+=1)if(e[d]===`
|
|
70
|
-
`){s=d;break}let l=e.substring(i,s),u=0,c=!1;for(let d of l)if(d===n)u+=1;else if(d!==" "&&d!==" "){c=!0;break}return u>=3&&!c},K3=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),eB=(e,t,n,i)=>n==="\\"||K3(e)&&pd(e,t)?!0:n!=="*"&&i==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
|
|
71
|
-
`)&&(!i||i===" "||i===" "||i===`
|
|
72
|
-
`),Bf=e=>e===" "||e===" "||e===`
|
|
73
|
-
`,tB=(e,t)=>!!(e&&t&&di(e)&&di(t)),nB=(e,t,n,i)=>{let s=tB(e,t),l=!!t&&!Bf(t),u=!!e&&!Bf(e);return s&&n%2===0&&!i?{count:!1}:u&&n%2===1||l?{count:!0,inWordAsteriskChain:s}:{count:!1}},X3=e=>{let t=0,n=!1,i=!1,s=e.length;for(let l=0;l<s;l+=1){if(e[l]==="`"&&l+2<s&&e[l+1]==="`"&&e[l+2]==="`"){n=!n,l+=2;continue}if(n)continue;if(e[l]!=="*"){di(e[l])||(i=!1);continue}let u=l>0?e[l-1]:"",c=l<s-1?e[l+1]:"";if(eB(e,l,u,c))continue;let d=nB(u,c,t,i);d.count&&(t+=1,i=d.inWordAsteriskChain)}return t},rB=(e,t,n,i)=>!!(n==="\\"||K3(e)&&pd(e,t)||G3(e,t)||J7(e,t)||n==="_"||i==="_"||n&&i&&di(n)&&di(i)),iB=e=>{let t=0,n=!1,i=e.length;for(let s=0;s<i;s+=1){if(e[s]==="`"&&s+2<i&&e[s+1]==="`"&&e[s+2]==="`"){n=!n,s+=2;continue}if(n||e[s]!=="_")continue;let l=s>0?e[s-1]:"",u=s<i-1?e[s+1]:"";rB(e,s,l,u)||(t+=1)}return t},aB=e=>{let t=0,n=0,i=!1;for(let s=0;s<e.length;s+=1){if(e[s]==="`"&&s+2<e.length&&e[s+1]==="`"&&e[s+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,i=!i,s+=2;continue}i||(e[s]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},vg=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="*"&&i+1<e.length&&e[i+1]==="*"&&(t+=1,i+=1)}return t},n2=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}n||e[i]==="_"&&i+1<e.length&&e[i+1]==="_"&&(t+=1,i+=1)}return t},sB=(e,t,n)=>{if(!t||is.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
74
|
-
`),s=i===-1?0:i+1,l=e.substring(s,n);return Y3.test(l)&&t.includes(`
|
|
75
|
-
`)?!0:Tg(e,n,"*")},lB=e=>{let t=e.match(P7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return bn(e,i)||na(e,i)||sB(e,n,i)?e:vg(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},oB=(e,t,n)=>{if(!t||is.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
|
|
76
|
-
`),s=i===-1?0:i+1,l=e.substring(s,n);return Y3.test(l)&&t.includes(`
|
|
77
|
-
`)?!0:Tg(e,n,"_")},uB=e=>{let t=e.match(B7);if(!t){let s=e.match($7);if(s){let l=e.lastIndexOf(s[1]);if(!(bn(e,l)||na(e,l))&&n2(e)%2===1)return`${e}_`}return e}let n=t[2],i=e.lastIndexOf(t[1]);return bn(e,i)||na(e,i)||oB(e,n,i)?e:n2(e)%2===1?`${e}__`:e},cB=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!pd(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"",l=!i||Bf(i),u=!s||Bf(s);if(l&&u||i&&s&&di(i)&&di(s)||u)continue;return n}}return-1},fB=e=>{if(!e.match(H7))return e;let t=cB(e);if(t===-1||bn(e,t)||na(e,t))return e;let n=e.substring(t+1);return!n||is.test(n)?e:X3(e)%2===1?`${e}*`:e},Q3=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!pd(e,n)&&!G3(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"";if(i&&s&&di(i)&&di(s))continue;return n}}return-1},dB=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
78
|
-
`;)t-=1;if(t<e.length){let n=e.slice(0,t),i=e.slice(t);return`${n}_${i}`}return`${e}_`},hB=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(vg(t)%2!==1)return null;let n=t.indexOf("**"),i=Q3(t);return n!==-1&&i!==-1&&n<i?`${t}_**`:null},mB=e=>{if(!e.match(U7))return e;let t=Q3(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||is.test(n)||bn(e,t)||na(e,t))return e;if(iB(e)%2===1){let i=hB(e);return i!==null?i:dB(e)}return e},pB=e=>{let t=vg(e),n=X3(e);return t%2===0&&n%2===0},gB=(e,t,n)=>!t||is.test(t)||bn(e,n)||na(e,n)?!0:Tg(e,n,"*"),bB=e=>{if(Y7.test(e))return e;let t=e.match(j7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return gB(e,n,i)?e:aB(e)%2===1?pB(e)?e:`${e}***`:e},yB=/<[a-zA-Z/][^>]*$/,EB=e=>{let t=e.match(yB);return!t||t.index===void 0||bn(e,t.index)?e:e.substring(0,t.index).trimEnd()},xB=e=>!e.match(V7)||e.includes(`
|
|
79
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,TB=e=>(e.match(/```/g)||[]).length%2===1,vB=e=>{let t=xB(e);if(t!==null)return t;let n=e.match(z7);if(n&&!TB(e)){let i=n[2];if(!i||is.test(i))return e;if(D7(e)%2===1)return`${e}\``}return e},W3=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",SB=e=>{let t=0,n=!1;for(let i=0;i<e.length-1;i+=1)e[i]==="`"&&!W3(e,i)&&(n=!n),!n&&e[i]==="$"&&e[i+1]==="$"&&(t+=1,i+=1);return t},_B=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"){i+=1;continue}if(e[i]==="`"&&!W3(e,i)){n=!n;continue}!n&&e[i]==="$"&&(i+1<e.length&&e[i+1]==="$"?i+=1:t+=1)}return t},CB=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
80
|
-
`,t)!==-1&&!e.endsWith(`
|
|
81
|
-
`)?`${e}
|
|
82
|
-
$$`:`${e}$$`},AB=e=>SB(e)%2===0?e:CB(e),kB=e=>_B(e)%2===1?`${e}$`:e,wB=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let i=K7(e,t);if(i===-1||bn(e,i))return null;let s=i>0&&e[i-1]==="!",l=s?i-1:i,u=e.substring(0,l);if(s)return u;let c=e.substring(i+1,t);return n==="text-only"?`${u}${c}`:`${u}[${c}](streamdown:incomplete-link)`},r2=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!bn(e,n)){if(n>0&&e[n-1]==="!")continue;let i=$3(e,n);if(i===-1)return n;if(i+1<e.length&&e[i+1]==="("){let s=e.indexOf(")",i+2);s!==-1&&(n=s)}}return t},NB=(e,t,n)=>{let i=t>0&&e[t-1]==="!",s=i?t-1:t;if(!e.substring(t+1).includes("]")){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let u=r2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}if($3(e,t)===-1){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let u=r2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}return null},Z3=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!bn(e,n)){let i=wB(e,n,t);if(i!==null)return i}for(let i=e.length-1;i>=0;i-=1)if(e[i]==="["&&!bn(e,i)){let s=NB(e,i,t);if(s!==null)return s}return e},RB=/^-{1,2}$/,OB=/^[\s]*-{1,2}[\s]+$/,LB=/^={1,2}$/,DB=/^[\s]*={1,2}[\s]+$/,IB=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
83
|
-
`);if(t===-1)return e;let n=e.substring(t+1),i=e.substring(0,t),s=n.trim();if(RB.test(s)&&!n.match(OB)){let l=i.split(`
|
|
84
|
-
`).at(-1);if(l&&l.trim().length>0)return`${e}`}if(LB.test(s)&&!n.match(DB)){let l=i.split(`
|
|
85
|
-
`).at(-1);if(l&&l.trim().length>0)return`${e}`}return e},MB=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,PB=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(MB,(t,n,i)=>{let s=i+n.length;return bn(e,s)?t:`${n}\\~`}),BB=e=>{var t,n;let i=e.match(F7);if(i){let s=i[2];if(!s||is.test(s))return e;let l=e.lastIndexOf(i[1]);if(bn(e,l)||na(e,l))return e;if(((t=e.match(t2))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(G7);if(s){let l=e.lastIndexOf(s[0].slice(0,2));if(bn(e,l)||na(e,l))return e;if(((n=e.match(t2))==null?void 0:n.length)%2===1)return`${e}~`}}return e},mp=e=>e!==!1,jB=e=>e===!0,hn={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},HB=[{handler:{name:"singleTilde",handle:PB,priority:hn.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:M7,priority:hn.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:EB,priority:hn.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:IB,priority:hn.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Z3,priority:hn.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:bB,priority:hn.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:lB,priority:hn.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:uB,priority:hn.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:fB,priority:hn.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:mB,priority:hn.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:vB,priority:hn.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:BB,priority:hn.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:AB,priority:hn.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:kB,priority:hn.INLINE_KATEX},optionKey:"inlineKatex"}],UB=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return HB.filter(({handler:i,optionKey:s})=>i.name==="links"?mp(e?.links)||mp(e?.images):i.name==="inlineKatex"?jB(e?.inlineKatex):mp(e?.[s])).map(({handler:i,earlyReturn:s})=>i.name==="links"?{handler:V3(q3({},i),{handle:l=>Z3(l,n)}),earlyReturn:n==="protocol"?s:void 0}:{handler:i,earlyReturn:s})},zB=(e,t)=>{var n;if(!e||typeof e!="string")return e;let i=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=UB(t),l=((n=t?.handlers)!=null?n:[]).map(c=>{var d;return{handler:V3(q3({},c),{priority:(d=c.priority)!=null?d:hn.DEFAULT}),earlyReturn:void 0}}),u=[...s,...l].sort((c,d)=>{var h,m;return((h=c.handler.priority)!=null?h:0)-((m=d.handler.priority)!=null?m:0)});for(let{handler:c,earlyReturn:d}of u)if(i=c.handle(i),d!=null&&d(i))return i;return i},FB=zB;function J3(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=J3(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function eC(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=J3(e))&&(i&&(i+=" "),i+=t);return i}const qB=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},VB=(e,t)=>({classGroupId:e,validator:t}),tC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),jf="-",i2=[],YB="arbitrary..",$B=e=>{const t=KB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return GB(u);const c=u.split(jf),d=c[0]===""&&c.length>1?1:0;return nC(c,d,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const d=i[u],h=n[u];return d?h?qB(h,d):d:h||i2}return n[u]||i2}}},nC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=nC(e,t+1,l);if(h)return h}const u=n.validators;if(u===null)return;const c=t===0?e.join(jf):e.slice(t).join(jf),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(c))return m.classGroupId}},GB=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?YB+i:void 0})(),KB=e=>{const{theme:t,classGroups:n}=e;return XB(n,t)},XB=(e,t)=>{const n=tC();for(const i in e){const s=e[i];Sg(s,n,i,t)}return n},Sg=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const u=e[l];QB(u,t,n,i)}},QB=(e,t,n,i)=>{if(typeof e=="string"){WB(e,t,n);return}if(typeof e=="function"){ZB(e,t,n,i);return}JB(e,t,n,i)},WB=(e,t,n)=>{const i=e===""?t:rC(t,e);i.classGroupId=n},ZB=(e,t,n,i)=>{if(ej(e)){Sg(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(VB(n,e))},JB=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let u=0;u<l;u++){const[c,d]=s[u];Sg(d,rC(t,c),n,i)}},rC=(e,t)=>{let n=e;const i=t.split(jf),s=i.length;for(let l=0;l<s;l++){const u=i[l];let c=n.nextPart.get(u);c||(c=tC(),n.nextPart.set(u,c)),n=c}return n},ej=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(l,u)=>{n[l]=u,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=i[l])!==void 0)return s(l,u),u},set(l,u){l in n?n[l]=u:s(l,u)}}},h0="!",a2=":",nj=[],s2=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),rj=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let u=0,c=0,d=0,h;const m=s.length;for(let S=0;S<m;S++){const A=s[S];if(u===0&&c===0){if(A===a2){l.push(s.slice(d,S)),d=S+1;continue}if(A==="/"){h=S;continue}}A==="["?u++:A==="]"?u--:A==="("?c++:A===")"&&c--}const p=l.length===0?s:s.slice(d);let E=p,y=!1;p.endsWith(h0)?(E=p.slice(0,-1),y=!0):p.startsWith(h0)&&(E=p.slice(1),y=!0);const v=h&&h>d?h-d:void 0;return s2(l,y,E,v)};if(t){const s=t+a2,l=i;i=u=>u.startsWith(s)?l(u.slice(s.length)):s2(nj,!1,u,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},ij=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let l=0;l<n.length;l++){const u=n[l],c=u[0]==="[",d=t.has(u);c||d?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(u)):s.push(u)}return s.length>0&&(s.sort(),i.push(...s)),i}},aj=e=>({cache:tj(e.cacheSize),parseClassName:rj(e),sortModifiers:ij(e),postfixLookupClassGroupIds:sj(e),...$B(e)}),sj=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let i=0;i<n.length;i++)t[n[i]]=!0;return t},lj=/\s+/,oj=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:u}=t,c=[],d=e.trim().split(lj);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:E,modifiers:y,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:A}=n(p);if(E){h=p+(h.length>0?" "+h:h);continue}let k=!!A,N;if(k){const P=S.substring(0,A);N=i(P);const H=N&&u[N]?i(S):void 0;H&&H!==N&&(N=H,k=!1)}else N=i(S);if(!N){if(!k){h=p+(h.length>0?" "+h:h);continue}if(N=i(S),!N){h=p+(h.length>0?" "+h:h);continue}k=!1}const w=y.length===0?"":y.length===1?y[0]:l(y).join(":"),D=v?w+h0:w,z=D+N;if(c.indexOf(z)>-1)continue;c.push(z);const L=s(N,k);for(let P=0;P<L.length;++P){const H=L[P];c.push(D+H)}h=p+(h.length>0?" "+h:h)}return h},uj=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=iC(n))&&(s&&(s+=" "),s+=i);return s},iC=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=iC(e[i]))&&(n&&(n+=" "),n+=t);return n},cj=(e,...t)=>{let n,i,s,l;const u=d=>{const h=t.reduce((m,p)=>p(m),e());return n=aj(h),i=n.cache.get,s=n.cache.set,l=c,c(d)},c=d=>{const h=i(d);if(h)return h;const m=oj(d,n);return s(d,m),m};return l=u,(...d)=>l(uj(...d))},fj=[],Vt=e=>{const t=n=>n[e]||fj;return t.isThemeGetter=!0,t},aC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=e=>dj.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),Tr=e=>!!e&&Number.isInteger(Number(e)),pp=e=>e.endsWith("%")&&ze(e.slice(0,-1)),ei=e=>hj.test(e),lC=()=>!0,yj=e=>mj.test(e)&&!pj.test(e),_g=()=>!1,Ej=e=>gj.test(e),xj=e=>bj.test(e),Tj=e=>!Se(e)&&!Ce(e),vj=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sj=e=>oa(e,cC,_g),Se=e=>aC.test(e),Oa=e=>oa(e,fC,yj),l2=e=>oa(e,Oj,ze),_j=e=>oa(e,hC,lC),Cj=e=>oa(e,dC,_g),o2=e=>oa(e,oC,_g),Aj=e=>oa(e,uC,xj),Zc=e=>oa(e,mC,Ej),Ce=e=>sC.test(e),_o=e=>as(e,fC),kj=e=>as(e,dC),u2=e=>as(e,oC),wj=e=>as(e,cC),Nj=e=>as(e,uC),Jc=e=>as(e,mC,!0),Rj=e=>as(e,hC,!0),oa=(e,t,n)=>{const i=aC.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},as=(e,t,n=!1)=>{const i=sC.exec(e);return i?i[1]?t(i[1]):n:!1},oC=e=>e==="position"||e==="percentage",uC=e=>e==="image"||e==="url",cC=e=>e==="length"||e==="size"||e==="bg-size",fC=e=>e==="length",Oj=e=>e==="number",dC=e=>e==="family-name",hC=e=>e==="number"||e==="weight",mC=e=>e==="shadow",Lj=()=>{const e=Vt("color"),t=Vt("font"),n=Vt("text"),i=Vt("font-weight"),s=Vt("tracking"),l=Vt("leading"),u=Vt("breakpoint"),c=Vt("container"),d=Vt("spacing"),h=Vt("radius"),m=Vt("shadow"),p=Vt("inset-shadow"),E=Vt("text-shadow"),y=Vt("drop-shadow"),v=Vt("blur"),S=Vt("perspective"),A=Vt("aspect"),k=Vt("ease"),N=Vt("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...D(),Ce,Se],L=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],H=()=>[Ce,Se,d],G=()=>[zi,"full","auto",...H()],j=()=>[Tr,"none","subgrid",Ce,Se],Y=()=>["auto",{span:["full",Tr,Ce,Se]},Tr,Ce,Se],W=()=>[Tr,"auto",Ce,Se],se=()=>["auto","min","max","fr",Ce,Se],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...H()],X=()=>[zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],re=()=>[zi,"screen","full","dvw","lvw","svw","min","max","fit",...H()],Ee=()=>[zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],R=()=>[e,Ce,Se],U=()=>[...D(),u2,o2,{position:[Ce,Se]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",wj,Sj,{size:[Ce,Se]}],ge=()=>[pp,_o,Oa],ye=()=>["","none","full",h,Ce,Se],he=()=>["",ze,_o,Oa],we=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[ze,pp,u2,o2],Me=()=>["","none",v,Ce,Se],Le=()=>["none",ze,Ce,Se],Be=()=>["none",ze,Ce,Se],Ve=()=>[ze,Ce,Se],tt=()=>[zi,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ei],breakpoint:[ei],color:[lC],container:[ei],"drop-shadow":[ei],ease:["in","out","in-out"],font:[Tj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ei],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ei],shadow:[ei],spacing:["px",ze],text:[ei],"text-shadow":[ei],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zi,Se,Ce,A]}],container:["container"],"container-type":[{"@container":["","normal","size",Ce,Se]}],"container-named":[vj],columns:[{columns:[ze,Se,Ce,c]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Tr,"auto",Ce,Se]}],basis:[{basis:[zi,"full","auto",c,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,zi,"auto","initial","none",Se]}],grow:[{grow:["",ze,Ce,Se]}],shrink:[{shrink:["",ze,Ce,Se]}],order:[{order:[Tr,"first","last","none",Ce,Se]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:Y()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:Y()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...Ee()]}],"min-block-size":[{"min-block":["auto",...Ee()]}],"max-block-size":[{"max-block":["none",...Ee()]}],w:[{w:[c,"screen",...X()]}],"min-w":[{"min-w":[c,"screen","none",...X()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,_o,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Rj,_j]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",pp,Se]}],"font-family":[{font:[kj,Cj,t]}],"font-features":[{"font-features":[Se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ce,Se]}],"line-clamp":[{"line-clamp":[ze,"none",Ce,l2]}],leading:[{leading:[l,...H()]}],"list-image":[{"list-image":["none",Ce,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",Ce,Oa]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ze,"auto",Ce,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"tab-size":[{tab:[Tr,Ce,Se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:U()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tr,Ce,Se],radial:["",Ce,Se],conic:[Tr,Ce,Se]},Nj,Aj]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:ye()}],"rounded-s":[{"rounded-s":ye()}],"rounded-e":[{"rounded-e":ye()}],"rounded-t":[{"rounded-t":ye()}],"rounded-r":[{"rounded-r":ye()}],"rounded-b":[{"rounded-b":ye()}],"rounded-l":[{"rounded-l":ye()}],"rounded-ss":[{"rounded-ss":ye()}],"rounded-se":[{"rounded-se":ye()}],"rounded-ee":[{"rounded-ee":ye()}],"rounded-es":[{"rounded-es":ye()}],"rounded-tl":[{"rounded-tl":ye()}],"rounded-tr":[{"rounded-tr":ye()}],"rounded-br":[{"rounded-br":ye()}],"rounded-bl":[{"rounded-bl":ye()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,Ce,Se]}],"outline-w":[{outline:["",ze,_o,Oa]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",m,Jc,Zc]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",p,Jc,Zc]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ze,Oa]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",E,Jc,Zc]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ze,Ce,Se]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[Ce,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:U()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Se]}],filter:[{filter:["","none",Ce,Se]}],blur:[{blur:Me()}],brightness:[{brightness:[ze,Ce,Se]}],contrast:[{contrast:[ze,Ce,Se]}],"drop-shadow":[{"drop-shadow":["","none",y,Jc,Zc]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ze,Ce,Se]}],"hue-rotate":[{"hue-rotate":[ze,Ce,Se]}],invert:[{invert:["",ze,Ce,Se]}],saturate:[{saturate:[ze,Ce,Se]}],sepia:[{sepia:["",ze,Ce,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Se]}],"backdrop-blur":[{"backdrop-blur":Me()}],"backdrop-brightness":[{"backdrop-brightness":[ze,Ce,Se]}],"backdrop-contrast":[{"backdrop-contrast":[ze,Ce,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,Ce,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,Ce,Se]}],"backdrop-invert":[{"backdrop-invert":["",ze,Ce,Se]}],"backdrop-opacity":[{"backdrop-opacity":[ze,Ce,Se]}],"backdrop-saturate":[{"backdrop-saturate":[ze,Ce,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,Ce,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",Ce,Se]}],ease:[{ease:["linear","initial",k,Ce,Se]}],delay:[{delay:[ze,Ce,Se]}],animate:[{animate:["none",N,Ce,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ce,Se]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:Ve()}],"skew-x":[{"skew-x":Ve()}],"skew-y":[{"skew-y":Ve()}],transform:[{transform:[Ce,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],zoom:[{zoom:[Tr,Ce,Se]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,Se]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ze,_o,Oa,l2]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pC=cj(Lj),Dj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ij=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mj={};function c2(e,t){return(Mj.jsx?Ij:Dj).test(e)}const Pj=/[ \t\n\f\r]/g;function Bj(e){return typeof e=="object"?e.type==="text"?f2(e.value):!1:f2(e)}function f2(e){return e.replace(Pj,"")===""}var Qs={},gp,d2;function jj(){if(d2)return gp;d2=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
86
|
-
`,h="/",m="*",p="",E="comment",y="declaration";function v(A,k){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];k=k||{};var N=1,w=1;function D(le){var ne=le.match(t);ne&&(N+=ne.length);var V=le.lastIndexOf(d);w=~V?le.length-V:w+le.length}function z(){var le={line:N,column:w};return function(ne){return ne.position=new L(le),G(),ne}}function L(le){this.start=le,this.end={line:N,column:w},this.source=k.source}L.prototype.content=A;function P(le){var ne=new Error(k.source+":"+N+":"+w+": "+le);if(ne.reason=le,ne.filename=k.source,ne.line=N,ne.column=w,ne.source=A,!k.silent)throw ne}function H(le){var ne=le.exec(A);if(ne){var V=ne[0];return D(V),A=A.slice(V.length),ne}}function G(){H(n)}function j(le){var ne;for(le=le||[];ne=Y();)ne!==!1&&le.push(ne);return le}function Y(){var le=z();if(!(h!=A.charAt(0)||m!=A.charAt(1))){for(var ne=2;p!=A.charAt(ne)&&(m!=A.charAt(ne)||h!=A.charAt(ne+1));)++ne;if(ne+=2,p===A.charAt(ne-1))return P("End of comment missing");var V=A.slice(2,ne-2);return w+=2,D(V),A=A.slice(ne),w+=2,le({type:E,comment:V})}}function W(){var le=z(),ne=H(i);if(ne){if(Y(),!H(s))return P("property missing ':'");var V=H(l),X=le({type:y,property:S(ne[0].replace(e,p)),value:V?S(V[0].replace(e,p)):p});return H(u),X}}function se(){var le=[];j(le);for(var ne;ne=W();)ne!==!1&&(le.push(ne),j(le));return le}return G(),se()}function S(A){return A?A.replace(c,p):p}return gp=v,gp}var h2;function Hj(){if(h2)return Qs;h2=1;var e=Qs&&Qs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=n;const t=e(jj());function n(i,s){let l=null;if(!i||typeof i!="string")return l;const u=(0,t.default)(i),c=typeof s=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:m}=d;c?s(h,m,d):m&&(l=l||{},l[h]=m)}),l}return Qs}var Co={},m2;function Uj(){if(m2)return Co;m2=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,c):h=h.replace(i,c),h.replace(t,u))};return Co.camelCase=d,Co}var Ao,p2;function zj(){if(p2)return Ao;p2=1;var e=Ao&&Ao.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Hj()),n=Uj();function i(s,l){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(c,d){c&&d&&(u[(0,n.camelCase)(c,l)]=d)}),u}return i.default=i,Ao=i,Ao}var Fj=zj();const qj=N0(Fj);function Fo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?g2(e.position):"start"in e||"end"in e?g2(e):"line"in e||"column"in e?m0(e):""}function m0(e){return b2(e&&e.line)+":"+b2(e&&e.column)}function g2(e){return m0(e&&e.start)+"-"+m0(e&&e.end)}function b2(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(u=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?l.ruleId=i:(l.source=i.slice(0,d),l.ruleId=i.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=c?c.line:void 0,this.name=Fo(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="";cn.prototype.name="";cn.prototype.reason="";cn.prototype.message="";cn.prototype.stack="";cn.prototype.column=void 0;cn.prototype.line=void 0;cn.prototype.ancestors=void 0;cn.prototype.cause=void 0;cn.prototype.fatal=void 0;cn.prototype.place=void 0;cn.prototype.ruleId=void 0;cn.prototype.source=void 0;const Cg={}.hasOwnProperty,Vj=new Map,Yj=/[A-Z]/g,$j=new Set(["table","tbody","thead","tfoot","tr"]),Gj=new Set(["td","th"]),gC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kj(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=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=nH(n,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=tH(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sa:ou,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=bC(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function bC(e,t,n){if(t.type==="element")return Xj(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Qj(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Zj(e,t,n);if(t.type==="mdxjsEsm")return Wj(e,t);if(t.type==="root")return Jj(e,t,n);if(t.type==="text")return eH(e,t)}function Xj(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=sa,e.schema=s),e.ancestors.push(t);const l=EC(e,t.tagName,!1),u=rH(e,t);let c=kg(e,t);return $j.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Bj(d):!0})),yC(e,u,l,t),Ag(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function Qj(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)}eu(e,t.position)}function Wj(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eu(e,t.position)}function Zj(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=sa,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:EC(e,t.name,!0),u=iH(e,t),c=kg(e,t);return yC(e,u,l,t),Ag(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function Jj(e,t,n){const i={};return Ag(i,kg(e,t)),e.create(t,e.Fragment,i,n)}function eH(e,t){return t.value}function yC(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Ag(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function tH(e,t,n){return i;function i(s,l,u,c){const h=Array.isArray(u.children)?n:t;return c?h(l,u,c):h(l,u)}}function nH(e,t){return n;function n(i,s,l,u){const c=Array.isArray(l.children),d=Lr(i);return t(s,l,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function rH(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Cg.call(t.properties,s)){const l=aH(e,s,t.properties[s]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&Gj.has(t.tagName)?i=c:n[u]=c}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function iH(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const u=l.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else eu(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else eu(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function kg(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Vj;for(;++i<t.children.length;){const l=t.children[i];let u;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=s.get(d)||0;u=d+"-"+h,s.set(d,h+1)}}const c=bC(e,l,u);c!==void 0&&n.push(c)}return n}function aH(e,t,n){const i=ld(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?x_(n):T_(n)),i.property==="style"){let s=typeof n=="object"?n:sH(e,String(n));return e.stylePropertyNameCase==="css"&&(s=lH(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?TL[i.property]||i.property:i.attribute,n]}}function sH(e,t){try{return qj(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=gC+"#cannot-parse-style-attribute",s}}function EC(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,u;for(;++l<s.length;){const c=c2(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}i=u}else i=c2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Cg.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);eu(e)}function eu(e,t){const n=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function lH(e){const t={};let n;for(n in e)Cg.call(e,n)&&(t[oH(n)]=e[n]);return t}function oH(e){let t=e.replace(Yj,uH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function uH(e){return"-"+e.toLowerCase()}const bp={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"]},cH={tokenize:fH};function fH(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Je(e,t,"linePrefix")}function s(c){return e.enter("paragraph"),l(c)}function l(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Re(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const dH={tokenize:hH},y2={tokenize:mH};function hH(e){const t=this,n=[];let i=0,s,l,u;return c;function c(w){if(i<n.length){const D=n[i];return t.containerState=D[1],e.attempt(D[0].continuation,d,h)(w)}return h(w)}function d(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&N();const D=t.events.length;let z=D,L;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){L=t.events[z][1].end;break}k(i);let P=D;for(;P<t.events.length;)t.events[P][1].end={...L},P++;return Vn(t.events,z+1,0,t.events.slice(D)),t.events.length=P,h(w)}return c(w)}function h(w){if(i===n.length){if(!s)return E(w);if(s.currentConstruct&&s.currentConstruct.concrete)return v(w);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(y2,m,p)(w)}function m(w){return s&&N(),k(i),E(w)}function p(w){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,v(w)}function E(w){return t.containerState={},e.attempt(y2,y,v)(w)}function y(w){return i++,n.push([t.currentConstruct,t.containerState]),E(w)}function v(w){if(w===null){s&&N(),k(0),e.consume(w);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),S(w)}function S(w){if(w===null){A(e.exit("chunkFlow"),!0),k(0),e.consume(w);return}return Re(w)?(e.consume(w),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(w),S)}function A(w,D){const z=t.sliceStream(w);if(D&&z.push(null),w.previous=l,l&&(l.next=w),l=w,s.defineSkip(w.start),s.write(z),t.parser.lazy[w.start.line]){let L=s.events.length;for(;L--;)if(s.events[L][1].start.offset<u&&(!s.events[L][1].end||s.events[L][1].end.offset>u))return;const P=t.events.length;let H=P,G,j;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(G){j=t.events[H][1].end;break}G=!0}for(k(i),L=P;L<t.events.length;)t.events[L][1].end={...j},L++;Vn(t.events,H+1,0,t.events.slice(P)),t.events.length=L}}function k(w){let D=n.length;for(;D-- >w;){const z=n[D];t.containerState=z[1],z[0].exit.call(t,e)}n.length=w}function N(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function mH(e,t,n){return Je(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const pH={tokenize:gH};function gH(e){const t=this,n=e.attempt(du,i,e.attempt(this.parser.constructs.flowInitial,s,Je(e,e.attempt(this.parser.constructs.flow,s,e.attempt(uP,s)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const bH={resolveAll:TC()},yH=xC("string"),EH=xC("text");function xC(e){return{resolveAll:TC(e==="text"?xH:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],l=n.attempt(s,u,c);return u;function u(m){return h(m)?l(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const p=s[m];let E=-1;if(p)for(;++E<p.length;){const y=p[E];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function TC(e){return t;function t(n,i){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,i):n}}function xH(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let l=s.length,u=-1,c=0,d;for(;l--;){const h=s[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)d=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const TH={42:wn,43:wn,45:wn,48:wn,49:wn,50:wn,51:wn,52:wn,53:wn,54:wn,55:wn,56:wn,57:wn,62:P3},vH={91:mP},SH={[-2]:dp,[-1]:dp,32:dp},_H={35:xP,42:yf,45:[QT,yf],60:_P,61:QT,95:yf,96:KT,126:KT},CH={38:j3,92:B3},AH={[-5]:hp,[-4]:hp,[-3]:hp,33:FP,38:j3,42:d0,60:[V9,OP],91:VP,92:[yP,B3],93:xg,95:d0,96:rP},kH={null:[d0,bH]},wH={null:[42,95]},NH={null:[]},RH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wH,contentInitial:vH,disable:NH,document:TH,flow:_H,flowInitial:SH,insideSpan:kH,string:CH,text:AH},Symbol.toStringTag,{value:"Module"}));function OH(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let u=[],c=[];const d={attempt:P(z),check:P(L),consume:N,enter:w,exit:D,interrupt:P(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:E,sliceStream:y,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p(Y){return u=nr(u,Y),A(),u[u.length-1]!==null?[]:(H(t,0),h.events=md(l,h.events,h),h.events)}function E(Y,W){return DH(y(Y),W)}function y(Y){return LH(u,Y)}function v(){const{_bufferIndex:Y,_index:W,line:se,column:le,offset:ne}=i;return{_bufferIndex:Y,_index:W,line:se,column:le,offset:ne}}function S(Y){s[Y.line]=Y.column,j()}function A(){let Y;for(;i._index<u.length;){const W=u[i._index];if(typeof W=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<W.length;)k(W.charCodeAt(i._bufferIndex));else k(W)}}function k(Y){m=m(Y)}function N(Y){Re(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,j()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=Y}function w(Y,W){const se=W||{};return se.type=Y,se.start=v(),h.events.push(["enter",se,h]),c.push(se),se}function D(Y){const W=c.pop();return W.end=v(),h.events.push(["exit",W,h]),W}function z(Y,W){H(Y,W.from)}function L(Y,W){W.restore()}function P(Y,W){return se;function se(le,ne,V){let X,re,Ee,R;return Array.isArray(le)?K(le):"tokenize"in le?K([le]):U(le);function U(he){return we;function we(Te){const ve=Te!==null&&he[Te],Me=Te!==null&&he.null,Le=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return K(Le)(Te)}}function K(he){return X=he,re=0,he.length===0?V:I(he[re])}function I(he){return we;function we(Te){return R=G(),Ee=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call(W?Object.assign(Object.create(h),W):h,d,ge,ye)(Te)}}function ge(he){return Y(Ee,R),ne}function ye(he){return R.restore(),++re<X.length?I(X[re]):V}}}function H(Y,W){Y.resolveAll&&!l.includes(Y)&&l.push(Y),Y.resolve&&Vn(h.events,W,h.events.length-W,Y.resolve(h.events.slice(W),h)),Y.resolveTo&&(h.events=Y.resolveTo(h.events,h))}function G(){const Y=v(),W=h.previous,se=h.currentConstruct,le=h.events.length,ne=Array.from(c);return{from:le,restore:V};function V(){i=Y,h.previous=W,h.currentConstruct=se,h.events.length=le,c=ne,j()}}function j(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function LH(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,l)];else{if(u=e.slice(n,s),i>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(i):u.shift()}l>0&&u.push(e[s].slice(0,l))}return u}function DH(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
|
|
87
|
-
`;break}case-3:{u=`\r
|
|
88
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(l)}s=l===-2,i.push(u)}return i.join("")}function IH(e){const i={constructs:k3([RH,...(e||{}).extensions||[]]),content:s(cH),defined:[],document:s(dH),flow:s(pH),lazy:{},string:s(yH),text:s(EH)};return i;function s(l){return u;function u(c){return OH(i,l,c)}}}function MH(e){for(;!H3(e););return e}const E2=/[\0\t\n\r]/g;function PH(){let e=1,t="",n=!0,i;return s;function s(l,u,c){const d=[];let h,m,p,E,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(E2.lastIndex=p,h=E2.exec(l),E=h&&h.index!==void 0?h.index:l.length,y=l.charCodeAt(E),!h){t=l.slice(p);break}if(y===10&&p===E&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),p<E&&(d.push(l.slice(p,E)),e+=E-p),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}p=E+1}return c&&(i&&d.push(-5),t&&d.push(t),d.push(null)),d}}const vC={}.hasOwnProperty;function BH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),jH(n)(MH(IH(n).document().write(PH()(e,t,!0))))}function jH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ye),autolinkProtocol:G,autolinkEmail:G,atxHeading:l(gt),blockQuote:l(Me),characterEscape:G,characterReference:G,codeFenced:l(Le),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(Le,u),codeText:l(Be,u),codeTextData:G,data:G,codeFlowValue:G,definition:l(Ve),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(tt),hardBreakEscape:l(Tt),hardBreakTrailing:l(Tt),htmlFlow:l(Yt,u),htmlFlowData:G,htmlText:l(Yt,u),htmlTextData:G,image:l(pe),label:u,link:l(Ye),listItem:l(Ie),listItemValue:E,listOrdered:l(_e,p),listUnordered:l(_e),paragraph:l(vt),reference:I,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(gt),strong:l(rt),thematicBreak:l(Ln)},exit:{atxHeading:d(),atxHeadingSequence:z,autolink:d(),autolinkEmail:ve,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:we,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:j,codeIndented:d(k),codeText:d(ne),codeTextData:j,data:j,definition:d(),definitionDestinationString:D,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(W),hardBreakTrailing:d(W),htmlFlow:d(se),htmlFlowData:j,htmlText:d(le),htmlTextData:j,image:d(X),label:Ee,labelText:re,lineEnding:Y,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ge,resourceDestinationString:R,resourceTitleString:U,resource:K,setextHeading:d(H),setextHeadingLineSequence:P,setextHeadingText:L,strong:d(),thematicBreak:d()}};SC(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ue){let xe={type:"root",children:[]};const De={stack:[xe],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},$e=[];let ot=-1;for(;++ot<ue.length;)if(ue[ot][1].type==="listOrdered"||ue[ot][1].type==="listUnordered")if(ue[ot][0]==="enter")$e.push(ot);else{const Dn=$e.pop();ot=s(ue,Dn,ot)}for(ot=-1;++ot<ue.length;){const Dn=t[ue[ot][0]];vC.call(Dn,ue[ot][1].type)&&Dn[ue[ot][1].type].call(Object.assign({sliceSerialize:ue[ot][2].sliceSerialize},De),ue[ot][1])}if(De.tokenStack.length>0){const Dn=De.tokenStack[De.tokenStack.length-1];(Dn[1]||x2).call(De,void 0,Dn[0])}for(xe.position={start:Fi(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Fi(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},ot=-1;++ot<t.transforms.length;)xe=t.transforms[ot](xe)||xe;return xe}function s(ue,xe,De){let $e=xe-1,ot=-1,Dn=!1,Mr,fn,Ft,En;for(;++$e<=De;){const bt=ue[$e];switch(bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bt[0]==="enter"?ot++:ot--,En=void 0;break}case"lineEndingBlank":{bt[0]==="enter"&&(Mr&&!En&&!ot&&!Ft&&(Ft=$e),En=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:En=void 0}if(!ot&&bt[0]==="enter"&&bt[1].type==="listItemPrefix"||ot===-1&&bt[0]==="exit"&&(bt[1].type==="listUnordered"||bt[1].type==="listOrdered")){if(Mr){let pi=$e;for(fn=void 0;pi--;){const ar=ue[pi];if(ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;fn&&(ue[fn][1].type="lineEndingBlank",Dn=!0),ar[1].type="lineEnding",fn=pi}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break}Ft&&(!fn||Ft<fn)&&(Mr._spread=!0),Mr.end=Object.assign({},fn?ue[fn][1].start:bt[1].end),ue.splice(fn||$e,0,["exit",Mr,bt[2]]),$e++,De++}if(bt[1].type==="listItemPrefix"){const pi={type:"listItem",_spread:!1,start:Object.assign({},bt[1].start),end:void 0};Mr=pi,ue.splice($e,0,["enter",pi,bt[2]]),$e++,De++,Ft=void 0,En=!0}}}return ue[xe][1]._spread=Dn,De}function l(ue,xe){return De;function De($e){c.call(this,ue($e),$e),xe&&xe.call(this,$e)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ue,xe,De){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([xe,De||void 0]),ue.position={start:Fi(xe.start),end:void 0}}function d(ue){return xe;function xe(De){ue&&ue.call(this,De),h.call(this,De)}}function h(ue,xe){const De=this.stack.pop(),$e=this.tokenStack.pop();if($e)$e[0].type!==ue.type&&(xe?xe.call(this,ue,$e[0]):($e[1]||x2).call(this,ue,$e[0]));else throw new Error("Cannot close `"+ue.type+"` ("+Fo({start:ue.start,end:ue.end})+"): it’s not open");De.position.end=Fi(ue.end)}function m(){return gg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(ue){if(this.data.expectingFirstListItemValue){const xe=this.stack[this.stack.length-2];xe.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.lang=ue}function v(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.meta=ue}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue.replace(/(\r?\n|\r)$/g,"")}function N(ue){const xe=this.resume(),De=this.stack[this.stack.length-1];De.label=xe,De.identifier=fr(this.sliceSerialize(ue)).toLowerCase()}function w(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function D(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function z(ue){const xe=this.stack[this.stack.length-1];if(!xe.depth){const De=this.sliceSerialize(ue).length;xe.depth=De}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function P(ue){const xe=this.stack[this.stack.length-1];xe.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function G(ue){const De=this.stack[this.stack.length-1].children;let $e=De[De.length-1];(!$e||$e.type!=="text")&&($e=it(),$e.position={start:Fi(ue.start),end:void 0},De.push($e)),this.stack.push($e)}function j(ue){const xe=this.stack.pop();xe.value+=this.sliceSerialize(ue),xe.position.end=Fi(ue.end)}function Y(ue){const xe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const De=xe.children[xe.children.length-1];De.position.end=Fi(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(xe.type)&&(G.call(this,ue),j.call(this,ue))}function W(){this.data.atHardBreak=!0}function se(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function le(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function ne(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.value=ue}function V(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function X(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const xe=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=xe,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function re(ue){const xe=this.sliceSerialize(ue),De=this.stack[this.stack.length-2];De.label=m9(xe),De.identifier=fr(xe).toLowerCase()}function Ee(){const ue=this.stack[this.stack.length-1],xe=this.resume(),De=this.stack[this.stack.length-1];if(this.data.inReference=!0,De.type==="link"){const $e=ue.children;De.children=$e}else De.alt=xe}function R(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.url=ue}function U(){const ue=this.resume(),xe=this.stack[this.stack.length-1];xe.title=ue}function K(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function ge(ue){const xe=this.resume(),De=this.stack[this.stack.length-1];De.label=xe,De.identifier=fr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function ye(ue){this.data.characterReferenceType=ue.type}function he(ue){const xe=this.sliceSerialize(ue),De=this.data.characterReferenceType;let $e;De?($e=A3(xe,De==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$e=yg(xe);const ot=this.stack[this.stack.length-1];ot.value+=$e}function we(ue){const xe=this.stack.pop();xe.position.end=Fi(ue.end)}function Te(ue){j.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url=this.sliceSerialize(ue)}function ve(ue){j.call(this,ue);const xe=this.stack[this.stack.length-1];xe.url="mailto:"+this.sliceSerialize(ue)}function Me(){return{type:"blockquote",children:[]}}function Le(){return{type:"code",lang:null,meta:null,value:""}}function Be(){return{type:"inlineCode",value:""}}function Ve(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function tt(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function Tt(){return{type:"break"}}function Yt(){return{type:"html",value:""}}function pe(){return{type:"image",title:null,url:"",alt:null}}function Ye(){return{type:"link",title:null,url:"",children:[]}}function _e(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function Ie(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function vt(){return{type:"paragraph",children:[]}}function rt(){return{type:"strong",children:[]}}function it(){return{type:"text",value:""}}function Ln(){return{type:"thematicBreak"}}}function Fi(e){return{line:e.line,column:e.column,offset:e.offset}}function SC(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?SC(e,i):HH(e,i)}}function HH(e,t){let n;for(n in t)if(vC.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function x2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fo({start:t.start,end:t.end})+") is still open")}function UH(e){const t=this;t.parser=n;function n(i){return BH(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zH(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function FH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
89
|
-
`}]}function qH(e,t){const n=t.value?t.value+`
|
|
90
|
-
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function VH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $H(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=vl(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let u,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=l+1,c+=1,e.footnoteCounts.set(i,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function GH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function _C(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function XH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return _C(e,t);const s={src:vl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function QH(e,t){const n={src:vl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function WH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function ZH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return _C(e,t);const s={href:vl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function JH(e,t){const n={href:vl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eU(e,t,n){const i=e.all(t),s=n?tU(n):CC(t),l={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const m=i[c];(s||c!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
91
|
-
`}),m.type==="element"&&m.tagName==="p"&&!s?u.push(...m.children):u.push(m)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
|
92
|
-
`});const h={type:"element",tagName:"li",properties:l,children:u};return e.patch(t,h),e.applyData(t,h)}function tU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=CC(n[i])}return t}function CC(e){const t=e.spread;return t??e.children.length>1}function nU(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function rU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sU(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=Lr(t.children[1]),d=dd(t.children[t.children.length-1]);c&&d&&(u.position={start:c,end:d}),s.push(u)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function lU(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const p=t.children[d],E={},y=u?u[d]:void 0;y&&(E.align=y);let v={type:"element",tagName:l,properties:E,children:[]};p&&(v.children=e.all(p),e.patch(p,v),v=e.applyData(p,v)),h.push(v)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function oU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const T2=9,v2=32;function uU(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(S2(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(S2(t.slice(s),s>0,!1)),l.join("")}function S2(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===T2||l===v2;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===T2||l===v2;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function cU(e,t){const n={type:"text",value:uU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function fU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const dU={blockquote:zH,break:FH,code:qH,delete:VH,emphasis:YH,footnoteReference:$H,heading:GH,html:KH,imageReference:XH,image:QH,inlineCode:WH,linkReference:ZH,link:JH,listItem:eU,list:nU,paragraph:rU,root:iU,strong:aU,table:sU,tableCell:oU,tableRow:lU,text:cU,thematicBreak:fU,toml:ef,yaml:ef,definition:ef,footnoteDefinition:ef};function ef(){}function hU(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function mU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function pU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hU,i=e.options.footnoteBackLabel||mU,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),E=vl(p.toLowerCase());let y=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++y<=S;){v.length>0&&v.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,y);typeof N=="string"&&(N={type:"text",value:N}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,y),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...v)}else m.push(...v);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(m,!0)};e.patch(h,k),c.push(k)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ka(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
93
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
94
|
-
`}]}}const p0={}.hasOwnProperty,gU={};function bU(e,t){const n=t||gU,i=new Map,s=new Map,l=new Map,u={...dU,...n.handlers},c={all:h,applyData:EU,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:yU,wrap:TU};return dr(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:s,E=String(m.identifier).toUpperCase();p.has(E)||p.set(E,m)}}),c;function d(m,p){const E=m.type,y=c.handlers[E];if(p0.call(c.handlers,E)&&y)return y(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:S,...A}=m,k=Ka(A);return k.children=c.all(m),k}return Ka(m)}return(c.options.unknownHandler||xU)(c,m,p)}function h(m){const p=[];if("children"in m){const E=m.children;let y=-1;for(;++y<E.length;){const v=c.one(E[y],m);if(v){if(y&&E[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=_2(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=_2(S.value))}Array.isArray(v)?p.push(...v):p.push(v)}}}return p}}function yU(e,t){e.position&&(t.position=t3(e))}function EU(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&l&&Object.assign(n.properties,Ka(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function xU(e,t){const n=t.data||{},i="value"in t&&!(p0.call(n,"hProperties")||p0.call(n,"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 TU(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
95
|
-
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
96
|
-
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
97
|
-
`}),n}function _2(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function C2(e,t){const n=bU(e,t),i=n.one(e,void 0),s=pU(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
98
|
-
`},s),l}function vU(e,t){return e&&"run"in e?async function(n,i){const s=C2(n,{file:i,...t});await e.run(s,i)}:function(n,i){return C2(n,{file:i,...e||t})}}function A2(e){if(e)throw e}var yp,k2;function SU(){if(k2)return yp;k2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return yp=function d(){var h,m,p,E,y,v,S=arguments[0],A=1,k=arguments.length,N=!1;for(typeof S=="boolean"&&(N=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<k;++A)if(h=arguments[A],h!=null)for(m in h)p=c(S,m),E=c(h,m),S!==E&&(N&&E&&(l(E)||(y=s(E)))?(y?(y=!1,v=p&&s(p)?p:[]):v=p&&l(p)?p:{},u(S,{name:m,newValue:d(N,v,E)})):typeof E<"u"&&u(S,{name:m,newValue:E}));return S},yp}var _U=SU();const Ep=N0(_U);function g0(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 CU(){const e=[],t={run:n,use:i};return t;function n(...s){let l=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...s);function c(d,...h){const m=e[++l];let p=-1;if(d){u(d);return}for(;++p<s.length;)(h[p]===null||h[p]===void 0)&&(h[p]=s[p]);s=h,m?AU(m,c)(...h):u(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function AU(e,t){let n;return i;function i(...u){const c=e.length>u.length;let d;c&&u.push(s);try{d=e.apply(this,u)}catch(h){const m=h;if(c&&n)throw m;return s(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(l,s):d instanceof Error?s(d):l(d))}function s(u,...c){n||(n=!0,t(u,...c))}function l(u){s(null,u)}}const Sr={basename:kU,dirname:wU,extname:NU,join:RU,sep:"/"};function kU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');hu(e);let n=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,c=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else u<0&&(l=!0,u=s+1),c>-1&&(e.codePointAt(s)===t.codePointAt(c--)?c<0&&(i=s):(c=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function wU(e){if(hu(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function NU(e){hu(e);let t=e.length,n=-1,i=0,s=-1,l=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function RU(...e){let t=-1,n;for(;++t<e.length;)hu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":OU(n)}function OU(e){hu(e);const t=e.codePointAt(0)===47;let n=LU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function LU(e,t){let n="",i=0,s=-1,l=0,u=-1,c,d;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(s===u-1||l===1))if(s!==u-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",i=0):(n=n.slice(0,d),i=n.length-1-n.lastIndexOf("/")),s=u,l=0;continue}}else if(n.length>0){n="",i=0,s=u,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,l=0}else c===46&&l>-1?l++:l=-1}return n}function hu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DU={cwd:IU};function IU(){return"/"}function b0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function MU(e){if(typeof e=="string")e=new URL(e);else if(!b0(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 PU(e)}function PU(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 n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const xp=["history","path","basename","stem","extname","dirname"];class BU{constructor(t){let n;t?b0(t)?n={path:t}:typeof t=="string"||jU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":DU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<xp.length;){const l=xp[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)xp.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Sr.basename(this.path):void 0}set basename(t){vp(t,"basename"),Tp(t,"basename"),this.path=Sr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Sr.dirname(this.path):void 0}set dirname(t){w2(this.basename,"dirname"),this.path=Sr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Sr.extname(this.path):void 0}set extname(t){if(Tp(t,"extname"),w2(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=Sr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){b0(t)&&(t=MU(t)),vp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Sr.basename(this.path,this.extname):void 0}set stem(t){vp(t,"stem"),Tp(t,"stem"),this.path=Sr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new cn(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tp(e,t){if(e&&e.includes(Sr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Sr.sep+"`")}function vp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function w2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function jU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HU=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),UU={}.hasOwnProperty;class wg extends HU{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=CU()}copy(){const t=new wg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Ep(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Cp("data",this.frozen),this.namespace[t]=n,this):UU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Cp("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[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=tf(t),i=this.parser||this.Parser;return Sp("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Sp("process",this.parser||this.Parser),_p("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,u){const c=tf(t),d=i.parse(c);i.run(d,c,function(m,p,E){if(m||!p||!E)return h(m);const y=p,v=i.stringify(y,E);qU(v)?E.value=v:E.result=v,h(m,E)});function h(m,p){m||!p?u(m):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),Sp("processSync",this.parser||this.Parser),_p("processSync",this.compiler||this.Compiler),this.process(t,s),R2("processSync","process",n),i;function s(l,u){n=!0,A2(l),i=u}}run(t,n,i){N2(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(u,c){const d=tf(n);s.run(t,d,h);function h(m,p,E){const y=p||t;m?c(m):u?u(y):i(void 0,y,E)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),R2("runSync","run",i),s;function l(u,c){A2(u),s=c,i=!0}}stringify(t,n){this.freeze();const i=tf(n),s=this.compiler||this.Compiler;return _p("stringify",s),N2(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Cp("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;d(m,p)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(s.settings=Ep(!0,s.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];l(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let p=-1,E=-1;for(;++p<i.length;)if(i[p][0]===h){E=p;break}if(E===-1)i.push([h,...m]);else if(m.length>0){let[y,...v]=m;const S=i[E][1];g0(S)&&g0(y)&&(y=Ep(!0,S,y)),i[E]=[h,y,...v]}}}}const zU=new wg().freeze();function Sp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _p(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cp(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 N2(e){if(!g0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function R2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tf(e){return FU(e)?e:new BU(e)}function FU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function qU(e){return typeof e=="string"||VU(e)}function VU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Ng(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ss=Ng();function AC(e){ss=e}var Pa={exec:()=>null};function et(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(s,l)=>{let u=typeof l=="string"?l:l.source;return u=u.replace(gn.caret,"$1"),n=n.replace(s,u),i},getRegex:()=>new RegExp(n,t)};return i}var YU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),gn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},$U=/^(?:[ \t]*(?:\n|$))+/,GU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,KU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rg=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,kC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wC=et(kC).replace(/bull/g,Rg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),QU=et(kC).replace(/bull/g,Rg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Og=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,WU=/^[^\n]+/,Lg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ZU=et(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Lg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),JU=et(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rg).getRegex(),gd="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Dg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ez=et("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Dg).replace("tag",gd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),NC=et(Og).replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gd).getRegex(),tz=et(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",NC).getRegex(),Ig={blockquote:tz,code:GU,def:ZU,fences:KU,heading:XU,hr:mu,html:ez,lheading:wC,list:JU,newline:$U,paragraph:NC,table:Pa,text:WU},O2=et("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gd).getRegex(),nz={...Ig,lheading:QU,table:O2,paragraph:et(Og).replace("hr",mu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",O2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",gd).getRegex()},rz={...Ig,html:et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Dg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:et(Og).replace("hr",mu).replace("heading",` *#{1,6} *[^
|
|
99
|
-
]`).replace("lheading",wC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},iz=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,az=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,RC=/^( {2,}|\\)\n(?!\s*$)/,sz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sl=/[\p{P}\p{S}]/u,bd=/[\s\p{P}\p{S}]/u,Mg=/[^\s\p{P}\p{S}]/u,lz=et(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bd).getRegex(),OC=/(?!~)[\p{P}\p{S}]/u,oz=/(?!~)[\s\p{P}\p{S}]/u,uz=/(?:[^\s\p{P}\p{S}]|~)/u,cz=et(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",YU?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),LC=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,fz=et(LC,"u").replace(/punct/g,Sl).getRegex(),dz=et(LC,"u").replace(/punct/g,OC).getRegex(),DC="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",hz=et(DC,"gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,bd).replace(/punct/g,Sl).getRegex(),mz=et(DC,"gu").replace(/notPunctSpace/g,uz).replace(/punctSpace/g,oz).replace(/punct/g,OC).getRegex(),pz=et("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,bd).replace(/punct/g,Sl).getRegex(),gz=et(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Sl).getRegex(),bz="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",yz=et(bz,"gu").replace(/notPunctSpace/g,Mg).replace(/punctSpace/g,bd).replace(/punct/g,Sl).getRegex(),Ez=et(/\\(punct)/,"gu").replace(/punct/g,Sl).getRegex(),xz=et(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),Tz=et(Dg).replace("(?:-->|$)","-->").getRegex(),vz=et("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Tz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Hf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Sz=et(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Hf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),IC=et(/^!?\[(label)\]\[(ref)\]/).replace("label",Hf).replace("ref",Lg).getRegex(),MC=et(/^!?\[(ref)\](?:\[\])?/).replace("ref",Lg).getRegex(),_z=et("reflink|nolink(?!\\()","g").replace("reflink",IC).replace("nolink",MC).getRegex(),L2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Pg={_backpedal:Pa,anyPunctuation:Ez,autolink:xz,blockSkip:cz,br:RC,code:az,del:Pa,delLDelim:Pa,delRDelim:Pa,emStrongLDelim:fz,emStrongRDelimAst:hz,emStrongRDelimUnd:pz,escape:iz,link:Sz,nolink:MC,punctuation:lz,reflink:IC,reflinkSearch:_z,tag:vz,text:sz,url:Pa},Cz={...Pg,link:et(/^!?\[(label)\]\((.*?)\)/).replace("label",Hf).getRegex(),reflink:et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Hf).getRegex()},y0={...Pg,emStrongRDelimAst:mz,emStrongLDelim:dz,delLDelim:gz,delRDelim:yz,url:et(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",L2).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:et(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",L2).getRegex()},Az={...y0,br:et(RC).replace("{2,}","*").getRegex(),text:et(y0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nf={normal:Ig,gfm:nz,pedantic:rz},ko={normal:Pg,gfm:y0,breaks:Az,pedantic:Cz},kz={"&":"&","<":"<",">":">",'"':""","'":"'"},D2=e=>kz[e];function vr(e,t){if(t){if(gn.escapeTest.test(e))return e.replace(gn.escapeReplace,D2)}else if(gn.escapeTestNoEncode.test(e))return e.replace(gn.escapeReplaceNoEncode,D2);return e}function I2(e){try{e=encodeURI(e).replace(gn.percentDecode,"%")}catch{return null}return e}function M2(e,t){let n=e.replace(gn.findPipe,(l,u,c)=>{let d=!1,h=u;for(;--h>=0&&c[h]==="\\";)d=!d;return d?"|":" |"}),i=n.split(gn.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(gn.slashPipe,"|");return i}function wo(e,t,n){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function wz(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function Nz(e,t=0){let n=t,i="";for(let s of e)if(s===" "){let l=4-n%4;i+=" ".repeat(l),n+=l}else i+=s,n++;return i}function P2(e,t,n,i,s){let l=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,d}function Rz(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
100
|
-
`).map(l=>{let u=l.match(n.other.beginningSpace);if(u===null)return l;let[c]=u;return c.length>=s.length?l.slice(s.length):l}).join(`
|
|
101
|
-
`)}var Uf=class{options;rules;lexer;constructor(e){this.options=e||ss}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:wo(n,`
|
|
102
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=Rz(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=wo(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:wo(t[0],`
|
|
103
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=wo(t[0],`
|
|
104
|
-
`).split(`
|
|
105
|
-
`),i="",s="",l=[];for(;n.length>0;){let u=!1,c=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))c.push(n[d]),u=!0;else if(!u)c.push(n[d]);else break;n=n.slice(d);let h=c.join(`
|
|
106
|
-
`),m=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
107
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
108
|
-
${h}`:h,s=s?`${s}
|
|
109
|
-
${m}`:m;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=p,n.length===0)break;let E=l.at(-1);if(E?.type==="code")break;if(E?.type==="blockquote"){let y=E,v=y.raw+`
|
|
110
|
-
`+n.join(`
|
|
111
|
-
`),S=this.blockquote(v);l[l.length-1]=S,i=i.substring(0,i.length-y.raw.length)+S.raw,s=s.substring(0,s.length-y.text.length)+S.text;break}else if(E?.type==="list"){let y=E,v=y.raw+`
|
|
112
|
-
`+n.join(`
|
|
113
|
-
`),S=this.list(v);l[l.length-1]=S,i=i.substring(0,i.length-E.raw.length)+S.raw,s=s.substring(0,s.length-y.raw.length)+S.raw,n=v.substring(l.at(-1).raw.length).split(`
|
|
114
|
-
`);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),i=n.length>1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let l=this.rules.other.listItemRegex(n),u=!1;for(;e;){let d=!1,h="",m="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let p=Nz(t[2].split(`
|
|
115
|
-
`,1)[0],t[1].length),E=e.split(`
|
|
116
|
-
`,1)[0],y=!p.trim(),v=0;if(this.options.pedantic?(v=2,m=p.trimStart()):y?v=t[1].length+1:(v=p.search(this.rules.other.nonSpaceChar),v=v>4?1:v,m=p.slice(v),v+=t[1].length),y&&this.rules.other.blankLine.test(E)&&(h+=E+`
|
|
117
|
-
`,e=e.substring(E.length+1),d=!0),!d){let S=this.rules.other.nextBulletRegex(v),A=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),N=this.rules.other.headingBeginRegex(v),w=this.rules.other.htmlBeginRegex(v),D=this.rules.other.blockquoteBeginRegex(v);for(;e;){let z=e.split(`
|
|
118
|
-
`,1)[0],L;if(E=z,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),L=E):L=E.replace(this.rules.other.tabCharGlobal," "),k.test(E)||N.test(E)||w.test(E)||D.test(E)||S.test(E)||A.test(E))break;if(L.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
|
|
119
|
-
`+L.slice(v);else{if(y||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(p)||N.test(p)||A.test(p))break;m+=`
|
|
120
|
-
`+E}y=!E.trim(),h+=z+`
|
|
121
|
-
`,e=e.substring(z.length+1),p=L.slice(v)}}s.loose||(u?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(u=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),s.raw+=h}let c=s.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let d of s.items){if(this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]),d.task){if(d.text=d.text.replace(this.rules.other.listReplaceTask,""),d.tokens[0]?.type==="text"||d.tokens[0]?.type==="paragraph"){d.tokens[0].raw=d.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),d.tokens[0].text=d.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(d.raw);if(h){let m={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};d.checked=m.checked,s.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=m.raw+d.tokens[0].raw,d.tokens[0].text=m.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(m)):d.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):d.tokens.unshift(m)}}if(!s.loose){let h=d.tokens.filter(p=>p.type==="space"),m=h.length>0&&h.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=m}}if(s.loose)for(let d of s.items){d.loose=!0;for(let h of d.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=M2(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
122
|
-
`):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(M2(u,l.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[d]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
123
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=wo(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=wz(t[2],"()");if(l===-2)return;if(l>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),P2(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return P2(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,u,c=s,d=0,h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+s);(i=h.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){c+=u;continue}else if((i[5]||i[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+d);let m=[...i[0]][0].length,p=e.slice(0,s+i.index+m+u);if(Math.min(s,u)%2){let y=p.slice(1,-1);return{type:"em",raw:p,text:y,tokens:this.lexer.inlineTokens(y)}}let E=p.slice(2,-2);return{type:"strong",raw:p,text:E,tokens:this.lexer.inlineTokens(E)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,u,c=s,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(i=d.exec(t))!==null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l||(u=[...l].length,u!==s))continue;if(i[3]||i[4]){c+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c);let h=[...i[0]][0].length,m=e.slice(0,s+i.index+h+u),p=m.slice(s,-s);return{type:"del",raw:m,text:p,tokens:this.lexer.inlineTokens(p)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=t[0],i="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},rr=class E0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ss,this.options.tokenizer=this.options.tokenizer||new Uf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:gn,block:nf.normal,inline:ko.normal};this.options.pedantic?(n.block=nf.pedantic,n.inline=ko.pedantic):this.options.gfm&&(n.block=nf.gfm,this.options.breaks?n.inline=ko.breaks:n.inline=ko.gfm),this.tokenizer.rules=n}static get rules(){return{block:nf,inline:ko}}static lex(t,n){return new E0(n).lex(t)}static lexInline(t,n){return new E0(n).inlineTokens(t)}lex(t){t=t.replace(gn.carriageReturn,`
|
|
124
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(gn.tabCharGlobal," ").replace(gn.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(u=>(s=u.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let u=n.at(-1);s.raw.length===1&&u!==void 0?u.raw+=`
|
|
125
|
-
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
126
|
-
`)?"":`
|
|
127
|
-
`)+s.raw,u.text+=`
|
|
128
|
-
`+s.text,this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
129
|
-
`)?"":`
|
|
130
|
-
`)+s.raw,u.text+=`
|
|
131
|
-
`+s.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let l=t;if(this.options.extensions?.startBlock){let u=1/0,c=t.slice(1),d;this.options.extensions.startBlock.forEach(h=>{d=h.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let u=n.at(-1);i&&u?.type==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
132
|
-
`)?"":`
|
|
133
|
-
`)+s.raw,u.text+=`
|
|
134
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s),i=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let u=n.at(-1);u?.type==="text"?(u.raw+=(u.raw.endsWith(`
|
|
135
|
-
`)?"":`
|
|
136
|
-
`)+s.raw,u.text+=`
|
|
137
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(s);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let i=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!==null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!==null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)l=s[2]?s[2].length:0,i=i.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let u=!1,c="";for(;t;){u||(c=""),u=!1;let d;if(this.options.extensions?.inline?.some(m=>(d=m.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let m=n.at(-1);d.type==="text"&&m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(d=this.tokenizer.emStrong(t,i,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.del(t,i,c)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),n.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),n.push(d);continue}let h=t;if(this.options.extensions?.startInline){let m=1/0,p=t.slice(1),E;this.options.extensions.startInline.forEach(y=>{E=y.call({lexer:this},p),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(h=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(h)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(c=d.raw.slice(-1)),u=!0;let m=n.at(-1);m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):n.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return n}},zf=class{options;parser;constructor(e){this.options=e||ss}space(e){return""}code({text:e,lang:t,escaped:n}){let i=(t||"").match(gn.notSpaceStart)?.[0],s=e.replace(gn.endingNewline,"")+`
|
|
138
|
-
`;return i?'<pre><code class="language-'+vr(i)+'">'+(n?s:vr(s,!0))+`</code></pre>
|
|
139
|
-
`:"<pre><code>"+(n?s:vr(s,!0))+`</code></pre>
|
|
140
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
141
|
-
${this.parser.parse(e)}</blockquote>
|
|
142
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
143
|
-
`}hr(e){return`<hr>
|
|
144
|
-
`}list(e){let t=e.ordered,n=e.start,i="";for(let u=0;u<e.items.length;u++){let c=e.items[u];i+=this.listitem(c)}let s=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
|
|
145
|
-
`+i+"</"+s+`>
|
|
146
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
147
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
148
|
-
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let i="";for(let s=0;s<e.rows.length;s++){let l=e.rows[s];n="";for(let u=0;u<l.length;u++)n+=this.tablecell(l[u]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
149
|
-
<thead>
|
|
150
|
-
`+t+`</thead>
|
|
151
|
-
`+i+`</table>
|
|
152
|
-
`}tablerow({text:e}){return`<tr>
|
|
153
|
-
${e}</tr>
|
|
154
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
155
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${vr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),s=I2(e);if(s===null)return i;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+vr(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=I2(e);if(s===null)return vr(n);e=s;let l=`<img src="${e}" alt="${vr(n)}"`;return t&&(l+=` title="${vr(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vr(e.text)}},Bg=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},cr=class x0{options;renderer;textRenderer;constructor(t){this.options=t||ss,this.options.renderer=this.options.renderer||new zf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Bg}static parse(t,n){return new x0(n).parse(t)}static parseInline(t,n){return new x0(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let s=t[i];if(this.options.extensions?.renderers?.[s.type]){let u=s,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=c||"";continue}}let l=s;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let l=t[s];if(this.options.extensions?.renderers?.[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=c||"";continue}}let u=l;switch(u.type){case"escape":{i+=n.text(u);break}case"html":{i+=n.html(u);break}case"link":{i+=n.link(u);break}case"image":{i+=n.image(u);break}case"checkbox":{i+=n.checkbox(u);break}case"strong":{i+=n.strong(u);break}case"em":{i+=n.em(u);break}case"codespan":{i+=n.codespan(u);break}case"br":{i+=n.br(u);break}case"del":{i+=n.del(u);break}case"text":{i+=n.text(u);break}default:{let c='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},Oo=class{options;block;constructor(e){this.options=e||ss}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?rr.lex:rr.lexInline}provideParser(e=this.block){return e?cr.parse:cr.parseInline}},Oz=class{defaults=Ng();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=cr;Renderer=zf;TextRenderer=Bg;Lexer=rr;Tokenizer=Uf;Hooks=Oo;constructor(...t){this.use(...t)}walkTokens(t,n){let i=[];for(let s of t)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let l=s;for(let u of l.header)i=i.concat(this.walkTokens(u.tokens,n));for(let u of l.rows)for(let c of u)i=i.concat(this.walkTokens(c.tokens,n));break}case"list":{let l=s;i=i.concat(this.walkTokens(l.items,n));break}default:{let l=s;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{let c=l[u].flat(1/0);i=i.concat(this.walkTokens(c,n))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,n)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let u=n.renderers[l.name];u?n.renderers[l.name]=function(...c){let d=l.renderer.apply(this,c);return d===!1&&(d=u.apply(this,c)),d}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=n[l.level];u?u.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),s.extensions=n),i.renderer){let l=this.defaults.renderer||new zf(this.defaults);for(let u in i.renderer){if(!(u in l))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,d=i.renderer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p||""}}s.renderer=l}if(i.tokenizer){let l=this.defaults.tokenizer||new Uf(this.defaults);for(let u in i.tokenizer){if(!(u in l))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,d=i.tokenizer[c],h=l[c];l[c]=(...m)=>{let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.tokenizer=l}if(i.hooks){let l=this.defaults.hooks||new Oo;for(let u in i.hooks){if(!(u in l))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,d=i.hooks[c],h=l[c];Oo.passThroughHooks.has(u)?l[c]=m=>{if(this.defaults.async&&Oo.passThroughHooksRespectAsync.has(u))return(async()=>{let E=await d.call(l,m);return h.call(l,E)})();let p=d.call(l,m);return h.call(l,p)}:l[c]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await d.apply(l,m);return E===!1&&(E=await h.apply(l,m)),E})();let p=d.apply(l,m);return p===!1&&(p=h.apply(l,m)),p}}s.hooks=l}if(i.walkTokens){let l=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let d=[];return d.push(u.call(this,c)),l&&(d=d.concat(l.call(this,c))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rr.lex(t,n??this.defaults)}parser(t,n){return cr.parse(t,n??this.defaults)}parseMarkdown(t){return(n,i)=>{let s={...i},l={...this.defaults,...s},u=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let c=l.hooks?await l.hooks.preprocess(n):n,d=await(l.hooks?await l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(c,l),h=l.hooks?await l.hooks.processAllTokens(d):d;l.walkTokens&&await Promise.all(this.walkTokens(h,l.walkTokens));let m=await(l.hooks?await l.hooks.provideParser(t):t?cr.parse:cr.parseInline)(h,l);return l.hooks?await l.hooks.postprocess(m):m})().catch(u);try{l.hooks&&(n=l.hooks.preprocess(n));let c=(l.hooks?l.hooks.provideLexer(t):t?rr.lex:rr.lexInline)(n,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let d=(l.hooks?l.hooks.provideParser(t):t?cr.parse:cr.parseInline)(c,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}catch(c){return u(c)}}}onError(t,n){return i=>{if(i.message+=`
|
|
156
|
-
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+vr(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},Qa=new Oz;function pt(e,t){return Qa.parse(e,t)}pt.options=pt.setOptions=function(e){return Qa.setOptions(e),pt.defaults=Qa.defaults,AC(pt.defaults),pt};pt.getDefaults=Ng;pt.defaults=ss;pt.use=function(...e){return Qa.use(...e),pt.defaults=Qa.defaults,AC(pt.defaults),pt};pt.walkTokens=function(e,t){return Qa.walkTokens(e,t)};pt.parseInline=Qa.parseInline;pt.Parser=cr;pt.parser=cr.parse;pt.Renderer=zf;pt.TextRenderer=Bg;pt.Lexer=rr;pt.lexer=rr.lex;pt.Tokenizer=Uf;pt.Hooks=Oo;pt.parse=pt;pt.options;pt.setOptions;pt.use;pt.walkTokens;pt.parseInline;cr.parse;rr.lex;var Lz=300,Dz="300px",Iz=500;function Mz(e={}){let{immediate:t=!1,debounceDelay:n=Lz,rootMargin:i=Dz,idleTimeout:s=Iz}=e,[l,u]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),h=C.useRef(null),m=C.useMemo(()=>y=>{let v=Date.now();return window.setTimeout(()=>{y({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-v))})},1)},[]),p=C.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(y,v)=>window.requestIdleCallback(y,v):m,[m]),E=C.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?y=>window.cancelIdleCallback(y):y=>{clearTimeout(y)},[]);return C.useEffect(()=>{if(t){u(!0);return}let y=c.current;if(!y)return;d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null);let v=()=>{d.current&&(clearTimeout(d.current),d.current=null),h.current&&(E(h.current),h.current=null)},S=w=>{h.current=p(D=>{D.timeRemaining()>0||D.didTimeout?(u(!0),w.disconnect()):h.current=p(()=>{u(!0),w.disconnect()},{timeout:s/2})},{timeout:s})},A=w=>{v(),d.current=window.setTimeout(()=>{var D,z;let L=w.takeRecords();(L.length===0||(z=(D=L.at(-1))==null?void 0:D.isIntersecting)!=null&&z)&&S(w)},n)},k=(w,D)=>{w.isIntersecting?A(D):v()},N=new IntersectionObserver(w=>{for(let D of w)k(D,N)},{rootMargin:i,threshold:0});return N.observe(y),()=>{d.current&&clearTimeout(d.current),h.current&&E(h.current),N.disconnect()}},[t,n,i,s,E,p]),{shouldRender:l,containerRef:c}}var Pz=320,Bz=4,PC=()=>typeof performance>"u"?Date.now():performance.now();function B2(e){var t,n;let i=(t=e?.now)!=null?t:PC,s=(n=e?.maxBacklogMs)!=null?n:Pz,l=0,u=0;return{now:i,beginPass(c){u=Math.min(Math.max(l,c),c+s)},mark(){return u},rewind(c){u=c},take(c,d,h){if(c<=0)return{baseDelay:0,step:Math.max(0,d)};let m=Math.max(0,d),p=m===0?0:Math.min(m,Bz),E=Math.max(u,h),y=h+s,v=E+Math.max(0,c-1)*m,S=m;if(v>y&&c>1)if(E<y){let k=y-E;S=Math.max(p,k/(c-1))}else S=p;let A=Math.max(0,Math.round(E-h));return u=E+c*S,{baseDelay:A,step:S}},commitPass(){l=u}}}var BC=/\s/,jg=/^\s+$/,jz=new Set(["pre","svg","math","annotation"]),Hz=new Set(["img","hr"]),pu=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",Hg=e=>e.some(t=>pu(t)&&jz.has(t.tagName)),Uz=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(pu(n)&&n.tagName==="li")return n}},zz=(e,t,n,i)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${i}`},Fz=new Set(["ul","ol","li"]),jC=e=>{for(let t of e.children)if(pu(t)){if(t.tagName==="input")return t;if(Fz.has(t.tagName))continue;let n=jC(t);if(n)return n}},HC=(e,t,n,i)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let s=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${s}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(i)}ms`},qz=(e,t,n,i)=>{let s=jC(e);s&&HC(s,t,n,i)},Vz=(e,t,n,i,s,l)=>{if(Hg(t))return;let u=i.prevContentLength,c=s.count;s.count+=1;let d=u>0&&c<u,h=d?0:l.baseDelay+s.newIndex++*l.step;HC(e,n,d?0:n.duration,h)},Yz=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let i=e[n];if(pu(i)){if((t=i.properties)!=null&&t["data-sd-animated"])break;i.properties={...i.properties,"data-sd-animated":!0}}}},UC=e=>{let t=[],n="",i=!1;for(let s of e){let l=BC.test(s);if(l!==i&&n){if(l){n+=s,i=!0;continue}t.push(n),n=""}n+=s,i=l}return n&&t.push(n),t},zC=e=>{let t=[],n="";for(let i of e)BC.test(i)?t.length>0&&!jg.test(t.at(-1))?t[t.length-1]+=i:n+=i:(n&&(t.push(n),n=""),t.push(i));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},$z=(e,t,n,i,s,l)=>{let u=`--sd-animation:sd-${t};--sd-duration:${s?0:n}ms;--sd-easing:${i}`;return l&&(u+=`;--sd-delay:${Math.round(l)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:u},children:[{type:"text",value:e}]}},j2=(e,t)=>!(e>0&&t<e),T0=e=>pu(e)&&Hz.has(e.tagName),Gz=(e,t,n)=>{let i=0,s=0;return ad(e,l=>l.type==="text"||T0(l),(l,u)=>{if(Hg(u))return ja;if(T0(l)){j2(n,s)&&(i+=1),s+=1;return}let c=l.value;if(!c.trim()){s+=c.length;return}let d=t.sep==="char"?zC(c):UC(c);for(let h of d){let m=s;s+=h.length,!jg.test(h)&&j2(n,m)&&(i+=1)}}),i},Kz=(e,t,n,i,s,l)=>{var u;let c=t.at(-1);if(!(c&&"children"in c))return;if(Hg(t))return ja;let d=c,h=d.children.indexOf(e);if(h===-1)return;let m=e.value;if(!m.trim()){s.count+=m.length;return}let p=n.sep==="char"?zC(m):UC(m),E=i.prevContentLength,y=!1,v=Uz(t),S=!!(v&&!((u=v.properties)!=null&&u["data-sd-animate-marker"])),A=!1,k=p.map(N=>{let w=s.count;if(s.count+=N.length,jg.test(N))return{type:"text",value:N};let D=E>0&&w<E,z=D?0:l.baseDelay+s.newIndex++*l.step;if(y=!0,v&&S&&!A){let L=D?0:n.duration;zz(v,L,z,n.easing),qz(v,n,L,z),A=!0}return $z(N,n.animation,n.duration,n.easing,D,z)});return y&&Yz(t),d.children.splice(h,1,...k),h+k.length},Xz=0;function FC(e){var t,n,i,s,l;let u={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(i=e?.easing)!=null?i:"ease",sep:(s=e?.sep)!=null?s:"word",stagger:(l=e?.stagger)!=null?l:40,timeline:e?.timeline},c={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},d=Xz++,h=()=>m=>{var p;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let y=u.timeline,v=(p=y?.now())!=null?p:PC();y&&(c.pendingMark===null?c.pendingMark=y.mark():y.rewind(c.pendingMark));let S=y?y.take(Gz(m,u,c.prevContentLength),u.stagger,v):{baseDelay:0,step:u.stagger};ad(m,A=>A.type==="text"||T0(A),(A,k)=>{if(A.type==="text")return Kz(A,k,u,c,E,S);Vz(A,k,u,c,E,S)}),c.lastRenderCharCount=E.count,c.prevContentLength=0};return Object.defineProperty(h,"name",{value:`rehypeAnimate$${d}`}),{name:"animate",type:"animate",rehypePlugin:h,setPrevContentLength(m){c.committedCharCount=m,c.prevContentLength=m},getLastRenderCharCount(){return c.lastRenderCharCount},commit(){c.committedCharCount=c.lastRenderCharCount,c.pendingMark=null}}}FC();var qC=C.createContext(!1),Qz=()=>C.useContext(qC),yd=(...e)=>pC(eC(e)),Wz=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(i=>i.startsWith(n)?i:`${e}:${i}`).join(" ")},Zz=e=>e?(...t)=>Wz(e,pC(eC(t))):yd,ll=(e,t,n)=>{let i=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",s=typeof t=="string"?new Blob([i+t],{type:n}):t,l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=e,document.body.appendChild(u),u.click(),document.body.removeChild(u),URL.revokeObjectURL(l)},v0=C.createContext(yd),qe=()=>C.useContext(v0),Jz=8,VC=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},YC=(e,t,n)=>{let i=C.useRef(null),s=C.useRef(!0),l=C.useRef(!1);return C.useEffect(()=>{let u=i.current;if(!(u&&t))return;let c=()=>{let d=u.scrollHeight-u.scrollTop-u.clientHeight<Jz;s.current=d};return u.addEventListener("scroll",c,{passive:!0}),()=>u.removeEventListener("scroll",c)},[t]),C.useEffect(()=>{e&&!l.current&&(s.current=!0),e||(s.current=!0),l.current=e},[e]),C.useEffect(()=>{let u=i.current;u&&t&&e&&s.current&&u.scrollTo({top:u.scrollHeight,behavior:"instant"})},[e,t,n]),i},eF=yd("block"),tF=yd("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),nF=e=>{let t={};for(let n of e.split(";")){let i=n.indexOf(":");if(i>0){let s=n.slice(0,i).trim(),l=n.slice(i+1).trim();s&&l&&(t[s]=l)}}return t},rF=C.memo(({children:e,result:t,language:n,className:i,maxHeight:s,startLine:l,lineNumbers:u=!0,...c})=>{let d=qe(),{isAnimating:h}=C.useContext(an),m=VC(s),p=YC(h,!!m,t),E=C.useMemo(()=>d(tF),[d]),y=C.useMemo(()=>d(eF),[d]),v=C.useMemo(()=>{let S={};return t.bg&&(S["--sdm-bg"]=t.bg),t.fg&&(S["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(S,nF(t.rootStyle)),S},[t.bg,t.fg,t.rootStyle]);return x.jsx("div",{className:d(i,m?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:p,style:m?{maxHeight:m}:void 0,...c,children:x.jsx("pre",{className:d(i,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:v,children:x.jsx("code",{className:u?d("[counter-increment:line_0] [counter-reset:line]"):void 0,style:u&&l&&l>1?{counterReset:`line ${l-1}`}:void 0,children:t.tokens.map((S,A)=>x.jsx("span",{className:u?E:y,children:S.length===0||S.length===1&&S[0].content===""?`
|
|
157
|
-
`:S.map((k,N)=>{let w={},D=!!k.bgColor;if(k.color&&(w["--sdm-c"]=k.color),k.bgColor&&(w["--sdm-tbg"]=k.bgColor),k.htmlStyle)for(let[z,L]of Object.entries(k.htmlStyle))z==="color"?w["--sdm-c"]=L:z==="background-color"?(w["--sdm-tbg"]=L,D=!0):w[z]=L;return x.jsx("span",{className:d("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",D&&"bg-[var(--sdm-tbg)]",D&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:w,...k.htmlAttrs,children:k.content},N)})},A))})})})}),iF=({className:e,language:t,style:n,isIncomplete:i,...s})=>{let l=qe();return x.jsx("div",{className:l("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":i||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...s})},$C=C.createContext({code:""}),GC=()=>C.useContext($C),aF=({language:e})=>{let t=qe();return x.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:x.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},sF=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
158
|
-
`;)t--;return e.slice(0,t)},lF=C.lazy(()=>s_(()=>import("./highlighted-body-KPVGNVTW-BpWplPka.js"),[]).then(e=>({default:e.HighlightedCodeBlockBody}))),oF=({code:e,language:t,className:n,children:i,isIncomplete:s=!1,startLine:l,lineNumbers:u,...c})=>{let d=qe(),{codeBlockMaxHeight:h}=C.useContext(an),m=C.useMemo(()=>sF(e),[e]),p=C.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:m.split(`
|
|
159
|
-
`).map(E=>[{content:E,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[m]);return x.jsx($C.Provider,{value:{code:e},children:x.jsxs(iF,{dir:"ltr",isIncomplete:s,language:t,children:[x.jsx(aF,{language:t}),i?x.jsx("div",{className:d("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:x.jsx("div",{className:d("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:i})}):null,x.jsx(C.Suspense,{fallback:x.jsx(rF,{className:n,language:t,lineNumbers:u,maxHeight:h,result:p,startLine:l,...c}),children:x.jsx(lF,{className:n,code:m,language:t,lineNumbers:u,maxHeight:h,raw:p,startLine:l,...c})})]})})},uF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),cF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),fF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),dF=e=>x.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[x.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),x.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),hF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),mF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),pF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),gF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),bF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),yF=e=>x.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:x.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Lo={CheckIcon:uF,CopyIcon:cF,DownloadIcon:fF,ExternalLinkIcon:gF,Loader2Icon:dF,Maximize2Icon:hF,RotateCcwIcon:mF,XIcon:pF,ZoomInIcon:bF,ZoomOutIcon:yF},KC=C.createContext(Lo),EF=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),i=Object.keys(t);return n.length!==i.length?!1:n.every(s=>e[s]===t[s])},H2=({icons:e,children:t})=>{let n=C.useRef(e),i=C.useRef(e?{...Lo,...e}:Lo);EF(n.current,e)||(n.current=e,i.current=e?{...Lo,...e}:Lo);let s=i.current;return x.jsx(KC.Provider,{value:s,children:t})},gr=()=>C.useContext(KC),XC={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},S0=C.createContext(XC),Ir=()=>C.useContext(S0),_0=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:s,code:l,...u})=>{let c=qe(),[d,h]=C.useState(!1),m=C.useRef(0),{code:p}=GC(),{isAnimating:E}=C.useContext(an),y=Ir(),v=l??p,S=async()=>{var N;if(typeof window>"u"||!((N=navigator?.clipboard)!=null&&N.writeText)){t?.(new Error("Clipboard API not available"));return}try{d||(await navigator.clipboard.writeText(v),h(!0),e?.(),m.current=window.setTimeout(()=>h(!1),n))}catch(w){t?.(w)}};C.useEffect(()=>()=>{window.clearTimeout(m.current)},[]);let A=gr(),k=d?A.CheckIcon:A.CopyIcon;return x.jsxs(x.Fragment,{children:[x.jsx("button",{"aria-label":y.copyCode,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-copy-button",disabled:E,onClick:S,title:y.copyCode,type:"button",...u,children:i??x.jsx(k,{"aria-hidden":"true",size:14})}),d&&x.jsx("output",{"aria-live":"polite",className:"sr-only",children:y.copied})]})},Ug=(e,t,n)=>{if(typeof e=="boolean")return n;let i=e[t];if(typeof i!="object")return n;let s=i.download;return typeof s!="object"?n:s.filename||n},U2={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},xF=({onDownload:e,onError:t,language:n,children:i,className:s,code:l,...u})=>{let c=qe(),{code:d}=GC(),{isAnimating:h,controls:m}=C.useContext(an),p=Ir(),E=gr(),y=l??d,v=n&&n in U2?U2[n]:"txt",S=`${Ug(m,"code","file")}.${v}`,A="text/plain",k=()=>{try{ll(S,y,A),e?.()}catch(N){t?.(N)}};return x.jsx("button",{"aria-label":p.downloadFile,className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),"data-streamdown":"code-block-download-button",disabled:h,onClick:k,title:p.downloadFile,type:"button",...u,children:i??x.jsx(E.DownloadIcon,{size:14})})},z2=()=>{let{Loader2Icon:e}=gr(),t=qe();return x.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[x.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),x.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:x.jsx(e,{className:t("size-4 animate-spin")})})]})},TF=/\.[^/.]+$/,vF=({node:e,className:t,src:n,alt:i,onLoad:s,onError:l,showControls:u=!0,showDownloadControl:c=!0,...d})=>{let{DownloadIcon:h}=gr(),m=qe(),p=C.useRef(null),[E,y]=C.useState(!1),[v,S]=C.useState(!1),A=Ir(),k=d.width!=null||d.height!=null,N=(E||k)&&!v&&u&&c,w=v&&!k;C.useEffect(()=>{let P=p.current;if(P!=null&&P.complete){let H=P.naturalWidth>0;y(H),S(!H)}},[]);let D=C.useCallback(P=>{y(!0),S(!1),s?.(P)},[s]),z=C.useCallback(P=>{y(!1),S(!0),l?.(P)},[l]),L=async()=>{if(n)try{let P=await(await fetch(n)).blob(),H=new URL(n,window.location.origin).pathname.split("/").pop()||"",G=H.split(".").pop(),j=H.includes(".")&&G!==void 0&&G.length<=4,Y="";if(j)Y=H;else{let W=P.type,se="png";W.includes("jpeg")||W.includes("jpg")?se="jpg":W.includes("png")?se="png":W.includes("svg")?se="svg":W.includes("gif")?se="gif":W.includes("webp")&&(se="webp"),Y=`${(i||H||"image").replace(TF,"")}.${se}`}ll(Y,P,P.type)}catch{window.open(n,"_blank")}};return n?x.jsxs("div",{className:m("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[x.jsx("img",{alt:i,className:m("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:z,onLoad:D,ref:p,src:n,...d}),w&&x.jsx("span",{className:m("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:A.imageNotAvailable}),u&&x.jsx("div",{className:m("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),N&&x.jsx("button",{className:m("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:L,title:A.downloadImage,type:"button",children:x.jsx(h,{size:14})})]}):null},qo=0,zg=()=>{qo+=1,qo===1&&(document.body.style.overflow="hidden")},Fg=()=>{qo=Math.max(0,qo-1),qo===0&&(document.body.style.overflow="")},SF=({url:e,isOpen:t,onClose:n,onConfirm:i})=>{let{CheckIcon:s,CopyIcon:l,ExternalLinkIcon:u,XIcon:c}=gr(),d=qe(),[h,m]=C.useState(!1),p=Ir(),E=C.useCallback(async()=>{try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)}catch{}},[e]),y=C.useCallback(()=>{i(),n()},[i,n]);if(C.useEffect(()=>{if(t){zg();let S=A=>{A.key==="Escape"&&n()};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S),Fg()}}},[t,n]),!t||typeof document>"u")return null;let v=x.jsx("div",{className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:S=>{S.key==="Escape"&&n()},role:"button",tabIndex:0,children:x.jsxs("div",{className:d("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),role:"presentation",children:[x.jsx("button",{className:d("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:p.close,type:"button",children:x.jsx(c,{size:16})}),x.jsxs("div",{className:d("flex flex-col gap-2"),children:[x.jsxs("div",{className:d("flex items-center gap-2 font-semibold text-lg"),children:[x.jsx(u,{size:20}),x.jsx("span",{children:p.openExternalLink})]}),x.jsx("p",{className:d("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),x.jsx("div",{className:d("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),x.jsxs("div",{className:d("flex gap-2"),children:[x.jsx("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:E,type:"button",children:h?x.jsxs(x.Fragment,{children:[x.jsx(s,{size:14}),x.jsx("span",{children:p.copied})]}):x.jsxs(x.Fragment,{children:[x.jsx(l,{size:14}),x.jsx("span",{children:p.copyLink})]})}),x.jsxs("button",{className:d("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:y,type:"button",children:[x.jsx(u,{size:14}),x.jsx("span",{children:p.openLink})]})]})]})});return ra.createPortal(v,document.body)},C0=C.createContext(null),qg=()=>C.useContext(C0),Wq=()=>{var e;let t=qg();return(e=t?.code)!=null?e:null},Vg=()=>{var e;let t=qg();return(e=t?.mermaid)!=null?e:null},_F=e=>{var t;let n=qg();return n!=null&&n.renderers&&e&&(t=n.renderers.find(i=>Array.isArray(i.language)?i.language.includes(e):i.language===e))!=null?t:null},CF=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},AF=(e,t)=>{var n;let i=(n=void 0)!=null?n:5;return new Promise((s,l)=>{let u="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),c=new Image;c.crossOrigin="anonymous",c.onload=()=>{let d=document.createElement("canvas"),h=c.width*i,m=c.height*i;d.width=h,d.height=m;let p=d.getContext("2d");if(!p){l(new Error("Failed to create 2D canvas context for PNG export"));return}p.drawImage(c,0,0,h,m),d.toBlob(E=>{if(!E){l(new Error("Failed to create PNG blob"));return}s(E)},"image/png")},c.onerror=()=>l(new Error("Failed to load SVG image")),c.src=u})},QC=({chart:e,children:t,className:n,onDownload:i,config:s,onError:l})=>{let u=qe(),[c,d]=C.useState(!1),h=C.useRef(null),{isAnimating:m,controls:p}=C.useContext(an),E=gr(),y=Vg(),v=Ir(),S=Ug(p,"mermaid","diagram"),A=async k=>{try{if(k==="mmd"){let P=`${S}.mmd`;ll(P,e,"text/plain"),d(!1),i?.(k);return}if(!y){l?.(new Error("Mermaid plugin not available"));return}let N=y.getMermaid(s),w=e.split("").reduce((P,H)=>(P<<5)-P+H.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await N.render(D,e);if(!z){l?.(new Error("SVG not found. Please wait for the diagram to render."));return}let L=CF(z);if(k==="svg"){let P=`${S}.svg`;ll(P,L,"image/svg+xml"),d(!1),i?.(k);return}if(k==="png"){let P=await AF(L);ll(`${S}.png`,P,"image/png"),i?.(k),d(!1);return}}catch(N){l?.(N)}};return C.useEffect(()=>{let k=N=>{let w=N.composedPath();h.current&&!w.includes(h.current)&&d(!1)};return document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[]),x.jsxs("div",{className:u("relative"),ref:h,children:[x.jsx("button",{"aria-label":v.downloadDiagram,className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:m,onClick:()=>d(!c),title:v.downloadDiagram,type:"button",children:t??x.jsx(E.DownloadIcon,{"aria-hidden":"true",size:14})}),c?x.jsxs("div",{className:u("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[x.jsx("button",{"aria-label":v.downloadDiagramAsSvg,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("svg"),title:v.downloadDiagramAsSvg,type:"button",children:v.mermaidFormatSvg}),x.jsx("button",{"aria-label":v.downloadDiagramAsPng,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("png"),title:v.downloadDiagramAsPng,type:"button",children:v.mermaidFormatPng}),x.jsx("button",{"aria-label":v.downloadDiagramAsMmd,className:u("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("mmd"),title:v.downloadDiagramAsMmd,type:"button",children:v.mermaidFormatMmd})]}):null]})},kF=({chart:e,config:t,onFullscreen:n,onExit:i,className:s,...l})=>{let{Maximize2Icon:u,XIcon:c}=gr(),d=qe(),[h,m]=C.useState(!1),{isAnimating:p,controls:E}=C.useContext(an),y=Ir(),v=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.panZoom!==!1})(),S=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.download!==!1})(),A=(()=>{if(typeof E=="boolean")return E;let N=E.mermaid;return N===!1?!1:N===!0||N===void 0?!0:N.copy!==!1})(),k=()=>{m(!h)};return C.useEffect(()=>{if(h){zg();let N=w=>{w.key==="Escape"&&m(!1)};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),Fg()}}},[h]),C.useEffect(()=>{h?n?.():i&&i()},[h,n,i]),x.jsxs(x.Fragment,{children:[x.jsx("button",{className:d("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",s),disabled:p,onClick:k,title:y.viewFullscreen,type:"button",...l,"aria-label":y.viewFullscreen,children:x.jsx(u,{"aria-hidden":"true",size:14})}),h?ra.createPortal(x.jsxs("div",{"aria-label":y.viewFullscreen,"aria-modal":"true",className:d("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:k,onKeyDown:N=>{N.key==="Escape"&&k()},role:"dialog",children:[x.jsxs("div",{className:d("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:[S?x.jsx(QC,{chart:e,config:t}):null,A?x.jsx(_0,{code:e}):null,x.jsx("button",{"aria-label":y.exitFullscreen,className:d("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:y.exitFullscreen,type:"button",children:x.jsx(c,{"aria-hidden":"true",size:20})})]}),x.jsx("div",{className:d("flex size-full items-center justify-center p-4"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:x.jsx(MA,{chart:e,className:d("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:v})})]}),document.body):null]})};function A0(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
160
|
-
`:Array.from(n.childNodes).map(A0).join("")}var WC=e=>{let t=[],n=[],i=e.querySelectorAll("thead th");for(let l of i)t.push(A0(l).trim());let s=e.querySelectorAll("tbody tr");for(let l of s){let u=[],c=l.querySelectorAll("td");for(let d of c)u.push(A0(d).trim());n.push(u)}return{headers:t,rows:n}},ZC=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},JC=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:i,rows:s}=e,l=h=>{let m=!1;for(let p of h)if(p===n||p==='"'||p===`
|
|
161
|
-
`||p==="\r"){m=!0;break}return m?`"${h.replace(/"/g,'""')}"`:h},u=i.length>0?s.length+1:s.length,c=new Array(u),d=0;i.length>0&&(c[d]=i.map(l).join(n),d+=1);for(let h of s)c[d]=h.map(l).join(n),d+=1;return c.join(`
|
|
162
|
-
`)},wF=e=>{let{headers:t,rows:n}=e,i=c=>{let d=!1;for(let m of c)if(m===" "||m===`
|
|
163
|
-
`||m==="\r"){d=!0;break}if(!d)return c;let h=[];for(let m of c)m===" "?h.push("\\t"):m===`
|
|
164
|
-
`?h.push("\\n"):m==="\r"?h.push("\\r"):h.push(m);return h.join("")},s=t.length>0?n.length+1:n.length,l=new Array(s),u=0;t.length>0&&(l[u]=t.map(i).join(" "),u+=1);for(let c of n)l[u]=c.map(i).join(" "),u+=1;return l.join(`
|
|
165
|
-
`)},Ap=e=>{let t=!1;for(let i of e)if(i==="\\"||i==="|"||i===`
|
|
166
|
-
`){t=!0;break}if(!t)return e;let n=[];for(let i of e)i==="\\"?n.push("\\\\"):i==="|"?n.push("\\|"):i===`
|
|
167
|
-
`?n.push("<br>"):n.push(i);return n.join("")},eA=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let i=new Array(n.length+2),s=0,l=t.map(c=>Ap(c));i[s]=`| ${l.join(" | ")} |`,s+=1;let u=new Array(t.length);for(let c=0;c<t.length;c+=1)u[c]="---";i[s]=`| ${u.join(" | ")} |`,s+=1;for(let c of n)if(c.length<t.length){let d=new Array(t.length);for(let h=0;h<t.length;h+=1)d[h]=h<c.length?Ap(c[h]):"";i[s]=`| ${d.join(" | ")} |`,s+=1}else{let d=c.map(h=>Ap(h));i[s]=`| ${d.join(" | ")} |`,s+=1}return i.join(`
|
|
168
|
-
`)},tA=({children:e,className:t,onCopy:n,onError:i,timeout:s=2e3})=>{let l=qe(),[u,c]=C.useState(!1),[d,h]=C.useState(!1),m=C.useRef(null),p=C.useRef(0),{isAnimating:E,controls:y}=C.useContext(an),v=Ir(),S=ZC(y),A=async w=>{var D,z;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){i?.(new Error("Clipboard API not available"));return}try{let L=(z=m.current)==null?void 0:z.closest('[data-streamdown="table-wrapper"]'),P=L?.querySelector("table");if(!P){i?.(new Error("Table not found"));return}let H=WC(P),G="";w==="csv"?G=JC(H,S):w==="tsv"?G=wF(H):G=eA(H);let j=new ClipboardItem({"text/plain":new Blob([G],{type:"text/plain"}),"text/html":new Blob([P.outerHTML],{type:"text/html"})});await navigator.clipboard.write([j]),h(!0),c(!1),n?.(w),p.current=window.setTimeout(()=>h(!1),s)}catch(L){i?.(L)}};C.useEffect(()=>{let w=D=>{let z=D.composedPath();m.current&&!z.includes(m.current)&&c(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(p.current)}},[]);let k=gr(),N=d?k.CheckIcon:k.CopyIcon;return x.jsxs("div",{className:l("relative"),ref:m,children:[x.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:E,onClick:()=>c(!u),title:v.copyTable,type:"button",children:e??x.jsx(N,{height:14,width:14})}),u?x.jsxs("div",{className:l("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("md"),title:v.copyTableAsMarkdown,type:"button",children:v.tableFormatMarkdown}),x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("csv"),title:v.copyTableAsCsv,type:"button",children:v.tableFormatCsv}),x.jsx("button",{className:l("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>A("tsv"),title:v.copyTableAsTsv,type:"button",children:v.tableFormatTsv})]}):null]})},nA=({children:e,className:t,onDownload:n,onError:i})=>{let s=qe(),[l,u]=C.useState(!1),c=C.useRef(null),{isAnimating:d,controls:h}=C.useContext(an),m=Ir(),p=gr(),E=ZC(h),y=v=>{var S;try{let A=(S=c.current)==null?void 0:S.closest('[data-streamdown="table-wrapper"]'),k=A?.querySelector("table");if(!k){i?.(new Error("Table not found"));return}let N=WC(k),w=v==="csv"?JC(N,E):eA(N),D=v==="csv"?"csv":"md",z=`${Ug(h,"table","table")}.${D}`;ll(z,w,v==="csv"?"text/csv":"text/markdown"),u(!1),n?.(v)}catch(A){i?.(A)}};return C.useEffect(()=>{let v=S=>{let A=S.composedPath();c.current&&!A.includes(c.current)&&u(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[]),x.jsxs("div",{className:s("relative"),ref:c,children:[x.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>u(!l),title:m.downloadTable,type:"button",children:e??x.jsx(p.DownloadIcon,{size:14})}),l?x.jsxs("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[x.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("csv"),title:m.downloadTableAsCsv,type:"button",children:m.tableFormatCsv}),x.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>y("markdown"),title:m.downloadTableAsMarkdown,type:"button",children:m.tableFormatMarkdown})]}):null]})},NF=({children:e,className:t,showCopy:n=!0,showDownload:i=!0})=>{let{Maximize2Icon:s,XIcon:l}=gr(),u=qe(),[c,d]=C.useState(!1),{isAnimating:h}=C.useContext(an),m=Ir(),p=()=>{d(!0)},E=()=>{d(!1)};return C.useEffect(()=>{if(c){zg();let y=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y),Fg()}}},[c]),x.jsxs(x.Fragment,{children:[x.jsx("button",{className:u("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:h,onClick:p,title:m.viewFullscreen,type:"button",children:x.jsx(s,{size:14})}),c?ra.createPortal(x.jsx("div",{"aria-label":m.viewFullscreen,"aria-modal":"true",className:u("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:E,onKeyDown:y=>{y.key==="Escape"&&E()},role:"dialog",children:x.jsxs("div",{className:u("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:y=>y.stopPropagation(),onKeyDown:y=>y.stopPropagation(),role:"presentation",children:[x.jsxs("div",{className:u("flex items-center justify-end gap-1 p-4"),children:[n?x.jsx(tA,{}):null,i?x.jsx(nA,{}):null,x.jsx("button",{className:u("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:E,title:m.exitFullscreen,type:"button",children:x.jsx(l,{size:20})})]}),x.jsx("div",{className:u("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:x.jsx("table",{className:u("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},RF=({children:e,className:t,maxHeight:n,showControls:i,showCopy:s=!0,showDownload:l=!0,showFullscreen:u=!0,...c})=>{let d=qe(),{isAnimating:h}=C.useContext(an),m=VC(n),p=YC(h,!!m,e),E=i&&s,y=i&&l,v=i&&u,S=E||y||v;return x.jsxs("div",{className:d("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[S?x.jsxs("div",{className:d("flex items-center justify-end gap-1"),children:[E?x.jsx(tA,{}):null,y?x.jsx(nA,{}):null,v?x.jsx(NF,{showCopy:E,showDownload:y,children:e}):null]}):null,x.jsx("div",{className:d("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:p,style:m?{maxHeight:m}:void 0,children:x.jsx("table",{className:d("w-full divide-y divide-border",t),"data-streamdown":"table",...c,children:e})})]})},OF=/startLine=(\d+)/,LF=/\bnoLineNumbers\b/,DF=C.lazy(()=>s_(()=>Promise.resolve().then(()=>Vq),void 0).then(e=>({default:e.Mermaid}))),IF=/language-([^\s]+)/,MF="node";function Ct(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let i=e,s=t;for(let l of n)if(l!==MF&&!Object.is(i[l],s[l]))return!1;return!0}function PF(e,t){var n,i;return((n=e?.properties)==null?void 0:n.metastring)===((i=t?.properties)==null?void 0:i.metastring)}var Ff=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,kp=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},F2=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},rf=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},BF=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Yg=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...i,children:e})},(e,t)=>Ct(e,t));Yg.displayName="MarkdownOl";var rA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("li",{className:s("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e})},(e,t)=>Ct(e,t));rA.displayName="MarkdownLi";var iA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...i,children:e})},(e,t)=>Ct(e,t));iA.displayName="MarkdownUl";var aA=C.memo(({className:e,node:t,...n})=>{let i=qe();return x.jsx("hr",{className:i("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>Ct(e,t));aA.displayName="MarkdownHr";var sA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("span",{className:s("font-semibold",t),"data-streamdown":"strong",...i,children:e})},(e,t)=>Ct(e,t));sA.displayName="MarkdownStrong";var jF=({children:e,className:t,href:n,node:i,...s})=>{let l=qe(),{linkSafety:u}=C.useContext(an),[c,d]=C.useState(!1),h=n==="streamdown:incomplete-link",m=C.useCallback(async v=>{if(!(!(u!=null&&u.enabled&&n)||h)){if(v.preventDefault(),u.onLinkCheck&&await u.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}d(!0)}},[u,n,h]),p=C.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),E=C.useCallback(()=>{d(!1)},[]),y={url:n??"",isOpen:c,onClose:E,onConfirm:p};return u!=null&&u.enabled&&n?x.jsxs(x.Fragment,{children:[x.jsx("button",{className:l("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",onClick:m,type:"button",children:e}),u.renderModal?u.renderModal(y):x.jsx(SF,{...y})]}):x.jsx("a",{className:l("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":h,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...s,children:e})},lA=C.memo(jF,(e,t)=>Ct(e,t));lA.displayName="MarkdownA";var oA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e})},(e,t)=>Ct(e,t));oA.displayName="MarkdownH1";var uA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e})},(e,t)=>Ct(e,t));uA.displayName="MarkdownH2";var cA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h3",{className:s("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e})},(e,t)=>Ct(e,t));cA.displayName="MarkdownH3";var fA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h4",{className:s("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e})},(e,t)=>Ct(e,t));fA.displayName="MarkdownH4";var dA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h5",{className:s("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e})},(e,t)=>Ct(e,t));dA.displayName="MarkdownH5";var hA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("h6",{className:s("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e})},(e,t)=>Ct(e,t));hA.displayName="MarkdownH6";var mA=C.memo(({children:e,className:t,node:n,...i})=>{let{controls:s,tableMaxHeight:l}=C.useContext(an),u=Ff(s,"table"),c=kp(s,"copy"),d=kp(s,"download"),h=kp(s,"fullscreen");return x.jsx(RF,{className:t,maxHeight:l,showControls:u,showCopy:c,showDownload:d,showFullscreen:h,...i,children:e})},(e,t)=>Ct(e,t));mA.displayName="MarkdownTable";var pA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("thead",{className:s("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e})},(e,t)=>Ct(e,t));pA.displayName="MarkdownThead";var gA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("tbody",{className:s("divide-y divide-border",t),"data-streamdown":"table-body",...i,children:e})},(e,t)=>Ct(e,t));gA.displayName="MarkdownTbody";var bA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("tr",{className:s("border-border",t),"data-streamdown":"table-row",...i,children:e})},(e,t)=>Ct(e,t));bA.displayName="MarkdownTr";var yA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("th",{className:s("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...i,children:e})},(e,t)=>Ct(e,t));yA.displayName="MarkdownTh";var EA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("td",{className:s("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e})},(e,t)=>Ct(e,t));EA.displayName="MarkdownTd";var xA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("blockquote",{className:s("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...i,children:e})},(e,t)=>Ct(e,t));xA.displayName="MarkdownBlockquote";var TA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("sup",{className:s("text-sm",t),"data-streamdown":"superscript",...i,children:e})},(e,t)=>Ct(e,t));TA.displayName="MarkdownSup";var vA=C.memo(({children:e,className:t,node:n,...i})=>{let s=qe();return x.jsx("sub",{className:s("text-sm",t),"data-streamdown":"subscript",...i,children:e})},(e,t)=>Ct(e,t));vA.displayName="MarkdownSub";var SA=C.memo(({children:e,className:t,node:n,...i})=>{if("data-footnotes"in i){let s=u=>{var c,d;if(!C.isValidElement(u))return!1;let h=Array.isArray(u.props.children)?u.props.children:[u.props.children],m=!1,p=!1;for(let E of h)if(E){if(typeof E=="string")E.trim()!==""&&(m=!0);else if(C.isValidElement(E))if(((c=E.props)==null?void 0:c["data-footnote-backref"])!==void 0)p=!0;else{let y=Array.isArray(E.props.children)?E.props.children:[E.props.children];for(let v of y){if(typeof v=="string"&&v.trim()!==""){m=!0;break}if(C.isValidElement(v)&&((d=v.props)==null?void 0:d["data-footnote-backref"])===void 0){m=!0;break}}}}return p&&!m},l=Array.isArray(e)?e.map(u=>{if(!C.isValidElement(u))return u;if(u.type===Yg){let c=(Array.isArray(u.props.children)?u.props.children:[u.props.children]).filter(d=>!s(d));return c.length===0?null:{...u,props:{...u.props,children:c}}}return u}):e;return(Array.isArray(l)?l.some(u=>u!==null):l!==null)?x.jsx("section",{className:t,...i,children:l}):null}return x.jsx("section",{className:t,...i,children:e})},(e,t)=>Ct(e,t));SA.displayName="MarkdownSection";var HF=({node:e,className:t,children:n,...i})=>{var s,l;let u=qe(),c=!("data-block"in i),{mermaid:d,controls:h,lineNumbers:m}=C.useContext(an),p=Vg(),E=Qz(),y=t?.match(IF),v=(s=y?.at(1))!=null?s:"",S=_F(v);if(c)return x.jsx("code",{className:u("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:n});let A=(l=e?.properties)==null?void 0:l.metastring,k=A?.match(OF),N=k?Number.parseInt(k[1],10):void 0,w=N!==void 0&&N>=1?N:void 0,D=!(A&&LF.test(A))&&m!==!1,z="";if(C.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?z=n.props.children:typeof n=="string"&&(z=n),S){let Y=S.component;return x.jsx(C.Suspense,{fallback:x.jsx(z2,{}),children:x.jsx(Y,{code:z,isIncomplete:E,language:v,meta:A})})}if(v==="mermaid"&&p){let Y=Ff(h,"mermaid"),W=rf(h,"download"),se=rf(h,"copy"),le=rf(h,"fullscreen"),ne=rf(h,"panZoom"),V=Y&&(W||se||le);return x.jsx(C.Suspense,{fallback:x.jsx(z2,{}),children:x.jsxs("div",{className:u("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[x.jsx("div",{className:u("flex h-8 items-center text-muted-foreground text-xs"),children:x.jsx("span",{className:u("ml-1 font-mono lowercase"),children:"mermaid"})}),V?x.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:x.jsxs("div",{className:u("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[W?x.jsx(QC,{chart:z,config:d?.config}):null,se?x.jsx(_0,{code:z}):null,le?x.jsx(kF,{chart:z,config:d?.config}):null]})}):null,x.jsx("div",{className:u("rounded-md border border-border bg-background"),children:x.jsx(DF,{chart:z,config:d?.config,showControls:ne})})]})})}let L=Ff(h,"code"),P=F2(h,"download"),H=F2(h,"copy"),{"data-block":G,...j}=i;return x.jsx(oF,{className:t,code:z,isIncomplete:E,language:v,lineNumbers:D,startLine:w,...j,children:L?x.jsxs(x.Fragment,{children:[P?x.jsx(xF,{code:z,language:v}):null,H?x.jsx(_0,{}):null]}):null})},_A=C.memo(HF,(e,t)=>Ct(e,t)&&PF(e.node,t.node));_A.displayName="MarkdownCode";var UF=({node:e,className:t,...n})=>{let{controls:i}=C.useContext(an),s=Ff(i,"image"),l=s&&BF(i,"download");return x.jsx(vF,{className:t,node:e,showControls:s,showDownloadControl:l,...n})},CA=C.memo(UF,(e,t)=>Ct(e,t));CA.displayName="MarkdownImg";var AA=C.memo(({children:e,node:t,...n})=>{let i=(Array.isArray(e)?e:[e]).filter(s=>s!=null&&s!=="");if(i.length===1&&C.isValidElement(i[0])){let s=i[0].props.node,l=s?.tagName;if(l==="img")return x.jsx(x.Fragment,{children:e});if(l==="code"&&"data-block"in i[0].props)return x.jsx(x.Fragment,{children:e})}return x.jsx("p",{...n,children:e})},(e,t)=>Ct(e,t));AA.displayName="MarkdownParagraph";var zF={ol:Yg,li:rA,ul:iA,hr:aA,strong:sA,a:lA,h1:oA,h2:uA,h3:cA,h4:fA,h5:dA,h6:hA,table:mA,thead:pA,tbody:gA,tr:bA,th:yA,td:EA,blockquote:xA,code:_A,img:CA,pre:({children:e})=>C.isValidElement(e)?C.cloneElement(e,{"data-block":"true"}):e,sup:TA,sub:vA,p:AA,section:SA},FF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,qF=new RegExp("\\p{L}","u");function kA(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,i=0,s=0;for(let l of t){if(FF.test(l)){n!=null||(n="rtl"),s+=1;continue}qF.test(l)&&(n!=null||(n="ltr"),i+=1)}return s>i?"rtl":i>s?"ltr":n??"ltr"}var VF=/^[ \t]{0,3}(`{3,}|~{3,})/,YF=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,q2=e=>{let t=e.split(`
|
|
169
|
-
`),n=null,i=0;for(let s of t){let l=VF.exec(s);if(n===null){if(l){let u=l[1];n=u[0],i=u.length}}else if(l){let u=l[1],c=u[0],d=u.length;c===n&&d>=i&&(n=null,i=0)}}return n!==null},$F=e=>{let t=e.split(`
|
|
170
|
-
`);for(let n of t){let i=n.trim();if(i.length>0&&i.includes("|")&&YF.test(i))return!0}return!1},GF=()=>e=>{dr(e,"html",(t,n,i)=>{!i||typeof n!="number"||(i.children[n]={type:"text",value:t.value})})},V2=[],Y2={allowDangerousHtml:!0},af=new WeakMap,KF=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,i=e.remarkPlugins,s=e.remarkRehypeOptions;if(!(n||i||s)){let m="default";return this.keyCache.set(e,m),m}let l=m=>{if(!m||m.length===0)return"";let p="";for(let E=0;E<m.length;E+=1){let y=m[E];if(E>0&&(p+=","),Array.isArray(y)){let[v,S]=y;if(typeof v=="function"){let A=af.get(v);A||(A=v.name,af.set(v,A)),p+=A}else p+=String(v);p+=":",p+=JSON.stringify(S)}else if(typeof y=="function"){let v=af.get(y);v||(v=y.name,af.set(y,v)),p+=v}else p+=String(y)}return p},u=l(n),c=l(i),d=s?JSON.stringify(s):"",h=`${c}::${u}::${d}`;return this.keyCache.set(e,h),h}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let i=this.cache.keys().next().value;i&&this.cache.delete(i)}this.cache.set(n,t)}clear(){this.cache.clear()}},$2=new KF,wA=e=>{let t=XF(e),n=e.children||"",i=t.runSync(t.parse(n),n);return nq(i,e)},XF=e=>{let t=$2.get(e);if(t)return t;let n=WF(e);return $2.set(e,n),n},QF=e=>e.some(t=>Array.isArray(t)?t[0]===u0:t===u0),WF=e=>{let t=e.rehypePlugins||V2,n=e.remarkPlugins||V2,i=QF(t)?n:[...n,GF],s=e.remarkRehypeOptions?{...Y2,...e.remarkRehypeOptions}:Y2;return zU().use(UH).use(i).use(vU,s).use(t)},ZF=e=>e,JF=(e,t,n,i)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:i}},eq=(e,t)=>{var n;for(let i in bp)if(Object.hasOwn(bp,i)&&Object.hasOwn(e.properties,i)){let s=e.properties[i],l=bp[i];(l===null||l.includes(e.tagName))&&(e.properties[i]=(n=t(String(s||""),i,e))!=null?n:void 0)}},tq=(e,t,n,i,s,l)=>{let u=!1;return i?u=!i.includes(e.tagName):s&&(u=s.includes(e.tagName)),!u&&l&&typeof t=="number"&&(u=!l(e,t,n)),u},nq=(e,t)=>{let{allowElement:n,allowedElements:i,disallowedElements:s,skipHtml:l,unwrapDisallowed:u,urlTransform:c}=t;if(n||i||s||l||c){let d=c||ZF;dr(e,(h,m,p)=>{if(h.type==="raw"&&p&&typeof m=="number")return JF(p,m,l,h.value),m;if(h.type==="element"&&(eq(h,d),tq(h,m,p,i,s,n)&&p&&typeof m=="number"))return u&&h.children?p.children.splice(m,1,...h.children):p.children.splice(m,1),m})}return Kj(e,{Fragment:x.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0})},rq=/\[\^[\w-]{1,200}\](?!:)/,iq=/\[\^[\w-]{1,200}\]:/,aq=/<([A-Za-z][\w:-]*)[\s>/]/,sq=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),G2=new Map,K2=new Map,lq=e=>{let t=e.toLowerCase(),n=G2.get(t);if(n)return n;let i=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return G2.set(t,i),i},oq=e=>{let t=e.toLowerCase(),n=K2.get(t);if(n)return n;let i=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return K2.set(t,i),i},X2=(e,t)=>{if(sq.has(t.toLowerCase()))return 0;let n=e.match(lq(t));if(!n)return 0;let i=0;for(let s of n)s.trimEnd().endsWith("/>")||(i+=1);return i},Q2=(e,t)=>{let n=e.match(oq(t));return n?n.length:0},uq=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},cq=e=>{let t=rq.test(e),n=iq.test(e);if(t||n)return[e];let i=rr.lex(e,{gfm:!0}),s=[],l=[],u=!1;for(let c of i){let d=c.raw,h=s.length;if(l.length>0){s[h-1]+=d;let m=l.at(-1),p=X2(d,m),E=Q2(d,m);for(let y=0;y<p;y+=1)l.push(m);for(let y=0;y<E;y+=1)l.length>0&&l.at(-1)===m&&l.pop();continue}if(c.type==="html"&&c.block){let m=d.match(aq);if(m){let p=m[1],E=X2(d,p),y=Q2(d,p);E>y&&l.push(p)}}if(h>0&&!u){let m=s[h-1];if(uq(m)%2===1){s[h-1]=m+d;continue}}s.push(d),c.type!=="space"&&(u=c.type==="code")}return s},fq=/^\n*/,dq=/\n*$/,k0=/\n\n/g,hq=(e,t,n)=>{if(!t.includes(`
|
|
171
|
-
`))return e+t+n;let i=t.replace(k0,`
|
|
172
|
-
<!---->
|
|
173
|
-
`).replace(fq,`
|
|
174
|
-
|
|
175
|
-
`).replace(dq,`
|
|
176
|
-
|
|
177
|
-
`);return`${e}${i}${n}
|
|
178
|
-
|
|
179
|
-
`},mq=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),i="",s=0,l=n.exec(e);for(;l;){let u=l[0],c=l[1],d=l.index+u.length,h=e.slice(d);if(new RegExp(`</${c}\\s*>`,"i").test(h)){l=n.exec(e);continue}if(i+=e.slice(s,l.index),h.length===0){i+=u,s=d,l=n.exec(e);continue}if(h.startsWith(`
|
|
180
|
-
|
|
181
|
-
`)){let E=h.slice(2).replace(k0,`
|
|
182
|
-
<!---->
|
|
183
|
-
`);i+=`${u}
|
|
184
|
-
|
|
185
|
-
${E}`,s=e.length;break}if(!h.startsWith(`
|
|
186
|
-
`)){i+=u,s=d,l=n.exec(e);continue}let m=h.slice(1);if(m.trim().length===0){i+=u,s=d,l=n.exec(e);continue}let p=m.replace(k0,`
|
|
187
|
-
<!---->
|
|
188
|
-
`);i+=`${u}
|
|
189
|
-
|
|
190
|
-
${p}`,s=e.length;break}return s===0?e:i+e.slice(s)},pq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>hq(u,c,d)),n=mq(n,i)}return n},gq=/([\\`*_~[\]|])/g,bq=e=>e.replace(gq,"\\$1"),yq=(e,t)=>{if(!t.length)return e;let n=e;for(let i of t){let s=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");n=n.replace(s,(l,u,c,d)=>{let h=bq(c).replace(/\n\n/g," ");return u+h+d})}return n},Eq=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),NA=new Set(["code","kbd","pre","samp","var"]);function RA(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!NA.has(t.tagName)?RA(t):"").join("")}function xq(){return e=>{dr(e,"element",t=>{if(NA.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}Eq.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=kA(RA(t))))})}}var OA=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(OA).join(""):"",Tq=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(i=>i.toLowerCase()));dr(t,"element",i=>{if(n.has(i.tagName.toLowerCase())){let s=OA(i);i.children=s?[{type:"text",value:s}]:[]}})},vq=()=>e=>{dr(e,"code",t=>{var n,i;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(i=t.data.hProperties)!=null?i:{},metastring:t.meta})})},Sq=/^[ \t]*<[\w!/?-]/,_q=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Cq=e=>typeof e!="string"||e.length===0||!Sq.test(e)?e:e.replace(_q,"$1"),W2,Z2,J2,ev,Ef={...Ma,clobberPrefix:"",protocols:{...Ma.protocols,href:[...(Z2=(W2=Ma.protocols)==null?void 0:W2.href)!=null?Z2:[],"tel","streamdown"]},attributes:{...Ma.attributes,code:[...(ev=(J2=Ma.attributes)==null?void 0:J2.code)!=null?ev:[],"metastring"]}},w0={raw:u0,sanitize:[u3,Ef],harden:[aL,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Aq={gfm:[C7,{}],codeMeta:vq},tv=Object.values(w0),kq=Object.values(Aq),wq={block:" ▋",circle:" ●"},LA=["github-light","github-dark"],DA={enabled:!0},Nq={codeBlockMaxHeight:400,shikiTheme:LA,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:DA,tableMaxHeight:300},an=C.createContext(Nq),IA=C.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:i,isIncomplete:s,dir:l,animatePlugin:u,...c})=>{C.useLayoutEffect(()=>{u?.commit()});let d=typeof e=="string"&&n?Cq(e):e,h=x.jsx(wA,{...c,children:d});return x.jsx(qC.Provider,{value:s,children:l?x.jsx("div",{dir:l,style:{display:"contents"},children:h}):h})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),i=Object.keys(t.components||{});if(n.length!==i.length||n.some(s=>{var l,u;return((l=e.components)==null?void 0:l[s])!==((u=t.components)==null?void 0:u[s])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});IA.displayName="Block";var Rq=C.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:s=!1,components:l,rehypePlugins:u=tv,remarkPlugins:c=kq,className:d,shikiTheme:h,mermaid:m,codeBlockMaxHeight:p=400,controls:E=!0,isAnimating:y=!1,tableMaxHeight:v=300,animated:S,BlockComponent:A=IA,parseMarkdownIntoBlocksFn:k=cq,caret:N,plugins:w,remend:D,linkSafety:z=DA,lineNumbers:L=!0,allowedTags:P,literalTagContent:H,translations:G,icons:j,prefix:Y,onAnimationStart:W,onAnimationEnd:se,...le})=>{let ne=C.useId(),V=C.useMemo(()=>Zz(Y),[Y]),X=C.useRef(null),re=C.useRef(W),Ee=C.useRef(se);re.current=W,Ee.current=se,C.useEffect(()=>{var _e,Ie,vt;if(t==="static")return;let rt=X.current;if(X.current=y,rt===null){y&&((_e=re.current)==null||_e.call(re));return}y&&!rt?(Ie=re.current)==null||Ie.call(re):!y&&rt&&((vt=Ee.current)==null||vt.call(Ee))},[y,t]);let R=C.useMemo(()=>P?Object.keys(P):[],[P]),U=C.useMemo(()=>{if(typeof e!="string")return"";let _e=t==="streaming"&&i?FB(e,D):e;return H&&H.length>0&&(_e=yq(_e,H)),R.length>0&&(_e=pq(_e,R)),_e},[e,t,i,D,R,H]),K=C.useMemo(()=>k(U),[U,k]),I=C.useMemo(()=>n==="auto"?K.map(kA):void 0,[K,n]),ge=C.useMemo(()=>K.map((_e,Ie)=>`${ne}-${Ie}`),[K.length,ne]),ye=C.useMemo(()=>S===!0?"true":S?JSON.stringify(S):"",[S]),he=C.useRef(null),we=C.useRef([]),Te=C.useRef([]),ve=C.useRef(null),Me=C.useRef("");if(ye){if(Me.current!==ye){Me.current=ye;let _e=ye!=="true"?S.maxBacklogMs:void 0;he.current=B2({maxBacklogMs:_e}),we.current=[],Te.current=[]}else he.current||(he.current=B2());y&&he.current&&he.current.beginPass(he.current.now())}else he.current=null,we.current=[],Te.current=[],Me.current="";C.useLayoutEffect(()=>{var _e;y&&((_e=he.current)==null||_e.commitPass())});let Le=C.useMemo(()=>{var _e,Ie;return{codeBlockMaxHeight:p,shikiTheme:(Ie=h??((_e=w?.code)==null?void 0:_e.getThemes()))!=null?Ie:LA,controls:E,isAnimating:y,lineNumbers:L,mode:t,mermaid:m,linkSafety:z,tableMaxHeight:v}},[p,h,E,y,L,t,m,z,w?.code,v]),Be=C.useMemo(()=>G?JSON.stringify(G):"",[G]),Ve=C.useMemo(()=>({...XC,...G}),[Be]),tt=C.useMemo(()=>{let{inlineCode:_e,...Ie}=l??{},vt={...zF,...Ie};if(_e){let rt=vt.code;vt.code=it=>"data-block"in it?rt?C.createElement(rt,it):null:C.createElement(_e,it)}return vt},[l]),gt=C.useMemo(()=>{let _e=[];return w!=null&&w.cjk&&(_e=[..._e,...w.cjk.remarkPluginsBefore]),_e=[..._e,...c],w!=null&&w.cjk&&(_e=[..._e,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(_e=[..._e,w.math.remarkPlugin]),_e},[c,w?.math,w?.cjk]),Tt=C.useMemo(()=>{var _e;let Ie=u;if(P&&Object.keys(P).length>0&&u===tv){let vt={...Ef,tagNames:[...(_e=Ef.tagNames)!=null?_e:[],...Object.keys(P)],attributes:{...Ef.attributes,...P}};Ie=[w0.raw,[u3,vt],w0.harden]}return H&&H.length>0&&(Ie=[...Ie,[Tq,H]]),w!=null&&w.math&&(Ie=[...Ie,w.math.rehypePlugin]),n==="auto"&&t==="static"&&(Ie=[...Ie,xq]),Ie},[u,w?.math,P,H,n,t]),Yt=C.useMemo(()=>{if(!y||K.length===0)return!1;let _e=K.at(-1);return q2(_e)||$F(_e)},[y,K]),pe=C.useMemo(()=>N&&y&&!Yt?{"--streamdown-caret":`"${wq[N]}"`}:void 0,[N,y,Yt]),Ye=_e=>{let Ie=null;if(he.current&&y){if(!we.current[_e]){let rt=ye&&ye!=="true"?S:{},{maxBacklogMs:it,...Ln}=rt;we.current[_e]=FC({...Ln,timeline:he.current})}Ie=we.current[_e]}ve.current!==Tt&&(Te.current=[],ve.current=Tt),Ie&&!Te.current[_e]&&(Te.current[_e]=[...Tt,Ie.rehypePlugin]);let vt=Ie&&Te.current[_e]?Te.current[_e]:Tt;return{blockAnimatePlugin:Ie,blockRehypePlugins:vt}};return t==="static"?x.jsx(S0.Provider,{value:Ve,children:x.jsx(C0.Provider,{value:w??null,children:x.jsx(an.Provider,{value:Le,children:x.jsx(H2,{icons:j,children:x.jsx(v0.Provider,{value:V,children:x.jsx("div",{className:V("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",d),dir:n==="auto"?void 0:n,children:x.jsx(wA,{components:tt,rehypePlugins:Tt,remarkPlugins:gt,...le,children:U})})})})})})}):x.jsx(S0.Provider,{value:Ve,children:x.jsx(C0.Provider,{value:w??null,children:x.jsx(an.Provider,{value:Le,children:x.jsx(H2,{icons:j,children:x.jsx(v0.Provider,{value:V,children:x.jsxs("div",{className:V("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",N&&!Yt?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,d),style:pe,children:[K.length===0&&N&&y&&x.jsx("span",{}),K.map((_e,Ie)=>{var vt;let rt=Ie===K.length-1,it=y&&rt&&q2(_e),{blockAnimatePlugin:Ln,blockRehypePlugins:ue}=Ye(Ie);return x.jsx(A,{animatePlugin:Ln,components:tt,content:_e,dir:(vt=I?.[Ie])!=null?vt:n!=="auto"?n:void 0,index:Ie,isIncomplete:it,rehypePlugins:ue,remarkPlugins:gt,shouldNormalizeHtmlIndentation:s,shouldParseIncompleteMarkdown:i,...le},ge[Ie])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Rq.displayName="Streamdown";var Oq=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:s=.1,showControls:l=!0,initialZoom:u=1,fullscreen:c=!1})=>{let{RotateCcwIcon:d,ZoomInIcon:h,ZoomOutIcon:m}=gr(),p=qe(),E=Ir(),y=C.useRef(null),v=C.useRef(null),[S,A]=C.useState(u),[k,N]=C.useState({x:0,y:0}),[w,D]=C.useState(!1),[z,L]=C.useState({x:0,y:0}),[P,H]=C.useState({x:0,y:0}),G=C.useCallback(X=>{A(re=>Math.max(n,Math.min(i,re+X)))},[n,i]),j=C.useCallback(()=>{G(s)},[G,s]),Y=C.useCallback(()=>{G(-s)},[G,s]),W=C.useCallback(()=>{A(u),N({x:0,y:0})},[u]),se=C.useCallback(X=>{X.preventDefault();let re=X.deltaY>0?-s:s;G(re)},[G,s]),le=C.useCallback(X=>{if(X.button!==0||X.isPrimary===!1)return;D(!0),L({x:X.clientX,y:X.clientY}),H(k);let re=X.currentTarget;re instanceof HTMLElement&&re.setPointerCapture(X.pointerId)},[k]),ne=C.useCallback(X=>{if(!w)return;X.preventDefault();let re=X.clientX-z.x,Ee=X.clientY-z.y;N({x:P.x+re,y:P.y+Ee})},[w,z,P]),V=C.useCallback(X=>{D(!1);let re=X.currentTarget;re instanceof HTMLElement&&re.releasePointerCapture(X.pointerId)},[]);return C.useEffect(()=>{let X=y.current;if(X)return X.addEventListener("wheel",se,{passive:!1}),()=>{X.removeEventListener("wheel",se)}},[se]),C.useEffect(()=>{let X=v.current;if(X&&w)return document.body.style.userSelect="none",X.addEventListener("pointermove",ne,{passive:!1}),X.addEventListener("pointerup",V),X.addEventListener("pointercancel",V),()=>{document.body.style.userSelect="",X.removeEventListener("pointermove",ne),X.removeEventListener("pointerup",V),X.removeEventListener("pointercancel",V)}},[w,ne,V]),x.jsxs("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:y,style:{cursor:w?"grabbing":"grab"},children:[l?x.jsxs("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",c?"bottom-4 left-4":"bottom-2 left-2"),children:[x.jsx("button",{"aria-label":E.zoomIn,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S>=i,onClick:j,title:E.zoomIn,type:"button",children:x.jsx(h,{"aria-hidden":"true",size:16})}),x.jsx("button",{"aria-label":E.zoomOut,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:S<=n,onClick:Y,title:E.zoomOut,type:"button",children:x.jsx(m,{"aria-hidden":"true",size:16})}),x.jsx("button",{"aria-label":E.resetView,className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:W,title:E.resetView,type:"button",children:x.jsx(d,{"aria-hidden":"true",size:16})})]}):null,x.jsx("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",c?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:le,ref:v,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${S})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},MA=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:s=!0})=>{let l=qe(),[u,c]=C.useState(null),[d,h]=C.useState(!1),[m,p]=C.useState(""),[E,y]=C.useState(""),[v,S]=C.useState(0),{mermaid:A}=C.useContext(an),k=Vg(),N=A?.errorComponent,{shouldRender:w,containerRef:D}=Mz({immediate:i});if(C.useEffect(()=>{if(w){if(!k){c("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{c(null),h(!0);let L=k.getMermaid(n),P=e.split("").reduce((j,Y)=>(j<<5)-j+Y.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(P)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:G}=await L.render(H,e);p(G),y(G)}catch(L){if(!(E||m)){let P=L instanceof Error?L.message:"Failed to render Mermaid chart";c(P)}}finally{h(!1)}})()}},[e,n,v,w,k]),!(w||m||E))return x.jsx("div",{className:l("my-4 min-h-[200px]",t),ref:D});if(d&&!m&&!E)return x.jsx("div",{className:l("my-4 flex justify-center p-4",t),ref:D,children:x.jsxs("div",{className:l("flex items-center space-x-2 text-muted-foreground"),children:[x.jsx("div",{className:l("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),x.jsx("span",{className:l("text-sm"),children:"Loading diagram..."})]})});if(u&&!m&&!E){let L=()=>S(P=>P+1);return N?x.jsx("div",{ref:D,children:x.jsx(N,{chart:e,error:u,retry:L})}):x.jsxs("div",{className:l("rounded-md bg-red-50 p-4",t),ref:D,children:[x.jsxs("p",{className:l("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",u]}),x.jsxs("details",{className:l("mt-2"),children:[x.jsx("summary",{className:l("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),x.jsx("pre",{className:l("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let z=m||E;return x.jsx("div",{className:l("size-full",t),"data-streamdown":"mermaid",ref:D,children:x.jsx(Oq,{className:l(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:s,zoomStep:.1,children:x.jsx("div",{"aria-label":"Mermaid chart",className:l("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:z},role:"img"})})})};const PA=["all","fact","preference","episode","procedure","message"],gu={all:"全部",fact:"事实",preference:"偏好",episode:"事件",procedure:"方法",message:"对话"},Lq={all:{title:"全部记忆",description:"一个安静、可检索的空间,保存 Agent 需要记住的事实、偏好和经验。"},timeline:{title:"时间线",description:"按发生和写入时间回看你的记忆。"},archive:{title:"归档",description:"被归档的记忆会集中显示在这里。"},preferences:{title:"偏好与习惯",description:"集中查看 Agent 需要遵循的个人偏好和习惯。"},projects:{title:"Scope 分类",description:"按 scope 分类查看记忆,项目目录名只是其中一种常用值。"},tags:{title:"标签",description:"标签视图将在记忆拥有标签后显示内容。"},settings:{title:"设置",description:"本地存储和界面设置。"},mcp:{title:"MCP 服务",description:"把 Memory One 连接到你的 Agent,查看端点配置和可用工具。"}},BA={all:"/",timeline:"/timeline",archive:"/archive",preferences:"/preferences",projects:"/scopes",tags:"/tags",settings:"/settings",mcp:"/mcp-service"},Dq=Object.fromEntries(Object.entries(BA).map(([e,t])=>[t,e]));function qi(){return null}const ti=z6({component:Pq}),Iq=ti.addChildren([Ui({getParentRoute:()=>ti,path:"/",component:qi}),Ui({getParentRoute:()=>ti,path:"/timeline",component:qi}),Ui({getParentRoute:()=>ti,path:"/archive",component:qi}),Ui({getParentRoute:()=>ti,path:"/preferences",component:qi}),Ui({getParentRoute:()=>ti,path:"/scopes",component:qi}),Ui({getParentRoute:()=>ti,path:"/tags",component:qi}),Ui({getParentRoute:()=>ti,path:"/settings",component:qi}),Ui({getParentRoute:()=>ti,path:"/mcp-service",component:qi})]),Mq=Q6({routeTree:Iq}),bu={zh:{brandSubtitle:"个人记忆库",workspace:"工作区",collections:"集合",connect:"连接",navAll:"全部记忆",navTimeline:"时间线",navArchive:"归档",navPreferences:"偏好与习惯",navScopes:"Scope 分类",navTags:"标签",navMcp:"MCP 服务",navSettings:"设置",localStorage:"本地存储",memories:"MEMORIES",scopes:"SCOPES",scopesNote:"分类数量",lastSync:"LAST SYNC",justNow:"刚刚",localDatabase:"本地数据库",localOnly:"完全本地",localOnlyDesc:"你的记忆只留在这台设备",newMemory:"新建记忆",search:"搜索记忆...",allScopes:"所有 Scope",reading:"读取中...",countSuffix:"条记忆",sortRecent:"按最近更新排序",sortTimeline:"按发生时间排序",sortGrouped:"按 Scope 分组",globalMemory:"全局记忆",emptyMatch:"这里还没有匹配的记忆",emptyHelp:"试试换一个关键词,或创建一条新的记忆。",loadFailed:"记忆读取失败",retry:"重试",noArchive:"暂无归档记忆",noTags:"暂无标签",settingsManaged:"设置已由本地配置管理",detailEyebrow:"记忆详情",close:"关闭",detailEmpty:"选择一条记忆",detailEmptyDesc:"查看完整内容、来源和元数据",confidence:"置信度",created:"创建时间",updated:"最后更新",source:"来源",agentWritten:"Agent 写入",scope:"Scope",signals:"信号",importance:"重要性",recallCount:"召回次数",times:"次",original:"查看原始记录",switchLanguage:"Switch to English",newMemoryEyebrow:"新建记忆",composerTitle:"保存一条记忆",content:"记忆内容",contentPlaceholder:"例如:用户偏好使用简洁的工具界面。",type:"类型",scopeOptional:"可选,例如:/path/to/project",sourcePlaceholder:"例如:Claude Code / 手动添加",writeLocal:"写入本地 SQLite",cancel:"取消",save:"保存记忆",languageCode:"EN",mcpKicker:"Agent 集成",mcpTitle:"连接你的 Agent",mcpDescription:"Memory One 通过 Streamable HTTP 提供记忆工具。创建一个按工具授权的 Key 后,把带 Authorization Header 的配置加入 MCP 客户端。",mcpOnline:"HTTP 在线",mcpConfig:"通用 MCP 配置",mcpEndpoint:"服务地址",mcpCopyConfig:"复制配置",mcpCopyEndpoint:"复制服务地址",mcpClientNote:"适用于支持 HTTP MCP 的客户端,例如 Codex、Claude Code、Cursor 和自建 Agent。需要分类时,传入对应的 scope,例如项目目录名。",transport:"传输方式",auth:"认证",noAuth:"必须使用 Bearer Key",category:"记忆分类",categoryValue:"全局 / 可选 scope",toolsLabel:"可用工具",toolsTitle:"Agent 可以使用的工具",toolsCount:"个工具",http:"HTTP",localMemory:"本地记忆 / 01",clientConfig:"客户端配置",serverEndpoint:"服务端点"}},tu=(e,t)=>e?new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(e)):t==="zh"?"未标记时间":"No date";function Pq(){const e=eR({select:R=>R.location.pathname}),t=H0(),n=Dq[e]??"all",[i,s]=C.useState([]),[l,u]=C.useState(null),[c,d]=C.useState(""),[h,m]=C.useState("all"),[p,E]=C.useState("all"),y="zh",[v,S]=C.useState(()=>localStorage.getItem("memory-one-theme")==="dark"),[A,k]=C.useState(!1),[N,w]=C.useState(!1),[D,z]=C.useState(!0),[L,P]=C.useState(!1),[H,G]=C.useState(null),j=async(R=c)=>{z(!0),P(!1);try{const U=R.trim()?`/api/search?query=${encodeURIComponent(R)}`:"/api/memories?limit=100",K=await fetch(U);if(!K.ok)throw new Error("memory_load_failed");s(await K.json())}catch{P(!0)}finally{z(!1)}},Y=bu[y],W=gu;C.useEffect(()=>{u(null),w(!1),d(""),m(n==="preferences"?"preference":"all"),E("all"),j("")},[n]),C.useEffect(()=>{document.documentElement.dataset.theme=v?"dark":"light",localStorage.setItem("memory-one-theme",v?"dark":"light")},[v]),C.useEffect(()=>{document.documentElement.lang="zh-CN"},[]),C.useEffect(()=>{let R=!0,U;return fetch("/api/version").then(K=>K.ok?K.json():null).then(K=>{!R||!K?.updateAvailable||!K.current||!K.latest||(G({current:K.current,latest:K.latest}),U=window.setTimeout(()=>G(null),3e3))}).catch(()=>{}),()=>{R=!1,U&&window.clearTimeout(U)}},[]),C.useEffect(()=>{const R=U=>{(U.metaKey||U.ctrlKey)&&U.key.toLowerCase()==="k"&&(U.preventDefault(),document.querySelector("#memory-search")?.focus())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[]);const se=C.useMemo(()=>["all",...new Set(i.map(R=>R.project).filter(Boolean))],[i]),le=i.filter(R=>n==="archive"||n==="tags"||n==="settings"||n==="mcp"||n==="preferences"&&R.kind!=="preference"||n==="projects"&&!R.project?!1:(h==="all"||R.kind===h)&&(p==="all"||R.project===p)),ne=C.useMemo(()=>{const R=new Map;for(const U of le){const K=U.project??"__global__";R.set(K,[...R.get(K)??[],U])}return[...R.entries()]},[le]),V={total:i.length,projects:new Set(i.map(R=>R.project).filter(Boolean)).size,preferences:i.filter(R=>R.kind==="preference").length},X=Lq[n],re=R=>{t({to:BA[R]})},Ee=async R=>{const K=await(await fetch("/api/memories",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...R,project:R.project||null,source:R.source||null})})).json();s(I=>[K,...I]),u(K),k(!1)};return x.jsxs("div",{className:`app-shell ${n==="mcp"?"app-shell-wide":""}`,children:[H&&x.jsxs("div",{className:"version-notice",role:"status",children:[x.jsx(Ix,{size:14}),x.jsxs("span",{children:["发现新版本 ",H.latest,",当前版本 ",H.current]})]}),x.jsxs("aside",{className:`sidebar ${N?"sidebar-open":""}`,children:[x.jsxs("div",{className:"brand",children:[x.jsx("div",{className:"brand-mark",children:x.jsx(sR,{size:17})}),x.jsxs("div",{children:[x.jsx("strong",{children:"Memory One"}),x.jsx("span",{children:Y.brandSubtitle})]}),x.jsx("button",{className:"icon-button mobile-close",onClick:()=>w(!1),title:Y.close,children:x.jsx(Ko,{size:17})})]}),x.jsxs(wp,{title:Y.workspace,children:[x.jsx(Vi,{icon:x.jsx(aR,{size:17}),label:Y.navAll,count:V.total,active:n==="all",onClick:()=>re("all")}),x.jsx(Vi,{icon:x.jsx(uR,{size:17}),label:Y.navTimeline,active:n==="timeline",onClick:()=>re("timeline")}),x.jsx(Vi,{icon:x.jsx(iR,{size:17}),label:Y.navArchive,active:n==="archive",onClick:()=>re("archive")})]}),x.jsxs(wp,{title:Y.collections,children:[x.jsx(Vi,{icon:x.jsx(Ix,{size:17}),label:Y.navPreferences,count:V.preferences,active:n==="preferences",onClick:()=>re("preferences")}),x.jsx(Vi,{icon:x.jsx(qv,{size:17}),label:Y.navScopes,count:V.projects,active:n==="projects",onClick:()=>re("projects")}),x.jsx(Vi,{icon:x.jsx($v,{size:17}),label:Y.navTags,active:n==="tags",onClick:()=>re("tags")})]}),x.jsx(wp,{title:Y.connect,children:x.jsx(Vi,{icon:x.jsx(ff,{size:17}),label:Y.navMcp,active:n==="mcp",onClick:()=>re("mcp")})}),x.jsxs("div",{className:"sidebar-footer",children:[x.jsxs("div",{className:"storage-status",children:[x.jsx("span",{className:"status-dot"}),Y.localStorage,x.jsx("span",{className:"mono",children:"SQLite"})]}),x.jsx(Vi,{icon:x.jsx(gR,{size:17}),label:Y.navSettings,active:n==="settings",onClick:()=>re("settings")})]})]}),N&&x.jsx("button",{className:"sidebar-backdrop",onClick:()=>w(!1),"aria-label":Y.close}),x.jsxs("main",{className:"main-content",children:[x.jsxs("header",{className:"topbar",children:[x.jsx("button",{className:"icon-button menu-button",onClick:()=>w(!0),title:"打开菜单","aria-label":"打开菜单",children:x.jsx(dR,{size:19})}),x.jsxs("div",{className:"breadcrumbs",children:[x.jsx("span",{children:Y.workspace}),x.jsx(Bp,{size:14}),x.jsx("strong",{children:X.title})]}),x.jsxs("div",{className:"top-actions",children:[x.jsx("button",{className:"icon-button",onClick:()=>S(R=>!R),title:v?"切换浅色模式":"切换深色模式",children:v?x.jsx(Yv,{size:17}):x.jsx(Vv,{size:17})}),x.jsx("div",{className:"avatar",children:"C"})]})]}),x.jsx("div",{className:"content-wrap",children:n==="mcp"?x.jsx(Uq,{language:y}):n==="settings"?x.jsx(Fq,{dark:v,onToggleTheme:()=>S(R=>!R)}):x.jsxs(x.Fragment,{children:[x.jsxs("section",{className:"page-heading",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"heading-kicker",children:[x.jsx("span",{className:"live-dot"}),Y.localMemory]}),x.jsx("h1",{children:X.title}),x.jsx("p",{children:X.description})]}),x.jsxs("button",{className:"primary-button",onClick:()=>k(!0),children:[x.jsx(mR,{size:17}),Y.newMemory]})]}),n!=="timeline"&&x.jsxs("section",{className:"stat-grid",children:[x.jsx(Ua,{label:Y.memories,value:V.total.toString().padStart(2,"0"),note:"已保存"}),x.jsx(Ua,{label:Y.scopes,value:V.projects.toString().padStart(2,"0"),note:Y.scopesNote}),x.jsx(Ua,{label:Y.lastSync,value:Y.justNow,note:Y.localDatabase,date:!0}),x.jsxs("div",{className:"stat-card stat-callout",children:[x.jsx(U0,{size:19}),x.jsxs("div",{children:[x.jsx("strong",{children:Y.localOnly}),x.jsx("span",{children:Y.localOnlyDesc})]})]})]}),x.jsxs("section",{className:"toolbar",children:[x.jsxs("div",{className:"search-box",children:[x.jsx(pR,{size:17}),x.jsx("input",{id:"memory-search",value:c,onChange:R=>d(R.target.value),onKeyDown:R=>{R.key==="Enter"&&j()},placeholder:Y.search}),x.jsxs("kbd",{children:[x.jsx(cR,{size:11}),"K"]})]}),x.jsxs("div",{className:"toolbar-actions",children:[x.jsxs("div",{className:"select-wrap",children:[x.jsx(fR,{size:15}),x.jsx(e0,{value:h,onValueChange:m,options:PA.map(R=>({value:R,label:W[R]})),ariaLabel:Y.type})]}),x.jsx("div",{className:"select-wrap project-select",children:x.jsx(e0,{value:p,onValueChange:E,options:se.map(R=>({value:R,label:R==="all"?Y.allScopes:R})),ariaLabel:Y.scope})})]})]}),x.jsxs("div",{className:"list-header",children:[x.jsx("span",{children:D?Y.reading:`${le.length}${Y.countSuffix}`}),x.jsx("span",{className:"mono",children:n==="timeline"?Y.sortTimeline:n==="all"&&p==="all"?Y.sortGrouped:Y.sortRecent})]}),x.jsxs("section",{className:n==="timeline"?"timeline-list":"memory-list",children:[L&&!D&&x.jsxs("div",{className:"empty-state",children:[x.jsx(Lx,{size:28}),x.jsx("strong",{children:Y.loadFailed}),x.jsx("button",{className:"ghost-button",onClick:()=>{j()},children:Y.retry})]}),!L&&!D&&le.length===0&&x.jsxs("div",{className:"empty-state",children:[x.jsx(Lx,{size:28}),x.jsx("strong",{children:n==="archive"?Y.noArchive:n==="tags"?Y.noTags:n==="settings"?Y.settingsManaged:Y.emptyMatch}),x.jsx("span",{children:n==="archive"||n==="tags"||n==="settings"?X.description:Y.emptyHelp})]}),!L&&n==="timeline"&&x.jsx(Hq,{items:le,selectedId:l?.id,onSelect:u,language:y}),!L&&n!=="timeline"&&(n==="all"&&p==="all"?ne.map(([R,U])=>x.jsxs("div",{className:"memory-group",children:[x.jsxs("div",{className:"memory-group-header",children:[x.jsx("span",{children:R==="__global__"?Y.globalMemory:R}),x.jsx("span",{className:"mono",children:U.length.toString().padStart(2,"0")})]}),U.map(K=>x.jsx(nv,{item:K,selected:l?.id===K.id,onClick:()=>u(K),language:y},K.id))]},R)):le.map(R=>x.jsx(nv,{item:R,selected:l?.id===R.id,onClick:()=>u(R),language:y},R.id)))]})]})})]}),n!=="mcp"&&x.jsxs("aside",{className:`detail-panel ${l?"detail-open":""}`,children:[x.jsxs("div",{className:"detail-header",children:[x.jsx("span",{className:"eyebrow",children:Y.detailEyebrow}),l&&x.jsx("button",{className:"icon-button",onClick:()=>u(null),title:Y.close,children:x.jsx(Ko,{size:17})})]}),l?x.jsx(zq,{item:l,language:y}):x.jsxs("div",{className:"detail-empty",children:[x.jsx("div",{className:"detail-icon",children:x.jsx(Fv,{size:20})}),x.jsx("strong",{children:Y.detailEmpty}),x.jsx("span",{children:Y.detailEmptyDesc})]})]}),A&&x.jsx(qq,{onClose:()=>k(!1),onCreate:Ee,language:y}),x.jsx(Hv,{})]})}function wp({title:e,children:t}){return x.jsxs("div",{className:"sidebar-section",children:[x.jsx("span",{className:"eyebrow",children:e}),t]})}function Vi({icon:e,label:t,count:n,active:i,onClick:s}){return x.jsxs("button",{className:`nav-item ${i?"active":""}`,onClick:s,"aria-current":i?"page":void 0,children:[e,x.jsx("span",{children:t}),n!==void 0&&x.jsx("b",{children:n})]})}const La=[["memory_store","Store durable memory with optional scope.","保存一条持久记忆,可选 scope 分类。"],["memory_search","Search memories with SQLite FTS5 and an optional scope filter.","使用 SQLite FTS5 搜索记忆,可按 scope 筛选。"],["memory_get_context","Retrieve relevant experience before every task.","在每项任务开始前检索相关经验。"],["memory_get","Get one memory by ID.","按 ID 获取单条记忆。"],["memory_list","List memories with an optional scope filter.","列出记忆,可按 scope 筛选。"],["memory_update","Update a memory or its metadata.","更新记忆内容或元数据。"],["memory_delete","Soft-delete a memory.","软删除一条记忆。"],["memory_feedback","Record whether a memory was useful.","记录记忆是否有帮助的相关性信号。"]];function Bq(e,t){if(!e)return t==="zh"?"未标记日期":"Undated";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记日期":"Undated":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{year:"numeric",month:"long",day:"numeric",weekday:"short"}).format(n)}function jq(e,t){if(!e)return t==="zh"?"未标记时间":"No time";const n=new Date(e);return Number.isNaN(n.getTime())?t==="zh"?"未标记时间":"No time":new Intl.DateTimeFormat(t==="zh"?"zh-CN":"en-US",{hour:"2-digit",minute:"2-digit"}).format(n)}function Hq({items:e,selectedId:t,onSelect:n,language:i}){const s=C.useMemo(()=>{const l=[...e].sort((c,d)=>{const h=new Date(c.occurred_at??c.created_at).getTime();return new Date(d.occurred_at??d.created_at).getTime()-h}),u=new Map;for(const c of l){const d=c.occurred_at??c.created_at,h=d?new Date(d):null,m=h&&!Number.isNaN(h.getTime())?h.toISOString().slice(0,10):"undated";u.set(m,[...u.get(m)??[],c])}return[...u.entries()]},[e]);return x.jsx("div",{className:"timeline-stream",children:s.map(([l,u])=>x.jsxs("section",{className:"timeline-day",children:[x.jsxs("header",{className:"timeline-day-heading",children:[x.jsx("time",{children:Bq(l==="undated"?null:l,i)}),x.jsxs("span",{className:"mono",children:[u.length.toString().padStart(2,"0")," 条"]})]}),x.jsx("div",{className:"timeline-day-items",children:u.map(c=>{const d=c.occurred_at??c.created_at;return x.jsxs("button",{className:`timeline-event ${t===c.id?"selected":""}`,onClick:()=>n(c),children:[x.jsx("span",{className:"timeline-event-rail","aria-hidden":"true",children:x.jsx("span",{className:"timeline-dot"})}),x.jsxs("span",{className:"timeline-event-body",children:[x.jsxs("span",{className:"timeline-event-meta",children:[x.jsx("span",{className:`kind-badge kind-${c.kind}`,children:gu[c.kind]??c.kind}),x.jsx("time",{children:jq(d,i)})]}),x.jsx("strong",{children:c.content}),x.jsxs("span",{className:"timeline-event-context",children:[c.project??c.scope,x.jsx("span",{"aria-hidden":"true",children:"·"}),c.source??"Agent 写入"]})]})]},c.id)})})]},l))})}function Uq({language:e}){const t=bu[e],[n,i]=C.useState(null),[s,l]=C.useState(null),[u,c]=C.useState(null),[d,h]=C.useState(null),[m,p]=C.useState(!1),[E,y]=C.useState(""),[v,S]=C.useState([]),[A,k]=C.useState(""),[N,w]=C.useState(La.map(([pe])=>pe)),[D,z]=C.useState(null),[L,P]=C.useState(!1),[H,G]=C.useState(""),[j,Y]=C.useState(!1),[W,se]=C.useState(null),[le,ne]=C.useState(null),[V,X]=C.useState(""),[re,Ee]=C.useState("connection"),[R,U]=C.useState(!1),K=typeof window<"u"&&window.location.hostname?window.location.hostname:"127.0.0.1",I=typeof window<"u"?window.location.port:"",ye=`http://${K}:${I==="5173"||!I?"8765":I}/mcp/`,he=JSON.stringify({mcpServers:{"memory-one":{type:"http",url:ye,...W===!0?{headers:{Authorization:"Bearer <在 Key 管理中创建>"}}:{}}}},null,2),we=new Map(u?.tools.map(pe=>[pe.tool_name,pe.calls])??[]),Te=u?.total_calls?Math.round(u.successful_calls/u.total_calls*100):0;C.useEffect(()=>{fetch("/api/mcp/config").then(pe=>pe.json()).then(pe=>se(pe.use_bearer_key!==!1)),fetch("/api/mcp/stats").then(pe=>pe.json()).then(c),fetch("/api/integrations/codex").then(pe=>pe.json()).then(h),fetch("/api/mcp/keys").then(pe=>pe.json()).then(S)},[]);const ve=pe=>{se(pe),fetch("/api/mcp/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({use_bearer_key:pe})})},Me=async(pe,Ye)=>{try{if(!navigator.clipboard)throw new Error("clipboard_unavailable");await navigator.clipboard.writeText(pe),i(Ye),l("已复制到剪贴板"),window.setTimeout(()=>i(null),1500),window.setTimeout(()=>l(null),2200)}catch{l("复制失败,请手动复制"),window.setTimeout(()=>l(null),2600)}},Le=async()=>{p(!0),y("");try{const pe=await fetch("/api/integrations/codex/install",{method:"POST"});if(!pe.ok)throw new Error("install_failed");h(await pe.json()),y("全局指令已写入。重新启动 Codex 或开启新会话后生效。")}catch{y("写入失败,请检查 Codex 配置目录的访问权限。")}finally{p(!1)}},Be=async()=>{P(!0),G("");try{const pe=await fetch("/api/mcp/keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:A.trim()||"未命名 Key",allowed_tools:N})});if(!pe.ok)throw new Error("create_key_failed");const Ye=await pe.json();S(_e=>[Ye.key_record,..._e]),z(Ye.key),k("")}catch{G("Key 创建失败,请稍后重试。")}finally{P(!1)}},Ve=async pe=>{const Ye=v.find(Ie=>Ie.id===pe);!Ye||!window.confirm(`确定删除 Key“${Ye.name}”吗?删除后将立即失效,且无法恢复。`)||!(await fetch(`/api/mcp/keys/${pe}`,{method:"DELETE"})).ok||S(Ie=>Ie.filter(vt=>vt.id!==pe))},tt=async pe=>{const Ye=await fetch(`/api/mcp/keys/${pe}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:V})});if(!Ye.ok)return;const _e=await Ye.json();S(Ie=>Ie.map(vt=>vt.id===pe?_e:vt)),ne(null)},gt=D?JSON.stringify({mcpServers:{"memory-one":{type:"http",url:ye,headers:{Authorization:`Bearer ${D}`}}}},null,2):"",Tt=d?.status==="configured"?"已配置":d?.status==="update_available"?"可更新":"未配置",Yt=d?.status==="update_available"?"更新全局指令":"启用全局记忆";return x.jsxs("div",{className:`mcp-page ${W===null?"mcp-loading":""}`,children:[s?x.jsxs("div",{className:`copy-feedback ${s.startsWith("复制失败")?"error":""}`,role:"status",children:[s.startsWith("复制失败")?x.jsx(oR,{size:14}):x.jsx(Ia,{size:14}),s]}):null,x.jsx("div",{className:"mcp-navigation",children:x.jsxs("nav",{className:"mcp-tabs",role:"tablist","aria-label":"MCP 页面",children:[x.jsxs("button",{className:re==="connection"?"active":"",role:"tab","aria-selected":re==="connection",onClick:()=>Ee("connection"),children:[x.jsx(ff,{size:15}),"连接配置"]}),x.jsxs("button",{className:re==="usage"?"active":"",role:"tab","aria-selected":re==="usage",onClick:()=>Ee("usage"),children:[x.jsx(Ox,{size:15}),"调用统计"]})]})}),re==="connection"&&x.jsxs("div",{className:"mcp-grid",role:"tabpanel",children:[x.jsxs("section",{className:"mcp-panel mcp-config",children:[x.jsxs("div",{className:"mcp-panel-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:t.clientConfig}),x.jsx("h2",{children:t.mcpConfig})]}),x.jsxs("div",{className:"mcp-panel-actions",children:[x.jsxs("button",{className:"mcp-codex-button",onClick:()=>U(!0),title:"打开 Agent 增强",children:[x.jsx(Gm,{size:14}),"Agent 增强"]}),x.jsx("button",{className:"icon-button",onClick:()=>Me(he,"config"),title:t.mcpCopyConfig,children:n==="config"?x.jsx(Ia,{size:16}):x.jsx(Hc,{size:16})})]})]}),x.jsx("pre",{children:x.jsx("code",{children:he})}),x.jsxs("div",{className:"mcp-note",children:[x.jsx(ff,{size:15}),x.jsx("span",{children:t.mcpClientNote})]})]}),x.jsxs("section",{className:"mcp-panel mcp-endpoint",children:[x.jsxs("div",{className:"mcp-panel-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:t.serverEndpoint}),x.jsx("h2",{children:t.mcpEndpoint})]}),x.jsx("button",{className:"icon-button",onClick:()=>Me(ye,"endpoint"),title:t.mcpCopyEndpoint,children:n==="endpoint"?x.jsx(Ia,{size:16}):x.jsx(Hc,{size:16})})]}),x.jsx("div",{className:"endpoint-value",children:ye}),x.jsxs("div",{className:"endpoint-meta",children:[x.jsxs("span",{children:[x.jsx("i",{className:"status-dot"}),t.transport]}),x.jsx("strong",{children:"Streamable HTTP"})]}),x.jsxs("div",{className:"endpoint-meta",children:[x.jsxs("span",{children:[x.jsx("i",{className:"status-dot"}),t.auth]}),x.jsxs("label",{className:"switch-label",children:[x.jsx("span",{children:"Bearer Key"}),x.jsx("input",{type:"checkbox",checked:W===!0,disabled:W===null,onChange:pe=>ve(pe.target.checked)}),x.jsx("i",{})]})]}),x.jsxs("div",{className:"endpoint-tools",children:[x.jsx("span",{className:"key-tools-label",children:"支持的工具"}),x.jsx("div",{className:"tool-chip-list",children:La.map(([pe])=>x.jsx("span",{className:"tool-chip",children:pe},pe))})]})]}),W===!0&&x.jsxs("section",{className:"mcp-keys",role:"region","aria-label":"Key 管理",children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"访问控制"}),x.jsx("h2",{children:"MCP Key 管理"})]}),x.jsx(Uc,{size:18})]}),x.jsx("p",{className:"mcp-key-note",children:"为平台 Agent、Codex 或其他 MCP 客户端创建独立 Key,并按最小权限限制它可以调用的工具。"}),x.jsx("div",{className:"mcp-key-create",children:x.jsxs("button",{className:"primary-button",onClick:()=>Y(!0),children:[x.jsx(Uc,{size:15}),"创建 Key"]})}),D?x.jsxs("div",{className:"mcp-key-secret",children:[x.jsx("strong",{children:"Key 已创建,可随时在下方再次复制"}),x.jsx("code",{children:D}),x.jsxs("div",{children:[x.jsx("button",{className:"icon-button",onClick:()=>Me(gt,"key-config"),title:"复制带 Key 的 MCP 配置",children:n==="key-config"?x.jsx(Ia,{size:16}):x.jsx(Hc,{size:16})}),x.jsx("span",{children:n==="key-config"?"已复制配置":"复制带 Authorization Header 的配置"})]})]}):null,x.jsx("div",{className:"mcp-key-list",children:v.length?v.map(pe=>x.jsxs("div",{className:"mcp-key-row",children:[x.jsx(Uc,{size:15}),x.jsxs("div",{children:[le===pe.id?x.jsx("input",{className:"mcp-key-name-input",autoFocus:!0,value:V,onChange:Ye=>X(Ye.target.value),onKeyDown:Ye=>{Ye.key==="Enter"&&tt(pe.id),Ye.key==="Escape"&&ne(null)},onBlur:()=>{tt(pe.id)}}):x.jsx("strong",{children:pe.name}),x.jsxs("code",{children:[pe.prefix,"••••••••"]}),x.jsxs("span",{children:[pe.allowed_tools.length?`可用工具 ${pe.allowed_tools.length}/${La.length}`:"可调用全部工具",pe.last_used_at?` · 最近使用 ${tu(pe.last_used_at,e)}`:" · 尚未使用"]}),x.jsx("div",{className:"tool-chip-list key-tool-list",children:(pe.allowed_tools.length?pe.allowed_tools:La.map(([Ye])=>Ye)).map(Ye=>x.jsx("span",{className:"tool-chip",children:Ye},Ye))})]}),x.jsxs("div",{className:"mcp-key-actions",children:[pe.secret?x.jsx("button",{className:"icon-button",onClick:()=>Me(pe.secret,`key-${pe.id}`),title:"复制 Key",children:n===`key-${pe.id}`?x.jsx(Ia,{size:14}):x.jsx(Hc,{size:14})}):null,x.jsx("button",{className:"icon-button",onClick:()=>{ne(pe.id),X(pe.name)},title:"修改名称",children:x.jsx(hR,{size:14})}),x.jsx("button",{className:"ghost-button",onClick:()=>{Ve(pe.id)},children:"删除"})]})]},pe.id)):x.jsx("p",{className:"mcp-key-empty",children:"还没有创建 Key。"})})]})]}),j&&x.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:pe=>{pe.target===pe.currentTarget&&Y(!1)},children:x.jsxs("section",{className:"key-create-modal",role:"dialog","aria-modal":"true","aria-label":"创建 MCP Key",children:[x.jsxs("div",{className:"composer-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"访问控制"}),x.jsx("h2",{children:"创建 MCP Key"})]}),x.jsx("button",{className:"icon-button",onClick:()=>Y(!1),title:"关闭",children:x.jsx(Ko,{size:18})})]}),x.jsxs("label",{className:"config-field",children:[x.jsx("span",{children:"Key 名称"}),x.jsx("input",{autoFocus:!0,value:A,onChange:pe=>k(pe.target.value),placeholder:"例如:平台 Agent"})]}),x.jsxs("div",{className:"mcp-key-tools",children:[x.jsx("span",{className:"key-tools-label",children:"允许调用的工具"}),x.jsx("div",{className:"key-tools-grid",children:La.map(([pe])=>x.jsxs("label",{children:[x.jsx("input",{type:"checkbox",checked:N.includes(pe),onChange:Ye=>w(_e=>Ye.target.checked?[..._e,pe]:_e.filter(Ie=>Ie!==pe))}),pe]},pe))})]}),x.jsxs("div",{className:"modal-actions",children:[x.jsx("button",{className:"ghost-button",onClick:()=>Y(!1),children:"取消"}),x.jsxs("button",{className:"primary-button",onClick:()=>{Be(),Y(!1)},disabled:L||N.length===0,children:[L?x.jsx(Dx,{className:"spin",size:15}):x.jsx(Uc,{size:15}),"创建 Key"]})]}),H?x.jsx("p",{className:"integration-message",role:"alert",children:H}):null]})}),R&&x.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:pe=>{pe.target===pe.currentTarget&&U(!1)},children:x.jsxs("section",{className:"enhancement-modal",role:"dialog","aria-modal":"true","aria-label":"Agent 增强",children:[x.jsxs("div",{className:"composer-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"客户端增强"}),x.jsx("h2",{children:"Agent 增强"})]}),x.jsx("button",{className:"icon-button",onClick:()=>U(!1),title:"关闭",children:x.jsx(Ko,{size:18})})]}),x.jsx("p",{className:"mcp-key-note",children:"为开发 Agent 写入全局指令,让任务开始前主动读取 Memory One 中的相关记忆。"}),x.jsxs("section",{className:"codex-integration enhancement-panel",children:[x.jsx("div",{className:"codex-integration-icon",children:x.jsx(Gm,{size:19})}),x.jsxs("div",{className:"codex-integration-copy",children:[x.jsxs("div",{className:"codex-title-row",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"Codex"}),x.jsx("h2",{children:"全局任务前置记忆"})]}),x.jsx("span",{className:`integration-status status-${d?.status??"loading"}`,children:d?Tt:"读取中"})]}),x.jsx("p",{children:"将 Memory One 管理的全局指令写入 Codex 配置,让每项任务开始前检索相关经验。"}),x.jsx("code",{className:"integration-path",children:d?.path??"正在读取配置路径..."}),E?x.jsx("div",{className:"integration-message",role:"status",children:E}):null]}),x.jsxs("button",{className:"primary-button codex-action",disabled:!d||m||d.status==="configured",onClick:Le,children:[m?x.jsx(Dx,{className:"spin",size:16}):x.jsx(Gm,{size:16}),d?.status==="configured"?"已启用":Yt]})]})]})}),re==="usage"&&x.jsxs(x.Fragment,{children:[x.jsxs("section",{className:"mcp-usage",role:"tabpanel",children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"调用统计"}),x.jsx("h2",{children:"工具使用情况"})]}),x.jsx(Ox,{size:18})]}),x.jsxs("div",{className:"mcp-metrics",children:[x.jsx(Ua,{label:"TOTAL CALLS",value:u?String(u.total_calls):"--",note:"累计调用"}),x.jsx(Ua,{label:"SUCCESS RATE",value:u?.total_calls?`${Te}%`:"--",note:u?`${u.failed_calls} 次失败`:"读取中"}),x.jsx(Ua,{label:"AVG LATENCY",value:u?.total_calls?`${u.average_duration_ms} ms`:"--",note:"平均处理耗时"}),x.jsx(Ua,{label:"LAST CALL",value:u?.last_called_at?tu(u.last_called_at,e):"暂无",note:"最近一次调用",date:!0})]})]}),x.jsxs("section",{className:"mcp-tools",children:[x.jsxs("div",{className:"mcp-tools-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:t.toolsLabel}),x.jsx("h2",{children:t.toolsTitle})]}),x.jsxs("span",{className:"tool-count",children:[La.length," ",t.toolsCount]})]}),x.jsx("div",{className:"tool-list",children:La.map(([pe,Ye,_e])=>x.jsxs("article",{className:"tool-row",children:[x.jsx("div",{className:"tool-icon",children:x.jsx(ff,{size:15})}),x.jsxs("div",{children:[x.jsx("strong",{children:pe}),x.jsx("span",{children:e==="zh"?_e:Ye})]}),x.jsxs("div",{className:"tool-meta",children:[x.jsxs("code",{children:[we.get(pe)??0," 次"]}),x.jsx("code",{children:t.http})]})]},pe))})]})]})]})}function Ua({label:e,value:t,note:n,date:i}){return x.jsxs("div",{className:"stat-card",children:[x.jsx("span",{className:"stat-label",children:e}),x.jsx("strong",{className:i?"stat-date":"",children:t}),x.jsx("span",{className:"stat-note",children:n})]})}function nv({item:e,selected:t,onClick:n,language:i}){const s=bu[i],l=gu,u=Math.round(e.confidence*100);return x.jsxs("button",{className:`memory-card ${t?"selected":""}`,onClick:n,children:[x.jsxs("div",{className:"card-top",children:[x.jsx("span",{className:`kind-badge kind-${e.kind}`,children:l[e.kind]??e.kind}),x.jsx("span",{className:"card-date",children:tu(e.occurred_at??e.created_at,i)})]}),x.jsx("p",{children:e.content}),x.jsxs("div",{className:"card-bottom",children:[x.jsx("span",{children:e.project?x.jsxs(x.Fragment,{children:[x.jsx(qv,{size:13}),e.project]}):x.jsxs(x.Fragment,{children:[x.jsx($v,{size:13}),e.scope]})}),x.jsxs("span",{className:"recall-count",children:[e.recall_count??0," 次召回"]}),x.jsxs("span",{className:"confidence",children:[x.jsx("span",{className:"confidence-meter",children:x.jsx("i",{style:{width:`${u}%`}})}),x.jsx("span",{children:s.confidence}),x.jsxs("span",{children:[u,"%"]})]})]})]})}function zq({item:e,language:t}){const n=bu[t],i=gu;return x.jsxs("div",{className:"detail-body",children:[x.jsx("div",{className:`detail-kind kind-badge kind-${e.kind}`,children:i[e.kind]??e.kind}),x.jsx("h2",{children:e.content}),x.jsxs("div",{className:"detail-meta",children:[x.jsxs("div",{children:[x.jsx("span",{children:n.created}),x.jsx("strong",{children:tu(e.created_at,t)})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.updated}),x.jsx("strong",{children:tu(e.updated_at,t)})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.source}),x.jsx("strong",{children:e.source??n.agentWritten})]}),x.jsxs("div",{children:[x.jsx("span",{children:n.recallCount}),x.jsxs("strong",{children:[e.recall_count??0," ",n.times]})]})]}),x.jsxs("div",{className:"detail-section",children:[x.jsx("span",{className:"eyebrow",children:n.scope}),x.jsxs("div",{className:"scope-value",children:[x.jsx(U0,{size:15}),e.scope,e.project&&x.jsxs(x.Fragment,{children:[x.jsx("span",{children:"/"}),e.project]})]})]}),x.jsxs("div",{className:"detail-section",children:[x.jsx("span",{className:"eyebrow",children:n.signals}),x.jsx(rv,{label:n.importance,value:e.importance,language:t}),x.jsx(rv,{label:n.confidence,value:e.confidence,language:t})]})]})}function rv({label:e,value:t,language:n}){return x.jsxs("div",{className:"signal-row",children:[x.jsx("span",{children:e}),x.jsx("div",{className:"signal-track",children:x.jsx("span",{style:{width:`${Math.round(t*100)}%`}})}),x.jsxs("b",{children:[Math.round(t*100),"%"]})]})}function Fq({dark:e,onToggleTheme:t}){return x.jsxs("div",{className:"settings-page",children:[x.jsx("section",{className:"page-heading",children:x.jsxs("div",{children:[x.jsxs("div",{className:"heading-kicker",children:[x.jsx("span",{className:"live-dot"}),"本地工作区"]}),x.jsx("h1",{children:"设置"}),x.jsx("p",{children:"调整界面显示,并查看当前数据存储位置。"})]})}),x.jsxs("section",{className:"config-panel settings-panel",children:[x.jsxs("div",{className:"config-panel-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"APPEARANCE"}),x.jsx("h2",{children:"界面显示"})]}),e?x.jsx(Vv,{size:19}):x.jsx(Yv,{size:19})]}),x.jsxs("div",{className:"settings-row",children:[x.jsxs("span",{children:[x.jsx("strong",{children:"深色模式"}),x.jsx("small",{children:"在浅色和深色界面之间切换。"})]}),x.jsx("button",{className:"ghost-button",onClick:t,children:e?"切换浅色":"切换深色"})]})]}),x.jsxs("section",{className:"config-panel settings-panel",children:[x.jsxs("div",{className:"config-panel-heading",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:"STORAGE"}),x.jsx("h2",{children:"本地存储"})]}),x.jsx(U0,{size:19})]}),x.jsxs("div",{className:"settings-storage",children:[x.jsx("span",{className:"status-dot"}),x.jsx("strong",{children:"SQLite"}),x.jsx("span",{children:"记忆仅保存在当前设备。"})]})]})]})}function qq({onClose:e,onCreate:t,language:n}){const i=bu[n],s=gu,[l,u]=C.useState(""),[c,d]=C.useState("fact"),[h,m]=C.useState(""),[p,E]=C.useState("");return C.useEffect(()=>{const y=v=>{v.key==="Escape"&&e()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[e]),x.jsx("div",{className:"modal-backdrop",onMouseDown:y=>{y.target===y.currentTarget&&e()},children:x.jsxs("div",{className:"composer",role:"dialog","aria-modal":"true","aria-labelledby":"composer-title",children:[x.jsxs("div",{className:"composer-header",children:[x.jsxs("div",{children:[x.jsx("span",{className:"eyebrow",children:i.newMemoryEyebrow}),x.jsx("h2",{id:"composer-title",children:i.composerTitle})]}),x.jsx("button",{className:"icon-button",onClick:e,title:i.close,children:x.jsx(Ko,{size:18})})]}),x.jsxs("label",{children:[i.content,x.jsx("textarea",{autoFocus:!0,value:l,onChange:y=>u(y.target.value),placeholder:i.contentPlaceholder,rows:5})]}),x.jsxs("div",{className:"composer-grid",children:[x.jsxs("label",{children:[i.type,x.jsx(e0,{value:c,onValueChange:d,options:PA.slice(1).map(y=>({value:y,label:s[y]})),ariaLabel:i.type,className:"composer-select"})]}),x.jsxs("label",{children:[i.scope,x.jsx("input",{value:h,onChange:y=>m(y.target.value),placeholder:i.scopeOptional})]})]}),x.jsxs("label",{children:[i.source,x.jsx("input",{value:p,onChange:y=>E(y.target.value),placeholder:i.sourcePlaceholder})]}),x.jsxs("div",{className:"composer-footer",children:[x.jsxs("span",{children:[x.jsx(Ia,{size:14}),i.writeLocal]}),x.jsxs("div",{children:[x.jsx("button",{className:"ghost-button",onClick:e,children:i.cancel}),x.jsxs("button",{className:"primary-button",disabled:!l.trim(),onClick:()=>t({content:l,kind:c,project:h,source:p}),children:[i.save," ",x.jsx(Fv,{size:15})]})]})]})]})})}lN.createRoot(document.getElementById("root")).render(x.jsx(ml.StrictMode,{children:x.jsx(J6,{router:Mq})}));const Vq=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:MA},Symbol.toStringTag,{value:"Module"}));export{Wq as E,an as S,rF as c,x as j,C as r};
|