@ccjr1120/memory-one 0.1.9 → 0.1.10

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.
@@ -0,0 +1,190 @@
1
+ var VE=e=>{throw TypeError(e)};var YE=(e,t,n)=>t.has(e)||VE("Cannot "+n);var on=(e,t,n)=>(YE(e,t,"read from private field"),n?n.call(e):t.get(e)),$E=(e,t,n)=>t.has(e)?VE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Im=(e,t,n,i)=>(YE(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n);function nN(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 O0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mm={exports:{}},Eo={};var GE;function rN(){if(GE)return Eo;GE=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 Eo.Fragment=t,Eo.jsx=n,Eo.jsxs=n,Eo}var KE;function iN(){return KE||(KE=1,Mm.exports=rN()),Mm.exports}var y=iN(),Pm={exports:{}},Be={};var XE;function aN(){if(XE)return Be;XE=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 x(z){return z===null||typeof z!="object"?null:(z=E&&z[E]||z["@@iterator"],typeof z=="function"?z:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,A={};function k(z,Q,M){this.props=z,this.context=Q,this.refs=A,this.updater=M||v}k.prototype.isReactComponent={},k.prototype.setState=function(z,Q){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,Q,"setState")},k.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function N(){}N.prototype=k.prototype;function w(z,Q,M){this.props=z,this.context=Q,this.refs=A,this.updater=M||v}var D=w.prototype=new N;D.constructor=w,S(D,k.prototype),D.isPureReactComponent=!0;var F=Array.isArray;function R(){}var I={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Y(z,Q,M){var ee=M.ref;return{$$typeof:e,type:z,key:Q,ref:ee!==void 0?ee:null,props:M}}function U(z,Q){return Y(z.type,Q,z.props)}function Z(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function X(z){var Q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(M){return Q[M]})}var se=/\/+/g;function ce(z,Q){return typeof z=="object"&&z!==null&&z.key!=null?X(""+z.key):Q.toString(36)}function ie(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(R,R):(z.status="pending",z.then(function(Q){z.status==="pending"&&(z.status="fulfilled",z.value=Q)},function(Q){z.status==="pending"&&(z.status="rejected",z.reason=Q)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function B(z,Q,M,ee,me){var ge=typeof z;(ge==="undefined"||ge==="boolean")&&(z=null);var Se=!1;if(z===null)Se=!0;else switch(ge){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(z.$$typeof){case e:case t:Se=!0;break;case m:return Se=z._init,B(Se(z._payload),Q,M,ee,me)}}if(Se)return me=me(z),Se=ee===""?"."+ce(z,0):ee,F(me)?(M="",Se!=null&&(M=Se.replace(se,"$&/")+"/"),B(me,Q,M,"",function(Oe){return Oe})):me!=null&&(Z(me)&&(me=U(me,M+(me.key==null||z&&z.key===me.key?"":(""+me.key).replace(se,"$&/")+"/")+Se)),Q.push(me)),1;Se=0;var Te=ee===""?".":ee+":";if(F(z))for(var xe=0;xe<z.length;xe++)ee=z[xe],ge=Te+ce(ee,xe),Se+=B(ee,Q,M,ge,me);else if(xe=x(z),typeof xe=="function")for(z=xe.call(z),xe=0;!(ee=z.next()).done;)ee=ee.value,ge=Te+ce(ee,xe++),Se+=B(ee,Q,M,ge,me);else if(ge==="object"){if(typeof z.then=="function")return B(ie(z),Q,M,ee,me);throw Q=String(z),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function G(z,Q,M){if(z==null)return z;var ee=[],me=0;return B(z,ee,"","",function(ge){return Q.call(M,ge,me++)}),ee}function oe(z){if(z._status===-1){var Q=z._result;Q=Q(),Q.then(function(M){(z._status===0||z._status===-1)&&(z._status=1,z._result=M)},function(M){(z._status===0||z._status===-1)&&(z._status=2,z._result=M)}),z._status===-1&&(z._status=0,z._result=Q)}if(z._status===1)return z._result.default;throw z._result}var le=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},L={map:G,forEach:function(z,Q,M){G(z,function(){Q.apply(this,arguments)},M)},count:function(z){var Q=0;return G(z,function(){Q++}),Q},toArray:function(z){return G(z,function(Q){return Q})||[]},only:function(z){if(!Z(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Be.Activity=p,Be.Children=L,Be.Component=k,Be.Fragment=n,Be.Profiler=s,Be.PureComponent=w,Be.StrictMode=i,Be.Suspense=d,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Be.__COMPILER_RUNTIME={__proto__:null,c:function(z){return I.H.useMemoCache(z)}},Be.cache=function(z){return function(){return z.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(z,Q,M){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var ee=S({},z.props),me=z.key;if(Q!=null)for(ge in Q.key!==void 0&&(me=""+Q.key),Q)!H.call(Q,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Q.ref===void 0||(ee[ge]=Q[ge]);var ge=arguments.length-2;if(ge===1)ee.children=M;else if(1<ge){for(var Se=Array(ge),Te=0;Te<ge;Te++)Se[Te]=arguments[Te+2];ee.children=Se}return Y(z.type,me,ee)},Be.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:l,_context:z},z},Be.createElement=function(z,Q,M){var ee,me={},ge=null;if(Q!=null)for(ee in Q.key!==void 0&&(ge=""+Q.key),Q)H.call(Q,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(me[ee]=Q[ee]);var Se=arguments.length-2;if(Se===1)me.children=M;else if(1<Se){for(var Te=Array(Se),xe=0;xe<Se;xe++)Te[xe]=arguments[xe+2];me.children=Te}if(z&&z.defaultProps)for(ee in Se=z.defaultProps,Se)me[ee]===void 0&&(me[ee]=Se[ee]);return Y(z,ge,me)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(z){return{$$typeof:c,render:z}},Be.isValidElement=Z,Be.lazy=function(z){return{$$typeof:m,_payload:{_status:-1,_result:z},_init:oe}},Be.memo=function(z,Q){return{$$typeof:h,type:z,compare:Q===void 0?null:Q}},Be.startTransition=function(z){var Q=I.T,M={};I.T=M;try{var ee=z(),me=I.S;me!==null&&me(M,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(R,le)}catch(ge){le(ge)}finally{Q!==null&&M.types!==null&&(Q.types=M.types),I.T=Q}},Be.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Be.use=function(z){return I.H.use(z)},Be.useActionState=function(z,Q,M){return I.H.useActionState(z,Q,M)},Be.useCallback=function(z,Q){return I.H.useCallback(z,Q)},Be.useContext=function(z){return I.H.useContext(z)},Be.useDebugValue=function(){},Be.useDeferredValue=function(z,Q){return I.H.useDeferredValue(z,Q)},Be.useEffect=function(z,Q){return I.H.useEffect(z,Q)},Be.useEffectEvent=function(z){return I.H.useEffectEvent(z)},Be.useId=function(){return I.H.useId()},Be.useImperativeHandle=function(z,Q,M){return I.H.useImperativeHandle(z,Q,M)},Be.useInsertionEffect=function(z,Q){return I.H.useInsertionEffect(z,Q)},Be.useLayoutEffect=function(z,Q){return I.H.useLayoutEffect(z,Q)},Be.useMemo=function(z,Q){return I.H.useMemo(z,Q)},Be.useOptimistic=function(z,Q){return I.H.useOptimistic(z,Q)},Be.useReducer=function(z,Q,M){return I.H.useReducer(z,Q,M)},Be.useRef=function(z){return I.H.useRef(z)},Be.useState=function(z){return I.H.useState(z)},Be.useSyncExternalStore=function(z,Q,M){return I.H.useSyncExternalStore(z,Q,M)},Be.useTransition=function(){return I.H.useTransition()},Be.version="19.2.8",Be}var QE;function au(){return QE||(QE=1,Pm.exports=aN()),Pm.exports}var C=au();const bl=O0(C),su=nN({__proto__:null,default:bl},[C]);var Bm={exports:{}},xo={},jm={exports:{}},Hm={};var WE;function sN(){return WE||(WE=1,(function(e){function t(B,G){var oe=B.length;B.push(G);e:for(;0<oe;){var le=oe-1>>>1,L=B[le];if(0<s(L,G))B[le]=G,B[oe]=L,oe=le;else break e}}function n(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var G=B[0],oe=B.pop();if(oe!==G){B[0]=oe;e:for(var le=0,L=B.length,z=L>>>1;le<z;){var Q=2*(le+1)-1,M=B[Q],ee=Q+1,me=B[ee];if(0>s(M,oe))ee<L&&0>s(me,M)?(B[le]=me,B[ee]=oe,le=ee):(B[le]=M,B[Q]=oe,le=Q);else if(ee<L&&0>s(me,oe))B[le]=me,B[ee]=oe,le=ee;else break e}}return G}function s(B,G){var oe=B.sortIndex-G.sortIndex;return oe!==0?oe:B.id-G.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,x=!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(B){for(var G=n(h);G!==null;){if(G.callback===null)i(h);else if(G.startTime<=B)i(h),G.sortIndex=G.expirationTime,t(d,G);else break;G=n(h)}}function F(B){if(S=!1,D(B),!v)if(n(d)!==null)v=!0,R||(R=!0,X());else{var G=n(h);G!==null&&ie(F,G.startTime-B)}}var R=!1,I=-1,H=5,Y=-1;function U(){return A?!0:!(e.unstable_now()-Y<H)}function Z(){if(A=!1,R){var B=e.unstable_now();Y=B;var G=!0;try{e:{v=!1,S&&(S=!1,N(I),I=-1),x=!0;var oe=E;try{t:{for(D(B),p=n(d);p!==null&&!(p.expirationTime>B&&U());){var le=p.callback;if(typeof le=="function"){p.callback=null,E=p.priorityLevel;var L=le(p.expirationTime<=B);if(B=e.unstable_now(),typeof L=="function"){p.callback=L,D(B),G=!0;break t}p===n(d)&&i(d),D(B)}else i(d);p=n(d)}if(p!==null)G=!0;else{var z=n(h);z!==null&&ie(F,z.startTime-B),G=!1}}break e}finally{p=null,E=oe,x=!1}G=void 0}}finally{G?X():R=!1}}}var X;if(typeof w=="function")X=function(){w(Z)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=Z,X=function(){ce.postMessage(null)}}else X=function(){k(Z,0)};function ie(B,G){I=k(function(){B(e.unstable_now())},G)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(B){switch(E){case 1:case 2:case 3:var G=3;break;default:G=E}var oe=E;E=G;try{return B()}finally{E=oe}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(B,G){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=E;E=B;try{return G()}finally{E=oe}},e.unstable_scheduleCallback=function(B,G,oe){var le=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?le+oe:le):oe=le,B){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=oe+L,B={id:m++,callback:G,priorityLevel:B,startTime:oe,expirationTime:L,sortIndex:-1},oe>le?(B.sortIndex=oe,t(h,B),n(d)===null&&B===n(h)&&(S?(N(I),I=-1):S=!0,ie(F,oe-le))):(B.sortIndex=L,t(d,B),v||x||(v=!0,R||(R=!0,X()))),B},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(B){var G=E;return function(){var oe=E;E=G;try{return B.apply(this,arguments)}finally{E=oe}}}})(Hm)),Hm}var ZE;function lN(){return ZE||(ZE=1,jm.exports=sN()),jm.exports}var Um={exports:{}},un={};var JE;function oN(){if(JE)return un;JE=1;var e=au();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 un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,un.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)},un.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()}},un.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))},un.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},un.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,x=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:x}):m==="script"&&i.d.X(d,{crossOrigin:p,integrity:E,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},un.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)},un.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})}},un.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)},un.requestFormReset=function(d){i.d.r(d)},un.unstable_batchedUpdates=function(d,h){return d(h)},un.useFormState=function(d,h,m){return u.H.useFormState(d,h,m)},un.useFormStatus=function(){return u.H.useHostTransitionStatus()},un.version="19.2.8",un}var ex;function av(){if(ex)return Um.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(),Um.exports=oN(),Um.exports}var tx;function uN(){if(tx)return xo;tx=1;var e=lN(),t=au(),n=av();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"),x=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"),F=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=Z&&r[Z]||r["@@iterator"],typeof r=="function"?r:null)}var se=Symbol.for("react.client.reference");function ce(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 F:return"Suspense";case R:return"SuspenseList";case Y: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 I:return a=r.displayName||null,a!==null?a:ce(r.type)||"Memo";case H:a=r._payload,r=r._init;try{return ce(r(a))}catch{}}return null}var ie=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},le=[],L=-1;function z(r){return{current:r}}function Q(r){0>L||(r.current=le[L],le[L]=null,L--)}function M(r,a){L++,le[L]=r.current,r.current=a}var ee=z(null),me=z(null),ge=z(null),Se=z(null);function Te(r,a){switch(M(ge,a),M(me,r),M(ee,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?hE(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=hE(a),r=mE(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Q(ee),M(ee,r)}function xe(){Q(ee),Q(me),Q(ge)}function Oe(r){r.memoizedState!==null&&M(Se,r);var a=ee.current,o=mE(a,r.type);a!==o&&(M(me,r),M(ee,o))}function we(r){me.current===r&&(Q(ee),Q(me)),Se.current===r&&(Q(Se),po._currentValue=oe)}var Le,ze;function $e(r){if(Le===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Le=a&&a[1]||"",ze=-1<o.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Le+r+ze}var ot=!1;function Qe(r,a){if(!r||ot)return"";ot=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ae){var re=ae}Reflect.construct(r,[],pe)}else{try{pe.call()}catch(ae){re=ae}r.call(pe.prototype)}}else{try{throw Error()}catch(ae){re=ae}(pe=r())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(ae){if(ae&&re&&typeof ae.stack=="string")return[ae.stack,re.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 V=_.split(`
4
+ `),ne=O.split(`
5
+ `);for(g=f=0;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;for(;g<ne.length&&!ne[g].includes("DetermineComponentFrameRoot");)g++;if(f===V.length||g===ne.length)for(f=V.length-1,g=ne.length-1;1<=f&&0<=g&&V[f]!==ne[g];)g--;for(;1<=f&&0<=g;f--,g--)if(V[f]!==ne[g]){if(f!==1||g!==1)do if(f--,g--,0>g||V[f]!==ne[g]){var de=`
6
+ `+V[f].replace(" at new "," at ");return r.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",r.displayName)),de}while(1<=f&&0<=g);break}}}finally{ot=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?$e(o):""}function Ct(r,a){switch(r.tag){case 26:case 27:case 5:return $e(r.type);case 16:return $e("Lazy");case 13:return r.child!==a&&a!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Qe(r.type,!1);case 11:return Qe(r.type.render,!1);case 1:return Qe(r.type,!0);case 31:return $e("Activity");default:return""}}function xt(r){try{var a="",o=null;do a+=Ct(r,o),o=r,r=r.return;while(r);return a}catch(f){return`
7
+ Error generating stack: `+f.message+`
8
+ `+f.stack}}var Yt=Object.prototype.hasOwnProperty,Ne=e.unstable_scheduleCallback,He=e.unstable_cancelCallback,wt=e.unstable_shouldYield,et=e.unstable_requestPaint,tt=e.unstable_now,ln=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,W=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Me=e.unstable_LowPriority,qe=e.unstable_IdlePriority,$t=e.log,Pr=e.unstable_setDisableYieldValue,hn=null,Ft=null;function Tn(r){if(typeof $t=="function"&&Pr(r),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(hn,r)}catch{}}var gt=Math.clz32?Math.clz32:FA,pi=Math.log,sr=Math.LN2;function FA(r){return r>>>=0,r===0?32:31-(pi(r)/sr|0)|0}var Eu=256,xu=262144,Tu=4194304;function oa(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 vu(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=oa(f):(_&=O,_!==0?g=oa(_):o||(o=O&~r,o!==0&&(g=oa(o))))):(O=f&~b,O!==0?g=oa(O):_!==0?g=oa(_):o||(o=f&~r,o!==0&&(g=oa(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 kl(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function qA(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 Kg(){var r=Tu;return Tu<<=1,(Tu&62914560)===0&&(Tu=4194304),r}function vd(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function wl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function VA(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,V=r.expirationTimes,ne=r.hiddenUpdates;for(o=_&~o;0<o;){var de=31-gt(o),pe=1<<de;O[de]=0,V[de]=-1;var re=ne[de];if(re!==null)for(ne[de]=null,de=0;de<re.length;de++){var ae=re[de];ae!==null&&(ae.lane&=-536870913)}o&=~pe}f!==0&&Xg(r,f,0),b!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=b&~(_&~a))}function Xg(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-gt(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|o&261930}function Qg(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var f=31-gt(o),g=1<<f;g&a|r[f]&a&&(r[f]|=a),o&=~g}}function Wg(r,a){var o=a&-a;return o=(o&42)!==0?1:Sd(o),(o&(r.suspendedLanes|a))!==0?0:o}function Sd(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 Cd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Zg(){var r=G.p;return r!==0?r:(r=window.event,r===void 0?32:BE(r.type))}function Jg(r,a){var o=G.p;try{return G.p=r,a()}finally{G.p=o}}var gi=Math.random().toString(36).slice(2),en="__reactFiber$"+gi,vn="__reactProps$"+gi,os="__reactContainer$"+gi,_d="__reactEvents$"+gi,YA="__reactListeners$"+gi,$A="__reactHandles$"+gi,e1="__reactResources$"+gi,Nl="__reactMarker$"+gi;function Ad(r){delete r[en],delete r[vn],delete r[_d],delete r[YA],delete r[$A]}function us(r){var a=r[en];if(a)return a;for(var o=r.parentNode;o;){if(a=o[os]||o[en]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=TE(r);r!==null;){if(o=r[en])return o;r=TE(r)}return a}r=o,o=r.parentNode}return null}function cs(r){if(r=r[en]||r[os]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Rl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function fs(r){var a=r[e1];return a||(a=r[e1]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Gt(r){r[Nl]=!0}var t1=new Set,n1={};function ua(r,a){ds(r,a),ds(r+"Capture",a)}function ds(r,a){for(n1[r]=a,r=0;r<a.length;r++)t1.add(a[r])}var GA=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]*$"),r1={},i1={};function KA(r){return Yt.call(i1,r)?!0:Yt.call(r1,r)?!1:GA.test(r)?i1[r]=!0:(r1[r]=!0,!1)}function Su(r,a,o){if(KA(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 Cu(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 Br(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 a1(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function XA(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 kd(r){if(!r._valueTracker){var a=a1(r)?"checked":"value";r._valueTracker=XA(r,a,""+r[a])}}function s1(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),f="";return r&&(f=a1(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 QA=/[\n"\\]/g;function $n(r){return r.replace(QA,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function wd(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?Nd(r,_,Yn(a)):o!=null?Nd(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 l1(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)){kd(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=_),kd(r)}function Nd(r,a,o){a==="number"&&_u(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function hs(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 o1(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 u1(r,a,o,f){if(a==null){if(f!=null){if(o!=null)throw Error(i(92));if(ie(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),kd(r)}function ms(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var WA=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 c1(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||WA.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function f1(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&&c1(r,g,f)}else for(var b in a)a.hasOwnProperty(b)&&c1(r,b,a[b])}function Rd(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 ZA=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"]]),JA=/^[\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 Au(r){return JA.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function jr(){}var Od=null;function Ld(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ps=null,gs=null;function d1(r){var a=cs(r);if(a&&(r=a.stateNode)){var o=r[vn]||null;e:switch(r=a.stateNode,a.type){case"input":if(wd(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[vn]||null;if(!g)throw Error(i(90));wd(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&&s1(f)}break e;case"textarea":o1(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&hs(r,!!o.multiple,a,!1)}}}var Dd=!1;function h1(r,a,o){if(Dd)return r(a,o);Dd=!0;try{var f=r(a);return f}finally{if(Dd=!1,(ps!==null||gs!==null)&&(hc(),ps&&(a=ps,r=gs,gs=ps=null,d1(a),r)))for(a=0;a<r.length;a++)d1(r[a])}}function Ol(r,a){var o=r.stateNode;if(o===null)return null;var f=o[vn]||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 Hr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=!1;if(Hr)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Id=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Id=!1}var bi=null,Md=null,ku=null;function m1(){if(ku)return ku;var r,a=Md,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 ku=g.slice(r,1<f?1-f:void 0)}function wu(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 Nu(){return!0}function p1(){return!1}function Sn(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)?Nu:p1,this.isPropagationStopped=p1,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=Nu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Nu)},persist:function(){},isPersistent:Nu}),a}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Sn(ca),Dl=p({},ca,{view:0,detail:0}),ek=Sn(Dl),Pd,Bd,Il,Ou=p({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hd,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!==Il&&(Il&&r.type==="mousemove"?(Pd=r.screenX-Il.screenX,Bd=r.screenY-Il.screenY):Bd=Pd=0,Il=r),Pd)},movementY:function(r){return"movementY"in r?r.movementY:Bd}}),g1=Sn(Ou),tk=p({},Ou,{dataTransfer:0}),nk=Sn(tk),rk=p({},Dl,{relatedTarget:0}),jd=Sn(rk),ik=p({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),ak=Sn(ik),sk=p({},ca,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),lk=Sn(sk),ok=p({},ca,{data:0}),b1=Sn(ok),uk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ck={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"},fk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dk(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=fk[r])?!!a[r]:!1}function Hd(){return dk}var hk=p({},Dl,{key:function(r){if(r.key){var a=uk[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=wu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?ck[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hd,charCode:function(r){return r.type==="keypress"?wu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?wu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),mk=Sn(hk),pk=p({},Ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y1=Sn(pk),gk=p({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hd}),bk=Sn(gk),yk=p({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ek=Sn(yk),xk=p({},Ou,{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}),Tk=Sn(xk),vk=p({},ca,{newState:0,oldState:0}),Sk=Sn(vk),Ck=[9,13,27,32],Ud=Hr&&"CompositionEvent"in window,Ml=null;Hr&&"documentMode"in document&&(Ml=document.documentMode);var _k=Hr&&"TextEvent"in window&&!Ml,E1=Hr&&(!Ud||Ml&&8<Ml&&11>=Ml),x1=" ",T1=!1;function v1(r,a){switch(r){case"keyup":return Ck.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S1(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var bs=!1;function Ak(r,a){switch(r){case"compositionend":return S1(a);case"keypress":return a.which!==32?null:(T1=!0,x1);case"textInput":return r=a.data,r===x1&&T1?null:r;default:return null}}function kk(r,a){if(bs)return r==="compositionend"||!Ud&&v1(r,a)?(r=m1(),ku=Md=bi=null,bs=!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 E1&&a.locale!=="ko"?null:a.data;default:return null}}var wk={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 C1(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!wk[r.type]:a==="textarea"}function _1(r,a,o,f){ps?gs?gs.push(f):gs=[f]:ps=f,a=xc(a,"onChange"),0<a.length&&(o=new Ru("onChange","change",null,o,f),r.push({event:o,listeners:a}))}var Pl=null,Bl=null;function Nk(r){lE(r,0)}function Lu(r){var a=Rl(r);if(s1(a))return r}function A1(r,a){if(r==="change")return a}var k1=!1;if(Hr){var zd;if(Hr){var Fd="oninput"in document;if(!Fd){var w1=document.createElement("div");w1.setAttribute("oninput","return;"),Fd=typeof w1.oninput=="function"}zd=Fd}else zd=!1;k1=zd&&(!document.documentMode||9<document.documentMode)}function N1(){Pl&&(Pl.detachEvent("onpropertychange",R1),Bl=Pl=null)}function R1(r){if(r.propertyName==="value"&&Lu(Bl)){var a=[];_1(a,Bl,r,Ld(r)),h1(Nk,a)}}function Rk(r,a,o){r==="focusin"?(N1(),Pl=a,Bl=o,Pl.attachEvent("onpropertychange",R1)):r==="focusout"&&N1()}function Ok(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Lu(Bl)}function Lk(r,a){if(r==="click")return Lu(a)}function Dk(r,a){if(r==="input"||r==="change")return Lu(a)}function Ik(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var In=typeof Object.is=="function"?Object.is:Ik;function jl(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(!Yt.call(a,g)||!In(r[g],a[g]))return!1}return!0}function O1(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function L1(r,a){var o=O1(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=O1(o)}}function D1(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?D1(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function I1(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 qd(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 Mk=Hr&&"documentMode"in document&&11>=document.documentMode,ys=null,Vd=null,Hl=null,Yd=!1;function M1(r,a,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Yd||ys==null||ys!==_u(f)||(f=ys,"selectionStart"in f&&qd(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}),Hl&&jl(Hl,f)||(Hl=f,f=xc(Vd,"onSelect"),0<f.length&&(a=new Ru("onSelect","select",null,a,o),r.push({event:a,listeners:f}),a.target=ys)))}function fa(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var Es={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionrun:fa("Transition","TransitionRun"),transitionstart:fa("Transition","TransitionStart"),transitioncancel:fa("Transition","TransitionCancel"),transitionend:fa("Transition","TransitionEnd")},$d={},P1={};Hr&&(P1=document.createElement("div").style,"AnimationEvent"in window||(delete Es.animationend.animation,delete Es.animationiteration.animation,delete Es.animationstart.animation),"TransitionEvent"in window||delete Es.transitionend.transition);function da(r){if($d[r])return $d[r];if(!Es[r])return r;var a=Es[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in P1)return $d[r]=a[o];return r}var B1=da("animationend"),j1=da("animationiteration"),H1=da("animationstart"),Pk=da("transitionrun"),Bk=da("transitionstart"),jk=da("transitioncancel"),U1=da("transitionend"),z1=new Map,Gd="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(" ");Gd.push("scrollEnd");function lr(r,a){z1.set(r,a),ua(a,[r])}var Du=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=[],xs=0,Kd=0;function Iu(){for(var r=xs,a=Kd=xs=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&&F1(o,g,b)}}function Mu(r,a,o,f){Gn[xs++]=r,Gn[xs++]=a,Gn[xs++]=o,Gn[xs++]=f,Kd|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Xd(r,a,o,f){return Mu(r,a,o,f),Pu(r)}function ha(r,a){return Mu(r,null,null,a),Pu(r)}function F1(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-gt(o),r=b.hiddenUpdates,f=r[g],f===null?r[g]=[a]:f.push(a),a.lane=o|536870912),b):null}function Pu(r){if(50<lo)throw lo=0,im=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ts={};function Hk(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 Hk(r,a,o,f)}function Qd(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Ur(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 q1(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 Bu(r,a,o,f,g,b){var _=0;if(f=r,typeof r=="function")Qd(r)&&(_=1);else if(typeof r=="string")_=Vw(r,o,ee.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Y:return r=Mn(31,o,a,g),r.elementType=Y,r.lanes=b,r;case S:return ma(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 F:return r=Mn(13,o,a,g),r.elementType=F,r.lanes=b,r;case R:return r=Mn(19,o,a,g),r.elementType=R,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 I:_=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 ma(r,a,o,f){return r=Mn(7,r,f,a),r.lanes=o,r}function Wd(r,a,o){return r=Mn(6,r,null,a),r.lanes=o,r}function V1(r){var a=Mn(18,null,null,0);return a.stateNode=r,a}function Zd(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 Y1=new WeakMap;function Kn(r,a){if(typeof r=="object"&&r!==null){var o=Y1.get(r);return o!==void 0?o:(a={value:r,source:a,stack:xt(a)},Y1.set(r,a),a)}return{value:r,source:a,stack:xt(a)}}var vs=[],Ss=0,ju=null,Ul=0,Xn=[],Qn=0,yi=null,yr=1,Er="";function zr(r,a){vs[Ss++]=Ul,vs[Ss++]=ju,ju=r,Ul=a}function $1(r,a,o){Xn[Qn++]=yr,Xn[Qn++]=Er,Xn[Qn++]=yi,yi=r;var f=yr;r=Er;var g=32-gt(f)-1;f&=~(1<<g),o+=1;var b=32-gt(a)+g;if(30<b){var _=g-g%5;b=(f&(1<<_)-1).toString(32),f>>=_,g-=_,yr=1<<32-gt(a)+g|o<<g|f,Er=b+r}else yr=1<<b|o<<g|f,Er=r}function Jd(r){r.return!==null&&(zr(r,1),$1(r,1,0))}function eh(r){for(;r===ju;)ju=vs[--Ss],vs[Ss]=null,Ul=vs[--Ss],vs[Ss]=null;for(;r===yi;)yi=Xn[--Qn],Xn[Qn]=null,Er=Xn[--Qn],Xn[Qn]=null,yr=Xn[--Qn],Xn[Qn]=null}function G1(r,a){Xn[Qn++]=yr,Xn[Qn++]=Er,Xn[Qn++]=yi,yr=a.id,Er=a.overflow,yi=r}var tn=null,Tt=null,Je=!1,Ei=null,Wn=!1,th=Error(i(519));function xi(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zl(Kn(a,r)),th}function K1(r){var a=r.stateNode,o=r.type,f=r.memoizedProps;switch(a[en]=r,a[vn]=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<uo.length;o++)Ke(uo[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),l1(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),u1(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||fE(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=jr),a=!0):a=!1,a||xi(r,!0)}function X1(r){for(tn=r.return;tn;)switch(tn.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:tn=tn.return}}function Cs(r){if(r!==tn)return!1;if(!Je)return X1(r),Je=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Em(r.type,r.memoizedProps)),o=!o),o&&Tt&&xi(r),X1(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Tt=xE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Tt=xE(r)}else a===27?(a=Tt,Ii(r.type)?(r=Cm,Cm=null,Tt=r):Tt=a):Tt=tn?Jn(r.stateNode.nextSibling):null;return!0}function pa(){Tt=tn=null,Je=!1}function nh(){var r=Ei;return r!==null&&(kn===null?kn=r:kn.push.apply(kn,r),Ei=null),r}function zl(r){Ei===null?Ei=[r]:Ei.push(r)}var rh=z(null),ga=null,Fr=null;function Ti(r,a,o){M(rh,a._currentValue),a._currentValue=o}function qr(r){r._currentValue=rh.current,Q(rh)}function ih(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 ah(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 V=0;V<a.length;V++)if(O.context===a[V]){b.lanes|=o,O=b.alternate,O!==null&&(O.lanes|=o),ih(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),ih(_,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===Se.current){if(_=g.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(po):r=[po])}g=g.return}r!==null&&ah(a,r,o,f),a.flags|=262144}function Hu(r){for(r=r.firstContext;r!==null;){if(!In(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ba(r){ga=r,Fr=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function nn(r){return Q1(ga,r)}function Uu(r,a){return ga===null&&ba(r),Q1(r,a)}function Q1(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Fr===null){if(r===null)throw Error(i(308));Fr=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Fr=Fr.next=a;return o}var Uk=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()})}},zk=e.unstable_scheduleCallback,Fk=e.unstable_NormalPriority,Pt={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sh(){return{controller:new Uk,data:new Map,refCount:0}}function Fl(r){r.refCount--,r.refCount===0&&zk(Fk,function(){r.controller.abort()})}var ql=null,lh=0,As=0,ks=null;function qk(r,a){if(ql===null){var o=ql=[];lh=0,As=cm(),ks={status:"pending",value:void 0,then:function(f){o.push(f)}}}return lh++,a.then(W1,W1),a}function W1(){if(--lh===0&&ql!==null){ks!==null&&(ks.status="fulfilled");var r=ql;ql=null,As=0,ks=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Vk(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 Z1=B.S;B.S=function(r,a){My=tt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&qk(r,a),Z1!==null&&Z1(r,a)};var ya=z(null);function oh(){var r=ya.current;return r!==null?r:bt.pooledCache}function zu(r,a){a===null?M(ya,ya.current):M(ya,a.pool)}function J1(){var r=oh();return r===null?null:{parent:Pt._currentValue,pool:r}}var ws=Error(i(460)),uh=Error(i(474)),Fu=Error(i(542)),qu={then:function(){}};function eb(r){return r=r.status,r==="fulfilled"||r==="rejected"}function tb(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(jr,jr),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,rb(r),r;default:if(typeof a.status=="string")a.then(jr,jr);else{if(r=bt,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,rb(r),r}throw xa=a,ws}}function Ea(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(xa=o,ws):o}}var xa=null;function nb(){if(xa===null)throw Error(i(459));var r=xa;return xa=null,r}function rb(r){if(r===ws||r===Fu)throw Error(i(483))}var Ns=null,Vl=0;function Vu(r){var a=Vl;return Vl+=1,Ns===null&&(Ns=[]),tb(Ns,r,a)}function Yl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Yu(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 ib(r){function a(K,$){if(r){var te=K.deletions;te===null?(K.deletions=[$],K.flags|=16):te.push($)}}function o(K,$){if(!r)return null;for(;$!==null;)a(K,$),$=$.sibling;return null}function f(K){for(var $=new Map;K!==null;)K.key!==null?$.set(K.key,K):$.set(K.index,K),K=K.sibling;return $}function g(K,$){return K=Ur(K,$),K.index=0,K.sibling=null,K}function b(K,$,te){return K.index=te,r?(te=K.alternate,te!==null?(te=te.index,te<$?(K.flags|=67108866,$):te):(K.flags|=67108866,$)):(K.flags|=1048576,$)}function _(K){return r&&K.alternate===null&&(K.flags|=67108866),K}function O(K,$,te,he){return $===null||$.tag!==6?($=Wd(te,K.mode,he),$.return=K,$):($=g($,te),$.return=K,$)}function V(K,$,te,he){var Re=te.type;return Re===S?de(K,$,te.props.children,he,te.key):$!==null&&($.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===H&&Ea(Re)===$.type)?($=g($,te.props),Yl($,te),$.return=K,$):($=Bu(te.type,te.key,te.props,null,K.mode,he),Yl($,te),$.return=K,$)}function ne(K,$,te,he){return $===null||$.tag!==4||$.stateNode.containerInfo!==te.containerInfo||$.stateNode.implementation!==te.implementation?($=Zd(te,K.mode,he),$.return=K,$):($=g($,te.children||[]),$.return=K,$)}function de(K,$,te,he,Re){return $===null||$.tag!==7?($=ma(te,K.mode,he,Re),$.return=K,$):($=g($,te),$.return=K,$)}function pe(K,$,te){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=Wd(""+$,K.mode,te),$.return=K,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case x:return te=Bu($.type,$.key,$.props,null,K.mode,te),Yl(te,$),te.return=K,te;case v:return $=Zd($,K.mode,te),$.return=K,$;case H:return $=Ea($),pe(K,$,te)}if(ie($)||X($))return $=ma($,K.mode,te,null),$.return=K,$;if(typeof $.then=="function")return pe(K,Vu($),te);if($.$$typeof===w)return pe(K,Uu(K,$),te);Yu(K,$)}return null}function re(K,$,te,he){var Re=$!==null?$.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return Re!==null?null:O(K,$,""+te,he);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case x:return te.key===Re?V(K,$,te,he):null;case v:return te.key===Re?ne(K,$,te,he):null;case H:return te=Ea(te),re(K,$,te,he)}if(ie(te)||X(te))return Re!==null?null:de(K,$,te,he,null);if(typeof te.then=="function")return re(K,$,Vu(te),he);if(te.$$typeof===w)return re(K,$,Uu(K,te),he);Yu(K,te)}return null}function ae(K,$,te,he,Re){if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return K=K.get(te)||null,O($,K,""+he,Re);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case x:return K=K.get(he.key===null?te:he.key)||null,V($,K,he,Re);case v:return K=K.get(he.key===null?te:he.key)||null,ne($,K,he,Re);case H:return he=Ea(he),ae(K,$,te,he,Re)}if(ie(he)||X(he))return K=K.get(te)||null,de($,K,he,Re,null);if(typeof he.then=="function")return ae(K,$,te,Vu(he),Re);if(he.$$typeof===w)return ae(K,$,te,Uu($,he),Re);Yu($,he)}return null}function Ae(K,$,te,he){for(var Re=null,at=null,ke=$,Ue=$=0,Ze=null;ke!==null&&Ue<te.length;Ue++){ke.index>Ue?(Ze=ke,ke=null):Ze=ke.sibling;var st=re(K,ke,te[Ue],he);if(st===null){ke===null&&(ke=Ze);break}r&&ke&&st.alternate===null&&a(K,ke),$=b(st,$,Ue),at===null?Re=st:at.sibling=st,at=st,ke=Ze}if(Ue===te.length)return o(K,ke),Je&&zr(K,Ue),Re;if(ke===null){for(;Ue<te.length;Ue++)ke=pe(K,te[Ue],he),ke!==null&&($=b(ke,$,Ue),at===null?Re=ke:at.sibling=ke,at=ke);return Je&&zr(K,Ue),Re}for(ke=f(ke);Ue<te.length;Ue++)Ze=ae(ke,K,Ue,te[Ue],he),Ze!==null&&(r&&Ze.alternate!==null&&ke.delete(Ze.key===null?Ue:Ze.key),$=b(Ze,$,Ue),at===null?Re=Ze:at.sibling=Ze,at=Ze);return r&&ke.forEach(function(Hi){return a(K,Hi)}),Je&&zr(K,Ue),Re}function Ie(K,$,te,he){if(te==null)throw Error(i(151));for(var Re=null,at=null,ke=$,Ue=$=0,Ze=null,st=te.next();ke!==null&&!st.done;Ue++,st=te.next()){ke.index>Ue?(Ze=ke,ke=null):Ze=ke.sibling;var Hi=re(K,ke,st.value,he);if(Hi===null){ke===null&&(ke=Ze);break}r&&ke&&Hi.alternate===null&&a(K,ke),$=b(Hi,$,Ue),at===null?Re=Hi:at.sibling=Hi,at=Hi,ke=Ze}if(st.done)return o(K,ke),Je&&zr(K,Ue),Re;if(ke===null){for(;!st.done;Ue++,st=te.next())st=pe(K,st.value,he),st!==null&&($=b(st,$,Ue),at===null?Re=st:at.sibling=st,at=st);return Je&&zr(K,Ue),Re}for(ke=f(ke);!st.done;Ue++,st=te.next())st=ae(ke,K,Ue,st.value,he),st!==null&&(r&&st.alternate!==null&&ke.delete(st.key===null?Ue:st.key),$=b(st,$,Ue),at===null?Re=st:at.sibling=st,at=st);return r&&ke.forEach(function(tN){return a(K,tN)}),Je&&zr(K,Ue),Re}function mt(K,$,te,he){if(typeof te=="object"&&te!==null&&te.type===S&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case x:e:{for(var Re=te.key;$!==null;){if($.key===Re){if(Re=te.type,Re===S){if($.tag===7){o(K,$.sibling),he=g($,te.props.children),he.return=K,K=he;break e}}else if($.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===H&&Ea(Re)===$.type){o(K,$.sibling),he=g($,te.props),Yl(he,te),he.return=K,K=he;break e}o(K,$);break}else a(K,$);$=$.sibling}te.type===S?(he=ma(te.props.children,K.mode,he,te.key),he.return=K,K=he):(he=Bu(te.type,te.key,te.props,null,K.mode,he),Yl(he,te),he.return=K,K=he)}return _(K);case v:e:{for(Re=te.key;$!==null;){if($.key===Re)if($.tag===4&&$.stateNode.containerInfo===te.containerInfo&&$.stateNode.implementation===te.implementation){o(K,$.sibling),he=g($,te.children||[]),he.return=K,K=he;break e}else{o(K,$);break}else a(K,$);$=$.sibling}he=Zd(te,K.mode,he),he.return=K,K=he}return _(K);case H:return te=Ea(te),mt(K,$,te,he)}if(ie(te))return Ae(K,$,te,he);if(X(te)){if(Re=X(te),typeof Re!="function")throw Error(i(150));return te=Re.call(te),Ie(K,$,te,he)}if(typeof te.then=="function")return mt(K,$,Vu(te),he);if(te.$$typeof===w)return mt(K,$,Uu(K,te),he);Yu(K,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,$!==null&&$.tag===6?(o(K,$.sibling),he=g($,te),he.return=K,K=he):(o(K,$),he=Wd(te,K.mode,he),he.return=K,K=he),_(K)):o(K,$)}return function(K,$,te,he){try{Vl=0;var Re=mt(K,$,te,he);return Ns=null,Re}catch(ke){if(ke===ws||ke===Fu)throw ke;var at=Mn(29,ke,null,K.mode);return at.lanes=he,at.return=K,at}}}var Ta=ib(!0),ab=ib(!1),vi=!1;function ch(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(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 Ci(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=Pu(r),F1(r,null,o),a}return Mu(r,f,a,o),Pu(r)}function $l(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,Qg(r,o)}}function dh(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 hh=!1;function Gl(){if(hh){var r=ks;if(r!==null)throw r}}function Kl(r,a,o,f){hh=!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 V=O,ne=V.next;V.next=null,_===null?b=ne:_.next=ne,_=V;var de=r.alternate;de!==null&&(de=de.updateQueue,O=de.lastBaseUpdate,O!==_&&(O===null?de.firstBaseUpdate=ne:O.next=ne,de.lastBaseUpdate=V))}if(b!==null){var pe=g.baseState;_=0,de=ne=V=null,O=b;do{var re=O.lane&-536870913,ae=re!==O.lane;if(ae?(We&re)===re:(f&re)===re){re!==0&&re===As&&(hh=!0),de!==null&&(de=de.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Ae=r,Ie=O;re=a;var mt=o;switch(Ie.tag){case 1:if(Ae=Ie.payload,typeof Ae=="function"){pe=Ae.call(mt,pe,re);break e}pe=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Ie.payload,re=typeof Ae=="function"?Ae.call(mt,pe,re):Ae,re==null)break e;pe=p({},pe,re);break e;case 2:vi=!0}}re=O.callback,re!==null&&(r.flags|=64,ae&&(r.flags|=8192),ae=g.callbacks,ae===null?g.callbacks=[re]:ae.push(re))}else ae={lane:re,tag:O.tag,payload:O.payload,callback:O.callback,next:null},de===null?(ne=de=ae,V=pe):de=de.next=ae,_|=re;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ae=O,O=ae.next,ae.next=null,g.lastBaseUpdate=ae,g.shared.pending=null}}while(!0);de===null&&(V=pe),g.baseState=V,g.firstBaseUpdate=ne,g.lastBaseUpdate=de,b===null&&(g.shared.lanes=0),Ni|=_,r.lanes=_,r.memoizedState=pe}}function sb(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function lb(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)sb(o[r],a)}var Rs=z(null),$u=z(0);function ob(r,a){r=Zr,M($u,r),M(Rs,a),Zr=r|a.baseLanes}function mh(){M($u,Zr),M(Rs,Rs.current)}function ph(){Zr=$u.current,Q(Rs),Q($u)}var Pn=z(null),Zn=null;function _i(r){var a=r.alternate;M(Ot,Ot.current&1),M(Pn,r),Zn===null&&(a===null||Rs.current!==null||a.memoizedState!==null)&&(Zn=r)}function gh(r){M(Ot,Ot.current),M(Pn,r),Zn===null&&(Zn=r)}function ub(r){r.tag===22?(M(Ot,Ot.current),M(Pn,r),Zn===null&&(Zn=r)):Ai()}function Ai(){M(Ot,Ot.current),M(Pn,Pn.current)}function Bn(r){Q(Pn),Zn===r&&(Zn=null),Q(Ot)}var Ot=z(0);function Gu(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||vm(o)||Sm(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 Vr=0,je=null,dt=null,Bt=null,Ku=!1,Os=!1,va=!1,Xu=0,Xl=0,Ls=null,Yk=0;function Nt(){throw Error(i(321))}function bh(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 yh(r,a,o,f,g,b){return Vr=b,je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=r===null||r.memoizedState===null?$b:Dh,va=!1,b=o(f,g),va=!1,Os&&(b=fb(a,o,f,g)),cb(r),b}function cb(r){B.H=Zl;var a=dt!==null&&dt.next!==null;if(Vr=0,Bt=dt=je=null,Ku=!1,Xl=0,Ls=null,a)throw Error(i(300));r===null||jt||(r=r.dependencies,r!==null&&Hu(r)&&(jt=!0))}function fb(r,a,o,f){je=r;var g=0;do{if(Os&&(Ls=null),Xl=0,Os=!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)}B.H=Gb,b=a(o,f)}while(Os);return b}function $k(){var r=B.H,a=r.useState()[0];return a=typeof a.then=="function"?Ql(a):a,r=r.useState()[0],(dt!==null?dt.memoizedState:null)!==r&&(je.flags|=1024),a}function Eh(){var r=Xu!==0;return Xu=0,r}function xh(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function Th(r){if(Ku){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Ku=!1}Vr=0,Bt=dt=je=null,Os=!1,Xl=Xu=0,Ls=null}function mn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?je.memoizedState=Bt=r:Bt=Bt.next=r,Bt}function Lt(){if(dt===null){var r=je.alternate;r=r!==null?r.memoizedState:null}else r=dt.next;var a=Bt===null?je.memoizedState:Bt.next;if(a!==null)Bt=a,dt=r;else{if(r===null)throw je.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?je.memoizedState=Bt=r:Bt=Bt.next=r}return Bt}function Qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(r){var a=Xl;return Xl+=1,Ls===null&&(Ls=[]),r=tb(Ls,r,a),a=je,(Bt===null?a.memoizedState:Bt.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?$b:Dh),r}function Wu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Ql(r);if(r.$$typeof===w)return nn(r)}throw Error(i(438,String(r)))}function vh(r){var a=null,o=je.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var f=je.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=Qu(),je.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]=U;return a.index++,o}function Yr(r,a){return typeof a=="function"?a(r):a}function Zu(r){var a=Lt();return Sh(a,dt,r)}function Sh(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,V=null,ne=a,de=!1;do{var pe=ne.lane&-536870913;if(pe!==ne.lane?(We&pe)===pe:(Vr&pe)===pe){var re=ne.revertLane;if(re===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),pe===As&&(de=!0);else if((Vr&re)===re){ne=ne.next,re===As&&(de=!0);continue}else pe={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(O=V=pe,_=b):V=V.next=pe,je.lanes|=re,Ni|=re;pe=ne.action,va&&o(b,pe),b=ne.hasEagerState?ne.eagerState:o(b,pe)}else re={lane:pe,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},V===null?(O=V=re,_=b):V=V.next=re,je.lanes|=pe,Ni|=pe;ne=ne.next}while(ne!==null&&ne!==a);if(V===null?_=b:V.next=O,!In(b,r.memoizedState)&&(jt=!0,de&&(o=ks,o!==null)))throw o;r.memoizedState=b,r.baseState=_,r.baseQueue=V,f.lastRenderedState=b}return g===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function Ch(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 db(r,a,o){var f=je,g=Lt(),b=Je;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,kh(pb.bind(null,f,g,r),[r]),g.getSnapshot!==a||_||Bt!==null&&Bt.memoizedState.tag&1){if(f.flags|=2048,Ds(9,{destroy:void 0},mb.bind(null,f,g,o,a),null),bt===null)throw Error(i(349));b||(Vr&127)!==0||hb(f,a,o)}return o}function hb(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=je.updateQueue,a===null?(a=Qu(),je.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function mb(r,a,o,f){a.value=o,a.getSnapshot=f,gb(a)&&bb(r)}function pb(r,a,o){return o(function(){gb(a)&&bb(r)})}function gb(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!In(r,o)}catch{return!0}}function bb(r){var a=ha(r,2);a!==null&&wn(a,r,2)}function _h(r){var a=mn();if(typeof r=="function"){var o=r;if(r=o(),va){Tn(!0);try{o()}finally{Tn(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:r},a}function yb(r,a,o,f){return r.baseState=o,Sh(r,dt,typeof f=="function"?f:Yr)}function Gk(r,a,o,f,g){if(tc(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(_)}};B.T!==null?o(!0):b.isTransition=!1,f(b),o=a.pending,o===null?(b.next=a.pending=b,Eb(a,b)):(b.next=o.next,a.pending=o.next=b)}}function Eb(r,a){var o=a.action,f=a.payload,g=r.state;if(a.isTransition){var b=B.T,_={};B.T=_;try{var O=o(g,f),V=B.S;V!==null&&V(_,O),xb(r,a,O)}catch(ne){Ah(r,a,ne)}finally{b!==null&&_.types!==null&&(b.types=_.types),B.T=b}}else try{b=o(g,f),xb(r,a,b)}catch(ne){Ah(r,a,ne)}}function xb(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){Tb(r,a,f)},function(f){return Ah(r,a,f)}):Tb(r,a,o)}function Tb(r,a,o){a.status="fulfilled",a.value=o,vb(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,Eb(r,o)))}function Ah(r,a,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=o,vb(a),a=a.next;while(a!==f)}r.action=null}function vb(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Sb(r,a){return a}function Cb(r,a){if(Je){var o=bt.formState;if(o!==null){e:{var f=je;if(Je){if(Tt){t:{for(var g=Tt,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){Tt=Jn(g.nextSibling),f=g.data==="F!";break e}}xi(f)}f=!1}f&&(a=o[0])}}return o=mn(),o.memoizedState=o.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sb,lastRenderedState:a},o.queue=f,o=qb.bind(null,je,f),f.dispatch=o,f=_h(!1),b=Lh.bind(null,je,!1,f.queue),f=mn(),g={state:a,dispatch:null,action:r,pending:null},f.queue=g,o=Gk.bind(null,je,g,b,o),g.dispatch=o,f.memoizedState=r,[a,o,!1]}function _b(r){var a=Lt();return Ab(a,dt,r)}function Ab(r,a,o){if(a=Sh(r,a,Sb)[0],r=Zu(Yr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=Ql(a)}catch(_){throw _===ws?Fu:_}else f=a;a=Lt();var g=a.queue,b=g.dispatch;return o!==a.memoizedState&&(je.flags|=2048,Ds(9,{destroy:void 0},Kk.bind(null,g,o),null)),[f,b,r]}function Kk(r,a){r.action=a}function kb(r){var a=Lt(),o=dt;if(o!==null)return Ab(a,o,r);Lt(),a=a.memoizedState,o=Lt();var f=o.queue.dispatch;return o.memoizedState=r,[a,f,!1]}function Ds(r,a,o,f){return r={tag:r,create:o,deps:f,inst:a,next:null},a=je.updateQueue,a===null&&(a=Qu(),je.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 wb(){return Lt().memoizedState}function Ju(r,a,o,f){var g=mn();je.flags|=r,g.memoizedState=Ds(1|a,{destroy:void 0},o,f===void 0?null:f)}function ec(r,a,o,f){var g=Lt();f=f===void 0?null:f;var b=g.memoizedState.inst;dt!==null&&f!==null&&bh(f,dt.memoizedState.deps)?g.memoizedState=Ds(a,b,o,f):(je.flags|=r,g.memoizedState=Ds(1|a,b,o,f))}function Nb(r,a){Ju(8390656,8,r,a)}function kh(r,a){ec(2048,8,r,a)}function Xk(r){je.flags|=4;var a=je.updateQueue;if(a===null)a=Qu(),je.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function Rb(r){var a=Lt().memoizedState;return Xk({ref:a,nextImpl:r}),function(){if((lt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Ob(r,a){return ec(4,2,r,a)}function Lb(r,a){return ec(4,4,r,a)}function Db(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 Ib(r,a,o){o=o!=null?o.concat([r]):null,ec(4,4,Db.bind(null,a,r),o)}function wh(){}function Mb(r,a){var o=Lt();a=a===void 0?null:a;var f=o.memoizedState;return a!==null&&bh(a,f[1])?f[0]:(o.memoizedState=[r,a],r)}function Pb(r,a){var o=Lt();a=a===void 0?null:a;var f=o.memoizedState;if(a!==null&&bh(a,f[1]))return f[0];if(f=r(),va){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,a],f}function Nh(r,a,o){return o===void 0||(Vr&1073741824)!==0&&(We&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=By(),je.lanes|=r,Ni|=r,o)}function Bb(r,a,o,f){return In(o,a)?o:Rs.current!==null?(r=Nh(r,o,f),In(r,a)||(jt=!0),r):(Vr&42)===0||(Vr&1073741824)!==0&&(We&261930)===0?(jt=!0,r.memoizedState=o):(r=By(),je.lanes|=r,Ni|=r,a)}function jb(r,a,o,f,g){var b=G.p;G.p=b!==0&&8>b?b:8;var _=B.T,O={};B.T=O,Lh(r,!1,a,o);try{var V=g(),ne=B.S;if(ne!==null&&ne(O,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var de=Vk(V,f);Wl(r,a,de,Un(r))}else Wl(r,a,f,Un(r))}catch(pe){Wl(r,a,{then:function(){},status:"rejected",reason:pe},Un())}finally{G.p=b,_!==null&&O.types!==null&&(_.types=O.types),B.T=_}}function Qk(){}function Rh(r,a,o,f){if(r.tag!==5)throw Error(i(476));var g=Hb(r).queue;jb(r,g,a,oe,o===null?Qk:function(){return Ub(r),o(f)})}function Hb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:oe},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Ub(r){var a=Hb(r);a.next===null&&(a=r.alternate.memoizedState),Wl(r,a.next.queue,{},Un())}function Oh(){return nn(po)}function zb(){return Lt().memoizedState}function Fb(){return Lt().memoizedState}function Wk(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=Un();r=Si(o);var f=Ci(a,r,o);f!==null&&(wn(f,a,o),$l(f,a,o)),a={cache:sh()},r.payload=a;return}a=a.return}}function Zk(r,a,o){var f=Un();o={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},tc(r)?Vb(a,o):(o=Xd(r,a,o,f),o!==null&&(wn(o,r,f),Yb(o,a,f)))}function qb(r,a,o){var f=Un();Wl(r,a,o,f)}function Wl(r,a,o,f){var g={lane:f,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(tc(r))Vb(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 Mu(r,a,g,0),bt===null&&Iu(),!1}catch{}if(o=Xd(r,a,g,f),o!==null)return wn(o,r,f),Yb(o,a,f),!0}return!1}function Lh(r,a,o,f){if(f={lane:2,revertLane:cm(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},tc(r)){if(a)throw Error(i(479))}else a=Xd(r,o,f,2),a!==null&&wn(a,r,2)}function tc(r){var a=r.alternate;return r===je||a!==null&&a===je}function Vb(r,a){Os=Ku=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function Yb(r,a,o){if((o&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,Qg(r,o)}}var Zl={readContext:nn,use:Wu,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};Zl.useEffectEvent=Nt;var $b={readContext:nn,use:Wu,useCallback:function(r,a){return mn().memoizedState=[r,a===void 0?null:a],r},useContext:nn,useEffect:Nb,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Ju(4194308,4,Db.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Ju(4194308,4,r,a)},useInsertionEffect:function(r,a){Ju(4,2,r,a)},useMemo:function(r,a){var o=mn();a=a===void 0?null:a;var f=r();if(va){Tn(!0);try{r()}finally{Tn(!1)}}return o.memoizedState=[f,a],f},useReducer:function(r,a,o){var f=mn();if(o!==void 0){var g=o(a);if(va){Tn(!0);try{o(a)}finally{Tn(!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=Zk.bind(null,je,r),[f.memoizedState,r]},useRef:function(r){var a=mn();return r={current:r},a.memoizedState=r},useState:function(r){r=_h(r);var a=r.queue,o=qb.bind(null,je,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:wh,useDeferredValue:function(r,a){var o=mn();return Nh(o,r,a)},useTransition:function(){var r=_h(!1);return r=jb.bind(null,je,r.queue,!0,!1),mn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var f=je,g=mn();if(Je){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),bt===null)throw Error(i(349));(We&127)!==0||hb(f,a,o)}g.memoizedState=o;var b={value:o,getSnapshot:a};return g.queue=b,Nb(pb.bind(null,f,b,r),[r]),f.flags|=2048,Ds(9,{destroy:void 0},mb.bind(null,f,b,o,a),null),o},useId:function(){var r=mn(),a=bt.identifierPrefix;if(Je){var o=Er,f=yr;o=(f&~(1<<32-gt(f)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Xu++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=Yk++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Oh,useFormState:Cb,useActionState:Cb,useOptimistic:function(r){var a=mn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Lh.bind(null,je,!0,o),o.dispatch=a,[r,a]},useMemoCache:vh,useCacheRefresh:function(){return mn().memoizedState=Wk.bind(null,je)},useEffectEvent:function(r){var a=mn(),o={impl:r};return a.memoizedState=o,function(){if((lt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},Dh={readContext:nn,use:Wu,useCallback:Mb,useContext:nn,useEffect:kh,useImperativeHandle:Ib,useInsertionEffect:Ob,useLayoutEffect:Lb,useMemo:Pb,useReducer:Zu,useRef:wb,useState:function(){return Zu(Yr)},useDebugValue:wh,useDeferredValue:function(r,a){var o=Lt();return Bb(o,dt.memoizedState,r,a)},useTransition:function(){var r=Zu(Yr)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Ql(r),a]},useSyncExternalStore:db,useId:zb,useHostTransitionStatus:Oh,useFormState:_b,useActionState:_b,useOptimistic:function(r,a){var o=Lt();return yb(o,dt,r,a)},useMemoCache:vh,useCacheRefresh:Fb};Dh.useEffectEvent=Rb;var Gb={readContext:nn,use:Wu,useCallback:Mb,useContext:nn,useEffect:kh,useImperativeHandle:Ib,useInsertionEffect:Ob,useLayoutEffect:Lb,useMemo:Pb,useReducer:Ch,useRef:wb,useState:function(){return Ch(Yr)},useDebugValue:wh,useDeferredValue:function(r,a){var o=Lt();return dt===null?Nh(o,r,a):Bb(o,dt.memoizedState,r,a)},useTransition:function(){var r=Ch(Yr)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Ql(r),a]},useSyncExternalStore:db,useId:zb,useHostTransitionStatus:Oh,useFormState:kb,useActionState:kb,useOptimistic:function(r,a){var o=Lt();return dt!==null?yb(o,dt,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:vh,useCacheRefresh:Fb};Gb.useEffectEvent=Rb;function Ih(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 Mh={enqueueSetState:function(r,a,o){r=r._reactInternals;var f=Un(),g=Si(f);g.payload=a,o!=null&&(g.callback=o),a=Ci(r,g,f),a!==null&&(wn(a,r,f),$l(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=Ci(r,g,f),a!==null&&(wn(a,r,f),$l(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=Ci(r,f,o),a!==null&&(wn(a,r,o),$l(a,r,o))}};function Kb(r,a,o,f,g,b,_){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,b,_):a.prototype&&a.prototype.isPureReactComponent?!jl(o,f)||!jl(g,b):!0}function Xb(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&&Mh.enqueueReplaceState(a,a.state,null)}function Sa(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 Qb(r){Du(r)}function Wb(r){console.error(r)}function Zb(r){Du(r)}function nc(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function Jb(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 Ph(r,a,o){return o=Si(o),o.tag=3,o.payload={element:null},o.callback=function(){nc(r,a)},o}function ey(r){return r=Si(r),r.tag=3,r}function ty(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(){Jb(a,o,f)}}var _=o.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(r.callback=function(){Jb(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 Jk(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?mc():o.alternate===null&&Rt===0&&(Rt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,f===qu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([f]):a.add(f),lm(r,f,g)),!1;case 22:return o.flags|=65536,f===qu?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)),lm(r,f,g)),!1}throw Error(i(435,o.tag))}return lm(r,f,g),mc(),!1}if(Je)return a=Pn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==th&&(r=Error(i(422),{cause:f}),zl(Kn(r,o)))):(f!==th&&(a=Error(i(423),{cause:f}),zl(Kn(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,f=Kn(f,o),g=Ph(r.stateNode,f,g),dh(r,g),Rt!==4&&(Rt=2)),!1;var b=Error(i(520),{cause:f});if(b=Kn(b,o),so===null?so=[b]:so.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=Ph(o.stateNode,f,r),dh(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=ey(g),ty(g,r,o,f),dh(o,g),!1}o=o.return}while(o!==null);return!1}var Bh=Error(i(461)),jt=!1;function rn(r,a,o,f){a.child=r===null?ab(a,null,o,f):Ta(a,r.child,o,f)}function ny(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 ba(a),f=yh(r,a,o,_,b,g),O=Eh(),r!==null&&!jt?(xh(r,a,g),$r(r,a,g)):(Je&&O&&Jd(a),a.flags|=1,rn(r,a,f,g),a.child)}function ry(r,a,o,f,g){if(r===null){var b=o.type;return typeof b=="function"&&!Qd(b)&&b.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=b,iy(r,a,b,f,g)):(r=Bu(o.type,null,f,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(b=r.child,!Yh(r,g)){var _=b.memoizedProps;if(o=o.compare,o=o!==null?o:jl,o(_,f)&&r.ref===a.ref)return $r(r,a,g)}return a.flags|=1,r=Ur(b,f),r.ref=a.ref,r.return=a,a.child=r}function iy(r,a,o,f,g){if(r!==null){var b=r.memoizedProps;if(jl(b,f)&&r.ref===a.ref)if(jt=!1,a.pendingProps=f=b,Yh(r,g))(r.flags&131072)!==0&&(jt=!0);else return a.lanes=r.lanes,$r(r,a,g)}return jh(r,a,o,f,g)}function ay(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 sy(r,a,b,o,f)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&zu(a,b!==null?b.cachePool:null),b!==null?ob(a,b):mh(),ub(a);else return f=a.lanes=536870912,sy(r,a,b!==null?b.baseLanes|o:o,o,f)}else b!==null?(zu(a,b.cachePool),ob(a,b),Ai(),a.memoizedState=null):(r!==null&&zu(a,null),mh(),Ai());return rn(r,a,g,o),a.child}function Jl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function sy(r,a,o,f,g){var b=oh();return b=b===null?null:{parent:Pt._currentValue,pool:b},a.memoizedState={baseLanes:o,cachePool:b},r!==null&&zu(a,null),mh(),ub(a),r!==null&&_s(r,a,f,!0),a.childLanes=g,null}function rc(r,a){return a=ac({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function ly(r,a,o){return Ta(a,r.child,null,o),r=rc(a,a.pendingProps),r.flags|=2,Bn(a),a.memoizedState=null,r}function ew(r,a,o){var f=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Je){if(f.mode==="hidden")return r=rc(a,f),a.lanes=536870912,Jl(null,r);if(gh(a),(r=Tt)?(r=EE(r,Wn),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:yr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},o=V1(r),o.return=a,a.child=o,tn=a,Tt=null)):r=null,r===null)throw xi(a);return a.lanes=536870912,null}return rc(a,f)}var b=r.memoizedState;if(b!==null){var _=b.dehydrated;if(gh(a),g)if(a.flags&256)a.flags&=-257,a=ly(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=bt,f!==null&&(_=Wg(f,o),_!==0&&_!==b.retryLane))throw b.retryLane=_,ha(r,_),wn(f,r,_),Bh;mc(),a=ly(r,a,o)}else r=b.treeContext,Tt=Jn(_.nextSibling),tn=a,Je=!0,Ei=null,Wn=!1,r!==null&&G1(a,r),a=rc(a,f),a.flags|=4096;return a}return r=Ur(r.child,{mode:f.mode,children:f.children}),r.ref=a.ref,a.child=r,r.return=a,r}function ic(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 jh(r,a,o,f,g){return ba(a),o=yh(r,a,o,f,void 0,g),f=Eh(),r!==null&&!jt?(xh(r,a,g),$r(r,a,g)):(Je&&f&&Jd(a),a.flags|=1,rn(r,a,o,g),a.child)}function oy(r,a,o,f,g,b){return ba(a),a.updateQueue=null,o=fb(a,f,o,g),cb(r),f=Eh(),r!==null&&!jt?(xh(r,a,b),$r(r,a,b)):(Je&&f&&Jd(a),a.flags|=1,rn(r,a,o,b),a.child)}function uy(r,a,o,f,g){if(ba(a),a.stateNode===null){var b=Ts,_=o.contextType;typeof _=="object"&&_!==null&&(b=nn(_)),b=new o(f,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Mh,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=f,b.state=a.memoizedState,b.refs={},ch(a),_=o.contextType,b.context=typeof _=="object"&&_!==null?nn(_):Ts,b.state=a.memoizedState,_=o.getDerivedStateFromProps,typeof _=="function"&&(Ih(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&&Mh.enqueueReplaceState(b,b.state,null),Kl(a,f,b,g),Gl(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){b=a.stateNode;var O=a.memoizedProps,V=Sa(o,O);b.props=V;var ne=b.context,de=o.contextType;_=Ts,typeof de=="object"&&de!==null&&(_=nn(de));var pe=o.getDerivedStateFromProps;de=typeof pe=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,de||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||ne!==_)&&Xb(a,b,f,_),vi=!1;var re=a.memoizedState;b.state=re,Kl(a,f,b,g),Gl(),ne=a.memoizedState,O||re!==ne||vi?(typeof pe=="function"&&(Ih(a,o,pe,f),ne=a.memoizedState),(V=vi||Kb(a,o,V,f,re,ne,_))?(de||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=ne),b.props=f,b.state=ne,b.context=_,f=V):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{b=a.stateNode,fh(r,a),_=a.memoizedProps,de=Sa(o,_),b.props=de,pe=a.pendingProps,re=b.context,ne=o.contextType,V=Ts,typeof ne=="object"&&ne!==null&&(V=nn(ne)),O=o.getDerivedStateFromProps,(ne=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(_!==pe||re!==V)&&Xb(a,b,f,V),vi=!1,re=a.memoizedState,b.state=re,Kl(a,f,b,g),Gl();var ae=a.memoizedState;_!==pe||re!==ae||vi||r!==null&&r.dependencies!==null&&Hu(r.dependencies)?(typeof O=="function"&&(Ih(a,o,O,f),ae=a.memoizedState),(de=vi||Kb(a,o,de,f,re,ae,V)||r!==null&&r.dependencies!==null&&Hu(r.dependencies))?(ne||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,ae,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,ae,V)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=ae),b.props=f,b.state=ae,b.context=V,f=de):(typeof b.componentDidUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||_===r.memoizedProps&&re===r.memoizedState||(a.flags|=1024),f=!1)}return b=f,ic(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=Ta(a,r.child,null,g),a.child=Ta(a,null,o,g)):rn(r,a,o,g),a.memoizedState=b.state,r=a.child):r=$r(r,a,g),r}function cy(r,a,o,f){return pa(),a.flags|=256,rn(r,a,o,f),a.child}var Hh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uh(r){return{baseLanes:r,cachePool:J1()}}function zh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Hn),r}function fy(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(Je){if(g?_i(a):Ai(),(r=Tt)?(r=EE(r,Wn),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:yi!==null?{id:yr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},o=V1(r),o.return=a,a.child=o,tn=a,Tt=null)):r=null,r===null)throw xi(a);return Sm(r)?a.lanes=32:a.lanes=536870912,null}var O=f.children;return f=f.fallback,g?(Ai(),g=a.mode,O=ac({mode:"hidden",children:O},g),f=ma(f,g,o,null),O.return=a,f.return=a,O.sibling=f,a.child=O,f=a.child,f.memoizedState=Uh(o),f.childLanes=zh(r,_,o),a.memoizedState=Hh,Jl(null,f)):(_i(a),Fh(a,O))}var V=r.memoizedState;if(V!==null&&(O=V.dehydrated,O!==null)){if(b)a.flags&256?(_i(a),a.flags&=-257,a=qh(r,a,o)):a.memoizedState!==null?(Ai(),a.child=r.child,a.flags|=128,a=null):(Ai(),O=f.fallback,g=a.mode,f=ac({mode:"visible",children:f.children},g),O=ma(O,g,o,null),O.flags|=2,f.return=a,O.return=a,f.sibling=O,a.child=f,Ta(a,r.child,null,o),f=a.child,f.memoizedState=Uh(o),f.childLanes=zh(r,_,o),a.memoizedState=Hh,a=Jl(null,f));else if(_i(a),Sm(O)){if(_=O.nextSibling&&O.nextSibling.dataset,_)var ne=_.dgst;_=ne,f=Error(i(419)),f.stack="",f.digest=_,zl({value:f,source:null,stack:null}),a=qh(r,a,o)}else if(jt||_s(r,a,o,!1),_=(o&r.childLanes)!==0,jt||_){if(_=bt,_!==null&&(f=Wg(_,o),f!==0&&f!==V.retryLane))throw V.retryLane=f,ha(r,f),wn(_,r,f),Bh;vm(O)||mc(),a=qh(r,a,o)}else vm(O)?(a.flags|=192,a.child=r.child,a=null):(r=V.treeContext,Tt=Jn(O.nextSibling),tn=a,Je=!0,Ei=null,Wn=!1,r!==null&&G1(a,r),a=Fh(a,f.children),a.flags|=4096);return a}return g?(Ai(),O=f.fallback,g=a.mode,V=r.child,ne=V.sibling,f=Ur(V,{mode:"hidden",children:f.children}),f.subtreeFlags=V.subtreeFlags&65011712,ne!==null?O=Ur(ne,O):(O=ma(O,g,o,null),O.flags|=2),O.return=a,f.return=a,f.sibling=O,a.child=f,Jl(null,f),f=a.child,O=r.child.memoizedState,O===null?O=Uh(o):(g=O.cachePool,g!==null?(V=Pt._currentValue,g=g.parent!==V?{parent:V,pool:V}:g):g=J1(),O={baseLanes:O.baseLanes|o,cachePool:g}),f.memoizedState=O,f.childLanes=zh(r,_,o),a.memoizedState=Hh,Jl(r.child,f)):(_i(a),o=r.child,r=o.sibling,o=Ur(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 Fh(r,a){return a=ac({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function ac(r,a){return r=Mn(22,r,null,a),r.lanes=0,r}function qh(r,a,o){return Ta(a,r.child,null,o),r=Fh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function dy(r,a,o){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),ih(r.return,a,o)}function Vh(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 hy(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,M(Ot,_),rn(r,a,f,o),f=Je?Ul:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&dy(r,o,a);else if(r.tag===19)dy(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&&Gu(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),Vh(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&&Gu(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}Vh(a,!0,o,null,b,f);break;case"together":Vh(a,!1,null,null,void 0,f);break;default:a.memoizedState=null}return a.child}function $r(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=Ur(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=Ur(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function Yh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Hu(r)))}function tw(r,a,o){switch(a.tag){case 3:Te(a,a.stateNode.containerInfo),Ti(a,Pt,r.memoizedState.cache),pa();break;case 27:case 5:Oe(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,gh(a),null;break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(_i(a),a.flags|=128,null):(o&a.child.childLanes)!==0?fy(r,a,o):(_i(a),r=$r(r,a,o),r!==null?r.sibling:null);_i(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 hy(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),M(Ot,Ot.current),f)break;return null;case 22:return a.lanes=0,ay(r,a,o,a.pendingProps);case 24:Ti(a,Pt,r.memoizedState.cache)}return $r(r,a,o)}function my(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)jt=!0;else{if(!Yh(r,o)&&(a.flags&128)===0)return jt=!1,tw(r,a,o);jt=(r.flags&131072)!==0}else jt=!1,Je&&(a.flags&1048576)!==0&&$1(a,Ul,a.index);switch(a.lanes=0,a.tag){case 16:e:{var f=a.pendingProps;if(r=Ea(a.elementType),a.type=r,typeof r=="function")Qd(r)?(f=Sa(r,f),a.tag=1,a=uy(null,a,r,f,o)):(a.tag=0,a=jh(null,a,r,f,o));else{if(r!=null){var g=r.$$typeof;if(g===D){a.tag=11,a=ny(null,a,r,f,o);break e}else if(g===I){a.tag=14,a=ry(null,a,r,f,o);break e}}throw a=ce(r)||r,Error(i(306,a,""))}}return a;case 0:return jh(r,a,a.type,a.pendingProps,o);case 1:return f=a.type,g=Sa(f,a.pendingProps),uy(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,fh(r,a),Kl(a,f,null,o);var _=a.memoizedState;if(f=_.cache,Ti(a,Pt,f),f!==b.cache&&ah(a,[Pt],o,!0),Gl(),f=_.element,b.isDehydrated)if(b={element:f,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=cy(r,a,f,o);break e}else if(f!==g){g=Kn(Error(i(424)),a),zl(g),a=cy(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,Tt=Jn(r.firstChild),tn=a,Je=!0,Ei=null,Wn=!0,o=ab(a,null,f,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(pa(),f===g){a=$r(r,a,o);break e}rn(r,a,f,o)}a=a.child}return a;case 26:return ic(r,a),r===null?(o=_E(a.type,null,a.pendingProps,null))?a.memoizedState=o:Je||(o=a.type,r=a.pendingProps,f=Tc(ge.current).createElement(o),f[en]=a,f[vn]=r,an(f,o,r),Gt(f),a.stateNode=f):a.memoizedState=_E(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Oe(a),r===null&&Je&&(f=a.stateNode=vE(a.type,a.pendingProps,ge.current),tn=a,Wn=!0,g=Tt,Ii(a.type)?(Cm=g,Tt=Jn(f.firstChild)):Tt=g),rn(r,a,a.pendingProps.children,o),ic(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Je&&((g=f=Tt)&&(f=Ow(f,a.type,a.pendingProps,Wn),f!==null?(a.stateNode=f,tn=a,Tt=Jn(f.firstChild),Wn=!1,g=!0):g=!1),g||xi(a)),Oe(a),g=a.type,b=a.pendingProps,_=r!==null?r.memoizedProps:null,f=b.children,Em(g,b)?f=null:_!==null&&Em(g,_)&&(a.flags|=32),a.memoizedState!==null&&(g=yh(r,a,$k,null,null,o),po._currentValue=g),ic(r,a),rn(r,a,f,o),a.child;case 6:return r===null&&Je&&((r=o=Tt)&&(o=Lw(o,a.pendingProps,Wn),o!==null?(a.stateNode=o,tn=a,Tt=null,r=!0):r=!1),r||xi(a)),null;case 13:return fy(r,a,o);case 4:return Te(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=Ta(a,null,f,o):rn(r,a,f,o),a.child;case 11:return ny(r,a,a.type,a.pendingProps,o);case 7:return rn(r,a,a.pendingProps,o),a.child;case 8:return rn(r,a,a.pendingProps.children,o),a.child;case 12:return rn(r,a,a.pendingProps.children,o),a.child;case 10:return f=a.pendingProps,Ti(a,a.type,f.value),rn(r,a,f.children,o),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,ba(a),g=nn(g),f=f(g),a.flags|=1,rn(r,a,f,o),a.child;case 14:return ry(r,a,a.type,a.pendingProps,o);case 15:return iy(r,a,a.type,a.pendingProps,o);case 19:return hy(r,a,o);case 31:return ew(r,a,o);case 22:return ay(r,a,o,a.pendingProps);case 24:return ba(a),f=nn(Pt),r===null?(g=oh(),g===null&&(g=bt,b=sh(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=o),g=b),a.memoizedState={parent:f,cache:g},ch(a),Ti(a,Pt,g)):((r.lanes&o)!==0&&(fh(r,a),Kl(a,null,null,o),Gl()),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&&ah(a,[Pt],o,!0))),rn(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Gr(r){r.flags|=4}function $h(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(zy())r.flags|=8192;else throw xa=qu,uh}else r.flags&=-16777217}function py(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!RE(a))if(zy())r.flags|=8192;else throw xa=qu,uh}function sc(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Kg():536870912,r.lanes|=a,Bs|=a)}function eo(r,a){if(!Je)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 vt(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 nw(r,a,o){var f=a.pendingProps;switch(eh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(a),null;case 1:return vt(a),null;case 3:return o=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),qr(Pt),xe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Cs(a)?Gr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,nh())),vt(a),null;case 26:var g=a.type,b=a.memoizedState;return r===null?(Gr(a),b!==null?(vt(a),py(a,b)):(vt(a),$h(a,g,null,f,o))):b?b!==r.memoizedState?(Gr(a),vt(a),py(a,b)):(vt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==f&&Gr(a),vt(a),$h(a,g,r,f,o)),null;case 27:if(we(a),o=ge.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return vt(a),null}r=ee.current,Cs(a)?K1(a):(r=vE(g,f,o),a.stateNode=r,Gr(a))}return vt(a),null;case 5:if(we(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return vt(a),null}if(b=ee.current,Cs(a))K1(a);else{var _=Tc(ge.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[en]=a,b[vn]=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(an(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&&Gr(a)}}return vt(a),$h(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&Gr(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(r=ge.current,Cs(a)){if(r=a.stateNode,o=a.memoizedProps,f=null,g=tn,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}r[en]=a,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||fE(r.nodeValue,o)),r||xi(a,!0)}else r=Tc(r).createTextNode(f),r[en]=a,a.stateNode=r}return vt(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(f=Cs(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[en]=a}else pa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vt(a),r=!1}else o=nh(),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 vt(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=Cs(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[en]=a}else pa(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vt(a),g=!1}else g=nh(),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),sc(a,a.updateQueue),vt(a),null);case 4:return xe(),r===null&&mm(a.stateNode.containerInfo),vt(a),null;case 10:return qr(a.type),vt(a),null;case 19:if(Q(Ot),f=a.memoizedState,f===null)return vt(a),null;if(g=(a.flags&128)!==0,b=f.rendering,b===null)if(g)eo(f,!1);else{if(Rt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(b=Gu(r),b!==null){for(a.flags|=128,eo(f,!1),r=b.updateQueue,a.updateQueue=r,sc(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)q1(o,r),o=o.sibling;return M(Ot,Ot.current&1|2),Je&&zr(a,f.treeForkCount),a.child}r=r.sibling}f.tail!==null&&tt()>fc&&(a.flags|=128,g=!0,eo(f,!1),a.lanes=4194304)}else{if(!g)if(r=Gu(b),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,sc(a,r),eo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!b.alternate&&!Je)return vt(a),null}else 2*tt()-f.renderingStartTime>fc&&o!==536870912&&(a.flags|=128,g=!0,eo(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=tt(),r.sibling=null,o=Ot.current,M(Ot,g?o&1|2:o&1),Je&&zr(a,f.treeForkCount),r):(vt(a),null);case 22:case 23:return Bn(a),ph(),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&&(vt(a),a.subtreeFlags&6&&(a.flags|=8192)):vt(a),o=a.updateQueue,o!==null&&sc(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&&Q(ya),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),qr(Pt),vt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function rw(r,a){switch(eh(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return qr(Pt),xe(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return we(a),null;case 31:if(a.memoizedState!==null){if(Bn(a),a.alternate===null)throw Error(i(340));pa()}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));pa()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Q(Ot),null;case 4:return xe(),null;case 10:return qr(a.type),null;case 22:case 23:return Bn(a),ph(),r!==null&&Q(ya),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return qr(Pt),null;case 25:return null;default:return null}}function gy(r,a){switch(eh(a),a.tag){case 3:qr(Pt),xe();break;case 26:case 27:case 5:we(a);break;case 4:xe();break;case 31:a.memoizedState!==null&&Bn(a);break;case 13:Bn(a);break;case 19:Q(Ot);break;case 10:qr(a.type);break;case 22:case 23:Bn(a),ph(),r!==null&&Q(ya);break;case 24:qr(Pt)}}function to(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 V=o,ne=O;try{ne()}catch(de){ft(g,V,de)}}}f=f.next}while(f!==b)}}catch(de){ft(a,a.return,de)}}function by(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{lb(a,o)}catch(f){ft(r,r.return,f)}}}function yy(r,a,o){o.props=Sa(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){ft(r,a,f)}}function no(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 xr(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 Ey(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 Gh(r,a,o){try{var f=r.stateNode;_w(f,r.type,o,a),f[vn]=a}catch(g){ft(r,r.return,g)}}function xy(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ii(r.type)||r.tag===4}function Kh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||xy(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 Xh(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=jr));else if(f!==4&&(f===27&&Ii(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(Xh(r,a,o),r=r.sibling;r!==null;)Xh(r,a,o),r=r.sibling}function lc(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(lc(r,a,o),r=r.sibling;r!==null;)lc(r,a,o),r=r.sibling}function Ty(r){var a=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);an(a,f,o),a[en]=r,a[vn]=o}catch(b){ft(r,r.return,b)}}var Kr=!1,Ht=!1,Qh=!1,vy=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function iw(r,a){if(r=r.containerInfo,bm=wc,r=I1(r),qd(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,V=-1,ne=0,de=0,pe=r,re=null;t:for(;;){for(var ae;pe!==o||g!==0&&pe.nodeType!==3||(O=_+g),pe!==b||f!==0&&pe.nodeType!==3||(V=_+f),pe.nodeType===3&&(_+=pe.nodeValue.length),(ae=pe.firstChild)!==null;)re=pe,pe=ae;for(;;){if(pe===r)break t;if(re===o&&++ne===g&&(O=_),re===b&&++de===f&&(V=_),(ae=pe.nextSibling)!==null)break;pe=re,re=pe.parentNode}pe=ae}o=O===-1||V===-1?null:{start:O,end:V}}else o=null}o=o||{start:0,end:0}}else o=null;for(ym={focusedElem:r,selectionRange:o},wc=!1,Kt=a;Kt!==null;)if(a=Kt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Kt=r;else for(;Kt!==null;){switch(a=Kt,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=Sa(o.type,g);r=f.getSnapshotBeforeUpdate(Ae,b),f.__reactInternalSnapshotBeforeUpdate=r}catch(Ie){ft(o,o.return,Ie)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)Tm(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Tm(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,Kt=r;break}Kt=a.return}}function Sy(r,a,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:Qr(r,o),f&4&&to(5,o);break;case 1:if(Qr(r,o),f&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(_){ft(o,o.return,_)}else{var g=Sa(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(_){ft(o,o.return,_)}}f&64&&by(o),f&512&&no(o,o.return);break;case 3:if(Qr(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{lb(r,a)}catch(_){ft(o,o.return,_)}}break;case 27:a===null&&f&4&&Ty(o);case 26:case 5:Qr(r,o),a===null&&f&4&&Ey(o),f&512&&no(o,o.return);break;case 12:Qr(r,o);break;case 31:Qr(r,o),f&4&&Ay(r,o);break;case 13:Qr(r,o),f&4&&ky(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=hw.bind(null,o),Dw(r,o))));break;case 22:if(f=o.memoizedState!==null||Kr,!f){a=a!==null&&a.memoizedState!==null||Ht,g=Kr;var b=Ht;Kr=f,(Ht=a)&&!b?Wr(r,o,(o.subtreeFlags&8772)!==0):Qr(r,o),Kr=g,Ht=b}break;case 30:break;default:Qr(r,o)}}function Cy(r){var a=r.alternate;a!==null&&(r.alternate=null,Cy(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Ad(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 _t=null,Cn=!1;function Xr(r,a,o){for(o=o.child;o!==null;)_y(r,a,o),o=o.sibling}function _y(r,a,o){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(hn,o)}catch{}switch(o.tag){case 26:Ht||xr(o,a),Xr(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Ht||xr(o,a);var f=_t,g=Cn;Ii(o.type)&&(_t=o.stateNode,Cn=!1),Xr(r,a,o),fo(o.stateNode),_t=f,Cn=g;break;case 5:Ht||xr(o,a);case 6:if(f=_t,g=Cn,_t=null,Xr(r,a,o),_t=f,Cn=g,_t!==null)if(Cn)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(o.stateNode)}catch(b){ft(o,a,b)}else try{_t.removeChild(o.stateNode)}catch(b){ft(o,a,b)}break;case 18:_t!==null&&(Cn?(r=_t,bE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Ys(r)):bE(_t,o.stateNode));break;case 4:f=_t,g=Cn,_t=o.stateNode.containerInfo,Cn=!0,Xr(r,a,o),_t=f,Cn=g;break;case 0:case 11:case 14:case 15:ki(2,o,a),Ht||ki(4,o,a),Xr(r,a,o);break;case 1:Ht||(xr(o,a),f=o.stateNode,typeof f.componentWillUnmount=="function"&&yy(o,a,f)),Xr(r,a,o);break;case 21:Xr(r,a,o);break;case 22:Ht=(f=Ht)||o.memoizedState!==null,Xr(r,a,o),Ht=f;break;default:Xr(r,a,o)}}function Ay(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Ys(r)}catch(o){ft(a,a.return,o)}}}function ky(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Ys(r)}catch(o){ft(a,a.return,o)}}function aw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new vy),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new vy),a;default:throw Error(i(435,r.tag))}}function oc(r,a){var o=aw(r);a.forEach(function(f){if(!o.has(f)){o.add(f);var g=mw.bind(null,r,f);f.then(g,g)}})}function _n(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)){_t=O.stateNode,Cn=!1;break e}break;case 5:_t=O.stateNode,Cn=!1;break e;case 3:case 4:_t=O.stateNode.containerInfo,Cn=!0;break e}O=O.return}if(_t===null)throw Error(i(160));_y(b,_,g),_t=null,Cn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)wy(a,r),a=a.sibling}var or=null;function wy(r,a){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:_n(a,r),An(r),f&4&&(ki(3,r,r.return),to(3,r),ki(5,r,r.return));break;case 1:_n(a,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),f&64&&Kr&&(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=or;if(_n(a,r),An(r),f&512&&(Ht||o===null||xr(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[Nl]||b[en]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(f),g.head.insertBefore(b,g.querySelector("head > title"))),an(b,f,o),b[en]=r,Gt(b),f=b;break e;case"link":var _=wE("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),an(b,f,o),g.head.appendChild(b);break;case"meta":if(_=wE("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),an(b,f,o),g.head.appendChild(b);break;default:throw Error(i(468,f))}b[en]=r,Gt(b),f=b}r.stateNode=f}else NE(g,r.type,r.stateNode);else r.stateNode=kE(g,f,r.memoizedProps);else b!==f?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,f===null?NE(g,r.type,r.stateNode):kE(g,f,r.memoizedProps)):f===null&&r.stateNode!==null&&Gh(r,r.memoizedProps,o.memoizedProps)}break;case 27:_n(a,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),o!==null&&f&4&&Gh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(_n(a,r),An(r),f&512&&(Ht||o===null||xr(o,o.return)),r.flags&32){g=r.stateNode;try{ms(g,"")}catch(Ae){ft(r,r.return,Ae)}}f&4&&r.stateNode!=null&&(g=r.memoizedProps,Gh(r,g,o!==null?o.memoizedProps:g)),f&1024&&(Qh=!0);break;case 6:if(_n(a,r),An(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(Cc=null,g=or,or=vc(a.containerInfo),_n(a,r),or=g,An(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{Ys(a.containerInfo)}catch(Ae){ft(r,r.return,Ae)}Qh&&(Qh=!1,Ny(r));break;case 4:f=or,or=vc(r.stateNode.containerInfo),_n(a,r),An(r),or=f;break;case 12:_n(a,r),An(r);break;case 31:_n(a,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 13:_n(a,r),An(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(cc=tt()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 22:g=r.memoizedState!==null;var V=o!==null&&o.memoizedState!==null,ne=Kr,de=Ht;if(Kr=ne||g,Ht=de||V,_n(a,r),Ht=de,Kr=ne,An(r),f&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||V||Kr||Ht||Ca(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){V=o=a;try{if(b=V.stateNode,g)_=b.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{O=V.stateNode;var pe=V.memoizedProps.style,re=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;O.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(Ae){ft(V,V.return,Ae)}}}else if(a.tag===6){if(o===null){V=a;try{V.stateNode.nodeValue=g?"":V.memoizedProps}catch(Ae){ft(V,V.return,Ae)}}}else if(a.tag===18){if(o===null){V=a;try{var ae=V.stateNode;g?yE(ae,!0):yE(V.stateNode,!1)}catch(Ae){ft(V,V.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,oc(r,o))));break;case 19:_n(a,r),An(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,oc(r,f)));break;case 30:break;case 21:break;default:_n(a,r),An(r)}}function An(r){var a=r.flags;if(a&2){try{for(var o,f=r.return;f!==null;){if(xy(f)){o=f;break}f=f.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,b=Kh(r);lc(r,b,g);break;case 5:var _=o.stateNode;o.flags&32&&(ms(_,""),o.flags&=-33);var O=Kh(r);lc(r,O,_);break;case 3:case 4:var V=o.stateNode.containerInfo,ne=Kh(r);Xh(r,ne,V);break;default:throw Error(i(161))}}catch(de){ft(r,r.return,de)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Ny(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Ny(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Qr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Sy(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:xr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&yy(a,a.return,o),Ca(a);break;case 27:fo(a.stateNode);case 26:case 5:xr(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 Wr(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:Wr(g,b,o),to(4,b);break;case 1:if(Wr(g,b,o),f=b,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ne){ft(f,f.return,ne)}if(f=b,g=f.updateQueue,g!==null){var O=f.stateNode;try{var V=g.shared.hiddenCallbacks;if(V!==null)for(g.shared.hiddenCallbacks=null,g=0;g<V.length;g++)sb(V[g],O)}catch(ne){ft(f,f.return,ne)}}o&&_&64&&by(b),no(b,b.return);break;case 27:Ty(b);case 26:case 5:Wr(g,b,o),o&&f===null&&_&4&&Ey(b),no(b,b.return);break;case 12:Wr(g,b,o);break;case 31:Wr(g,b,o),o&&_&4&&Ay(g,b);break;case 13:Wr(g,b,o),o&&_&4&&ky(g,b);break;case 22:b.memoizedState===null&&Wr(g,b,o),no(b,b.return);break;case 30:break;default:Wr(g,b,o)}a=a.sibling}}function Wh(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&&Fl(o))}function Zh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Fl(r))}function ur(r,a,o,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Ry(r,a,o,f),a=a.sibling}function Ry(r,a,o,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:ur(r,a,o,f),g&2048&&to(9,a);break;case 1:ur(r,a,o,f);break;case 3:ur(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&&Fl(r)));break;case 12:if(g&2048){ur(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(V){ft(a,a.return,V)}}else ur(r,a,o,f);break;case 31:ur(r,a,o,f);break;case 13:ur(r,a,o,f);break;case 23:break;case 22:b=a.stateNode,_=a.alternate,a.memoizedState!==null?b._visibility&2?ur(r,a,o,f):ro(r,a):b._visibility&2?ur(r,a,o,f):(b._visibility|=2,Is(r,a,o,f,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Wh(_,a);break;case 24:ur(r,a,o,f),g&2048&&Zh(a.alternate,a);break;default:ur(r,a,o,f)}}function Is(r,a,o,f,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=r,_=a,O=o,V=f,ne=_.flags;switch(_.tag){case 0:case 11:case 15:Is(b,_,O,V,g),to(8,_);break;case 23:break;case 22:var de=_.stateNode;_.memoizedState!==null?de._visibility&2?Is(b,_,O,V,g):ro(b,_):(de._visibility|=2,Is(b,_,O,V,g)),g&&ne&2048&&Wh(_.alternate,_);break;case 24:Is(b,_,O,V,g),g&&ne&2048&&Zh(_.alternate,_);break;default:Is(b,_,O,V,g)}a=a.sibling}}function ro(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:ro(o,f),g&2048&&Wh(f.alternate,f);break;case 24:ro(o,f),g&2048&&Zh(f.alternate,f);break;default:ro(o,f)}a=a.sibling}}var io=8192;function Ms(r,a,o){if(r.subtreeFlags&io)for(r=r.child;r!==null;)Oy(r,a,o),r=r.sibling}function Oy(r,a,o){switch(r.tag){case 26:Ms(r,a,o),r.flags&io&&r.memoizedState!==null&&Yw(o,or,r.memoizedState,r.memoizedProps);break;case 5:Ms(r,a,o);break;case 3:case 4:var f=or;or=vc(r.stateNode.containerInfo),Ms(r,a,o),or=f;break;case 22:r.memoizedState===null&&(f=r.alternate,f!==null&&f.memoizedState!==null?(f=io,io=16777216,Ms(r,a,o),io=f):Ms(r,a,o));break;default:Ms(r,a,o)}}function Ly(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 ao(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];Kt=f,Iy(f,r)}Ly(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Dy(r),r=r.sibling}function Dy(r){switch(r.tag){case 0:case 11:case 15:ao(r),r.flags&2048&&ki(9,r,r.return);break;case 3:ao(r);break;case 12:ao(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,uc(r)):ao(r);break;default:ao(r)}}function uc(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];Kt=f,Iy(f,r)}Ly(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:ki(8,a,a.return),uc(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,uc(a));break;default:uc(a)}r=r.sibling}}function Iy(r,a){for(;Kt!==null;){var o=Kt;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:Fl(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,Kt=f;else e:for(o=r;Kt!==null;){f=Kt;var g=f.sibling,b=f.return;if(Cy(f),f===o){Kt=null;break e}if(g!==null){g.return=b,Kt=g;break e}Kt=b}}}var sw={getCacheForType:function(r){var a=nn(Pt),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return nn(Pt).controller.signal}},lw=typeof WeakMap=="function"?WeakMap:Map,lt=0,bt=null,Ge=null,We=0,ct=0,jn=null,wi=!1,Ps=!1,Jh=!1,Zr=0,Rt=0,Ni=0,_a=0,em=0,Hn=0,Bs=0,so=null,kn=null,tm=!1,cc=0,My=0,fc=1/0,dc=null,Ri=null,qt=0,Oi=null,js=null,Jr=0,nm=0,rm=null,Py=null,lo=0,im=null;function Un(){return(lt&2)!==0&&We!==0?We&-We:B.T!==null?cm():Zg()}function By(){if(Hn===0)if((We&536870912)===0||Je){var r=xu;xu<<=1,(xu&3932160)===0&&(xu=262144),Hn=r}else Hn=536870912;return r=Pn.current,r!==null&&(r.flags|=32),Hn}function wn(r,a,o){(r===bt&&(ct===2||ct===9)||r.cancelPendingCommit!==null)&&(Hs(r,0),Li(r,We,Hn,!1)),wl(r,o),((lt&2)===0||r!==bt)&&(r===bt&&((lt&2)===0&&(_a|=o),Rt===4&&Li(r,We,Hn,!1)),Tr(r))}function jy(r,a,o){if((lt&6)!==0)throw Error(i(327));var f=!o&&(a&127)===0&&(a&r.expiredLanes)===0||kl(r,a),g=f?cw(r,a):sm(r,a,!0),b=f;do{if(g===0){Ps&&!f&&Li(r,a,0,!1);break}else{if(o=r.current.alternate,b&&!ow(o)){g=sm(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=so;var V=O.current.memoizedState.isDehydrated;if(V&&(Hs(O,_).flags|=256),_=sm(O,_,!1),_!==2){if(Jh&&!V){O.errorRecoveryDisabledLanes|=b,_a|=b,g=4;break e}b=kn,kn=g,b!==null&&(kn===null?kn=b:kn.push.apply(kn,b))}g=_}if(b=!1,g!==2)continue}}if(g===1){Hs(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:kn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=cc+300-tt(),10<g)){if(Li(f,a,Hn,!wi),vu(f,0,!0)!==0)break e;Jr=a,f.timeoutHandle=pE(Hy.bind(null,f,o,kn,dc,tm,a,Hn,_a,Bs,wi,b,"Throttled",-0,0),g);break e}Hy(f,o,kn,dc,tm,a,Hn,_a,Bs,wi,b,null,-0,0)}}break}while(!0);Tr(r)}function Hy(r,a,o,f,g,b,_,O,V,ne,de,pe,re,ae){if(r.timeoutHandle=-1,pe=a.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jr},Oy(a,b,pe);var Ae=(b&62914560)===b?cc-tt():(b&4194048)===b?My-tt():0;if(Ae=$w(pe,Ae),Ae!==null){Jr=b,r.cancelPendingCommit=Ae(Gy.bind(null,r,a,b,o,f,g,_,O,V,de,pe,null,re,ae)),Li(r,b,_,!ne);return}}Gy(r,a,b,o,f,g,_,O,V)}function ow(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&=~em,a&=~_a,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var g=a;0<g;){var b=31-gt(g),_=1<<b;f[b]=-1,g&=~_}o!==0&&Xg(r,o,a)}function hc(){return(lt&6)===0?(oo(0),!1):!0}function am(){if(Ge!==null){if(ct===0)var r=Ge.return;else r=Ge,Fr=ga=null,Th(r),Ns=null,Vl=0,r=Ge;for(;r!==null;)gy(r.alternate,r),r=r.return;Ge=null}}function Hs(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,ww(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),Jr=0,am(),bt=r,Ge=o=Ur(r.current,null),We=a,ct=0,jn=null,wi=!1,Ps=kl(r,a),Jh=!1,Bs=Hn=em=_a=Ni=Rt=0,kn=so=null,tm=!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-gt(f),b=1<<g;a|=r[g],f&=~b}return Zr=a,Iu(),o}function Uy(r,a){je=null,B.H=Zl,a===ws||a===Fu?(a=nb(),ct=3):a===uh?(a=nb(),ct=4):ct=a===Bh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,jn=a,Ge===null&&(Rt=1,nc(r,Kn(a,r.current)))}function zy(){var r=Pn.current;return r===null?!0:(We&4194048)===We?Zn===null:(We&62914560)===We||(We&536870912)!==0?r===Zn:!1}function Fy(){var r=B.H;return B.H=Zl,r===null?Zl:r}function qy(){var r=B.A;return B.A=sw,r}function mc(){Rt=4,wi||(We&4194048)!==We&&Pn.current!==null||(Ps=!0),(Ni&134217727)===0&&(_a&134217727)===0||bt===null||Li(bt,We,Hn,!1)}function sm(r,a,o){var f=lt;lt|=2;var g=Fy(),b=qy();(bt!==r||We!==a)&&(dc=null,Hs(r,a)),a=!1;var _=Rt;e:do try{if(ct!==0&&Ge!==null){var O=Ge,V=jn;switch(ct){case 8:am(),_=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(a=!0);var ne=ct;if(ct=0,jn=null,Us(r,O,V,ne),o&&Ps){_=0;break e}break;default:ne=ct,ct=0,jn=null,Us(r,O,V,ne)}}uw(),_=Rt;break}catch(de){Uy(r,de)}while(!0);return a&&r.shellSuspendCounter++,Fr=ga=null,lt=f,B.H=g,B.A=b,Ge===null&&(bt=null,We=0,Iu()),_}function uw(){for(;Ge!==null;)Vy(Ge)}function cw(r,a){var o=lt;lt|=2;var f=Fy(),g=qy();bt!==r||We!==a?(dc=null,fc=tt()+500,Hs(r,a)):Ps=kl(r,a);e:do try{if(ct!==0&&Ge!==null){a=Ge;var b=jn;t:switch(ct){case 1:ct=0,jn=null,Us(r,a,b,1);break;case 2:case 9:if(eb(b)){ct=0,jn=null,Yy(a);break}a=function(){ct!==2&&ct!==9||bt!==r||(ct=7),Tr(r)},b.then(a,a);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:eb(b)?(ct=0,jn=null,Yy(a)):(ct=0,jn=null,Us(r,a,b,7));break;case 5:var _=null;switch(Ge.tag){case 26:_=Ge.memoizedState;case 5:case 27:var O=Ge;if(_?RE(_):O.stateNode.complete){ct=0,jn=null;var V=O.sibling;if(V!==null)Ge=V;else{var ne=O.return;ne!==null?(Ge=ne,pc(ne)):Ge=null}break t}}ct=0,jn=null,Us(r,a,b,5);break;case 6:ct=0,jn=null,Us(r,a,b,6);break;case 8:am(),Rt=6;break e;default:throw Error(i(462))}}fw();break}catch(de){Uy(r,de)}while(!0);return Fr=ga=null,B.H=f,B.A=g,lt=o,Ge!==null?0:(bt=null,We=0,Iu(),Rt)}function fw(){for(;Ge!==null&&!wt();)Vy(Ge)}function Vy(r){var a=my(r.alternate,r,Zr);r.memoizedProps=r.pendingProps,a===null?pc(r):Ge=a}function Yy(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=oy(o,a,a.pendingProps,a.type,void 0,We);break;case 11:a=oy(o,a,a.pendingProps,a.type.render,a.ref,We);break;case 5:Th(a);default:gy(o,a),a=Ge=q1(a,Zr),a=my(o,a,Zr)}r.memoizedProps=r.pendingProps,a===null?pc(r):Ge=a}function Us(r,a,o,f){Fr=ga=null,Th(a),Ns=null,Vl=0;var g=a.return;try{if(Jk(r,g,a,o,We)){Rt=1,nc(r,Kn(o,r.current)),Ge=null;return}}catch(b){if(g!==null)throw Ge=g,b;Rt=1,nc(r,Kn(o,r.current)),Ge=null;return}a.flags&32768?(Je||f===1?r=!0:Ps||(We&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))),$y(a,r)):pc(a)}function pc(r){var a=r;do{if((a.flags&32768)!==0){$y(a,wi);return}r=a.return;var o=nw(a.alternate,a,Zr);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 $y(r,a){do{var o=rw(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 Gy(r,a,o,f,g,b,_,O,V){r.cancelPendingCommit=null;do gc();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|=Kd,VA(r,o,b,_,O,V),r===bt&&(Ge=bt=null,We=0),js=a,Oi=r,Jr=o,nm=b,rm=g,Py=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,pw(ve,function(){return Zy(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=B.T,B.T=null,g=G.p,G.p=2,_=lt,lt|=4;try{iw(r,a,o)}finally{lt=_,G.p=g,B.T=f}}qt=1,Ky(),Xy(),Qy()}}function Ky(){if(qt===1){qt=0;var r=Oi,a=js,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=B.T,B.T=null;var f=G.p;G.p=2;var g=lt;lt|=4;try{wy(a,r);var b=ym,_=I1(r.containerInfo),O=b.focusedElem,V=b.selectionRange;if(_!==O&&O&&O.ownerDocument&&D1(O.ownerDocument.documentElement,O)){if(V!==null&&qd(O)){var ne=V.start,de=V.end;if(de===void 0&&(de=ne),"selectionStart"in O)O.selectionStart=ne,O.selectionEnd=Math.min(de,O.value.length);else{var pe=O.ownerDocument||document,re=pe&&pe.defaultView||window;if(re.getSelection){var ae=re.getSelection(),Ae=O.textContent.length,Ie=Math.min(V.start,Ae),mt=V.end===void 0?Ie:Math.min(V.end,Ae);!ae.extend&&Ie>mt&&(_=mt,mt=Ie,Ie=_);var K=L1(O,Ie),$=L1(O,mt);if(K&&$&&(ae.rangeCount!==1||ae.anchorNode!==K.node||ae.anchorOffset!==K.offset||ae.focusNode!==$.node||ae.focusOffset!==$.offset)){var te=pe.createRange();te.setStart(K.node,K.offset),ae.removeAllRanges(),Ie>mt?(ae.addRange(te),ae.extend($.node,$.offset)):(te.setEnd($.node,$.offset),ae.addRange(te))}}}}for(pe=[],ae=O;ae=ae.parentNode;)ae.nodeType===1&&pe.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<pe.length;O++){var he=pe[O];he.element.scrollLeft=he.left,he.element.scrollTop=he.top}}wc=!!bm,ym=bm=null}finally{lt=g,G.p=f,B.T=o}}r.current=a,qt=2}}function Xy(){if(qt===2){qt=0;var r=Oi,a=js,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=B.T,B.T=null;var f=G.p;G.p=2;var g=lt;lt|=4;try{Sy(r,a.alternate,a)}finally{lt=g,G.p=f,B.T=o}}qt=3}}function Qy(){if(qt===4||qt===3){qt=0,et();var r=Oi,a=js,o=Jr,f=Py;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qt=5:(qt=0,js=Oi=null,Wy(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Ri=null),Cd(o),a=a.stateNode,Ft&&typeof Ft.onCommitFiberRoot=="function")try{Ft.onCommitFiberRoot(hn,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=B.T,g=G.p,G.p=2,B.T=null;try{for(var b=r.onRecoverableError,_=0;_<f.length;_++){var O=f[_];b(O.value,{componentStack:O.stack})}}finally{B.T=a,G.p=g}}(Jr&3)!==0&&gc(),Tr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===im?lo++:(lo=0,im=r):lo=0,oo(0)}}function Wy(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Fl(a)))}function gc(){return Ky(),Xy(),Qy(),Zy()}function Zy(){if(qt!==5)return!1;var r=Oi,a=nm;nm=0;var o=Cd(Jr),f=B.T,g=G.p;try{G.p=32>o?32:o,B.T=null,o=rm,rm=null;var b=Oi,_=Jr;if(qt=0,js=Oi=null,Jr=0,(lt&6)!==0)throw Error(i(331));var O=lt;if(lt|=4,Dy(b.current),Ry(b,b.current,_,o),lt=O,oo(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(hn,b)}catch{}return!0}finally{G.p=g,B.T=f,Wy(r,a)}}function Jy(r,a,o){a=Kn(o,a),a=Ph(r.stateNode,a,2),r=Ci(r,a,2),r!==null&&(wl(r,2),Tr(r))}function ft(r,a,o){if(r.tag===3)Jy(r,r,o);else for(;a!==null;){if(a.tag===3){Jy(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=ey(2),f=Ci(a,o,2),f!==null&&(ty(o,f,a,r),wl(f,2),Tr(f));break}}a=a.return}}function lm(r,a,o){var f=r.pingCache;if(f===null){f=r.pingCache=new lw;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)||(Jh=!0,g.add(o),r=dw.bind(null,r,a,o),a.then(r,r))}function dw(r,a,o){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,bt===r&&(We&o)===o&&(Rt===4||Rt===3&&(We&62914560)===We&&300>tt()-cc?(lt&2)===0&&Hs(r,0):em|=o,Bs===We&&(Bs=0)),Tr(r)}function eE(r,a){a===0&&(a=Kg()),r=ha(r,a),r!==null&&(wl(r,a),Tr(r))}function hw(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),eE(r,o)}function mw(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),eE(r,o)}function pw(r,a){return Ne(r,a)}var bc=null,zs=null,om=!1,yc=!1,um=!1,Di=0;function Tr(r){r!==zs&&r.next===null&&(zs===null?bc=zs=r:zs=zs.next=r),yc=!0,om||(om=!0,bw())}function oo(r,a){if(!um&&yc){um=!0;do for(var o=!1,f=bc;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-gt(42|r)+1)-1,b&=g&~(_&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,iE(f,b))}else b=We,b=vu(f,f===bt?b:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(b&3)===0||kl(f,b)||(o=!0,iE(f,b));f=f.next}while(o);um=!1}}function gw(){tE()}function tE(){yc=om=!1;var r=0;Di!==0&&kw()&&(r=Di);for(var a=tt(),o=null,f=bc;f!==null;){var g=f.next,b=nE(f,a);b===0?(f.next=null,o===null?bc=g:o.next=g,g===null&&(zs=o)):(o=f,(r!==0||(b&3)!==0)&&(yc=!0)),f=g}qt!==0&&qt!==5||oo(r),Di!==0&&(Di=0)}function nE(r,a){for(var o=r.suspendedLanes,f=r.pingedLanes,g=r.expirationTimes,b=r.pendingLanes&-62914561;0<b;){var _=31-gt(b),O=1<<_,V=g[_];V===-1?((O&o)===0||(O&f)!==0)&&(g[_]=qA(O,a)):V<=a&&(r.expiredLanes|=O),b&=~O}if(a=bt,o=We,o=vu(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&&He(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||kl(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(f!==null&&He(f),Cd(o)){case 2:case 8:o=W;break;case 32:o=ve;break;case 268435456:o=qe;break;default:o=ve}return f=rE.bind(null,r),o=Ne(o,f),r.callbackPriority=a,r.callbackNode=o,a}return f!==null&&f!==null&&He(f),r.callbackPriority=2,r.callbackNode=null,2}function rE(r,a){if(qt!==0&&qt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(gc()&&r.callbackNode!==o)return null;var f=We;return f=vu(r,r===bt?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(jy(r,f,a),nE(r,tt()),r.callbackNode!=null&&r.callbackNode===o?rE.bind(null,r):null)}function iE(r,a){if(gc())return null;jy(r,a,!0)}function bw(){Nw(function(){(lt&6)!==0?Ne(fe,gw):tE()})}function cm(){if(Di===0){var r=As;r===0&&(r=Eu,Eu<<=1,(Eu&261888)===0&&(Eu=256)),Di=r}return Di}function aE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Au(""+r)}function sE(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 yw(r,a,o,f,g){if(a==="submit"&&o&&o.stateNode===g){var b=aE((g[vn]||null).action),_=f.submitter;_&&(a=(a=_[vn]||null)?aE(a.formAction):_.getAttribute("formAction"),a!==null&&(b=a,_=null));var O=new Ru("action","action",null,f,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Di!==0){var V=_?sE(g,_):new FormData(g);Rh(o,{pending:!0,data:V,method:g.method,action:b},null,V)}}else typeof b=="function"&&(O.preventDefault(),V=_?sE(g,_):new FormData(g),Rh(o,{pending:!0,data:V,method:g.method,action:b},b,V))},currentTarget:g}]})}}for(var fm=0;fm<Gd.length;fm++){var dm=Gd[fm],Ew=dm.toLowerCase(),xw=dm[0].toUpperCase()+dm.slice(1);lr(Ew,"on"+xw)}lr(B1,"onAnimationEnd"),lr(j1,"onAnimationIteration"),lr(H1,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(Pk,"onTransitionRun"),lr(Bk,"onTransitionStart"),lr(jk,"onTransitionCancel"),lr(U1,"onTransitionEnd"),ds("onMouseEnter",["mouseout","mouseover"]),ds("onMouseLeave",["mouseout","mouseover"]),ds("onPointerEnter",["pointerout","pointerover"]),ds("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uo="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(" "),Tw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(uo));function lE(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[_],V=O.instance,ne=O.currentTarget;if(O=O.listener,V!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=ne;try{b(g)}catch(de){Du(de)}g.currentTarget=null,b=V}else for(_=0;_<f.length;_++){if(O=f[_],V=O.instance,ne=O.currentTarget,O=O.listener,V!==b&&g.isPropagationStopped())break e;b=O,g.currentTarget=ne;try{b(g)}catch(de){Du(de)}g.currentTarget=null,b=V}}}}function Ke(r,a){var o=a[_d];o===void 0&&(o=a[_d]=new Set);var f=r+"__bubble";o.has(f)||(oE(a,r,2,!1),o.add(f))}function hm(r,a,o){var f=0;a&&(f|=4),oE(o,r,f,a)}var Ec="_reactListening"+Math.random().toString(36).slice(2);function mm(r){if(!r[Ec]){r[Ec]=!0,t1.forEach(function(o){o!=="selectionchange"&&(Tw.has(o)||hm(o,!1,r),hm(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Ec]||(a[Ec]=!0,hm("selectionchange",!1,a))}}function oE(r,a,o,f){switch(BE(a)){case 2:var g=Xw;break;case 8:g=Qw;break;default:g=Nm}o=g.bind(null,a,o,r),g=void 0,!Id||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 pm(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 V=_.tag;if((V===3||V===4)&&_.stateNode.containerInfo===g)return;_=_.return}for(;O!==null;){if(_=us(O),_===null)return;if(V=_.tag,V===5||V===6||V===26||V===27){f=b=_;continue e}O=O.parentNode}}f=f.return}h1(function(){var ne=b,de=Ld(o),pe=[];e:{var re=z1.get(r);if(re!==void 0){var ae=Ru,Ae=r;switch(r){case"keypress":if(wu(o)===0)break e;case"keydown":case"keyup":ae=mk;break;case"focusin":Ae="focus",ae=jd;break;case"focusout":Ae="blur",ae=jd;break;case"beforeblur":case"afterblur":ae=jd;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":ae=g1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=nk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=bk;break;case B1:case j1:case H1:ae=ak;break;case U1:ae=Ek;break;case"scroll":case"scrollend":ae=ek;break;case"wheel":ae=Tk;break;case"copy":case"cut":case"paste":ae=lk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=y1;break;case"toggle":case"beforetoggle":ae=Sk}var Ie=(a&4)!==0,mt=!Ie&&(r==="scroll"||r==="scrollend"),K=Ie?re!==null?re+"Capture":null:re;Ie=[];for(var $=ne,te;$!==null;){var he=$;if(te=he.stateNode,he=he.tag,he!==5&&he!==26&&he!==27||te===null||K===null||(he=Ol($,K),he!=null&&Ie.push(co($,he,te))),mt)break;$=$.return}0<Ie.length&&(re=new ae(re,Ae,null,o,de),pe.push({event:re,listeners:Ie}))}}if((a&7)===0){e:{if(re=r==="mouseover"||r==="pointerover",ae=r==="mouseout"||r==="pointerout",re&&o!==Od&&(Ae=o.relatedTarget||o.fromElement)&&(us(Ae)||Ae[os]))break e;if((ae||re)&&(re=de.window===de?de:(re=de.ownerDocument)?re.defaultView||re.parentWindow:window,ae?(Ae=o.relatedTarget||o.toElement,ae=ne,Ae=Ae?us(Ae):null,Ae!==null&&(mt=l(Ae),Ie=Ae.tag,Ae!==mt||Ie!==5&&Ie!==27&&Ie!==6)&&(Ae=null)):(ae=null,Ae=ne),ae!==Ae)){if(Ie=g1,he="onMouseLeave",K="onMouseEnter",$="mouse",(r==="pointerout"||r==="pointerover")&&(Ie=y1,he="onPointerLeave",K="onPointerEnter",$="pointer"),mt=ae==null?re:Rl(ae),te=Ae==null?re:Rl(Ae),re=new Ie(he,$+"leave",ae,o,de),re.target=mt,re.relatedTarget=te,he=null,us(de)===ne&&(Ie=new Ie(K,$+"enter",Ae,o,de),Ie.target=te,Ie.relatedTarget=mt,he=Ie),mt=he,ae&&Ae)t:{for(Ie=vw,K=ae,$=Ae,te=0,he=K;he;he=Ie(he))te++;he=0;for(var Re=$;Re;Re=Ie(Re))he++;for(;0<te-he;)K=Ie(K),te--;for(;0<he-te;)$=Ie($),he--;for(;te--;){if(K===$||$!==null&&K===$.alternate){Ie=K;break t}K=Ie(K),$=Ie($)}Ie=null}else Ie=null;ae!==null&&uE(pe,re,ae,Ie,!1),Ae!==null&&mt!==null&&uE(pe,mt,Ae,Ie,!0)}}e:{if(re=ne?Rl(ne):window,ae=re.nodeName&&re.nodeName.toLowerCase(),ae==="select"||ae==="input"&&re.type==="file")var at=A1;else if(C1(re))if(k1)at=Dk;else{at=Ok;var ke=Rk}else ae=re.nodeName,!ae||ae.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&Rd(ne.elementType)&&(at=A1):at=Lk;if(at&&(at=at(r,ne))){_1(pe,at,o,de);break e}ke&&ke(r,re,ne),r==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&Nd(re,"number",re.value)}switch(ke=ne?Rl(ne):window,r){case"focusin":(C1(ke)||ke.contentEditable==="true")&&(ys=ke,Vd=ne,Hl=null);break;case"focusout":Hl=Vd=ys=null;break;case"mousedown":Yd=!0;break;case"contextmenu":case"mouseup":case"dragend":Yd=!1,M1(pe,o,de);break;case"selectionchange":if(Mk)break;case"keydown":case"keyup":M1(pe,o,de)}var Ue;if(Ud)e:{switch(r){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else bs?v1(r,o)&&(Ze="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(Ze="onCompositionStart");Ze&&(E1&&o.locale!=="ko"&&(bs||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&bs&&(Ue=m1()):(bi=de,Md="value"in bi?bi.value:bi.textContent,bs=!0)),ke=xc(ne,Ze),0<ke.length&&(Ze=new b1(Ze,r,null,o,de),pe.push({event:Ze,listeners:ke}),Ue?Ze.data=Ue:(Ue=S1(o),Ue!==null&&(Ze.data=Ue)))),(Ue=_k?Ak(r,o):kk(r,o))&&(Ze=xc(ne,"onBeforeInput"),0<Ze.length&&(ke=new b1("onBeforeInput","beforeinput",null,o,de),pe.push({event:ke,listeners:Ze}),ke.data=Ue)),yw(pe,r,ne,o,de)}lE(pe,a)})}function co(r,a,o){return{instance:r,listener:a,currentTarget:o}}function xc(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=Ol(r,o),g!=null&&f.unshift(co(r,g,b)),g=Ol(r,a),g!=null&&f.push(co(r,g,b))),r.tag===3)return f;r=r.return}return[]}function vw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function uE(r,a,o,f,g){for(var b=a._reactName,_=[];o!==null&&o!==f;){var O=o,V=O.alternate,ne=O.stateNode;if(O=O.tag,V!==null&&V===f)break;O!==5&&O!==26&&O!==27||ne===null||(V=ne,g?(ne=Ol(o,b),ne!=null&&_.unshift(co(o,ne,V))):g||(ne=Ol(o,b),ne!=null&&_.push(co(o,ne,V)))),o=o.return}_.length!==0&&r.push({event:a,listeners:_})}var Sw=/\r\n?/g,Cw=/\u0000|\uFFFD/g;function cE(r){return(typeof r=="string"?r:""+r).replace(Sw,`
9
+ `).replace(Cw,"")}function fE(r,a){return a=cE(a),cE(r)===a}function ht(r,a,o,f,g,b){switch(o){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||ms(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&ms(r,""+f);break;case"className":Cu(r,"class",f);break;case"tabIndex":Cu(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(r,o,f);break;case"style":f1(r,f,b);break;case"data":if(a!=="object"){Cu(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=Au(""+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=Au(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=jr);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=Au(""+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),Su(r,"popover",f);break;case"xlinkActuate":Br(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Br(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Br(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Br(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Br(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Br(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Br(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Br(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Br(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Su(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=ZA.get(o)||o,Su(r,o,f))}}function gm(r,a,o,f,g,b){switch(o){case"style":f1(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"?ms(r,f):(typeof f=="number"||typeof f=="bigint")&&ms(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=jr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!n1.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[vn]||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,""):Su(r,o,f)}}}function an(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,V=null,ne=null;for(f in o)if(o.hasOwnProperty(f)){var de=o[f];if(de!=null)switch(f){case"name":g=de;break;case"type":_=de;break;case"checked":V=de;break;case"defaultChecked":ne=de;break;case"value":b=de;break;case"defaultValue":O=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,a));break;default:ht(r,a,f,de,o,null)}}l1(r,b,O,V,ne,_,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?hs(r,!!f,a,!1):o!=null&&hs(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)}u1(r,f,g,b);return;case"option":for(V in o)o.hasOwnProperty(V)&&(f=o[V],f!=null)&&(V==="selected"?r.selected=f&&typeof f!="function"&&typeof f!="symbol":ht(r,a,V,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<uo.length;f++)Ke(uo[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(ne in o)if(o.hasOwnProperty(ne)&&(f=o[ne],f!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:ht(r,a,ne,f,o,null)}return;default:if(Rd(a)){for(de in o)o.hasOwnProperty(de)&&(f=o[de],f!==void 0&&gm(r,a,de,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 _w(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,V=null,ne=null,de=null;for(ae in o){var pe=o[ae];if(o.hasOwnProperty(ae)&&pe!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":V=pe;default:f.hasOwnProperty(ae)||ht(r,a,ae,null,f,pe)}}for(var re in f){var ae=f[re];if(pe=o[re],f.hasOwnProperty(re)&&(ae!=null||pe!=null))switch(re){case"type":b=ae;break;case"name":g=ae;break;case"checked":ne=ae;break;case"defaultChecked":de=ae;break;case"value":_=ae;break;case"defaultValue":O=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:ae!==pe&&ht(r,a,re,ae,f,pe)}}wd(r,_,O,V,ne,de,b,g);return;case"select":ae=_=O=re=null;for(b in o)if(V=o[b],o.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":ae=V;default:f.hasOwnProperty(b)||ht(r,a,b,null,f,V)}for(g in f)if(b=f[g],V=o[g],f.hasOwnProperty(g)&&(b!=null||V!=null))switch(g){case"value":re=b;break;case"defaultValue":O=b;break;case"multiple":_=b;default:b!==V&&ht(r,a,g,b,f,V)}a=O,o=_,f=ae,re!=null?hs(r,!!o,re,!1):!!f!=!!o&&(a!=null?hs(r,!!o,a,!0):hs(r,!!o,o?[]:"",!1));return;case"textarea":ae=re=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":re=g;break;case"defaultValue":ae=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==b&&ht(r,a,_,g,f,b)}o1(r,re,ae);return;case"option":for(var Ae in o)re=o[Ae],o.hasOwnProperty(Ae)&&re!=null&&!f.hasOwnProperty(Ae)&&(Ae==="selected"?r.selected=!1:ht(r,a,Ae,null,f,re));for(V in f)re=f[V],ae=o[V],f.hasOwnProperty(V)&&re!==ae&&(re!=null||ae!=null)&&(V==="selected"?r.selected=re&&typeof re!="function"&&typeof re!="symbol":ht(r,a,V,re,f,ae));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 Ie in o)re=o[Ie],o.hasOwnProperty(Ie)&&re!=null&&!f.hasOwnProperty(Ie)&&ht(r,a,Ie,null,f,re);for(ne in f)if(re=f[ne],ae=o[ne],f.hasOwnProperty(ne)&&re!==ae&&(re!=null||ae!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:ht(r,a,ne,re,f,ae)}return;default:if(Rd(a)){for(var mt in o)re=o[mt],o.hasOwnProperty(mt)&&re!==void 0&&!f.hasOwnProperty(mt)&&gm(r,a,mt,void 0,f,re);for(de in f)re=f[de],ae=o[de],!f.hasOwnProperty(de)||re===ae||re===void 0&&ae===void 0||gm(r,a,de,re,f,ae);return}}for(var K in o)re=o[K],o.hasOwnProperty(K)&&re!=null&&!f.hasOwnProperty(K)&&ht(r,a,K,null,f,re);for(pe in f)re=f[pe],ae=o[pe],!f.hasOwnProperty(pe)||re===ae||re==null&&ae==null||ht(r,a,pe,re,f,ae)}function dE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Aw(){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&&dE(_)){for(_=0,O=g.responseEnd,f+=1;f<o.length;f++){var V=o[f],ne=V.startTime;if(ne>O)break;var de=V.transferSize,pe=V.initiatorType;de&&dE(pe)&&(V=V.responseEnd,_+=de*(V<O?1:(O-ne)/(V-ne)))}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 bm=null,ym=null;function Tc(r){return r.nodeType===9?r:r.ownerDocument}function hE(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 mE(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 Em(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 xm=null;function kw(){var r=window.event;return r&&r.type==="popstate"?r===xm?!1:(xm=r,!0):(xm=null,!1)}var pE=typeof setTimeout=="function"?setTimeout:void 0,ww=typeof clearTimeout=="function"?clearTimeout:void 0,gE=typeof Promise=="function"?Promise:void 0,Nw=typeof queueMicrotask=="function"?queueMicrotask:typeof gE<"u"?function(r){return gE.resolve(null).then(r).catch(Rw)}:pE;function Rw(r){setTimeout(function(){throw r})}function Ii(r){return r==="head"}function bE(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),Ys(a);return}f--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")f++;else if(o==="html")fo(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,fo(o);for(var b=o.firstChild;b;){var _=b.nextSibling,O=b.nodeName;b[Nl]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&b.rel.toLowerCase()==="stylesheet"||o.removeChild(b),b=_}}else o==="body"&&fo(r.ownerDocument.body);o=g}while(o);Ys(a)}function yE(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 Tm(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":Tm(o),Ad(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Ow(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[Nl])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 Lw(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 EE(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 vm(r){return r.data==="$?"||r.data==="$~"}function Sm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Dw(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 Cm=null;function xE(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 TE(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 vE(r,a,o){switch(a=Tc(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 fo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Ad(r)}var er=new Map,SE=new Set;function vc(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ei=G.d;G.d={f:Iw,r:Mw,D:Pw,C:Bw,L:jw,m:Hw,X:zw,S:Uw,M:Fw};function Iw(){var r=ei.f(),a=hc();return r||a}function Mw(r){var a=cs(r);a!==null&&a.tag===5&&a.type==="form"?Ub(a):ei.r(r)}var Fs=typeof document>"u"?null:document;function CE(r,a,o){var f=Fs;if(f&&typeof a=="string"&&a){var g=$n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),SE.has(g)||(SE.add(g),r={rel:r,crossOrigin:o,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),an(a,"link",r),Gt(a),f.head.appendChild(a)))}}function Pw(r){ei.D(r),CE("dns-prefetch",r,null)}function Bw(r,a){ei.C(r,a),CE("preconnect",r,a)}function jw(r,a,o){ei.L(r,a,o);var f=Fs;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=qs(r);break;case"script":b=Vs(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(ho(b))||a==="script"&&f.querySelector(mo(b))||(a=f.createElement("link"),an(a,"link",r),Gt(a),f.head.appendChild(a)))}}function Hw(r,a){ei.m(r,a);var o=Fs;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=Vs(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(mo(b)))return}f=o.createElement("link"),an(f,"link",r),Gt(f),o.head.appendChild(f)}}}function Uw(r,a,o){ei.S(r,a,o);var f=Fs;if(f&&r){var g=fs(f).hoistableStyles,b=qs(r);a=a||"default";var _=g.get(b);if(!_){var O={loading:0,preload:null};if(_=f.querySelector(ho(b)))O.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},o),(o=er.get(b))&&_m(r,o);var V=_=f.createElement("link");Gt(V),an(V,"link",r),V._p=new Promise(function(ne,de){V.onload=ne,V.onerror=de}),V.addEventListener("load",function(){O.loading|=1}),V.addEventListener("error",function(){O.loading|=2}),O.loading|=4,Sc(_,a,f)}_={type:"stylesheet",instance:_,count:1,state:O},g.set(b,_)}}}function zw(r,a){ei.X(r,a);var o=Fs;if(o&&r){var f=fs(o).hoistableScripts,g=Vs(r),b=f.get(g);b||(b=o.querySelector(mo(g)),b||(r=p({src:r,async:!0},a),(a=er.get(g))&&Am(r,a),b=o.createElement("script"),Gt(b),an(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function Fw(r,a){ei.M(r,a);var o=Fs;if(o&&r){var f=fs(o).hoistableScripts,g=Vs(r),b=f.get(g);b||(b=o.querySelector(mo(g)),b||(r=p({src:r,async:!0,type:"module"},a),(a=er.get(g))&&Am(r,a),b=o.createElement("script"),Gt(b),an(b,"link",r),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},f.set(g,b))}}function _E(r,a,o,f){var g=(g=ge.current)?vc(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=qs(o.href),o=fs(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=qs(o.href);var b=fs(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(ho(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||qw(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=Vs(o),o=fs(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 qs(r){return'href="'+$n(r)+'"'}function ho(r){return'link[rel="stylesheet"]['+r+"]"}function AE(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function qw(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}),an(a,"link",o),Gt(a),r.head.appendChild(a))}function Vs(r){return'[src="'+$n(r)+'"]'}function mo(r){return"script[async]"+r}function kE(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,Gt(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"),Gt(f),an(f,"style",g),Sc(f,o.precedence,r),a.instance=f;case"stylesheet":g=qs(o.href);var b=r.querySelector(ho(g));if(b)return a.state.loading|=4,a.instance=b,Gt(b),b;f=AE(o),(g=er.get(g))&&_m(f,g),b=(r.ownerDocument||r).createElement("link"),Gt(b);var _=b;return _._p=new Promise(function(O,V){_.onload=O,_.onerror=V}),an(b,"link",f),a.state.loading|=4,Sc(b,o.precedence,r),a.instance=b;case"script":return b=Vs(o.src),(g=r.querySelector(mo(b)))?(a.instance=g,Gt(g),g):(f=o,(g=er.get(b))&&(f=p({},o),Am(f,g)),r=r.ownerDocument||r,g=r.createElement("script"),Gt(g),an(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,Sc(f,o.precedence,r));return a.instance}function Sc(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 _m(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Am(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Cc=null;function wE(r,a,o){if(Cc===null){var f=new Map,g=Cc=new Map;g.set(o,f)}else g=Cc,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[Nl]||b[en]||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 NE(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Vw(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 RE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Yw(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=qs(f.href),b=a.querySelector(ho(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,Gt(b);return}b=a.ownerDocument||a,f=AE(f),(g=er.get(g))&&_m(f,g),b=b.createElement("link"),Gt(b);var _=b;_._p=new Promise(function(O,V){_.onload=O,_.onerror=V}),an(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 km=0;function $w(r,a){return r.stylesheets&&r.count===0&&kc(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var f=setTimeout(function(){if(r.stylesheets&&kc(r,r.stylesheets),r.unsuspend){var b=r.unsuspend;r.unsuspend=null,b()}},6e4+a);0<r.imgBytes&&km===0&&(km=62500*Aw());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&kc(r,r.stylesheets),r.unsuspend)){var b=r.unsuspend;r.unsuspend=null,b()}},(r.imgBytes>km?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)kc(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Ac=null;function kc(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Ac=new Map,a.forEach(Gw,r),Ac=null,_c.call(r))}function Gw(r,a){if(!(a.state.loading&4)){var o=Ac.get(r);if(o)var f=o.get(null);else{o=new Map,Ac.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 po={$$typeof:w,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Kw(r,a,o,f,g,b,_,O,V){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=vd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vd(0),this.hiddenUpdates=vd(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function OE(r,a,o,f,g,b,_,O,V,ne,de,pe){return r=new Kw(r,a,o,_,V,ne,de,pe,O),a=1,b===!0&&(a|=24),b=Mn(3,null,null,a),r.current=b,b.stateNode=r,a=sh(),a.refCount++,r.pooledCache=a,a.refCount++,b.memoizedState={element:f,isDehydrated:o,cache:a},ch(b),r}function LE(r){return r?(r=Ts,r):Ts}function DE(r,a,o,f,g,b){g=LE(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=Ci(r,f,a),o!==null&&(wn(o,r,a),$l(o,r,a))}function IE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function wm(r,a){IE(r,a),(r=r.alternate)&&IE(r,a)}function ME(r){if(r.tag===13||r.tag===31){var a=ha(r,67108864);a!==null&&wn(a,r,67108864),wm(r,67108864)}}function PE(r){if(r.tag===13||r.tag===31){var a=Un();a=Sd(a);var o=ha(r,a);o!==null&&wn(o,r,a),wm(r,a)}}var wc=!0;function Xw(r,a,o,f){var g=B.T;B.T=null;var b=G.p;try{G.p=2,Nm(r,a,o,f)}finally{G.p=b,B.T=g}}function Qw(r,a,o,f){var g=B.T;B.T=null;var b=G.p;try{G.p=8,Nm(r,a,o,f)}finally{G.p=b,B.T=g}}function Nm(r,a,o,f){if(wc){var g=Rm(f);if(g===null)pm(r,a,f,Nc,o),jE(r,f);else if(Zw(g,r,a,o,f))f.stopPropagation();else if(jE(r,f),a&4&&-1<Ww.indexOf(r)){for(;g!==null;){var b=cs(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var _=oa(b.pendingLanes);if(_!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;_;){var V=1<<31-gt(_);O.entanglements[1]|=V,_&=~V}Tr(b),(lt&6)===0&&(fc=tt()+500,oo(0))}}break;case 31:case 13:O=ha(b,2),O!==null&&wn(O,b,2),hc(),wm(b,2)}if(b=Rm(f),b===null&&pm(r,a,f,Nc,o),b===g)break;g=b}g!==null&&f.stopPropagation()}else pm(r,a,f,null,o)}}function Rm(r){return r=Ld(r),Om(r)}var Nc=null;function Om(r){if(Nc=null,r=us(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 Nc=r,null}function BE(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 fe:return 2;case W:return 8;case ve:case Me:return 32;case qe:return 268435456;default:return 32}default:return 32}}var Lm=!1,Mi=null,Pi=null,Bi=null,go=new Map,bo=new Map,ji=[],Ww="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 jE(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":go.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.delete(a.pointerId)}}function yo(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=cs(a),a!==null&&ME(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Zw(r,a,o,f,g){switch(a){case"focusin":return Mi=yo(Mi,r,a,o,f,g),!0;case"dragenter":return Pi=yo(Pi,r,a,o,f,g),!0;case"mouseover":return Bi=yo(Bi,r,a,o,f,g),!0;case"pointerover":var b=g.pointerId;return go.set(b,yo(go.get(b)||null,r,a,o,f,g)),!0;case"gotpointercapture":return b=g.pointerId,bo.set(b,yo(bo.get(b)||null,r,a,o,f,g)),!0}return!1}function HE(r){var a=us(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,Jg(r.priority,function(){PE(o)});return}}else if(a===31){if(a=c(o),a!==null){r.blockedOn=a,Jg(r.priority,function(){PE(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 Rc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=Rm(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);Od=f,o.target.dispatchEvent(f),Od=null}else return a=cs(o),a!==null&&ME(a),r.blockedOn=o,!1;a.shift()}return!0}function UE(r,a,o){Rc(r)&&o.delete(a)}function Jw(){Lm=!1,Mi!==null&&Rc(Mi)&&(Mi=null),Pi!==null&&Rc(Pi)&&(Pi=null),Bi!==null&&Rc(Bi)&&(Bi=null),go.forEach(UE),bo.forEach(UE)}function Oc(r,a){r.blockedOn===a&&(r.blockedOn=null,Lm||(Lm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Jw)))}var Lc=null;function zE(r){Lc!==r&&(Lc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lc===r&&(Lc=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(Om(f||o)===null)continue;break}var b=cs(o);b!==null&&(r.splice(a,3),a-=3,Rh(b,{pending:!0,data:g,method:o.method,action:f},f,g))}}))}function Ys(r){function a(V){return Oc(V,r)}Mi!==null&&Oc(Mi,r),Pi!==null&&Oc(Pi,r),Bi!==null&&Oc(Bi,r),go.forEach(a),bo.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);)HE(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[vn]||null;if(typeof b=="function")_||zE(o);else if(_){var O=null;if(b&&b.hasAttribute("formAction")){if(g=b,_=b[vn]||null)O=_.formAction;else if(Om(g)!==null)continue}else O=_.action;typeof O=="function"?o[f+1]=O:(o.splice(f,3),f-=3),zE(o)}}}function FE(){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 Dm(r){this._internalRoot=r}Dc.prototype.render=Dm.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,f=Un();DE(o,f,r,a,null,null)},Dc.prototype.unmount=Dm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;DE(r.current,2,null,r,null,null),hc(),a[os]=null}};function Dc(r){this._internalRoot=r}Dc.prototype.unstable_scheduleHydration=function(r){if(r){var a=Zg();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&&HE(r)}};var qE=t.version;if(qE!=="19.2.8")throw Error(i(527,qE,"19.2.8"));G.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 eN={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ic.isDisabled&&Ic.supportsFiber)try{hn=Ic.inject(eN),Ft=Ic}catch{}}return xo.createRoot=function(r,a){if(!s(r))throw Error(i(299));var o=!1,f="",g=Qb,b=Wb,_=Zb;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=OE(r,1,!1,null,null,o,f,null,g,b,_,FE),r[os]=a.current,mm(r),new Dm(a)},xo.hydrateRoot=function(r,a,o){if(!s(r))throw Error(i(299));var f=!1,g="",b=Qb,_=Wb,O=Zb,V=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&&(V=o.formState)),a=OE(r,1,!0,a,o??null,f,g,V,b,_,O,FE),a.context=LE(null),o=a.current,f=Un(),f=Sd(f),g=Si(f),g.callback=null,Ci(o,g,f),o=f,a.current.lanes=o,wl(a,o),Tr(a),r[os]=a.current,mm(r),new Dc(a)},xo.version="19.2.8",xo}var nx;function cN(){if(nx)return Bm.exports;nx=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=uN(),Bm.exports}var fN=cN();const dN=!1;var sv=C.useLayoutEffect;function hN(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 mN(e){const t=C.useRef(null);return C.useImperativeHandle(e,()=>t.current,[]),t}function Ko(e){return e[e.length-1]}function fl(e,t){return typeof e=="function"?e(t):e}const lv=Object.prototype.hasOwnProperty,pN=Object.prototype.propertyIsEnumerable;function ov(e){for(const t in e)if(lv.call(e,t))return!0;return!1}const gN=()=>Object.create(null),Aa=(e,t)=>Ba(e,t,gN);function Ba(e,t,n=()=>({}),i=0){if(e===t)return e;if(i>500)return t;const s=t,l=ax(e)&&ax(s);if(!l&&!(xf(e)&&xf(s)))return s;const u=l?e:rx(e);if(!u)return s;const c=l?s:rx(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 x=l?E:c[E],v=e[x],S=s[x];if(v===S){m[x]=v,(l?E<d:lv.call(e,x))&&p++;continue}if(v===null||S===null||typeof v!="object"||typeof S!="object"){m[x]=S;continue}const A=Ba(v,S,n,i+1);m[x]=A,A===v&&p++}return d===h&&p===d?e:m}function rx(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(!pN.call(e,i))return!1;t.push(i)}return t}function xf(e){if(!ix(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ix(n)||!n.hasOwnProperty("isPrototypeOf"))}function ix(e){return Object.prototype.toString.call(e)==="[object Object]"}function ax(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xi(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(!Xi(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)&&!Xi(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||!Xi(e[u],t[u],n)))return!1;return s===l}return!1}const bN=/[\x00-\x1f\x7f"<>`{}]/g;function yN(e){return e.replace(bN,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function sx(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 yN(t)}const EN=["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 To(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+=sx(e.slice(n,s.index))+s[0],n=t.lastIndex;i=i+sx(n?e.slice(n):e);let l=!1;return i.startsWith("//")&&(l=!0,i="/"+i.replace(/^\/+/,"")),{path:i,handledProtocolRelativeURL:l}}function xN(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function TN(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 L0(){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 Gi=4,uv=5;function cv(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 Yf(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,x=m?.params?.parse??m?.parseParams;for(;d<p;){const S=cv(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 F=D,R;E?R=s.static??=new Map:(F=D.toLowerCase(),R=s.staticInsensitive??=new Map);const I=R.get(F);if(I)A=I;else{const H=il(h);H.parent=s,H.depth=l,A=H,R.set(F,H)}break}case 1:case 3:case 2:{let D=h.substring(k,S[1]),F=h.substring(S[4],N);const R=E&&!!(D||F);E||(D=D.toLowerCase(),F=F.toLowerCase());const I=w===1?s.dynamic:w===3?s.optional:s.wildcard,H=w!==2&&!x&&I?.find(Y=>!Y.parse&&Y.caseSensitive===R&&Y.prefix===D&&Y.suffix===F);if(H)A=H;else{const Y=vN(w,h,R,D,F);A=Y,Y.parent=s,Y.depth=l;let U;w===1?U=s.dynamic??=[]:w===3?U=s.optional??=[]:U=s.wildcard??=[],U.push(Y),U.length===2&&u?.push(U)}break}}s=A}if(x&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf("/")+1)===95){const S=il(h);S.kind=uv,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=il(h);S.kind=Gi,S.parent=s,l++,S.depth=l,s.index=S,s=S}s.parse=x??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)Yf(e,t,h,d,s,l,u,c)}function fv(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 il(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 vN(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 SN(e,t){const n=il("/"),i=new Uint16Array(6),s=[];for(const l of e)Yf(!1,i,l,1,n,0,s);for(const l of s)l.sort(fv);t.masksTree=n,t.flatCache=vf(1e3)}function CN(e,t){e||="/";const n=t.flatCache.get(e);if(n!==void 0)return n;const i=D0(e,t.masksTree);return t.flatCache.set(e,i),i}function _N(e,t,n,i,s){e||="/",i||="/";const l=t?`case\0${e}`:e;let u=s.singleCache.get(l);return u||(u=il("/"),Yf(t,new Uint16Array(6),{from:e},1,u,0),s.singleCache.set(l,u)),D0(i,u,n)}function AN(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=D0(e,t.segmentTree,n)}catch(u){if(u instanceof URIError)l=null;else throw u}return l&&(l.branch=hv(l.route)),t.matchCache.set(i,l),l}function kN(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function wN(e,t=!1,n){const i=il(e.fullPath),s=new Uint16Array(6),l=[],u={},c={};let d=0;Yf(t,s,e,1,i,0,l,h=>{if(n?.(h,d),h.id in u&&L0(),u[h.id]=h,d!==0&&h.path){const m=kN(h.fullPath);(!c[m]||h.fullPath.endsWith("/"))&&(c[m]=h)}d++});for(const h of l)h.sort(fv);return{processedTree:{segmentTree:i,singleCache:vf(1e3),matchCache:vf(1e3),flatCache:null,masksTree:null},routesById:u,routesByPath:c}}function D0(e,t,n=!1){const i=e.split("/"),s=RN(e,i,t,n);if(!s)return null;const[l]=dv(e,i,s);return{route:s.node.route,rawParams:l}}function dv(e,t,n){const i=NN(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===Gi)break;if(m.kind===uv){h--,u--,d--;continue}const p=t[u],E=d;if(p&&(d+=p.length),m.kind===1){s??=n.node.fullPath.split("/");const x=s[h],v=m.prefix.length;if(x.charCodeAt(v)===123){const S=m.suffix.length,A=x.substring(v+2,x.length-S-1),k=p.substring(v,p.length-S);l[A]=decodeURIComponent(k)}else{const S=x.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 x=s[h],v=m.prefix.length,S=m.suffix.length,A=x.substring(v+3,x.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 x=m,v=e.substring(E+x.prefix.length,e.length-x.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 hv(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function NN(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function RN(e,t,n,i){if(e==="/"&&n.index)return{node:n.index,skipped:0};const s=!Ko(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:x,statics:v,dynamics:S,optionals:A}=m;let{extract:k,rawParams:N}=m;if(p.kind===2&&p.route&&!Pc(h,m))continue;if(p.parse){if(!lx(e,t,m))continue;N=m.rawParams,k=m.extract}i&&p.route&&p.kind!==Gi&&Pc(d,m)&&(d=m);const w=E===u;if(w&&(p.route&&(!l||p.kind===Gi||p.kind===2)&&Pc(h,m)&&(h=m),!p.optional&&!p.wildcard&&!p.index&&!p.pathless))continue;const D=w?void 0:t[E];let F;if(w&&p.index){const R={node:p.index,index:E,skipped:x,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N};let I=!0;if(p.index.parse&&(lx(e,t,R)||(I=!1)),I){if(!S&&!A&&!x&&ON(v,u))return R;Pc(h,R)&&(h=R)}}if(p.wildcard)for(let R=p.wildcard.length-1;R>=0;R--){const I=p.wildcard[R],{prefix:H,suffix:Y}=I;if(!(H&&(w||!(I.caseSensitive?D:F??=D.toLowerCase()).startsWith(H)))){if(Y){if(w)continue;const U=t.slice(E).join("/"),Z=U.slice(-Y.length);if((I.caseSensitive?Z:Z.toLowerCase())!==Y||U.length-Y.length<H.length)continue}c.push({node:I,index:u,skipped:x,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}}if(p.optional){const R=x|1<<p.depth+1;for(let I=p.optional.length-1;I>=0;I--){const H=p.optional[I];c.push({node:H,index:E,skipped:R,statics:v,dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w)for(let I=p.optional.length-1;I>=0;I--){const H=p.optional[I],{prefix:Y,suffix:U}=H;if(Y||U){const Z=H.caseSensitive?D:F??=D.toLowerCase();if(Y&&!Z.startsWith(Y)||U&&Z.indexOf(U,Z.length-U.length)<Y.length)continue}c.push({node:H,index:E+1,skipped:x,statics:v,dynamics:S,optionals:A+Mc(u,E),extract:k,rawParams:N})}}if(!w&&p.dynamic&&D)for(let R=p.dynamic.length-1;R>=0;R--){const I=p.dynamic[R],{prefix:H,suffix:Y}=I;if(H||Y){const U=I.caseSensitive?D:F??=D.toLowerCase();if(H&&!U.startsWith(H)||Y&&U.indexOf(Y,U.length-Y.length)<H.length)continue}c.push({node:I,index:E+1,skipped:x,statics:v,dynamics:S+Mc(u,E),optionals:A,extract:k,rawParams:N})}if(!w&&p.staticInsensitive){const R=p.staticInsensitive.get(F??=D.toLowerCase());R&&c.push({node:R,index:E+1,skipped:x,statics:v+Mc(u,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(!w&&p.static){const R=p.static.get(D);R&&c.push({node:R,index:E+1,skipped:x,statics:v+Mc(u,E),dynamics:S,optionals:A,extract:k,rawParams:N})}if(p.pathless)for(let R=p.pathless.length-1;R>=0;R--){const I=p.pathless[R];c.push({node:I,index:E,skipped:x,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 Mc(e,t){return 2**(e-t-1)}function ON(e,t){return e===2**(t-1)-1}function lx(e,t,n){let i,s;try{[i,s]=dv(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 Pc(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===Gi)>(e.node.kind===Gi)||t.node.kind===Gi==(e.node.kind===Gi)&&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 mv(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 pv(e){return ri(mv(e))}function Sf(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function LN(e,t,n){return Sf(e,n)===Sf(t,n)}function DN({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&&Ko(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&&(Ko(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 IN(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 zm(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=>ux(s,n)).join("/"):ux(i,n)}function ox({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=cv(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 x=t._splat;l._splat=x,l["*"]=x;const v=e.substring(m,d[1]),S=e.substring(d[4],p);if(!x){s=!0,(v||S)&&(h+="/"+v+S);continue}const A=zm("_splat",t,n);h+="/"+v+A+S;continue}if(E===1){const x=e.substring(d[2],d[3]);!s&&!(x in t)&&(s=!0),l[x]=t[x];const v=e.substring(m,d[1]),S=e.substring(d[4],p),A=zm(x,t,n)??"undefined";h+="/"+v+A+S;continue}if(E===3){const x=e.substring(d[2],d[3]),v=t[x];if(v==null)continue;l[x]=v;const S=e.substring(m,d[1]),A=e.substring(d[4],p),k=zm(x,t,n)??"";h+="/"+S+k+A;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:l,interpolatedPath:h||"/",isMissingParams:s}}function ux(e,t){const n=encodeURIComponent(e);return t?.(n)??n}function dl(e){return e?.isNotFound===!0}function MN(){try{return sessionStorage}catch{return}}const PN="tsr-scroll-restoration-v1_3",gv=MN();function BN(){try{return JSON.parse(gv?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function jN(){try{gv?.setItem(PN,JSON.stringify(Js))}catch{}}const Js=BN(),cx="data-scroll-restoration-id",HN=e=>e.state.__TSR_key||e.href;function UN(e){const t=e.getAttribute(cx);if(t)return`[${cx}="${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 Bc=!1;const of="window";function Lp(e){try{return typeof e=="function"?e():document.querySelector(e)}catch{}}function fx(e){const t=new Set;for(const n of e){if(n===of)continue;const i=Lp(n);i&&t.add(i)}return t}function zN(e,t){const n=e.options.scrollRestoration,i=e._scroll;n&&(i.restoring=!0);const s=e.options.getScrollRestorationKey||HN,l=new Set,u=c=>{const d=Js[c]||={};for(const h of l)h===document?d[of]={scrollX,scrollY}:h.isConnected&&(d[UN(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};n&&!i.restoration&&(i.restoration=!0,Bc=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{Bc||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())),jN()})),!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 x=s(c.toLocation),v=c.fromLocation&&s(c.fromLocation);if(i.restoring&&v&&v!==x){const S=Js[v];if(S){let A=Js[x];for(const k in S){if(k===of){if(m)continue}else{const N=Lp(k);if(!N||m&&h&&(E??=fx(h),E.has(N)))continue}A||(A=Js[x]={}),A[k]??=S[k]}}}Bc=!0;try{const S=c.toLocation.hash,A=c.toLocation.state.__hashScrollIntoViewOptions??!0;let k=!1;if(m){!S&&h&&(E??=fx(h));const N=S&&A&&p,w=i.restoring?Js[x]:void 0;if(w)for(const D in w){const{scrollX:F,scrollY:R}=w[D];if(D===of){if(N)continue;scrollTo({top:R,left:F,behavior:d}),k=!0}else{const I=Lp(D);I&&(I.scrollLeft=F,I.scrollTop=R,E?.delete(I))}}if(!S){const D={top:0,left:0,behavior:d};if(k||scrollTo(D),E)for(const F of E)F.scrollTo(D)}}!k&&S&&A&&document.getElementById(S)?.scrollIntoView(A)}finally{Bc=!1}}))}function FN(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 Fm(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function qN(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]=Fm(s):Array.isArray(l)?l.push(Fm(s)):n[i]=[l,Fm(s)]}return n}const VN=/^(?:\s|["[{\d-]|fa|nu|tr)/,YN=GN(JSON.parse),$N=KN(JSON.stringify,JSON.parse);function GN(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=qN(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function KN(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&&!VN.test(s))return s;try{return t(s),e(s)}catch{}}return s}return s=>{const l=FN(s,i);return l?`?${l}`:""}}const al="__root__";function XN(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 bv(e){return e instanceof Response&&!!e.options}function QN(e){return{input:({url:t})=>{for(const n of e)t=Dp(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=yv(e[n],t);return t}}}function WN(e){const t=pv(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 Dp(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 yv(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 ZN(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 x={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(()=>{TN(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 x}var Qi="__TSR_index",dx="popstate",hx="beforeunload";function JN(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=Cf(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[Qi];c=mx(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[Qi];c=mx(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[Qi]!==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 mx(e,t){t||(t={});const n=I0();return{...t,key:n,__TSR_key:n,[Qi]:e}}function e6(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const l=()=>s,u=I=>s=I,c=(I=>I),d=(()=>Cf(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const I=I0();t.history.replaceState({[Qi]:0,key:I,__TSR_key:I},"")}let h=d(),m,p=!1,E=!1,x=!1,v=!1;const S=()=>h;let A;const k=()=>{A&&(R._ignoreSubscribers=!0,(A[2]?t.history.pushState:t.history.replaceState)(A[1],"",A[0]),R._ignoreSubscribers=!1,A=void 0,m=void 0)},N=(I,H,Y)=>{const U=c(H),Z=!!A;Z||(m=h),h=Cf(H,Y),A=[U,Y,A?.[2]||I],Z||queueMicrotask(()=>k())},w=I=>{h=d(),R.notify({type:I})},D=async()=>{if(E){E=!1;return}const I=d(),H=I.state[Qi]-h.state[Qi],Y=H===1,U=H===-1,Z=!Y&&!U||p;p=!1;const X=Z?"GO":U?"BACK":"FORWARD",se=Z?{type:"GO",index:H}:{type:U?"BACK":"FORWARD"};if(x)x=!1;else{const ce=l();if(typeof document<"u"&&ce.length){for(const ie of ce)if(await ie.blockerFn({currentLocation:h,nextLocation:I,action:X})){E=!0,t.history.go(1),R.notify(se);return}}}h=d(),R.notify(se)},F=I=>{if(v){v=!1;return}let H=!1;const Y=l();if(typeof document<"u"&&Y.length)for(const U of Y){const Z=U.enableBeforeUnload??!0;if(Z===!0){H=!0;break}if(typeof Z=="function"&&Z()===!0){H=!0;break}}if(H)return I.preventDefault(),I.returnValue=""},R=JN({getLocation:S,getLength:()=>t.history.length,pushState:(I,H)=>N(!0,I,H),replaceState:(I,H)=>N(!1,I,H),back:I=>(I&&(x=!0),v=!0,t.history.back()),forward:I=>{I&&(x=!0),v=!0,t.history.forward()},go:I=>{p=!0,t.history.go(I)},createHref:I=>c(I),flush:k,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(hx,F,{capture:!0}),t.removeEventListener(dx,D)},onBlocked:()=>{m&&h!==m&&(h=m)},getBlockers:l,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(hx,F,{capture:!0}),t.addEventListener(dx,D),t.history.pushState=function(...I){const H=n.apply(t.history,I);return R._ignoreSubscribers||w("PUSH"),H},t.history.replaceState=function(...I){const H=i.apply(t.history,I);return R._ignoreSubscribers||w("REPLACE"),H},R}function t6(e){let t=e.replace(/[\x00-\x1f\x7f]/g,"");return t.startsWith("//")&&(t="/"+t.replace(/^\/+/,"")),t}function Cf(e,t){const n=t6(e),i=n.indexOf("#"),s=n.indexOf("?"),l=I0();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||{[Qi]:0,key:l,__TSR_key:l}}}function I0(){return(Math.random()+1).toString(36).substring(7)}function px(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function $f(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function gx({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:i,...s}){return s}function n6(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 r6=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??dN??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=IN(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=e6()),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=ZN(this.latestLocation,h),zN(this)}const c=this.options.basepath??"/",d=this.options.rewrite;if(l||s!==c||u!==d){this.basepath=c;const h=[],m=pv(c);m&&m!=="/"&&h.push(WN({basepath:c})),d&&h.push(d),this.rewrite=h.length===0?void 0:h.length===1?h[0]:QN(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=wN(this.routeTree,this.options.caseSensitive,(i,s)=>{i.init({originalIndex:s})});return this.options.routeMasks&&SN(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:To(d).path,external:!1,searchStr:N,search:Aa(i?.search,k),hash:To(m.slice(1)).path,state:Ba(i?.state,E)}}const x=new URL(p,this.origin),v=Dp(this.rewrite,x),S=this.options.parseSearch(v.search),A=this.options.stringifySearch(S);return v.search=A,{href:v.href.replace(v.origin,""),publicHref:p,pathname:To(v.pathname).path,external:!!this.rewrite&&v.origin!==this.origin,searchStr:A,search:Aa(i?.search,S),hash:To(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)=>DN({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=AN(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 Y=Cf(l.href,{});l={...l,to:Dp(this.rewrite,new URL(Y.pathname,this.origin)).pathname,search:this.options.parseSearch(Y.search),hash:Y.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=bx(l.params,m);const x=this.routesByPath[ri(p)];let v;if(x)v=this.getRouteBranch(x);else if(p.includes("$"))v=[];else{const[Y,U,Z]=this.getMatchedRoutes(p);v=Y,this.options.notFoundRoute&&(!Z||Z.path!=="/"&&U["**"])&&(v=[...v,this.options.notFoundRoute])}if(v.length&&ov(E))for(const Y of v){const U=Y.options.params?.stringify??Y.options.stringifyParams;if(U){E===m&&(E=Object.assign(Object.create(null),E));try{Object.assign(E,U(E))}catch{}}}const S=n.leaveParams?p:To(ox({path:p,params:E,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let A=h;if(n._includeValidateSearch&&this.options.search?.strict){const Y={};v.forEach(U=>{if(U.options.validateSearch)try{Object.assign(Y,uf(U.options.validateSearch,{...Y,...A}))}catch{}}),A=Y}A=a6(A,l,v,n._includeValidateSearch),A=Aa(h,A);const k=this.options.stringifySearch(A),N=l.hash===!0?u.hash:l.hash?fl(l.hash,u.hash):void 0,w=N?`#${N}`:"";let D=l.state===!0?u.state:l.state?fl(l.state,u.state):{};l.state&&(D=Ba(u.state,D));const F=`${S}${k}${w}`;let R,I,H=!1;if(this.rewrite){const Y=new URL(F,this.origin),U=yv(this.rewrite,Y);R=Y.href.replace(Y.origin,""),U.origin!==this.origin?(I=U.href,H=!0):I=U.pathname+U.search+U.hash}else R=xN(F),I=R;return{publicHref:I,href:R,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=CN(s.pathname,this.processedTree);if(l){const u=Object.assign(Object.create(null),l.rawParams),{from:c,params:d,...h}=l.route,m=bx(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)&&Xi(gx(s.state),gx(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 m6(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($f(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")&&px(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=sl,this.preloadRoute=n=>p6(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=_N(l.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,c.pathname,this.processedTree);return!d||n.params&&!Xi(d.rawParams,n.params,{partial:!0})?!1:i?.includeSearch??!0?Xi(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??$N,parseSearch:e.parseSearch??YN,protocolAllowlist:e.protocolAllowlist??EN}),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=hv(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?s6(this.options.notFoundMode,l):void 0,d=new Array(l.length),h=this._committed,m=(E,x)=>{const v=h[x];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 x=l[E],v=d[E-1];let S,A,k;{const se=v?.search??e.search,ce=v?._strictSearch??void 0;try{const ie=uf(x.options.validateSearch,{...se})??void 0;S={...se,...ie},A={...ce,...ie}}catch(ie){let B=ie;if(ie instanceof _f||(B=new _f(ie.message,{cause:ie})),t?.throwOnError)throw B;S=se,A={},k=B}}let N="",w="";try{N=x.options.loaderDeps?.({search:S})??"",w=N&&JSON.stringify(N)||""}catch(se){if(t?.throwOnError)throw se;k??=se}const{interpolatedPath:D,usedParams:F}=ox({path:x.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),R=x.id+D+w,I=m(x,E),H=this._cache.get(R)??(I?.id===R?I:void 0);p=H?._strictParams??Object.assign(F,p);let Y;if(!H)try{yx(x,p)}catch(se){if(dl(se)||bv(se)?Y=se:Y=new i6(se.message,{cause:se}),t?.throwOnError)throw Y}const U=I?"stay":"enter";let Z;if(H)Z={...H,cause:U,search:Aa(I?I.search:H.search,S),_strictSearch:A,searchError:k};else{const se=px(x)?"pending":"success";Z={id:R,ssr:x.options.ssr,index:E,routeId:x.id,params:I?.params??p,_strictParams:p,pathname:D,updatedAt:Date.now(),search:I?Aa(I.search,S):S,_strictSearch:A,searchError:k,status:se,isFetching:!1,error:void 0,paramsError:Y,context:{},abortController:t?._controller??new AbortController,cause:U,loaderDeps:I?Ba(I.loaderDeps,N):N,invalid:!1,preload:!1,staticData:x.options.staticData||{},fullPath:x.fullPath}}const X=c===x.id;Z._notFound&&!X&&(Z.error=void 0),Z._notFound=X,d[E]=Z}for(let E=0;E<d.length;E++){const x=d[E];x.params=x.cause==="stay"?Aa(x.params,p):p,t?._controller&&(x.context={})}return d}matchRoutesLightweight(e){const t=Ko(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=Ko(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 x of l)try{yx(x,E)}catch{}m=E}const p=[l,c.fullPath,d,m];return this.lightweightCache.set(e,[i,p]),p}},_f=class extends Error{},i6=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 _f("Async validation not supported");if(n.issues)throw new _f(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 a6(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((x,v)=>v(x),m):m);return c.postSearchFilters?c.postSearchFilters.reduce((x,v)=>v(x),E):E};s.push(h)}const d=c.validateSearch;if(i&&d){const h=({search:m,next:p,meta:E})=>{const x=p(m);try{const v=uf(d,x);if(E&&v)for(const S in v)S in x||(E.defaulted||=new Map).set(S,v[S]);return{...x,...v}}catch{}return x};s.push(h)}}const l=(u,c,d)=>{if(u>=s.length){if(!t.search)return{};if(t.search===!0)return c;const m=fl(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 s6(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 al}function bx(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,fl(e,n))}function yx(e,t){const n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Ip(e,t){return e.options[t]?.preload?.()}function l6(e,t){const n=Ip(e,"component");let i=Ip(e,"pendingComponent");return t&&(i?i=i.then(t):t()),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function sl(e,t,n){const i=()=>t===!1?void 0:t?Ip(e,t):l6(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 M0(e){const t=e.findIndex(n=>n.status!=="success"||n._notFound)+1;return t&&t<e.length?e.slice(0,t):e}const Nr=0,si=1,Gf=2,qn=3,Zi=[4];function Xo(e){return typeof e[0]=="number"}function Za(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 Ja(e,t){return e.routesById[t.routeId]}function Qo(e,t,n){return bv(e)?[qn,e]:dl(e)?(e.routeId||=n,[Gf,e]):t?(typeof e?.then=="function"&&(e=new Error("A Promise was thrown",{cause:e})),[si,e]):[Nr,e]}function P0(e,t){let n=Qo(t,!0,e.id);if(n[0]!==si)return n;try{e.options.onError?.(n[1])}catch(i){n=Qo(i,!0,e.id)}return n}function Po(e,t,n,i,s){return s[0].signal.aborted?Zi:H0(e,t,n,P0(n,i),s)}async function o6(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=Ja(e,p);p.abortController=n[0];const x=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:x})||{}:void 0;p.context={...x,...N}}catch(N){return ai(e,p),[m,Po(e,t,E,N,n)]}if(d.aborted)return[m,Zi];const S=p.paramsError??p.searchError;if(S!==void 0)return ai(e,p),[m,Po(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{Wo(e,p,"beforeLoad",n[0]);const N=await Za(A({...v,search:p.search,context:p.context,...e.options.additionalContext}),d);if(d.aborted)return[m,Zi];const w=H0(e,t,E,Qo(N,!1,E.id),n);if(w[0]!==Nr)return ai(e,p),[m,w];p.context={...p.context,...N}}catch(N){return ai(e,p),[m,Po(e,t,E,N,n)]}finally{p.status=k,Wo(e,p,!1,n[0])}}s()}function B0(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,B0(e,t,n)?.abort()}function On(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=B0(e,l,u);c&&s.push(c)}}for(const l of s)l.abort()}function j0(e){for(const t of e){const n=t._flight;n&&n[2]++}}function Wo(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 Ev(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 Ex(e,t,n,i,s,l,u){const c=u[0],d=c.signal;if(d.aborted)return Zi;if(!s)return[Nr,void 0];let h=n._flight;Wo(e,n,"loader",c);try{if(!h){const m=new AbortController;h=[Promise.resolve().then(()=>s(Ev(e,t,n,i,m,l,!!u[3]))).then(p=>Qo(p,!1,i.id),p=>Qo(p,!0,i.id)).then(p=>(p[0]!==Nr&&e._flights?.get(n.id)===h&&(e._flights.delete(n.id),h[2]||m.abort()),p[0]===si&&h[2]?P0(i,p[1]):p)),m,1],(e._flights??=new Map).set(n.id,h)}return n._flight=h,n.abortController=h[1],H0(e,t,i,await Za(h[0],d),u)}catch(m){if(m!==d||!d.aborted)throw m;return ai(e,n),Zi}finally{Wo(e,n,!1,c)}}function xx(e,t,n){t[0]!==qn&&(e.status="success",e.error=void 0,t[0]===Nr?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function u6(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 Tx(e,t){return t[0]===si||t[0]===Gf?{...e,status:t[0]===si?"error":"notFound",error:t[1],_flight:void 0}:e}function c6(e,t,n,i,s,l,u){const c=t[1][n],d=Ja(e,c),h=!!l[3],m=e._cache.get(c.id);let p,E=!1,x;try{if(c.status==="success"&&(p=d.options.shouldReload,typeof p=="function"&&(p=p(Ev(e,t,c,d,l[0],s,h))),l[0].signal.aborted&&(x=Zi)),!x)if(c.status!=="success")E=!0;else{const X=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>=X&&(l[5]||c.cause==="enter"||l[2].some(se=>se.routeId===c.routeId&&se.id!==c.id)))}}catch(X){c.invalid=!0,ai(e,c),x=Po(e,t,d,X,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||x?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,F=D&&!w&&(c.status!=="success"||!!v),R=n>=u?l[7]:void 0,I=d.lazyFn&&d._lazy!==!0?R:void 0;if(D&&!v&&(c.invalid=!1,c.updatedAt=Date.now()),N&&N[2]++,F){const X=c._flight;c._flight=N,B0(e,c,X)?.abort(),n>=u&&(c.status="pending"),R?.()}D||(c.isFetching=!1);const H=(x?Promise.resolve(x):F?Ex(e,t,c,d,A,s,l):Promise.resolve([Nr,c.loaderData])).then(X=>(F&&(xx(c,X,h),X[0]===Nr&&(v&&!l[0].signal.aborted&&u6(e,c,m),n>=u&&(c.status="pending"))),X)),Y=Za(Promise.resolve().then(()=>sl(d,void 0,I)),l[0].signal).then(()=>{},X=>t[1].some((se,ce)=>ce<=n&&(se.status==="error"||se.status==="notFound"||se._notFound))?void 0:[n,Po(e,t,d,X,l)]).then(X=>H.then(se=>(F&&!X&&se[0]===Nr&&c.status==="pending"&&!l[0].signal.aborted&&(c.status="success",R?.()),X)));if(i.push([n,H,Y]),!w)return H.then(X=>Tx(c,X));const U={...c,status:"pending",preload:!1,_flight:N};c.invalid=!1,c.isFetching="loader";const Z=Ex(e,t,U,d,A,s,l).then(X=>(c.isFetching=!1,xx(U,X,!1),X));return(t[2]??=[]).push([n,Z,Y,U]),Z.then(X=>Tx(U,X))}async function Mp(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=Ja(e,t[c]);try{const h=sl(d,!1);h&&await Za(h,i)}catch(h){if(h===i&&i.aborted)throw h}if(d.options.notFoundComponent)return c}return l?.routeId?u:s}function Fa(e,t){t[2]&&(On(e,t[2].map(n=>n[3])),t[2]=void 0)}async function vx(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]!==Nr&&(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 H0(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]:P0(n,d),l=!0}}return i}async function xv(e,t,n,i,s,l){const u=t[1];let c=await s,d=!1;const h=u.findIndex(x=>x._notFound),m=x=>x[1][0]===Gf?Mp(e,u,x,i.signal):x[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 x of n){if(x[0]>=p)break;const v=await x[1];if(v[0]!==Nr&&v[0]<qn&&!("loaderData"in u[x[0]])){c=[x[0],v],p=c[2]=await m(c);break}}}for(const x of n){if(x[0]>=p)break;const v=await x[2];if(v){c=v;break}}if((c?.[1][0]??0)>=qn){const x=c[1];if(x[0]!==qn||x[1].options.reloadDocument||x[2])return Fa(e,t),x;d=!0,c=[0,[si,new Error("Too many redirects")]]}const E=c?c[2]??await m(c):h;if(E>=0){const x=c?.[1],v=x?.[0],S=u[E],A=x?.[1],k=()=>{x&&(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(),x||l?.();const N=Ja(e,S);try{await Za(x?Promise.resolve().then(()=>sl(N,v===si?"errorComponent":"notFoundComponent")):Promise.all([sl(N),sl(N,"notFoundComponent")]),i.signal)}catch(w){if(w===i.signal&&i.signal.aborted)return Fa(e,t),Zi}x?d&&(i.abort(),await Promise.all([...n.map(w=>w[1]),...n.map(w=>w[2]),...(t[2]??[]).map(w=>w[1])]),Fa(e,t),On(e,u),k()):S.status="success"}return t}async function Tv(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=Ja(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 Za(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 vv(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 Mp(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 x=E?Promise.resolve(n[E-1]):void 0;const v=()=>{for(let k=E;k<h&&!l.aborted;k++)x=c6(e,s,k,p,x,i,m)},S=await o6(e,s,i,h,v,m);if(S){if(i[4]=!0,h=S[0],S[1][0]===Gf){const k=await Mp(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=xv(e,s,p,i[0],vx(p,S,s[2]),i[7]);s[2]?.length&&(s[3]=vx(s[2],void 0,void 0,A.then(k=>Xo(k)?0:M0(n).length,()=>0))),u=await A}catch(c){if(Fa(e,s),c===l&&l.aborted)return Zi;throw c}return Xo(u)?u:Tv(e,u,l,i[6]===n.length?i[6]:0)}function Pp(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=Ja(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 x=!1;if(s?.[1]===u.id?(x=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]&&!x&&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(()=>Pp(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 vo(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 Sx(e,t){const n=e._pending;if(!n)return;clearTimeout(n[3]);const i=n[2]-Date.now();if(!n[4]||i<=0||!M0(t[3]).some(l=>l.id===n[1]))return;let s;try{await Za(new Promise(l=>{s=setTimeout(l,i)}),t[0].signal)}catch{}clearTimeout(s)}function Sv(e,t){e._committed=t,e.stores.setMatches(t)}function f6(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=M0(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=Ja(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,Sv(e,n),On(e,[...l.values(),...s],[...n,...c.values()]),n6(e,s,n,t)}async function jc(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}function Cv(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 d6(e,t,n,i,s){const l=n.map(d=>({...d}));j0(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 xv(e,u,i,t[0],s)}catch(d){throw On(e,l),d}if(Xo(c)){On(e,l),c[0]===qn&&e._tx===t&&e._committed===n&&await Cv(e,t,c);return}if(await Tv(e,c,t[0].signal),e._tx!==t||e._committed!==n){On(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))}Sv(e,l),On(e,n,l)}async function h6(e,t,n,i,s,l){const u=await vv(e,t[2],t[3],[t[0],t[1],e._committed,void 0,s,n,l,i]);if(Xo(u)){const p=u[0]===qn&&e._tx===t;if((!p||u[1].options.reloadDocument)&&vo(e,t),On(e,t[3]),t[3]=[],!p)return;if(e._tx!==t){vo(e,t);return}await Cv(e,t,u);return}const c=u[1];if(e._tx===t&&await Sx(e,t),e._tx!==t){vo(e,t),On(e,c),Fa(e,u);return}const d=t[2],h=$f(d,e.stores.resolvedLocation.get()),m=u[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Sx(e,t),e._tx!==t){vo(e,t),On(e,c),Fa(e,u);return}const p=()=>{vo(e,t),f6(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){Fa(e,u);return}m?.length&&d6(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 m6(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=$f(l,i);e.emit({type:"onBeforeNavigate",...D}),m.signal.aborted||e.emit({type:"onBeforeLoad",...D})}if(m.signal.aborted){await jc(e,n);return}const E=s.href===l.href;let x=m;const v=e.matchRoutes(l,{_controller:m});j0(v);const S=h?d[1](v):void 0;if(S?x=h:h?.abort(),m.signal.aborted){On(e,v),await jc(e,n);return}e._preflight=void 0;let A;const k=()=>h6(e,w,E,()=>Pp(e,w),t?.sync,S),N=t?.sync?new Promise(D=>A=D):Promise.resolve().then(k).then(),w=[x,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&&Wo(e,D,!1)}n[0].abort(),On(e,n[3],w[3],!0)}if(e._tx!==w){On(e,w[3]),w[3]=[],A?.(),await jc(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))&&Pp(e,w),A?.(k()),await N,await jc(e,w)}async function p6(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}),j0(u),c=(e._preloads??=new Map).set(l,u),d=await vv(e,n,u,[l,i,s,!0])}finally{c&&(c=c.delete(l),On(e,u)),l.abort()}if(!Xo(d))return d[1];if(!c||d.length<3)return;n=d[2]}catch(h){dl(h)||console.error(h);return}}}const g6="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=al:this.parentRoute||L0();let s=i?al:n?.path;s&&s!=="/"&&(s=mv(s));const l=n?.id||s;let u=i?al: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=>XN({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.")}},b6=class extends _v{constructor(e){super(e)}},U0=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??y6,{error:e,reset:this.reset}):this.props.children}};function y6({error:e}){const[t,n]=C.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.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"})]}),y.jsx("div",{style:{height:".25rem"}}),t?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function E6({children:e,fallback:t=null}){return y.jsx(bl.Fragment,{children:Av()?e:t})}function Av(){return bl.useSyncExternalStore(x6,()=>!0,()=>!1)}function x6(){return()=>{}}var kv=C.createContext(null);function mr(e){return C.useContext(kv)}var Kf=C.createContext(void 0),T6=C.createContext(void 0),kt=(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))(kt||{});function v6({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 x=E!==void 0?E.nextDep:m.deps;if(x!==void 0&&x.dep===h){x.version=p,m.depsTail=x;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:x,prevSub:v,nextSub:void 0};x!==void 0&&(x.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,x=h.nextDep,v=h.nextSub,S=h.prevSub;return x!==void 0?x.prevDep=E:m.depsTail=E,E!==void 0?E.nextDep=x:m.deps=x,v!==void 0?v.prevSub=S:p.subsTail=S,S!==void 0?S.nextSub=v:(p.subs=v)===void 0&&n(p),x}function l(h){let m=h.nextSub,p;e:do{const E=h.sub;let x=E.flags;if(x&60?x&12?x&4?!(x&48)&&d(h,E)?(E.flags=x|40,x&=1):x=0:E.flags=x&-9|32:x=0:E.flags=x|32,x&2&&t(E),x&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,x=!1;e:do{const v=h.dep,S=v.flags;if(m.flags&16)x=!0;else if((S&17)===17){if(e(v)){const A=v.subs;A.nextSub!==void 0&&c(A),x=!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(!x){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,x){if(e(m)){k&&c(A),m=h.sub;continue}x=!1}else m.flags&=-33;m=h.sub;const N=h.nextDep;if(N!==void 0){h=N;continue e}}return x}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 S6(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 Bp=[];let cf=0;const{link:Cx,unlink:C6,propagate:_6,checkDirty:wv,shallowPropagate:_x}=v6({update(e){return e._update()},notify(e){Bp[jp++]=e,e.flags&=~kt.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=kt.Mutable|kt.Dirty,Af(e))}});let Hc=0,jp=0,_r,Hp=0;function A6(e){try{++Hp,e()}finally{--Hp||Nv()}}function Af(e){const t=e.depsTail;let n=t!==void 0?t.nextDep:e.deps;for(;n!==void 0;)n=C6(n,e)}function Nv(){if(!(Hp>0)){for(;Hc<jp;){const e=Bp[Hc];Bp[Hc++]=void 0,e.notify()}Hc=0,jp=0}}function Ax(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?kt.None:kt.Mutable,get(){return _r!==void 0&&Cx(s,_r,cf),s._snapshot},subscribe(l){const u=S6(l),c={current:!1},d=k6(()=>{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=kt.Mutable|kt.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&=~kt.RecursedCheck),Af(s)}}};return n?(s.flags=kt.Mutable|kt.Dirty,s.get=function(){const l=s.flags;if(l&kt.Dirty||l&kt.Pending&&wv(s.deps,s)){if(s._update()){const u=s.subs;u!==void 0&&_x(u)}}else l&kt.Pending&&(s.flags=l&~kt.Pending);return _r!==void 0&&Cx(s,_r,cf),s._snapshot}):s.set=function(l){if(s._update(l)){const u=s.subs;u!==void 0&&(_6(u),_x(u),Nv())}},s}function k6(e){const t=()=>{const i=_r;_r=n,++cf,n.depsTail=void 0,n.flags=kt.Watching|kt.RecursedCheck;try{return e()}finally{_r=i,n.flags&=~kt.RecursedCheck,Af(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:kt.Watching|kt.RecursedCheck,notify(){const i=this.flags;i&kt.Dirty||i&kt.Pending&&wv(this.deps,this)?t():this.flags=kt.Watching},stop(){this.flags=kt.None,this.depsTail=void 0,Af(this)}};return t(),n}var qm={exports:{}},Vm={},Ym={exports:{}},$m={};var kx;function w6(){if(kx)return $m;kx=1;var e=au();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 x=E(),v=i({inst:{value:x,getSnapshot:E}}),S=v[0].inst,A=v[1];return l(function(){S.value=x,S.getSnapshot=E,d(S)&&A({inst:S})},[p,x,E]),s(function(){return d(S)&&A({inst:S}),p(function(){d(S)&&A({inst:S})})},[p]),u(x),x}function d(p){var E=p.getSnapshot;p=p.value;try{var x=E();return!n(p,x)}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 $m.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,$m}var wx;function N6(){return wx||(wx=1,Ym.exports=w6()),Ym.exports}var Nx;function R6(){if(Nx)return Vm;Nx=1;var e=au(),t=N6();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 Vm.useSyncExternalStoreWithSelector=function(h,m,p,E,x){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(R){if(!N){if(N=!0,w=R,R=E(R),x!==void 0&&S.hasValue){var I=S.value;if(x(I,R))return D=I}return D=R}if(I=D,i(w,R))return I;var H=E(R);return x!==void 0&&x(I,H)?(w=R,I):(w=R,D=H)}var N=!1,w,D,F=p===void 0?null:p;return[function(){return k(m())},F===null?void 0:function(){return k(F())}]},[m,p,E,x]);var A=s(h,v[0],v[1]);return u(function(){S.hasValue=!0,S.value=A},[A]),d(A),A},Vm}var Rx;function O6(){return Rx||(Rx=1,qm.exports=R6()),qm.exports}var L6=O6();function D6(e,t){return e===t}function ui(e,t,n=D6){const i=C.useCallback(u=>{if(!e)return()=>{};const{unsubscribe:c}=e.subscribe(u);return c},[e]),s=C.useCallback(()=>e?.get(),[e]);return L6.useSyncExternalStoreWithSelector(i,s,s,t,n)}var Ox={};function Rv(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 es(e){const t=mr(),n=C.useContext(e.from?T6:Kf),i=e.from??n,s=t.stores.getMatchStore(i),l=Rv(e,t),u=ui(s,c=>c?l(c):Ox);if(u!==Ox)return u;(e.shouldThrow??!0)&&L0()}function Ov(e){return es({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Lv(e){const{select:t,...n}=e;return es({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Dv(e){return es({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 Iv(e){return es({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function z0(e){const t=mr();return C.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Mv(e){return es({...e,select:t=>e.select?e.select(t.context):t.context})}function Gm(e){const t=C.useRef(e);return Xi(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function I6(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function M6(e,t,n){if(e?.external)return Tf(e.href,n)?void 0:e.href;if(!F6(t)&&!(typeof t!="string"||t.indexOf(":")===-1))try{return new URL(t),Tf(t,n)?void 0:t}catch{}}function P6(e,t,n,i,s,l){if(l)return!1;if(n?.exact){if(!LN(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)&&!Xi(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:n?.includeHash?s&&e.hash===t.hash:!0}function B6(e,t){const n=mr(),i=mN(t),{activeProps:s,inactiveProps:l,activeOptions:u,to:c,preload:d,preloadDelay:h,preloadIntentProximity:m,hashScrollIntoView:p,replace:E,startTransition:x,resetScroll:v,viewTransition:S,children:A,target:k,disabled:N,style:w,className:D,onClick:F,onBlur:R,onFocus:I,onMouseEnter:H,onMouseLeave:Y,onTouchStart:U,ignoreBlocker:Z,params:X,search:se,hash:ce,state:ie,mask:B,reloadDocument:G,unsafeRelative:oe,from:le,_fromLocation:L,...z}=e,Q=Av(),M=Gm(e.search),ee=Gm(e.params),me=Gm(u),ge=C.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,M,ee,e.state,e.mask,e.unsafeRelative]),Se=C.useCallback(et=>{const tt=n.buildLocation({_fromLocation:et,...ge}),ln=z6(tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,tt.maskedLocation?tt.maskedLocation.external:tt.external,n.history,N),fe=M6(ln,c,n.protocolAllowlist);return[ln?.href,fe,P6(et,tt,me,n.basepath,Q,fe!==void 0)]},[me,N,Q,ge,n,c]),[Te,xe,Oe]=ui(n.stores.location,Se,I6),we=Oe?fl(s,{})??j6:Km,Le=Oe?Km:fl(l,{})??Km,ze=[D,we.className,Le.className].filter(Boolean).join(" "),$e=(w||we.style||Le.style)&&{...w,...we.style,...Le.style},ot=C.useRef(!1),Qe=e.reloadDocument||xe||N?!1:d??n.options.defaultPreload,Ct=h??n.options.defaultPreloadDelay??0,xt=C.useCallback(()=>{n.preloadRoute(ge).catch(et=>{console.warn(et),console.warn(g6)})},[n,ge]),Yt=C.useCallback(et=>{if(!et){Xm(i);return}if(!(et.isIntersecting??Qe==="intent")){et.isIntersecting===!1&&Xm(i);return}if(!Ct){xt();return}Bo.has(i)||Bo.set(i,setTimeout(()=>{Bo.delete(i),xt()},Ct))},[xt,i,Qe,Ct]);hN(i,Yt,Qe!=="viewport"),C.useEffect(()=>{ot.current||Qe==="render"&&(xt(),ot.current=!0)},[xt,Qe]);const Ne=et=>{const tt=et.currentTarget.getAttribute("target"),ln=k!==void 0?k:tt;!N&&!(et.metaKey||et.altKey||et.ctrlKey||et.shiftKey)&&!et.defaultPrevented&&(!ln||ln==="_self")&&et.button===0&&(et.preventDefault(),n.navigate({...ge,replace:E,resetScroll:v,hashScrollIntoView:p,startTransition:x,viewTransition:S,ignoreBlocker:Z}))};if(xe)return{...z,ref:i,href:xe,...A&&{children:A},...k&&{target:k},...N&&{disabled:N},...w&&{style:w},...D&&{className:D},...F&&{onClick:F},...R&&{onBlur:R},...I&&{onFocus:I},...H&&{onMouseEnter:H},...Y&&{onMouseLeave:Y},...U&&{onTouchStart:U}};const He=()=>{Qe==="intent"&&xt()},wt=()=>{Qe==="intent"&&Xm(i)};return{...z,...we,...Le,href:Te,ref:i,onClick:$s([F,Ne]),onBlur:$s([R,wt]),onFocus:$s([I,Yt]),onMouseEnter:$s([H,Yt]),onMouseLeave:$s([Y,wt]),onTouchStart:$s([U,He]),disabled:!!N,target:k,...$e&&{style:$e},...ze&&{className:ze},...N&&H6,...Oe&&U6}}var Km={},j6={className:"active"},H6={role:"link","aria-disabled":!0},U6={"data-status":"active","aria-current":"page"},Bo=new WeakMap,Xm=e=>{clearTimeout(Bo.get(e)),Bo.delete(e)},$s=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}};function z6(e,t,n,i){if(!i)return t?{href:e,external:!0}:{href:n.createHref(e)||"/",external:!1}}function F6(e){if(typeof e!="string")return!1;const t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Pv=C.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,...l}=B6(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)}),q6=class extends _v{constructor(e){super(e),this.useMatch=t=>es({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Mv({...t,from:this.id}),this.useSearch=t=>Iv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Lv({...t,from:this.id}),this.useLoaderData=t=>Ov({...t,from:this.id}),this.useNavigate=()=>z0({from:this.fullPath}),this.Link=bl.forwardRef((t,n)=>y.jsx(Pv,{ref:n,from:this.fullPath,...t}))}};function ka(e){return new q6(e)}var V6=class extends b6{constructor(e){super(e),this.useMatch=t=>es({select:t?.select,from:this.id,structuralSharing:t?.structuralSharing}),this.useRouteContext=t=>Mv({...t,from:this.id}),this.useSearch=t=>Iv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useParams=t=>Dv({select:t?.select,structuralSharing:t?.structuralSharing,from:this.id}),this.useLoaderDeps=t=>Lv({...t,from:this.id}),this.useLoaderData=t=>Ov({...t,from:this.id}),this.useNavigate=()=>z0({from:this.fullPath}),this.Link=bl.forwardRef((t,n)=>y.jsx(Pv,{ref:n,from:this.fullPath,...t}))}};function Y6(e){return new V6(e)}function $6(e){const t=mr(),n=`not-found-${ui(t.stores.location,i=>i.pathname)}-${ui(t.stores.status,i=>i)}`;return y.jsx(U0,{getResetKey:()=>n,onCatch:(i,s)=>{if(dl(i))e.onCatch?.(i,s);else throw i},errorComponent:({error:i})=>{if(dl(i))return e.fallback?.(i);throw i},children:e.children})}function G6(){return y.jsx("p",{children:"Not Found"})}function el(e){return y.jsx(y.Fragment,{children:e.children})}function Bv(e,t,n){return t.options.notFoundComponent?y.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{...n}):y.jsx(G6,{})}function Xf(e,t){const n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?y.jsx(n,{}):null}var K6=(e,t)=>e[0]===t[0]&&e[1]===t[1],jv=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n==="data-only"||!e.ssr,Hv=C.memo(function({routeId:t}){const n=mr();return y.jsx(X6,{router:n,match:ui(n.stores.getMatchStore(t),i=>i)})});function X6({router:e,match:t}){const n=e.routesById[t.routeId],i=Xf(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=jv(e,n,t.ssr)&&(n.options.wrapInSuspense??i??(n.options.errorComponent?.preload||c))?C.Suspense:el,h=s?U0:el,m=u?$6:el;return y.jsxs(n.isRoot?n.options.shellComponent??el:el,{children:[y.jsx(Kf.Provider,{value:t.routeId,children:y.jsx(d,{fallback:i,children:y.jsx(h,{getResetKey:()=>t,errorComponent:s,onCatch:(p,E)=>{if(dl(p))throw p.routeId??=t.routeId,p;l?.(p,E)},children:y.jsx(m,{fallback:p=>{if(p.routeId??=t.routeId,p.routeId!==t.routeId)throw p;return C.createElement(u,p)},children:c?y.jsx(E6,{fallback:i,children:y.jsx(Lx,{match:t})}):y.jsx(Lx,{match:t})})})})}),null]})}var Lx=C.memo(function({match:t}){const n=mr(),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?y.jsx(c,{},l):y.jsx(Uv,{})},[l,s.options.component,n.options.defaultComponent]);if(t.status==="pending"){if(n.ssr&&!jv(n,s,t.ssr))return u;if(n._tx)throw n._tx[5];return Xf(n,s)}if(t.status==="notFound")return Bv(n,s,t.error);if(t.status==="error")throw t.error;return u}),Uv=C.memo(function(){const t=mr(),n=C.useContext(Kf);let i,s,l;{const c=t.stores.getMatchStore(n);[i,s]=ui(c,d=>[!!d._notFound,d.error],K6),l=ui(t.stores.ids,d=>d[d.indexOf(n)+1])}if(i)return Bv(t,t.routesById[n],s);if(!l)return null;const u=y.jsx(Hv,{routeId:l});return n===al?y.jsx(C.Suspense,{fallback:Xf(t),children:u}):u});function zv(e,t){const n=e[1];e.length=0,n?.(t)}function Q6({t:e}){const t=mr(),n=t._rendered??=[];return t.startTransition=(i,s)=>new Promise(l=>{zv(n,!1),n.push(s,l),e(t),C.startTransition(i)}),sv(()=>{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",...$f(u,u)})}):t._tx||t.load({sync:!0}).catch(console.error),i},[t,t.history]),null}function W6(){const e=mr(),t=e.routesById[al],n=Xf(e,t),i=e.ssr?el:C.Suspense,s=y.jsxs(y.Fragment,{children:[y.jsx(Q6,{t:C.useState()[1]}),y.jsx(i,{fallback:n,children:y.jsx(Z6,{})})]});return e.options.InnerWrap?y.jsx(e.options.InnerWrap,{children:s}):s}function Z6(){const e=mr(),t=e._rendered,n=ui(e.stores.matches,u=>t[0]??u),i=n[0],s=i?.routeId;sv(()=>{t[0]===n&&zv(t,!0)},[t,n]);const l=s?y.jsx(Hv,{routeId:s}):null;return y.jsx(Kf.Provider,{value:s,children:e.options.disableGlobalCatchBoundary?l:y.jsx(U0,{getResetKey:()=>i,onCatch:void 0,children:l})})}var J6=e=>({createMutableStore:Ax,createReadonlyStore:Ax,batch:A6}),eR=e=>new tR(e),tR=class extends r6{constructor(e){super(e,J6)}};function nR({router:e,children:t,...n}){ov(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=y.jsx(kv.Provider,{value:e,children:t});return e.options.Wrap?y.jsx(e.options.Wrap,{children:i}):i}function rR({router:e,...t}){return y.jsx(nR,{router:e,...t,children:y.jsx(W6,{})})}function iR(e){const t=mr({warn:e?.router===void 0}),n=e?.router||t;return ui(n.stores.__store,Rv(e,n))}const aR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fv=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();var sR={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 lR=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,...sR,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Fv("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(lR,{ref:l,iconNode:t,className:Fv(`lucide-${aR(e)}`,i),...s}));return n.displayName=`${e}`,n};const Dx=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 oR=ut("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);const uR=ut("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);const cR=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 qv=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 ja=ut("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kf=ut("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const fR=ut("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const dR=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 Vv=ut("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);const hR=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 Qm=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 F0=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 mR=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 Ix=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 pR=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 Yv=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 ll=ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const gR=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 bR=ut("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);const $v=ut("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);const yR=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 ER=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 Gv=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 Mx=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 Kv=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 Xv=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 jo=ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var na=av(),xR=Object.defineProperty,TR=(e,t)=>xR(e,"name",{value:t,configurable:!0});function Up(e,[t,n]){return Math.min(n,Math.max(t,e))}TR(Up,"clamp");var vR=Object.defineProperty,yl=(e,t)=>vR(e,"name",{value:t,configurable:!0}),Qv=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dt(e,t,{checkForDefaultPrevented:n=!0}={}){return yl(function(s){if(e?.(s),n===!1||!s||!s.defaultPrevented)return t?.(s)},"handleEvent")}yl(Dt,"composeEventHandlers");function SR(e){if(!Qv)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}yl(SR,"getOwnerWindow");function zp(e){if(!Qv)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}yl(zp,"getOwnerDocument");function Wv(e,t=!1){const{activeElement:n}=zp(e);if(!n?.nodeName)return null;if(Zv(n)&&n.contentDocument)return Wv(n.contentDocument.body,t);if(t){const i=n.getAttribute("aria-activedescendant");if(i){const s=zp(n).getElementById(i);if(s)return s}}return n}yl(Wv,"getActiveElement");function Zv(e){return e.tagName==="IFRAME"}yl(Zv,"isFrame");var CR=Object.defineProperty,ir=(e,t)=>CR(e,"name",{value:t,configurable:!0});function _R(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 y.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(_R,"createContext");function lu(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:x,...v}=p,S=E?.[e]?.[d]||c,A=C.useMemo(()=>v,Object.values(v));return y.jsx(S.Provider,{value:A,children:x})},"Provider");h.displayName=l+"Provider";function m(p,E,x={}){const{optional:v=!1}=x,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,Jv(s,...t)]}ir(lu,"createContextScope");function Jv(...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(Jv,"composeContextScopes");var AR=Object.defineProperty,q0=(e,t)=>AR(e,"name",{value:t,configurable:!0});function Fp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}q0(Fp,"setRef");function eS(...e){return t=>{let n=!1;const i=e.map(s=>{const l=Fp(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():Fp(e[s],null)}}}}q0(eS,"composeRefs");function Mt(...e){return C.useCallback(eS(...e),e)}q0(Mt,"useComposedRefs");var kR=Object.defineProperty,pr=(e,t)=>kR(e,"name",{value:t,configurable:!0});function Ya(e){const t=C.forwardRef((n,i)=>{let{children:s,...l}=n,u=null,c=!1;const d=[];qp(s)&&typeof zc=="function"&&(s=zc(s._payload)),C.Children.forEach(s,E=>{if(iS(E)){c=!0;const x=E;let v="child"in x.props?x.props.child:x.props.children;qp(v)&&typeof zc=="function"&&(v=zc(v._payload)),u=NR(x,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?rS(u):void 0,m=Mt(i,h);if(!u){if(s||s===0)throw new Error(c?LR(e):OR(e));return s}const p=nS(l,u.props??{});return u.type!==C.Fragment&&(p.ref=i?m:h),C.cloneElement(u,p)});return t.displayName=`${e}.Slot`,t}pr(Ya,"createSlot");var tS=Symbol.for("radix.slottable");function wR(e){const t=pr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=tS,t}pr(wR,"createSlottable");var NR=pr((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 nS(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}}pr(nS,"mergeProps");function rS(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)}pr(rS,"getElementRef");function iS(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===tS}pr(iS,"isSlottable");var RR=Symbol.for("react.lazy");function qp(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===RR&&"_payload"in e&&aS(e._payload)}pr(qp,"isLazyComponent");function aS(e){return typeof e=="object"&&e!==null&&"then"in e}pr(aS,"isPromiseLike");var OR=pr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),LR=pr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),zc=su[" use ".trim().toString()],DR=Object.defineProperty,Wt=(e,t)=>DR(e,"name",{value:t,configurable:!0});function sS(e){const t=e+"CollectionProvider",[n,i]=lu(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=Wt(S=>{const{scope:A,children:k}=S,N=C.useRef(null),w=C.useRef(new Map).current;return y.jsx(s,{scope:A,itemMap:w,collectionRef:N,children:k})},"CollectionProvider");u.displayName=t;const c=e+"CollectionSlot",d=Ya(c),h=C.forwardRef((S,A)=>{const{scope:k,children:N}=S,w=l(c,k),D=Mt(A,w.collectionRef);return y.jsx(d,{ref:D,children:N})});h.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",E=Ya(m),x=C.forwardRef((S,A)=>{const{scope:k,children:N,...w}=S,D=C.useRef(null),F=Mt(A,D),R=l(m,k);return C.useEffect(()=>(R.itemMap.set(D,{ref:D,...w}),()=>{R.itemMap.delete(D)})),y.jsx(E,{[p]:"",ref:F,children:N})});x.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((R,I)=>w.indexOf(R.ref.current)-w.indexOf(I.ref.current))},[A.collectionRef,A.itemMap])}return Wt(v,"useCollection"),[{Provider:u,Slot:h,ItemSlot:x},v,i]}Wt(sS,"createCollection");var Px=new WeakMap,Ut,Fn,Wm=(Fn=class extends Map{constructor(n){super(n);$E(this,Ut);Im(this,Ut,[...super.keys()]),Px.set(this,!0)}set(n,i){return Px.get(this)&&(this.has(n)?on(this,Ut)[on(this,Ut).indexOf(n)]=n:on(this,Ut).push(n)),super.set(n,i),this}insert(n,i,s){const l=this.has(i),u=on(this,Ut).length,c=V0(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=[...on(this,Ut)];let E,x=!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{!x&&p[v-1]===i&&(x=!0);const S=p[x?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=on(this,Ut).indexOf(n)-1;if(!(i<0))return this.entryAt(i)}setBefore(n,i,s){const l=on(this,Ut).indexOf(n);return l===-1?this:this.insert(l,i,s)}after(n){let i=on(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=on(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 Im(this,Ut,[]),super.clear()}delete(n){const i=super.delete(n);return i&&on(this,Ut).splice(on(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(on(this,Ut),n);if(i!==void 0)return this.get(i)}entryAt(n){const i=df(on(this,Ut),n);if(i!==void 0)return[i,this.get(i)]}indexOf(n){return on(this,Ut).indexOf(n)}keyAt(n){return df(on(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,Wt(Fn,"OrderedDict"),Fn);function df(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=lS(e,t);return n===-1?void 0:e[n]}Wt(df,"at");function lS(e,t){const n=e.length,i=V0(t),s=i>=0?i:n+i;return s<0||s>=n?-1:s}Wt(lS,"toSafeIndex");function V0(e){return e!==e||e===0?0:Math.trunc(e)}Wt(V0,"toSafeInteger");function IR(e){const t=e+"CollectionProvider",[n,i]=lu(t),[s,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Wm,setItemMap:Wt(()=>{},"setItemMap")}),u=Wt(({state:w,...D})=>w?y.jsx(d,{...D,state:w}):y.jsx(c,{...D}),"CollectionProvider");u.displayName=t;const c=Wt(w=>{const D=A();return y.jsx(d,{...w,state:D})},"CollectionInit");c.displayName=t+"Init";const d=Wt(w=>{const{scope:D,children:F,state:R}=w,I=C.useRef(null),[H,Y]=C.useState(null),U=Mt(I,Y),[Z,X]=R;return C.useEffect(()=>{if(!H)return;const se=cS(()=>{});return se.observe(H,{childList:!0,subtree:!0}),()=>{se.disconnect()}},[H]),y.jsx(s,{scope:D,itemMap:Z,setItemMap:X,collectionRef:U,collectionRefObject:I,collectionElement:H,children:F})},"CollectionProviderImpl");d.displayName=t+"Impl";const h=e+"CollectionSlot",m=Ya(h),p=C.forwardRef((w,D)=>{const{scope:F,children:R}=w,I=l(h,F),H=Mt(D,I.collectionRef);return y.jsx(m,{ref:H,children:R})});p.displayName=h;const E=e+"CollectionItemSlot",x="data-radix-collection-item",v=Ya(E),S=C.forwardRef((w,D)=>{const{scope:F,children:R,...I}=w,H=C.useRef(null),[Y,U]=C.useState(null),Z=Mt(D,H,U),X=l(E,F),{setItemMap:se}=X,ce=C.useRef(I);oS(ce.current,I)||(ce.current=I);const ie=ce.current;return C.useEffect(()=>{const B=ie;return se(G=>Y?G.has(Y)?G.set(Y,{...B,element:Y}).toSorted(Vp):(G.set(Y,{...B,element:Y}),G.toSorted(Vp)):G),()=>{se(G=>!Y||!G.has(Y)?G:(G.delete(Y),new Wm(G)))}},[Y,ie,se]),y.jsx(v,{[x]:"",ref:Z,children:R})});S.displayName=E;function A(){return C.useState(new Wm)}Wt(A,"useInitCollection");function k(w){const{itemMap:D}=l(e+"CollectionConsumer",w);return D}return Wt(k,"useCollection"),[{Provider:u,Slot:p,ItemSlot:S},{createCollectionScope:i,useCollection:k,useInitCollection:A}]}Wt(IR,"createCollection");function oS(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}Wt(oS,"shallowEqual");function uS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Wt(uS,"isElementPreceding");function Vp(e,t){return!e[1].element||!t[1].element?0:uS(e[1].element,t[1].element)?-1:1}Wt(Vp,"sortByDocumentPosition");function cS(e){return new MutationObserver(n=>{for(const i of n)if(i.type==="childList"){e();return}})}Wt(cS,"getChildListObserver");var MR=Object.defineProperty,PR=(e,t)=>MR(e,"name",{value:t,configurable:!0}),BR=C.createContext(void 0);function fS(e){const t=C.useContext(BR);return e||t||"ltr"}PR(fS,"useDirection");var jR=Object.defineProperty,HR=(e,t)=>jR(e,"name",{value:t,configurable:!0}),UR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xn=UR.reduce((e,t)=>{const n=Ya(`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),y.jsx(d,{...c,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function dS(e,t){e&&na.flushSync(()=>e.dispatchEvent(t))}HR(dS,"dispatchDiscreteCustomEvent");var zR=Object.defineProperty,FR=(e,t)=>zR(e,"name",{value:t,configurable:!0});function Rr(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}FR(Rr,"useCallbackRef");var qR=Object.defineProperty,Qt=(e,t)=>qR(e,"name",{value:t,configurable:!0}),Yp="dismissableLayer.update",VR="dismissableLayer.pointerDownOutside",YR="dismissableLayer.focusOutside",Bx,hS=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),$R=C.forwardRef(Qt(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(hS),[E,x]=C.useState(null),v=E?.ownerDocument??globalThis?.document,[,S]=C.useState({}),A=Mt(n,x),k=Array.from(p.layers),[N]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=N?k.indexOf(N):-1,D=E?k.indexOf(E):-1,F=p.layersWithOutsidePointerEventsDisabled.size>0,R=D>=w,I=C.useRef(!1),H=mS(X=>{u?.(X),d?.(X),X.defaultPrevented||h?.()},{ownerDocument:v,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(X=>{if(!(X instanceof Node))return!1;const se=[...p.branches].some(ce=>ce.contains(X));return R&&!se},[p.branches,R])}),Y=pS(X=>{if(s&&I.current)return;const se=X.target;[...p.branches].some(ie=>ie.contains(se))||(c?.(X),d?.(X),X.defaultPrevented||h?.())},v),U=E?D===k.length-1:!1,Z=Rr(X=>{X.key==="Escape"&&(l?.(X),!X.defaultPrevented&&h&&(X.preventDefault(),h()))});return C.useEffect(()=>{if(U)return v.addEventListener("keydown",Z,{capture:!0}),()=>v.removeEventListener("keydown",Z,{capture:!0})},[v,U,Z]),C.useEffect(()=>{if(E)return i&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Bx=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(E)),p.layers.add(E),$p(),()=>{i&&(p.layersWithOutsidePointerEventsDisabled.delete(E),p.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Bx))}},[E,v,i,p]),C.useEffect(()=>()=>{E&&(p.layers.delete(E),p.layersWithOutsidePointerEventsDisabled.delete(E),$p())},[E,p]),C.useEffect(()=>{const X=Qt(()=>S({}),"handleUpdate");return document.addEventListener(Yp,X),()=>document.removeEventListener(Yp,X)},[]),y.jsx(xn.div,{...m,ref:A,style:{pointerEvents:F?R?"auto":"none":void 0,...t.style},onFocusCapture:Dt(t.onFocusCapture,Y.onFocusCapture),onBlurCapture:Dt(t.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:Dt(t.onPointerDownCapture,H.onPointerDownCapture)})},"DismissableLayer"));function GR(){const e=C.useContext(hS),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Qt(GR,"useDismissableLayerSurface");var KR=Qt(()=>!0,"IS_TRUE");function mS(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:l,shouldHandlePointerDownOutside:u=KR}=t,c=Rr(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()}Qt(E,"resetOutsideInteraction");function x(){return Array.from(m.current.values()).some(Boolean)}Qt(x,"isOutsideInteractionIntercepted");function v(w){if(!h.current)return;const D=w.target;D instanceof Node&&[...l].some(R=>R.contains(D))||m.current.set(w.type,!0),w.type==="click"&&window.setTimeout(()=>{h.current&&p.current()},0)}Qt(v,"handleInteractionCapture");function S(w){h.current&&m.current.set(w.type,!1)}Qt(S,"handleInteractionBubble");const A=Qt(w=>{if(w.target&&!d.current){let D=function(){n.removeEventListener("click",p.current);const R=x();E(),R||Y0(VR,c,F,{discrete:!0})};if(Qt(D,"handleAndDispatchPointerDownOutsideEvent"),!u(w.target)){n.removeEventListener("click",p.current),E(),d.current=!1;return}const F={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:Qt(()=>d.current=!0,"onPointerDownCapture")}}Qt(mS,"usePointerDownOutside");function pS(e,t=globalThis?.document){const n=Rr(e),i=C.useRef(!1);return C.useEffect(()=>{const s=Qt(l=>{l.target&&!i.current&&Y0(YR,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:Qt(()=>i.current=!0,"onFocusCapture"),onBlurCapture:Qt(()=>i.current=!1,"onBlurCapture")}}Qt(pS,"useFocusOutside");function $p(){const e=new CustomEvent(Yp);document.dispatchEvent(e)}Qt($p,"dispatchUpdate");function Y0(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?dS(s,l):s.dispatchEvent(l)}Qt(Y0,"handleAndDispatchCustomEvent");var XR=Object.defineProperty,$0=(e,t)=>XR(e,"name",{value:t,configurable:!0}),Fc=0,Gs=null;function QR(e){return G0(),e.children}$0(QR,"FocusGuards");function G0(){C.useEffect(()=>{Gs||(Gs={start:Gp(),end:Gp()});const{start:e,end:t}=Gs;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Fc++,()=>{Fc===1&&(Gs?.start.remove(),Gs?.end.remove(),Gs=null),Fc=Math.max(0,Fc-1)}},[])}$0(G0,"useFocusGuards");function Gp(){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}$0(Gp,"createFocusGuard");var WR=Object.defineProperty,bn=(e,t)=>WR(e,"name",{value:t,configurable:!0}),Zm="focusScope.autoFocusOnMount",Jm="focusScope.autoFocusOnUnmount",jx={bubbles:!1,cancelable:!0},ZR=C.forwardRef(bn(function(t,n){const{loop:i=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...c}=t,[d,h]=C.useState(null),m=Rr(l),p=Rr(u),E=C.useRef(null),x=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 F=D.target;d.contains(F)?E.current=F:ni(E.current,{select:!0})},k=function(D){if(v.paused||!d)return;const F=D.relatedTarget;F!==null&&(d.contains(F)||ni(E.current,{select:!0}))},N=function(D){if(document.activeElement===document.body)for(const R of D)R.removedNodes.length>0&&ni(d)};bn(A,"handleFocusIn"),bn(k,"handleFocusOut"),bn(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){Hx.add(v);const A=document.activeElement;if(!d.contains(A)){const N=new CustomEvent(Zm,jx);d.addEventListener(Zm,m),d.dispatchEvent(N),N.defaultPrevented||(gS(TS(K0(d)),{select:!0}),document.activeElement===A&&ni(d))}return()=>{d.removeEventListener(Zm,m),setTimeout(()=>{const N=new CustomEvent(Jm,jx);d.addEventListener(Jm,p),d.dispatchEvent(N),N.defaultPrevented||ni(A??document.body,{select:!0}),d.removeEventListener(Jm,p),Hx.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,F]=bS(w);D&&F?!A.shiftKey&&N===F?(A.preventDefault(),i&&ni(D,{select:!0})):A.shiftKey&&N===D&&(A.preventDefault(),i&&ni(F,{select:!0})):N===w&&A.preventDefault()}},[i,s,v.paused]);return y.jsx(xn.div,{tabIndex:-1,...c,ref:x,onKeyDown:S})},"FocusScope"));function gS(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ni(i,{select:t}),document.activeElement!==n)return}bn(gS,"focusFirst");function bS(e){const t=K0(e),n=Kp(t,e),i=Kp(t.reverse(),e);return[n,i]}bn(bS,"getTabbableEdges");function K0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:bn(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}bn(K0,"getTabbableCandidates");function Kp(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const i of e)if(!(n?!i.checkVisibility({checkVisibilityCSS:!0}):yS(i,{upTo:t})))return i}bn(Kp,"findVisible");function yS(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}bn(yS,"isHidden");function ES(e){return e instanceof HTMLInputElement&&"select"in e}bn(ES,"isSelectableInput");function ni(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ES(e)&&t&&e.select()}}bn(ni,"focus");var Hx=xS();function xS(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Xp(e,t),e.unshift(t)},remove(t){e=Xp(e,t),e[0]?.resume()}}}bn(xS,"createFocusScopesStack");function Xp(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}bn(Xp,"arrayRemove");function TS(e){return e.filter(t=>t.tagName!=="A")}bn(TS,"removeLinks");var Jt=globalThis?.document?C.useLayoutEffect:()=>{},JR=Object.defineProperty,e4=(e,t)=>JR(e,"name",{value:t,configurable:!0}),t4=su[" useId ".trim().toString()]||(()=>{}),n4=0;function X0(e){const[t,n]=C.useState(t4());return Jt(()=>{e||n(i=>i??String(n4++))},[e]),e||(t?`radix-${t}`:"")}e4(X0,"useId");const r4=["top","right","bottom","left"],Ji=Math.min,li=Math.max,wf=Math.round,qc=Math.floor,oi=e=>({x:e,y:e}),i4={left:"right",right:"left",bottom:"top",top:"bottom"};function vS(e,t,n){return li(e,Ji(t,n))}function ci(e,t){return typeof e=="function"?e(t):e}function ea(e){return e.split("-")[0]}function El(e){return e.split("-")[1]}function Q0(e){return e==="x"?"y":"x"}function W0(e){return e==="y"?"height":"width"}function wr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Z0(e){return Q0(wr(e))}function a4(e,t,n){n===void 0&&(n=!1);const i=El(e),s=Z0(e),l=W0(s);let u=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Nf(u)),[u,Nf(u)]}function s4(e){const t=Nf(e);return[Qp(e),t,Qp(t)]}function Qp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ux=["left","right"],zx=["right","left"],l4=["top","bottom"],o4=["bottom","top"];function u4(e,t,n){switch(e){case"top":case"bottom":return n?t?zx:Ux:t?Ux:zx;case"left":case"right":return t?l4:o4;default:return[]}}function c4(e,t,n,i){const s=El(e);let l=u4(ea(e),n==="start",i);return s&&(l=l.map(u=>u+"-"+s),t&&(l=l.concat(l.map(Qp)))),l}function Nf(e){const t=ea(e);return i4[t]+e.slice(t.length)}function f4(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 SS(e){return typeof e!="number"?f4(e):{top:e,right:e,bottom:e,left:e}}function Rf(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 Fx(e,t,n){let{reference:i,floating:s}=e;const l=wr(t),u=Z0(t),c=W0(u),d=ea(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 x;switch(d){case"top":x={x:m,y:i.y-s.height};break;case"bottom":x={x:m,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:p};break;case"left":x={x:i.x-s.width,y:p};break;default:x={x:i.x,y:i.y}}const v=El(t);return v&&(x[u]+=E*(v==="end"?1:-1)*(n&&h?-1:1)),x}async function d4(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:x=0}=ci(t,e),v=SS(x),A=c[E?p==="floating"?"reference":"floating":p],k=Rf(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},F=Rf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:w,strategy:d}):N);return{top:(k.top-F.top+v.top)/D.y,bottom:(F.bottom-k.bottom+v.bottom)/D.y,left:(k.left-F.left+v.left)/D.x,right:(F.right-k.right+v.right)/D.x}}const h4=50,m4=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:u}=n,c=u.detectOverflow?u:{...u,detectOverflow:d4},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}=Fx(h,i,d),E=i,x=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:F,reset:R}=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],...F},R&&x<h4&&(x++,typeof R=="object"&&(R.placement&&(E=R.placement),R.rects&&(h=R.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:s}):R.rects),{x:m,y:p}=Fx(h,E,d)),S=-1)}return{x:m,y:p,placement:E,strategy:s,middlewareData:v}},p4=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=SS(m),E={x:n,y:i},x=Z0(s),v=W0(x),S=await u.getDimensions(h),A=x==="y",k=A?"top":"left",N=A?"bottom":"right",w=A?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[x]-E[x]-l.floating[v],F=E[x]-l.reference[x],R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let I=R?R[w]:0;(!I||!await(u.isElement==null?void 0:u.isElement(R)))&&(I=c.floating[w]||l.floating[v]);const H=D/2-F/2,Y=I/2-S[v]/2-1,U=Ji(p[k],Y),Z=Ji(p[N],Y),X=I-S[v]-Z,se=I/2-S[v]/2+H,ce=vS(U,se,X),ie=!d.arrow&&El(s)!=null&&se!==ce&&l.reference[v]/2-(se<U?U:Z)-S[v]/2<0,B=ie?se<U?se-U:se-X:0;return{[x]:E[x]+B,data:{[x]:ce,centerOffset:se-ce-B,...ie&&{alignmentOffset:B}},reset:ie}}}),g4=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:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...A}=ci(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const k=ea(s),N=wr(c),w=ea(c)===c,D=await(d.isRTL==null?void 0:d.isRTL(h.floating)),F=E||(w||!S?[Nf(c)]:s4(c)),R=v!=="none";!E&&R&&F.push(...c4(c,S,v,D));const I=[c,...F],H=await d.detectOverflow(t,A),Y=[];let U=((i=l.flip)==null?void 0:i.overflows)||[];if(m&&Y.push(H[k]),p){const ce=a4(s,u,D);Y.push(H[ce[0]],H[ce[1]])}if(U=[...U,{placement:s,overflows:Y}],!Y.every(ce=>ce<=0)){var Z,X;const ce=(((Z=l.flip)==null?void 0:Z.index)||0)+1,ie=I[ce];if(ie&&(!(p==="alignment"?N!==wr(ie):!1)||U.every(oe=>wr(oe.placement)===N?oe.overflows[0]>0:!0)))return{data:{index:ce,overflows:U},reset:{placement:ie}};let B=(X=U.filter(G=>G.overflows[0]<=0).sort((G,oe)=>G.overflows[1]-oe.overflows[1])[0])==null?void 0:X.placement;if(!B)switch(x){case"bestFit":{var se;const G=(se=U.filter(oe=>{if(R){const le=wr(oe.placement);return le===N||le==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(le=>le>0).reduce((le,L)=>le+L,0)]).sort((oe,le)=>oe[1]-le[1])[0])==null?void 0:se[0];G&&(B=G);break}case"initialPlacement":B=c;break}if(s!==B)return{reset:{placement:B}}}return{}}}};function qx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vx(e){return r4.some(t=>e[t]>=0)}const b4=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=qx(u,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Vx(c)}}}case"escaped":{const u=await i.detectOverflow(t,{...l,altBoundary:!0}),c=qx(u,n.floating);return{data:{escapedOffsets:c,escaped:Vx(c)}}}default:return{}}}}},CS=new Set(["left","top"]);async function y4(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),u=ea(n),c=El(n),d=wr(n)==="y",h=CS.has(u)?-1:1,m=l&&d?-1:1,p=ci(t,e);let{mainAxis:E,crossAxis:x,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"&&(x=c==="end"?v*-1:v),d?{x:x*m,y:E*h}:{x:E*h,y:x*m}}const E4=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 y4(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}}}}},x4=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=wr(s),x=Q0(E);let v=m[x],S=m[E];const A=(N,w)=>vS(w+p[N==="y"?"top":"left"],w,w-p[N==="y"?"bottom":"right"]);u&&(v=A(x,v)),c&&(S=A(E,S));const k=d.fn({...t,[x]:v,[E]:S});return{...k,data:{x:k.x-n,y:k.y-i,enabled:{[x]:u,[E]:c}}}}}},T4=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},x=wr(u),v=Q0(x);let S=E[v],A=E[x];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 F=v==="y"?"height":"width",R=c.reference[v]-c.floating[F]+N.mainAxis,I=c.reference[v]+c.reference[F]-N.mainAxis;S<R?S=R:S>I&&(S=I)}if(p){var w,D;const F=v==="y"?"width":"height",R=CS.has(ea(u)),I=c.reference[x]-c.floating[F]+(R&&((w=d.offset)==null?void 0:w[x])||0)+(R?0:N.crossAxis),H=c.reference[x]+c.reference[F]+(R?0:((D=d.offset)==null?void 0:D[x])||0)-(R?N.crossAxis:0);A<I?A=I:A>H&&(A=H)}return{[v]:S,[x]:A}}}},v4=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=ea(n),m=El(n),p=wr(n)==="y",{width:E,height:x}=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=x-d.top-d.bottom,k=E-d.left-d.right,N=Ji(x-d[v],A),w=Ji(E-d[S],k),D=t.middlewareData.shift,F=!D;let R=N,I=w;D!=null&&D.enabled.x&&(I=k),D!=null&&D.enabled.y&&(R=A),F&&!m&&(p?I=E-2*li(d.left,d.right):R=x-2*li(d.top,d.bottom)),await u({...t,availableWidth:I,availableHeight:R});const H=await s.getDimensions(l.floating);return E!==H.width||x!==H.height?{reset:{rects:!0}}:{}}}};function Qf(){return typeof window<"u"}function xl(e){return _S(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function hi(e){var t;return(t=(_S(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _S(e){return Qf()?e instanceof Node||e instanceof Ln(e).Node:!1}function Or(e){return Qf()?e instanceof Element||e instanceof Ln(e).Element:!1}function ra(e){return Qf()?e instanceof HTMLElement||e instanceof Ln(e).HTMLElement:!1}function Yx(e){return!Qf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function Wf(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function S4(e){return/^(table|td|th)$/.test(xl(e))}function Zf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const C4=/transform|translate|scale|rotate|perspective|filter/,_4=/paint|layout|strict|content/,wa=e=>!!e&&e!=="none";let ep;function J0(e){const t=Or(e)?Lr(e):e;return wa(t.transform)||wa(t.translate)||wa(t.scale)||wa(t.rotate)||wa(t.perspective)||!eg()&&(wa(t.backdropFilter)||wa(t.filter))||C4.test(t.willChange||"")||_4.test(t.contain||"")}function A4(e){let t=$a(e);for(;ra(t)&&!Zo(t);){if(J0(t))return t;if(Zf(t))return null;t=$a(t)}return null}function eg(){return ep==null&&(ep=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ep}function Zo(e){return/^(html|body|#document)$/.test(xl(e))}function Lr(e){return Ln(e).getComputedStyle(e)}function Jf(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $a(e){if(xl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yx(e)&&e.host||hi(e);return Yx(t)?t.host:t}function AS(e){const t=$a(e);return Zo(t)?(e.ownerDocument||e).body:ra(t)&&Wf(t)?t:AS(t)}function Jo(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=AS(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),u=Ln(s);if(l){const c=Wp(u);return t.concat(u,u.visualViewport||[],Wf(s)?s:[],c&&n?Jo(c):[])}else return t.concat(s,Jo(s,[],n))}function Wp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kS(e){const t=Lr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=ra(e),l=s?e.offsetWidth:n,u=s?e.offsetHeight:i,c=wf(n)!==l||wf(i)!==u;return c&&(n=l,i=u),{width:n,height:i,$:c}}function tg(e){return Or(e)?e:e.contextElement}function ol(e){const t=tg(e);if(!ra(t))return oi(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=kS(t);let u=(l?wf(n.width):n.width)/i,c=(l?wf(n.height):n.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const k4=oi(0);function wS(e){const t=Ln(e);return!eg()||!t.visualViewport?k4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function w4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ln(e)}function Ga(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=tg(e);let u=oi(1);t&&(i?Or(i)&&(u=ol(i)):u=ol(e));const c=w4(l,n,i)?wS(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=Ln(l),x=Or(i)?Ln(i):i;let v=E,S=Wp(v);for(;S&&x!==v;){const A=ol(S),k=S.getBoundingClientRect(),N=Lr(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=Ln(S),S=Wp(v)}}return Rf({width:m,height:p,x:d,y:h})}function ed(e,t){const n=Jf(e).scrollLeft;return t?t.left+n:Ga(hi(e)).left+n}function NS(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-ed(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function N4(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",u=hi(i),c=t?Zf(t.floating):!1;if(i===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=oi(1);const m=oi(0),p=ra(i);if((p||!l)&&((xl(i)!=="body"||Wf(u))&&(d=Jf(i)),p)){const x=Ga(i);h=ol(i),m.x=x.x+i.clientLeft,m.y=x.y+i.clientTop}const E=u&&!p&&!l?NS(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 R4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function O4(e){const t=Jf(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+ed(e);const u=-t.scrollTop;return Lr(n).direction==="rtl"&&(l+=li(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:u}}const L4=25;function D4(e,t,n){n===void 0&&(n="viewport");const i=n==="layoutViewport",s=Ln(e),l=hi(e),u=s.visualViewport;let c=l.clientWidth,d=l.clientHeight,h=0,m=0;if(u){const E=!eg()||t==="fixed";i?E||(h=-u.offsetLeft,m=-u.offsetTop):(c=u.width,d=u.height,E&&(h=u.offsetLeft,m=u.offsetTop))}if(ed(l)<=0){const E=l.ownerDocument,x=E.body,v=getComputedStyle(x),S=E.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,A=Math.abs(l.clientWidth-x.clientWidth-S),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?A/2:A;k<=L4&&(c-=k)}return{width:c,height:d,x:h,y:m}}function I4(e,t){const n=Ga(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=ol(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 $x(e,t,n){let i;if(t==="viewport"||t==="layoutViewport")i=D4(e,n,t);else if(t==="document")i=O4(hi(e));else if(Or(t))i=I4(t,n);else{const s=wS(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return Rf(i)}function M4(e,t){const n=t.get(e);if(n)return n;let i=Jo(e,[],!1).filter(c=>Or(c)&&xl(c)!=="body"),s=null;const l=Lr(e).position==="fixed";let u=l?$a(e):e;for(;Or(u)&&!Zo(u);){const c=Lr(u),d=J0(u),h=s?s.position:l?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?i=i.filter(p=>p!==u):s=c,u=$a(u)}return t.set(e,i),i}function P4(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const u=[...n==="clippingAncestors"?Zf(t)?[]:M4(t,this._c):[].concat(n),i],c=$x(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 x=$x(t,u[E],s);d=li(x.top,d),h=Ji(x.right,h),m=Ji(x.bottom,m),p=li(x.left,p)}return{width:h-p,height:m-d,x:p,y:d}}function B4(e){const{width:t,height:n}=kS(e);return{width:t,height:n}}function j4(e,t,n){const i=ra(t),s=hi(t),l=n==="fixed",u=Ga(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=oi(0);if((i||!l)&&((xl(t)!=="body"||Wf(s))&&(c=Jf(t)),i)){const E=Ga(t,!0,l,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}!i&&s&&(d.x=ed(s));const h=s&&!i&&!l?NS(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 tp(e){return Lr(e).position==="static"}function Gx(e,t){if(!ra(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return hi(e)===n&&(n=n.ownerDocument.body),n}function RS(e,t){const n=Ln(e);if(Zf(e))return n;if(!ra(e)){let s=$a(e);for(;s&&!Zo(s);){if(Or(s)&&!tp(s))return s;s=$a(s)}return n}let i=Gx(e,t);for(;i&&S4(i)&&tp(i);)i=Gx(i,t);return i&&Zo(i)&&tp(i)&&!J0(i)?n:i||A4(e)||n}const H4=async function(e){const t=this.getOffsetParent||RS,n=this.getDimensions,i=await n(e.floating);return{reference:j4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function U4(e){return Lr(e).direction==="rtl"}const z4={convertOffsetParentRelativeRectToViewportRelativeRect:N4,getDocumentElement:hi,getClippingRect:P4,getOffsetParent:RS,getElementRects:H4,getClientRects:R4,getDimensions:B4,getScale:ol,isElement:Or,isRTL:U4};function OS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function F4(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:x,top:v,width:S,height:A}=E;if(m||t(),!S||!A)return;const k=qc(v),N=qc(l.clientWidth-(x+S)),w=qc(l.clientHeight-(v+A)),D=qc(x),R={rootMargin:-k+"px "+-N+"px "+-w+"px "+-D+"px",threshold:li(0,Ji(1,p))||1};let I=!0;function H(Y){const U=Y[0].intersectionRatio;if(!OS(E,e.getBoundingClientRect()))return c();if(U!==p){if(!I)return c();U?c(!1,U):s=setTimeout(()=>{c(!1,1e-7)},1e3)}I=!1}try{i=new IntersectionObserver(H,{...R,root:l.ownerDocument})}catch{i=new IntersectionObserver(H,R)}i.observe(e)}const d=Ln(e),h=()=>c(n);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),u()}}function q4(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=tg(e),m=s||l?[...h?Jo(h):[],...t?Jo(t):[]]:[];m.forEach(k=>{s&&k.addEventListener("scroll",n),l&&k.addEventListener("resize",n)});const p=h&&c?F4(h,n,l):null;let E=-1,x=null;u&&(x=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&x&&t&&(x.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var w;(w=x)==null||w.observe(t)})),n()}),h&&!d&&x.observe(h),t&&x.observe(t));let v,S=d?Ga(e):null;d&&A();function A(){const k=Ga(e);S&&!OS(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=x)==null||k.disconnect(),x=null,d&&cancelAnimationFrame(v)}}const V4=E4,Y4=x4,$4=g4,G4=v4,K4=b4,Kx=p4,X4=T4,Q4=(e,t,n)=>{const i=new Map,s=n??{},l={...z4,...s.platform,_c:i};return m4(e,t,{...s,platform:l})};var W4=typeof document<"u",Z4=function(){},hf=W4?C.useLayoutEffect:Z4;function Of(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(!Of(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)&&!Of(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function LS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xx(e,t){const n=LS(e);return Math.round(t*n)/n}function np(e){const t=C.useRef(e);return hf(()=>{t.current=e}),t}function J4(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,x]=C.useState(i);Of(E,i)||x(i);const[v,S]=C.useState(null),[A,k]=C.useState(null),N=C.useCallback(oe=>{oe!==R.current&&(R.current=oe,S(oe))},[]),w=C.useCallback(oe=>{oe!==I.current&&(I.current=oe,k(oe))},[]),D=l||v,F=u||A,R=C.useRef(null),I=C.useRef(null),H=C.useRef(m),Y=d!=null,U=np(d),Z=np(s),X=np(h),se=C.useCallback(()=>{if(!R.current||!I.current)return;const oe={placement:t,strategy:n,middleware:E};Z.current&&(oe.platform=Z.current),Q4(R.current,I.current,oe).then(le=>{const L={...le,isPositioned:X.current!==!1};ce.current&&!Of(H.current,L)&&(H.current=L,na.flushSync(()=>{p(L)}))})},[E,t,n,Z,X]);hf(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,p(oe=>({...oe,isPositioned:!1})))},[h]);const ce=C.useRef(!1);hf(()=>(ce.current=!0,()=>{ce.current=!1}),[]),hf(()=>{if(D&&(R.current=D),F&&(I.current=F),D&&F){if(U.current)return U.current(D,F,se);se()}},[D,F,se,U,Y]);const ie=C.useMemo(()=>({reference:R,floating:I,setReference:N,setFloating:w}),[N,w]),B=C.useMemo(()=>({reference:D,floating:F}),[D,F]),G=C.useMemo(()=>{const oe={position:n,left:0,top:0};if(!B.floating)return oe;const le=Xx(B.floating,m.x),L=Xx(B.floating,m.y);return c?{...oe,transform:"translate("+le+"px, "+L+"px)",...LS(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:L}},[n,c,B.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:se,refs:ie,elements:B,floatingStyles:G}),[m,se,ie,B,G])}const eO=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?Kx({element:i.current,padding:s}).fn(n):{}:i?Kx({element:i,padding:s}).fn(n):{}}}},tO=(e,t)=>{const n=V4(e);return{name:n.name,fn:n.fn,options:[e,t]}},nO=(e,t)=>{const n=Y4(e);return{name:n.name,fn:n.fn,options:[e,t]}},rO=(e,t)=>({fn:X4(e).fn,options:[e,t]}),iO=(e,t)=>{const n=$4(e);return{name:n.name,fn:n.fn,options:[e,t]}},aO=(e,t)=>{const n=G4(e);return{name:n.name,fn:n.fn,options:[e,t]}},sO=(e,t)=>{const n=K4(e);return{name:n.name,fn:n.fn,options:[e,t]}},lO=(e,t)=>{const n=eO(e);return{name:n.name,fn:n.fn,options:[e,t]}};var oO=Object.defineProperty,uO=(e,t)=>oO(e,"name",{value:t,configurable:!0});function DS(e){const[t,n]=C.useState(void 0);return Jt(()=>{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}uO(DS,"useSize");var cO=Object.defineProperty,Wi=(e,t)=>cO(e,"name",{value:t,configurable:!0}),IS="Popper",[MS,PS]=lu(IS),[fO,BS]=MS(IS),dO=Wi(e=>{const{__scopePopper:t,children:n}=e,[i,s]=C.useState(null),[l,u]=C.useState(void 0);return y.jsx(fO,{scope:t,anchor:i,onAnchorChange:s,placementState:l,setPlacementState:u,children:n})},"Popper"),hO="PopperAnchor",mO=C.forwardRef(Wi(function(t,n){const{__scopePopper:i,virtualRef:s,...l}=t,u=BS(hO,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&&td(u.placementState),x=E?.[0],v=E?.[1];return s?null:y.jsx(xn.div,{"data-radix-popper-side":x,"data-radix-popper-align":v,...l,ref:m})},"PopperAnchor")),jS="PopperContent",[pO,Zq]=MS(jS),gO=C.forwardRef(Wi(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:x=!1,updatePositionStrategy:v="optimized",onPlaced:S,...A}=t,k=BS(jS,i),[N,w]=C.useState(null),D=Mt(n,w),[F,R]=C.useState(null),I=DS(F),H=I?.width??0,Y=I?.height??0,U=s+(u!=="center"?"-"+u:""),Z=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},X=Array.isArray(m)?m:[m],se=X.length>0,ce={padding:Z,boundary:X.filter(HS),altBoundary:se},{refs:ie,floatingStyles:B,placement:G,isPositioned:oe,middlewareData:le}=J4({strategy:"fixed",placement:U,whileElementsMounted:Wi((...xe)=>q4(...xe,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:k.anchor},middleware:[tO({mainAxis:l+Y,alignmentAxis:c}),h&&nO({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?rO():void 0,...ce}),h&&iO({...ce}),aO({...ce,apply:Wi(({elements:xe,rects:Oe,availableWidth:we,availableHeight:Le})=>{const{width:ze,height:$e}=Oe.reference,ot=xe.floating.style;ot.setProperty("--radix-popper-available-width",`${we}px`),ot.setProperty("--radix-popper-available-height",`${Le}px`),ot.setProperty("--radix-popper-anchor-width",`${ze}px`),ot.setProperty("--radix-popper-anchor-height",`${$e}px`)},"apply")}),F&&lO({element:F,padding:d}),bO({arrowWidth:H,arrowHeight:Y}),x&&sO({strategy:"referenceHidden",...ce,boundary:se?ce.boundary:void 0})]}),L=k.setPlacementState;Jt(()=>(L(G),()=>{L(void 0)}),[G,L]);const[z,Q]=td(G),M=Rr(S);Jt(()=>{oe&&M?.()},[oe,M]);const ee=le.arrow?.x,me=le.arrow?.y,ge=le.arrow?.centerOffset!==0,[Se,Te]=C.useState();return Jt(()=>{N&&Te(window.getComputedStyle(N).zIndex)},[N]),y.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:oe?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[le.transformOrigin?.x,le.transformOrigin?.y].join(" "),...le.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:y.jsx(pO,{scope:i,placedSide:z,placedAlign:Q,onArrowChange:R,arrowX:ee,arrowY:me,shouldHideArrow:ge,children:y.jsx(xn.div,{"data-side":z,"data-align":Q,...A,ref:D,style:{...A.style,animation:oe?A.style?.animation:"none"}})})})},"PopperContent"));function HS(e){return e!==null}Wi(HS,"isNotNull");var bO=Wi(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]=td(n),p={start:"0%",center:"50%",end:"100%"}[m],E=(s.arrow?.x??0)+c/2,x=(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:`${x}px`):h==="left"&&(v=`${i.floating.width+d}px`,S=u?p:`${x}px`),{data:{x:v,y:S}}}}),"transformOrigin");function td(e){const[t,n="center"]=e.split("-");return[t,n]}Wi(td,"getSideAndAlignFromPlacement");var yO=dO,EO=mO,xO=gO,TO=Object.defineProperty,vO=(e,t)=>TO(e,"name",{value:t,configurable:!0}),SO=C.forwardRef(vO(function(t,n){const{container:i,...s}=t,[l,u]=C.useState(!1);Jt(()=>u(!0),[]);const c=i||l&&globalThis?.document?.body;return c?na.createPortal(y.jsx(xn.div,{...s,ref:n}),c):null},"Portal")),CO=Object.defineProperty,fi=(e,t)=>CO(e,"name",{value:t,configurable:!0});function US(e,t){return C.useReducer((n,i)=>t[n][i]??n,e)}fi(US,"useStateMachine");var _O=fi(e=>{const{present:t,children:n}=e,i=zS(t),s=typeof n=="function"?n({present:i.isPresent}):C.Children.only(n),l=FS(i.ref,qS(s));return typeof n=="function"||i.isPresent?C.cloneElement(s,{ref:l}):null},"Presence");function zS(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]=US(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??tl(i.current),u.current=void 0):l.current="none"},[d]),Jt(()=>{const m=i.current,p=s.current;if(p!==e){const x=l.current,v=tl(m);e?(u.current=v,h("MOUNT")):v==="none"||m?.display==="none"?h("UNMOUNT"):h(p&&x!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,h]),Jt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,E=fi(v=>{const A=tl(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"),x=fi(v=>{v.target===t&&(l.current=tl(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",x),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=tl(p)}else i.current=null;n(m)},[])}}fi(zS,"usePresence");function Zp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}fi(Zp,"setRef");function FS(...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=Zp(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():Zp(i[u],null)}}},[])}fi(FS,"useStableComposedRefs");function tl(e){return e?.animationName||"none"}fi(tl,"getAnimationName");function qS(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(qS,"getElementRef");var AO=Object.defineProperty,kO=(e,t)=>AO(e,"name",{value:t,configurable:!0}),Qx=su[" useEffectEvent ".trim().toString()],Wx=su[" useInsertionEffect ".trim().toString()];function VS(e){if(typeof Qx=="function")return Qx(e);const t=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Wx=="function"?Wx(()=>{t.current=e}):Jt(()=>{t.current=e}),C.useMemo(()=>((...n)=>t.current?.(...n)),[])}kO(VS,"useEffectEvent");var wO=Object.defineProperty,ou=(e,t)=>wO(e,"name",{value:t,configurable:!0}),NO=su[" useInsertionEffect ".trim().toString()]||Jt;function Jp({prop:e,defaultProp:t,onChange:n=ou(()=>{},"onChange"),caller:i}){const[s,l,u]=YS({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:s,h=C.useCallback(m=>{if(c){const p=$S(m)?m(e):m;p!==e&&u.current?.(p)}else l(m)},[c,e,l,u]);return[d,h]}ou(Jp,"useControllableState");function YS({defaultProp:e,onChange:t}){const[n,i]=C.useState(e),s=C.useRef(n),l=C.useRef(t);return NO(()=>{l.current=t},[t]),C.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,i,l]}ou(YS,"useUncontrolledState");function $S(e){return typeof e=="function"}ou($S,"isFunction");var Zx=Symbol("RADIX:SYNC_STATE");function RO(e,t,n,i){const{prop:s,defaultProp:l,onChange:u,caller:c}=t,d=s!==void 0,h=VS(u),m=[{...n,state:l}];i&&m.push(i);const[p,E]=C.useReducer((A,k)=>{if(k.type===Zx)return{...A,state:k.state};const N=e(A,k);return d&&!Object.is(N.state,A.state)&&h(N.state),N},...m),x=p.state,v=C.useRef(x);C.useEffect(()=>{v.current!==x&&(v.current=x,d||h(x))},[x,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:Zx,state:s})},[s,p.state,d]),[S,E]}ou(RO,"useControllableStateReducer");var OO=Object.defineProperty,LO=(e,t)=>OO(e,"name",{value:t,configurable:!0});function GS(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])}LO(GS,"usePrevious");var DO=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"}),IO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ks=new WeakMap,Vc=new WeakMap,Yc={},rp=0,KS=function(e){return e&&(e.host||KS(e.parentNode))},MO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=KS(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})},PO=function(e,t,n,i){var s=MO(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 x=E.getAttribute(i),v=x!==null&&x!=="false",S=(Ks.get(E)||0)+1,A=(l.get(E)||0)+1;Ks.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(),rp++,function(){u.forEach(function(p){var E=Ks.get(p)-1,x=l.get(p)-1;Ks.set(p,E),l.set(p,x),E||(Vc.has(p)||p.removeAttribute(i),Vc.delete(p)),x||p.removeAttribute(n)}),rp--,rp||(Ks=new WeakMap,Ks=new WeakMap,Vc=new WeakMap,Yc={})}},BO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=IO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),PO(i,s,n,"aria-hidden")):function(){return null}},kr=function(){return kr=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},kr.apply(this,arguments)};function XS(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 jO(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",HO="with-scroll-bars-hidden",UO="--removed-body-scroll-bar-size";function ip(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zO(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 FO=typeof window<"u"?C.useLayoutEffect:C.useEffect,Jx=new WeakMap;function qO(e,t){var n=zO(null,function(i){return e.forEach(function(s){return ip(s,i)})});return FO(function(){var i=Jx.get(n);if(i){var s=new Set(i),l=new Set(e),u=n.current;s.forEach(function(c){l.has(c)||ip(c,null)}),l.forEach(function(c){s.has(c)||ip(c,u)})}Jx.set(n,e)},[e]),n}function VO(e){return e}function YO(e,t){t===void 0&&(t=VO);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 $O(e){e===void 0&&(e={});var t=YO(null);return t.options=kr({async:!0,ssr:!1},e),t}var QS=function(e){var t=e.sideCar,n=XS(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,kr({},n))};QS.isSideCarExport=!0;function GO(e,t){return e.useMedium(t),QS}var WS=$O(),ap=function(){},nd=C.forwardRef(function(e,t){var n=C.useRef(null),i=C.useState({onScrollCapture:ap,onWheelCapture:ap,onTouchMoveCapture:ap}),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,x=e.noRelative,v=e.noIsolation,S=e.inert,A=e.allowPinchZoom,k=e.as,N=k===void 0?"div":k,w=e.gapMode,D=XS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=E,R=qO([n,t]),I=kr(kr({},D),s);return C.createElement(C.Fragment,null,m&&C.createElement(F,{sideCar:WS,removeScrollBar:h,shards:p,noRelative:x,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!A,lockRef:n,gapMode:w}),u?C.cloneElement(C.Children.only(c),kr(kr({},I),{ref:R})):C.createElement(N,kr({},I,{className:d,ref:R}),c))});nd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nd.classNames={fullWidth:pf,zeroRight:mf};var KO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KO();return t&&e.setAttribute("nonce",t),e}function QO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=XO())&&(QO(t,n),WO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JO=function(){var e=ZO();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ZS=function(){var e=JO(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},eL={left:0,top:0,right:0,gap:0},sp=function(e){return parseInt(e||"",10)||0},tL=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[sp(n),sp(i),sp(s)]},nL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eL;var t=tL(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])}},rL=ZS(),ul="data-scroll-locked",iL=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(HO,` {
11
+ overflow: hidden `).concat(i,`;
12
+ padding-right: `).concat(c,"px ").concat(i,`;
13
+ }
14
+ body[`).concat(ul,`] {
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(ul,`] {
44
+ `).concat(UO,": ").concat(c,`px;
45
+ }
46
+ `)},eT=function(){var e=parseInt(document.body.getAttribute(ul)||"0",10);return isFinite(e)?e:0},aL=function(){C.useEffect(function(){return document.body.setAttribute(ul,(eT()+1).toString()),function(){var e=eT()-1;e<=0?document.body.removeAttribute(ul):document.body.setAttribute(ul,e.toString())}},[])},sL=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;aL();var l=C.useMemo(function(){return nL(s)},[s]);return C.createElement(rL,{styles:iL(l,!t,s,n?"":"!important")})},e0=!1;if(typeof window<"u")try{var $c=Object.defineProperty({},"passive",{get:function(){return e0=!0,!0}});window.addEventListener("test",$c,$c),window.removeEventListener("test",$c,$c)}catch{e0=!1}var Xs=e0?{passive:!1}:!1,lL=function(e){return e.tagName==="TEXTAREA"},JS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lL(e)&&n[t]==="visible")},oL=function(e){return JS(e,"overflowY")},uL=function(e){return JS(e,"overflowX")},tT=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=eC(e,i);if(s){var l=tC(e,i),u=l[1],c=l[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},cL=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},fL=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},eC=function(e,t){return e==="v"?oL(t):uL(t)},tC=function(e,t){return e==="v"?cL(t):fL(t)},dL=function(e,t){return e==="h"&&t==="rtl"?-1:1},hL=function(e,t,n,i,s){var l=dL(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 x=tC(e,c),v=x[0],S=x[1],A=x[2],k=S-A-l*v;(v||k)&&eC(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]},nT=function(e){return[e.deltaX,e.deltaY]},rT=function(e){return e&&"current"in e?e.current:e},mL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pL=function(e){return`
47
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
48
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
49
+ `)},gL=0,Qs=[];function bL(e){var t=C.useRef([]),n=C.useRef([0,0]),i=C.useRef(),s=C.useState(gL++)[0],l=C.useState(ZS)[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=jO([e.lockRef.current],(e.shards||[]).map(rT),!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],F,R=S.target,I=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in S&&I==="h"&&R.type==="range")return!1;var H=window.getSelection(),Y=H&&H.anchorNode,U=Y?Y===R||Y.contains(R):!1;if(U)return!1;var Z=tT(I,R);if(!Z)return!0;if(Z?F=I:(F=I==="v"?"h":"v",Z=tT(I,R)),!Z)return!1;if(!i.current&&"changedTouches"in S&&(w||D)&&(i.current=F),!F)return!0;var X=i.current||F;return hL(X,A,S,X==="h"?w:D)},[]),d=C.useCallback(function(S){var A=S;if(!(!Qs.length||Qs[Qs.length-1]!==l)){var k="deltaY"in A?nT(A):Gc(A),N=t.current.filter(function(F){return F.name===A.type&&(F.target===A.target||A.target===F.shadowParent)&&mL(F.delta,k)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var w=(u.current.shards||[]).map(rT).filter(Boolean).filter(function(F){return F.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:yL(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,nT(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 Qs.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:E}),document.addEventListener("wheel",d,Xs),document.addEventListener("touchmove",d,Xs),document.addEventListener("touchstart",m,Xs),function(){Qs=Qs.filter(function(S){return S!==l}),document.removeEventListener("wheel",d,Xs),document.removeEventListener("touchmove",d,Xs),document.removeEventListener("touchstart",m,Xs)}},[]);var x=e.removeScrollBar,v=e.inert;return C.createElement(C.Fragment,null,v?C.createElement(l,{styles:pL(s)}):null,x?C.createElement(sL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const EL=GO(WS,bL);var nC=C.forwardRef(function(e,t){return C.createElement(nd,kr({},e,{ref:t,sideCar:EL}))});nC.classNames=nd.classNames;var xL=Object.defineProperty,it=(e,t)=>xL(e,"name",{value:t,configurable:!0}),TL=[" ","Enter","ArrowUp","ArrowDown"],vL=[" ","Enter"],hl="Select",[rd,id,SL]=sS(hl),[ts,Jq]=lu(hl,[SL,PS]),ng=PS(),[CL,ia]=ts(hl),[_L,AL]=ts(hl);function rC(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:x,form:v,internal_do_not_use_render:S}=e,A=ng(t),[k,N]=C.useState(null),[w,D]=C.useState(null),[F,R]=C.useState(!1),I=fS(h),[H,Y]=Jp({prop:i,defaultProp:s??!1,onChange:l,caller:hl}),[U,Z]=Jp({prop:u,defaultProp:c,onChange:d,caller:hl}),X=C.useRef(null),se=C.useRef(U);C.useEffect(()=>{const Q=v?k?.ownerDocument.getElementById(v):k?.form;if(Q instanceof HTMLFormElement){const M=it(()=>Z(se.current),"reset");return Q.addEventListener("reset",M),()=>Q.removeEventListener("reset",M)}},[v,k,Z]);const ce=k?!!v||!!k.closest("form"):!0,[ie,B]=C.useState(new Set),G=X0(),oe=Array.from(ie).map(Q=>Q.props.value).join(";"),le=C.useCallback(Q=>{B(M=>new Set(M).add(Q))},[]),L=C.useCallback(Q=>{B(M=>{const ee=new Set(M);return ee.delete(Q),ee})},[]),z={required:x,trigger:k,onTriggerChange:N,valueNode:w,onValueNodeChange:D,valueNodeHasChildren:F,onValueNodeHasChildrenChange:R,contentId:G,value:U,onValueChange:Z,open:H,onOpenChange:Y,dir:I,triggerPointerDownPosRef:X,disabled:E,name:m,autoComplete:p,form:v,nativeOptions:ie,nativeSelectKey:oe,isFormControl:ce};return y.jsx(yO,{...A,children:y.jsx(CL,{scope:t,...z,children:y.jsx(rd.Provider,{scope:t,children:y.jsx(_L,{scope:t,onNativeOptionAdd:le,onNativeOptionRemove:L,children:lC(S)?S(z):n})})})})}it(rC,"SelectProvider");var kL=it(e=>{const{__scopeSelect:t,children:n,...i}=e;return y.jsx(rC,{__scopeSelect:t,...i,internal_do_not_use_render:({isFormControl:s})=>y.jsxs(y.Fragment,{children:[n,s?y.jsx(JL,{__scopeSelect:t}):null]})})},"Select"),wL="SelectTrigger",NL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,disabled:s=!1,...l}=t,u=ng(i),c=ia(wL,i),d=c.disabled||s,h=Mt(n,c.onTriggerChange),m=id(i),p=C.useRef("touch"),[E,x,v]=ig(A=>{const k=m().filter(D=>!D.disabled),N=k.find(D=>D.value===c.value),w=ag(k,A,N);w!==void 0&&c.onValueChange(w.value)}),S=it(A=>{d||(c.onOpenChange(!0),v()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})},"handleOpen");return y.jsx(EO,{asChild:!0,...u,children:y.jsx(xn.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":uu(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&&x(A.key),!(k&&A.key===" ")&&TL.includes(A.key)&&(S(),A.preventDefault())})})})},"SelectTrigger")),RL="SelectValue",OL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,className:s,style:l,children:u,placeholder:c="",...d}=t,h=ia(RL,i),{onValueNodeHasChildrenChange:m}=h,p=u!==void 0,E=Mt(n,h.onValueNodeChange);Jt(()=>{m(p)},[m,p]);const x=uu(h.value);return y.jsx(xn.span,{...d,asChild:x?!1:d.asChild,ref:E,style:{pointerEvents:"none"},children:y.jsx(C.Fragment,{children:x?c:u},x?"placeholder":"value")})},"SelectValue")),LL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,children:s,...l}=t;return y.jsx(xn.span,{"aria-hidden":!0,...l,ref:n,children:s||"▼"})},"SelectIcon")),DL="SelectPortal",[IL,ML]=ts(DL,{forceMount:void 0}),PL=it(e=>{const{__scopeSelect:t,forceMount:n,...i}=e;return y.jsx(IL,{scope:e.__scopeSelect,forceMount:n,children:y.jsx(SO,{asChild:!0,...i})})},"SelectPortal"),Ka="SelectContent",BL=C.forwardRef(it(function(t,n){const i=ML(Ka,t.__scopeSelect),{forceMount:s=i.forceMount,...l}=t,u=ia(Ka,t.__scopeSelect),[c,d]=C.useState();return Jt(()=>{d(new DocumentFragment)},[]),y.jsx(_O,{present:s||u.open,children:({present:h})=>h?y.jsx(UL,{...l,ref:n}):y.jsx(jL,{...l,fragment:c})})},"SelectContent")),jL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,children:s,fragment:l}=t;return l?na.createPortal(y.jsx(iC,{scope:i,children:y.jsx(rd.Slot,{scope:i,children:y.jsx("div",{ref:n,children:s})})}),l):null},"SelectContentFragment")),cr=10,[iC,ns]=ts(Ka),HL=Ya("SelectContent.RemoveScroll"),UL=C.forwardRef(it(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:x,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k,...N}=t,w=ia(Ka,i),[D,F]=C.useState(null),[R,I]=C.useState(null),H=Mt(n,F),[Y,U]=C.useState(null),[Z,X]=C.useState(null),se=id(i),[ce,ie]=C.useState(!1),B=C.useRef(!1);C.useEffect(()=>{if(D)return BO(D)},[D]),G0();const G=C.useCallback(Te=>{const[xe,...Oe]=se().map(ze=>ze.ref.current),[we]=Oe.slice(-1),Le=document.activeElement;for(const ze of Te)if(ze===Le||(ze?.scrollIntoView({block:"nearest"}),ze===xe&&R&&(R.scrollTop=0),ze===we&&R&&(R.scrollTop=R.scrollHeight),ze?.focus(),document.activeElement!==Le))return},[se,R]),oe=C.useCallback(()=>G([Y,D]),[G,Y,D]);C.useEffect(()=>{ce&&oe()},[ce,oe]);const{onOpenChange:le,triggerPointerDownPosRef:L}=w;C.useEffect(()=>{if(D){let Te={x:0,y:0};const xe=it(we=>{Te={x:Math.abs(Math.round(we.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(we.pageY)-(L.current?.y??0))}},"handlePointerMove"),Oe=it(we=>{Te.x<=10&&Te.y<=10?we.preventDefault():we.composedPath().includes(D)||le(!1),document.removeEventListener("pointermove",xe),L.current=null},"handlePointerUp");return L.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Oe,{capture:!0})}}},[D,le,L]),C.useEffect(()=>{const Te=it(()=>le(!1),"close");return window.addEventListener("blur",Te),window.addEventListener("resize",Te),()=>{window.removeEventListener("blur",Te),window.removeEventListener("resize",Te)}},[le]);const[z,Q]=ig(Te=>{const xe=se().filter(Le=>!Le.disabled),Oe=xe.find(Le=>Le.ref.current===document.activeElement),we=ag(xe,Te,Oe);we&&setTimeout(()=>we.ref.current?.focus())}),M=C.useCallback((Te,xe,Oe)=>{const we=!B.current&&!Oe;(w.value!==void 0&&w.value===xe||we)&&(U(Te),we&&(B.current=!0))},[w.value]),ee=C.useCallback(()=>D?.focus(),[D]),me=C.useCallback((Te,xe,Oe)=>{const we=!B.current&&!Oe;(w.value!==void 0&&w.value===xe||we)&&X(Te)},[w.value]),ge=s==="popper"?iT:zL,Se=ge===iT?{side:d,sideOffset:h,align:m,alignOffset:p,arrowPadding:E,collisionBoundary:x,collisionPadding:v,sticky:S,hideWhenDetached:A,avoidCollisions:k}:{};return y.jsx(iC,{scope:i,content:D,viewport:R,onViewportChange:I,itemRefCallback:M,selectedItem:Y,onItemLeave:ee,itemTextRefCallback:me,focusSelectedItem:oe,selectedItemText:Z,position:s,isPositioned:ce,searchRef:z,children:y.jsx(nC,{as:HL,allowPinchZoom:!0,children:y.jsx(ZR,{asChild:!0,trapped:w.open,onMountAutoFocus:Te=>{Te.preventDefault()},onUnmountAutoFocus:Dt(l,Te=>{w.trigger?.focus({preventScroll:!0}),Te.preventDefault()}),children:y.jsx($R,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:Te=>Te.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:y.jsx(ge,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Te=>Te.preventDefault(),...N,...Se,onPlaced:()=>ie(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Dt(N.onKeyDown,Te=>{const xe=Te.ctrlKey||Te.altKey||Te.metaKey;if(Te.key==="Tab"&&Te.preventDefault(),!xe&&Te.key.length===1&&Q(Te.key),["ArrowUp","ArrowDown","Home","End"].includes(Te.key)){let we=se().filter(Le=>!Le.disabled).map(Le=>Le.ref.current);if(["ArrowUp","End"].includes(Te.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(Te.key)){const Le=Te.target,ze=we.indexOf(Le);we=we.slice(ze+1)}setTimeout(()=>G(we)),Te.preventDefault()}})})})})})})},"SelectContentImpl")),zL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,onPlaced:s,...l}=t,u=ia(Ka,i),c=ns(Ka,i),[d,h]=C.useState(null),[m,p]=C.useState(null),E=Mt(n,p),x=id(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(),Y=m.getBoundingClientRect(),U=u.valueNode.getBoundingClientRect(),Z=N.getBoundingClientRect();if(u.dir!=="rtl"){const Le=Z.left-Y.left,ze=U.left-Le,$e=H.left-ze,ot=H.width+$e,Qe=Math.max(ot,Y.width),Ct=window.innerWidth-cr,xt=Up(ze,[cr,Math.max(cr,Ct-Qe)]);d.style.minWidth=ot+"px",d.style.left=xt+"px"}else{const Le=Y.right-Z.right,ze=window.innerWidth-U.right-Le,$e=window.innerWidth-H.right-ze,ot=H.width+$e,Qe=Math.max(ot,Y.width),Ct=window.innerWidth-cr,xt=Up(ze,[cr,Math.max(cr,Ct-Qe)]);d.style.minWidth=ot+"px",d.style.right=xt+"px"}const X=x(),se=window.innerHeight-cr*2,ce=A.scrollHeight,ie=window.getComputedStyle(m),B=parseInt(ie.borderTopWidth,10),G=parseInt(ie.paddingTop,10),oe=parseInt(ie.borderBottomWidth,10),le=parseInt(ie.paddingBottom,10),L=B+G+ce+le+oe,z=Math.min(k.offsetHeight*5,L),Q=window.getComputedStyle(A),M=parseInt(Q.paddingTop,10),ee=parseInt(Q.paddingBottom,10),me=H.top+H.height/2-cr,ge=se-me,Se=k.offsetHeight/2,Te=k.offsetTop+Se,xe=B+G+Te,Oe=L-xe;if(xe<=me){const Le=X.length>0&&k===X[X.length-1].ref.current;d.style.bottom="0px";const ze=m.clientHeight-A.offsetTop-A.offsetHeight,$e=Math.max(ge,Se+(Le?ee:0)+ze+oe),ot=xe+$e;d.style.height=ot+"px"}else{const Le=X.length>0&&k===X[0].ref.current;d.style.top="0px";const $e=Math.max(me,B+A.offsetTop+(Le?M:0)+Se)+Oe;d.style.height=$e+"px",A.scrollTop=xe-me+A.offsetTop}d.style.margin=`${cr}px 0`,d.style.minHeight=z+"px",d.style.maxHeight=se+"px",s?.(),requestAnimationFrame(()=>v.current=!0)}},[x,u.trigger,u.valueNode,d,m,A,k,N,u.dir,s]);Jt(()=>D(),[D]);const[F,R]=C.useState();Jt(()=>{m&&R(window.getComputedStyle(m).zIndex)},[m]);const I=C.useCallback(H=>{H&&S.current===!0&&(D(),w?.(),S.current=!1)},[D,w]);return y.jsx(FL,{scope:i,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:I,children:y.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:y.jsx(xn.div,{...l,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),iT=C.forwardRef(it(function(t,n){const{__scopeSelect:i,align:s="start",collisionPadding:l=cr,...u}=t,c=ng(i);return y.jsx(xO,{...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")),[FL,rg]=ts(Ka,{}),aT="SelectViewport",qL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,nonce:s,...l}=t,u=ns(aT,i),c=rg(aT,i),d=Mt(n,u.onViewportChange),h=C.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(rd.Slot,{scope:i,children:y.jsx(xn.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:x}=c;if(x?.current&&E){const v=Math.abs(h.current-p.scrollTop);if(v>0){const S=window.innerHeight-cr*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),F=w-D;E.style.height=D+"px",E.style.bottom==="0px"&&(p.scrollTop=F>0?F:0,E.style.justifyContent="flex-end")}}}h.current=p.scrollTop})})})]})},"SelectViewport")),VL="SelectGroup",[eV,tV]=ts(VL),t0="SelectItem",[YL,aC]=ts(t0),$L=C.forwardRef(it(function(t,n){const{__scopeSelect:i,value:s,disabled:l=!1,textValue:u,...c}=t,d=ia(t0,i),h=ns(t0,i),m=d.value===s,[p,E]=C.useState(u??""),[x,v]=C.useState(!1),S=Rr(D=>h.itemRefCallback?.(D,s,l)),A=Mt(n,S),k=X0(),N=C.useRef("touch"),w=it(()=>{l||(d.onValueChange(s),d.onOpenChange(!1))},"handleSelect");return y.jsx(YL,{scope:i,value:s,disabled:l,textId:k,isSelected:m,onItemTextChange:C.useCallback(D=>{E(F=>F||(D?.textContent??"").trim())},[]),children:y.jsx(rd.ItemSlot,{scope:i,value:s,disabled:l,textValue:p,children:y.jsx(xn.div,{role:"option","aria-labelledby":k,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"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===" "||(vL.includes(D.key)&&w(),D.key===" "&&D.preventDefault())})})})})},"SelectItem")),Kc="SelectItemText",GL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,className:s,style:l,...u}=t,c=ia(Kc,i),d=ns(Kc,i),h=aC(Kc,i),m=AL(Kc,i),[p,E]=C.useState(null),x=Rr(w=>d.itemTextRefCallback?.(w,h.value,h.disabled)),v=Mt(n,E,h.onItemTextChange,x),S=p?.textContent,A=C.useMemo(()=>y.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:k,onNativeOptionRemove:N}=m;return Jt(()=>(k(A),()=>N(A)),[k,N,A]),y.jsxs(y.Fragment,{children:[y.jsx(xn.span,{id:h.textId,...u,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!uu(c.value)?na.createPortal(u.children,c.valueNode):null]})},"SelectItemText")),KL="SelectItemIndicator",XL=C.forwardRef(it(function(t,n){const{__scopeSelect:i,...s}=t;return aC(KL,i).isSelected?y.jsx(xn.span,{"aria-hidden":!0,...s,ref:n}):null},"SelectItemIndicator")),sT="SelectScrollUpButton",QL=C.forwardRef(it(function(t,n){const i=ns(sT,t.__scopeSelect),s=rg(sT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Jt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollTop>0;u(m)};it(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?y.jsx(sC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null},"SelectScrollUpButton")),lT="SelectScrollDownButton",WL=C.forwardRef(it(function(t,n){const i=ns(lT,t.__scopeSelect),s=rg(lT,t.__scopeSelect),[l,u]=C.useState(!1),c=Mt(n,s.onScrollButtonChange);return Jt(()=>{if(i.viewport&&i.isPositioned){let d=function(){const m=h.scrollHeight-h.clientHeight,p=Math.ceil(h.scrollTop)<m;u(p)};it(d,"handleScroll");const h=i.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[i.viewport,i.isPositioned]),l?y.jsx(sC,{...t,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=i;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null},"SelectScrollDownButton")),sC=C.forwardRef(it(function(t,n){const{__scopeSelect:i,onAutoScroll:s,...l}=t,u=ns("SelectScrollButton",i),c=C.useRef(null),d=id(i),h=C.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return C.useEffect(()=>()=>h(),[h]),Jt(()=>{d().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),y.jsx(xn.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")),ZL="SelectBubbleInput",JL=C.forwardRef(it(function({__scopeSelect:t,...n},i){const s=ia(ZL,t),{value:l,onValueChange:u,required:c,disabled:d,name:h,autoComplete:m,form:p}=s,{nativeOptions:E,nativeSelectKey:x}=s,v=C.useRef(null),S=Mt(i,v),A=l??"",k=GS(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,R=Object.getOwnPropertyDescriptor(D,"value").set;if(k!==A&&R){const I=new Event("change",{bubbles:!0});R.call(w,A),w.dispatchEvent(I)}},[k,A]),y.jsxs(xn.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:h,autoComplete:m,disabled:d,form:p,onChange:w=>u(w.target.value),...n,style:{...DO,...n.style},ref:S,defaultValue:A,children:[uu(l)&&!N?y.jsx("option",{value:""}):null,Array.from(E)]},x)},"SelectBubbleInput"));function lC(e){return typeof e=="function"}it(lC,"isFunction");function uu(e){return e===""||e===void 0}it(uu,"shouldShowPlaceholder");function ig(e){const t=Rr(e),n=C.useRef(""),i=C.useRef(0),s=C.useCallback(u=>{const c=n.current+u;t(c),it((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]}it(ig,"useTypeaheadSearch");function ag(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=oC(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}it(ag,"findNextItem");function oC(e,t){return e.map((n,i)=>e[(t+i)%e.length])}it(oC,"wrapArray");function Lf({value:e,onValueChange:t,options:n,ariaLabel:i,className:s="",placeholder:l,disabled:u,required:c}){return y.jsxs(kL,{value:e,onValueChange:t,required:c,children:[y.jsxs(NL,{className:`ui-select-trigger ${s}`,"aria-label":i,disabled:u,children:[y.jsx(OL,{placeholder:l}),y.jsx(LL,{className:"ui-select-chevron",children:y.jsx(kf,{size:14})})]}),y.jsx(PL,{children:y.jsxs(BL,{className:"ui-select-content",position:"popper",sideOffset:5,children:[y.jsx(QL,{className:"ui-select-scroll",children:y.jsx(fR,{size:14})}),y.jsx(qL,{className:"ui-select-viewport",children:n.map(d=>y.jsxs($L,{className:"ui-select-item",value:d.value,children:[y.jsx(GL,{children:d.label}),y.jsx(XL,{className:"ui-select-check",children:y.jsx(ja,{size:14})})]},d.value))}),y.jsx(WL,{className:"ui-select-scroll",children:y.jsx(kf,{size:14})})]})})]})}const e5="modulepreload",t5=function(e){return"/"+e},oT={},uC=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=t5(h),h in oT)return;oT[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":e5,m||(E.as="script"),E.crossOrigin="",E.href=h,c&&E.setAttribute("nonce",c),document.head.appendChild(E),m)return new Promise((x,v)=>{E.addEventListener("load",x),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)})},ad=(function(e){if(e==null)return a5;if(typeof e=="function")return sd(e);if(typeof e=="object")return Array.isArray(e)?n5(e):r5(e);if(typeof e=="string")return i5(e);throw new Error("Expected function, string, or object as test")});function n5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ad(e[n]);return sd(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function r5(e){const t=e;return sd(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function i5(e){return sd(t);function t(n){return n&&n.type===e}}function sd(e){return t;function t(n,i,s){return!!(s5(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function a5(){return!0}function s5(e){return e!==null&&typeof e=="object"&&"type"in e}const cC=[],Lo=!0,n0=!1,Ha="skip";function ld(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=ad(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 x=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(x?"<"+x+">":""))+")"})}return E;function E(){let x=cC,v,S,A;if((!t||l(d,h,m[m.length-1]||void 0))&&(x=l5(n(d,m)),x[0]===n0))return x;if("children"in d&&d.children){const k=d;if(k.children&&x[0]!==Ha)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]===n0)return v;S=typeof v[1]=="number"?v[1]:S+u}}return x}}}function l5(e){return Array.isArray(e)?e:typeof e=="number"?[Lo,e]:e==null?cC:[e]}function hr(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),ld(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 ml={indicator:"indicator",textOnly:"text-only",remove:"remove"};function o5({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=ml.indicator,imageBlockPolicy:d=ml.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=m5(e,t,n,i,s,l,u,c,d);fC(p),hr(p,E)}}function uT(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 u5(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const c5=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),f5=new Set(["javascript:","data:","file:","vbscript:"]);function cT(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=uT(e,n);if(!u||f5.has(u.protocol)||!(c5.has(u.protocol)||l.includes(u.protocol)||l.includes("*")))return null;if(u.protocol==="mailto:"||!u.protocol.match(/^https?:$/))return u.href;const d=u5(e);return u&&t.some(h=>{const m=uT(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 fC(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)fC(t)}}const lp=Symbol("node-seen");function d5(e,t,n){return t===ml.remove?{type:"remove"}:t===ml.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 h5(e,t,n){if(t===ml.remove)return{type:"remove"};if(t===ml.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 m5=(e,t,n,i,s,l,u,c,d)=>{const h=(m,p,E)=>{if(m.type!=="element"||m[lp])return Lo;if(m.tagName==="a"){const x=cT(m.properties.href,t,e,!1,!1,s);if(x===null){if(m[lp]=!0,hr(m,h),E&&typeof p=="number"){const v=d5(m,c,u);if(v.type==="remove")return E.children.splice(p,1),[Ha,p];E.children[p]=v.element}return Ha}else return m.properties.href=x,m.properties.target="_blank",m.properties.rel="noopener noreferrer",Lo}if(m.tagName==="img"){const x=cT(m.properties.src,n,e,i,!0,s);if(x===null){if(m[lp]=!0,hr(m,h),E&&typeof p=="number"){const v=h5(m,d,l);if(v.type==="remove")return E.children.splice(p,1),[Ha,p];E.children[p]=v.element}return Ha}else return m.properties.src=x,Lo}return Lo};return h},dC=-1,od=0,Ho=1,Df=2,sg=3,lg=4,og=5,ug=6,hC=7,mC=8,{defineProperty:p5}=Object,pC=typeof self=="object"?self:globalThis,fT=(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 pC[e](t)},g5=(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 od:case dC:return n(u,s);case Ho:{const c=n([],s);for(const d of u)c.push(i(d));return c}case Df:{const c=n({},s);for(const[d,h]of u){const m=i(d),p=i(h);m==="__proto__"?p5(c,m,{value:p,configurable:!0,enumerable:!0,writable:!0}):c[m]=p}return c}case sg:return n(new Date(u),s);case lg:{const{source:c,flags:d}=u;return n(new RegExp(c,d),s)}case og:{const c=n(new Map,s);for(const[d,h]of u)c.set(i(d),i(h));return c}case ug:{const c=n(new Set,s);for(const d of u)c.add(i(d));return c}case hC:{const{name:c,message:d}=u;return n(typeof pC[c]=="function"?fT(c,d):new Error(d),s)}case mC: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(fT(l,u),s)};return i},dT=e=>g5(new Map,e)(0),Ia="",{toString:b5}={},{keys:y5,is:E5}=Object,So=e=>{const t=typeof e;if(t!=="object"||!e)return[od,t];const n=b5.call(e).slice(8,-1);switch(n){case"Array":return[Ho,Ia];case"Object":return[Df,Ia];case"Date":return[sg,Ia];case"RegExp":return[lg,Ia];case"Map":return[og,Ia];case"Set":return[ug,Ia];case"DataView":return[Ho,n]}return n.includes("Array")?[Ho,n]:e instanceof Error?[hC,e.name||"Error"]:[Df,n]},Xc=([e,t])=>e===od&&(t==="function"||t==="symbol"),x5=(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]=So(u);switch(c){case od:{let m=u;switch(d){case"bigint":c=mC,m=u.toString();break;case"number":if(!u&&E5(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([dC],u)}return s([c,m],u)}case Ho:{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 Df:{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 y5(u))(e||!Xc(So(u[E])))&&m.push([l(E),l(u[E])]);return p}case sg:return s([c,isNaN(u.getTime())?Ia:u.toISOString()],u);case lg:{const{source:m,flags:p}=u;return s([c,{source:m,flags:p}],u)}case og:{const m=[],p=s([c,m],u);for(const[E,x]of u)(e||!(Xc(So(E))||Xc(So(x))))&&m.push([l(E),l(x)]);return p}case ug:{const m=[],p=s([c,m],u);for(const E of u)(e||!Xc(So(E)))&&m.push(l(E));return p}}const{message:h}=u;return s([c,{name:d,message:h}],u)};return l},hT=(e,{json:t,lossy:n}={})=>{const i=[];return x5(!(t||n),!!t,new Map,i)(e),i},Xa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?dT(hT(e,t)):structuredClone(e):(e,t)=>dT(hT(e,t));class cu{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}cu.prototype.normal={};cu.prototype.property={};cu.prototype.space=void 0;function gC(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new cu(n,i,t)}function eu(e){return e.toLowerCase()}class Dn{constructor(t,n){this.attribute=n,this.property=t}}Dn.prototype.attribute="";Dn.prototype.booleanish=!1;Dn.prototype.boolean=!1;Dn.prototype.commaOrSpaceSeparated=!1;Dn.prototype.commaSeparated=!1;Dn.prototype.defined=!1;Dn.prototype.mustUseProperty=!1;Dn.prototype.number=!1;Dn.prototype.overloadedBoolean=!1;Dn.prototype.property="";Dn.prototype.spaceSeparated=!1;Dn.prototype.space=void 0;let T5=0;const Pe=rs(),zt=rs(),r0=rs(),Ee=rs(),yt=rs(),qa=rs(),zn=rs();function rs(){return 2**++T5}const i0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:zt,commaOrSpaceSeparated:zn,commaSeparated:qa,number:Ee,overloadedBoolean:r0,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),op=Object.keys(i0);class cg extends Dn{constructor(t,n,i,s){let l=-1;if(super(t,n),mT(this,"space",s),typeof i=="number")for(;++l<op.length;){const u=op[l];mT(this,op[l],(i&i0[u])===i0[u])}}}cg.prototype.defined=!0;function mT(e,t,n){n&&(e[t]=n)}function Tl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new cg(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[eu(i)]=i,n[eu(l.attribute)]=i}return new cu(t,n,e.space)}const bC=Tl({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:yt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:Ee,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:yt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:zt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yC(e,t){return t in e?e[t]:t}function EC(e,t){return yC(e,t.toLowerCase())}const v5=Tl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qa,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:yt,autoFocus:Pe,autoPlay:Pe,blocking:yt,capture:null,charSet:null,checked:Pe,cite:null,className:yt,closedBy:null,colorSpace:null,cols:Ee,colSpan:Ee,command:null,commandFor:null,content:null,contentEditable:zt,controls:Pe,controlsList:yt,coords:Ee|qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:r0,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:yt,height:Ee,hidden:r0,high:Ee,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:yt,itemRef:yt,itemScope:Pe,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,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:Ee,pattern:null,ping:yt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:yt,required:Pe,reversed:Pe,rows:Ee,rowSpan:Ee,sandbox:yt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:zt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,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:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:qa,part:yt,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:EC}),S5=Tl({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:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:yt,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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,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:qa,g2:qa,glyphName:qa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,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:Ee,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:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,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:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,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:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yC}),xC=Tl({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()}}),TC=Tl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:EC}),vC=Tl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),C5={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"},_5=/[A-Z]/g,pT=/-[a-z]/g,A5=/^data[-\w.:]+$/i;function ud(e,t){const n=eu(t);let i=t,s=Dn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&A5.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(pT,w5);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!pT.test(l)){let u=l.replace(_5,k5);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=cg}return new s(i,t)}function k5(e){return"-"+e.toLowerCase()}function w5(e){return e.charAt(1).toUpperCase()}const fu=gC([bC,v5,xC,TC,vC],"html"),aa=gC([bC,S5,xC,TC,vC],"svg");function gT(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 SC(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bT=/[#.]/g;function N5(e,t){const n=e||"",i={};let s=0,l,u;for(;s<n.length;){bT.lastIndex=s;const c=bT.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 yT(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function CC(e){return e.join(" ").trim()}function _C(e,t,n){const i=n?D5(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=N5(l,t);const h=d.tagName.toLowerCase(),m=i?i.get(h):void 0;if(d.tagName=m||h,R5(u))c.unshift(u);else for(const[p,E]of Object.entries(u))O5(e,d.properties,p,E)}for(const h of c)a0(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return s}function R5(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 O5(e,t,n,i){const s=ud(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=yT(i):s.commaSeparated?l=gT(i):s.commaOrSpaceSeparated?l=yT(gT(i).join(" ")):l=ET(s,s.property,i):Array.isArray(i)?l=[...i]:l=s.property==="style"?L5(i):String(i);if(Array.isArray(l)){const u=[];for(const c of l)u.push(ET(s,s.property,c));l=u}s.property==="className"&&Array.isArray(t.className)&&(l=t.className.concat(l)),t[s.property]=l}}function a0(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)a0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?a0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function ET(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||eu(n)===eu(t)))return!0}return n}function L5(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function D5(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const I5=["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"],M5=_C(fu,"div"),P5=_C(aa,"g",I5);function B5(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=xT(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=xT(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 xT(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 Ua={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/"},AC={}.hasOwnProperty,j5=Object.prototype;function H5(e,t){const n=t||{};return fg({file:n.file||void 0,location:!1,schema:n.space==="svg"?aa:fu,verbose:n.verbose||!1},e)}function fg(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:kC(e,t.childNodes),data:{quirksMode:s}},e.file&&e.location){const l=String(e.file),u=B5(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=U5(e,t),n}}function kC(e,t){let n=-1;const i=[];for(;++n<t.length;){const s=fg(e,t[n]);i.push(s)}return i}function U5(e,t){const n=e.schema;e.schema=t.namespaceURI===Ua.svg?aa:fu;let i=-1;const s={};for(;++i<t.attrs.length;){const c=t.attrs[i],d=(c.prefix?c.prefix+":":"")+c.name;AC.call(j5,d)||(s[d]=c.value)}const u=(e.schema.space==="svg"?P5:M5)(t.tagName,s,kC(e,t.childNodes));if(gf(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&rl(d.startTag),m=d&&d.endTag&&rl(d.endTag),p=fg(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=z5(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function z5(e,t,n){const i=rl(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)AC.call(n.attrs,u)&&(l[ud(e.schema,u).property]=rl(n.attrs[u]));n.startTag;const c=rl(n.startTag),d=n.endTag?rl(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=l,t.data={position:h}}}return i}function rl(e){const t=TT({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=TT({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function TT(e){return e.line&&e.column?e:void 0}const vT={}.hasOwnProperty;function wC(e,t){const n=t||{};function i(s,...l){let u=i.invalid;const c=i.handlers;if(s&&vT.call(s,e)){const d=String(s[e]);u=vT.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 F5={},q5={}.hasOwnProperty,NC=wC("type",{handlers:{root:Y5,element:Q5,text:K5,comment:X5,doctype:G5}});function V5(e,t){const i=(t||F5).space;return NC(e,i==="svg"?aa:fu)}function Y5(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=dg(e.children,n,t),vl(e,n),n}function $5(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=dg(e.children,n,t),vl(e,n),n}function G5(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return vl(e,t),t}function K5(e){const t={nodeName:"#text",value:e.value,parentNode:null};return vl(e,t),t}function X5(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return vl(e,t),t}function Q5(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=aa);const s=[];let l;if(e.properties){for(l in e.properties)if(l!=="children"&&q5.call(e.properties,l)){const d=W5(i,l,e.properties[l]);d&&s.push(d)}}const u=i.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:s,namespaceURI:Ua[u],childNodes:[],parentNode:null};return c.childNodes=dg(e.children,c,i),vl(e,c),e.tagName==="template"&&e.content&&(c.content=$5(e.content,i)),c}function W5(e,t,n){const i=ud(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?SC(n):CC(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=Ua[i.space]}return s}function dg(e,t,n){let i=-1;const s=[];if(e)for(;++i<e.length;){const l=NC(e[i],n);l.parentNode=t,s.push(l)}return s}function vl(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 Z5=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],J5=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]),At="�";var P;(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"})(P||(P={}));const Nn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function RC(e){return e>=55296&&e<=57343}function eD(e){return e>=56320&&e<=57343}function tD(e,t){return(e-55296)*1024+9216+t}function OC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function LC(e){return e>=64976&&e<=65007||J5.has(e)}var ue;(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"})(ue||(ue={}));const nD=65536;class rD{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=nD,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(eD(n))return this.pos++,this._addGap(),tD(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,P.EOF;return this._err(ue.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,P.EOF;const i=this.html.charCodeAt(n);return i===P.CARRIAGE_RETURN?P.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,P.EOF;let t=this.html.charCodeAt(this.pos);return t===P.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,P.LINE_FEED):t===P.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,RC(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===P.LINE_FEED||t===P.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){OC(t)?this._err(ue.controlCharacterInInputStream):LC(t)&&this._err(ue.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ve;(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"})(Ve||(Ve={}));function DC(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 iD=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),aD=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 sD(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=aD.get(e))!==null&&t!==void 0?t:e}var Zt;(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"})(Zt||(Zt={}));const lD=32;var Ki;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ki||(Ki={}));function s0(e){return e>=Zt.ZERO&&e<=Zt.NINE}function oD(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function uD(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||s0(e)}function cD(e){return e===Zt.EQUALS||uD(e)}var Xt;(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"})(Xt||(Xt={}));var ii;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ii||(ii={}));class fD{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Xt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ii.Strict}startEntity(t){this.decodeMode=t,this.state=Xt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Xt.EntityStart:return t.charCodeAt(n)===Zt.NUM?(this.state=Xt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Xt.NamedEntity,this.stateNamedEntity(t,n));case Xt.NumericStart:return this.stateNumericStart(t,n);case Xt.NumericDecimal:return this.stateNumericDecimal(t,n);case Xt.NumericHex:return this.stateNumericHex(t,n);case Xt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|lD)===Zt.LOWER_X?(this.state=Xt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Xt.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(s0(s)||oD(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(s0(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===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===ii.Strict)return 0;return this.emitCodePoint(sD(this.result),this.consumed),this.errors&&(t!==Zt.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&Ki.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=dD(i,s,this.treeIndex+Math.max(1,l),u),this.treeIndex<0)return this.result===0||this.decodeMode===ii.Attribute&&(l===0||cD(u))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],l=(s&Ki.VALUE_LENGTH)>>14,l!==0){if(u===Zt.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]&Ki.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]&~Ki.VALUE_LENGTH:s[t+1],i),n===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case Xt.NamedEntity:return this.result!==0&&(this.decodeMode!==ii.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xt.NumericDecimal:return this.emitNumericEntity(0,2);case Xt.NumericHex:return this.emitNumericEntity(0,3);case Xt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xt.EntityStart:return 0}}}function dD(e,t,n,i){const s=(t&Ki.BRANCH_LENGTH)>>7,l=t&Ki.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 be;(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/"})(be||(be={}));var Va;(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"})(Va||(Va={}));var tr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(tr||(tr={}));var J;(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"})(J||(J={}));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 hD=new Map([[J.A,T.A],[J.ADDRESS,T.ADDRESS],[J.ANNOTATION_XML,T.ANNOTATION_XML],[J.APPLET,T.APPLET],[J.AREA,T.AREA],[J.ARTICLE,T.ARTICLE],[J.ASIDE,T.ASIDE],[J.B,T.B],[J.BASE,T.BASE],[J.BASEFONT,T.BASEFONT],[J.BGSOUND,T.BGSOUND],[J.BIG,T.BIG],[J.BLOCKQUOTE,T.BLOCKQUOTE],[J.BODY,T.BODY],[J.BR,T.BR],[J.BUTTON,T.BUTTON],[J.CAPTION,T.CAPTION],[J.CENTER,T.CENTER],[J.CODE,T.CODE],[J.COL,T.COL],[J.COLGROUP,T.COLGROUP],[J.DD,T.DD],[J.DESC,T.DESC],[J.DETAILS,T.DETAILS],[J.DIALOG,T.DIALOG],[J.DIR,T.DIR],[J.DIV,T.DIV],[J.DL,T.DL],[J.DT,T.DT],[J.EM,T.EM],[J.EMBED,T.EMBED],[J.FIELDSET,T.FIELDSET],[J.FIGCAPTION,T.FIGCAPTION],[J.FIGURE,T.FIGURE],[J.FONT,T.FONT],[J.FOOTER,T.FOOTER],[J.FOREIGN_OBJECT,T.FOREIGN_OBJECT],[J.FORM,T.FORM],[J.FRAME,T.FRAME],[J.FRAMESET,T.FRAMESET],[J.H1,T.H1],[J.H2,T.H2],[J.H3,T.H3],[J.H4,T.H4],[J.H5,T.H5],[J.H6,T.H6],[J.HEAD,T.HEAD],[J.HEADER,T.HEADER],[J.HGROUP,T.HGROUP],[J.HR,T.HR],[J.HTML,T.HTML],[J.I,T.I],[J.IMG,T.IMG],[J.IMAGE,T.IMAGE],[J.INPUT,T.INPUT],[J.IFRAME,T.IFRAME],[J.KEYGEN,T.KEYGEN],[J.LABEL,T.LABEL],[J.LI,T.LI],[J.LINK,T.LINK],[J.LISTING,T.LISTING],[J.MAIN,T.MAIN],[J.MALIGNMARK,T.MALIGNMARK],[J.MARQUEE,T.MARQUEE],[J.MATH,T.MATH],[J.MENU,T.MENU],[J.META,T.META],[J.MGLYPH,T.MGLYPH],[J.MI,T.MI],[J.MO,T.MO],[J.MN,T.MN],[J.MS,T.MS],[J.MTEXT,T.MTEXT],[J.NAV,T.NAV],[J.NOBR,T.NOBR],[J.NOFRAMES,T.NOFRAMES],[J.NOEMBED,T.NOEMBED],[J.NOSCRIPT,T.NOSCRIPT],[J.OBJECT,T.OBJECT],[J.OL,T.OL],[J.OPTGROUP,T.OPTGROUP],[J.OPTION,T.OPTION],[J.P,T.P],[J.PARAM,T.PARAM],[J.PLAINTEXT,T.PLAINTEXT],[J.PRE,T.PRE],[J.RB,T.RB],[J.RP,T.RP],[J.RT,T.RT],[J.RTC,T.RTC],[J.RUBY,T.RUBY],[J.S,T.S],[J.SCRIPT,T.SCRIPT],[J.SEARCH,T.SEARCH],[J.SECTION,T.SECTION],[J.SELECT,T.SELECT],[J.SOURCE,T.SOURCE],[J.SMALL,T.SMALL],[J.SPAN,T.SPAN],[J.STRIKE,T.STRIKE],[J.STRONG,T.STRONG],[J.STYLE,T.STYLE],[J.SUB,T.SUB],[J.SUMMARY,T.SUMMARY],[J.SUP,T.SUP],[J.TABLE,T.TABLE],[J.TBODY,T.TBODY],[J.TEMPLATE,T.TEMPLATE],[J.TEXTAREA,T.TEXTAREA],[J.TFOOT,T.TFOOT],[J.TD,T.TD],[J.TH,T.TH],[J.THEAD,T.THEAD],[J.TITLE,T.TITLE],[J.TR,T.TR],[J.TRACK,T.TRACK],[J.TT,T.TT],[J.U,T.U],[J.UL,T.UL],[J.SVG,T.SVG],[J.VAR,T.VAR],[J.WBR,T.WBR],[J.XMP,T.XMP]]);function Sl(e){var t;return(t=hD.get(e))!==null&&t!==void 0?t:T.UNKNOWN}const ye=T,mD={[be.HTML]:new Set([ye.ADDRESS,ye.APPLET,ye.AREA,ye.ARTICLE,ye.ASIDE,ye.BASE,ye.BASEFONT,ye.BGSOUND,ye.BLOCKQUOTE,ye.BODY,ye.BR,ye.BUTTON,ye.CAPTION,ye.CENTER,ye.COL,ye.COLGROUP,ye.DD,ye.DETAILS,ye.DIR,ye.DIV,ye.DL,ye.DT,ye.EMBED,ye.FIELDSET,ye.FIGCAPTION,ye.FIGURE,ye.FOOTER,ye.FORM,ye.FRAME,ye.FRAMESET,ye.H1,ye.H2,ye.H3,ye.H4,ye.H5,ye.H6,ye.HEAD,ye.HEADER,ye.HGROUP,ye.HR,ye.HTML,ye.IFRAME,ye.IMG,ye.INPUT,ye.LI,ye.LINK,ye.LISTING,ye.MAIN,ye.MARQUEE,ye.MENU,ye.META,ye.NAV,ye.NOEMBED,ye.NOFRAMES,ye.NOSCRIPT,ye.OBJECT,ye.OL,ye.P,ye.PARAM,ye.PLAINTEXT,ye.PRE,ye.SCRIPT,ye.SECTION,ye.SELECT,ye.SOURCE,ye.STYLE,ye.SUMMARY,ye.TABLE,ye.TBODY,ye.TD,ye.TEMPLATE,ye.TEXTAREA,ye.TFOOT,ye.TH,ye.THEAD,ye.TITLE,ye.TR,ye.TRACK,ye.UL,ye.WBR,ye.XMP]),[be.MATHML]:new Set([ye.MI,ye.MO,ye.MN,ye.MS,ye.MTEXT,ye.ANNOTATION_XML]),[be.SVG]:new Set([ye.TITLE,ye.FOREIGN_OBJECT,ye.DESC]),[be.XLINK]:new Set,[be.XML]:new Set,[be.XMLNS]:new Set},l0=new Set([ye.H1,ye.H2,ye.H3,ye.H4,ye.H5,ye.H6]);J.STYLE,J.SCRIPT,J.XMP,J.IFRAME,J.NOEMBED,J.NOFRAMES,J.PLAINTEXT;var j;(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"})(j||(j={}));const It={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function pD(e){return e>=P.DIGIT_0&&e<=P.DIGIT_9}function Do(e){return e>=P.LATIN_CAPITAL_A&&e<=P.LATIN_CAPITAL_Z}function gD(e){return e>=P.LATIN_SMALL_A&&e<=P.LATIN_SMALL_Z}function qi(e){return gD(e)||Do(e)}function ST(e){return qi(e)||pD(e)}function Qc(e){return e+32}function IC(e){return e===P.SPACE||e===P.LINE_FEED||e===P.TABULATION||e===P.FORM_FEED}function CT(e){return IC(e)||e===P.SOLIDUS||e===P.GREATER_THAN_SIGN}function bD(e){return e===P.NULL?ue.nullCharacterReference:e>1114111?ue.characterReferenceOutsideUnicodeRange:RC(e)?ue.surrogateCharacterReference:LC(e)?ue.noncharacterCharacterReference:OC(e)||e===P.CARRIAGE_RETURN?ue.controlCharacterReference:null}class yD{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=j.DATA,this.returnState=j.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new rD(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new fD(iD,(i,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ue.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ue.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const s=bD(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:Ve.START_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ve.END_TAG,tagName:"",tagID:T.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ve.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ve.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(DC(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(ue.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=Sl(t.tagName),t.type===Ve.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ue.endTagWithAttributes),t.selfClosing&&this._err(ue.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 Ve.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ve.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ve.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:Ve.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=IC(t)?Ve.WHITESPACE_CHARACTER:t===P.NULL?Ve.NULL_CHARACTER:Ve.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ve.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=j.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ii.Attribute:ii.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case j.DATA:{this._stateData(t);break}case j.RCDATA:{this._stateRcdata(t);break}case j.RAWTEXT:{this._stateRawtext(t);break}case j.SCRIPT_DATA:{this._stateScriptData(t);break}case j.PLAINTEXT:{this._statePlaintext(t);break}case j.TAG_OPEN:{this._stateTagOpen(t);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case j.TAG_NAME:{this._stateTagName(t);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case j.BOGUS_COMMENT:{this._stateBogusComment(t);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case j.COMMENT_START:{this._stateCommentStart(t);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case j.COMMENT:{this._stateComment(t);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case j.COMMENT_END:{this._stateCommentEnd(t);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case j.DOCTYPE:{this._stateDoctype(t);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case j.CDATA_SECTION:{this._stateCdataSection(t);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitCodePoint(t);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case P.AMPERSAND:{this._startCharacterReference();break}case P.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(qi(t))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case P.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case P.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case P.QUESTION_MARK:{this._err(ue.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t);break}case P.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(qi(t))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(t);else switch(t){case P.GREATER_THAN_SIGN:{this._err(ue.missingEndTagName),this.state=j.DATA;break}case P.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.tagName+=At;break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Do(t)?Qc(t):t)}}_stateRcdataLessThanSign(t){t===P.SOLIDUS?this.state=j.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){qi(t)?(this.state=j.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=j.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=j.BEFORE_ATTRIBUTE_NAME,!1;case P.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=j.SELF_CLOSING_START_TAG,!1;case P.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=j.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===P.SOLIDUS?this.state=j.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){qi(t)?(this.state=j.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case P.SOLIDUS:{this.state=j.SCRIPT_DATA_END_TAG_OPEN;break}case P.EXCLAMATION_MARK:{this.state=j.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=j.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){qi(t)?(this.state=j.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===P.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===P.HYPHEN_MINUS?(this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=j.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case P.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===P.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:qi(t)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){qi(t)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Nn.SCRIPT,!1)&&CT(this.preprocessor.peek(Nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case P.HYPHEN_MINUS:{this._emitChars("-");break}case P.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case P.GREATER_THAN_SIGN:{this.state=j.SCRIPT_DATA,this._emitChars(">");break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(At);break}case P.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===P.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Nn.SCRIPT,!1)&&CT(this.preprocessor.peek(Nn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Nn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=j.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._err(ue.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=j.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:case P.SOLIDUS:case P.GREATER_THAN_SIGN:case P.EOF:{this._leaveAttrName(),this.state=j.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case P.EQUALS_SIGN:{this._leaveAttrName(),this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:{this._err(ue.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.name+=At;break}default:this.currentAttr.name+=String.fromCodePoint(Do(t)?Qc(t):t)}}_stateAfterAttributeName(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.SOLIDUS:{this.state=j.SELF_CLOSING_START_TAG;break}case P.EQUALS_SIGN:{this.state=j.BEFORE_ATTRIBUTE_VALUE;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=j.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{this.state=j.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this.state=j.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingAttributeValue),this.state=j.DATA,this.emitCurrentTagToken();break}default:this.state=j.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=At;break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case P.APOSTROPHE:{this.state=j.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=At;break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.AMPERSAND:{this._startCharacterReference();break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=At;break}case P.QUOTATION_MARK:case P.APOSTROPHE:case P.LESS_THAN_SIGN:case P.EQUALS_SIGN:case P.GRAVE_ACCENT:{this._err(ue.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this._leaveAttrValue(),this.state=j.BEFORE_ATTRIBUTE_NAME;break}case P.SOLIDUS:{this._leaveAttrValue(),this.state=j.SELF_CLOSING_START_TAG;break}case P.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBetweenAttributes),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case P.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=j.DATA,this.emitCurrentTagToken();break}case P.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.unexpectedSolidusInTag),this.state=j.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.data+=At;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Nn.DASH_DASH,!0)?(this._createCommentToken(Nn.DASH_DASH.length+1),this.state=j.COMMENT_START):this._consumeSequenceIfMatch(Nn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Nn.DOCTYPE.length+1),this.state=j.DOCTYPE):this._consumeSequenceIfMatch(Nn.CDATA_START,!0)?this.inForeignNode?this.state=j.CDATA_SECTION:(this._err(ue.cdataInHtmlContent),this._createCommentToken(Nn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=j.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ue.incorrectlyOpenedComment),this._createCommentToken(2),this.state=j.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_START_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=j.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END_DASH;break}case P.LESS_THAN_SIGN:{n.data+="<",this.state=j.COMMENT_LESS_THAN_SIGN;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.data+=At;break}case P.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case P.EXCLAMATION_MARK:{n.data+="!",this.state=j.COMMENT_LESS_THAN_SIGN_BANG;break}case P.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=j.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===P.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=j.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===P.HYPHEN_MINUS?this.state=j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=j.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==P.GREATER_THAN_SIGN&&t!==P.EOF&&this._err(ue.nestedComment),this.state=j.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{this.state=j.COMMENT_END;break}case P.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentComment(n);break}case P.EXCLAMATION_MARK:{this.state=j.COMMENT_END_BANG;break}case P.HYPHEN_MINUS:{n.data+="-";break}case P.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=j.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case P.HYPHEN_MINUS:{n.data+="--!",this.state=j.COMMENT_END_DASH;break}case P.GREATER_THAN_SIGN:{this._err(ue.incorrectlyClosedComment),this.state=j.DATA,this.emitCurrentComment(n);break}case P.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=j.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case P.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBeforeDoctypeName),this.state=j.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Do(t))this._createDoctypeToken(String.fromCharCode(Qc(t))),this.state=j.DOCTYPE_NAME;else switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.NULL:{this._err(ue.unexpectedNullCharacter),this._createDoctypeToken(At),this.state=j.DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.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=j.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.AFTER_DOCTYPE_NAME;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.name+=At;break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Do(t)?Qc(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Nn.PUBLIC,!1)?this.state=j.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Nn.SYSTEM,!1)?this.state=j.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ue.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.publicId="",this.state=j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.publicId+=At;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.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 P.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.publicId+=At;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case P.GREATER_THAN_SIGN:{this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.QUOTATION_MARK:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:{this.state=j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.QUOTATION_MARK:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case P.APOSTROPHE:{n.systemId="",this.state=j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case P.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.DATA,this.emitCurrentDoctype(n);break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case P.QUOTATION_MARK:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.systemId+=At;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.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 P.APOSTROPHE:{this.state=j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case P.NULL:{this._err(ue.unexpectedNullCharacter),n.systemId+=At;break}case P.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.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 P.SPACE:case P.LINE_FEED:case P.TABULATION:case P.FORM_FEED:break;case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.EOF:{this._err(ue.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ue.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=j.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case P.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=j.DATA;break}case P.NULL:{this._err(ue.unexpectedNullCharacter);break}case P.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case P.RIGHT_SQUARE_BRACKET:{this.state=j.CDATA_SECTION_BRACKET;break}case P.EOF:{this._err(ue.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===P.RIGHT_SQUARE_BRACKET?this.state=j.CDATA_SECTION_END:(this._emitChars("]"),this.state=j.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case P.GREATER_THAN_SIGN:{this.state=j.DATA;break}case P.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=j.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(P.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ST(this.preprocessor.peek(1))?j.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){ST(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===P.SEMICOLON&&this._err(ue.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const MC=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([...MC,T.CAPTION,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]),If=new Set([T.APPLET,T.CAPTION,T.HTML,T.MARQUEE,T.OBJECT,T.TABLE,T.TD,T.TEMPLATE,T.TH]),ED=new Set([...If,T.OL,T.UL]),xD=new Set([...If,T.BUTTON]),AT=new Set([T.ANNOTATION_XML,T.MI,T.MN,T.MO,T.MS,T.MTEXT]),kT=new Set([T.DESC,T.FOREIGN_OBJECT,T.TITLE]),TD=new Set([T.TR,T.TEMPLATE,T.HTML]),vD=new Set([T.TBODY,T.TFOOT,T.THEAD,T.TEMPLATE,T.HTML]),SD=new Set([T.TABLE,T.TEMPLATE,T.HTML]),CD=new Set([T.TD,T.TH]);class _D{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)===be.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])!==be.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(l0,be.HTML)}popUntilTableCellPopped(){this.popUntilPopped(CD,be.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(SD,be.HTML)}clearBackToTableBodyContext(){this.clearBackTo(vD,be.HTML)}clearBackToTableRowContext(){this.clearBackTo(TD,be.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 be.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case be.SVG:{if(kT.has(s))return!1;break}case be.MATHML:{if(AT.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,If)}hasInListItemScope(t){return this.hasInDynamicScope(t,ED)}hasInButtonScope(t){return this.hasInDynamicScope(t,xD)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case be.HTML:{if(l0.has(n))return!0;if(If.has(n))return!1;break}case be.SVG:{if(kT.has(n))return!1;break}case be.MATHML:{if(AT.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===be.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])===be.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])===be.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&&MC.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 up=3;var Ar;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Ar||(Ar={}));const wT={type:Ar.Marker};class AD{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===Ar.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<up)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<up)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>=up&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(wT)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Ar.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Ar.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(wT);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===Ar.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===Ar.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Ar.Element&&n.element===t)}}const Vi={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};Vi.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(Vi.isTextNode(n)){n.value+=t;return}}Vi.appendChild(e,Vi.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Vi.isTextNode(i)?i.value+=t:Vi.insertBefore(e,Vi.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}}},PC="html",kD="about:legacy-compat",wD="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",BC=["+//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//"],ND=[...BC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],RD=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),jC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],OD=[...jC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function NT(e,t){return t.some(n=>e.startsWith(n))}function LD(e){return e.name===PC&&e.publicId===null&&(e.systemId===null||e.systemId===kD)}function DD(e){if(e.name!==PC)return tr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===wD)return tr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),RD.has(n))return tr.QUIRKS;let i=t===null?ND:BC;if(NT(n,i))return tr.QUIRKS;if(i=t===null?jC:OD,NT(n,i))return tr.LIMITED_QUIRKS}return tr.NO_QUIRKS}const RT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ID="definitionurl",MD="definitionURL",PD=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])),BD=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:be.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:be.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:be.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:be.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:be.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:be.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:be.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:be.XML}],["xml:space",{prefix:"xml",name:"space",namespace:be.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:be.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:be.XMLNS}]]),jD=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])),HD=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 UD(e){const t=e.tagID;return t===T.FONT&&e.attrs.some(({name:i})=>i===Va.COLOR||i===Va.SIZE||i===Va.FACE)||HD.has(t)}function HC(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ID){e.attrs[t].name=MD;break}}function UC(e){for(let t=0;t<e.attrs.length;t++){const n=PD.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function hg(e){for(let t=0;t<e.attrs.length;t++){const n=BD.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 zD(e){const t=jD.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Sl(e.tagName))}function FD(e,t){return t===be.MATHML&&(e===T.MI||e===T.MO||e===T.MN||e===T.MS||e===T.MTEXT)}function qD(e,t,n){if(t===be.MATHML&&e===T.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===Va.ENCODING){const s=n[i].value.toLowerCase();return s===RT.TEXT_HTML||s===RT.APPLICATION_XML}}return t===be.SVG&&(e===T.FOREIGN_OBJECT||e===T.DESC||e===T.TITLE)}function VD(e,t,n,i){return(!i||i===be.HTML)&&qD(e,t,n)||(!i||i===be.MATHML)&&FD(e,t)}const YD="hidden",$D=8,GD=3;var q;(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"})(q||(q={}));const KD={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},zC=new Set([T.TABLE,T.TBODY,T.TFOOT,T.THEAD,T.TR]),OT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Vi,onParseError:null};class LT{constructor(t,n,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=q.INITIAL,this.originalInsertionMode=q.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={...OT,...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 yD(this.options,this),this.activeFormattingElements=new AD(this.treeAdapter),this.fragmentContextID=i?Sl(this.treeAdapter.getTagName(i)):T.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new _D(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={...OT,...n};t??(t=i.treeAdapter.createElement(J.TEMPLATE,be.HTML,[]));const s=i.treeAdapter.createElement("documentmock",be.HTML,[]),l=new this(i,s,t);return l.fragmentContextID===T.TEMPLATE&&l.tmplInsertionModeStack.unshift(q.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:KD,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)===be.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,be.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=q.TEXT}switchToPlaintextParsing(){this.insertionMode=q.TEXT,this.originalInsertionMode=q.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)===J.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==be.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,be.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,be.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(J.HTML,be.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===Ve.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)===J.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===be.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===T.MGLYPH||t.tagID===T.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,be.HTML)}_processToken(t){switch(t.type){case Ve.CHARACTER:{this.onCharacter(t);break}case Ve.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ve.COMMENT:{this.onComment(t);break}case Ve.DOCTYPE:{this.onDoctype(t);break}case Ve.START_TAG:{this._processStartTag(t);break}case Ve.END_TAG:{this.onEndTag(t);break}case Ve.EOF:{this.onEof(t);break}case Ve.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const s=this.treeAdapter.getNamespaceURI(n),l=this.treeAdapter.getAttrList(n);return VD(t,s,l,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===Ar.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=q.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=q.IN_ROW;return}case T.TBODY:case T.THEAD:case T.TFOOT:{this.insertionMode=q.IN_TABLE_BODY;return}case T.CAPTION:{this.insertionMode=q.IN_CAPTION;return}case T.COLGROUP:{this.insertionMode=q.IN_COLUMN_GROUP;return}case T.TABLE:{this.insertionMode=q.IN_TABLE;return}case T.BODY:{this.insertionMode=q.IN_BODY;return}case T.FRAMESET:{this.insertionMode=q.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?q.AFTER_HEAD:q.BEFORE_HEAD;return}case T.TD:case T.TH:{if(t>0){this.insertionMode=q.IN_CELL;return}break}case T.HEAD:{if(t>0){this.insertionMode=q.IN_HEAD;return}break}}this.insertionMode=q.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=q.IN_SELECT_IN_TABLE;return}}this.insertionMode=q.IN_SELECT}_isElementCausesFosterParenting(t){return zC.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)===be.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 mD[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){CM(this,t);return}switch(this.insertionMode){case q.INITIAL:{Co(this,t);break}case q.BEFORE_HTML:{Uo(this,t);break}case q.BEFORE_HEAD:{zo(this,t);break}case q.IN_HEAD:{Fo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{qo(this,t);break}case q.AFTER_HEAD:{Vo(this,t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:{qC(this,t);break}case q.TEXT:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{cp(this,t);break}case q.IN_TABLE_TEXT:{XC(this,t);break}case q.IN_COLUMN_GROUP:{Mf(this,t);break}case q.AFTER_BODY:{Pf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){SM(this,t);return}switch(this.insertionMode){case q.INITIAL:{Co(this,t);break}case q.BEFORE_HTML:{Uo(this,t);break}case q.BEFORE_HEAD:{zo(this,t);break}case q.IN_HEAD:{Fo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{qo(this,t);break}case q.AFTER_HEAD:{Vo(this,t);break}case q.TEXT:{this._insertCharacters(t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{cp(this,t);break}case q.IN_COLUMN_GROUP:{Mf(this,t);break}case q.AFTER_BODY:{Pf(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){o0(this,t);return}switch(this.insertionMode){case q.INITIAL:case q.BEFORE_HTML:case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_TEMPLATE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{o0(this,t);break}case q.IN_TABLE_TEXT:{_o(this,t);break}case q.AFTER_BODY:{tI(this,t);break}case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{nI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case q.INITIAL:{rI(this,t);break}case q.BEFORE_HEAD:case q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:{this._err(t,ue.misplacedDoctype);break}case q.IN_TABLE_TEXT:{_o(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ue.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?_M(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{Co(this,t);break}case q.BEFORE_HTML:{iI(this,t);break}case q.BEFORE_HEAD:{sI(this,t);break}case q.IN_HEAD:{gr(this,t);break}case q.IN_HEAD_NO_SCRIPT:{uI(this,t);break}case q.AFTER_HEAD:{fI(this,t);break}case q.IN_BODY:{fn(this,t);break}case q.IN_TABLE:{pl(this,t);break}case q.IN_TABLE_TEXT:{_o(this,t);break}case q.IN_CAPTION:{lM(this,t);break}case q.IN_COLUMN_GROUP:{gg(this,t);break}case q.IN_TABLE_BODY:{dd(this,t);break}case q.IN_ROW:{hd(this,t);break}case q.IN_CELL:{cM(this,t);break}case q.IN_SELECT:{ZC(this,t);break}case q.IN_SELECT_IN_TABLE:{dM(this,t);break}case q.IN_TEMPLATE:{mM(this,t);break}case q.AFTER_BODY:{gM(this,t);break}case q.IN_FRAMESET:{bM(this,t);break}case q.AFTER_FRAMESET:{EM(this,t);break}case q.AFTER_AFTER_BODY:{TM(this,t);break}case q.AFTER_AFTER_FRAMESET:{vM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?AM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case q.INITIAL:{Co(this,t);break}case q.BEFORE_HTML:{aI(this,t);break}case q.BEFORE_HEAD:{lI(this,t);break}case q.IN_HEAD:{oI(this,t);break}case q.IN_HEAD_NO_SCRIPT:{cI(this,t);break}case q.AFTER_HEAD:{dI(this,t);break}case q.IN_BODY:{fd(this,t);break}case q.TEXT:{WI(this,t);break}case q.IN_TABLE:{tu(this,t);break}case q.IN_TABLE_TEXT:{_o(this,t);break}case q.IN_CAPTION:{oM(this,t);break}case q.IN_COLUMN_GROUP:{uM(this,t);break}case q.IN_TABLE_BODY:{u0(this,t);break}case q.IN_ROW:{WC(this,t);break}case q.IN_CELL:{fM(this,t);break}case q.IN_SELECT:{JC(this,t);break}case q.IN_SELECT_IN_TABLE:{hM(this,t);break}case q.IN_TEMPLATE:{pM(this,t);break}case q.AFTER_BODY:{t_(this,t);break}case q.IN_FRAMESET:{yM(this,t);break}case q.AFTER_FRAMESET:{xM(this,t);break}case q.AFTER_AFTER_BODY:{bf(this,t);break}}}onEof(t){switch(this.insertionMode){case q.INITIAL:{Co(this,t);break}case q.BEFORE_HTML:{Uo(this,t);break}case q.BEFORE_HEAD:{zo(this,t);break}case q.IN_HEAD:{Fo(this,t);break}case q.IN_HEAD_NO_SCRIPT:{qo(this,t);break}case q.AFTER_HEAD:{Vo(this,t);break}case q.IN_BODY:case q.IN_TABLE:case q.IN_CAPTION:case q.IN_COLUMN_GROUP:case q.IN_TABLE_BODY:case q.IN_ROW:case q.IN_CELL:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:{GC(this,t);break}case q.TEXT:{ZI(this,t);break}case q.IN_TABLE_TEXT:{_o(this,t);break}case q.IN_TEMPLATE:{e_(this,t);break}case q.AFTER_BODY:case q.IN_FRAMESET:case q.AFTER_FRAMESET:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{pg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===P.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 q.IN_HEAD:case q.IN_HEAD_NO_SCRIPT:case q.AFTER_HEAD:case q.TEXT:case q.IN_COLUMN_GROUP:case q.IN_SELECT:case q.IN_SELECT_IN_TABLE:case q.IN_FRAMESET:case q.AFTER_FRAMESET:{this._insertCharacters(t);break}case q.IN_BODY:case q.IN_CAPTION:case q.IN_CELL:case q.IN_TEMPLATE:case q.AFTER_BODY:case q.AFTER_AFTER_BODY:case q.AFTER_AFTER_FRAMESET:{FC(this,t);break}case q.IN_TABLE:case q.IN_TABLE_BODY:case q.IN_ROW:{cp(this,t);break}case q.IN_TABLE_TEXT:{KC(this,t);break}}}}function XD(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):$C(e,t),n}function QD(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 WD(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>=GD;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=ZD(e,c),i===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(u,i),i=u)}return i}function ZD(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 JD(e,t,n){const i=e.treeAdapter.getTagName(t),s=Sl(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const l=e.treeAdapter.getNamespaceURI(t);s===T.TEMPLATE&&l===be.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function eI(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 mg(e,t){for(let n=0;n<$D;n++){const i=XD(e,t);if(!i)break;const s=QD(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;const l=WD(e,s,i.element),u=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(l),u&&JD(e,u,l),eI(e,s,i)}}function o0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tI(e,t){e._appendCommentNode(t,e.openElements.items[0])}function nI(e,t){e._appendCommentNode(t,e.document)}function pg(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 rI(e,t){e._setDocumentType(t);const n=t.forceQuirks?tr.QUIRKS:DD(t);LD(t)||e._err(t,ue.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=q.BEFORE_HTML}function Co(e,t){e._err(t,ue.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,tr.QUIRKS),e.insertionMode=q.BEFORE_HTML,e._processToken(t)}function iI(e,t){t.tagID===T.HTML?(e._insertElement(t,be.HTML),e.insertionMode=q.BEFORE_HEAD):Uo(e,t)}function aI(e,t){const n=t.tagID;(n===T.HTML||n===T.HEAD||n===T.BODY||n===T.BR)&&Uo(e,t)}function Uo(e,t){e._insertFakeRootElement(),e.insertionMode=q.BEFORE_HEAD,e._processToken(t)}function sI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.HEAD:{e._insertElement(t,be.HTML),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD;break}default:zo(e,t)}}function lI(e,t){const n=t.tagID;n===T.HEAD||n===T.BODY||n===T.HTML||n===T.BR?zo(e,t):e._err(t,ue.endTagWithoutMatchingOpenElement)}function zo(e,t){e._insertFakeElement(J.HEAD,T.HEAD),e.headElement=e.openElements.current,e.insertionMode=q.IN_HEAD,e._processToken(t)}function gr(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BASE:case T.BASEFONT:case T.BGSOUND:case T.LINK:case T.META:{e._appendElement(t,be.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,be.HTML),e.insertionMode=q.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=q.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(q.IN_TEMPLATE);break}case T.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:Fo(e,t)}}function oI(e,t){switch(t.tagID){case T.HEAD:{e.openElements.pop(),e.insertionMode=q.AFTER_HEAD;break}case T.BODY:case T.BR:case T.HTML:{Fo(e,t);break}case T.TEMPLATE:{is(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function is(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==T.TEMPLATE&&e._err(t,ue.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ue.endTagWithoutMatchingOpenElement)}function Fo(e,t){e.openElements.pop(),e.insertionMode=q.AFTER_HEAD,e._processToken(t)}function uI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BASEFONT:case T.BGSOUND:case T.HEAD:case T.LINK:case T.META:case T.NOFRAMES:case T.STYLE:{gr(e,t);break}case T.NOSCRIPT:{e._err(t,ue.nestedNoscriptInHead);break}default:qo(e,t)}}function cI(e,t){switch(t.tagID){case T.NOSCRIPT:{e.openElements.pop(),e.insertionMode=q.IN_HEAD;break}case T.BR:{qo(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function qo(e,t){const n=t.type===Ve.EOF?ue.openElementsLeftAfterEof:ue.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=q.IN_HEAD,e._processToken(t)}function fI(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.BODY:{e._insertElement(t,be.HTML),e.framesetOk=!1,e.insertionMode=q.IN_BODY;break}case T.FRAMESET:{e._insertElement(t,be.HTML),e.insertionMode=q.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,ue.abandonedHeadElementChild),e.openElements.push(e.headElement,T.HEAD),gr(e,t),e.openElements.remove(e.headElement);break}case T.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:Vo(e,t)}}function dI(e,t){switch(t.tagID){case T.BODY:case T.HTML:case T.BR:{Vo(e,t);break}case T.TEMPLATE:{is(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function Vo(e,t){e._insertFakeElement(J.BODY,T.BODY),e.insertionMode=q.IN_BODY,cd(e,t)}function cd(e,t){switch(t.type){case Ve.CHARACTER:{qC(e,t);break}case Ve.WHITESPACE_CHARACTER:{FC(e,t);break}case Ve.COMMENT:{o0(e,t);break}case Ve.START_TAG:{fn(e,t);break}case Ve.END_TAG:{fd(e,t);break}case Ve.EOF:{GC(e,t);break}}}function FC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function qC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function hI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function mI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function pI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,be.HTML),e.insertionMode=q.IN_FRAMESET)}function gI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,be.HTML)}function bI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&l0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,be.HTML)}function yI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,be.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function EI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,be.HTML),n||(e.formElement=e.openElements.current))}function xI(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,be.HTML)}function TI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,be.HTML),e.tokenizer.state=It.PLAINTEXT}function vI(e,t){e.openElements.hasInScope(T.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML),e.framesetOk=!1}function SI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(J.A);n&&(mg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function CI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function _I(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(T.NOBR)&&(mg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,be.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function AI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function kI(e,t){e.treeAdapter.getDocumentMode(e.document)!==tr.QUIRKS&&e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._insertElement(t,be.HTML),e.framesetOk=!1,e.insertionMode=q.IN_TABLE}function VC(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,be.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YC(e){const t=DC(e,Va.TYPE);return t!=null&&t.toLowerCase()===YD}function wI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,be.HTML),YC(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function NI(e,t){e._appendElement(t,be.HTML),t.ackSelfClosing=!0}function RI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._appendElement(t,be.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function OI(e,t){t.tagName=J.IMG,t.tagID=T.IMG,VC(e,t)}function LI(e,t){e._insertElement(t,be.HTML),e.skipNextNewLine=!0,e.tokenizer.state=It.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=q.TEXT}function DI(e,t){e.openElements.hasInButtonScope(T.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function II(e,t){e.framesetOk=!1,e._switchToTextParsing(t,It.RAWTEXT)}function DT(e,t){e._switchToTextParsing(t,It.RAWTEXT)}function MI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===q.IN_TABLE||e.insertionMode===q.IN_CAPTION||e.insertionMode===q.IN_TABLE_BODY||e.insertionMode===q.IN_ROW||e.insertionMode===q.IN_CELL?q.IN_SELECT_IN_TABLE:q.IN_SELECT}function PI(e,t){e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML)}function BI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,be.HTML)}function jI(e,t){e.openElements.hasInScope(T.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(T.RTC),e._insertElement(t,be.HTML)}function HI(e,t){e._reconstructActiveFormattingElements(),HC(t),hg(t),t.selfClosing?e._appendElement(t,be.MATHML):e._insertElement(t,be.MATHML),t.ackSelfClosing=!0}function UI(e,t){e._reconstructActiveFormattingElements(),UC(t),hg(t),t.selfClosing?e._appendElement(t,be.SVG):e._insertElement(t,be.SVG),t.ackSelfClosing=!0}function IT(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,be.HTML)}function fn(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:{CI(e,t);break}case T.A:{SI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{bI(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:{gI(e,t);break}case T.LI:case T.DD:case T.DT:{xI(e,t);break}case T.BR:case T.IMG:case T.WBR:case T.AREA:case T.EMBED:case T.KEYGEN:{VC(e,t);break}case T.HR:{RI(e,t);break}case T.RB:case T.RTC:{BI(e,t);break}case T.RT:case T.RP:{jI(e,t);break}case T.PRE:case T.LISTING:{yI(e,t);break}case T.XMP:{DI(e,t);break}case T.SVG:{UI(e,t);break}case T.HTML:{hI(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:{gr(e,t);break}case T.BODY:{mI(e,t);break}case T.FORM:{EI(e,t);break}case T.NOBR:{_I(e,t);break}case T.MATH:{HI(e,t);break}case T.TABLE:{kI(e,t);break}case T.INPUT:{wI(e,t);break}case T.PARAM:case T.TRACK:case T.SOURCE:{NI(e,t);break}case T.IMAGE:{OI(e,t);break}case T.BUTTON:{vI(e,t);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{AI(e,t);break}case T.IFRAME:{II(e,t);break}case T.SELECT:{MI(e,t);break}case T.OPTION:case T.OPTGROUP:{PI(e,t);break}case T.NOEMBED:case T.NOFRAMES:{DT(e,t);break}case T.FRAMESET:{pI(e,t);break}case T.TEXTAREA:{LI(e,t);break}case T.NOSCRIPT:{e.options.scriptingEnabled?DT(e,t):IT(e,t);break}case T.PLAINTEXT:{TI(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:IT(e,t)}}function zI(e,t){if(e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function FI(e,t){e.openElements.hasInScope(T.BODY)&&(e.insertionMode=q.AFTER_BODY,t_(e,t))}function qI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function VI(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 YI(e){e.openElements.hasInButtonScope(T.P)||e._insertFakeElement(J.P,T.P),e._closePElement()}function $I(e){e.openElements.hasInListItemScope(T.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(T.LI),e.openElements.popUntilTagNamePopped(T.LI))}function GI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function KI(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function XI(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function QI(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(J.BR,T.BR),e.openElements.pop(),e.framesetOk=!1}function $C(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 fd(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:{mg(e,t);break}case T.P:{YI(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:{qI(e,t);break}case T.LI:{$I(e);break}case T.DD:case T.DT:{GI(e,t);break}case T.H1:case T.H2:case T.H3:case T.H4:case T.H5:case T.H6:{KI(e);break}case T.BR:{QI(e);break}case T.BODY:{zI(e,t);break}case T.HTML:{FI(e,t);break}case T.FORM:{VI(e);break}case T.APPLET:case T.OBJECT:case T.MARQUEE:{XI(e,t);break}case T.TEMPLATE:{is(e,t);break}default:$C(e,t)}}function GC(e,t){e.tmplInsertionModeStack.length>0?e_(e,t):pg(e,t)}function WI(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 ZI(e,t){e._err(t,ue.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function cp(e,t){if(e.openElements.currentTagId!==void 0&&zC.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=q.IN_TABLE_TEXT,t.type){case Ve.CHARACTER:{XC(e,t);break}case Ve.WHITESPACE_CHARACTER:{KC(e,t);break}}else du(e,t)}function JI(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,be.HTML),e.insertionMode=q.IN_CAPTION}function eM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,be.HTML),e.insertionMode=q.IN_COLUMN_GROUP}function tM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.COLGROUP,T.COLGROUP),e.insertionMode=q.IN_COLUMN_GROUP,gg(e,t)}function nM(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,be.HTML),e.insertionMode=q.IN_TABLE_BODY}function rM(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(J.TBODY,T.TBODY),e.insertionMode=q.IN_TABLE_BODY,dd(e,t)}function iM(e,t){e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function aM(e,t){YC(t)?e._appendElement(t,be.HTML):du(e,t),t.ackSelfClosing=!0}function sM(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,be.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function pl(e,t){switch(t.tagID){case T.TD:case T.TH:case T.TR:{rM(e,t);break}case T.STYLE:case T.SCRIPT:case T.TEMPLATE:{gr(e,t);break}case T.COL:{tM(e,t);break}case T.FORM:{sM(e,t);break}case T.TABLE:{iM(e,t);break}case T.TBODY:case T.TFOOT:case T.THEAD:{nM(e,t);break}case T.INPUT:{aM(e,t);break}case T.CAPTION:{JI(e,t);break}case T.COLGROUP:{eM(e,t);break}default:du(e,t)}}function tu(e,t){switch(t.tagID){case T.TABLE:{e.openElements.hasInTableScope(T.TABLE)&&(e.openElements.popUntilTagNamePopped(T.TABLE),e._resetInsertionMode());break}case T.TEMPLATE:{is(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:du(e,t)}}function du(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,cd(e,t),e.fosterParentingEnabled=n}function KC(e,t){e.pendingCharacterTokens.push(t)}function XC(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function _o(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)du(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const QC=new Set([T.CAPTION,T.COL,T.COLGROUP,T.TBODY,T.TD,T.TFOOT,T.TH,T.THEAD,T.TR]);function lM(e,t){const n=t.tagID;QC.has(n)?e.openElements.hasInTableScope(T.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(T.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=q.IN_TABLE,pl(e,t)):fn(e,t)}function oM(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=q.IN_TABLE,n===T.TABLE&&tu(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:fd(e,t)}}function gg(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.COL:{e._appendElement(t,be.HTML),t.ackSelfClosing=!0;break}case T.TEMPLATE:{gr(e,t);break}default:Mf(e,t)}}function uM(e,t){switch(t.tagID){case T.COLGROUP:{e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE);break}case T.TEMPLATE:{is(e,t);break}case T.COL:break;default:Mf(e,t)}}function Mf(e,t){e.openElements.currentTagId===T.COLGROUP&&(e.openElements.pop(),e.insertionMode=q.IN_TABLE,e._processToken(t))}function dd(e,t){switch(t.tagID){case T.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,be.HTML),e.insertionMode=q.IN_ROW;break}case T.TH:case T.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(J.TR,T.TR),e.insertionMode=q.IN_ROW,hd(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=q.IN_TABLE,pl(e,t));break}default:pl(e,t)}}function u0(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=q.IN_TABLE);break}case T.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE,tu(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:tu(e,t)}}function hd(e,t){switch(t.tagID){case T.TH:case T.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,be.HTML),e.insertionMode=q.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=q.IN_TABLE_BODY,dd(e,t));break}default:pl(e,t)}}function WC(e,t){switch(t.tagID){case T.TR:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY);break}case T.TABLE:{e.openElements.hasInTableScope(T.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=q.IN_TABLE_BODY,u0(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=q.IN_TABLE_BODY,u0(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:tu(e,t)}}function cM(e,t){const n=t.tagID;QC.has(n)?(e.openElements.hasInTableScope(T.TD)||e.openElements.hasInTableScope(T.TH))&&(e._closeTableCell(),hd(e,t)):fn(e,t)}function fM(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=q.IN_ROW);break}case T.TABLE:case T.TBODY:case T.TFOOT:case T.THEAD:case T.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),WC(e,t));break}case T.BODY:case T.CAPTION:case T.COL:case T.COLGROUP:case T.HTML:break;default:fd(e,t)}}function ZC(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.OPTION:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e._insertElement(t,be.HTML);break}case T.OPTGROUP:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._insertElement(t,be.HTML);break}case T.HR:{e.openElements.currentTagId===T.OPTION&&e.openElements.pop(),e.openElements.currentTagId===T.OPTGROUP&&e.openElements.pop(),e._appendElement(t,be.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:{gr(e,t);break}}}function JC(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:{is(e,t);break}}}function dM(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)):ZC(e,t)}function hM(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)):JC(e,t)}function mM(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:{gr(e,t);break}case T.CAPTION:case T.COLGROUP:case T.TBODY:case T.TFOOT:case T.THEAD:{e.tmplInsertionModeStack[0]=q.IN_TABLE,e.insertionMode=q.IN_TABLE,pl(e,t);break}case T.COL:{e.tmplInsertionModeStack[0]=q.IN_COLUMN_GROUP,e.insertionMode=q.IN_COLUMN_GROUP,gg(e,t);break}case T.TR:{e.tmplInsertionModeStack[0]=q.IN_TABLE_BODY,e.insertionMode=q.IN_TABLE_BODY,dd(e,t);break}case T.TD:case T.TH:{e.tmplInsertionModeStack[0]=q.IN_ROW,e.insertionMode=q.IN_ROW,hd(e,t);break}default:e.tmplInsertionModeStack[0]=q.IN_BODY,e.insertionMode=q.IN_BODY,fn(e,t)}}function pM(e,t){t.tagID===T.TEMPLATE&&is(e,t)}function e_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(T.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):pg(e,t)}function gM(e,t){t.tagID===T.HTML?fn(e,t):Pf(e,t)}function t_(e,t){var n;if(t.tagID===T.HTML){if(e.fragmentContext||(e.insertionMode=q.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 Pf(e,t)}function Pf(e,t){e.insertionMode=q.IN_BODY,cd(e,t)}function bM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.FRAMESET:{e._insertElement(t,be.HTML);break}case T.FRAME:{e._appendElement(t,be.HTML),t.ackSelfClosing=!0;break}case T.NOFRAMES:{gr(e,t);break}}}function yM(e,t){t.tagID===T.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==T.FRAMESET&&(e.insertionMode=q.AFTER_FRAMESET))}function EM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.NOFRAMES:{gr(e,t);break}}}function xM(e,t){t.tagID===T.HTML&&(e.insertionMode=q.AFTER_AFTER_FRAMESET)}function TM(e,t){t.tagID===T.HTML?fn(e,t):bf(e,t)}function bf(e,t){e.insertionMode=q.IN_BODY,cd(e,t)}function vM(e,t){switch(t.tagID){case T.HTML:{fn(e,t);break}case T.NOFRAMES:{gr(e,t);break}}}function SM(e,t){t.chars=At,e._insertCharacters(t)}function CM(e,t){e._insertCharacters(t),e.framesetOk=!1}function n_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==be.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function _M(e,t){if(UD(t))n_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===be.MATHML?HC(t):i===be.SVG&&(zD(t),UC(t)),hg(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function AM(e,t){if(t.tagID===T.P||t.tagID===T.BR){n_(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)===be.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}J.AREA,J.BASE,J.BASEFONT,J.BGSOUND,J.BR,J.COL,J.EMBED,J.FRAME,J.HR,J.IMG,J.INPUT,J.KEYGEN,J.LINK,J.META,J.PARAM,J.SOURCE,J.TRACK,J.WBR;const md=r_("end"),Dr=r_("start");function r_(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 i_(e){const t=Dr(e),n=md(e);if(t&&n)return{start:t,end:n}}const kM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,wM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),MT={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function a_(e,t){const n=jM(e),i=wC("type",{handlers:{root:NM,element:RM,text:OM,comment:l_,doctype:LM,raw:IM},unknown:MM}),s={parser:n?new LT(MT):LT.getFragmentParser(void 0,MT),handle(c){i(c,s)},stitches:!1,options:t||{}};i(e,s),Cl(s,Dr());const l=n?s.parser.document:s.parser.getFragment(),u=H5(l,{file:s.options.file});return s.stitches&&hr(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 s_(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function NM(e,t){s_(e.children,t)}function RM(e,t){PM(e,t),s_(e.children,t),BM(e,t)}function OM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ve.CHARACTER,chars:e.value,location:hu(e)};Cl(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function LM(e,t){const n={type:Ve.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:hu(e)};Cl(t,Dr(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function DM(e,t){t.stitches=!0;const n=HM(e);if("children"in e&&"children"in n){const i=a_({type:"root",children:e.children},t.options);n.children=i.children}l_({type:"comment",value:{stitch:n}},t)}function l_(e,t){const n=e.value,i={type:Ve.COMMENT,data:n,location:hu(e)};Cl(t,Dr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function IM(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,o_(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(kM,"&lt;$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 MM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))DM(n,t);else{let i="";throw wM.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 Cl(e,t){o_(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 o_(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 PM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===It.PLAINTEXT)return;Cl(t,Dr(e));const i=t.parser.openElements.current;let s="namespaceURI"in i?i.namespaceURI:Ua.html;s===Ua.html&&n==="svg"&&(s=Ua.svg);const l=V5({...e,children:[]},{space:s===Ua.svg?"svg":"html"}),u={type:Ve.START_TAG,tagName:n,tagID:Sl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in l?l.attrs:[],location:hu(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function BM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Z5.includes(n)||t.parser.tokenizer.state===It.PLAINTEXT)return;Cl(t,md(e));const i={type:Ve.END_TAG,tagName:n,tagID:Sl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:hu(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 jM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function hu(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},n=md(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 HM(e){return"children"in e?Xa({...e,children:[]}):Xa(e)}function c0(e){return function(t,n){return a_(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"]},$i={}.hasOwnProperty;function UM(e,t){let n={type:"root",children:[]};const i={schema:t?{...Ma,...t}:Ma,stack:[]},s=u_(i,e);return s&&(Array.isArray(s)?s.length===1?n=s[0]:n.children=s:n=s),n}function u_(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return zM(e,n);case"doctype":return FM(e,n);case"element":return qM(e,n);case"root":return VM(e,n);case"text":return YM(e,n)}}}function zM(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 mu(l,t),l}}function FM(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return mu(n,t),n}}function qM(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=c_(e,t.children),s=$M(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&&$i.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 mu(u,t),u}function VM(e,t){const i={type:"root",children:c_(e,t.children)};return mu(i,t),i}function YM(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return mu(i,t),i}function c_(e,t){const n=[];if(Array.isArray(t)){const i=t;let s=-1;for(;++s<i.length;){const l=u_(e,i[s]);l&&(Array.isArray(l)?n.push(...l):n.push(l))}}return n}function $M(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,s=e.schema.required,l=i&&$i.call(i,n)?i[n]:void 0,u=i&&$i.call(i,"*")?i["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if($i.call(c,h)){const m=c[h];let p=PT(e,BT(l,h),h,m);p==null&&(p=PT(e,BT(u,h),h,m)),p!=null&&(d[h]=p)}if(s&&$i.call(s,n)){const m=s[n];for(h in m)$i.call(m,h)&&!$i.call(d,h)&&(d[h]=m[h])}return d}function PT(e,t,n,i){return t?Array.isArray(i)?GM(e,t,n,i):f_(e,t,n,i):void 0}function GM(e,t,n,i){let s=-1;const l=[];for(;++s<i.length;){const u=f_(e,t,n,i[s]);(typeof u=="number"||typeof u=="string")&&l.push(u)}return l}function f_(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&KM(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 KM(e,t,n){const i=e.schema.protocols&&$i.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 mu(e,t){const n=i_(t);t.data&&(e.data=Xa(t.data)),n&&(e.position=n)}function BT(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 d_(e){return function(t){return UM(t,e)}}function jT(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 gn=sa(/[A-Za-z]/),cn=sa(/[\dA-Za-z]/),XM=sa(/[#-'*+\--9=?A-Z^-~]/);function Bf(e){return e!==null&&(e<32||e===127)}const f0=sa(/\d/),QM=sa(/[\dA-Fa-f]/),WM=sa(/[!-/:-@[-`{-~]/);function De(e){return e!==null&&e<-2}function Et(e){return e!==null&&(e<0||e===32)}function Xe(e){return e===-2||e===-1||e===32}const pd=sa(new RegExp("\\p{P}|\\p{S}","u")),Qa=sa(/\s/);function sa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ZM(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JM(e,t,n){const s=ad((n||{}).ignore||[]),l=e8(t);let u=-1;for(;++u<l.length;)ld(e,"text",c);function c(h,m){let p=-1,E;for(;++p<m.length;){const x=m[p],v=E?E.children:void 0;if(s(x,v?v.indexOf(x):void 0,E))return;E=x}if(E)return d(h,m)}function d(h,m){const p=m[m.length-1],E=l[u][0],x=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,F={index:w.index,input:w.input,stack:[...m,h]};let R=x(...w,F);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?E.lastIndex=D+1:(v!==D&&N.push({type:"text",value:h.value.slice(v,D)}),Array.isArray(R)?N.push(...R):R&&N.push(R),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 e8(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([t8(s[0]),n8(s[1])])}return t}function t8(e){return typeof e=="string"?new RegExp(ZM(e),"g"):e}function n8(e){return typeof e=="function"?e:function(){return e}}const fp="phrasing",dp=["autolink","link","image","label"];function r8(){return{transforms:[c8],enter:{literalAutolink:a8,literalAutolinkEmail:hp,literalAutolinkHttp:hp,literalAutolinkWww:hp},exit:{literalAutolink:u8,literalAutolinkEmail:o8,literalAutolinkHttp:s8,literalAutolinkWww:l8}}}function i8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fp,notInConstruct:dp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fp,notInConstruct:dp},{character:":",before:"[ps]",after:"\\/",inConstruct:fp,notInConstruct:dp}]}}function a8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hp(e){this.config.enter.autolinkProtocol.call(this,e)}function s8(e){this.config.exit.autolinkProtocol.call(this,e)}function l8(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 o8(e){this.config.exit.autolinkEmail.call(this,e)}function u8(e){this.exit(e)}function c8(e){JM(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,f8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),d8]],{ignore:["link","linkReference"]})}function f8(e,t,n,i,s){let l="";if(!h_(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!h8(n)))return!1;const u=m8(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 d8(e,t,n,i){return!h_(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function h8(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 m8(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=jT(e,"(");let l=jT(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 h_(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qa(n)||pd(n))&&(!t||n!==47)}function dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}m_.peek=S8;function p8(){this.buffer()}function g8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function b8(){this.buffer()}function y8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function E8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function x8(e){this.exit(e)}function T8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function v8(e){this.exit(e)}function S8(){return"["}function m_(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 C8(){return{enter:{gfmFootnoteCallString:p8,gfmFootnoteCall:g8,gfmFootnoteDefinitionLabelString:b8,gfmFootnoteDefinition:y8},exit:{gfmFootnoteCallString:E8,gfmFootnoteCall:x8,gfmFootnoteDefinitionLabelString:T8,gfmFootnoteDefinition:v8}}}function _8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:m_},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?p_:A8))),h(),d}}function A8(e,t,n){return t===0?e:p_(e,t,n)}function p_(e,t,n){return(n?"":" ")+e}const k8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];g_.peek=L8;function w8(){return{canContainEols:["delete"],enter:{strikethrough:R8},exit:{strikethrough:O8}}}function N8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:k8}],handlers:{delete:g_}}}function R8(e){this.enter({type:"delete",children:[]},e)}function O8(e){this.exit(e)}function g_(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 L8(){return"~"}function D8(e){return e.length}function I8(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||D8,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=M8(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]=HT(i[p]);else{const S=HT(i);for(;++p<h;)l[p]=S}p=-1;const E=[],x=[];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),x[p]=N),E[p]=w}u.splice(1,0,E),c.splice(1,0,x),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 F=d[p]-(A[p]||0),R=l[p];R===114?w=" ".repeat(F):R===99?F%2?(w=" ".repeat(F/2+.5),D=" ".repeat(F/2-.5)):(w=" ".repeat(F/2),D=w):D=" ".repeat(F)}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 M8(e){return e==null?"":String(e)}function HT(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 P8(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()),B8);return s(),u}function B8(e,t,n){return">"+(n?"":" ")+e}function j8(e,t){return UT(e,t.inConstruct,!0)&&!UT(e,t.notInConstruct,!1)}function UT(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 zT(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
53
+ `&&j8(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
54
+ `}function H8(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 U8(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 z8(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 F8(e,t,n,i){const s=z8(n),l=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(U8(e,n)){const p=n.enter("codeIndented"),E=n.indentLines(l,q8);return p(),E}const c=n.createTracker(i),d=s.repeat(Math.max(H8(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 q8(e,t,n){return(n?"":" ")+e}function bg(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 V8(e,t,n,i){const s=bg(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 Y8(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 nu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function gl(e){if(e===null||Et(e)||Qa(e))return 1;if(pd(e))return 2}function jf(e,t,n){const i=gl(e),s=gl(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}}b_.peek=$8;function b_(e,t,n,i){const s=Y8(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=jf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=nu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=jf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+nu(p));const x=u.move(s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function $8(e,t,n){return n.options.emphasis||"*"}const G8={};function yg(e,t){const n=G8,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return y_(e,i,s)}function y_(e,t,n){if(K8(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 FT(e.children,t,n)}return Array.isArray(e)?FT(e,t,n):""}function FT(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=y_(e[s],t,n);return i.join("")}function K8(e){return!!(e&&typeof e=="object")}function X8(e,t){let n=!1;return hr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,n0}),!!((!e.depth||e.depth<3)&&yg(e)&&(t.options.setext||n))}function Q8(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(X8(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=nu(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),c(),h}E_.peek=W8;function E_(e){return e.value||""}function W8(){return"<"}x_.peek=Z8;function x_(e,t,n,i){const s=bg(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 Z8(){return"!"}T_.peek=J8;function T_(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 J8(){return"!"}v_.peek=e9;function v_(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 e9(){return"`"}function S_(e,t){const n=yg(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))}C_.peek=t9;function C_(e,t,n,i){const s=bg(n),l=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let c,d;if(S_(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 t9(e,t,n){return S_(e,n)?"<":"["}__.peek=n9;function __(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 n9(){return"["}function Eg(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 r9(e){const t=Eg(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 i9(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 A_(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 a9(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let u=e.ordered?i9(n):Eg(n);const c=e.ordered?u==="."?")":".":r9(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),A_(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 s9(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 l9(e,t,n,i){const s=s9(n);let l=n.bulletCurrent||Eg(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,x){return E?(x?"":" ".repeat(u))+p:(x?l:l+" ".repeat(u-l.length))+p}}function o9(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),u=n.containerPhrasing(e,i);return l(),s(),u}const u9=ad(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function c9(e,t,n,i){return(e.children.some(function(u){return u9(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function f9(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}k_.peek=d9;function k_(e,t,n,i){const s=f9(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=jf(i.before.charCodeAt(i.before.length-1),h,s);m.inside&&(d=nu(h)+d.slice(1));const p=d.charCodeAt(d.length-1),E=jf(i.after.charCodeAt(0),p,s);E.inside&&(d=d.slice(0,-1)+nu(p));const x=u.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:E.outside,before:m.outside},c+d+x}function d9(e,t,n){return n.options.strong||"*"}function h9(e,t,n,i){return n.safe(e.value,i)}function m9(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 p9(e,t,n){const i=(A_(n)+(n.options.ruleSpaces?" ":"")).repeat(m9(n));return n.options.ruleSpaces?i.slice(0,-1):i}const w_={blockquote:P8,break:zT,code:F8,definition:V8,emphasis:b_,hardBreak:zT,heading:Q8,html:E_,image:x_,imageReference:T_,inlineCode:v_,link:C_,linkReference:__,list:a9,listItem:l9,paragraph:o9,root:c9,strong:k_,text:h9,thematicBreak:p9},qT=document.createElement("i");function xg(e){const t="&"+e+";";qT.innerHTML=t;const n=qT.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function N_(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 g9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function b9(e){return e.replace(g9,y9)}function y9(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return N_(n.slice(l?2:1),l?16:10)}return xg(n)||e}function E9(){return{enter:{table:x9,tableData:VT,tableHeader:VT,tableRow:v9},exit:{codeText:S9,table:T9,tableData:mp,tableHeader:mp,tableRow:mp}}}function x9(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 T9(e){this.exit(e),this.data.inTable=void 0}function v9(e){this.enter({type:"tableRow",children:[]},e)}function mp(e){this.exit(e)}function VT(e){this.enter({type:"tableCell",children:[]},e)}function S9(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,C9));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function C9(e,t){return t==="|"?t:e}function _9(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(x,v,S,A){return h(m(x,S,A),x.align)}function c(x,v,S,A){const k=p(x,S,A),N=h([k]);return N.slice(0,N.indexOf(`
65
+ `))}function d(x,v,S,A){const k=S.enter("tableCell"),N=S.enter("phrasing"),w=S.containerPhrasing(x,{...A,before:l,after:l});return N(),k(),w}function h(x,v){return I8(x,{align:v,alignDelimiters:i,padding:n,stringLength:s})}function m(x,v,S){const A=x.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(x,v,S){const A=x.children;let k=-1;const N=[],w=v.enter("tableRow");for(;++k<A.length;)N[k]=d(A[k],x,v,S);return w(),N}function E(x,v,S){let A=w_.inlineCode(x,v,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function A9(){return{exit:{taskListCheckValueChecked:YT,taskListCheckValueUnchecked:YT,paragraph:w9}}}function k9(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:N9}}}function YT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function w9(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 N9(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=w_.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 R9(){return[r8(),C8(),w8(),E9(),A9()]}function O9(e){return{extensions:[i8(),_8(e),N8(),_9(e),k9()]}}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 $T={}.hasOwnProperty;function R_(e){const t={};let n=-1;for(;++n<e.length;)L9(t,e[n]);return t}function L9(e,t){let n;for(n in t){const s=($T.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){$T.call(s,u)||(s[u]=[]);const c=l[u];D9(s[u],Array.isArray(c)?c:c?[c]:[])}}}function D9(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 I9={tokenize:U9,partial:!0},O_={tokenize:z9,partial:!0},L_={tokenize:F9,partial:!0},D_={tokenize:q9,partial:!0},M9={tokenize:V9,partial:!0},I_={name:"wwwAutolink",tokenize:j9,previous:P_},M_={name:"protocolAutolink",tokenize:H9,previous:B_},mi={name:"emailAutolink",tokenize:B9,previous:j_},Ir={};function P9(){return{text:Ir}}let Ra=48;for(;Ra<123;)Ir[Ra]=mi,Ra++,Ra===58?Ra=65:Ra===91&&(Ra=97);Ir[43]=mi;Ir[45]=mi;Ir[46]=mi;Ir[95]=mi;Ir[72]=[mi,M_];Ir[104]=[mi,M_];Ir[87]=[mi,I_];Ir[119]=[mi,I_];function B9(e,t,n){const i=this;let s,l;return u;function u(p){return!d0(p)||!j_.call(i,i.previous)||Tg(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return d0(p)?(e.consume(p),c):p===64?(e.consume(p),d):n(p)}function d(p){return p===46?e.check(M9,m,h)(p):p===45||p===95||cn(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&&gn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function j9(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!P_.call(i,i.previous)||Tg(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(I9,e.attempt(O_,e.attempt(L_,l),n),n)(u))}function l(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function H9(e,t,n){const i=this;let s="",l=!1;return u;function u(p){return(p===72||p===104)&&B_.call(i,i.previous)&&!Tg(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(gn(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||Bf(p)||Et(p)||Qa(p)||pd(p)?n(p):e.attempt(O_,e.attempt(L_,m),n)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function U9(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 z9(e,t,n){let i,s,l;return u;function u(h){return h===46||h===95?e.check(D_,d,c)(h):h===null||Et(h)||Qa(h)||h!==45&&pd(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 F9(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(D_,t,l)(u):u===null||Et(u)||Qa(u)?t(u):(e.consume(u),s)}function l(u){return u===41&&i++,e.consume(u),s}}function q9(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||Et(c)||Qa(c)?t(c):n(c)}function s(c){return c===null||c===40||c===91||Et(c)||Qa(c)?t(c):i(c)}function l(c){return gn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),i):gn(c)?(e.consume(c),u):n(c)}}function V9(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return cn(l)?n(l):t(l)}}function P_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Et(e)}function B_(e){return!gn(e)}function j_(e){return!(e===47||d0(e))}function d0(e){return e===43||e===45||e===46||e===95||cn(e)}function Tg(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 _l(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&cn(e.charCodeAt(n+1))&&cn(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 gd(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 h0={name:"attention",resolveAll:Y9,tokenize:$9};function Y9(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};GT(p,-d),GT(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,gd(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 $9(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=gl(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=gl(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 GT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const G9={name:"autolink",tokenize:K9};function K9(e,t,n){let i=0;return s;function s(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(x){return gn(x)?(e.consume(x),u):x===64?n(x):h(x)}function u(x){return x===43||x===45||x===46||cn(x)?(i=1,c(x)):h(x)}function c(x){return x===58?(e.consume(x),i=0,d):(x===43||x===45||x===46||cn(x))&&i++<32?(e.consume(x),c):(i=0,h(x))}function d(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||Bf(x)?n(x):(e.consume(x),d)}function h(x){return x===64?(e.consume(x),m):XM(x)?(e.consume(x),h):n(x)}function m(x){return cn(x)?p(x):n(x)}function p(x){return x===46?(e.consume(x),i=0,m):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):E(x)}function E(x){if((x===45||cn(x))&&i++<63){const v=x===45?E:p;return e.consume(x),v}return n(x)}}function nt(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 pu={partial:!0,tokenize:X9};function X9(e,t,n){return i;function i(l){return Xe(l)?nt(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||De(l)?t(l):n(l)}}const H_={continuation:{tokenize:W9},exit:Z9,name:"blockQuote",tokenize:Q9};function Q9(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 W9(e,t,n){const i=this;return s;function s(u){return Xe(u)?nt(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(H_,t,n)(u)}}function Z9(e){e.exit("blockQuote")}const U_={name:"characterEscape",tokenize:J9};function J9(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 WM(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const z_={name:"characterReference",tokenize:eP};function eP(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=cn,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=QM,m):(e.enter("characterReferenceValue"),l=7,u=f0,m(p))}function m(p){if(p===59&&s){const E=e.exit("characterReferenceValue");return u===cn&&!xg(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 KT={partial:!0,tokenize:nP},XT={concrete:!0,name:"codeFenced",tokenize:tP};function tP(e,t,n){const i=this,s={partial:!0,tokenize:F};let l=0,u=0,c;return d;function d(R){return h(R)}function h(R){const I=i.events[i.events.length-1];return l=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,c=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(R)}function m(R){return R===c?(u++,e.consume(R),m):u<3?n(R):(e.exit("codeFencedFenceSequence"),Xe(R)?nt(e,p,"whitespace")(R):p(R))}function p(R){return R===null||De(R)?(e.exit("codeFencedFence"),i.interrupt?t(R):e.check(KT,S,D)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(R))}function E(R){return R===null||De(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(R)):Xe(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,x,"whitespace")(R)):R===96&&R===c?n(R):(e.consume(R),E)}function x(R){return R===null||De(R)?p(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===null||De(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(R)):R===96&&R===c?n(R):(e.consume(R),v)}function S(R){return e.attempt(s,D,A)(R)}function A(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),k}function k(R){return l>0&&Xe(R)?nt(e,N,"linePrefix",l+1)(R):N(R)}function N(R){return R===null||De(R)?e.check(KT,S,D)(R):(e.enter("codeFlowValue"),w(R))}function w(R){return R===null||De(R)?(e.exit("codeFlowValue"),N(R)):(e.consume(R),w)}function D(R){return e.exit("codeFenced"),t(R)}function F(R,I,H){let Y=0;return U;function U(ie){return R.enter("lineEnding"),R.consume(ie),R.exit("lineEnding"),Z}function Z(ie){return R.enter("codeFencedFence"),Xe(ie)?nt(R,X,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):X(ie)}function X(ie){return ie===c?(R.enter("codeFencedFenceSequence"),se(ie)):H(ie)}function se(ie){return ie===c?(Y++,R.consume(ie),se):Y>=u?(R.exit("codeFencedFenceSequence"),Xe(ie)?nt(R,ce,"whitespace")(ie):ce(ie)):H(ie)}function ce(ie){return ie===null||De(ie)?(R.exit("codeFencedFence"),I(ie)):H(ie)}}}function nP(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 pp={name:"codeIndented",tokenize:iP},rP={partial:!0,tokenize:aP};function iP(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),nt(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):De(h)?e.attempt(rP,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||De(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function aP(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):De(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):nt(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):De(u)?s(u):n(u)}}const sP={name:"codeText",previous:oP,resolve:lP,tokenize:uP};function lP(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 oP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uP(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)):De(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||De(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 cP{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&&Ao(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),Ao(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ao(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);Ao(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ao(this.left,n.reverse())}}}function Ao(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 F_(e){const t={};let n=-1,i,s,l,u,c,d,h;const m=new cP(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,fP(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 fP(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,x=n,v=0,S=0;const A=[S];for(;x;){for(;e.get(++s)[1]!==x;);l.push(s),x._tokenizer||(m=i.sliceStream(x),x.next||m.push(null),p&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=x,x=x.next}for(x=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),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.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 dP={resolve:mP,tokenize:pP},hP={partial:!0,tokenize:gP};function mP(e){return F_(e),e}function pP(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):De(c)?e.check(hP,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 gP(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),nt(e,l,"linePrefix")}function l(u){if(u===null||De(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 q_(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||Bf(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"}),x(k))}function x(k){return k===62?(e.exit("chunkString"),e.exit(c),E(k)):k===null||k===60||De(k)?n(k):(e.consume(k),k===92?v:x)}function v(k){return k===60||k===62||k===92?(e.consume(k),x):x(k)}function S(k){return!m&&(k===null||k===41||Et(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||Bf(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 V_(e,t,n,i,s,l){const u=this;let c=0,d;return h;function h(x){return e.enter(i),e.enter(s),e.consume(x),e.exit(s),e.enter(l),m}function m(x){return c>999||x===null||x===91||x===93&&!d||x===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(x):x===93?(e.exit(l),e.enter(s),e.consume(x),e.exit(s),e.exit(i),t):De(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===null||x===91||x===93||De(x)||c++>999?(e.exit("chunkString"),m(x)):(e.consume(x),d||(d=!Xe(x)),x===92?E:p)}function E(x){return x===91||x===92||x===93?(e.consume(x),c++,p):p(x)}}function Y_(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):De(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),nt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===u||E===null||De(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 Yo(e,t){let n;return i;function i(s){return De(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Xe(s)?nt(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const bP={name:"definition",tokenize:EP},yP={partial:!0,tokenize:xP};function EP(e,t,n){const i=this;let s;return l;function l(x){return e.enter("definition"),u(x)}function u(x){return V_.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function c(x){return s=dr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),d):n(x)}function d(x){return Et(x)?Yo(e,h)(x):h(x)}function h(x){return q_(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function m(x){return e.attempt(yP,p,p)(x)}function p(x){return Xe(x)?nt(e,E,"whitespace")(x):E(x)}function E(x){return x===null||De(x)?(e.exit("definition"),i.parser.defined.push(s),t(x)):n(x)}}function xP(e,t,n){return i;function i(c){return Et(c)?Yo(e,s)(c):n(c)}function s(c){return Y_(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return Xe(c)?nt(e,u,"whitespace")(c):u(c)}function u(c){return c===null||De(c)?t(c):n(c)}}const TP={name:"hardBreakEscape",tokenize:vP};function vP(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return De(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const SP={name:"headingAtx",resolve:CP,tokenize:_P};function CP(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 _P(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||Et(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||De(m)?(e.exit("atxHeading"),t(m)):Xe(m)?nt(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||Et(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const AP=["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"],QT=["pre","script","style","textarea"],kP={concrete:!0,name:"htmlFlow",resolveTo:RP,tokenize:OP},wP={partial:!0,tokenize:DP},NP={partial:!0,tokenize:LP};function RP(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 OP(e,t,n){const i=this;let s,l,u,c,d;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),E):M===47?(e.consume(M),l=!0,S):M===63?(e.consume(M),s=3,i.interrupt?t:L):gn(M)?(e.consume(M),u=String.fromCharCode(M),A):n(M)}function E(M){return M===45?(e.consume(M),s=2,x):M===91?(e.consume(M),s=5,c=0,v):gn(M)?(e.consume(M),s=4,i.interrupt?t:L):n(M)}function x(M){return M===45?(e.consume(M),i.interrupt?t:L):n(M)}function v(M){const ee="CDATA[";return M===ee.charCodeAt(c++)?(e.consume(M),c===ee.length?i.interrupt?t:X:v):n(M)}function S(M){return gn(M)?(e.consume(M),u=String.fromCharCode(M),A):n(M)}function A(M){if(M===null||M===47||M===62||Et(M)){const ee=M===47,me=u.toLowerCase();return!ee&&!l&&QT.includes(me)?(s=1,i.interrupt?t(M):X(M)):AP.includes(u.toLowerCase())?(s=6,ee?(e.consume(M),k):i.interrupt?t(M):X(M)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):l?N(M):w(M))}return M===45||cn(M)?(e.consume(M),u+=String.fromCharCode(M),A):n(M)}function k(M){return M===62?(e.consume(M),i.interrupt?t:X):n(M)}function N(M){return Xe(M)?(e.consume(M),N):U(M)}function w(M){return M===47?(e.consume(M),U):M===58||M===95||gn(M)?(e.consume(M),D):Xe(M)?(e.consume(M),w):U(M)}function D(M){return M===45||M===46||M===58||M===95||cn(M)?(e.consume(M),D):F(M)}function F(M){return M===61?(e.consume(M),R):Xe(M)?(e.consume(M),F):w(M)}function R(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),d=M,I):Xe(M)?(e.consume(M),R):H(M)}function I(M){return M===d?(e.consume(M),d=null,Y):M===null||De(M)?n(M):(e.consume(M),I)}function H(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Et(M)?F(M):(e.consume(M),H)}function Y(M){return M===47||M===62||Xe(M)?w(M):n(M)}function U(M){return M===62?(e.consume(M),Z):n(M)}function Z(M){return M===null||De(M)?X(M):Xe(M)?(e.consume(M),Z):n(M)}function X(M){return M===45&&s===2?(e.consume(M),B):M===60&&s===1?(e.consume(M),G):M===62&&s===4?(e.consume(M),z):M===63&&s===3?(e.consume(M),L):M===93&&s===5?(e.consume(M),le):De(M)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(wP,Q,se)(M)):M===null||De(M)?(e.exit("htmlFlowData"),se(M)):(e.consume(M),X)}function se(M){return e.check(NP,ce,Q)(M)}function ce(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ie}function ie(M){return M===null||De(M)?se(M):(e.enter("htmlFlowData"),X(M))}function B(M){return M===45?(e.consume(M),L):X(M)}function G(M){return M===47?(e.consume(M),u="",oe):X(M)}function oe(M){if(M===62){const ee=u.toLowerCase();return QT.includes(ee)?(e.consume(M),z):X(M)}return gn(M)&&u.length<8?(e.consume(M),u+=String.fromCharCode(M),oe):X(M)}function le(M){return M===93?(e.consume(M),L):X(M)}function L(M){return M===62?(e.consume(M),z):M===45&&s===2?(e.consume(M),L):X(M)}function z(M){return M===null||De(M)?(e.exit("htmlFlowData"),Q(M)):(e.consume(M),z)}function Q(M){return e.exit("htmlFlow"),t(M)}}function LP(e,t,n){const i=this;return s;function s(u){return De(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 DP(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(pu,t,n)}}const IP={name:"htmlText",tokenize:MP};function MP(e,t,n){const i=this;let s,l,u;return c;function c(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),h):L===47?(e.consume(L),F):L===63?(e.consume(L),w):gn(L)?(e.consume(L),H):n(L)}function h(L){return L===45?(e.consume(L),m):L===91?(e.consume(L),l=0,v):gn(L)?(e.consume(L),N):n(L)}function m(L){return L===45?(e.consume(L),x):n(L)}function p(L){return L===null?n(L):L===45?(e.consume(L),E):De(L)?(u=p,G(L)):(e.consume(L),p)}function E(L){return L===45?(e.consume(L),x):p(L)}function x(L){return L===62?B(L):L===45?E(L):p(L)}function v(L){const z="CDATA[";return L===z.charCodeAt(l++)?(e.consume(L),l===z.length?S:v):n(L)}function S(L){return L===null?n(L):L===93?(e.consume(L),A):De(L)?(u=S,G(L)):(e.consume(L),S)}function A(L){return L===93?(e.consume(L),k):S(L)}function k(L){return L===62?B(L):L===93?(e.consume(L),k):S(L)}function N(L){return L===null||L===62?B(L):De(L)?(u=N,G(L)):(e.consume(L),N)}function w(L){return L===null?n(L):L===63?(e.consume(L),D):De(L)?(u=w,G(L)):(e.consume(L),w)}function D(L){return L===62?B(L):w(L)}function F(L){return gn(L)?(e.consume(L),R):n(L)}function R(L){return L===45||cn(L)?(e.consume(L),R):I(L)}function I(L){return De(L)?(u=I,G(L)):Xe(L)?(e.consume(L),I):B(L)}function H(L){return L===45||cn(L)?(e.consume(L),H):L===47||L===62||Et(L)?Y(L):n(L)}function Y(L){return L===47?(e.consume(L),B):L===58||L===95||gn(L)?(e.consume(L),U):De(L)?(u=Y,G(L)):Xe(L)?(e.consume(L),Y):B(L)}function U(L){return L===45||L===46||L===58||L===95||cn(L)?(e.consume(L),U):Z(L)}function Z(L){return L===61?(e.consume(L),X):De(L)?(u=Z,G(L)):Xe(L)?(e.consume(L),Z):Y(L)}function X(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),s=L,se):De(L)?(u=X,G(L)):Xe(L)?(e.consume(L),X):(e.consume(L),ce)}function se(L){return L===s?(e.consume(L),s=void 0,ie):L===null?n(L):De(L)?(u=se,G(L)):(e.consume(L),se)}function ce(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Et(L)?Y(L):(e.consume(L),ce)}function ie(L){return L===47||L===62||Et(L)?Y(L):n(L)}function B(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):n(L)}function G(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),oe}function oe(L){return Xe(L)?nt(e,le,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):le(L)}function le(L){return e.enter("htmlTextData"),u(L)}}const vg={name:"labelEnd",resolveAll:HP,resolveTo:UP,tokenize:zP},PP={tokenize:FP},BP={tokenize:qP},jP={tokenize:VP};function HP(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 UP(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,gd(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 zP(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(dr(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(PP,m,u?m:p)(E):E===91?e.attempt(BP,m,u?h:p)(E):u?m(E):p(E)}function h(E){return e.attempt(jP,m,p)(E)}function m(E){return t(E)}function p(E){return l._balanced=!0,n(E)}}function FP(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 Et(p)?Yo(e,l)(p):l(p)}function l(p){return p===41?m(p):q_(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return Et(p)?Yo(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?Y_(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return Et(p)?Yo(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 qP(e,t,n){const i=this;return s;function s(c){return V_.call(i,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes(dr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function VP(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 YP={name:"labelStartImage",resolveAll:vg.resolveAll,tokenize:$P};function $P(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 GP={name:"labelStartLink",resolveAll:vg.resolveAll,tokenize:KP};function KP(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 gp={name:"lineEnding",tokenize:XP};function XP(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),nt(e,t,"linePrefix")}}const yf={name:"thematicBreak",tokenize:QP};function QP(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||De(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===s?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Xe(h)?nt(e,c,"whitespace")(h):c(h))}}const Rn={continuation:{tokenize:e7},exit:n7,name:"list",tokenize:JP},WP={partial:!0,tokenize:r7},ZP={partial:!0,tokenize:t7};function JP(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(x){const v=i.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||x===i.containerState.marker:f0(x)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(yf,n,h)(x):h(x);if(!i.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(x)}return n(x)}function d(x){return f0(x)&&++u<10?(e.consume(x),d):(!i.interrupt||u<2)&&(i.containerState.marker?x===i.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):n(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||x,e.check(pu,i.interrupt?n:m,e.attempt(WP,E,p))}function m(x){return i.containerState.initialBlankLine=!0,l++,E(x)}function p(x){return Xe(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),E):n(x)}function E(x){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function e7(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(pu,s,l);function s(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,nt(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(ZP,t,u)(c))}function u(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,nt(e,e.attempt(Rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function t7(e,t,n){const i=this;return nt(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 n7(e){e.exit(this.containerState.type)}function r7(e,t,n){const i=this;return nt(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 WT={name:"setextUnderline",resolveTo:i7,tokenize:a7};function i7(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 a7(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)?nt(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||De(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const s7={tokenize:m7,partial:!0};function l7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:f7,continuation:{tokenize:d7},exit:h7}},text:{91:{name:"gfmFootnoteCall",tokenize:c7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:o7,resolveTo:u7}}}}function o7(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=dr(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 u7(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 c7(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||Et(p))return n(p);if(p===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return s.includes(dr(i.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Et(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 f7(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||Et(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=dr(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return Et(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),nt(e,x,"gfmFootnoteDefinitionWhitespace")):n(v)}function x(v){return t(v)}}function d7(e,t,n){return e.check(pu,t,e.attempt(s7,t,n))}function h7(e){e.exit("gfmFootnoteDefinition")}function m7(e,t,n){const i=this;return nt(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 p7(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]],x=c.parser.constructs.insideSpan.null;x&&Vn(E,E.length,0,gd(x,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"),x(v))}function x(v){const S=gl(h);if(v===126)return p>1?d(v):(u.consume(v),p++,x);if(p<2&&!n)return d(v);const A=u.exit("strikethroughSequenceTemporary"),k=gl(v);return A._open=!k||k===2&&!!S,A._close=!S||S===2&&!!k,c(v)}}}class g7{constructor(){this.map=[]}add(t,n,i){b7(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 b7(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 y7(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 E7(){return{flow:{null:{name:"table",tokenize:x7,resolveAll:T7}}}}function x7(e,t,n){const i=this;let s=0,l=0,u;return c;function c(U){let Z=i.events.length-1;for(;Z>-1;){const ce=i.events[Z][1].type;if(ce==="lineEnding"||ce==="linePrefix")Z--;else break}const X=Z>-1?i.events[Z][1].type:null,se=X==="tableHead"||X==="tableRow"?R:d;return se===R&&i.parser.lazy[i.now().line]?n(U):se(U)}function d(U){return e.enter("tableHead"),e.enter("tableRow"),h(U)}function h(U){return U===124||(u=!0,l+=1),m(U)}function m(U){return U===null?n(U):De(U)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),x):n(U):Xe(U)?nt(e,m,"whitespace")(U):(l+=1,u&&(u=!1,s+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(U)))}function p(U){return U===null||U===124||Et(U)?(e.exit("data"),m(U)):(e.consume(U),U===92?E:p)}function E(U){return U===92||U===124?(e.consume(U),p):p(U)}function x(U){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(U):(e.enter("tableDelimiterRow"),u=!1,Xe(U)?nt(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):v(U))}function v(U){return U===45||U===58?A(U):U===124?(u=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),S):F(U)}function S(U){return Xe(U)?nt(e,A,"whitespace")(U):A(U)}function A(U){return U===58?(l+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),k):U===45?(l+=1,k(U)):U===null||De(U)?D(U):F(U)}function k(U){return U===45?(e.enter("tableDelimiterFiller"),N(U)):F(U)}function N(U){return U===45?(e.consume(U),N):U===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(U))}function w(U){return Xe(U)?nt(e,D,"whitespace")(U):D(U)}function D(U){return U===124?v(U):U===null||De(U)?!u||s!==l?F(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(U)):F(U)}function F(U){return n(U)}function R(U){return e.enter("tableRow"),I(U)}function I(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),I):U===null||De(U)?(e.exit("tableRow"),t(U)):Xe(U)?nt(e,I,"whitespace")(U):(e.enter("data"),H(U))}function H(U){return U===null||U===124||Et(U)?(e.exit("data"),I(U)):(e.consume(U),U===92?Y:H)}function Y(U){return U===92||U===124?(e.consume(U),H):H(U)}}function T7(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 g7;for(;++n<e.length;){const x=e[n],v=x[1];x[0]==="enter"?v.type==="tableHead"?(c=!1,d!==0&&(ZT(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&&ZT(E,t,d,h,m),E.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=y7(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({},nl(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const d=nl(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=nl(t.events,n[2]),m=nl(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]],x=t.events[n[3]];if(E[1].end=Object.assign({},x[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({},nl(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function ZT(e,t,n,i,s){const l=[],u=nl(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 nl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const v7={name:"tasklistCheck",tokenize:C7};function S7(){return{text:{91:v7}}}function C7(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 Et(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 De(d)?t(d):Xe(d)?e.check({tokenize:_7},t,n)(d):n(d)}}function _7(e,t,n){return nt(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function A7(e){return R_([P9(),l7(),p7(e),E7(),S7()])}const k7={};function w7(e){const t=this,n=e||k7,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(A7(n)),l.push(R9()),u.push(O9(n))}var N7=Object.defineProperty,R7=Object.defineProperties,O7=Object.getOwnPropertyDescriptors,JT=Object.getOwnPropertySymbols,L7=Object.prototype.hasOwnProperty,D7=Object.prototype.propertyIsEnumerable,e2=(e,t,n)=>t in e?N7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$_=(e,t)=>{for(var n in t||(t={}))L7.call(t,n)&&e2(e,n,t[n]);if(JT)for(var n of JT(t))D7.call(t,n)&&e2(e,n,t[n]);return e},G_=(e,t)=>R7(e,O7(t)),I7=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},t2=null,En=(e,t)=>{let n=t2;return(n===null||n.text!==e)&&(n={text:e,lookup:I7(e)},t2=n),n.lookup[Math.min(t,e.length)]===1},M7=(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},P7=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]==="`"&&!M7(e,n)&&(t+=1)}return t},ta=(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},B7=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,j7=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(B7,(t,n,i,s)=>En(e,s)?t:`${n}\\>${i}`),H7=/(\*\*)([^*]*\*?)$/,U7=/(__)([^_]*?)$/,z7=/(\*\*\*)([^*]*?)$/,F7=/(\*)([^*]*?)$/,q7=/(_)([^_]*?)$/,V7=/(`)([^`]*?)$/,Y7=/(~~)([^~]*?)$/,as=/^[\s_~*`]*$/,K_=/^[\s]*[-*+][\s]+$/,$7=/[\p{L}\p{N}_]/u,G7=/^```[^`\n]*```?$/,K7=/^\*{4,}$/,X7=/(__)([^_]+)_$/,Q7=/(~~)([^~]+)~$/,n2=/~~/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:$7.test(e)},W7=(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},X_=(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},Z7=e=>e==="inlineLatex"||e==="blockLatex",J7=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,eB=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",bd=(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=J7(n,e[i+1]);if(s!==null){n=s,i+=1;continue}}if(e[i]==="$"&&!Z7(n)){let s=e[i+1]==="$";n=eB(n,s),s&&(i+=1)}}return n!=="none"},tB=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
66
+ `)return!1}return!1},Q_=(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]==="]"?tB(e,t):!1;if(e[n]===`
67
+ `)return!1}return!1},nB=(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},Sg=(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},W_=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),rB=(e,t,n,i)=>n==="\\"||W_(e)&&bd(e,t)?!0:n!=="*"&&i==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
71
+ `)&&(!i||i===" "||i===" "||i===`
72
+ `),Hf=e=>e===" "||e===" "||e===`
73
+ `,iB=(e,t)=>!!(e&&t&&di(e)&&di(t)),aB=(e,t,n,i)=>{let s=iB(e,t),l=!!t&&!Hf(t),u=!!e&&!Hf(e);return s&&n%2===0&&!i?{count:!1}:u&&n%2===1||l?{count:!0,inWordAsteriskChain:s}:{count:!1}},Z_=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(rB(e,l,u,c))continue;let d=aB(u,c,t,i);d.count&&(t+=1,i=d.inWordAsteriskChain)}return t},sB=(e,t,n,i)=>!!(n==="\\"||W_(e)&&bd(e,t)||Q_(e,t)||nB(e,t)||n==="_"||i==="_"||n&&i&&di(n)&&di(i)),lB=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]:"";sB(e,s,l,u)||(t+=1)}return t},oB=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},Cg=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},r2=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},uB=(e,t,n)=>{if(!t||as.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
74
+ `),s=i===-1?0:i+1,l=e.substring(s,n);return K_.test(l)&&t.includes(`
75
+ `)?!0:Sg(e,n,"*")},cB=e=>{let t=e.match(H7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return En(e,i)||ta(e,i)||uB(e,n,i)?e:Cg(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},fB=(e,t,n)=>{if(!t||as.test(t))return!0;let i=e.substring(0,n).lastIndexOf(`
76
+ `),s=i===-1?0:i+1,l=e.substring(s,n);return K_.test(l)&&t.includes(`
77
+ `)?!0:Sg(e,n,"_")},dB=e=>{let t=e.match(U7);if(!t){let s=e.match(X7);if(s){let l=e.lastIndexOf(s[1]);if(!(En(e,l)||ta(e,l))&&r2(e)%2===1)return`${e}_`}return e}let n=t[2],i=e.lastIndexOf(t[1]);return En(e,i)||ta(e,i)||fB(e,n,i)?e:r2(e)%2===1?`${e}__`:e},hB=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]!=="\\"&&!bd(e,n)){let i=n>0?e[n-1]:"",s=n<e.length-1?e[n+1]:"",l=!i||Hf(i),u=!s||Hf(s);if(l&&u||i&&s&&di(i)&&di(s)||u)continue;return n}}return-1},mB=e=>{if(!e.match(F7))return e;let t=hB(e);if(t===-1||En(e,t)||ta(e,t))return e;let n=e.substring(t+1);return!n||as.test(n)?e:Z_(e)%2===1?`${e}*`:e},J_=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]!=="\\"&&!bd(e,n)&&!Q_(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},pB=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}_`},gB=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Cg(t)%2!==1)return null;let n=t.indexOf("**"),i=J_(t);return n!==-1&&i!==-1&&n<i?`${t}_**`:null},bB=e=>{if(!e.match(q7))return e;let t=J_(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||as.test(n)||En(e,t)||ta(e,t))return e;if(lB(e)%2===1){let i=gB(e);return i!==null?i:pB(e)}return e},yB=e=>{let t=Cg(e),n=Z_(e);return t%2===0&&n%2===0},EB=(e,t,n)=>!t||as.test(t)||En(e,n)||ta(e,n)?!0:Sg(e,n,"*"),xB=e=>{if(K7.test(e))return e;let t=e.match(z7);if(!t)return e;let n=t[2],i=e.lastIndexOf(t[1]);return EB(e,n,i)?e:oB(e)%2===1?yB(e)?e:`${e}***`:e},TB=/<[a-zA-Z/][^>]*$/,vB=e=>{let t=e.match(TB);return!t||t.index===void 0||En(e,t.index)?e:e.substring(0,t.index).trimEnd()},SB=e=>!e.match(G7)||e.includes(`
79
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,CB=e=>(e.match(/```/g)||[]).length%2===1,_B=e=>{let t=SB(e);if(t!==null)return t;let n=e.match(V7);if(n&&!CB(e)){let i=n[2];if(!i||as.test(i))return e;if(P7(e)%2===1)return`${e}\``}return e},e3=(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)==="```",AB=e=>{let t=0,n=!1;for(let i=0;i<e.length-1;i+=1)e[i]==="`"&&!e3(e,i)&&(n=!n),!n&&e[i]==="$"&&e[i+1]==="$"&&(t+=1,i+=1);return t},kB=e=>{let t=0,n=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"){i+=1;continue}if(e[i]==="`"&&!e3(e,i)){n=!n;continue}!n&&e[i]==="$"&&(i+1<e.length&&e[i+1]==="$"?i+=1:t+=1)}return t},wB=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}$$`},NB=e=>AB(e)%2===0?e:wB(e),RB=e=>kB(e)%2===1?`${e}$`:e,OB=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let i=W7(e,t);if(i===-1||En(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)`},i2=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!En(e,n)){if(n>0&&e[n-1]==="!")continue;let i=X_(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},LB=(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=i2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}if(X_(e,t)===-1){let l=e.substring(0,s);if(i)return l;if(n==="text-only"){let u=i2(e,t);return e.substring(0,u)+e.substring(u+1)}return`${e}](streamdown:incomplete-link)`}return null},t3=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!En(e,n)){let i=OB(e,n,t);if(i!==null)return i}for(let i=e.length-1;i>=0;i-=1)if(e[i]==="["&&!En(e,i)){let s=LB(e,i,t);if(s!==null)return s}return e},DB=/^-{1,2}$/,IB=/^[\s]*-{1,2}[\s]+$/,MB=/^={1,2}$/,PB=/^[\s]*={1,2}[\s]+$/,BB=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(DB.test(s)&&!n.match(IB)){let l=i.split(`
84
+ `).at(-1);if(l&&l.trim().length>0)return`${e}​`}if(MB.test(s)&&!n.match(PB)){let l=i.split(`
85
+ `).at(-1);if(l&&l.trim().length>0)return`${e}​`}return e},jB=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,HB=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(jB,(t,n,i)=>{let s=i+n.length;return En(e,s)?t:`${n}\\~`}),UB=e=>{var t,n;let i=e.match(Y7);if(i){let s=i[2];if(!s||as.test(s))return e;let l=e.lastIndexOf(i[1]);if(En(e,l)||ta(e,l))return e;if(((t=e.match(n2))==null?void 0:t.length)%2===1)return`${e}~~`}else{let s=e.match(Q7);if(s){let l=e.lastIndexOf(s[0].slice(0,2));if(En(e,l)||ta(e,l))return e;if(((n=e.match(n2))==null?void 0:n.length)%2===1)return`${e}~`}}return e},bp=e=>e!==!1,zB=e=>e===!0,pn={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},FB=[{handler:{name:"singleTilde",handle:HB,priority:pn.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:j7,priority:pn.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:vB,priority:pn.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:BB,priority:pn.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:t3,priority:pn.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:xB,priority:pn.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:cB,priority:pn.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:dB,priority:pn.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:mB,priority:pn.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:bB,priority:pn.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:_B,priority:pn.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:UB,priority:pn.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:NB,priority:pn.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:RB,priority:pn.INLINE_KATEX},optionKey:"inlineKatex"}],qB=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return FB.filter(({handler:i,optionKey:s})=>i.name==="links"?bp(e?.links)||bp(e?.images):i.name==="inlineKatex"?zB(e?.inlineKatex):bp(e?.[s])).map(({handler:i,earlyReturn:s})=>i.name==="links"?{handler:G_($_({},i),{handle:l=>t3(l,n)}),earlyReturn:n==="protocol"?s:void 0}:{handler:i,earlyReturn:s})},VB=(e,t)=>{var n;if(!e||typeof e!="string")return e;let i=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,s=qB(t),l=((n=t?.handlers)!=null?n:[]).map(c=>{var d;return{handler:G_($_({},c),{priority:(d=c.priority)!=null?d:pn.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},YB=VB;function n3(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=n3(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function r3(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n3(e))&&(i&&(i+=" "),i+=t);return i}const $B=(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},GB=(e,t)=>({classGroupId:e,validator:t}),i3=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Uf="-",a2=[],KB="arbitrary..",XB=e=>{const t=WB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return QB(u);const c=u.split(Uf),d=c[0]===""&&c.length>1?1:0;return a3(c,d,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const d=i[u],h=n[u];return d?h?$B(h,d):d:h||a2}return n[u]||a2}}},a3=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=a3(e,t+1,l);if(h)return h}const u=n.validators;if(u===null)return;const c=t===0?e.join(Uf):e.slice(t).join(Uf),d=u.length;for(let h=0;h<d;h++){const m=u[h];if(m.validator(c))return m.classGroupId}},QB=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?KB+i:void 0})(),WB=e=>{const{theme:t,classGroups:n}=e;return ZB(n,t)},ZB=(e,t)=>{const n=i3();for(const i in e){const s=e[i];_g(s,n,i,t)}return n},_g=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const u=e[l];JB(u,t,n,i)}},JB=(e,t,n,i)=>{if(typeof e=="string"){ej(e,t,n);return}if(typeof e=="function"){tj(e,t,n,i);return}nj(e,t,n,i)},ej=(e,t,n)=>{const i=e===""?t:s3(t,e);i.classGroupId=n},tj=(e,t,n,i)=>{if(rj(e)){_g(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(GB(n,e))},nj=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let u=0;u<l;u++){const[c,d]=s[u];_g(d,s3(t,c),n,i)}},s3=(e,t)=>{let n=e;const i=t.split(Uf),s=i.length;for(let l=0;l<s;l++){const u=i[l];let c=n.nextPart.get(u);c||(c=i3(),n.nextPart.set(u,c)),n=c}return n},rj=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ij=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)}}},m0="!",s2=":",aj=[],l2=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),sj=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===s2){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,x=!1;p.endsWith(m0)?(E=p.slice(0,-1),x=!0):p.startsWith(m0)&&(E=p.slice(1),x=!0);const v=h&&h>d?h-d:void 0;return l2(l,x,E,v)};if(t){const s=t+s2,l=i;i=u=>u.startsWith(s)?l(u.slice(s.length)):l2(aj,!1,u,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},lj=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}},oj=e=>({cache:ij(e.cacheSize),parseClassName:sj(e),sortModifiers:lj(e),postfixLookupClassGroupIds:uj(e),...XB(e)}),uj=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},cj=/\s+/,fj=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l,postfixLookupClassGroupIds:u}=t,c=[],d=e.trim().split(cj);let h="";for(let m=d.length-1;m>=0;m-=1){const p=d[m],{isExternal:E,modifiers:x,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 I=S.substring(0,A);N=i(I);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=x.length===0?"":x.length===1?x[0]:l(x).join(":"),D=v?w+m0:w,F=D+N;if(c.indexOf(F)>-1)continue;c.push(F);const R=s(N,k);for(let I=0;I<R.length;++I){const H=R[I];c.push(D+H)}h=p+(h.length>0?" "+h:h)}return h},dj=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=l3(n))&&(s&&(s+=" "),s+=i);return s},l3=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=l3(e[i]))&&(n&&(n+=" "),n+=t);return n},hj=(e,...t)=>{let n,i,s,l;const u=d=>{const h=t.reduce((m,p)=>p(m),e());return n=oj(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=fj(d,n);return s(d,m),m};return l=u,(...d)=>l(dj(...d))},mj=[],Vt=e=>{const t=n=>n[e]||mj;return t.isThemeGetter=!0,t},o3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,u3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pj=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,gj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bj=/\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$/,yj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ej=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ui=e=>pj.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),vr=e=>!!e&&Number.isInteger(Number(e)),yp=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),ti=e=>gj.test(e),c3=()=>!0,Tj=e=>bj.test(e)&&!yj.test(e),Ag=()=>!1,vj=e=>Ej.test(e),Sj=e=>xj.test(e),Cj=e=>!Ce(e)&&!_e(e),_j=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)),Aj=e=>la(e,h3,Ag),Ce=e=>o3.test(e),Oa=e=>la(e,m3,Tj),o2=e=>la(e,Ij,Fe),kj=e=>la(e,g3,c3),wj=e=>la(e,p3,Ag),u2=e=>la(e,f3,Ag),Nj=e=>la(e,d3,Sj),Zc=e=>la(e,b3,vj),_e=e=>u3.test(e),ko=e=>ss(e,m3),Rj=e=>ss(e,p3),c2=e=>ss(e,f3),Oj=e=>ss(e,h3),Lj=e=>ss(e,d3),Jc=e=>ss(e,b3,!0),Dj=e=>ss(e,g3,!0),la=(e,t,n)=>{const i=o3.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},ss=(e,t,n=!1)=>{const i=u3.exec(e);return i?i[1]?t(i[1]):n:!1},f3=e=>e==="position"||e==="percentage",d3=e=>e==="image"||e==="url",h3=e=>e==="length"||e==="size"||e==="bg-size",m3=e=>e==="length",Ij=e=>e==="number",p3=e=>e==="family-name",g3=e=>e==="number"||e==="weight",b3=e=>e==="shadow",Mj=()=>{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"),x=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"],F=()=>[...D(),_e,Ce],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],H=()=>[_e,Ce,d],Y=()=>[Ui,"full","auto",...H()],U=()=>[vr,"none","subgrid",_e,Ce],Z=()=>["auto",{span:["full",vr,_e,Ce]},vr,_e,Ce],X=()=>[vr,"auto",_e,Ce],se=()=>["auto","min","max","fr",_e,Ce],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...H()],G=()=>[Ui,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],oe=()=>[Ui,"screen","full","dvw","lvw","svw","min","max","fit",...H()],le=()=>[Ui,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],L=()=>[e,_e,Ce],z=()=>[...D(),c2,u2,{position:[_e,Ce]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",Oj,Aj,{size:[_e,Ce]}],ee=()=>[yp,ko,Oa],me=()=>["","none","full",h,_e,Ce],ge=()=>["",Fe,ko,Oa],Se=()=>["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"],xe=()=>[Fe,yp,c2,u2],Oe=()=>["","none",v,_e,Ce],we=()=>["none",Fe,_e,Ce],Le=()=>["none",Fe,_e,Ce],ze=()=>[Fe,_e,Ce],$e=()=>[Ui,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ti],breakpoint:[ti],color:[c3],container:[ti],"drop-shadow":[ti],ease:["in","out","in-out"],font:[Cj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ti],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ti],shadow:[ti],spacing:["px",Fe],text:[ti],"text-shadow":[ti],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ui,Ce,_e,A]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,Ce]}],"container-named":[_j],columns:[{columns:[Fe,Ce,_e,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:F()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{"inset-s":Y(),start:Y()}],end:[{"inset-e":Y(),end:Y()}],"inset-bs":[{"inset-bs":Y()}],"inset-be":[{"inset-be":Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[vr,"auto",_e,Ce]}],basis:[{basis:[Ui,"full","auto",c,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Ui,"auto","initial","none",Ce]}],grow:[{grow:["",Fe,_e,Ce]}],shrink:[{shrink:["",Fe,_e,Ce]}],order:[{order:[vr,"first","last","none",_e,Ce]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"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:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],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:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...oe()]}],"min-inline-size":[{"min-inline":["auto",...oe()]}],"max-inline-size":[{"max-inline":["none",...oe()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,ko,Oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Dj,kj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yp,Ce]}],"font-family":[{font:[Rj,wj,t]}],"font-features":[{"font-features":[Ce]}],"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,_e,Ce]}],"line-clamp":[{"line-clamp":[Fe,"none",_e,o2]}],leading:[{leading:[l,...H()]}],"list-image":[{"list-image":["none",_e,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",_e,Oa]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Fe,"auto",_e,Ce]}],"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:[vr,_e,Ce]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,Ce]}],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",_e,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vr,_e,Ce],radial:["",_e,Ce],conic:[vr,_e,Ce]},Lj,Nj]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-bs":[{"border-bs":L()}],"border-color-be":[{"border-be":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,_e,Ce]}],"outline-w":[{outline:["",Fe,ko,Oa]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",m,Jc,Zc]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",p,Jc,Zc]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Fe,Oa]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",E,Jc,Zc]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Fe,_e,Ce]}],"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":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[_e,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,Ce]}],filter:[{filter:["","none",_e,Ce]}],blur:[{blur:Oe()}],brightness:[{brightness:[Fe,_e,Ce]}],contrast:[{contrast:[Fe,_e,Ce]}],"drop-shadow":[{"drop-shadow":["","none",x,Jc,Zc]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Fe,_e,Ce]}],"hue-rotate":[{"hue-rotate":[Fe,_e,Ce]}],invert:[{invert:["",Fe,_e,Ce]}],saturate:[{saturate:[Fe,_e,Ce]}],sepia:[{sepia:["",Fe,_e,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,Ce]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,_e,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,_e,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,_e,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,_e,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Fe,_e,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,_e,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,_e,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,_e,Ce]}],"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",_e,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",_e,Ce]}],ease:[{ease:["linear","initial",k,_e,Ce]}],delay:[{delay:[Fe,_e,Ce]}],animate:[{animate:["none",N,_e,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,_e,Ce]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Le()}],"scale-x":[{"scale-x":Le()}],"scale-y":[{"scale-y":Le()}],"scale-z":[{"scale-z":Le()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[_e,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],zoom:[{zoom:[vr,_e,Ce]}],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",_e,Ce]}],"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":L()}],"scrollbar-track-color":[{"scrollbar-track":L()}],"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",_e,Ce]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Fe,ko,Oa,o2]}],stroke:[{stroke:["none",...L()]}],"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"]}},y3=hj(Mj),Pj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Bj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jj={};function f2(e,t){return(jj.jsx?Bj:Pj).test(e)}const Hj=/[ \t\n\f\r]/g;function Uj(e){return typeof e=="object"?e.type==="text"?d2(e.value):!1:d2(e)}function d2(e){return e.replace(Hj,"")===""}var Ws={},Ep,h2;function zj(){if(h2)return Ep;h2=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",x="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(ce){var ie=ce.match(t);ie&&(N+=ie.length);var B=ce.lastIndexOf(d);w=~B?ce.length-B:w+ce.length}function F(){var ce={line:N,column:w};return function(ie){return ie.position=new R(ce),Y(),ie}}function R(ce){this.start=ce,this.end={line:N,column:w},this.source=k.source}R.prototype.content=A;function I(ce){var ie=new Error(k.source+":"+N+":"+w+": "+ce);if(ie.reason=ce,ie.filename=k.source,ie.line=N,ie.column=w,ie.source=A,!k.silent)throw ie}function H(ce){var ie=ce.exec(A);if(ie){var B=ie[0];return D(B),A=A.slice(B.length),ie}}function Y(){H(n)}function U(ce){var ie;for(ce=ce||[];ie=Z();)ie!==!1&&ce.push(ie);return ce}function Z(){var ce=F();if(!(h!=A.charAt(0)||m!=A.charAt(1))){for(var ie=2;p!=A.charAt(ie)&&(m!=A.charAt(ie)||h!=A.charAt(ie+1));)++ie;if(ie+=2,p===A.charAt(ie-1))return I("End of comment missing");var B=A.slice(2,ie-2);return w+=2,D(B),A=A.slice(ie),w+=2,ce({type:E,comment:B})}}function X(){var ce=F(),ie=H(i);if(ie){if(Z(),!H(s))return I("property missing ':'");var B=H(l),G=ce({type:x,property:S(ie[0].replace(e,p)),value:B?S(B[0].replace(e,p)):p});return H(u),G}}function se(){var ce=[];U(ce);for(var ie;ie=X();)ie!==!1&&(ce.push(ie),U(ce));return ce}return Y(),se()}function S(A){return A?A.replace(c,p):p}return Ep=v,Ep}var m2;function Fj(){if(m2)return Ws;m2=1;var e=Ws&&Ws.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=n;const t=e(zj());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 Ws}var wo={},p2;function qj(){if(p2)return wo;p2=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.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 wo.camelCase=d,wo}var No,g2;function Vj(){if(g2)return No;g2=1;var e=No&&No.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(Fj()),n=qj();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,No=i,No}var Yj=Vj();const $j=O0(Yj);function $o(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b2(e.position):"start"in e||"end"in e?b2(e):"line"in e||"column"in e?p0(e):""}function p0(e){return y2(e&&e.line)+":"+y2(e&&e.column)}function b2(e){return p0(e&&e.start)+"-"+p0(e&&e.end)}function y2(e){return e&&typeof e=="number"?e:1}class dn 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=$o(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const kg={}.hasOwnProperty,Gj=new Map,Kj=/[A-Z]/g,Xj=new Set(["table","tbody","thead","tfoot","tr"]),Qj=new Set(["td","th"]),E3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Wj(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=aH(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=iH(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"?aa:fu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=x3(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function x3(e,t,n){if(t.type==="element")return Zj(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Jj(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return tH(e,t,n);if(t.type==="mdxjsEsm")return eH(e,t);if(t.type==="root")return nH(e,t,n);if(t.type==="text")return rH(e,t)}function Zj(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=aa,e.schema=s),e.ancestors.push(t);const l=v3(e,t.tagName,!1),u=sH(e,t);let c=Ng(e,t);return Xj.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!Uj(d):!0})),T3(e,u,l,t),wg(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function Jj(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)}ru(e,t.position)}function eH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ru(e,t.position)}function tH(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=aa,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:v3(e,t.name,!0),u=lH(e,t),c=Ng(e,t);return T3(e,u,l,t),wg(u,c),e.ancestors.pop(),e.schema=i,e.create(t,l,u,n)}function nH(e,t,n){const i={};return wg(i,Ng(e,t)),e.create(t,e.Fragment,i,n)}function rH(e,t){return t.value}function T3(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function wg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function iH(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 aH(e,t){return n;function n(i,s,l,u){const c=Array.isArray(l.children),d=Dr(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 sH(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&kg.call(t.properties,s)){const l=oH(e,s,t.properties[s]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&Qj.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 lH(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 ru(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 ru(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function Ng(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Gj;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=x3(e,l,u);c!==void 0&&n.push(c)}return n}function oH(e,t,n){const i=ud(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?SC(n):CC(n)),i.property==="style"){let s=typeof n=="object"?n:uH(e,String(n));return e.stylePropertyNameCase==="css"&&(s=cH(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?C5[i.property]||i.property:i.attribute,n]}}function uH(e,t){try{return $j(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new dn("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=E3+"#cannot-parse-style-attribute",s}}function v3(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=f2(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=f2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return kg.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);ru(e)}function ru(e,t){const n=new dn("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=E3+"#cannot-handle-mdx-estrees-without-createevaluater",n}function cH(e){const t={};let n;for(n in e)kg.call(e,n)&&(t[fH(n)]=e[n]);return t}function fH(e){let t=e.replace(Kj,dH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dH(e){return"-"+e.toLowerCase()}const xp={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"]},hH={tokenize:mH};function mH(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"),nt(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 De(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const pH={tokenize:gH},E2={tokenize:bH};function gH(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 F=D,R;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){R=t.events[F][1].end;break}k(i);let I=D;for(;I<t.events.length;)t.events[I][1].end={...R},I++;return Vn(t.events,F+1,0,t.events.slice(D)),t.events.length=I,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(E2,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(E2,x,v)(w)}function x(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 De(w)?(e.consume(w),A(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(w),S)}function A(w,D){const F=t.sliceStream(w);if(D&&F.push(null),w.previous=l,l&&(l.next=w),l=w,s.defineSkip(w.start),s.write(F),t.parser.lazy[w.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<u&&(!s.events[R][1].end||s.events[R][1].end.offset>u))return;const I=t.events.length;let H=I,Y,U;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(Y){U=t.events[H][1].end;break}Y=!0}for(k(i),R=I;R<t.events.length;)t.events[R][1].end={...U},R++;Vn(t.events,H+1,0,t.events.slice(I)),t.events.length=R}}function k(w){let D=n.length;for(;D-- >w;){const F=n[D];t.containerState=F[1],F[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 bH(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const yH={tokenize:EH};function EH(e){const t=this,n=e.attempt(pu,i,e.attempt(this.parser.constructs.flowInitial,s,nt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(dP,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 xH={resolveAll:C3()},TH=S3("string"),vH=S3("text");function S3(e){return{resolveAll:C3(e==="text"?SH: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 x=p[E];if(!x.previous||x.previous.call(i,i.previous))return!0}return!1}}}function C3(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 SH(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 CH={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:H_},_H={91:bP},AH={[-2]:pp,[-1]:pp,32:pp},kH={35:SP,42:yf,45:[WT,yf],60:kP,61:WT,95:yf,96:XT,126:XT},wH={38:z_,92:U_},NH={[-5]:gp,[-4]:gp,[-3]:gp,33:YP,38:z_,42:h0,60:[G9,IP],91:GP,92:[TP,U_],93:vg,95:h0,96:sP},RH={null:[h0,xH]},OH={null:[42,95]},LH={null:[]},DH=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:OH,contentInitial:_H,disable:LH,document:CH,flow:kH,flowInitial:AH,insideSpan:RH,string:wH,text:NH},Symbol.toStringTag,{value:"Module"}));function IH(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:I(F),check:I(R),consume:N,enter:w,exit:D,interrupt:I(R,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:E,sliceStream:x,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p(Z){return u=nr(u,Z),A(),u[u.length-1]!==null?[]:(H(t,0),h.events=gd(l,h.events,h),h.events)}function E(Z,X){return PH(x(Z),X)}function x(Z){return MH(u,Z)}function v(){const{_bufferIndex:Z,_index:X,line:se,column:ce,offset:ie}=i;return{_bufferIndex:Z,_index:X,line:se,column:ce,offset:ie}}function S(Z){s[Z.line]=Z.column,U()}function A(){let Z;for(;i._index<u.length;){const X=u[i._index];if(typeof X=="string")for(Z=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Z&&i._bufferIndex<X.length;)k(X.charCodeAt(i._bufferIndex));else k(X)}}function k(Z){m=m(Z)}function N(Z){De(Z)?(i.line++,i.column=1,i.offset+=Z===-3?2:1,U()):Z!==-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=Z}function w(Z,X){const se=X||{};return se.type=Z,se.start=v(),h.events.push(["enter",se,h]),c.push(se),se}function D(Z){const X=c.pop();return X.end=v(),h.events.push(["exit",X,h]),X}function F(Z,X){H(Z,X.from)}function R(Z,X){X.restore()}function I(Z,X){return se;function se(ce,ie,B){let G,oe,le,L;return Array.isArray(ce)?Q(ce):"tokenize"in ce?Q([ce]):z(ce);function z(ge){return Se;function Se(Te){const xe=Te!==null&&ge[Te],Oe=Te!==null&&ge.null,we=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return Q(we)(Te)}}function Q(ge){return G=ge,oe=0,ge.length===0?B:M(ge[oe])}function M(ge){return Se;function Se(Te){return L=Y(),le=ge,ge.partial||(h.currentConstruct=ge),ge.name&&h.parser.constructs.disable.null.includes(ge.name)?me():ge.tokenize.call(X?Object.assign(Object.create(h),X):h,d,ee,me)(Te)}}function ee(ge){return Z(le,L),ie}function me(ge){return L.restore(),++oe<G.length?M(G[oe]):B}}}function H(Z,X){Z.resolveAll&&!l.includes(Z)&&l.push(Z),Z.resolve&&Vn(h.events,X,h.events.length-X,Z.resolve(h.events.slice(X),h)),Z.resolveTo&&(h.events=Z.resolveTo(h.events,h))}function Y(){const Z=v(),X=h.previous,se=h.currentConstruct,ce=h.events.length,ie=Array.from(c);return{from:ce,restore:B};function B(){i=Z,h.previous=X,h.currentConstruct=se,h.events.length=ce,c=ie,U()}}function U(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function MH(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 PH(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 BH(e){const i={constructs:R_([DH,...(e||{}).extensions||[]]),content:s(hH),defined:[],document:s(pH),flow:s(yH),lazy:{},string:s(TH),text:s(vH)};return i;function s(l){return u;function u(c){return IH(i,l,c)}}}function jH(e){for(;!F_(e););return e}const x2=/[\0\t\n\r]/g;function HH(){let e=1,t="",n=!0,i;return s;function s(l,u,c){const d=[];let h,m,p,E,x;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(x2.lastIndex=p,h=x2.exec(l),E=h&&h.index!==void 0?h.index:l.length,x=l.charCodeAt(E),!h){t=l.slice(p);break}if(x===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),x){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 _3={}.hasOwnProperty;function UH(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),zH(n)(jH(BH(n).document().write(HH()(e,t,!0))))}function zH(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Yt),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:l(ot),blockQuote:l(Oe),characterEscape:Y,characterReference:Y,codeFenced:l(we),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(we,u),codeText:l(Le,u),codeTextData:Y,data:Y,codeFlowValue:Y,definition:l(ze),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l($e),hardBreakEscape:l(Qe),hardBreakTrailing:l(Qe),htmlFlow:l(Ct,u),htmlFlowData:Y,htmlText:l(Ct,u),htmlTextData:Y,image:l(xt),label:u,link:l(Yt),listItem:l(He),listItemValue:E,listOrdered:l(Ne,p),listUnordered:l(Ne),paragraph:l(wt),reference:M,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(ot),strong:l(et),thematicBreak:l(ln)},exit:{atxHeading:d(),atxHeadingSequence:F,autolink:d(),autolinkEmail:xe,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:ge,characterReference:Se,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:x,codeFencedFenceMeta:v,codeFlowValue:U,codeIndented:d(k),codeText:d(ie),codeTextData:U,data:U,definition:d(),definitionDestinationString:D,definitionLabelString:N,definitionTitleString:w,emphasis:d(),hardBreakEscape:d(X),hardBreakTrailing:d(X),htmlFlow:d(se),htmlFlowData:U,htmlText:d(ce),htmlTextData:U,image:d(G),label:le,labelText:oe,lineEnding:Z,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ee,resourceDestinationString:L,resourceTitleString:z,resource:Q,setextHeading:d(H),setextHeadingLineSequence:I,setextHeadingText:R,strong:d(),thematicBreak:d()}};A3(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(fe){let W={type:"root",children:[]};const ve={stack:[W],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},Me=[];let qe=-1;for(;++qe<fe.length;)if(fe[qe][1].type==="listOrdered"||fe[qe][1].type==="listUnordered")if(fe[qe][0]==="enter")Me.push(qe);else{const $t=Me.pop();qe=s(fe,$t,qe)}for(qe=-1;++qe<fe.length;){const $t=t[fe[qe][0]];_3.call($t,fe[qe][1].type)&&$t[fe[qe][1].type].call(Object.assign({sliceSerialize:fe[qe][2].sliceSerialize},ve),fe[qe][1])}if(ve.tokenStack.length>0){const $t=ve.tokenStack[ve.tokenStack.length-1];($t[1]||T2).call(ve,void 0,$t[0])}for(W.position={start:zi(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:zi(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},qe=-1;++qe<t.transforms.length;)W=t.transforms[qe](W)||W;return W}function s(fe,W,ve){let Me=W-1,qe=-1,$t=!1,Pr,hn,Ft,Tn;for(;++Me<=ve;){const gt=fe[Me];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?qe++:qe--,Tn=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(Pr&&!Tn&&!qe&&!Ft&&(Ft=Me),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!qe&&gt[0]==="enter"&&gt[1].type==="listItemPrefix"||qe===-1&&gt[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(Pr){let pi=Me;for(hn=void 0;pi--;){const sr=fe[pi];if(sr[1].type==="lineEnding"||sr[1].type==="lineEndingBlank"){if(sr[0]==="exit")continue;hn&&(fe[hn][1].type="lineEndingBlank",$t=!0),sr[1].type="lineEnding",hn=pi}else if(!(sr[1].type==="linePrefix"||sr[1].type==="blockQuotePrefix"||sr[1].type==="blockQuotePrefixWhitespace"||sr[1].type==="blockQuoteMarker"||sr[1].type==="listItemIndent"))break}Ft&&(!hn||Ft<hn)&&(Pr._spread=!0),Pr.end=Object.assign({},hn?fe[hn][1].start:gt[1].end),fe.splice(hn||Me,0,["exit",Pr,gt[2]]),Me++,ve++}if(gt[1].type==="listItemPrefix"){const pi={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};Pr=pi,fe.splice(Me,0,["enter",pi,gt[2]]),Me++,ve++,Ft=void 0,Tn=!0}}}return fe[W][1]._spread=$t,ve}function l(fe,W){return ve;function ve(Me){c.call(this,fe(Me),Me),W&&W.call(this,Me)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(fe,W,ve){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([W,ve||void 0]),fe.position={start:zi(W.start),end:void 0}}function d(fe){return W;function W(ve){fe&&fe.call(this,ve),h.call(this,ve)}}function h(fe,W){const ve=this.stack.pop(),Me=this.tokenStack.pop();if(Me)Me[0].type!==fe.type&&(W?W.call(this,fe,Me[0]):(Me[1]||T2).call(this,fe,Me[0]));else throw new Error("Cannot close `"+fe.type+"` ("+$o({start:fe.start,end:fe.end})+"): it’s not open");ve.position.end=zi(fe.end)}function m(){return yg(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function E(fe){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.lang=fe}function v(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.meta=fe}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.value=fe.replace(/(\r?\n|\r)$/g,"")}function N(fe){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=dr(this.sliceSerialize(fe)).toLowerCase()}function w(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.title=fe}function D(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.url=fe}function F(fe){const W=this.stack[this.stack.length-1];if(!W.depth){const ve=this.sliceSerialize(fe).length;W.depth=ve}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function I(fe){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(fe){const ve=this.stack[this.stack.length-1].children;let Me=ve[ve.length-1];(!Me||Me.type!=="text")&&(Me=tt(),Me.position={start:zi(fe.start),end:void 0},ve.push(Me)),this.stack.push(Me)}function U(fe){const W=this.stack.pop();W.value+=this.sliceSerialize(fe),W.position.end=zi(fe.end)}function Z(fe){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=W.children[W.children.length-1];ve.position.end=zi(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(W.type)&&(Y.call(this,fe),U.call(this,fe))}function X(){this.data.atHardBreak=!0}function se(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.value=fe}function ce(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.value=fe}function ie(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.value=fe}function B(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=W,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function G(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=W,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function oe(fe){const W=this.sliceSerialize(fe),ve=this.stack[this.stack.length-2];ve.label=b9(W),ve.identifier=dr(W).toLowerCase()}function le(){const fe=this.stack[this.stack.length-1],W=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Me=fe.children;ve.children=Me}else ve.alt=W}function L(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.url=fe}function z(){const fe=this.resume(),W=this.stack[this.stack.length-1];W.title=fe}function Q(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ee(fe){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=dr(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function me(fe){this.data.characterReferenceType=fe.type}function ge(fe){const W=this.sliceSerialize(fe),ve=this.data.characterReferenceType;let Me;ve?(Me=N_(W,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Me=xg(W);const qe=this.stack[this.stack.length-1];qe.value+=Me}function Se(fe){const W=this.stack.pop();W.position.end=zi(fe.end)}function Te(fe){U.call(this,fe);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(fe)}function xe(fe){U.call(this,fe);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(fe)}function Oe(){return{type:"blockquote",children:[]}}function we(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $e(){return{type:"emphasis",children:[]}}function ot(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function Yt(){return{type:"link",title:null,url:"",children:[]}}function Ne(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function He(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function wt(){return{type:"paragraph",children:[]}}function et(){return{type:"strong",children:[]}}function tt(){return{type:"text",value:""}}function ln(){return{type:"thematicBreak"}}}function zi(e){return{line:e.line,column:e.column,offset:e.offset}}function A3(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?A3(e,i):FH(e,i)}}function FH(e,t){let n;for(n in t)if(_3.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 T2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$o({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$o({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$o({start:t.start,end:t.end})+") is still open")}function qH(e){const t=this;t.parser=n;function n(i){return UH(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function VH(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 YH(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
89
+ `}]}function $H(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 GH(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function XH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=_l(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 QH(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 WH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function k3(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 ZH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return k3(e,t);const s={src:_l(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 JH(e,t){const n={src:_l(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 eU(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 tU(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return k3(e,t);const s={href:_l(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 nU(e,t){const n={href:_l(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 rU(e,t,n){const i=e.all(t),s=n?iU(n):w3(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 iU(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=w3(n[i])}return t}function w3(e){const t=e.spread;return t??e.children.length>1}function aU(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 sU(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lU(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function oU(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uU(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=Dr(t.children[1]),d=md(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 cU(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={},x=u?u[d]:void 0;x&&(E.align=x);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 fU(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const v2=9,S2=32;function dU(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(C2(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(C2(t.slice(s),s>0,!1)),l.join("")}function C2(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===v2||l===S2;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===v2||l===S2;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function hU(e,t){const n={type:"text",value:dU(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function mU(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pU={blockquote:VH,break:YH,code:$H,delete:GH,emphasis:KH,footnoteReference:XH,heading:QH,html:WH,imageReference:ZH,image:JH,inlineCode:eU,linkReference:tU,link:nU,listItem:rU,list:aU,paragraph:sU,root:lU,strong:oU,table:uU,tableCell:fU,tableRow:cU,text:hU,thematicBreak:mU,toml:ef,yaml:ef,definition:ef,footnoteDefinition:ef};function ef(){}function gU(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 bU(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yU(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||gU,i=e.options.footnoteBackLabel||bU,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=_l(p.toLowerCase());let x=0;const v=[],S=e.footnoteCounts.get(p);for(;S!==void 0&&++x<=S;){v.length>0&&v.push({type:"text",value:" "});let N=typeof n=="string"?n:n(d,x);typeof N=="string"&&(N={type:"text",value:N}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,x),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:{...Xa(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 g0={}.hasOwnProperty,EU={};function xU(e,t){const n=t||EU,i=new Map,s=new Map,l=new Map,u={...pU,...n.handlers},c={all:h,applyData:vU,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:u,one:d,options:n,patch:TU,wrap:CU};return hr(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,x=c.handlers[E];if(g0.call(c.handlers,E)&&x)return x(c,m,p);if(c.options.passThrough&&c.options.passThrough.includes(E)){if("children"in m){const{children:S,...A}=m,k=Xa(A);return k.children=c.all(m),k}return Xa(m)}return(c.options.unknownHandler||SU)(c,m,p)}function h(m){const p=[];if("children"in m){const E=m.children;let x=-1;for(;++x<E.length;){const v=c.one(E[x],m);if(v){if(x&&E[x-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 TU(e,t){e.position&&(t.position=i_(e))}function vU(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,Xa(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function SU(e,t){const n=t.data||{},i="value"in t&&!(g0.call(n,"hProperties")||g0.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 CU(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 A2(e,t){const n=xU(e,t),i=n.one(e,void 0),s=yU(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 _U(e,t){return e&&"run"in e?async function(n,i){const s=A2(n,{file:i,...t});await e.run(s,i)}:function(n,i){return A2(n,{file:i,...e||t})}}function k2(e){if(e)throw e}var Tp,w2;function AU(){if(w2)return Tp;w2=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 Tp=function d(){var h,m,p,E,x,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)||(x=s(E)))?(x?(x=!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},Tp}var kU=AU();const vp=O0(kU);function b0(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 wU(){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?NU(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 NU(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 Cr={basename:RU,dirname:OU,extname:LU,join:DU,sep:"/"};function RU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gu(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 OU(e){if(gu(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 LU(e){gu(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 DU(...e){let t=-1,n;for(;++t<e.length;)gu(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":IU(n)}function IU(e){gu(e);const t=e.codePointAt(0)===47;let n=MU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function MU(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 gu(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const PU={cwd:BU};function BU(){return"/"}function y0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function jU(e){if(typeof e=="string")e=new URL(e);else if(!y0(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 HU(e)}function HU(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 Sp=["history","path","basename","stem","extname","dirname"];class UU{constructor(t){let n;t?y0(t)?n={path:t}:typeof t=="string"||zU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":PU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Sp.length;){const l=Sp[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)Sp.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Cr.basename(this.path):void 0}set basename(t){_p(t,"basename"),Cp(t,"basename"),this.path=Cr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Cr.dirname(this.path):void 0}set dirname(t){N2(this.basename,"dirname"),this.path=Cr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Cr.extname(this.path):void 0}set extname(t){if(Cp(t,"extname"),N2(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=Cr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){y0(t)&&(t=jU(t)),_p(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Cr.basename(this.path,this.extname):void 0}set stem(t){_p(t,"stem"),Cp(t,"stem"),this.path=Cr.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 dn(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 Cp(e,t){if(e&&e.includes(Cr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Cr.sep+"`")}function _p(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function N2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function zU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FU=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),qU={}.hasOwnProperty;class Rg extends FU{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=wU()}copy(){const t=new Rg;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(vp(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(wp("data",this.frozen),this.namespace[t]=n,this):qU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(wp("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 Ap("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Ap("process",this.parser||this.Parser),kp("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 x=p,v=i.stringify(x,E);$U(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(),Ap("processSync",this.parser||this.Parser),kp("processSync",this.compiler||this.Compiler),this.process(t,s),O2("processSync","process",n),i;function s(l,u){n=!0,k2(l),i=u}}run(t,n,i){R2(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 x=p||t;m?c(m):u?u(x):i(void 0,x,E)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),O2("runSync","run",i),s;function l(u,c){k2(u),s=c,i=!0}}stringify(t,n){this.freeze();const i=tf(n),s=this.compiler||this.Compiler;return kp("stringify",s),R2(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(wp("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=vp(!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[x,...v]=m;const S=i[E][1];b0(S)&&b0(x)&&(x=vp(!0,S,x)),i[E]=[h,x,...v]}}}}const VU=new Rg().freeze();function Ap(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wp(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 R2(e){if(!b0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function O2(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tf(e){return YU(e)?e:new UU(e)}function YU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $U(e){return typeof e=="string"||GU(e)}function GU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Og(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ls=Og();function N3(e){ls=e}var Pa={exec:()=>null};function rt(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(yn.caret,"$1"),n=n.replace(s,u),i},getRegex:()=>new RegExp(n,t)};return i}var KU=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),yn={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)}}>`)},XU=/^(?:[ \t]*(?:\n|$))+/,QU=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,WU=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ZU=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Lg=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,R3=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,O3=rt(R3).replace(/bull/g,Lg).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(),JU=rt(R3).replace(/bull/g,Lg).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(),Dg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ez=/^[^\n]+/,Ig=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tz=rt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ig).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nz=rt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Lg).getRegex(),yd="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",Mg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rz=rt("^ {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",Mg).replace("tag",yd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L3=rt(Dg).replace("hr",bu).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",yd).getRegex(),iz=rt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",L3).getRegex(),Pg={blockquote:iz,code:QU,def:tz,fences:WU,heading:ZU,hr:bu,html:rz,lheading:O3,list:nz,newline:XU,paragraph:L3,table:Pa,text:ez},L2=rt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bu).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",yd).getRegex(),az={...Pg,lheading:JU,table:L2,paragraph:rt(Dg).replace("hr",bu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L2).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",yd).getRegex()},sz={...Pg,html:rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mg).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:rt(Dg).replace("hr",bu).replace("heading",` *#{1,6} *[^
99
+ ]`).replace("lheading",O3).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lz=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,oz=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,D3=/^( {2,}|\\)\n(?!\s*$)/,uz=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Al=/[\p{P}\p{S}]/u,Ed=/[\s\p{P}\p{S}]/u,Bg=/[^\s\p{P}\p{S}]/u,cz=rt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ed).getRegex(),I3=/(?!~)[\p{P}\p{S}]/u,fz=/(?!~)[\s\p{P}\p{S}]/u,dz=/(?:[^\s\p{P}\p{S}]|~)/u,hz=rt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",KU?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),M3=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mz=rt(M3,"u").replace(/punct/g,Al).getRegex(),pz=rt(M3,"u").replace(/punct/g,I3).getRegex(),P3="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gz=rt(P3,"gu").replace(/notPunctSpace/g,Bg).replace(/punctSpace/g,Ed).replace(/punct/g,Al).getRegex(),bz=rt(P3,"gu").replace(/notPunctSpace/g,dz).replace(/punctSpace/g,fz).replace(/punct/g,I3).getRegex(),yz=rt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Bg).replace(/punctSpace/g,Ed).replace(/punct/g,Al).getRegex(),Ez=rt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Al).getRegex(),xz="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Tz=rt(xz,"gu").replace(/notPunctSpace/g,Bg).replace(/punctSpace/g,Ed).replace(/punct/g,Al).getRegex(),vz=rt(/\\(punct)/,"gu").replace(/punct/g,Al).getRegex(),Sz=rt(/^<(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(),Cz=rt(Mg).replace("(?:-->|$)","-->").getRegex(),_z=rt("^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",Cz).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),zf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Az=rt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",zf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),B3=rt(/^!?\[(label)\]\[(ref)\]/).replace("label",zf).replace("ref",Ig).getRegex(),j3=rt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ig).getRegex(),kz=rt("reflink|nolink(?!\\()","g").replace("reflink",B3).replace("nolink",j3).getRegex(),D2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,jg={_backpedal:Pa,anyPunctuation:vz,autolink:Sz,blockSkip:hz,br:D3,code:oz,del:Pa,delLDelim:Pa,delRDelim:Pa,emStrongLDelim:mz,emStrongRDelimAst:gz,emStrongRDelimUnd:yz,escape:lz,link:Az,nolink:j3,punctuation:cz,reflink:B3,reflinkSearch:kz,tag:_z,text:uz,url:Pa},wz={...jg,link:rt(/^!?\[(label)\]\((.*?)\)/).replace("label",zf).getRegex(),reflink:rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zf).getRegex()},E0={...jg,emStrongRDelimAst:bz,emStrongLDelim:pz,delLDelim:Ez,delRDelim:Tz,url:rt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",D2).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:rt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",D2).getRegex()},Nz={...E0,br:rt(D3).replace("{2,}","*").getRegex(),text:rt(E0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},nf={normal:Pg,gfm:az,pedantic:sz},Ro={normal:jg,gfm:E0,breaks:Nz,pedantic:wz},Rz={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},I2=e=>Rz[e];function Sr(e,t){if(t){if(yn.escapeTest.test(e))return e.replace(yn.escapeReplace,I2)}else if(yn.escapeTestNoEncode.test(e))return e.replace(yn.escapeReplaceNoEncode,I2);return e}function M2(e){try{e=encodeURI(e).replace(yn.percentDecode,"%")}catch{return null}return e}function P2(e,t){let n=e.replace(yn.findPipe,(l,u,c)=>{let d=!1,h=u;for(;--h>=0&&c[h]==="\\";)d=!d;return d?"|":" |"}),i=n.split(yn.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(yn.slashPipe,"|");return i}function Oo(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 Oz(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 Lz(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 B2(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 Dz(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 Ff=class{options;rules;lexer;constructor(e){this.options=e||ls}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:Oo(n,`
102
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=Dz(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=Oo(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:Oo(t[0],`
103
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Oo(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 x=E,v=x.raw+`
110
+ `+n.join(`
111
+ `),S=this.blockquote(v);l[l.length-1]=S,i=i.substring(0,i.length-x.raw.length)+S.raw,s=s.substring(0,s.length-x.text.length)+S.text;break}else if(E?.type==="list"){let x=E,v=x.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-x.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=Lz(t[2].split(`
115
+ `,1)[0],t[1].length),E=e.split(`
116
+ `,1)[0],x=!p.trim(),v=0;if(this.options.pedantic?(v=2,m=p.trimStart()):x?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),x&&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 F=e.split(`
118
+ `,1)[0],R;if(E=F,this.options.pedantic?(E=E.replace(this.rules.other.listReplaceNesting," "),R=E):R=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(R.search(this.rules.other.nonSpaceChar)>=v||!E.trim())m+=`
119
+ `+R.slice(v);else{if(x||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}x=!E.trim(),h+=F+`
121
+ `,e=e.substring(F.length+1),p=R.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=P2(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(P2(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=Oo(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=Oz(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)),B2(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 B2(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 x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}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 x0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ls,this.options.tokenizer=this.options.tokenizer||new Ff,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:yn,block:nf.normal,inline:Ro.normal};this.options.pedantic?(n.block=nf.pedantic,n.inline=Ro.pedantic):this.options.gfm&&(n.block=nf.gfm,this.options.breaks?n.inline=Ro.breaks:n.inline=Ro.gfm),this.tokenizer.rules=n}static get rules(){return{block:nf,inline:Ro}}static lex(t,n){return new x0(n).lex(t)}static lexInline(t,n){return new x0(n).inlineTokens(t)}lex(t){t=t.replace(yn.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(yn.tabCharGlobal," ").replace(yn.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(x=>{E=x.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}},qf=class{options;parser;constructor(e){this.options=e||ls}space(e){return""}code({text:e,lang:t,escaped:n}){let i=(t||"").match(yn.notSpaceStart)?.[0],s=e.replace(yn.endingNewline,"")+`
138
+ `;return i?'<pre><code class="language-'+Sr(i)+'">'+(n?s:Sr(s,!0))+`</code></pre>
139
+ `:"<pre><code>"+(n?s:Sr(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>${Sr(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=M2(e);if(s===null)return i;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+Sr(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=M2(e);if(s===null)return Sr(n);e=s;let l=`<img src="${e}" alt="${Sr(n)}"`;return t&&(l+=` title="${Sr(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Sr(e.text)}},Hg=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}},fr=class T0{options;renderer;textRenderer;constructor(t){this.options=t||ls,this.options.renderer=this.options.renderer||new qf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hg}static parse(t,n){return new T0(n).parse(t)}static parseInline(t,n){return new T0(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}},Io=class{options;block;constructor(e){this.options=e||ls}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?fr.parse:fr.parseInline}},Iz=class{defaults=Og();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=fr;Renderer=qf;TextRenderer=Hg;Lexer=rr;Tokenizer=Ff;Hooks=Io;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 qf(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 Ff(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 Io;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];Io.passThroughHooks.has(u)?l[c]=m=>{if(this.defaults.async&&Io.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 fr.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?fr.parse:fr.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?fr.parse:fr.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>"+Sr(i.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(i);throw i}}},Wa=new Iz;function pt(e,t){return Wa.parse(e,t)}pt.options=pt.setOptions=function(e){return Wa.setOptions(e),pt.defaults=Wa.defaults,N3(pt.defaults),pt};pt.getDefaults=Og;pt.defaults=ls;pt.use=function(...e){return Wa.use(...e),pt.defaults=Wa.defaults,N3(pt.defaults),pt};pt.walkTokens=function(e,t){return Wa.walkTokens(e,t)};pt.parseInline=Wa.parseInline;pt.Parser=fr;pt.parser=fr.parse;pt.Renderer=qf;pt.TextRenderer=Hg;pt.Lexer=rr;pt.lexer=rr.lex;pt.Tokenizer=Ff;pt.Hooks=Io;pt.parse=pt;pt.options;pt.setOptions;pt.use;pt.walkTokens;pt.parseInline;fr.parse;rr.lex;var Mz=300,Pz="300px",Bz=500;function jz(e={}){let{immediate:t=!1,debounceDelay:n=Mz,rootMargin:i=Pz,idleTimeout:s=Bz}=e,[l,u]=C.useState(!1),c=C.useRef(null),d=C.useRef(null),h=C.useRef(null),m=C.useMemo(()=>x=>{let v=Date.now();return window.setTimeout(()=>{x({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-v))})},1)},[]),p=C.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(x,v)=>window.requestIdleCallback(x,v):m,[m]),E=C.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?x=>window.cancelIdleCallback(x):x=>{clearTimeout(x)},[]);return C.useEffect(()=>{if(t){u(!0);return}let x=c.current;if(!x)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,F;let R=w.takeRecords();(R.length===0||(F=(D=R.at(-1))==null?void 0:D.isIntersecting)!=null&&F)&&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(x),()=>{d.current&&clearTimeout(d.current),h.current&&E(h.current),N.disconnect()}},[t,n,i,s,E,p]),{shouldRender:l,containerRef:c}}var Hz=320,Uz=4,H3=()=>typeof performance>"u"?Date.now():performance.now();function j2(e){var t,n;let i=(t=e?.now)!=null?t:H3,s=(n=e?.maxBacklogMs)!=null?n:Hz,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,Uz),E=Math.max(u,h),x=h+s,v=E+Math.max(0,c-1)*m,S=m;if(v>x&&c>1)if(E<x){let k=x-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 U3=/\s/,Ug=/^\s+$/,zz=new Set(["pre","svg","math","annotation"]),Fz=new Set(["img","hr"]),yu=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",zg=e=>e.some(t=>yu(t)&&zz.has(t.tagName)),qz=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(yu(n)&&n.tagName==="li")return n}},Vz=(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}`},Yz=new Set(["ul","ol","li"]),z3=e=>{for(let t of e.children)if(yu(t)){if(t.tagName==="input")return t;if(Yz.has(t.tagName))continue;let n=z3(t);if(n)return n}},F3=(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`},$z=(e,t,n,i)=>{let s=z3(e);s&&F3(s,t,n,i)},Gz=(e,t,n,i,s,l)=>{if(zg(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;F3(e,n,d?0:n.duration,h)},Kz=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let i=e[n];if(yu(i)){if((t=i.properties)!=null&&t["data-sd-animated"])break;i.properties={...i.properties,"data-sd-animated":!0}}}},q3=e=>{let t=[],n="",i=!1;for(let s of e){let l=U3.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},V3=e=>{let t=[],n="";for(let i of e)U3.test(i)?t.length>0&&!Ug.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},Xz=(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}]}},H2=(e,t)=>!(e>0&&t<e),v0=e=>yu(e)&&Fz.has(e.tagName),Qz=(e,t,n)=>{let i=0,s=0;return ld(e,l=>l.type==="text"||v0(l),(l,u)=>{if(zg(u))return Ha;if(v0(l)){H2(n,s)&&(i+=1),s+=1;return}let c=l.value;if(!c.trim()){s+=c.length;return}let d=t.sep==="char"?V3(c):q3(c);for(let h of d){let m=s;s+=h.length,!Ug.test(h)&&H2(n,m)&&(i+=1)}}),i},Wz=(e,t,n,i,s,l)=>{var u;let c=t.at(-1);if(!(c&&"children"in c))return;if(zg(t))return Ha;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"?V3(m):q3(m),E=i.prevContentLength,x=!1,v=qz(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,Ug.test(N))return{type:"text",value:N};let D=E>0&&w<E,F=D?0:l.baseDelay+s.newIndex++*l.step;if(x=!0,v&&S&&!A){let R=D?0:n.duration;Vz(v,R,F,n.easing),$z(v,n,R,F),A=!0}return Xz(N,n.animation,n.duration,n.easing,D,F)});return x&&Kz(t),d.children.splice(h,1,...k),h+k.length},Zz=0;function Y3(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=Zz++,h=()=>m=>{var p;let E={count:0,newIndex:0};c.prevContentLength=c.committedCharCount;let x=u.timeline,v=(p=x?.now())!=null?p:H3();x&&(c.pendingMark===null?c.pendingMark=x.mark():x.rewind(c.pendingMark));let S=x?x.take(Qz(m,u,c.prevContentLength),u.stagger,v):{baseDelay:0,step:u.stagger};ld(m,A=>A.type==="text"||v0(A),(A,k)=>{if(A.type==="text")return Wz(A,k,u,c,E,S);Gz(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}}}Y3();var $3=C.createContext(!1),Jz=()=>C.useContext($3),xd=(...e)=>y3(r3(e)),eF=(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(" ")},tF=e=>e?(...t)=>eF(e,y3(r3(t))):xd,cl=(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)},S0=C.createContext(xd),Ye=()=>C.useContext(S0),nF=8,G3=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}},K3=(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<nF;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},rF=xd("block"),iF=xd("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"),aF=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},sF=C.memo(({children:e,result:t,language:n,className:i,maxHeight:s,startLine:l,lineNumbers:u=!0,...c})=>{let d=Ye(),{isAnimating:h}=C.useContext(sn),m=G3(s),p=K3(h,!!m,t),E=C.useMemo(()=>d(iF),[d]),x=C.useMemo(()=>d(rF),[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,aF(t.rootStyle)),S},[t.bg,t.fg,t.rootStyle]);return y.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:y.jsx("pre",{className:d(i,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:v,children:y.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)=>y.jsx("span",{className:u?E:x,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[F,R]of Object.entries(k.htmlStyle))F==="color"?w["--sdm-c"]=R:F==="background-color"?(w["--sdm-tbg"]=R,D=!0):w[F]=R;return y.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))})})})}),lF=({className:e,language:t,style:n,isIncomplete:i,...s})=>{let l=Ye();return y.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})},X3=C.createContext({code:""}),Q3=()=>C.useContext(X3),oF=({language:e})=>{let t=Ye();return y.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:y.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},uF=e=>{let t=e.length;for(;t>0&&e[t-1]===`
158
+ `;)t--;return e.slice(0,t)},cF=C.lazy(()=>uC(()=>import("./highlighted-body-KPVGNVTW-CyX758Sl.js"),[]).then(e=>({default:e.HighlightedCodeBlockBody}))),fF=({code:e,language:t,className:n,children:i,isIncomplete:s=!1,startLine:l,lineNumbers:u,...c})=>{let d=Ye(),{codeBlockMaxHeight:h}=C.useContext(sn),m=C.useMemo(()=>uF(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 y.jsx(X3.Provider,{value:{code:e},children:y.jsxs(lF,{dir:"ltr",isIncomplete:s,language:t,children:[y.jsx(oF,{language:t}),i?y.jsx("div",{className:d("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:y.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,y.jsx(C.Suspense,{fallback:y.jsx(sF,{className:n,language:t,lineNumbers:u,maxHeight:h,result:p,startLine:l,...c}),children:y.jsx(cF,{className:n,code:m,language:t,lineNumbers:u,maxHeight:h,raw:p,startLine:l,...c})})]})})},dF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),hF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),mF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),pF=e=>y.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[y.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),y.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),gF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),bF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),yF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),EF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),xF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),TF=e=>y.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:y.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"})}),Mo={CheckIcon:dF,CopyIcon:hF,DownloadIcon:mF,ExternalLinkIcon:EF,Loader2Icon:pF,Maximize2Icon:gF,RotateCcwIcon:bF,XIcon:yF,ZoomInIcon:xF,ZoomOutIcon:TF},W3=C.createContext(Mo),vF=(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])},U2=({icons:e,children:t})=>{let n=C.useRef(e),i=C.useRef(e?{...Mo,...e}:Mo);vF(n.current,e)||(n.current=e,i.current=e?{...Mo,...e}:Mo);let s=i.current;return y.jsx(W3.Provider,{value:s,children:t})},br=()=>C.useContext(W3),Z3={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"},C0=C.createContext(Z3),Mr=()=>C.useContext(C0),_0=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:s,code:l,...u})=>{let c=Ye(),[d,h]=C.useState(!1),m=C.useRef(0),{code:p}=Q3(),{isAnimating:E}=C.useContext(sn),x=Mr(),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=br(),k=d?A.CheckIcon:A.CopyIcon;return y.jsxs(y.Fragment,{children:[y.jsx("button",{"aria-label":x.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:x.copyCode,type:"button",...u,children:i??y.jsx(k,{"aria-hidden":"true",size:14})}),d&&y.jsx("output",{"aria-live":"polite",className:"sr-only",children:x.copied})]})},Fg=(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},z2={"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"},SF=({onDownload:e,onError:t,language:n,children:i,className:s,code:l,...u})=>{let c=Ye(),{code:d}=Q3(),{isAnimating:h,controls:m}=C.useContext(sn),p=Mr(),E=br(),x=l??d,v=n&&n in z2?z2[n]:"txt",S=`${Fg(m,"code","file")}.${v}`,A="text/plain",k=()=>{try{cl(S,x,A),e?.()}catch(N){t?.(N)}};return y.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??y.jsx(E.DownloadIcon,{size:14})})},F2=()=>{let{Loader2Icon:e}=br(),t=Ye();return y.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[y.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),y.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:y.jsx(e,{className:t("size-4 animate-spin")})})]})},CF=/\.[^/.]+$/,_F=({node:e,className:t,src:n,alt:i,onLoad:s,onError:l,showControls:u=!0,showDownloadControl:c=!0,...d})=>{let{DownloadIcon:h}=br(),m=Ye(),p=C.useRef(null),[E,x]=C.useState(!1),[v,S]=C.useState(!1),A=Mr(),k=d.width!=null||d.height!=null,N=(E||k)&&!v&&u&&c,w=v&&!k;C.useEffect(()=>{let I=p.current;if(I!=null&&I.complete){let H=I.naturalWidth>0;x(H),S(!H)}},[]);let D=C.useCallback(I=>{x(!0),S(!1),s?.(I)},[s]),F=C.useCallback(I=>{x(!1),S(!0),l?.(I)},[l]),R=async()=>{if(n)try{let I=await(await fetch(n)).blob(),H=new URL(n,window.location.origin).pathname.split("/").pop()||"",Y=H.split(".").pop(),U=H.includes(".")&&Y!==void 0&&Y.length<=4,Z="";if(U)Z=H;else{let X=I.type,se="png";X.includes("jpeg")||X.includes("jpg")?se="jpg":X.includes("png")?se="png":X.includes("svg")?se="svg":X.includes("gif")?se="gif":X.includes("webp")&&(se="webp"),Z=`${(i||H||"image").replace(CF,"")}.${se}`}cl(Z,I,I.type)}catch{window.open(n,"_blank")}};return n?y.jsxs("div",{className:m("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[y.jsx("img",{alt:i,className:m("max-w-full rounded-lg",w&&"hidden",t),"data-streamdown":"image",onError:F,onLoad:D,ref:p,src:n,...d}),w&&y.jsx("span",{className:m("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:A.imageNotAvailable}),u&&y.jsx("div",{className:m("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),N&&y.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:R,title:A.downloadImage,type:"button",children:y.jsx(h,{size:14})})]}):null},Go=0,qg=()=>{Go+=1,Go===1&&(document.body.style.overflow="hidden")},Vg=()=>{Go=Math.max(0,Go-1),Go===0&&(document.body.style.overflow="")},AF=({url:e,isOpen:t,onClose:n,onConfirm:i})=>{let{CheckIcon:s,CopyIcon:l,ExternalLinkIcon:u,XIcon:c}=br(),d=Ye(),[h,m]=C.useState(!1),p=Mr(),E=C.useCallback(async()=>{try{await navigator.clipboard.writeText(e),m(!0),setTimeout(()=>m(!1),2e3)}catch{}},[e]),x=C.useCallback(()=>{i(),n()},[i,n]);if(C.useEffect(()=>{if(t){qg();let S=A=>{A.key==="Escape"&&n()};return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S),Vg()}}},[t,n]),!t||typeof document>"u")return null;let v=y.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:y.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:[y.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:y.jsx(c,{size:16})}),y.jsxs("div",{className:d("flex flex-col gap-2"),children:[y.jsxs("div",{className:d("flex items-center gap-2 font-semibold text-lg"),children:[y.jsx(u,{size:20}),y.jsx("span",{children:p.openExternalLink})]}),y.jsx("p",{className:d("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),y.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}),y.jsxs("div",{className:d("flex gap-2"),children:[y.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?y.jsxs(y.Fragment,{children:[y.jsx(s,{size:14}),y.jsx("span",{children:p.copied})]}):y.jsxs(y.Fragment,{children:[y.jsx(l,{size:14}),y.jsx("span",{children:p.copyLink})]})}),y.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:x,type:"button",children:[y.jsx(u,{size:14}),y.jsx("span",{children:p.openLink})]})]})]})});return na.createPortal(v,document.body)},A0=C.createContext(null),Yg=()=>C.useContext(A0),rV=()=>{var e;let t=Yg();return(e=t?.code)!=null?e:null},$g=()=>{var e;let t=Yg();return(e=t?.mermaid)!=null?e:null},kF=e=>{var t;let n=Yg();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},wF=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},NF=(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})},J3=({chart:e,children:t,className:n,onDownload:i,config:s,onError:l})=>{let u=Ye(),[c,d]=C.useState(!1),h=C.useRef(null),{isAnimating:m,controls:p}=C.useContext(sn),E=br(),x=$g(),v=Mr(),S=Fg(p,"mermaid","diagram"),A=async k=>{try{if(k==="mmd"){let I=`${S}.mmd`;cl(I,e,"text/plain"),d(!1),i?.(k);return}if(!x){l?.(new Error("Mermaid plugin not available"));return}let N=x.getMermaid(s),w=e.split("").reduce((I,H)=>(I<<5)-I+H.charCodeAt(0)|0,0),D=`mermaid-${Math.abs(w)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:F}=await N.render(D,e);if(!F){l?.(new Error("SVG not found. Please wait for the diagram to render."));return}let R=wF(F);if(k==="svg"){let I=`${S}.svg`;cl(I,R,"image/svg+xml"),d(!1),i?.(k);return}if(k==="png"){let I=await NF(R);cl(`${S}.png`,I,"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)}},[]),y.jsxs("div",{className:u("relative"),ref:h,children:[y.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??y.jsx(E.DownloadIcon,{"aria-hidden":"true",size:14})}),c?y.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:[y.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}),y.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}),y.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]})},RF=({chart:e,config:t,onFullscreen:n,onExit:i,className:s,...l})=>{let{Maximize2Icon:u,XIcon:c}=br(),d=Ye(),[h,m]=C.useState(!1),{isAnimating:p,controls:E}=C.useContext(sn),x=Mr(),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){qg();let N=w=>{w.key==="Escape"&&m(!1)};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),Vg()}}},[h]),C.useEffect(()=>{h?n?.():i&&i()},[h,n,i]),y.jsxs(y.Fragment,{children:[y.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:x.viewFullscreen,type:"button",...l,"aria-label":x.viewFullscreen,children:y.jsx(u,{"aria-hidden":"true",size:14})}),h?na.createPortal(y.jsxs("div",{"aria-label":x.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:[y.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?y.jsx(J3,{chart:e,config:t}):null,A?y.jsx(_0,{code:e}):null,y.jsx("button",{"aria-label":x.exitFullscreen,className:d("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:k,title:x.exitFullscreen,type:"button",children:y.jsx(c,{"aria-hidden":"true",size:20})})]}),y.jsx("div",{className:d("flex size-full items-center justify-center p-4"),onClick:N=>N.stopPropagation(),onKeyDown:N=>N.stopPropagation(),role:"presentation",children:y.jsx(HA,{chart:e,className:d("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:v})})]}),document.body):null]})};function k0(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(k0).join("")}var eA=e=>{let t=[],n=[],i=e.querySelectorAll("thead th");for(let l of i)t.push(k0(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(k0(d).trim());n.push(u)}return{headers:t,rows:n}},tA=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},nA=(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
+ `)},OF=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
+ `)},Np=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("")},rA=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=>Np(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?Np(c[h]):"";i[s]=`| ${d.join(" | ")} |`,s+=1}else{let d=c.map(h=>Np(h));i[s]=`| ${d.join(" | ")} |`,s+=1}return i.join(`
168
+ `)},iA=({children:e,className:t,onCopy:n,onError:i,timeout:s=2e3})=>{let l=Ye(),[u,c]=C.useState(!1),[d,h]=C.useState(!1),m=C.useRef(null),p=C.useRef(0),{isAnimating:E,controls:x}=C.useContext(sn),v=Mr(),S=tA(x),A=async w=>{var D,F;if(typeof window>"u"||!((D=navigator?.clipboard)!=null&&D.write)){i?.(new Error("Clipboard API not available"));return}try{let R=(F=m.current)==null?void 0:F.closest('[data-streamdown="table-wrapper"]'),I=R?.querySelector("table");if(!I){i?.(new Error("Table not found"));return}let H=eA(I),Y="";w==="csv"?Y=nA(H,S):w==="tsv"?Y=OF(H):Y=rA(H);let U=new ClipboardItem({"text/plain":new Blob([Y],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([U]),h(!0),c(!1),n?.(w),p.current=window.setTimeout(()=>h(!1),s)}catch(R){i?.(R)}};C.useEffect(()=>{let w=D=>{let F=D.composedPath();m.current&&!F.includes(m.current)&&c(!1)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w),window.clearTimeout(p.current)}},[]);let k=br(),N=d?k.CheckIcon:k.CopyIcon;return y.jsxs("div",{className:l("relative"),ref:m,children:[y.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??y.jsx(N,{height:14,width:14})}),u?y.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:[y.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}),y.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}),y.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]})},aA=({children:e,className:t,onDownload:n,onError:i})=>{let s=Ye(),[l,u]=C.useState(!1),c=C.useRef(null),{isAnimating:d,controls:h}=C.useContext(sn),m=Mr(),p=br(),E=tA(h),x=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=eA(k),w=v==="csv"?nA(N,E):rA(N),D=v==="csv"?"csv":"md",F=`${Fg(h,"table","table")}.${D}`;cl(F,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)}},[]),y.jsxs("div",{className:s("relative"),ref:c,children:[y.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??y.jsx(p.DownloadIcon,{size:14})}),l?y.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:[y.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>x("csv"),title:m.downloadTableAsCsv,type:"button",children:m.tableFormatCsv}),y.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>x("markdown"),title:m.downloadTableAsMarkdown,type:"button",children:m.tableFormatMarkdown})]}):null]})},LF=({children:e,className:t,showCopy:n=!0,showDownload:i=!0})=>{let{Maximize2Icon:s,XIcon:l}=br(),u=Ye(),[c,d]=C.useState(!1),{isAnimating:h}=C.useContext(sn),m=Mr(),p=()=>{d(!0)},E=()=>{d(!1)};return C.useEffect(()=>{if(c){qg();let x=v=>{v.key==="Escape"&&d(!1)};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x),Vg()}}},[c]),y.jsxs(y.Fragment,{children:[y.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:y.jsx(s,{size:14})}),c?na.createPortal(y.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:x=>{x.key==="Escape"&&E()},role:"dialog",children:y.jsxs("div",{className:u("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:x=>x.stopPropagation(),onKeyDown:x=>x.stopPropagation(),role:"presentation",children:[y.jsxs("div",{className:u("flex items-center justify-end gap-1 p-4"),children:[n?y.jsx(iA,{}):null,i?y.jsx(aA,{}):null,y.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:y.jsx(l,{size:20})})]}),y.jsx("div",{className:u("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:y.jsx("table",{className:u("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},DF=({children:e,className:t,maxHeight:n,showControls:i,showCopy:s=!0,showDownload:l=!0,showFullscreen:u=!0,...c})=>{let d=Ye(),{isAnimating:h}=C.useContext(sn),m=G3(n),p=K3(h,!!m,e),E=i&&s,x=i&&l,v=i&&u,S=E||x||v;return y.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?y.jsxs("div",{className:d("flex items-center justify-end gap-1"),children:[E?y.jsx(iA,{}):null,x?y.jsx(aA,{}):null,v?y.jsx(LF,{showCopy:E,showDownload:x,children:e}):null]}):null,y.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:y.jsx("table",{className:d("w-full divide-y divide-border",t),"data-streamdown":"table",...c,children:e})})]})},IF=/startLine=(\d+)/,MF=/\bnoLineNumbers\b/,PF=C.lazy(()=>uC(()=>Promise.resolve().then(()=>Qq),void 0).then(e=>({default:e.Mermaid}))),BF=/language-([^\s]+)/,jF="node";function St(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!==jF&&!Object.is(i[l],s[l]))return!1;return!0}function HF(e,t){var n,i;return((n=e?.properties)==null?void 0:n.metastring)===((i=t?.properties)==null?void 0:i.metastring)}var Vf=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Rp=(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},q2=(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},UF=(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},Gg=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("ol",{className:s("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...i,children:e})},(e,t)=>St(e,t));Gg.displayName="MarkdownOl";var sA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("li",{className:s("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e})},(e,t)=>St(e,t));sA.displayName="MarkdownLi";var lA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("ul",{className:s("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...i,children:e})},(e,t)=>St(e,t));lA.displayName="MarkdownUl";var oA=C.memo(({className:e,node:t,...n})=>{let i=Ye();return y.jsx("hr",{className:i("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>St(e,t));oA.displayName="MarkdownHr";var uA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("span",{className:s("font-semibold",t),"data-streamdown":"strong",...i,children:e})},(e,t)=>St(e,t));uA.displayName="MarkdownStrong";var zF=({children:e,className:t,href:n,node:i,...s})=>{let l=Ye(),{linkSafety:u}=C.useContext(sn),[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)},[]),x={url:n??"",isOpen:c,onClose:E,onConfirm:p};return u!=null&&u.enabled&&n?y.jsxs(y.Fragment,{children:[y.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(x):y.jsx(AF,{...x})]}):y.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})},cA=C.memo(zF,(e,t)=>St(e,t));cA.displayName="MarkdownA";var fA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h1",{className:s("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e})},(e,t)=>St(e,t));fA.displayName="MarkdownH1";var dA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h2",{className:s("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e})},(e,t)=>St(e,t));dA.displayName="MarkdownH2";var hA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h3",{className:s("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e})},(e,t)=>St(e,t));hA.displayName="MarkdownH3";var mA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h4",{className:s("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e})},(e,t)=>St(e,t));mA.displayName="MarkdownH4";var pA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h5",{className:s("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e})},(e,t)=>St(e,t));pA.displayName="MarkdownH5";var gA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("h6",{className:s("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e})},(e,t)=>St(e,t));gA.displayName="MarkdownH6";var bA=C.memo(({children:e,className:t,node:n,...i})=>{let{controls:s,tableMaxHeight:l}=C.useContext(sn),u=Vf(s,"table"),c=Rp(s,"copy"),d=Rp(s,"download"),h=Rp(s,"fullscreen");return y.jsx(DF,{className:t,maxHeight:l,showControls:u,showCopy:c,showDownload:d,showFullscreen:h,...i,children:e})},(e,t)=>St(e,t));bA.displayName="MarkdownTable";var yA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("thead",{className:s("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e})},(e,t)=>St(e,t));yA.displayName="MarkdownThead";var EA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("tbody",{className:s("divide-y divide-border",t),"data-streamdown":"table-body",...i,children:e})},(e,t)=>St(e,t));EA.displayName="MarkdownTbody";var xA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("tr",{className:s("border-border",t),"data-streamdown":"table-row",...i,children:e})},(e,t)=>St(e,t));xA.displayName="MarkdownTr";var TA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.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)=>St(e,t));TA.displayName="MarkdownTh";var vA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("td",{className:s("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e})},(e,t)=>St(e,t));vA.displayName="MarkdownTd";var SA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.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)=>St(e,t));SA.displayName="MarkdownBlockquote";var CA=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("sup",{className:s("text-sm",t),"data-streamdown":"superscript",...i,children:e})},(e,t)=>St(e,t));CA.displayName="MarkdownSup";var _A=C.memo(({children:e,className:t,node:n,...i})=>{let s=Ye();return y.jsx("sub",{className:s("text-sm",t),"data-streamdown":"subscript",...i,children:e})},(e,t)=>St(e,t));_A.displayName="MarkdownSub";var AA=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 x=Array.isArray(E.props.children)?E.props.children:[E.props.children];for(let v of x){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===Gg){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)?y.jsx("section",{className:t,...i,children:l}):null}return y.jsx("section",{className:t,...i,children:e})},(e,t)=>St(e,t));AA.displayName="MarkdownSection";var FF=({node:e,className:t,children:n,...i})=>{var s,l;let u=Ye(),c=!("data-block"in i),{mermaid:d,controls:h,lineNumbers:m}=C.useContext(sn),p=$g(),E=Jz(),x=t?.match(BF),v=(s=x?.at(1))!=null?s:"",S=kF(v);if(c)return y.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(IF),N=k?Number.parseInt(k[1],10):void 0,w=N!==void 0&&N>=1?N:void 0,D=!(A&&MF.test(A))&&m!==!1,F="";if(C.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?F=n.props.children:typeof n=="string"&&(F=n),S){let Z=S.component;return y.jsx(C.Suspense,{fallback:y.jsx(F2,{}),children:y.jsx(Z,{code:F,isIncomplete:E,language:v,meta:A})})}if(v==="mermaid"&&p){let Z=Vf(h,"mermaid"),X=rf(h,"download"),se=rf(h,"copy"),ce=rf(h,"fullscreen"),ie=rf(h,"panZoom"),B=Z&&(X||se||ce);return y.jsx(C.Suspense,{fallback:y.jsx(F2,{}),children:y.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:[y.jsx("div",{className:u("flex h-8 items-center text-muted-foreground text-xs"),children:y.jsx("span",{className:u("ml-1 font-mono lowercase"),children:"mermaid"})}),B?y.jsx("div",{className:u("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:y.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:[X?y.jsx(J3,{chart:F,config:d?.config}):null,se?y.jsx(_0,{code:F}):null,ce?y.jsx(RF,{chart:F,config:d?.config}):null]})}):null,y.jsx("div",{className:u("rounded-md border border-border bg-background"),children:y.jsx(PF,{chart:F,config:d?.config,showControls:ie})})]})})}let R=Vf(h,"code"),I=q2(h,"download"),H=q2(h,"copy"),{"data-block":Y,...U}=i;return y.jsx(fF,{className:t,code:F,isIncomplete:E,language:v,lineNumbers:D,startLine:w,...U,children:R?y.jsxs(y.Fragment,{children:[I?y.jsx(SF,{code:F,language:v}):null,H?y.jsx(_0,{}):null]}):null})},kA=C.memo(FF,(e,t)=>St(e,t)&&HF(e.node,t.node));kA.displayName="MarkdownCode";var qF=({node:e,className:t,...n})=>{let{controls:i}=C.useContext(sn),s=Vf(i,"image"),l=s&&UF(i,"download");return y.jsx(_F,{className:t,node:e,showControls:s,showDownloadControl:l,...n})},wA=C.memo(qF,(e,t)=>St(e,t));wA.displayName="MarkdownImg";var NA=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 y.jsx(y.Fragment,{children:e});if(l==="code"&&"data-block"in i[0].props)return y.jsx(y.Fragment,{children:e})}return y.jsx("p",{...n,children:e})},(e,t)=>St(e,t));NA.displayName="MarkdownParagraph";var VF={ol:Gg,li:sA,ul:lA,hr:oA,strong:uA,a:cA,h1:fA,h2:dA,h3:hA,h4:mA,h5:pA,h6:gA,table:bA,thead:yA,tbody:EA,tr:xA,th:TA,td:vA,blockquote:SA,code:kA,img:wA,pre:({children:e})=>C.isValidElement(e)?C.cloneElement(e,{"data-block":"true"}):e,sup:CA,sub:_A,p:NA,section:AA},YF=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,$F=new RegExp("\\p{L}","u");function RA(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(YF.test(l)){n!=null||(n="rtl"),s+=1;continue}$F.test(l)&&(n!=null||(n="ltr"),i+=1)}return s>i?"rtl":i>s?"ltr":n??"ltr"}var GF=/^[ \t]{0,3}(`{3,}|~{3,})/,KF=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,V2=e=>{let t=e.split(`
169
+ `),n=null,i=0;for(let s of t){let l=GF.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},XF=e=>{let t=e.split(`
170
+ `);for(let n of t){let i=n.trim();if(i.length>0&&i.includes("|")&&KF.test(i))return!0}return!1},QF=()=>e=>{hr(e,"html",(t,n,i)=>{!i||typeof n!="number"||(i.children[n]={type:"text",value:t.value})})},Y2=[],$2={allowDangerousHtml:!0},af=new WeakMap,WF=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 x=m[E];if(E>0&&(p+=","),Array.isArray(x)){let[v,S]=x;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 x=="function"){let v=af.get(x);v||(v=x.name,af.set(x,v)),p+=v}else p+=String(x)}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()}},G2=new WF,OA=e=>{let t=ZF(e),n=e.children||"",i=t.runSync(t.parse(n),n);return aq(i,e)},ZF=e=>{let t=G2.get(e);if(t)return t;let n=eq(e);return G2.set(e,n),n},JF=e=>e.some(t=>Array.isArray(t)?t[0]===c0:t===c0),eq=e=>{let t=e.rehypePlugins||Y2,n=e.remarkPlugins||Y2,i=JF(t)?n:[...n,QF],s=e.remarkRehypeOptions?{...$2,...e.remarkRehypeOptions}:$2;return VU().use(qH).use(i).use(_U,s).use(t)},tq=e=>e,nq=(e,t,n,i)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:i}},rq=(e,t)=>{var n;for(let i in xp)if(Object.hasOwn(xp,i)&&Object.hasOwn(e.properties,i)){let s=e.properties[i],l=xp[i];(l===null||l.includes(e.tagName))&&(e.properties[i]=(n=t(String(s||""),i,e))!=null?n:void 0)}},iq=(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},aq=(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||tq;hr(e,(h,m,p)=>{if(h.type==="raw"&&p&&typeof m=="number")return nq(p,m,l,h.value),m;if(h.type==="element"&&(rq(h,d),iq(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 Wj(e,{Fragment:y.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0})},sq=/\[\^[\w-]{1,200}\](?!:)/,lq=/\[\^[\w-]{1,200}\]:/,oq=/<([A-Za-z][\w:-]*)[\s>/]/,uq=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),K2=new Map,X2=new Map,cq=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},fq=e=>{let t=e.toLowerCase(),n=X2.get(t);if(n)return n;let i=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return X2.set(t,i),i},Q2=(e,t)=>{if(uq.has(t.toLowerCase()))return 0;let n=e.match(cq(t));if(!n)return 0;let i=0;for(let s of n)s.trimEnd().endsWith("/>")||(i+=1);return i},W2=(e,t)=>{let n=e.match(fq(t));return n?n.length:0},dq=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},hq=e=>{let t=sq.test(e),n=lq.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=Q2(d,m),E=W2(d,m);for(let x=0;x<p;x+=1)l.push(m);for(let x=0;x<E;x+=1)l.length>0&&l.at(-1)===m&&l.pop();continue}if(c.type==="html"&&c.block){let m=d.match(oq);if(m){let p=m[1],E=Q2(d,p),x=W2(d,p);E>x&&l.push(p)}}if(h>0&&!u){let m=s[h-1];if(dq(m)%2===1){s[h-1]=m+d;continue}}s.push(d),c.type!=="space"&&(u=c.type==="code")}return s},mq=/^\n*/,pq=/\n*$/,w0=/\n\n/g,gq=(e,t,n)=>{if(!t.includes(`
171
+ `))return e+t+n;let i=t.replace(w0,`
172
+ <!---->
173
+ `).replace(mq,`
174
+
175
+ `).replace(pq,`
176
+
177
+ `);return`${e}${i}${n}
178
+
179
+ `},bq=(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(w0,`
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(w0,`
187
+ <!---->
188
+ `);i+=`${u}
189
+
190
+ ${p}`,s=e.length;break}return s===0?e:i+e.slice(s)},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)=>gq(u,c,d)),n=bq(n,i)}return n},Eq=/([\\`*_~[\]|])/g,xq=e=>e.replace(Eq,"\\$1"),Tq=(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=xq(c).replace(/\n\n/g,"&#10;&#10;");return u+h+d})}return n},vq=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),LA=new Set(["code","kbd","pre","samp","var"]);function DA(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!LA.has(t.tagName)?DA(t):"").join("")}function Sq(){return e=>{hr(e,"element",t=>{if(LA.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}vq.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=RA(DA(t))))})}}var IA=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(IA).join(""):"",Cq=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(i=>i.toLowerCase()));hr(t,"element",i=>{if(n.has(i.tagName.toLowerCase())){let s=IA(i);i.children=s?[{type:"text",value:s}]:[]}})},_q=()=>e=>{hr(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})})},Aq=/^[ \t]*<[\w!/?-]/,kq=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,wq=e=>typeof e!="string"||e.length===0||!Aq.test(e)?e:e.replace(kq,"$1"),Z2,J2,ev,tv,Ef={...Ma,clobberPrefix:"",protocols:{...Ma.protocols,href:[...(J2=(Z2=Ma.protocols)==null?void 0:Z2.href)!=null?J2:[],"tel","streamdown"]},attributes:{...Ma.attributes,code:[...(tv=(ev=Ma.attributes)==null?void 0:ev.code)!=null?tv:[],"metastring"]}},N0={raw:c0,sanitize:[d_,Ef],harden:[o5,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Nq={gfm:[w7,{}],codeMeta:_q},nv=Object.values(N0),Rq=Object.values(Nq),Oq={block:" ▋",circle:" ●"},MA=["github-light","github-dark"],PA={enabled:!0},Lq={codeBlockMaxHeight:400,shikiTheme:MA,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:PA,tableMaxHeight:300},sn=C.createContext(Lq),BA=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?wq(e):e,h=y.jsx(OA,{...c,children:d});return y.jsx($3.Provider,{value:s,children:l?y.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)});BA.displayName="Block";var jA=C.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:s=!1,components:l,rehypePlugins:u=nv,remarkPlugins:c=Rq,className:d,shikiTheme:h,mermaid:m,codeBlockMaxHeight:p=400,controls:E=!0,isAnimating:x=!1,tableMaxHeight:v=300,animated:S,BlockComponent:A=BA,parseMarkdownIntoBlocksFn:k=hq,caret:N,plugins:w,remend:D,linkSafety:F=PA,lineNumbers:R=!0,allowedTags:I,literalTagContent:H,translations:Y,icons:U,prefix:Z,onAnimationStart:X,onAnimationEnd:se,...ce})=>{let ie=C.useId(),B=C.useMemo(()=>tF(Z),[Z]),G=C.useRef(null),oe=C.useRef(X),le=C.useRef(se);oe.current=X,le.current=se,C.useEffect(()=>{var Ne,He,wt;if(t==="static")return;let et=G.current;if(G.current=x,et===null){x&&((Ne=oe.current)==null||Ne.call(oe));return}x&&!et?(He=oe.current)==null||He.call(oe):!x&&et&&((wt=le.current)==null||wt.call(le))},[x,t]);let L=C.useMemo(()=>I?Object.keys(I):[],[I]),z=C.useMemo(()=>{if(typeof e!="string")return"";let Ne=t==="streaming"&&i?YB(e,D):e;return H&&H.length>0&&(Ne=Tq(Ne,H)),L.length>0&&(Ne=yq(Ne,L)),Ne},[e,t,i,D,L,H]),Q=C.useMemo(()=>k(z),[z,k]),M=C.useMemo(()=>n==="auto"?Q.map(RA):void 0,[Q,n]),ee=C.useMemo(()=>Q.map((Ne,He)=>`${ie}-${He}`),[Q.length,ie]),me=C.useMemo(()=>S===!0?"true":S?JSON.stringify(S):"",[S]),ge=C.useRef(null),Se=C.useRef([]),Te=C.useRef([]),xe=C.useRef(null),Oe=C.useRef("");if(me){if(Oe.current!==me){Oe.current=me;let Ne=me!=="true"?S.maxBacklogMs:void 0;ge.current=j2({maxBacklogMs:Ne}),Se.current=[],Te.current=[]}else ge.current||(ge.current=j2());x&&ge.current&&ge.current.beginPass(ge.current.now())}else ge.current=null,Se.current=[],Te.current=[],Oe.current="";C.useLayoutEffect(()=>{var Ne;x&&((Ne=ge.current)==null||Ne.commitPass())});let we=C.useMemo(()=>{var Ne,He;return{codeBlockMaxHeight:p,shikiTheme:(He=h??((Ne=w?.code)==null?void 0:Ne.getThemes()))!=null?He:MA,controls:E,isAnimating:x,lineNumbers:R,mode:t,mermaid:m,linkSafety:F,tableMaxHeight:v}},[p,h,E,x,R,t,m,F,w?.code,v]),Le=C.useMemo(()=>Y?JSON.stringify(Y):"",[Y]),ze=C.useMemo(()=>({...Z3,...Y}),[Le]),$e=C.useMemo(()=>{let{inlineCode:Ne,...He}=l??{},wt={...VF,...He};if(Ne){let et=wt.code;wt.code=tt=>"data-block"in tt?et?C.createElement(et,tt):null:C.createElement(Ne,tt)}return wt},[l]),ot=C.useMemo(()=>{let Ne=[];return w!=null&&w.cjk&&(Ne=[...Ne,...w.cjk.remarkPluginsBefore]),Ne=[...Ne,...c],w!=null&&w.cjk&&(Ne=[...Ne,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(Ne=[...Ne,w.math.remarkPlugin]),Ne},[c,w?.math,w?.cjk]),Qe=C.useMemo(()=>{var Ne;let He=u;if(I&&Object.keys(I).length>0&&u===nv){let wt={...Ef,tagNames:[...(Ne=Ef.tagNames)!=null?Ne:[],...Object.keys(I)],attributes:{...Ef.attributes,...I}};He=[N0.raw,[d_,wt],N0.harden]}return H&&H.length>0&&(He=[...He,[Cq,H]]),w!=null&&w.math&&(He=[...He,w.math.rehypePlugin]),n==="auto"&&t==="static"&&(He=[...He,Sq]),He},[u,w?.math,I,H,n,t]),Ct=C.useMemo(()=>{if(!x||Q.length===0)return!1;let Ne=Q.at(-1);return V2(Ne)||XF(Ne)},[x,Q]),xt=C.useMemo(()=>N&&x&&!Ct?{"--streamdown-caret":`"${Oq[N]}"`}:void 0,[N,x,Ct]),Yt=Ne=>{let He=null;if(ge.current&&x){if(!Se.current[Ne]){let et=me&&me!=="true"?S:{},{maxBacklogMs:tt,...ln}=et;Se.current[Ne]=Y3({...ln,timeline:ge.current})}He=Se.current[Ne]}xe.current!==Qe&&(Te.current=[],xe.current=Qe),He&&!Te.current[Ne]&&(Te.current[Ne]=[...Qe,He.rehypePlugin]);let wt=He&&Te.current[Ne]?Te.current[Ne]:Qe;return{blockAnimatePlugin:He,blockRehypePlugins:wt}};return t==="static"?y.jsx(C0.Provider,{value:ze,children:y.jsx(A0.Provider,{value:w??null,children:y.jsx(sn.Provider,{value:we,children:y.jsx(U2,{icons:U,children:y.jsx(S0.Provider,{value:B,children:y.jsx("div",{className:B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",d),dir:n==="auto"?void 0:n,children:y.jsx(OA,{components:$e,rehypePlugins:Qe,remarkPlugins:ot,...ce,children:z})})})})})})}):y.jsx(C0.Provider,{value:ze,children:y.jsx(A0.Provider,{value:w??null,children:y.jsx(sn.Provider,{value:we,children:y.jsx(U2,{icons:U,children:y.jsx(S0.Provider,{value:B,children:y.jsxs("div",{className:B("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",N&&!Ct?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,d),style:xt,children:[Q.length===0&&N&&x&&y.jsx("span",{}),Q.map((Ne,He)=>{var wt;let et=He===Q.length-1,tt=x&&et&&V2(Ne),{blockAnimatePlugin:ln,blockRehypePlugins:fe}=Yt(He);return y.jsx(A,{animatePlugin:ln,components:$e,content:Ne,dir:(wt=M?.[He])!=null?wt:n!=="auto"?n:void 0,index:He,isIncomplete:tt,rehypePlugins:fe,remarkPlugins:ot,shouldNormalizeHtmlIndentation:s,shouldParseIncompleteMarkdown:i,...ce},ee[He])})]})})})})})})},(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);jA.displayName="Streamdown";var Dq=({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}=br(),p=Ye(),E=Mr(),x=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),[F,R]=C.useState({x:0,y:0}),[I,H]=C.useState({x:0,y:0}),Y=C.useCallback(G=>{A(oe=>Math.max(n,Math.min(i,oe+G)))},[n,i]),U=C.useCallback(()=>{Y(s)},[Y,s]),Z=C.useCallback(()=>{Y(-s)},[Y,s]),X=C.useCallback(()=>{A(u),N({x:0,y:0})},[u]),se=C.useCallback(G=>{G.preventDefault();let oe=G.deltaY>0?-s:s;Y(oe)},[Y,s]),ce=C.useCallback(G=>{if(G.button!==0||G.isPrimary===!1)return;D(!0),R({x:G.clientX,y:G.clientY}),H(k);let oe=G.currentTarget;oe instanceof HTMLElement&&oe.setPointerCapture(G.pointerId)},[k]),ie=C.useCallback(G=>{if(!w)return;G.preventDefault();let oe=G.clientX-F.x,le=G.clientY-F.y;N({x:I.x+oe,y:I.y+le})},[w,F,I]),B=C.useCallback(G=>{D(!1);let oe=G.currentTarget;oe instanceof HTMLElement&&oe.releasePointerCapture(G.pointerId)},[]);return C.useEffect(()=>{let G=x.current;if(G)return G.addEventListener("wheel",se,{passive:!1}),()=>{G.removeEventListener("wheel",se)}},[se]),C.useEffect(()=>{let G=v.current;if(G&&w)return document.body.style.userSelect="none",G.addEventListener("pointermove",ie,{passive:!1}),G.addEventListener("pointerup",B),G.addEventListener("pointercancel",B),()=>{document.body.style.userSelect="",G.removeEventListener("pointermove",ie),G.removeEventListener("pointerup",B),G.removeEventListener("pointercancel",B)}},[w,ie,B]),y.jsxs("div",{className:p("relative flex flex-col",c?"h-full w-full":"min-h-28 w-full",t),ref:x,style:{cursor:w?"grabbing":"grab"},children:[l?y.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:[y.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:U,title:E.zoomIn,type:"button",children:y.jsx(h,{"aria-hidden":"true",size:16})}),y.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:Z,title:E.zoomOut,type:"button",children:y.jsx(m,{"aria-hidden":"true",size:16})}),y.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:X,title:E.resetView,type:"button",children:y.jsx(d,{"aria-hidden":"true",size:16})})]}):null,y.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:ce,ref:v,role:"application",style:{transform:`translate(${k.x}px, ${k.y}px) scale(${S})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},HA=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:s=!0})=>{let l=Ye(),[u,c]=C.useState(null),[d,h]=C.useState(!1),[m,p]=C.useState(""),[E,x]=C.useState(""),[v,S]=C.useState(0),{mermaid:A}=C.useContext(sn),k=$g(),N=A?.errorComponent,{shouldRender:w,containerRef:D}=jz({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 R=k.getMermaid(n),I=e.split("").reduce((U,Z)=>(U<<5)-U+Z.charCodeAt(0)|0,0),H=`mermaid-${Math.abs(I)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:Y}=await R.render(H,e);p(Y),x(Y)}catch(R){if(!(E||m)){let I=R instanceof Error?R.message:"Failed to render Mermaid chart";c(I)}}finally{h(!1)}})()}},[e,n,v,w,k]),!(w||m||E))return y.jsx("div",{className:l("my-4 min-h-[200px]",t),ref:D});if(d&&!m&&!E)return y.jsx("div",{className:l("my-4 flex justify-center p-4",t),ref:D,children:y.jsxs("div",{className:l("flex items-center space-x-2 text-muted-foreground"),children:[y.jsx("div",{className:l("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),y.jsx("span",{className:l("text-sm"),children:"Loading diagram..."})]})});if(u&&!m&&!E){let R=()=>S(I=>I+1);return N?y.jsx("div",{ref:D,children:y.jsx(N,{chart:e,error:u,retry:R})}):y.jsxs("div",{className:l("rounded-md bg-red-50 p-4",t),ref:D,children:[y.jsxs("p",{className:l("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",u]}),y.jsxs("details",{className:l("mt-2"),children:[y.jsx("summary",{className:l("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),y.jsx("pre",{className:l("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let F=m||E;return y.jsx("div",{className:l("size-full",t),"data-streamdown":"mermaid",ref:D,children:y.jsx(Dq,{className:l(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:s,zoomStep:.1,children:y.jsx("div",{"aria-label":"Mermaid chart",className:l("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:F},role:"img"})})})};const Iq=["all","fact","preference","episode","procedure","message"],Td={zh:{all:"全部",fact:"事实",preference:"偏好",episode:"事件",procedure:"方法",message:"对话"},en:{all:"All",fact:"Fact",preference:"Preference",episode:"Episode",procedure:"Procedure",message:"Message"}},R0={zh:{all:{title:"全部记忆",description:"保存 Agent 需要记住的事实、偏好和经验。"},timeline:{title:"时间线",description:"按发生和写入时间回看记忆。"},preferences:{title:"偏好与习惯",description:"查看 Agent 需要遵循的个人偏好和习惯。"},projects:{title:"Scope 分类",description:"按 scope 分类查看记忆。"},tags:{title:"标签",description:"按标签查看记忆。"},settings:{title:"设置",description:"调整界面语言和显示方式。"},mcp:{title:"MCP 服务",description:"连接 Agent,管理服务访问。"}},en:{all:{title:"All memories",description:"Facts, preferences, and experience for your agents to remember."},timeline:{title:"Timeline",description:"Review memories by when they happened or were saved."},preferences:{title:"Preferences",description:"Review preferences your agents should follow."},projects:{title:"Scopes",description:"Browse memories by scope."},tags:{title:"Tags",description:"Browse memories by tag."},settings:{title:"Settings",description:"Adjust language and display settings."},mcp:{title:"MCP service",description:"Connect agents and manage service access."}}},UA={all:"/",timeline:"/timeline",preferences:"/preferences",projects:"/scopes",tags:"/tags",settings:"/settings",mcp:"/mcp-service"},Mq=Object.fromEntries(Object.entries(UA).map(([e,t])=>[t,e]));function La(){return null}const Fi=Y6({component:jq}),Pq=Fi.addChildren([ka({getParentRoute:()=>Fi,path:"/",component:La}),ka({getParentRoute:()=>Fi,path:"/timeline",component:La}),ka({getParentRoute:()=>Fi,path:"/preferences",component:La}),ka({getParentRoute:()=>Fi,path:"/scopes",component:La}),ka({getParentRoute:()=>Fi,path:"/tags",component:La}),ka({getParentRoute:()=>Fi,path:"/settings",component:La}),ka({getParentRoute:()=>Fi,path:"/mcp-service",component:La})]),Bq=eR({routeTree:Pq}),ar={zh:{brandSubtitle:"个人记忆库",workspace:"工作区",collections:"集合",connect:"连接",navAll:"全部记忆",navTimeline:"时间线",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:"重试",noTags:"暂无标签",settingsManaged:"设置已由本地配置管理",detailEyebrow:"记忆详情",close:"关闭",detailEmpty:"选择一条记忆",detailEmptyDesc:"查看完整内容、来源和元数据",confidence:"置信度",created:"创建时间",updated:"最后更新",source:"来源",agentWritten:"Agent 写入",scope:"Scope",signals:"信号",importance:"重要性",recallCount:"召回次数",times:"次",original:"查看原始记录",switchLanguage:"切换到 English",newMemoryEyebrow:"新建记忆",composerTitle:"保存一条记忆",content:"记忆内容",contentPlaceholder:"例如:用户偏好使用简洁的工具界面。",type:"类型",scopeOptional:"可选,例如:/path/to/project",sourcePlaceholder:"例如:Claude Code / 手动添加",writeLocal:"写入本地 SQLite",preferenceRecall:"召回方式",persistentPreference:"常驻偏好",conditionalPreference:"条件偏好",persistentPreferenceHint:"每次任务开始时固定返回",cancel:"取消",save:"保存记忆",languageCode:"EN",timelineItems:"条",languageName:"中文",languageTitle:"界面语言",languageDescription:"选择工作台使用的语言。",languageZh:"中文",languageEn:"English",languageSaved:"语言已更新",languageSaveFailed:"语言更新失败,请稍后重试。",setupTitle:"选择语言",setupDescription:"选择工作台使用的语言,之后可在设置中修改。",continue:"继续",savedNote:"已保存",savedCount:"已保存",openMenu:"打开菜单",toggleLight:"切换浅色模式",toggleDark:"切换深色模式",storageNote:"记忆仅保存在当前设备。",savedMemories:"已保存",countMemories:"条记忆",recallTimes:"次召回",mcpKicker:"Agent 集成",mcpTitle:"连接你的 Agent",mcpDescription:"Memory One 通过 Streamable HTTP 提供记忆工具。创建一个按工具授权的 Key 后,把带 Authorization Header 的配置加入 MCP 客户端。",mcpOnline:"HTTP 在线",mcpEndpoint:"服务地址",mcpCopyEndpoint:"复制服务地址",transport:"传输方式",auth:"认证",noAuth:"必须使用 Bearer Key",category:"记忆分类",categoryValue:"全局 / 可选 scope",toolsLabel:"可用工具",toolsTitle:"Agent 可以使用的工具",toolsCount:"个工具",http:"HTTP",localMemory:"本地记忆 / 01",serverEndpoint:"服务端点",versionNotice:(e,t)=>`发现新版本 ${e},当前版本 ${t}`,callCount:"次",appearance:"界面显示",appearanceEyebrow:"界面显示",darkMode:"深色模式",darkModeDescription:"在浅色和深色界面之间切换。",storageEyebrow:"本地存储",agentName:"记忆管家",agentDescription:"基于记忆回答你的问题",collapse:"收起",agentPage:"Agent 页面",chat:"对话",configuration:"配置",processing:"正在处理",readingMemory:"正在读取记忆并生成回复",agentPlaceholder:"向记忆管家提问...",send:"发送",requestFormat:"请求格式",chooseRequestFormat:"选择请求格式",model:"模型",chooseOrEnterModel:"选择或输入模型",fetchModels:"获取列表",saving:"保存中",saved:"已保存",saveConfiguration:"保存配置",configSaveFailed:"配置保存失败,请稍后重试。",missingBaseUrl:"请先填写 Base URL。",missingApiKey:"请先完成 Agent 配置。",providerRequestFailed:"模型供应商请求失败,请检查供应商、模型和 Base URL。",agentRequestFailed:"暂时无法连接记忆管家,请稍后再试。",fetchedModels:e=>`已获取 ${e} 个模型`,noModels:"没有可用模型",modelListFailed:"模型列表获取失败,请检查配置。",welcome:"你好,我是记忆管家。可以帮你搜索、保存、修改、删除记忆,也可以总结你的偏好和特点。",suggestionTraits:"总结我的特点",suggestionProjects:"搜索最近的项目约定",suggestionConcise:"记住我喜欢简洁的界面",openAgent:"打开记忆管家",agentTabs:"Agent 页面"},en:{brandSubtitle:"Personal memory",workspace:"Workspace",collections:"Collections",connect:"Connect",navAll:"All memories",navTimeline:"Timeline",navPreferences:"Preferences",navScopes:"Scopes",navTags:"Tags",navMcp:"MCP service",navSettings:"Settings",localStorage:"Local storage",memories:"MEMORIES",scopes:"SCOPES",scopesNote:"Scope count",lastSync:"LAST SYNC",justNow:"Just now",localDatabase:"Local database",localOnly:"Local only",localOnlyDesc:"Your memories stay on this device",newMemory:"New memory",search:"Search memories...",allScopes:"All scopes",reading:"Loading...",countSuffix:" memories",sortRecent:"Sorted by recently updated",sortTimeline:"Sorted by event time",sortGrouped:"Grouped by scope",globalMemory:"Global memories",emptyMatch:"No matching memories",emptyHelp:"Try another search or adjust the filters.",loadFailed:"Could not load memories",retry:"Retry",noTags:"No tags",settingsManaged:"Managed by local settings",detailEyebrow:"Memory details",close:"Close",detailEmpty:"Select a memory",detailEmptyDesc:"View its content and metadata",confidence:"Confidence",created:"Created",updated:"Updated",source:"Source",agentWritten:"Agent",scope:"Scope",signals:"Signals",importance:"Importance",recallCount:"Recalls",times:"times",original:"View original",switchLanguage:"Switch to Chinese",languageCode:"中",timelineItems:"items",languageName:"English",languageTitle:"Interface language",languageDescription:"Choose the language used by the workspace.",languageZh:"中文",languageEn:"English",languageSaved:"Language updated",languageSaveFailed:"Could not update language. Try again.",setupTitle:"Choose a language",setupDescription:"Choose a language for the workspace. You can change it later in Settings.",continue:"Continue",savedNote:"Saved",savedCount:"Saved",openMenu:"Open menu",toggleLight:"Switch to light mode",toggleDark:"Switch to dark mode",storageNote:"Memories stay on this device.",savedMemories:"Saved",countMemories:" memories",recallTimes:" recalls",newMemoryEyebrow:"New memory",composerTitle:"Save a memory",content:"Memory",contentPlaceholder:"For example: The user prefers a concise interface.",type:"Type",scopeOptional:"Optional, for example: /path/to/project",sourcePlaceholder:"For example: Claude Code / Manual",writeLocal:"Save locally",preferenceRecall:"Recall mode",persistentPreference:"Persistent preference",conditionalPreference:"Conditional preference",persistentPreferenceHint:"Always returned at the start of every task",cancel:"Cancel",save:"Save memory",mcpKicker:"Agent integration",mcpTitle:"Connect your agent",mcpDescription:"Expose Memory One through Streamable HTTP. Create a scoped key and add it to your MCP client.",mcpOnline:"HTTP online",mcpEndpoint:"Service address",mcpCopyEndpoint:"Copy service address",transport:"Transport",auth:"Authentication",noAuth:"Bearer Key required",category:"Memory scope",categoryValue:"Global / optional scope",toolsLabel:"Available tools",toolsTitle:"Tools available to agents",toolsCount:"tools",http:"HTTP",localMemory:"LOCAL MEMORY / 01",serverEndpoint:"Service endpoint",versionNotice:(e,t)=>`New version ${e}; current version ${t}`,callCount:"calls",appearance:"Appearance",appearanceEyebrow:"APPEARANCE",darkMode:"Dark mode",darkModeDescription:"Switch between light and dark themes.",storageEyebrow:"STORAGE",agentName:"Memory assistant",agentDescription:"Answer questions using your memories",collapse:"Collapse",agentPage:"Agent page",chat:"Chat",configuration:"Configuration",processing:"Processing",readingMemory:"Reading memories and preparing a reply",agentPlaceholder:"Ask the memory assistant a question...",send:"Send",requestFormat:"Request format",chooseRequestFormat:"Choose a request format",model:"Model",chooseOrEnterModel:"Choose or enter a model",fetchModels:"Fetch models",saving:"Saving",saved:"Saved",saveConfiguration:"Save configuration",configSaveFailed:"Could not save the configuration. Try again.",missingBaseUrl:"Enter a Base URL first.",missingApiKey:"Complete the agent configuration first.",providerRequestFailed:"The model provider request failed. Check the provider, model, and Base URL.",agentRequestFailed:"Could not connect to the memory assistant. Try again.",fetchedModels:e=>`${e} models found`,noModels:"No models available",modelListFailed:"Could not fetch models. Check the configuration.",welcome:"Hi, I’m the memory assistant. I can search, save, update, and delete memories, or summarize your preferences.",suggestionTraits:"Summarize my preferences",suggestionProjects:"Search recent project conventions",suggestionConcise:"Remember that I prefer concise interfaces",openAgent:"Open memory assistant",agentTabs:"Agent page"}},iu=(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 jq(){const e=iR({select:ee=>ee.location.pathname}),t=z0(),n=Mq[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"),[x,v]=C.useState("zh"),[S,A]=C.useState(!1),[k,N]=C.useState(()=>localStorage.getItem("memory-one-theme")==="dark"),[w,D]=C.useState(!1),[F,R]=C.useState(!0),[I,H]=C.useState(!1),[Y,U]=C.useState(null),[Z,X]=C.useState(""),[se,ce]=C.useState(!1),ie=async(ee=c)=>{R(!0),H(!1);try{const me=ee.trim()?`/api/search?query=${encodeURIComponent(ee)}`:"/api/memories?limit=100",ge=await fetch(me);if(!ge.ok)throw new Error("memory_load_failed");s(await ge.json())}catch{H(!0)}finally{R(!1)}},B=ar[x],G=Td[x];C.useEffect(()=>{let ee=!0;return fetch("/api/app-config").then(me=>me.ok?me.json():null).then(me=>{ee&&(me?.language==="zh"||me?.language==="en"?v(me.language):A(!0),ce(!0))}).catch(()=>{ee&&ce(!0)}),()=>{ee=!1}},[]);const oe=async ee=>{if(!(await fetch("/api/app-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({language:ee})})).ok)throw new Error("language_save_failed");v(ee),A(!1)};C.useEffect(()=>{u(null),D(!1),d(""),m(n==="preferences"?"preference":"all"),E("all"),ie("")},[n]),C.useEffect(()=>{document.documentElement.dataset.theme=k?"dark":"light",localStorage.setItem("memory-one-theme",k?"dark":"light")},[k]),C.useEffect(()=>{document.documentElement.lang=x==="zh"?"zh-CN":"en"},[x]),C.useEffect(()=>{let ee=!0;return fetch("/api/version").then(me=>me.ok?me.json():null).then(me=>{!ee||!me?.current||(X(me.current),me.updateAvailable&&me.latest&&U({current:me.current,latest:me.latest}))}).catch(()=>{}),()=>{ee=!1}},[]),C.useEffect(()=>{const ee=me=>{(me.metaKey||me.ctrlKey)&&me.key.toLowerCase()==="k"&&(me.preventDefault(),document.querySelector("#memory-search")?.focus())};return window.addEventListener("keydown",ee),()=>window.removeEventListener("keydown",ee)},[]);const le=C.useMemo(()=>["all","__global__",...new Set(i.map(ee=>ee.project).filter(Boolean))],[i]),L=i.filter(ee=>n==="tags"||n==="settings"||n==="mcp"||n==="preferences"&&ee.kind!=="preference"?!1:(h==="all"||ee.kind===h)&&(p==="all"||(p==="__global__"?!ee.project:ee.project===p))),z={total:i.length,projects:new Set(i.map(ee=>ee.project).filter(Boolean)).size,preferences:i.filter(ee=>ee.kind==="preference").length},Q=R0[x][n],M=ee=>{t({to:UA[ee]})};return y.jsxs("div",{className:`app-shell ${n==="mcp"?"app-shell-wide":""}`,children:[Y&&y.jsxs("div",{className:"version-notice",role:"status",children:[y.jsx(Mx,{size:14}),y.jsx("span",{children:B.versionNotice(Y.latest,Y.current)}),y.jsx("button",{className:"icon-button",onClick:()=>U(null),title:B.close,"aria-label":B.close,children:y.jsx(jo,{size:14})})]}),y.jsxs("aside",{className:`sidebar ${w?"sidebar-open":""}`,children:[y.jsxs("div",{className:"brand",children:[y.jsx("div",{className:"brand-mark",children:y.jsx(qv,{size:17})}),y.jsxs("div",{children:[y.jsx("strong",{children:"Memory One"}),y.jsx("span",{children:B.brandSubtitle})]}),y.jsx("button",{className:"icon-button mobile-close",onClick:()=>D(!1),title:B.close,children:y.jsx(jo,{size:17})})]}),y.jsxs(Op,{title:B.workspace,children:[y.jsx(Da,{icon:y.jsx(cR,{size:17}),label:B.navAll,count:z.total,active:n==="all",onClick:()=>M("all")}),y.jsx(Da,{icon:y.jsx(Vv,{size:17}),label:B.navTimeline,active:n==="timeline",onClick:()=>M("timeline")})]}),y.jsxs(Op,{title:B.collections,children:[y.jsx(Da,{icon:y.jsx(Mx,{size:17}),label:B.navPreferences,count:z.preferences,active:n==="preferences",onClick:()=>M("preferences")}),y.jsx(Da,{icon:y.jsx(Yv,{size:17}),label:B.navScopes,count:z.projects,active:n==="projects",onClick:()=>M("projects")}),y.jsx(Da,{icon:y.jsx(Xv,{size:17}),label:B.navTags,active:n==="tags",onClick:()=>M("tags")})]}),y.jsx(Op,{title:B.connect,children:y.jsx(Da,{icon:y.jsx(ff,{size:17}),label:B.navMcp,active:n==="mcp",onClick:()=>M("mcp")})}),y.jsxs("div",{className:"sidebar-footer",children:[y.jsxs("div",{className:"storage-status",children:[y.jsx("span",{className:"status-dot"}),B.localStorage,y.jsx("span",{className:"mono",children:"SQLite"})]}),y.jsx(Da,{icon:y.jsx(Gv,{size:17}),label:B.navSettings,count:Z?`v${Z}`:void 0,active:n==="settings",onClick:()=>M("settings")})]})]}),w&&y.jsx("button",{className:"sidebar-backdrop",onClick:()=>D(!1),"aria-label":B.close}),y.jsxs("main",{className:"main-content",children:[y.jsxs("header",{className:"topbar",children:[y.jsx("button",{className:"icon-button menu-button",onClick:()=>D(!0),title:B.openMenu,"aria-label":B.openMenu,children:y.jsx(gR,{size:19})}),y.jsxs("div",{className:"breadcrumbs",children:[y.jsx("span",{children:B.workspace}),y.jsx(kf,{size:14}),y.jsx("strong",{children:Q.title})]}),y.jsxs("div",{className:"top-actions",children:[y.jsx("button",{className:"icon-button",onClick:()=>N(ee=>!ee),title:k?B.toggleLight:B.toggleDark,"aria-label":k?B.toggleLight:B.toggleDark,children:k?y.jsx(Kv,{size:17}):y.jsx($v,{size:17})}),y.jsx("div",{className:"avatar",children:"C"})]})]}),y.jsx("div",{className:"content-wrap",children:n==="mcp"?y.jsx(qq,{language:x}):n==="settings"?y.jsx(Gq,{language:x,onLanguageChange:ee=>oe(ee),dark:k,onToggleTheme:()=>N(ee=>!ee)}):y.jsxs(y.Fragment,{children:[y.jsx("section",{className:"page-heading",children:y.jsxs("div",{children:[y.jsxs("div",{className:"heading-kicker",children:[y.jsx("span",{className:"live-dot"}),B.localMemory]}),y.jsx("h1",{children:Q.title}),y.jsx("p",{children:Q.description})]})}),n!=="timeline"&&y.jsxs("section",{className:"stat-grid",children:[y.jsx(za,{label:B.memories,value:z.total.toString().padStart(2,"0"),note:B.savedCount}),y.jsx(za,{label:B.scopes,value:z.projects.toString().padStart(2,"0"),note:B.scopesNote}),y.jsx(za,{label:B.lastSync,value:B.justNow,note:B.localDatabase,date:!0}),y.jsxs("div",{className:"stat-card stat-callout",children:[y.jsx(F0,{size:19}),y.jsxs("div",{children:[y.jsx("strong",{children:B.localOnly}),y.jsx("span",{children:B.localOnlyDesc})]})]})]}),y.jsxs("section",{className:"toolbar",children:[y.jsxs("div",{className:"search-box",children:[y.jsx(ER,{size:17}),y.jsx("input",{id:"memory-search",value:c,onChange:ee=>d(ee.target.value),onKeyDown:ee=>{ee.key==="Enter"&&ie()},placeholder:B.search}),y.jsxs("kbd",{children:[y.jsx(hR,{size:11}),"K"]})]}),y.jsxs("div",{className:"toolbar-actions",children:[y.jsxs("div",{className:"select-wrap",children:[y.jsx(pR,{size:15}),y.jsx(Lf,{value:h,onValueChange:m,options:Iq.map(ee=>({value:ee,label:G[ee]})),ariaLabel:B.type})]}),y.jsx("div",{className:"select-wrap project-select",children:y.jsx(Lf,{value:p,onValueChange:E,options:le.map(ee=>({value:ee,label:ee==="all"?B.allScopes:ee==="__global__"?B.globalMemory:ee})),ariaLabel:B.scope})})]})]}),y.jsxs("div",{className:"list-header",children:[y.jsx("span",{children:F?B.reading:`${L.length}${B.countSuffix}`}),y.jsx("span",{className:"mono",children:n==="timeline"?B.sortTimeline:B.sortRecent})]}),y.jsxs("section",{className:n==="timeline"?"timeline-list":"memory-list",children:[I&&!F&&y.jsxs("div",{className:"empty-state",children:[y.jsx(Ix,{size:28}),y.jsx("strong",{children:B.loadFailed}),y.jsx("button",{className:"ghost-button",onClick:()=>{ie()},children:B.retry})]}),!I&&!F&&L.length===0&&y.jsxs("div",{className:"empty-state",children:[y.jsx(Ix,{size:28}),y.jsx("strong",{children:n==="tags"?B.noTags:B.emptyMatch}),y.jsx("span",{children:n==="tags"?Q.description:B.emptyHelp})]}),!I&&n==="timeline"&&y.jsx(zq,{items:L,selectedId:l?.id,onSelect:u,language:x}),!I&&n!=="timeline"&&L.map(ee=>y.jsx(Vq,{item:ee,selected:l?.id===ee.id,onClick:()=>u(ee),language:x},ee.id))]})]})}),y.jsx(Xq,{language:x,onMemoryChanged:()=>{ie()}})]}),n!=="mcp"&&y.jsxs("aside",{className:`detail-panel ${l?"detail-open":""}`,children:[y.jsxs("div",{className:"detail-header",children:[y.jsx("span",{className:"eyebrow",children:B.detailEyebrow}),l&&y.jsx("button",{className:"icon-button",onClick:()=>u(null),title:B.close,children:y.jsx(jo,{size:17})})]}),l?y.jsx(Yq,{item:l,language:x}):y.jsxs("div",{className:"detail-empty",children:[y.jsx("div",{className:"detail-icon",children:y.jsx(oR,{size:20})}),y.jsx("strong",{children:B.detailEmpty}),y.jsx("span",{children:B.detailEmptyDesc})]})]}),y.jsx(Uv,{}),se&&S?y.jsx($q,{language:x,onSelect:ee=>oe(ee)}):null]})}function Op({title:e,children:t}){return y.jsxs("div",{className:"sidebar-section",children:[y.jsx("span",{className:"eyebrow",children:e}),t]})}function Da({icon:e,label:t,count:n,active:i,onClick:s}){return y.jsxs("button",{className:`nav-item ${i?"active":""}`,onClick:s,"aria-current":i?"page":void 0,children:[e,y.jsx("span",{children:t}),n!==void 0&&y.jsx("b",{children:n})]})}const Zs=[["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 Hq(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 Uq(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 zq({items:e,selectedId:t,onSelect:n,language:i}){const s=ar[i],l=C.useMemo(()=>{const u=[...e].sort((d,h)=>{const m=new Date(d.occurred_at??d.created_at).getTime();return new Date(h.occurred_at??h.created_at).getTime()-m}),c=new Map;for(const d of u){const h=d.occurred_at??d.created_at,m=h?new Date(h):null,p=m&&!Number.isNaN(m.getTime())?m.toISOString().slice(0,10):"undated";c.set(p,[...c.get(p)??[],d])}return[...c.entries()]},[e]);return y.jsx("div",{className:"timeline-stream",children:l.map(([u,c])=>y.jsxs("section",{className:"timeline-day",children:[y.jsxs("header",{className:"timeline-day-heading",children:[y.jsx("time",{children:Hq(u==="undated"?null:u,i)}),y.jsxs("span",{className:"mono",children:[c.length.toString().padStart(2,"0")," ",s.timelineItems]})]}),y.jsx("div",{className:"timeline-day-items",children:c.map(d=>{const h=d.occurred_at??d.created_at;return y.jsxs("button",{className:`timeline-event ${t===d.id?"selected":""}`,onClick:()=>n(d),children:[y.jsx("span",{className:"timeline-event-rail","aria-hidden":"true",children:y.jsx("span",{className:"timeline-dot"})}),y.jsxs("span",{className:"timeline-event-body",children:[y.jsxs("span",{className:"timeline-event-meta",children:[y.jsx("span",{className:`kind-badge kind-${d.kind}`,children:Td[i][d.kind]??d.kind}),y.jsx("time",{children:Uq(h,i)})]}),y.jsx("strong",{children:d.content}),y.jsx("span",{className:"timeline-event-context",children:y.jsxs("span",{title:`${d.project??d.scope} · ${d.source??ar[i].agentWritten}`,children:[d.project??d.scope," · ",d.source??ar[i].agentWritten]})})]})]},d.id)})})]},u))})}const Fq={zh:{copied:"已复制到剪贴板",copyFailed:"复制失败,请手动复制",codexWritten:"Codex MCP 配置已写入。重新启动 Codex 或开启新会话后生效。",codexWriteFailed:"配置失败,请检查 Codex 配置目录。",codexGuidanceWritten:"全局指令已写入。重新启动 Codex 或开启新会话后生效。",writeFailed:"写入失败,请检查 Codex 配置目录的访问权限。",keyCreateFailed:"Key 创建失败,请稍后重试。",keyDeleteConfirm:e=>`确定删除 Key“${e}”吗?删除后将立即失效,且无法恢复。`,keyDelete:"删除",keyCreated:"Key 已创建,可随时在下方再次复制",copyConfig:"复制配置",copiedConfig:"配置已复制",copyAuthConfig:"复制带 Authorization Header 的配置",keyName:"Key 名称",unnamedKey:"未命名 Key",access:"访问控制",keyManage:"MCP Key 管理",keyNote:"为每个客户端创建独立 Key,并按最小权限限制可调用的工具。",createKey:"创建 Key",keyEmpty:"暂无 Key",allowTools:"允许调用的工具",keyPlaceholder:"例如:平台 Agent",allTools:"可调用全部工具",toolCount:(e,t)=>`可用工具 ${e}/${t}`,recent:e=>`最近使用 ${e}`,never:"尚未使用",rename:"修改名称",connectionTab:"连接配置",usageTab:"调用统计",mcpPage:"MCP 页面",streamable:"Streamable HTTP",bearer:"Bearer Key",codexConnection:"MCP 连接",chooseKey:"选择用于连接的 Key。",autoConnection:"将自动保存连接配置。",readingAuth:"正在读取认证状态。",createFirst:"请先创建 MCP Key",configured:"已配置",configure:"配置",update:"更新",taskMemory:"任务前置记忆",taskMemoryDesc:"让 Codex 在每项任务开始前读取相关经验。",enabled:"已启用",needUpdate:"需要更新",notConfigured:"未配置",detecting:"检查中",reading:"读取中",usage:"调用统计",usageTitle:"工具使用情况",total:"累计调用",failed:e=>`${e} 次失败`,latency:"平均处理耗时",lastCall:"最近一次调用",none:"暂无",delete:"删除",callCount:"次",accessEyebrow:"访问控制",createMcpKey:"创建 MCP Key",close:"关闭"},en:{copied:"Copied",copyFailed:"Copy failed. Copy it manually.",codexWritten:"Codex MCP configuration saved. Restart Codex or start a new session to apply it.",codexWriteFailed:"Could not save the configuration. Check the Codex configuration directory.",codexGuidanceWritten:"Global guidance saved. Restart Codex or start a new session to apply it.",writeFailed:"Could not save global guidance. Check the Codex configuration directory.",keyCreateFailed:"Could not create the key. Try again.",keyDeleteConfirm:e=>`Delete key “${e}”? It will stop working immediately.`,keyDelete:"Delete",keyCreated:"Key created. You can copy it below.",copyConfig:"Copy configuration",copiedConfig:"Configuration copied",copyAuthConfig:"Copy configuration with Authorization Header",keyName:"Key name",unnamedKey:"Unnamed key",access:"Access",keyManage:"MCP keys",keyNote:"Create one key per client and limit the tools it can call.",createKey:"Create key",keyEmpty:"No keys yet.",allowTools:"Allowed tools",keyPlaceholder:"For example: Workspace agent",allTools:"All tools",toolCount:(e,t)=>`${e}/${t} tools`,recent:e=>`Last used ${e}`,never:"Not used",rename:"Rename",connectionTab:"Connection",usageTab:"Usage",mcpPage:"MCP page",streamable:"Streamable HTTP",bearer:"Bearer Key",codexConnection:"MCP connection",chooseKey:"Choose a key for the connection.",autoConnection:"The connection will be saved automatically.",readingAuth:"Checking authentication status.",createFirst:"Create an MCP key first",configured:"Configured",configure:"Configure",update:"Update",taskMemory:"Task memory",taskMemoryDesc:"Have Codex read relevant experience before each task.",enabled:"Enabled",needUpdate:"Needs update",notConfigured:"Not configured",detecting:"Checking",reading:"Loading",usage:"Usage",usageTitle:"Tool usage",total:"Total calls",failed:e=>`${e} failed`,latency:"Average latency",lastCall:"Last call",none:"None",delete:"Delete",callCount:"calls",accessEyebrow:"Access",createMcpKey:"Create MCP key",close:"Close"}};function qq({language:e}){const t=ar[e],n=Fq[e],[i,s]=C.useState(null),[l,u]=C.useState(null),[c,d]=C.useState(null),[h,m]=C.useState(null),[p,E]=C.useState(!1),[x,v]=C.useState(""),[S,A]=C.useState(null),[k,N]=C.useState(""),[w,D]=C.useState(!1),[F,R]=C.useState(""),[I,H]=C.useState([]),[Y,U]=C.useState(""),[Z,X]=C.useState(Zs.map(([W])=>W)),[se,ce]=C.useState(null),[ie,B]=C.useState(!1),[G,oe]=C.useState(""),[le,L]=C.useState(!1),[z,Q]=C.useState(null),[M,ee]=C.useState(null),[me,ge]=C.useState(""),[Se,Te]=C.useState("connection"),xe=typeof window<"u"&&window.location.hostname?window.location.hostname:"127.0.0.1",Oe=typeof window<"u"?window.location.port:"",Le=`http://${xe}:${Oe==="5173"||!Oe?"8765":Oe}/mcp/`,ze=new Map(c?.tools.map(W=>[W.tool_name,W.calls])??[]),$e=c?.total_calls?Math.round(c.successful_calls/c.total_calls*100):0;C.useEffect(()=>{fetch("/api/mcp/config").then(W=>W.json()).then(W=>Q(W.use_bearer_key!==!1)),fetch("/api/mcp/stats").then(W=>W.json()).then(d),fetch("/api/integrations/codex").then(W=>W.json()).then(m),fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Le)}`).then(W=>W.json()).then(A),fetch("/api/mcp/keys").then(W=>W.json()).then(H)},[]),C.useEffect(()=>{const W=I.filter(ve=>ve.secret);S?.configured_key_id?N(S.configured_key_id):W.some(ve=>ve.id===k)||N(W[0]?.id??"")},[S,k,I]);const ot=async W=>{Q(W),await fetch("/api/mcp/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({use_bearer_key:W})});const ve=await fetch(`/api/integrations/codex/mcp?endpoint=${encodeURIComponent(Le)}`);A(await ve.json())},Qe=async(W,ve)=>{try{if(!navigator.clipboard)throw new Error("clipboard_unavailable");await navigator.clipboard.writeText(W),s(ve),u(n.copied),window.setTimeout(()=>s(null),1500),window.setTimeout(()=>u(null),2200)}catch{u(n.copyFailed),window.setTimeout(()=>u(null),2600)}},Ct=async()=>{E(!0),v("");try{const W=await fetch("/api/integrations/codex/install",{method:"POST"});if(!W.ok)throw new Error("install_failed");m(await W.json()),v(n.codexGuidanceWritten)}catch{v(n.writeFailed)}finally{E(!1)}},xt=async()=>{D(!0),R("");try{const W=await fetch("/api/integrations/codex/mcp/install",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({endpoint:Le,...z===!0?{key_id:k}:{}})});if(!W.ok)throw new Error("install_failed");A(await W.json()),R(n.codexWritten)}catch{R(n.codexWriteFailed)}finally{D(!1)}},Yt=async()=>{B(!0),oe("");try{const W=await fetch("/api/mcp/keys",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:Y.trim()||n.unnamedKey,allowed_tools:Z})});if(!W.ok)throw new Error("create_key_failed");const ve=await W.json();H(Me=>[ve.key_record,...Me]),ce(ve.key),U("")}catch{oe(n.keyCreateFailed)}finally{B(!1)}},Ne=async W=>{const ve=I.find(qe=>qe.id===W);!ve||!window.confirm(n.keyDeleteConfirm(ve.name))||!(await fetch(`/api/mcp/keys/${W}`,{method:"DELETE"})).ok||H(qe=>qe.filter($t=>$t.id!==W))},He=async W=>{const ve=await fetch(`/api/mcp/keys/${W}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:me})});if(!ve.ok)return;const Me=await ve.json();H(qe=>qe.map($t=>$t.id===W?Me:$t)),ee(null)},wt=se?JSON.stringify({mcpServers:{"memory-one":{type:"http",url:Le,...z===!0?{headers:{Authorization:`Bearer ${se}`}}:{}}}},null,2):"",et=h?.status==="configured"?n.configured:h?.status==="update_available"?n.needUpdate:n.notConfigured,tt=h?.status==="update_available"?n.update:n.enabled,ln=S?.status==="configured"&&(z!==!0||S.configured_key_id===k),fe=S?.status==="configured"?n.configured:S?.status==="update_available"?n.needUpdate:n.notConfigured;return y.jsxs("div",{className:`mcp-page ${z===null?"mcp-loading":""}`,children:[l?y.jsxs("div",{className:`copy-feedback ${l===n.copyFailed?"error":""}`,role:"status",children:[l===n.copyFailed?y.jsx(dR,{size:14}):y.jsx(ja,{size:14}),l]}):null,y.jsx("div",{className:"mcp-navigation",children:y.jsxs("nav",{className:"mcp-tabs",role:"tablist","aria-label":n.mcpPage,children:[y.jsxs("button",{className:Se==="connection"?"active":"",role:"tab","aria-selected":Se==="connection",onClick:()=>Te("connection"),children:[y.jsx(ff,{size:15}),n.connectionTab]}),y.jsxs("button",{className:Se==="usage"?"active":"",role:"tab","aria-selected":Se==="usage",onClick:()=>Te("usage"),children:[y.jsx(Dx,{size:15}),n.usageTab]})]})}),Se==="connection"&&y.jsxs("div",{className:"mcp-grid",role:"tabpanel",children:[y.jsxs("section",{className:"mcp-panel mcp-endpoint",children:[y.jsxs("div",{className:"mcp-panel-header",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:t.serverEndpoint}),y.jsx("h2",{children:t.mcpEndpoint})]}),y.jsx("button",{className:"icon-button",onClick:()=>Qe(Le,"endpoint"),title:t.mcpCopyEndpoint,children:i==="endpoint"?y.jsx(ja,{size:16}):y.jsx(Qm,{size:16})})]}),y.jsx("div",{className:"endpoint-value",children:Le}),y.jsxs("div",{className:"endpoint-compact-meta",children:[y.jsxs("span",{children:[y.jsx("i",{className:"status-dot"}),n.streamable]}),y.jsxs("label",{className:"switch-label",children:[y.jsx("span",{children:n.bearer}),y.jsx("input",{type:"checkbox",checked:z===!0,disabled:z===null,onChange:W=>ot(W.target.checked)}),y.jsx("i",{})]})]})]}),y.jsxs("section",{className:"mcp-panel codex-mcp-panel",children:[y.jsx("span",{className:"eyebrow codex-compact-heading",children:"Codex"}),y.jsxs("div",{className:"codex-compact-list",children:[y.jsxs("section",{className:"codex-compact-row",children:[y.jsxs("div",{className:"codex-compact-copy",children:[y.jsxs("div",{className:"codex-compact-title",children:[y.jsx("strong",{children:n.codexConnection}),y.jsx("span",{className:`integration-status status-${S?.status??"loading"}`,children:S?fe:n.detecting})]}),y.jsx("p",{children:z===!0?n.chooseKey:z===!1?n.autoConnection:n.readingAuth}),F?y.jsx("div",{className:"integration-message",role:"status",children:F}):null]}),y.jsxs("div",{className:"codex-compact-actions",children:[z===!0?y.jsxs("select",{"aria-label":n.bearer,value:k,onChange:W=>N(W.target.value),disabled:!I.some(W=>W.secret),children:[I.filter(W=>W.secret).map(W=>y.jsxs("option",{value:W.id,children:[W.name," · ",W.prefix,"••••"]},W.id)),I.some(W=>W.secret)?null:y.jsx("option",{value:"",children:n.createFirst})]}):null,y.jsxs("button",{className:"primary-button",disabled:z===null||!S||z===!0&&!k||w||ln,onClick:()=>{xt()},children:[w?y.jsx(ll,{className:"spin",size:16}):y.jsx(ff,{size:16}),ln?n.configured:S?.status==="not_configured"?n.configure:n.update]})]})]}),y.jsxs("section",{className:"codex-compact-row",children:[y.jsxs("div",{className:"codex-compact-copy",children:[y.jsxs("div",{className:"codex-compact-title",children:[y.jsx("strong",{children:n.taskMemory}),y.jsx("span",{className:`integration-status status-${h?.status??"loading"}`,children:h?et:n.reading})]}),y.jsx("p",{children:n.taskMemoryDesc}),x?y.jsx("div",{className:"integration-message",role:"status",children:x}):null]}),y.jsxs("button",{className:"primary-button",disabled:!h||p||h.status==="configured",onClick:Ct,children:[p?y.jsx(ll,{className:"spin",size:16}):y.jsx(mR,{size:16}),h?.status==="configured"?n.enabled:tt]})]})]})]}),z===!0&&y.jsxs("section",{className:"mcp-keys",role:"region","aria-label":n.keyManage,children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.access}),y.jsx("h2",{children:n.keyManage})]}),y.jsx(Uc,{size:18})]}),y.jsx("p",{className:"mcp-key-note",children:n.keyNote}),y.jsx("div",{className:"mcp-key-create",children:y.jsxs("button",{className:"primary-button",onClick:()=>L(!0),children:[y.jsx(Uc,{size:15}),n.createKey]})}),se?y.jsxs("div",{className:"mcp-key-secret",children:[y.jsx("strong",{children:n.keyCreated}),y.jsx("code",{children:se}),y.jsxs("div",{children:[y.jsx("button",{className:"icon-button",onClick:()=>Qe(wt,"key-config"),title:n.copyConfig,children:i==="key-config"?y.jsx(ja,{size:16}):y.jsx(Qm,{size:16})}),y.jsx("span",{children:i==="key-config"?n.copiedConfig:n.copyAuthConfig})]})]}):null,y.jsx("div",{className:"mcp-key-list",children:I.length?I.map(W=>y.jsxs("div",{className:"mcp-key-row",children:[y.jsx(Uc,{size:15}),y.jsxs("div",{children:[M===W.id?y.jsx("input",{className:"mcp-key-name-input",autoFocus:!0,value:me,onChange:ve=>ge(ve.target.value),onKeyDown:ve=>{ve.key==="Enter"&&He(W.id),ve.key==="Escape"&&ee(null)},onBlur:()=>{He(W.id)}}):y.jsx("strong",{children:W.name}),y.jsxs("code",{children:[W.prefix,"••••••••"]}),y.jsxs("span",{children:[W.allowed_tools.length?n.toolCount(W.allowed_tools.length,Zs.length):n.allTools,W.last_used_at?` · ${n.recent(iu(W.last_used_at,e))}`:` · ${n.never}`]}),y.jsx("div",{className:"tool-chip-list key-tool-list",children:(W.allowed_tools.length?W.allowed_tools:Zs.map(([ve])=>ve)).map(ve=>y.jsx("span",{className:"tool-chip",children:ve},ve))})]}),y.jsxs("div",{className:"mcp-key-actions",children:[W.secret?y.jsx("button",{className:"icon-button",onClick:()=>Qe(W.secret,`key-${W.id}`),title:n.copyConfig,children:i===`key-${W.id}`?y.jsx(ja,{size:14}):y.jsx(Qm,{size:14})}):null,y.jsx("button",{className:"icon-button",onClick:()=>{ee(W.id),ge(W.name)},title:n.rename,children:y.jsx(yR,{size:14})}),y.jsx("button",{className:"ghost-button",onClick:()=>{Ne(W.id)},children:n.delete})]})]},W.id)):y.jsx("p",{className:"mcp-key-empty",children:n.keyEmpty})})]})]}),le&&y.jsx("div",{className:"modal-backdrop",role:"presentation",onMouseDown:W=>{W.target===W.currentTarget&&L(!1)},children:y.jsxs("section",{className:"key-create-modal",role:"dialog","aria-modal":"true","aria-label":n.createKey,children:[y.jsxs("div",{className:"composer-header",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.accessEyebrow}),y.jsx("h2",{children:n.createMcpKey})]}),y.jsx("button",{className:"icon-button",onClick:()=>L(!1),title:n.close,"aria-label":n.close,children:y.jsx(jo,{size:18})})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:n.keyName}),y.jsx("input",{autoFocus:!0,value:Y,onChange:W=>U(W.target.value),placeholder:n.keyPlaceholder})]}),y.jsxs("div",{className:"mcp-key-tools",children:[y.jsx("span",{className:"key-tools-label",children:n.allowTools}),y.jsx("div",{className:"key-tools-grid",children:Zs.map(([W])=>y.jsxs("label",{children:[y.jsx("input",{type:"checkbox",checked:Z.includes(W),onChange:ve=>X(Me=>ve.target.checked?[...Me,W]:Me.filter(qe=>qe!==W))}),W]},W))})]}),y.jsxs("div",{className:"modal-actions",children:[y.jsx("button",{className:"ghost-button",onClick:()=>L(!1),children:t.cancel}),y.jsxs("button",{className:"primary-button",onClick:()=>{Yt(),L(!1)},disabled:ie||Z.length===0,children:[ie?y.jsx(ll,{className:"spin",size:15}):y.jsx(Uc,{size:15}),n.createKey]})]}),G?y.jsx("p",{className:"integration-message",role:"alert",children:G}):null]})}),Se==="usage"&&y.jsxs(y.Fragment,{children:[y.jsxs("section",{className:"mcp-usage",role:"tabpanel",children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:n.usage}),y.jsx("h2",{children:n.usageTitle})]}),y.jsx(Dx,{size:18})]}),y.jsxs("div",{className:"mcp-metrics",children:[y.jsx(za,{label:"TOTAL CALLS",value:c?String(c.total_calls):"--",note:n.total}),y.jsx(za,{label:"SUCCESS RATE",value:c?.total_calls?`${$e}%`:"--",note:c?n.failed(c.failed_calls):n.reading}),y.jsx(za,{label:"AVG LATENCY",value:c?.total_calls?`${c.average_duration_ms} ms`:"--",note:n.latency}),y.jsx(za,{label:"LAST CALL",value:c?.last_called_at?iu(c.last_called_at,e):n.none,note:n.lastCall,date:!0})]})]}),y.jsxs("section",{className:"mcp-tools",children:[y.jsxs("div",{className:"mcp-tools-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:t.toolsLabel}),y.jsx("h2",{children:t.toolsTitle})]}),y.jsxs("span",{className:"tool-count",children:[Zs.length," ",t.toolsCount]})]}),y.jsx("div",{className:"tool-list",children:Zs.map(([W,ve,Me])=>y.jsxs("article",{className:"tool-row",children:[y.jsx("div",{className:"tool-icon",children:y.jsx(ff,{size:15})}),y.jsxs("div",{children:[y.jsx("strong",{children:W}),y.jsx("span",{children:e==="zh"?Me:ve})]}),y.jsxs("div",{className:"tool-meta",children:[y.jsxs("code",{children:[ze.get(W)??0," ",n.callCount]}),y.jsx("code",{children:t.http})]})]},W))})]})]})]})}function za({label:e,value:t,note:n,date:i}){return y.jsxs("div",{className:"stat-card",children:[y.jsx("span",{className:"stat-label",children:e}),y.jsx("strong",{className:i?"stat-date":"",children:t}),y.jsx("span",{className:"stat-note",children:n})]})}function Vq({item:e,selected:t,onClick:n,language:i}){const s=ar[i],l=Td[i],u=Math.round(e.confidence*100);return y.jsxs("button",{className:`memory-card ${t?"selected":""}`,onClick:n,children:[y.jsxs("div",{className:"card-top",children:[y.jsx("span",{className:`kind-badge kind-${e.kind}`,children:l[e.kind]??e.kind}),y.jsx("span",{className:"card-date",children:iu(e.occurred_at??e.created_at,i)})]}),y.jsx("p",{children:e.content}),y.jsxs("div",{className:"card-bottom",children:[y.jsx("span",{children:e.project?y.jsxs(y.Fragment,{children:[y.jsx(Yv,{size:13}),e.project]}):y.jsxs(y.Fragment,{children:[y.jsx(Xv,{size:13}),e.scope]})}),y.jsxs("span",{className:"recall-count",children:[e.recall_count??0,s.recallTimes]}),y.jsxs("span",{className:"confidence",children:[y.jsx("span",{className:"confidence-meter",children:y.jsx("i",{style:{width:`${u}%`}})}),y.jsx("span",{children:s.confidence}),y.jsxs("span",{children:[u,"%"]})]})]})]})}function Yq({item:e,language:t}){const n=ar[t],i=Td[t];return y.jsxs("div",{className:"detail-body",children:[y.jsx("div",{className:`detail-kind kind-badge kind-${e.kind}`,children:i[e.kind]??e.kind}),e.kind==="preference"&&e.metadata.always_include===!0&&y.jsx("div",{className:"detail-kind kind-badge",children:n.persistentPreference}),y.jsx("h2",{children:e.content}),y.jsxs("div",{className:"detail-meta",children:[y.jsxs("div",{children:[y.jsx("span",{children:n.created}),y.jsx("strong",{children:iu(e.created_at,t)})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.updated}),y.jsx("strong",{children:iu(e.updated_at,t)})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.source}),y.jsx("strong",{children:e.source??n.agentWritten})]}),y.jsxs("div",{children:[y.jsx("span",{children:n.recallCount}),y.jsxs("strong",{children:[e.recall_count??0," ",n.times]})]})]}),y.jsxs("div",{className:"detail-section",children:[y.jsx("span",{className:"eyebrow",children:n.scope}),y.jsxs("div",{className:"scope-value",title:e.project?`${e.scope} / ${e.project}`:e.scope,children:[y.jsx(F0,{size:15}),y.jsx("span",{className:"scope-value-text",children:e.project?`${e.scope} / ${e.project}`:e.scope})]})]}),y.jsxs("div",{className:"detail-section",children:[y.jsx("span",{className:"eyebrow",children:n.signals}),y.jsx(rv,{label:n.importance,value:e.importance,language:t}),y.jsx(rv,{label:n.confidence,value:e.confidence,language:t})]})]})}function rv({label:e,value:t,language:n}){return y.jsxs("div",{className:"signal-row",children:[y.jsx("span",{children:e}),y.jsx("div",{className:"signal-track",children:y.jsx("span",{style:{width:`${Math.round(t*100)}%`}})}),y.jsxs("b",{children:[Math.round(t*100),"%"]})]})}function $q({language:e,onSelect:t}){const n=ar[e],[i,s]=C.useState(e),[l,u]=C.useState(!1),[c,d]=C.useState(""),h=async()=>{u(!0),d("");try{await Promise.resolve(t(i))}catch{d(n.languageSaveFailed)}finally{u(!1)}};return y.jsx("div",{className:"modal-backdrop language-setup-backdrop",children:y.jsxs("section",{className:"language-setup",role:"dialog","aria-modal":"true","aria-labelledby":"language-setup-title",children:[y.jsx("span",{className:"eyebrow",children:"Memory One"}),y.jsx("h2",{id:"language-setup-title",children:n.setupTitle}),y.jsx("p",{children:n.setupDescription}),y.jsxs("div",{className:"language-options",children:[y.jsxs("button",{className:i==="zh"?"selected":"",onClick:()=>s("zh"),children:[y.jsx("strong",{children:"中文"}),y.jsx("span",{children:"简体中文"})]}),y.jsxs("button",{className:i==="en"?"selected":"",onClick:()=>s("en"),children:[y.jsx("strong",{children:"English"}),y.jsx("span",{children:"English"})]})]}),c?y.jsx("p",{className:"settings-message",role:"alert",children:c}):null,y.jsxs("button",{className:"primary-button language-continue",onClick:()=>{h()},disabled:l,children:[l?y.jsx(ll,{className:"spin",size:15}):y.jsx(ja,{size:15}),n.continue]})]})})}function Gq({language:e,onLanguageChange:t,dark:n,onToggleTheme:i}){const s=ar[e],[l,u]=C.useState(!1),[c,d]=C.useState(""),h=async m=>{if(m!==e){u(!0),d("");try{await Promise.resolve(t(m)),d(ar[m].languageSaved)}catch{d(s.languageSaveFailed)}finally{u(!1)}}};return y.jsxs("div",{className:"settings-page",children:[y.jsx("section",{className:"page-heading",children:y.jsxs("div",{children:[y.jsxs("div",{className:"heading-kicker",children:[y.jsx("span",{className:"live-dot"}),s.localMemory]}),y.jsx("h1",{children:R0[e].settings.title}),y.jsx("p",{children:R0[e].settings.description})]})}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.languageTitle}),y.jsx("h2",{children:s.languageTitle})]}),y.jsx("span",{className:"language-current",children:e==="zh"?"中文":"English"})]}),y.jsxs("div",{className:"settings-row language-settings-row",children:[y.jsxs("span",{children:[y.jsx("strong",{children:s.languageTitle}),y.jsx("small",{children:s.languageDescription})]}),y.jsxs("div",{className:"language-switch",role:"group","aria-label":s.languageTitle,children:[y.jsx("button",{className:e==="zh"?"selected":"",onClick:()=>{h("zh")},disabled:l,children:"中文"}),y.jsx("button",{className:e==="en"?"selected":"",onClick:()=>{h("en")},disabled:l,children:"English"})]})]}),c?y.jsx("p",{className:"settings-message",role:"status",children:c}):null]}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.appearanceEyebrow}),y.jsx("h2",{children:s.appearance})]}),n?y.jsx($v,{size:19}):y.jsx(Kv,{size:19})]}),y.jsxs("div",{className:"settings-row",children:[y.jsxs("span",{children:[y.jsx("strong",{children:s.darkMode}),y.jsx("small",{children:s.darkModeDescription})]}),y.jsx("button",{className:"ghost-button",onClick:i,children:n?s.toggleLight:s.toggleDark})]})]}),y.jsxs("section",{className:"config-panel settings-panel",children:[y.jsxs("div",{className:"config-panel-heading",children:[y.jsxs("div",{children:[y.jsx("span",{className:"eyebrow",children:s.storageEyebrow}),y.jsx("h2",{children:s.localDatabase})]}),y.jsx(F0,{size:19})]}),y.jsxs("div",{className:"settings-storage",children:[y.jsx("span",{className:"status-dot"}),y.jsx("strong",{children:"SQLite"}),y.jsx("span",{children:s.storageNote})]})]})]})}const Yi={name:"记忆管家",scope:"",provider:"",model:"",baseUrl:"",apiKey:"",autoContext:!0},zA=e=>({name:e.name??Yi.name,scope:e.scope??Yi.scope,provider:e.provider??Yi.provider,model:e.model??Yi.model,baseUrl:e.baseUrl??e.base_url??Yi.baseUrl,apiKey:e.apiKey??e.api_key??Yi.apiKey,autoContext:e.autoContext??e.auto_context??Yi.autoContext}),iv=e=>!!(e.baseUrl.trim()&&e.provider.trim()&&e.model.trim()&&(e.provider==="local"||e.apiKey.trim()));function Kq({initial:e,onSaved:t,language:n}){const i=ar[n],[s,l]=C.useState(e.baseUrl),[u,c]=C.useState(e.apiKey),[d,h]=C.useState(e.model),[m,p]=C.useState(e.provider),[E,x]=C.useState(!1),[v,S]=C.useState([]),[A,k]=C.useState(!1),[N,w]=C.useState(""),D=async()=>{x(!0),w("");try{const R=await fetch("/api/agent/config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({name:e.name,scope:e.scope,provider:m,model:d.trim(),base_url:s.trim(),api_key:u.trim(),auto_context:e.autoContext})}),I=await R.json();if(!R.ok)throw new Error(I.detail||"agent_config_save_failed");const H=zA(I);await t(H)}catch{w(i.configSaveFailed)}finally{x(!1)}},F=async()=>{k(!0),w("");try{const R=await fetch("/api/agent/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({provider:m,base_url:s||null,api_key:u||null})}),I=await R.json();if(!R.ok)throw new Error(I.detail||"model_list_failed");const H=Array.isArray(I.models)?I.models:[];S(H),h(Y=>Y.trim()||H[0]||Y),w(H.length?i.fetchedModels(H.length):i.noModels)}catch{S([]),w(i.modelListFailed)}finally{k(!1)}};return C.useEffect(()=>{if(!s.trim()&&!u.trim()&&!d.trim()&&!m.trim())return;const R=window.setTimeout(()=>{D()},500);return()=>window.clearTimeout(R)},[s,u,d,m]),y.jsx("form",{className:"agent-config-form",onSubmit:R=>{R.preventDefault(),D()},children:y.jsx("div",{className:"agent-config-scroll",children:y.jsx("section",{className:"agent-config-section",children:y.jsxs("div",{className:"agent-config-fields",children:[y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:"Base URL"}),y.jsx("input",{required:!0,value:s,onChange:R=>l(R.target.value),placeholder:"https://api.example.com/v1"})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:"API Key"}),y.jsx("input",{type:"password",value:u,onChange:R=>c(R.target.value),placeholder:"sk-...",autoComplete:"off"})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:i.requestFormat}),y.jsx(Lf,{value:m,onValueChange:R=>{p(R),S([]),w("")},options:[{value:"openai",label:"OpenAI"},{value:"anthropic",label:"Anthropic"},{value:"openai-compatible",label:"OpenAI Compatible"}],ariaLabel:i.requestFormat,placeholder:i.chooseRequestFormat,required:!0,disabled:E})]}),y.jsxs("label",{className:"config-field",children:[y.jsx("span",{children:i.model}),y.jsxs("div",{className:"model-field",children:[v.length?y.jsx(Lf,{value:d,onValueChange:h,options:[...d&&!v.includes(d)?[{value:d,label:d}]:[],...v.map(R=>({value:R,label:R}))],ariaLabel:i.model,placeholder:i.chooseOrEnterModel,required:!0,disabled:E}):y.jsx("input",{required:!0,value:d,onChange:R=>h(R.target.value),placeholder:i.chooseOrEnterModel}),y.jsx("button",{type:"button",className:"ghost-button",onClick:()=>{F()},disabled:A||E,children:A?y.jsx(ll,{className:"spin",size:14}):i.fetchModels})]}),N?y.jsx("small",{className:"model-message",children:N}):null]})]})})})})}function Xq({onMemoryChanged:e,language:t="zh"}){const n=ar[t],i={id:"welcome",role:"assistant",content:n.welcome},[s,l]=C.useState(Yi),[u,c]=C.useState("config"),[d,h]=C.useState(!1),[m,p]=C.useState([i]),[E,x]=C.useState(""),[v,S]=C.useState(!1),[A,k]=C.useState(""),[N,w]=C.useState(null),[D,F]=C.useState(null),[R,I]=C.useState(!1),[H,Y]=C.useState(!1),U=C.useRef(null),Z=C.useRef(null),X=C.useRef(null),se=iv(s);C.useEffect(()=>{let le=!0;return fetch("/api/agent/config").then(async L=>{if(!L.ok)throw new Error("config");return await L.json()}).then(L=>{if(!le)return;const z=zA(L);l(z),c(iv(z)?"chat":"config")}).catch(()=>{}).finally(()=>{le&&h(!0)}),()=>{le=!1}},[]),C.useEffect(()=>{fetch("/api/agent/messages").then(le=>le.ok?le.json():[]).then(le=>{Array.isArray(le)&&le.length&&p(le)}).catch(()=>{})},[]),C.useEffect(()=>{if(!R)return;const le=L=>{L.target instanceof Node&&(L.target instanceof Element&&L.target.closest(".ui-select-content")||U.current?.contains(L.target)||I(!1))};return document.addEventListener("pointerdown",le),()=>document.removeEventListener("pointerdown",le)},[R]),C.useEffect(()=>{if(!R||u!=="chat")return;const le=window.requestAnimationFrame(()=>Z.current?.scrollIntoView({block:"end"}));return()=>window.cancelAnimationFrame(le)},[m,v,A,R,u]);const ce=le=>fetch("/api/agent/messages",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(le)}).catch(()=>{}),ie=async(le=E)=>{const L=le.trim();if(!L||v||!se)return;if(L.toLowerCase()==="/new"){x(""),k(""),p([{...i,id:crypto.randomUUID()}]);return}x(""),k(""),S(!0),w(null);const z={id:crypto.randomUUID(),role:"user",content:L},Q={id:crypto.randomUUID(),role:"assistant",content:"",toolCalls:[]};F(Q.id),p(ee=>[...ee,z,Q]),ce(z),ce(Q);const M=new AbortController;X.current=M;try{const ee=await fetch("/api/agent/stream",{method:"POST",signal:M.signal,headers:{"content-type":"application/json"},body:JSON.stringify({message:L,user_message_id:z.id,assistant_message_id:Q.id,provider:s.provider,model:s.model,base_url:s.baseUrl||null,api_key:s.apiKey||null,scope:s.scope||null,auto_context:s.autoContext,history:[...m,z].slice(-12).map(({role:Oe,content:we})=>({role:Oe,content:we}))})});if(!ee.ok||!ee.body)throw new Error("agent_request_failed");const me=ee.body.getReader(),ge=new TextDecoder;let Se="",Te="",xe=[];for(;;){const{value:Oe,done:we}=await me.read();Se+=ge.decode(Oe??new Uint8Array,{stream:!we});const Le=Se.split(/\r?\n\r?\n/);Se=Le.pop()??"";for(const ze of Le){const $e=ze.match(/^event:\s*(.+)$/m)?.[1]?.trim()??"message",ot=ze.split(/\r?\n/).find(Ct=>Ct.startsWith("data:"));if(!ot)continue;const Qe=JSON.parse(ot.slice(5).trim());if($e==="delta"&&(Te+=String(Qe.text??""),w(null),p(Ct=>Ct.map(xt=>xt.id===Q.id?{...xt,content:Te}:xt))),$e==="tool"){const Ct=Qe;xe=[...xe,Ct],w(String(Qe.label??Qe.name??"tool")),p(xt=>xt.map(Yt=>Yt.id===Q.id?{...Yt,toolCalls:xe}:Yt))}if($e==="error")throw new Error(String(Qe.detail??"agent_request_failed"));$e==="done"&&(xe=Array.isArray(Qe.toolCalls)?Qe.toolCalls:xe)}if(we)break}ce({...Q,content:Te,toolCalls:xe}),p(Oe=>Oe.map(we=>we.id===Q.id?{...we,content:Te,toolCalls:xe}:we)),xe.some(Oe=>["memory_store","memory_update","memory_delete"].includes(Oe.name))&&e()}catch(ee){ee instanceof DOMException&&ee.name==="AbortError"||k(ee instanceof Error&&ee.message==="missing_api_key"?n.missingApiKey:n.agentRequestFailed)}finally{S(!1),w(null),F(null),X.current=null}},B=D?m.find(le=>le.id===D):null,G=[n.suggestionTraits,n.suggestionProjects,n.suggestionConcise],oe=y.jsxs("form",{className:"agent-lite-composer",onSubmit:le=>{le.preventDefault(),ie()},children:[y.jsx("textarea",{value:E,onFocus:()=>I(!0),onChange:le=>x(le.target.value),onKeyDown:le=>{le.key==="Enter"&&!le.shiftKey&&(le.preventDefault(),ie())},placeholder:n.agentPlaceholder,rows:1}),y.jsxs("div",{className:"agent-lite-actions",children:[y.jsx("button",{type:"button",className:"agent-lite-tool",onClick:()=>Y(le=>!le),title:n.newMemory,children:y.jsx(Vv,{size:15})}),y.jsx("button",{className:"agent-lite-submit",type:"submit",disabled:!E.trim()||v||!se,title:v?n.cancel:n.send,onClick:v?le=>{le.preventDefault(),X.current?.abort()}:void 0,children:v?y.jsx(jo,{size:16}):y.jsx(uR,{size:16})})]})]});return d?y.jsx("div",{className:`agent-lite-root ${R?"is-open":""}`,children:y.jsxs("section",{ref:U,className:"agent-lite-panel","aria-label":s.name,children:[y.jsxs("div",{className:"agent-lite-expanded","aria-hidden":!R,children:[y.jsxs("header",{className:"agent-lite-header",children:[y.jsxs("div",{className:"agent-lite-brand",children:[y.jsx("span",{className:"agent-avatar",children:y.jsx(qv,{size:16})}),y.jsxs("div",{children:[y.jsx("strong",{children:s.name}),y.jsx("span",{children:v?N||n.processing:n.agentDescription})]})]}),y.jsxs("div",{className:"agent-lite-header-actions",children:[y.jsx("button",{className:"icon-button",onClick:()=>c(u==="config"?"chat":"config"),title:u==="config"?n.chat:n.configuration,"aria-label":u==="config"?n.chat:n.configuration,children:u==="config"?y.jsx(bR,{size:15}):y.jsx(Gv,{size:15})}),y.jsx("button",{className:"icon-button",onClick:()=>I(!1),title:n.close,children:y.jsx(kf,{size:16})})]})]}),y.jsx("div",{className:"agent-lite-body",children:u==="config"?y.jsx(Kq,{language:t,initial:s,onSaved:le=>{l(le)}}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"agent-lite-messages",children:[m.map(le=>y.jsxs("article",{className:`agent-message ${le.role}`,children:[le.content?y.jsx("div",{className:"agent-message-bubble",children:le.role==="assistant"?y.jsx(jA,{className:"agent-markdown",controls:!1,mode:D===le.id?"streaming":"static",isAnimating:D===le.id,parseIncompleteMarkdown:D===le.id,skipHtml:!0,children:le.content}):y.jsx("span",{className:"agent-plain-text",children:le.content})}):null,le.toolCalls?.some(L=>L.name!=="memory_get_context")?y.jsx("div",{className:"agent-tool-calls",children:le.toolCalls.filter(L=>L.name!=="memory_get_context").map((L,z)=>y.jsxs("span",{children:[y.jsx(ja,{size:11}),L.label]},`${le.id}-${z}`))}):null]},le.id)),v&&!B?.content&&y.jsxs("div",{className:"agent-thinking",children:[y.jsx(ll,{size:14}),y.jsx("span",{className:"agent-thinking-label",children:N||n.readingMemory}),y.jsx("i",{}),y.jsx("i",{}),y.jsx("i",{})]}),A&&y.jsx("p",{className:"agent-error",children:A}),y.jsx("div",{ref:Z,className:"agent-messages-end"})]}),y.jsx("div",{className:"agent-lite-suggestions",children:G.map(le=>y.jsx("button",{onClick:()=>{ie(le)},disabled:v,children:le},le))})]})})]}),oe,H?y.jsxs("div",{className:"agent-lite-popover",children:[y.jsx("button",{type:"button",onClick:()=>{p([{...i,id:crypto.randomUUID()}]),x(""),k(""),Y(!1)},children:n.newMemory}),y.jsx("span",{children:"/new"})]}):null]})}):y.jsx("div",{className:"agent-lite-root",children:y.jsx("section",{ref:U,className:"agent-lite-panel","aria-label":s.name,children:oe})})}fN.createRoot(document.getElementById("root")).render(y.jsx(bl.StrictMode,{children:y.jsx(rR,{router:Bq})}));const Qq=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:HA},Symbol.toStringTag,{value:"Module"}));export{rV as E,sn as S,sF as c,y as j,C as r};